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