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