1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Copyright (C) 2022 BayLibre, SAS.
4 * Author: Fabien Parent <fparent@baylibre.com>
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/pinctrl/mt8195-pinfunc.h>
14 #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
17 model = "MediaTek MT8195 demo board";
18 compatible = "mediatek,mt8195-demo", "mediatek,mt8195";
25 stdout-path = "serial0:921600n8";
30 compatible = "linaro,optee-tz";
36 compatible = "gpio-keys";
37 pinctrl-names = "default";
38 pinctrl-0 = <&gpio_keys_pins>;
41 gpios = <&pio 106 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_VOLUMEUP>;
45 debounce-interval = <15>;
50 device_type = "memory";
51 reg = <0 0x40000000 0 0x80000000>;
59 /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
60 bl31_secmon_reserved: secmon@54600000 {
62 reg = <0 0x54600000 0x0 0x30000>;
65 /* 12 MiB reserved for OP-TEE (BL32)
66 * +-----------------------+ 0x43e0_0000
68 * +-----------------------+ 0x43c0_0000
70 * + TZDRAM +--------------+ 0x4340_0000
72 * +-----------------------+ 0x4320_0000
74 optee_reserved: optee@43200000 {
76 reg = <0 0x43200000 0 0x00c00000>;
82 clock-frequency = <400000>;
83 pinctrl-0 = <&i2c6_pins>;
84 pinctrl-names = "default";
88 compatible = "mediatek,mt6360";
91 interrupts-extended = <&pio 101 IRQ_TYPE_EDGE_FALLING>;
92 interrupt-names = "IRQB";
95 compatible = "mediatek,mt6360-chg";
96 richtek,vinovp-microvolt = <14500000>;
98 otg_vbus_regulator: usb-otg-vbus-regulator {
99 regulator-compatible = "usb-otg-vbus";
100 regulator-name = "usb-otg-vbus";
101 regulator-min-microvolt = <4425000>;
102 regulator-max-microvolt = <5825000>;
107 compatible = "mediatek,mt6360-regulator";
108 LDO_VIN3-supply = <&mt6360_buck2>;
110 mt6360_buck1: buck1 {
111 regulator-compatible = "BUCK1";
112 regulator-name = "mt6360,buck1";
113 regulator-min-microvolt = <300000>;
114 regulator-max-microvolt = <1300000>;
115 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
121 mt6360_buck2: buck2 {
122 regulator-compatible = "BUCK2";
123 regulator-name = "mt6360,buck2";
124 regulator-min-microvolt = <300000>;
125 regulator-max-microvolt = <1300000>;
126 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
133 regulator-compatible = "LDO1";
134 regulator-name = "mt6360,ldo1";
135 regulator-min-microvolt = <1200000>;
136 regulator-max-microvolt = <3600000>;
137 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
142 regulator-compatible = "LDO2";
143 regulator-name = "mt6360,ldo2";
144 regulator-min-microvolt = <1200000>;
145 regulator-max-microvolt = <3600000>;
146 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
151 regulator-compatible = "LDO3";
152 regulator-name = "mt6360,ldo3";
153 regulator-min-microvolt = <1200000>;
154 regulator-max-microvolt = <3600000>;
155 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
160 regulator-compatible = "LDO5";
161 regulator-name = "mt6360,ldo5";
162 regulator-min-microvolt = <2700000>;
163 regulator-max-microvolt = <3600000>;
164 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
169 regulator-compatible = "LDO6";
170 regulator-name = "mt6360,ldo6";
171 regulator-min-microvolt = <500000>;
172 regulator-max-microvolt = <2100000>;
173 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
178 regulator-compatible = "LDO7";
179 regulator-name = "mt6360,ldo7";
180 regulator-min-microvolt = <500000>;
181 regulator-max-microvolt = <2100000>;
182 regulator-allowed-modes = <MT6360_OPMODE_NORMAL
192 pinctrl-names = "default", "state_uhs";
193 pinctrl-0 = <&mmc0_default_pins>;
194 pinctrl-1 = <&mmc0_uhs_pins>;
196 max-frequency = <200000000>;
203 hs400-ds-delay = <0x14c11>;
204 vmmc-supply = <&mt6359_vemc_1_ldo_reg>;
205 vqmmc-supply = <&mt6359_vufs_ldo_reg>;
210 pinctrl-names = "default", "state_uhs";
211 pinctrl-0 = <&mmc1_default_pins>;
212 pinctrl-1 = <&mmc1_uhs_pins>;
213 cd-gpios = <&pio 129 GPIO_ACTIVE_LOW>;
215 max-frequency = <200000000>;
219 vmmc-supply = <&mt6360_ldo5>;
220 vqmmc-supply = <&mt6360_ldo3>;
224 &mt6359_vbbck_ldo_reg {
228 &mt6359_vcore_buck_reg {
232 &mt6359_vgpu11_buck_reg {
236 &mt6359_vproc1_buck_reg {
240 &mt6359_vproc2_buck_reg {
244 &mt6359_vpu_buck_reg {
248 &mt6359_vrf12_ldo_reg {
252 &mt6359_vsram_md_ldo_reg {
256 &mt6359_vsram_others_ldo_reg {
261 gpio_keys_pins: gpio-keys-pins {
263 pinmux = <PINMUX_GPIO106__FUNC_GPIO106>;
268 i2c6_pins: i2c6-pins {
270 pinmux = <PINMUX_GPIO25__FUNC_SDA6>,
271 <PINMUX_GPIO26__FUNC_SCL6>;
276 mmc0_default_pins: mmc0-default-pins {
278 pinmux = <PINMUX_GPIO122__FUNC_MSDC0_CLK>;
279 drive-strength = <MTK_DRIVE_6mA>;
280 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
284 pinmux = <PINMUX_GPIO126__FUNC_MSDC0_DAT0>,
285 <PINMUX_GPIO125__FUNC_MSDC0_DAT1>,
286 <PINMUX_GPIO124__FUNC_MSDC0_DAT2>,
287 <PINMUX_GPIO123__FUNC_MSDC0_DAT3>,
288 <PINMUX_GPIO119__FUNC_MSDC0_DAT4>,
289 <PINMUX_GPIO118__FUNC_MSDC0_DAT5>,
290 <PINMUX_GPIO117__FUNC_MSDC0_DAT6>,
291 <PINMUX_GPIO116__FUNC_MSDC0_DAT7>,
292 <PINMUX_GPIO121__FUNC_MSDC0_CMD>;
294 drive-strength = <MTK_DRIVE_6mA>;
295 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
299 pinmux = <PINMUX_GPIO120__FUNC_MSDC0_RSTB>;
300 drive-strength = <MTK_DRIVE_6mA>;
301 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
305 mmc0_uhs_pins: mmc0-uhs-pins {
307 pinmux = <PINMUX_GPIO122__FUNC_MSDC0_CLK>;
308 drive-strength = <MTK_DRIVE_8mA>;
309 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
313 pinmux = <PINMUX_GPIO126__FUNC_MSDC0_DAT0>,
314 <PINMUX_GPIO125__FUNC_MSDC0_DAT1>,
315 <PINMUX_GPIO124__FUNC_MSDC0_DAT2>,
316 <PINMUX_GPIO123__FUNC_MSDC0_DAT3>,
317 <PINMUX_GPIO119__FUNC_MSDC0_DAT4>,
318 <PINMUX_GPIO118__FUNC_MSDC0_DAT5>,
319 <PINMUX_GPIO117__FUNC_MSDC0_DAT6>,
320 <PINMUX_GPIO116__FUNC_MSDC0_DAT7>,
321 <PINMUX_GPIO121__FUNC_MSDC0_CMD>;
323 drive-strength = <MTK_DRIVE_8mA>;
324 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
328 pinmux = <PINMUX_GPIO127__FUNC_MSDC0_DSL>;
329 drive-strength = <MTK_DRIVE_8mA>;
330 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
334 pinmux = <PINMUX_GPIO120__FUNC_MSDC0_RSTB>;
335 drive-strength = <MTK_DRIVE_8mA>;
336 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
340 mmc1_default_pins: mmc1-default-pins {
342 pinmux = <PINMUX_GPIO111__FUNC_MSDC1_CLK>;
343 drive-strength = <MTK_DRIVE_8mA>;
344 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
348 pinmux = <PINMUX_GPIO110__FUNC_MSDC1_CMD>,
349 <PINMUX_GPIO112__FUNC_MSDC1_DAT0>,
350 <PINMUX_GPIO113__FUNC_MSDC1_DAT1>,
351 <PINMUX_GPIO114__FUNC_MSDC1_DAT2>,
352 <PINMUX_GPIO115__FUNC_MSDC1_DAT3>;
354 drive-strength = <MTK_DRIVE_8mA>;
355 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
359 pinmux = <PINMUX_GPIO129__FUNC_GPIO129>;
364 mmc1_uhs_pins: mmc1-uhs-pins {
366 pinmux = <PINMUX_GPIO111__FUNC_MSDC1_CLK>;
367 drive-strength = <MTK_DRIVE_8mA>;
368 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
372 pinmux = <PINMUX_GPIO110__FUNC_MSDC1_CMD>,
373 <PINMUX_GPIO112__FUNC_MSDC1_DAT0>,
374 <PINMUX_GPIO113__FUNC_MSDC1_DAT1>,
375 <PINMUX_GPIO114__FUNC_MSDC1_DAT2>,
376 <PINMUX_GPIO115__FUNC_MSDC1_DAT3>;
378 drive-strength = <MTK_DRIVE_8mA>;
379 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
383 uart0_pins: uart0-pins {
385 pinmux = <PINMUX_GPIO98__FUNC_UTXD0>,
386 <PINMUX_GPIO99__FUNC_URXD0>;
390 uart1_pins: uart1-pins {
392 pinmux = <PINMUX_GPIO102__FUNC_UTXD1>,
393 <PINMUX_GPIO103__FUNC_URXD1>;
400 interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>;
404 pinctrl-names = "default";
405 pinctrl-0 = <&uart0_pins>;
410 pinctrl-names = "default";
411 pinctrl-0 = <&uart1_pins>;
432 vusb33-supply = <&mt6359_vusb_ldo_reg>;
433 vbus-supply = <&otg_vbus_regulator>;
438 vusb33-supply = <&mt6359_vusb_ldo_reg>;
443 vusb33-supply = <&mt6359_vusb_ldo_reg>;
448 vusb33-supply = <&mt6359_vusb_ldo_reg>;