1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Device Tree Source for the HiHope RZ/G2H Rev.4.0 and 4 * HiHope RZ/G2[MN] Rev.[2.0/3.0/4.0] main board common parts 5 * 6 * Copyright (C) 2019 Renesas Electronics Corp. 7 */ 8 9#include <dt-bindings/gpio/gpio.h> 10 11/ { 12 aliases { 13 i2c0 = &i2c0; 14 i2c1 = &i2c1; 15 i2c2 = &i2c2; 16 i2c3 = &i2c3; 17 i2c4 = &i2c4; 18 i2c5 = &i2c5; 19 i2c6 = &i2c6; 20 i2c7 = &iic_pmic; 21 serial0 = &scif2; 22 serial1 = &hscif0; 23 mmc0 = &sdhi3; 24 mmc1 = &sdhi0; 25 mmc2 = &sdhi2; 26 }; 27 28 chosen { 29 bootargs = "ignore_loglevel"; 30 stdout-path = "serial0:115200n8"; 31 }; 32 33 hdmi0-out { 34 compatible = "hdmi-connector"; 35 type = "a"; 36 37 port { 38 hdmi0_con: endpoint { 39 remote-endpoint = <&rcar_dw_hdmi0_out>; 40 }; 41 }; 42 }; 43 44 leds { 45 compatible = "gpio-leds"; 46 47 led1 { 48 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>; 49 }; 50 51 led2 { 52 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; 53 }; 54 55 led3 { 56 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 57 }; 58 59 led4 { 60 gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>; 61 }; 62 }; 63 64 reg_1p8v: regulator-1p8v { 65 compatible = "regulator-fixed"; 66 regulator-name = "fixed-1.8V"; 67 regulator-min-microvolt = <1800000>; 68 regulator-max-microvolt = <1800000>; 69 regulator-boot-on; 70 regulator-always-on; 71 }; 72 73 reg_3p3v: regulator-3p3v { 74 compatible = "regulator-fixed"; 75 regulator-name = "fixed-3.3V"; 76 regulator-min-microvolt = <3300000>; 77 regulator-max-microvolt = <3300000>; 78 regulator-boot-on; 79 regulator-always-on; 80 }; 81 82 sound_card: sound { 83 compatible = "audio-graph-card"; 84 85 label = "rcar-sound"; 86 87 dais = <&rsnd_port>; 88 }; 89 90 vbus0_usb2: regulator-vbus0-usb2 { 91 compatible = "regulator-fixed"; 92 93 regulator-name = "USB20_VBUS0"; 94 regulator-min-microvolt = <5000000>; 95 regulator-max-microvolt = <5000000>; 96 97 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>; 98 enable-active-high; 99 }; 100 101 vccq_sdhi0: regulator-vccq-sdhi0 { 102 compatible = "regulator-gpio"; 103 104 regulator-name = "SDHI0 VccQ"; 105 regulator-min-microvolt = <1800000>; 106 regulator-max-microvolt = <3300000>; 107 108 gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>; 109 gpios-states = <1>; 110 states = <3300000 1>, <1800000 0>; 111 }; 112 113 x302_clk: x302-clock { 114 compatible = "fixed-clock"; 115 #clock-cells = <0>; 116 clock-frequency = <33000000>; 117 }; 118 119 x304_clk: x304-clock { 120 compatible = "fixed-clock"; 121 #clock-cells = <0>; 122 clock-frequency = <25000000>; 123 }; 124}; 125 126&audio_clk_a { 127 clock-frequency = <22579200>; 128}; 129 130&du { 131 status = "okay"; 132}; 133 134&ehci0 { 135 status = "okay"; 136}; 137 138&ehci1 { 139 status = "okay"; 140}; 141 142&extal_clk { 143 clock-frequency = <16666666>; 144}; 145 146&extalr_clk { 147 clock-frequency = <32768>; 148}; 149 150&gpio6 { 151 usb1-reset-hog { 152 gpio-hog; 153 gpios = <10 GPIO_ACTIVE_LOW>; 154 output-low; 155 line-name = "usb1-reset"; 156 }; 157}; 158 159&hdmi0 { 160 status = "okay"; 161 162 ports { 163 port@1 { 164 reg = <1>; 165 rcar_dw_hdmi0_out: endpoint { 166 remote-endpoint = <&hdmi0_con>; 167 }; 168 }; 169 port@2 { 170 reg = <2>; 171 dw_hdmi0_snd_in: endpoint { 172 remote-endpoint = <&rsnd_endpoint>; 173 }; 174 }; 175 }; 176}; 177 178&hscif0 { 179 pinctrl-0 = <&hscif0_pins>; 180 pinctrl-names = "default"; 181 182 uart-has-rtscts; 183 status = "okay"; 184}; 185 186&hsusb { 187 dr_mode = "otg"; 188 status = "okay"; 189}; 190 191&i2c4 { 192 clock-frequency = <400000>; 193 status = "okay"; 194 195 versaclock5: clock-generator@6a { 196 compatible = "idt,5p49v5923"; 197 reg = <0x6a>; 198 #clock-cells = <1>; 199 clocks = <&x304_clk>; 200 clock-names = "xin"; 201 idt,shutdown = <0>; 202 idt,output-enable-active = <1>; 203 }; 204}; 205 206&ohci0 { 207 status = "okay"; 208}; 209 210&ohci1 { 211 status = "okay"; 212}; 213 214&pcie_bus_clk { 215 clock-frequency = <100000000>; 216}; 217 218&pfc { 219 pinctrl-0 = <&scif_clk_pins>; 220 pinctrl-names = "default"; 221 222 hscif0_pins: hscif0 { 223 groups = "hscif0_data", "hscif0_ctrl"; 224 function = "hscif0"; 225 }; 226 227 scif2_pins: scif2 { 228 groups = "scif2_data_a"; 229 function = "scif2"; 230 }; 231 232 scif_clk_pins: scif_clk { 233 groups = "scif_clk_a"; 234 function = "scif_clk"; 235 }; 236 237 sdhi0_pins: sd0 { 238 groups = "sdhi0_data4", "sdhi0_ctrl"; 239 function = "sdhi0"; 240 power-source = <3300>; 241 }; 242 243 sdhi0_pins_uhs: sd0_uhs { 244 groups = "sdhi0_data4", "sdhi0_ctrl"; 245 function = "sdhi0"; 246 power-source = <1800>; 247 }; 248 249 sdhi2_pins: sd2 { 250 groups = "sdhi2_data4", "sdhi2_ctrl"; 251 function = "sdhi2"; 252 power-source = <1800>; 253 }; 254 255 sdhi3_pins: sd3 { 256 groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds"; 257 function = "sdhi3"; 258 power-source = <1800>; 259 }; 260 261 usb0_pins: usb0 { 262 groups = "usb0"; 263 function = "usb0"; 264 }; 265 266 usb1_pins: usb1 { 267 mux { 268 groups = "usb1"; 269 function = "usb1"; 270 }; 271 272 ovc { 273 pins = "GP_6_27"; 274 bias-pull-up; 275 }; 276 }; 277 278 usb30_pins: usb30 { 279 groups = "usb30"; 280 function = "usb30"; 281 }; 282}; 283 284&rwdt { 285 timeout-sec = <60>; 286 status = "okay"; 287}; 288 289&scif2 { 290 pinctrl-0 = <&scif2_pins>; 291 pinctrl-names = "default"; 292 293 status = "okay"; 294}; 295 296&scif_clk { 297 clock-frequency = <14745600>; 298}; 299 300&sdhi0 { 301 pinctrl-0 = <&sdhi0_pins>; 302 pinctrl-1 = <&sdhi0_pins_uhs>; 303 pinctrl-names = "default", "state_uhs"; 304 305 vmmc-supply = <®_3p3v>; 306 vqmmc-supply = <&vccq_sdhi0>; 307 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; 308 bus-width = <4>; 309 sd-uhs-sdr50; 310 sd-uhs-sdr104; 311 status = "okay"; 312}; 313 314&sdhi2 { 315 status = "okay"; 316 pinctrl-0 = <&sdhi2_pins>; 317 pinctrl-names = "default"; 318 319 vmmc-supply = <&wlan_en_reg>; 320 bus-width = <4>; 321 non-removable; 322 cap-power-off-card; 323 keep-power-in-suspend; 324 325 #address-cells = <1>; 326 #size-cells = <0>; 327 wlcore: wlcore@2 { 328 compatible = "ti,wl1837"; 329 reg = <2>; 330 interrupts-extended = <&gpio2 5 IRQ_TYPE_LEVEL_HIGH>; 331 }; 332}; 333 334&sdhi3 { 335 pinctrl-0 = <&sdhi3_pins>; 336 pinctrl-1 = <&sdhi3_pins>; 337 pinctrl-names = "default", "state_uhs"; 338 339 vmmc-supply = <®_3p3v>; 340 vqmmc-supply = <®_1p8v>; 341 bus-width = <8>; 342 mmc-hs200-1_8v; 343 no-sd; 344 no-sdio; 345 non-removable; 346 fixed-emmc-driver-type = <1>; 347 status = "okay"; 348}; 349 350&usb_extal_clk { 351 clock-frequency = <50000000>; 352}; 353 354&usb2_phy0 { 355 pinctrl-0 = <&usb0_pins>; 356 pinctrl-names = "default"; 357 358 vbus-supply = <&vbus0_usb2>; 359 status = "okay"; 360}; 361 362&usb2_phy1 { 363 pinctrl-0 = <&usb1_pins>; 364 pinctrl-names = "default"; 365 366 status = "okay"; 367}; 368 369&usb3_peri0 { 370 phys = <&usb3_phy0>; 371 phy-names = "usb"; 372 373 companion = <&xhci0>; 374 375 status = "okay"; 376}; 377 378&usb3_phy0 { 379 status = "okay"; 380}; 381 382&usb3s0_clk { 383 clock-frequency = <100000000>; 384}; 385 386&xhci0 { 387 pinctrl-0 = <&usb30_pins>; 388 pinctrl-names = "default"; 389 390 status = "okay"; 391}; 392