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