Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree Source for the HiHope RZ/G2H Rev.4.0 and
0004  * HiHope RZ/G2[MN] Rev.[2.0/3.0/4.0] main board common parts
0005  *
0006  * Copyright (C) 2019 Renesas Electronics Corp.
0007  */
0008 
0009 #include <dt-bindings/gpio/gpio.h>
0010 
0011 / {
0012         aliases {
0013                 serial0 = &scif2;
0014                 serial1 = &hscif0;
0015                 mmc0 = &sdhi3;
0016                 mmc1 = &sdhi0;
0017                 mmc2 = &sdhi2;
0018         };
0019 
0020         chosen {
0021                 bootargs = "ignore_loglevel";
0022                 stdout-path = "serial0:115200n8";
0023         };
0024 
0025         hdmi0-out {
0026                 compatible = "hdmi-connector";
0027                 type = "a";
0028 
0029                 port {
0030                         hdmi0_con: endpoint {
0031                                 remote-endpoint = <&rcar_dw_hdmi0_out>;
0032                         };
0033                 };
0034         };
0035 
0036         leds {
0037                 compatible = "gpio-leds";
0038 
0039                 led1 {
0040                         gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
0041                 };
0042 
0043                 led2 {
0044                         gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>;
0045                 };
0046 
0047                 led3 {
0048                         gpios = <&gpio0  0 GPIO_ACTIVE_HIGH>;
0049                 };
0050 
0051                 led4 {
0052                         gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>;
0053                 };
0054         };
0055 
0056         reg_1p8v: regulator-1p8v {
0057                 compatible = "regulator-fixed";
0058                 regulator-name = "fixed-1.8V";
0059                 regulator-min-microvolt = <1800000>;
0060                 regulator-max-microvolt = <1800000>;
0061                 regulator-boot-on;
0062                 regulator-always-on;
0063         };
0064 
0065         reg_3p3v: regulator-3p3v {
0066                 compatible = "regulator-fixed";
0067                 regulator-name = "fixed-3.3V";
0068                 regulator-min-microvolt = <3300000>;
0069                 regulator-max-microvolt = <3300000>;
0070                 regulator-boot-on;
0071                 regulator-always-on;
0072         };
0073 
0074         sound_card: sound {
0075                 compatible = "audio-graph-card";
0076 
0077                 label = "rcar-sound";
0078 
0079                 dais = <&rsnd_port>;
0080         };
0081 
0082         vbus0_usb2: regulator-vbus0-usb2 {
0083                 compatible = "regulator-fixed";
0084 
0085                 regulator-name = "USB20_VBUS0";
0086                 regulator-min-microvolt = <5000000>;
0087                 regulator-max-microvolt = <5000000>;
0088 
0089                 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
0090                 enable-active-high;
0091         };
0092 
0093         vccq_sdhi0: regulator-vccq-sdhi0 {
0094                 compatible = "regulator-gpio";
0095 
0096                 regulator-name = "SDHI0 VccQ";
0097                 regulator-min-microvolt = <1800000>;
0098                 regulator-max-microvolt = <3300000>;
0099 
0100                 gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
0101                 gpios-states = <1>;
0102                 states = <3300000 1>, <1800000 0>;
0103         };
0104 
0105         x302_clk: x302-clock {
0106                 compatible = "fixed-clock";
0107                 #clock-cells = <0>;
0108                 clock-frequency = <33000000>;
0109         };
0110 
0111         x304_clk: x304-clock {
0112                 compatible = "fixed-clock";
0113                 #clock-cells = <0>;
0114                 clock-frequency = <25000000>;
0115         };
0116 };
0117 
0118 &audio_clk_a {
0119         clock-frequency = <22579200>;
0120 };
0121 
0122 &du {
0123         status = "okay";
0124 };
0125 
0126 &ehci0 {
0127         status = "okay";
0128 };
0129 
0130 &ehci1 {
0131         status = "okay";
0132 };
0133 
0134 &extal_clk {
0135         clock-frequency = <16666666>;
0136 };
0137 
0138 &extalr_clk {
0139         clock-frequency = <32768>;
0140 };
0141 
0142 &gpio6 {
0143         usb1-reset-hog {
0144                 gpio-hog;
0145                 gpios = <10 GPIO_ACTIVE_LOW>;
0146                 output-low;
0147                 line-name = "usb1-reset";
0148         };
0149 };
0150 
0151 &hdmi0 {
0152         status = "okay";
0153 
0154         ports {
0155                 port@1 {
0156                         reg = <1>;
0157                         rcar_dw_hdmi0_out: endpoint {
0158                                 remote-endpoint = <&hdmi0_con>;
0159                         };
0160                 };
0161                 port@2 {
0162                         reg = <2>;
0163                         dw_hdmi0_snd_in: endpoint {
0164                                 remote-endpoint = <&rsnd_endpoint>;
0165                         };
0166                 };
0167         };
0168 };
0169 
0170 &hscif0 {
0171         pinctrl-0 = <&hscif0_pins>;
0172         pinctrl-names = "default";
0173 
0174         uart-has-rtscts;
0175         status = "okay";
0176 };
0177 
0178 &hsusb {
0179         dr_mode = "otg";
0180         status = "okay";
0181 };
0182 
0183 &i2c4 {
0184         clock-frequency = <400000>;
0185         status = "okay";
0186 
0187         versaclock5: clock-generator@6a {
0188                 compatible = "idt,5p49v5923";
0189                 reg = <0x6a>;
0190                 #clock-cells = <1>;
0191                 clocks = <&x304_clk>;
0192                 clock-names = "xin";
0193         };
0194 };
0195 
0196 &ohci0 {
0197         status = "okay";
0198 };
0199 
0200 &ohci1 {
0201         status = "okay";
0202 };
0203 
0204 &pcie_bus_clk {
0205         clock-frequency = <100000000>;
0206 };
0207 
0208 &pfc {
0209         pinctrl-0 = <&scif_clk_pins>;
0210         pinctrl-names = "default";
0211 
0212         hscif0_pins: hscif0 {
0213                 groups = "hscif0_data", "hscif0_ctrl";
0214                 function = "hscif0";
0215         };
0216 
0217         scif2_pins: scif2 {
0218                 groups = "scif2_data_a";
0219                 function = "scif2";
0220         };
0221 
0222         scif_clk_pins: scif_clk {
0223                 groups = "scif_clk_a";
0224                 function = "scif_clk";
0225         };
0226 
0227         sdhi0_pins: sd0 {
0228                 groups = "sdhi0_data4", "sdhi0_ctrl";
0229                 function = "sdhi0";
0230                 power-source = <3300>;
0231         };
0232 
0233         sdhi0_pins_uhs: sd0_uhs {
0234                 groups = "sdhi0_data4", "sdhi0_ctrl";
0235                 function = "sdhi0";
0236                 power-source = <1800>;
0237         };
0238 
0239         sdhi2_pins: sd2 {
0240                 groups = "sdhi2_data4", "sdhi2_ctrl";
0241                 function = "sdhi2";
0242                 power-source = <1800>;
0243         };
0244 
0245         sdhi3_pins: sd3 {
0246                 groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds";
0247                 function = "sdhi3";
0248                 power-source = <1800>;
0249         };
0250 
0251         usb0_pins: usb0 {
0252                 groups = "usb0";
0253                 function = "usb0";
0254         };
0255 
0256         usb1_pins: usb1 {
0257                 mux {
0258                         groups = "usb1";
0259                         function = "usb1";
0260                 };
0261 
0262                 ovc {
0263                         pins = "GP_6_27";
0264                         bias-pull-up;
0265                 };
0266         };
0267 
0268         usb30_pins: usb30 {
0269                 groups = "usb30";
0270                 function = "usb30";
0271         };
0272 };
0273 
0274 &rwdt {
0275         timeout-sec = <60>;
0276         status = "okay";
0277 };
0278 
0279 &scif2 {
0280         pinctrl-0 = <&scif2_pins>;
0281         pinctrl-names = "default";
0282 
0283         status = "okay";
0284 };
0285 
0286 &scif_clk {
0287         clock-frequency = <14745600>;
0288 };
0289 
0290 &sdhi0 {
0291         pinctrl-0 = <&sdhi0_pins>;
0292         pinctrl-1 = <&sdhi0_pins_uhs>;
0293         pinctrl-names = "default", "state_uhs";
0294 
0295         vmmc-supply = <&reg_3p3v>;
0296         vqmmc-supply = <&vccq_sdhi0>;
0297         cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
0298         bus-width = <4>;
0299         sd-uhs-sdr50;
0300         sd-uhs-sdr104;
0301         status = "okay";
0302 };
0303 
0304 &sdhi2 {
0305         status = "okay";
0306         pinctrl-0 = <&sdhi2_pins>;
0307         pinctrl-names = "default";
0308 
0309         vmmc-supply = <&wlan_en_reg>;
0310         bus-width = <4>;
0311         non-removable;
0312         cap-power-off-card;
0313         keep-power-in-suspend;
0314 
0315         #address-cells = <1>;
0316         #size-cells = <0>;
0317         wlcore: wlcore@2 {
0318                 compatible = "ti,wl1837";
0319                 reg = <2>;
0320                 interrupt-parent = <&gpio2>;
0321                 interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
0322         };
0323 };
0324 
0325 &sdhi3 {
0326         pinctrl-0 = <&sdhi3_pins>;
0327         pinctrl-1 = <&sdhi3_pins>;
0328         pinctrl-names = "default", "state_uhs";
0329 
0330         vmmc-supply = <&reg_3p3v>;
0331         vqmmc-supply = <&reg_1p8v>;
0332         bus-width = <8>;
0333         mmc-hs200-1_8v;
0334         no-sd;
0335         no-sdio;
0336         non-removable;
0337         fixed-emmc-driver-type = <1>;
0338         status = "okay";
0339 };
0340 
0341 &usb_extal_clk {
0342         clock-frequency = <50000000>;
0343 };
0344 
0345 &usb2_phy0 {
0346         pinctrl-0 = <&usb0_pins>;
0347         pinctrl-names = "default";
0348 
0349         vbus-supply = <&vbus0_usb2>;
0350         status = "okay";
0351 };
0352 
0353 &usb2_phy1 {
0354         pinctrl-0 = <&usb1_pins>;
0355         pinctrl-names = "default";
0356 
0357         status = "okay";
0358 };
0359 
0360 &usb3_peri0 {
0361         phys = <&usb3_phy0>;
0362         phy-names = "usb";
0363 
0364         companion = <&xhci0>;
0365 
0366         status = "okay";
0367 };
0368 
0369 &usb3_phy0 {
0370         status = "okay";
0371 };
0372 
0373 &usb3s0_clk {
0374         clock-frequency = <100000000>;
0375 };
0376 
0377 &xhci0 {
0378         pinctrl-0 = <&usb30_pins>;
0379         pinctrl-names = "default";
0380 
0381         status = "okay";
0382 };