1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Copyright (c) 2018 MediaTek Inc.
4 * Author: Ben Ho <ben.ho@mediatek.com>
5 * Erin Lo <erin.lo@mediatek.com>
10 #include "mt6358.dtsi"
13 model = "MediaTek MT8183 evaluation board";
14 compatible = "mediatek,mt8183-evb", "mediatek,mt8183";
21 device_type = "memory";
22 reg = <0 0x40000000 0 0x80000000>;
26 stdout-path = "serial0:921600n8";
33 scp_mem_reserved: memory@50000000 {
34 compatible = "shared-dma-pool";
35 reg = <0 0x50000000 0 0x2900000>;
41 compatible = "murata,ncp03wf104";
42 pullup-uv = <1800000>;
43 pullup-ohm = <390000>;
45 io-channels = <&auxadc 0>;
54 mali-supply = <&mt6358_vgpu_reg>;
55 sram-supply = <&mt6358_vsram_gpu_reg>;
59 pinctrl-names = "default";
60 pinctrl-0 = <&i2c_pins_0>;
62 clock-frequency = <100000>;
66 pinctrl-names = "default";
67 pinctrl-0 = <&i2c_pins_1>;
69 clock-frequency = <100000>;
73 pinctrl-names = "default";
74 pinctrl-0 = <&i2c_pins_2>;
76 clock-frequency = <100000>;
80 pinctrl-names = "default";
81 pinctrl-0 = <&i2c_pins_3>;
83 clock-frequency = <100000>;
87 pinctrl-names = "default";
88 pinctrl-0 = <&i2c_pins_4>;
90 clock-frequency = <1000000>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&i2c_pins_5>;
97 clock-frequency = <1000000>;
102 pinctrl-names = "default", "state_uhs";
103 pinctrl-0 = <&mmc0_pins_default>;
104 pinctrl-1 = <&mmc0_pins_uhs>;
106 max-frequency = <200000000>;
113 hs400-ds-delay = <0x12814>;
114 vmmc-supply = <&mt6358_vemc_reg>;
115 vqmmc-supply = <&mt6358_vio18_reg>;
116 assigned-clocks = <&topckgen CLK_TOP_MUX_MSDC50_0>;
117 assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL_CK>;
123 pinctrl-names = "default", "state_uhs";
124 pinctrl-0 = <&mmc1_pins_default>;
125 pinctrl-1 = <&mmc1_pins_uhs>;
127 max-frequency = <200000000>;
134 vmmc-supply = <&mt6358_vmch_reg>;
135 vqmmc-supply = <&mt6358_vmc_reg>;
136 keep-power-in-suspend;
144 pinmux = <PINMUX_GPIO82__FUNC_SDA0>,
145 <PINMUX_GPIO83__FUNC_SCL0>;
146 mediatek,pull-up-adv = <3>;
147 mediatek,drive-strength-adv = <00>;
153 pinmux = <PINMUX_GPIO81__FUNC_SDA1>,
154 <PINMUX_GPIO84__FUNC_SCL1>;
155 mediatek,pull-up-adv = <3>;
156 mediatek,drive-strength-adv = <00>;
162 pinmux = <PINMUX_GPIO103__FUNC_SCL2>,
163 <PINMUX_GPIO104__FUNC_SDA2>;
164 mediatek,pull-up-adv = <3>;
165 mediatek,drive-strength-adv = <00>;
171 pinmux = <PINMUX_GPIO50__FUNC_SCL3>,
172 <PINMUX_GPIO51__FUNC_SDA3>;
173 mediatek,pull-up-adv = <3>;
174 mediatek,drive-strength-adv = <00>;
180 pinmux = <PINMUX_GPIO105__FUNC_SCL4>,
181 <PINMUX_GPIO106__FUNC_SDA4>;
182 mediatek,pull-up-adv = <3>;
183 mediatek,drive-strength-adv = <00>;
189 pinmux = <PINMUX_GPIO48__FUNC_SCL5>,
190 <PINMUX_GPIO49__FUNC_SDA5>;
191 mediatek,pull-up-adv = <3>;
192 mediatek,drive-strength-adv = <00>;
198 pinmux = <PINMUX_GPIO85__FUNC_SPI0_MI>,
199 <PINMUX_GPIO86__FUNC_SPI0_CSB>,
200 <PINMUX_GPIO87__FUNC_SPI0_MO>,
201 <PINMUX_GPIO88__FUNC_SPI0_CLK>;
206 mmc0_pins_default: mmc0default {
208 pinmux = <PINMUX_GPIO123__FUNC_MSDC0_DAT0>,
209 <PINMUX_GPIO128__FUNC_MSDC0_DAT1>,
210 <PINMUX_GPIO125__FUNC_MSDC0_DAT2>,
211 <PINMUX_GPIO132__FUNC_MSDC0_DAT3>,
212 <PINMUX_GPIO126__FUNC_MSDC0_DAT4>,
213 <PINMUX_GPIO129__FUNC_MSDC0_DAT5>,
214 <PINMUX_GPIO127__FUNC_MSDC0_DAT6>,
215 <PINMUX_GPIO130__FUNC_MSDC0_DAT7>,
216 <PINMUX_GPIO122__FUNC_MSDC0_CMD>;
222 pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>;
227 pinmux = <PINMUX_GPIO133__FUNC_MSDC0_RSTB>;
232 mmc0_pins_uhs: mmc0 {
234 pinmux = <PINMUX_GPIO123__FUNC_MSDC0_DAT0>,
235 <PINMUX_GPIO128__FUNC_MSDC0_DAT1>,
236 <PINMUX_GPIO125__FUNC_MSDC0_DAT2>,
237 <PINMUX_GPIO132__FUNC_MSDC0_DAT3>,
238 <PINMUX_GPIO126__FUNC_MSDC0_DAT4>,
239 <PINMUX_GPIO129__FUNC_MSDC0_DAT5>,
240 <PINMUX_GPIO127__FUNC_MSDC0_DAT6>,
241 <PINMUX_GPIO130__FUNC_MSDC0_DAT7>,
242 <PINMUX_GPIO122__FUNC_MSDC0_CMD>;
244 drive-strength = <MTK_DRIVE_10mA>;
245 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
249 pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>;
250 drive-strength = <MTK_DRIVE_10mA>;
251 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
255 pinmux = <PINMUX_GPIO131__FUNC_MSDC0_DSL>;
256 drive-strength = <MTK_DRIVE_10mA>;
257 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
261 pinmux = <PINMUX_GPIO133__FUNC_MSDC0_RSTB>;
262 drive-strength = <MTK_DRIVE_10mA>;
267 mmc1_pins_default: mmc1default {
269 pinmux = <PINMUX_GPIO31__FUNC_MSDC1_CMD>,
270 <PINMUX_GPIO32__FUNC_MSDC1_DAT0>,
271 <PINMUX_GPIO34__FUNC_MSDC1_DAT1>,
272 <PINMUX_GPIO33__FUNC_MSDC1_DAT2>,
273 <PINMUX_GPIO30__FUNC_MSDC1_DAT3>;
279 pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>;
285 pinmux = <PINMUX_GPIO178__FUNC_GPIO178>,
286 <PINMUX_GPIO166__FUNC_GPIO166>;
291 mmc1_pins_uhs: mmc1 {
293 pinmux = <PINMUX_GPIO31__FUNC_MSDC1_CMD>,
294 <PINMUX_GPIO32__FUNC_MSDC1_DAT0>,
295 <PINMUX_GPIO34__FUNC_MSDC1_DAT1>,
296 <PINMUX_GPIO33__FUNC_MSDC1_DAT2>,
297 <PINMUX_GPIO30__FUNC_MSDC1_DAT3>;
298 drive-strength = <MTK_DRIVE_6mA>;
300 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
304 pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>;
305 drive-strength = <MTK_DRIVE_6mA>;
306 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
313 pinmux = <PINMUX_GPIO161__FUNC_SPI1_A_MI>,
314 <PINMUX_GPIO162__FUNC_SPI1_A_CSB>,
315 <PINMUX_GPIO163__FUNC_SPI1_A_MO>,
316 <PINMUX_GPIO164__FUNC_SPI1_A_CLK>;
323 pinmux = <PINMUX_GPIO0__FUNC_SPI2_CSB>,
324 <PINMUX_GPIO1__FUNC_SPI2_MO>,
325 <PINMUX_GPIO2__FUNC_SPI2_CLK>,
326 <PINMUX_GPIO94__FUNC_SPI2_MI>;
333 pinmux = <PINMUX_GPIO21__FUNC_SPI3_MI>,
334 <PINMUX_GPIO22__FUNC_SPI3_CSB>,
335 <PINMUX_GPIO23__FUNC_SPI3_MO>,
336 <PINMUX_GPIO24__FUNC_SPI3_CLK>;
343 pinmux = <PINMUX_GPIO17__FUNC_SPI4_MI>,
344 <PINMUX_GPIO18__FUNC_SPI4_CSB>,
345 <PINMUX_GPIO19__FUNC_SPI4_MO>,
346 <PINMUX_GPIO20__FUNC_SPI4_CLK>;
353 pinmux = <PINMUX_GPIO13__FUNC_SPI5_MI>,
354 <PINMUX_GPIO14__FUNC_SPI5_CSB>,
355 <PINMUX_GPIO15__FUNC_SPI5_MO>,
356 <PINMUX_GPIO16__FUNC_SPI5_CLK>;
363 pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
369 domain-supply = <&mt6358_vgpu_reg>;
373 pinctrl-names = "default";
374 pinctrl-0 = <&spi_pins_0>;
375 mediatek,pad-select = <0>;
380 pinctrl-names = "default";
381 pinctrl-0 = <&spi_pins_1>;
382 mediatek,pad-select = <0>;
387 pinctrl-names = "default";
388 pinctrl-0 = <&spi_pins_2>;
389 mediatek,pad-select = <0>;
394 pinctrl-names = "default";
395 pinctrl-0 = <&spi_pins_3>;
396 mediatek,pad-select = <0>;
401 pinctrl-names = "default";
402 pinctrl-0 = <&spi_pins_4>;
403 mediatek,pad-select = <0>;
408 pinctrl-names = "default";
409 pinctrl-0 = <&spi_pins_5>;
410 mediatek,pad-select = <0>;
416 proc-supply = <&mt6358_vproc12_reg>;
420 proc-supply = <&mt6358_vproc12_reg>;
424 proc-supply = <&mt6358_vproc12_reg>;
428 proc-supply = <&mt6358_vproc12_reg>;
432 proc-supply = <&mt6358_vproc12_reg>;
436 proc-supply = <&mt6358_vproc11_reg>;
440 proc-supply = <&mt6358_vproc11_reg>;
444 proc-supply = <&mt6358_vproc11_reg>;
448 proc-supply = <&mt6358_vproc11_reg>;
457 pinctrl-0 = <&pwm_pins_1>;
458 pinctrl-names = "default";