1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the HiHope RZ/G2[MN] main board common parts
5 * Copyright (C) 2019 Renesas Electronics Corp.
8 #include <dt-bindings/gpio/gpio.h>
17 bootargs = "ignore_loglevel";
18 stdout-path = "serial0:115200n8";
22 compatible = "hdmi-connector";
27 remote-endpoint = <&rcar_dw_hdmi0_out>;
33 compatible = "gpio-leds";
37 gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
38 linux,default-trigger = "hci0-power";
39 default-state = "off";
43 gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>;
47 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
51 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
55 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
59 label = "yellow:wlan";
60 gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
61 linux,default-trigger = "phy0tx";
62 default-state = "off";
66 reg_1p8v: regulator0 {
67 compatible = "regulator-fixed";
68 regulator-name = "fixed-1.8V";
69 regulator-min-microvolt = <1800000>;
70 regulator-max-microvolt = <1800000>;
75 reg_3p3v: regulator1 {
76 compatible = "regulator-fixed";
77 regulator-name = "fixed-3.3V";
78 regulator-min-microvolt = <3300000>;
79 regulator-max-microvolt = <3300000>;
85 compatible = "audio-graph-card";
92 vbus0_usb2: regulator-vbus0-usb2 {
93 compatible = "regulator-fixed";
95 regulator-name = "USB20_VBUS0";
96 regulator-min-microvolt = <5000000>;
97 regulator-max-microvolt = <5000000>;
99 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
103 vccq_sdhi0: regulator-vccq-sdhi0 {
104 compatible = "regulator-gpio";
106 regulator-name = "SDHI0 VccQ";
107 regulator-min-microvolt = <1800000>;
108 regulator-max-microvolt = <3300000>;
110 gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
112 states = <3300000 1>, <1800000 0>;
115 wlan_en_reg: regulator-wlan_en {
116 compatible = "regulator-fixed";
117 regulator-name = "wlan-en-regulator";
118 regulator-min-microvolt = <1800000>;
119 regulator-max-microvolt = <1800000>;
120 startup-delay-us = <70000>;
122 gpio = <&gpio_expander 1 GPIO_ACTIVE_HIGH>;
126 x302_clk: x302-clock {
127 compatible = "fixed-clock";
129 clock-frequency = <33000000>;
132 x304_clk: x304-clock {
133 compatible = "fixed-clock";
135 clock-frequency = <25000000>;
140 clock-frequency = <22579200>;
156 clock-frequency = <16666666>;
160 clock-frequency = <32768>;
166 gpios = <10 GPIO_ACTIVE_LOW>;
168 line-name = "usb1-reset";
178 rcar_dw_hdmi0_out: endpoint {
179 remote-endpoint = <&hdmi0_con>;
184 dw_hdmi0_snd_in: endpoint {
185 remote-endpoint = <&rsnd_endpoint>;
192 pinctrl-0 = <&hscif0_pins>;
193 pinctrl-names = "default";
199 compatible = "ti,wl1837-st";
200 enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>;
210 clock-frequency = <400000>;
213 gpio_expander: gpio@20 {
214 compatible = "onnn,pca9654";
220 versaclock5: clock-generator@6a {
221 compatible = "idt,5p49v5923";
224 clocks = <&x304_clk>;
238 clock-frequency = <100000000>;
242 pinctrl-0 = <&scif_clk_pins>;
243 pinctrl-names = "default";
245 hscif0_pins: hscif0 {
246 groups = "hscif0_data", "hscif0_ctrl";
251 groups = "scif2_data_a";
255 scif_clk_pins: scif_clk {
256 groups = "scif_clk_a";
257 function = "scif_clk";
261 groups = "sdhi0_data4", "sdhi0_ctrl";
263 power-source = <3300>;
266 sdhi0_pins_uhs: sd0_uhs {
267 groups = "sdhi0_data4", "sdhi0_ctrl";
269 power-source = <1800>;
273 groups = "sdhi2_data4", "sdhi2_ctrl";
275 power-source = <1800>;
279 groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds";
281 power-source = <1800>;
284 sound_clk_pins: sound_clk {
285 groups = "audio_clk_a_a";
286 function = "audio_clk";
313 pinctrl-0 = <&sound_clk_pins>;
314 pinctrl-names = "default";
319 #sound-dai-cells = <0>;
322 rsnd_endpoint: endpoint {
323 remote-endpoint = <&dw_hdmi0_snd_in>;
326 bitclock-master = <&rsnd_endpoint>;
327 frame-master = <&rsnd_endpoint>;
340 pinctrl-0 = <&scif2_pins>;
341 pinctrl-names = "default";
347 clock-frequency = <14745600>;
351 pinctrl-0 = <&sdhi0_pins>;
352 pinctrl-1 = <&sdhi0_pins_uhs>;
353 pinctrl-names = "default", "state_uhs";
355 vmmc-supply = <®_3p3v>;
356 vqmmc-supply = <&vccq_sdhi0>;
357 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
366 pinctrl-0 = <&sdhi2_pins>;
367 pinctrl-names = "default";
369 vmmc-supply = <&wlan_en_reg>;
373 keep-power-in-suspend;
375 #address-cells = <1>;
378 compatible = "ti,wl1837";
380 interrupt-parent = <&gpio2>;
381 interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
386 pinctrl-0 = <&sdhi3_pins>;
387 pinctrl-1 = <&sdhi3_pins>;
388 pinctrl-names = "default", "state_uhs";
390 vmmc-supply = <®_3p3v>;
391 vqmmc-supply = <®_1p8v>;
395 fixed-emmc-driver-type = <1>;
400 clock-frequency = <50000000>;
404 pinctrl-0 = <&usb0_pins>;
405 pinctrl-names = "default";
407 vbus-supply = <&vbus0_usb2>;
412 pinctrl-0 = <&usb1_pins>;
413 pinctrl-names = "default";
422 companion = <&xhci0>;
432 clock-frequency = <100000000>;
436 pinctrl-0 = <&usb30_pins>;
437 pinctrl-names = "default";