1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/gpio/meson-g12a-gpio.h>
9 #include <dt-bindings/sound/meson-g12a-toacodec.h>
10 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
20 stdout-path = "serial0:115200n8";
24 device_type = "memory";
25 reg = <0x0 0x0 0x0 0x40000000>;
28 emmc_pwrseq: emmc-pwrseq {
29 compatible = "mmc-pwrseq-emmc";
30 reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
34 compatible = "gpio-fan";
35 gpios = <&gpio_ao GPIOAO_10 GPIO_ACTIVE_HIGH>;
36 /* Using Dummy Speed */
37 gpio-fan,speed-map = <0 0>, <1 1>;
42 compatible = "gpio-leds";
46 gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
47 linux,default-trigger = "heartbeat";
51 tflash_vdd: regulator-tflash_vdd {
52 compatible = "regulator-fixed";
54 regulator-name = "TFLASH_VDD";
55 regulator-min-microvolt = <3300000>;
56 regulator-max-microvolt = <3300000>;
58 gpio = <&gpio_ao GPIOAO_8 GPIO_ACTIVE_HIGH>;
63 tf_io: gpio-regulator-tf_io {
64 compatible = "regulator-gpio";
66 regulator-name = "TF_IO";
67 regulator-min-microvolt = <1800000>;
68 regulator-max-microvolt = <3300000>;
70 gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
77 flash_1v8: regulator-flash_1v8 {
78 compatible = "regulator-fixed";
79 regulator-name = "FLASH_1V8";
80 regulator-min-microvolt = <1800000>;
81 regulator-max-microvolt = <1800000>;
82 vin-supply = <&vcc_3v3>;
86 main_12v: regulator-main_12v {
87 compatible = "regulator-fixed";
88 regulator-name = "12V";
89 regulator-min-microvolt = <12000000>;
90 regulator-max-microvolt = <12000000>;
94 usb_pwr_en: regulator-usb_pwr_en {
95 compatible = "regulator-fixed";
96 regulator-name = "USB_PWR_EN";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
99 vin-supply = <&vcc_5v>;
101 /* Connected to the microUSB port power enable */
102 gpio = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;
106 vcc_5v: regulator-vcc_5v {
107 compatible = "regulator-fixed";
108 regulator-name = "5V";
109 regulator-min-microvolt = <5000000>;
110 regulator-max-microvolt = <5000000>;
112 vin-supply = <&main_12v>;
113 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
117 vcc_1v8: regulator-vcc_1v8 {
118 compatible = "regulator-fixed";
119 regulator-name = "VCC_1V8";
120 regulator-min-microvolt = <1800000>;
121 regulator-max-microvolt = <1800000>;
122 vin-supply = <&vcc_3v3>;
126 vcc_3v3: regulator-vcc_3v3 {
127 compatible = "regulator-fixed";
128 regulator-name = "VCC_3V3";
129 regulator-min-microvolt = <3300000>;
130 regulator-max-microvolt = <3300000>;
131 vin-supply = <&vddao_3v3>;
133 /* FIXME: actually controlled by VDDCPU_B_EN */
136 vddcpu_a: regulator-vddcpu-a {
138 * MP8756GD Regulator.
140 compatible = "pwm-regulator";
142 regulator-name = "VDDCPU_A";
143 regulator-min-microvolt = <721000>;
144 regulator-max-microvolt = <1022000>;
146 pwm-supply = <&main_12v>;
148 pwms = <&pwm_ab 0 1250 0>;
149 pwm-dutycycle-range = <100 0>;
155 vddcpu_b: regulator-vddcpu-b {
157 * Silergy SY8120B1ABC Regulator.
159 compatible = "pwm-regulator";
161 regulator-name = "VDDCPU_B";
162 regulator-min-microvolt = <721000>;
163 regulator-max-microvolt = <1022000>;
165 pwm-supply = <&main_12v>;
167 pwms = <&pwm_AO_cd 1 1250 0>;
168 pwm-dutycycle-range = <100 0>;
174 vddao_1v8: regulator-vddao_1v8 {
175 compatible = "regulator-fixed";
176 regulator-name = "VDDAO_1V8";
177 regulator-min-microvolt = <1800000>;
178 regulator-max-microvolt = <1800000>;
179 vin-supply = <&vddao_3v3>;
183 vddao_3v3: regulator-vddao_3v3 {
184 compatible = "regulator-fixed";
185 regulator-name = "VDDAO_3V3";
186 regulator-min-microvolt = <3300000>;
187 regulator-max-microvolt = <3300000>;
188 vin-supply = <&main_12v>;
193 compatible = "hdmi-connector";
197 hdmi_connector_in: endpoint {
198 remote-endpoint = <&hdmi_tx_tmds_out>;
209 pinctrl-0 = <&cec_ao_a_h_pins>;
210 pinctrl-names = "default";
212 hdmi-phandle = <&hdmi_tx>;
216 pinctrl-0 = <&cec_ao_b_h_pins>;
217 pinctrl-names = "default";
219 hdmi-phandle = <&hdmi_tx>;
227 cpu-supply = <&vddcpu_b>;
228 operating-points-v2 = <&cpu_opp_table_0>;
229 clocks = <&clkc CLKID_CPU_CLK>;
230 clock-latency = <50000>;
234 cpu-supply = <&vddcpu_b>;
235 operating-points-v2 = <&cpu_opp_table_0>;
236 clocks = <&clkc CLKID_CPU_CLK>;
237 clock-latency = <50000>;
241 cpu-supply = <&vddcpu_a>;
242 operating-points-v2 = <&cpub_opp_table_1>;
243 clocks = <&clkc CLKID_CPUB_CLK>;
244 clock-latency = <50000>;
248 cpu-supply = <&vddcpu_a>;
249 operating-points-v2 = <&cpub_opp_table_1>;
250 clocks = <&clkc CLKID_CPUB_CLK>;
251 clock-latency = <50000>;
255 cpu-supply = <&vddcpu_a>;
256 operating-points-v2 = <&cpub_opp_table_1>;
257 clocks = <&clkc CLKID_CPUB_CLK>;
258 clock-latency = <50000>;
262 cpu-supply = <&vddcpu_a>;
263 operating-points-v2 = <&cpub_opp_table_1>;
264 clocks = <&clkc CLKID_CPUB_CLK>;
265 clock-latency = <50000>;
270 cpu_active: cpu-active {
271 temperature = <60000>; /* millicelsius */
272 hysteresis = <2000>; /* millicelsius */
279 trip = <&cpu_active>;
280 cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
287 ddr_active: ddr-active {
288 temperature = <60000>; /* millicelsius */
289 hysteresis = <2000>; /* millicelsius */
296 trip = <&ddr_active>;
297 cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
316 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
317 pinctrl-names = "default";
318 hdmi-supply = <&vcc_5v>;
322 hdmi_tx_tmds_out: endpoint {
323 remote-endpoint = <&hdmi_connector_in>;
328 pinctrl-0 = <&pwm_a_e_pins>;
329 pinctrl-names = "default";
331 clock-names = "clkin0";
336 pinctrl-0 = <&pwm_ao_d_e_pins>;
337 pinctrl-names = "default";
339 clock-names = "clkin1";
345 vref-supply = <&vddao_1v8>;
351 pinctrl-0 = <&sdcard_c_pins>;
352 pinctrl-1 = <&sdcard_clk_gate_c_pins>;
353 pinctrl-names = "default", "clk-gate";
357 max-frequency = <50000000>;
360 cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>;
361 vmmc-supply = <&tflash_vdd>;
362 vqmmc-supply = <&tf_io>;
369 pinctrl-0 = <&emmc_ctrl_pins>, <&emmc_data_8b_pins>, <&emmc_ds_pins>;
370 pinctrl-1 = <&emmc_clk_gate_pins>;
371 pinctrl-names = "default", "clk-gate";
377 max-frequency = <200000000>;
380 mmc-pwrseq = <&emmc_pwrseq>;
381 vmmc-supply = <&vcc_3v3>;
382 vqmmc-supply = <&flash_1v8>;
435 pinctrl-0 = <&uart_ao_a_pins>;
436 pinctrl-names = "default";
444 phy-supply = <&vcc_5v>;