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>, <1800000 0>; 111 }; 113 }; 112 114 >> 115 wlan_en_reg: regulator-wlan_en { >> 116 compatible = "regulator-fixed"; >> 117 regulator-name = "wlan-en-regulator"; >> 118 regulator-min-microvolt = <1800000>; >> 119 regulator-max-microvolt = <1800000>; >> 120 startup-delay-us = <70000>; >> 121 >> 122 gpio = <&gpio_expander 1 GPIO_ACTIVE_HIGH>; >> 123 enable-active-high; >> 124 }; >> 125 113 x302_clk: x302-clock { 126 x302_clk: x302-clock { 114 compatible = "fixed-clock"; 127 compatible = "fixed-clock"; 115 #clock-cells = <0>; 128 #clock-cells = <0>; 116 clock-frequency = <33000000>; 129 clock-frequency = <33000000>; 117 }; 130 }; 118 131 119 x304_clk: x304-clock { 132 x304_clk: x304-clock { 120 compatible = "fixed-clock"; 133 compatible = "fixed-clock"; 121 #clock-cells = <0>; 134 #clock-cells = <0>; 122 clock-frequency = <25000000>; 135 clock-frequency = <25000000>; 123 }; 136 }; 124 }; 137 }; 125 138 126 &audio_clk_a { 139 &audio_clk_a { 127 clock-frequency = <22579200>; 140 clock-frequency = <22579200>; 128 }; 141 }; 129 142 130 &du { 143 &du { 131 status = "okay"; 144 status = "okay"; 132 }; 145 }; 133 146 134 &ehci0 { 147 &ehci0 { 135 status = "okay"; 148 status = "okay"; 136 }; 149 }; 137 150 138 &ehci1 { 151 &ehci1 { 139 status = "okay"; 152 status = "okay"; 140 }; 153 }; 141 154 142 &extal_clk { 155 &extal_clk { 143 clock-frequency = <16666666>; 156 clock-frequency = <16666666>; 144 }; 157 }; 145 158 146 &extalr_clk { 159 &extalr_clk { 147 clock-frequency = <32768>; 160 clock-frequency = <32768>; 148 }; 161 }; 149 162 150 &gpio6 { 163 &gpio6 { 151 usb1-reset-hog { !! 164 usb1-reset { 152 gpio-hog; 165 gpio-hog; 153 gpios = <10 GPIO_ACTIVE_LOW>; 166 gpios = <10 GPIO_ACTIVE_LOW>; 154 output-low; 167 output-low; 155 line-name = "usb1-reset"; 168 line-name = "usb1-reset"; 156 }; 169 }; 157 }; 170 }; 158 171 159 &hdmi0 { 172 &hdmi0 { 160 status = "okay"; 173 status = "okay"; 161 174 162 ports { 175 ports { 163 port@1 { 176 port@1 { 164 reg = <1>; 177 reg = <1>; 165 rcar_dw_hdmi0_out: end 178 rcar_dw_hdmi0_out: endpoint { 166 remote-endpoin 179 remote-endpoint = <&hdmi0_con>; 167 }; 180 }; 168 }; 181 }; 169 port@2 { 182 port@2 { 170 reg = <2>; 183 reg = <2>; 171 dw_hdmi0_snd_in: endpo 184 dw_hdmi0_snd_in: endpoint { 172 remote-endpoin 185 remote-endpoint = <&rsnd_endpoint>; 173 }; 186 }; 174 }; 187 }; 175 }; 188 }; 176 }; 189 }; 177 190 178 &hscif0 { 191 &hscif0 { 179 pinctrl-0 = <&hscif0_pins>; 192 pinctrl-0 = <&hscif0_pins>; 180 pinctrl-names = "default"; 193 pinctrl-names = "default"; 181 194 182 uart-has-rtscts; 195 uart-has-rtscts; 183 status = "okay"; 196 status = "okay"; >> 197 >> 198 bluetooth { >> 199 compatible = "ti,wl1837-st"; >> 200 enable-gpios = <&gpio_expander 2 GPIO_ACTIVE_HIGH>; >> 201 }; 184 }; 202 }; 185 203 186 &hsusb { 204 &hsusb { 187 dr_mode = "otg"; 205 dr_mode = "otg"; 188 status = "okay"; 206 status = "okay"; 189 }; 207 }; 190 208 191 &i2c4 { 209 &i2c4 { 192 clock-frequency = <400000>; 210 clock-frequency = <400000>; 193 status = "okay"; 211 status = "okay"; 194 212 >> 213 gpio_expander: gpio@20 { >> 214 compatible = "onnn,pca9654"; >> 215 reg = <0x20>; >> 216 gpio-controller; >> 217 #gpio-cells = <2>; >> 218 }; >> 219 195 versaclock5: clock-generator@6a { 220 versaclock5: clock-generator@6a { 196 compatible = "idt,5p49v5923"; 221 compatible = "idt,5p49v5923"; 197 reg = <0x6a>; 222 reg = <0x6a>; 198 #clock-cells = <1>; 223 #clock-cells = <1>; 199 clocks = <&x304_clk>; 224 clocks = <&x304_clk>; 200 clock-names = "xin"; 225 clock-names = "xin"; 201 }; 226 }; 202 }; 227 }; 203 228 204 &ohci0 { 229 &ohci0 { 205 status = "okay"; 230 status = "okay"; 206 }; 231 }; 207 232 208 &ohci1 { 233 &ohci1 { 209 status = "okay"; 234 status = "okay"; 210 }; 235 }; 211 236 212 &pcie_bus_clk { 237 &pcie_bus_clk { 213 clock-frequency = <100000000>; 238 clock-frequency = <100000000>; 214 }; 239 }; 215 240 216 &pfc { 241 &pfc { 217 pinctrl-0 = <&scif_clk_pins>; 242 pinctrl-0 = <&scif_clk_pins>; 218 pinctrl-names = "default"; 243 pinctrl-names = "default"; 219 244 220 hscif0_pins: hscif0 { 245 hscif0_pins: hscif0 { 221 groups = "hscif0_data", "hscif 246 groups = "hscif0_data", "hscif0_ctrl"; 222 function = "hscif0"; 247 function = "hscif0"; 223 }; 248 }; 224 249 225 scif2_pins: scif2 { 250 scif2_pins: scif2 { 226 groups = "scif2_data_a"; 251 groups = "scif2_data_a"; 227 function = "scif2"; 252 function = "scif2"; 228 }; 253 }; 229 254 230 scif_clk_pins: scif_clk { 255 scif_clk_pins: scif_clk { 231 groups = "scif_clk_a"; 256 groups = "scif_clk_a"; 232 function = "scif_clk"; 257 function = "scif_clk"; 233 }; 258 }; 234 259 235 sdhi0_pins: sd0 { 260 sdhi0_pins: sd0 { 236 groups = "sdhi0_data4", "sdhi0 261 groups = "sdhi0_data4", "sdhi0_ctrl"; 237 function = "sdhi0"; 262 function = "sdhi0"; 238 power-source = <3300>; 263 power-source = <3300>; 239 }; 264 }; 240 265 241 sdhi0_pins_uhs: sd0_uhs { 266 sdhi0_pins_uhs: sd0_uhs { 242 groups = "sdhi0_data4", "sdhi0 267 groups = "sdhi0_data4", "sdhi0_ctrl"; 243 function = "sdhi0"; 268 function = "sdhi0"; 244 power-source = <1800>; 269 power-source = <1800>; 245 }; 270 }; 246 271 247 sdhi2_pins: sd2 { 272 sdhi2_pins: sd2 { 248 groups = "sdhi2_data4", "sdhi2 273 groups = "sdhi2_data4", "sdhi2_ctrl"; 249 function = "sdhi2"; 274 function = "sdhi2"; 250 power-source = <1800>; 275 power-source = <1800>; 251 }; 276 }; 252 277 253 sdhi3_pins: sd3 { 278 sdhi3_pins: sd3 { 254 groups = "sdhi3_data8", "sdhi3 279 groups = "sdhi3_data8", "sdhi3_ctrl", "sdhi3_ds"; 255 function = "sdhi3"; 280 function = "sdhi3"; 256 power-source = <1800>; 281 power-source = <1800>; 257 }; 282 }; 258 283 >> 284 sound_clk_pins: sound_clk { >> 285 groups = "audio_clk_a_a"; >> 286 function = "audio_clk"; >> 287 }; >> 288 259 usb0_pins: usb0 { 289 usb0_pins: usb0 { 260 groups = "usb0"; 290 groups = "usb0"; 261 function = "usb0"; 291 function = "usb0"; 262 }; 292 }; 263 293 264 usb1_pins: usb1 { 294 usb1_pins: usb1 { 265 mux { 295 mux { 266 groups = "usb1"; 296 groups = "usb1"; 267 function = "usb1"; 297 function = "usb1"; 268 }; 298 }; 269 299 270 ovc { 300 ovc { 271 pins = "GP_6_27"; 301 pins = "GP_6_27"; 272 bias-pull-up; 302 bias-pull-up; 273 }; 303 }; 274 }; 304 }; 275 305 276 usb30_pins: usb30 { 306 usb30_pins: usb30 { 277 groups = "usb30"; 307 groups = "usb30"; 278 function = "usb30"; 308 function = "usb30"; 279 }; 309 }; 280 }; 310 }; 281 311 >> 312 &rcar_sound { >> 313 pinctrl-0 = <&sound_clk_pins>; >> 314 pinctrl-names = "default"; >> 315 >> 316 status = "okay"; >> 317 >> 318 /* Single DAI */ >> 319 #sound-dai-cells = <0>; >> 320 >> 321 rsnd_port: port { >> 322 rsnd_endpoint: endpoint { >> 323 remote-endpoint = <&dw_hdmi0_snd_in>; >> 324 >> 325 dai-format = "i2s"; >> 326 bitclock-master = <&rsnd_endpoint>; >> 327 frame-master = <&rsnd_endpoint>; >> 328 >> 329 playback = <&ssi2>; >> 330 }; >> 331 }; >> 332 }; >> 333 282 &rwdt { 334 &rwdt { 283 timeout-sec = <60>; 335 timeout-sec = <60>; 284 status = "okay"; 336 status = "okay"; 285 }; 337 }; 286 338 287 &scif2 { 339 &scif2 { 288 pinctrl-0 = <&scif2_pins>; 340 pinctrl-0 = <&scif2_pins>; 289 pinctrl-names = "default"; 341 pinctrl-names = "default"; 290 342 291 status = "okay"; 343 status = "okay"; 292 }; 344 }; 293 345 294 &scif_clk { 346 &scif_clk { 295 clock-frequency = <14745600>; 347 clock-frequency = <14745600>; 296 }; 348 }; 297 349 298 &sdhi0 { 350 &sdhi0 { 299 pinctrl-0 = <&sdhi0_pins>; 351 pinctrl-0 = <&sdhi0_pins>; 300 pinctrl-1 = <&sdhi0_pins_uhs>; 352 pinctrl-1 = <&sdhi0_pins_uhs>; 301 pinctrl-names = "default", "state_uhs" 353 pinctrl-names = "default", "state_uhs"; 302 354 303 vmmc-supply = <®_3p3v>; 355 vmmc-supply = <®_3p3v>; 304 vqmmc-supply = <&vccq_sdhi0>; 356 vqmmc-supply = <&vccq_sdhi0>; 305 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW> 357 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; 306 bus-width = <4>; 358 bus-width = <4>; 307 sd-uhs-sdr50; 359 sd-uhs-sdr50; 308 sd-uhs-sdr104; 360 sd-uhs-sdr104; 309 status = "okay"; 361 status = "okay"; 310 }; 362 }; 311 363 312 &sdhi2 { 364 &sdhi2 { 313 status = "okay"; 365 status = "okay"; 314 pinctrl-0 = <&sdhi2_pins>; 366 pinctrl-0 = <&sdhi2_pins>; 315 pinctrl-names = "default"; 367 pinctrl-names = "default"; 316 368 317 vmmc-supply = <&wlan_en_reg>; 369 vmmc-supply = <&wlan_en_reg>; 318 bus-width = <4>; 370 bus-width = <4>; 319 non-removable; 371 non-removable; 320 cap-power-off-card; 372 cap-power-off-card; 321 keep-power-in-suspend; 373 keep-power-in-suspend; 322 374 323 #address-cells = <1>; 375 #address-cells = <1>; 324 #size-cells = <0>; 376 #size-cells = <0>; 325 wlcore: wlcore@2 { 377 wlcore: wlcore@2 { 326 compatible = "ti,wl1837"; 378 compatible = "ti,wl1837"; 327 reg = <2>; 379 reg = <2>; 328 interrupt-parent = <&gpio2>; 380 interrupt-parent = <&gpio2>; 329 interrupts = <5 IRQ_TYPE_LEVEL 381 interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; 330 }; 382 }; 331 }; 383 }; 332 384 333 &sdhi3 { 385 &sdhi3 { 334 pinctrl-0 = <&sdhi3_pins>; 386 pinctrl-0 = <&sdhi3_pins>; 335 pinctrl-1 = <&sdhi3_pins>; 387 pinctrl-1 = <&sdhi3_pins>; 336 pinctrl-names = "default", "state_uhs" 388 pinctrl-names = "default", "state_uhs"; 337 389 338 vmmc-supply = <®_3p3v>; 390 vmmc-supply = <®_3p3v>; 339 vqmmc-supply = <®_1p8v>; 391 vqmmc-supply = <®_1p8v>; 340 bus-width = <8>; 392 bus-width = <8>; 341 mmc-hs200-1_8v; 393 mmc-hs200-1_8v; 342 no-sd; << 343 no-sdio; << 344 non-removable; 394 non-removable; 345 fixed-emmc-driver-type = <1>; 395 fixed-emmc-driver-type = <1>; 346 status = "okay"; 396 status = "okay"; 347 }; 397 }; 348 398 349 &usb_extal_clk { 399 &usb_extal_clk { 350 clock-frequency = <50000000>; 400 clock-frequency = <50000000>; 351 }; 401 }; 352 402 353 &usb2_phy0 { 403 &usb2_phy0 { 354 pinctrl-0 = <&usb0_pins>; 404 pinctrl-0 = <&usb0_pins>; 355 pinctrl-names = "default"; 405 pinctrl-names = "default"; 356 406 357 vbus-supply = <&vbus0_usb2>; 407 vbus-supply = <&vbus0_usb2>; 358 status = "okay"; 408 status = "okay"; 359 }; 409 }; 360 410 361 &usb2_phy1 { 411 &usb2_phy1 { 362 pinctrl-0 = <&usb1_pins>; 412 pinctrl-0 = <&usb1_pins>; 363 pinctrl-names = "default"; 413 pinctrl-names = "default"; 364 414 365 status = "okay"; 415 status = "okay"; 366 }; 416 }; 367 417 368 &usb3_peri0 { 418 &usb3_peri0 { 369 phys = <&usb3_phy0>; 419 phys = <&usb3_phy0>; 370 phy-names = "usb"; 420 phy-names = "usb"; 371 421 372 companion = <&xhci0>; 422 companion = <&xhci0>; 373 423 374 status = "okay"; 424 status = "okay"; 375 }; 425 }; 376 426 377 &usb3_phy0 { 427 &usb3_phy0 { 378 status = "okay"; 428 status = "okay"; 379 }; 429 }; 380 430 381 &usb3s0_clk { 431 &usb3s0_clk { 382 clock-frequency = <100000000>; 432 clock-frequency = <100000000>; 383 }; 433 }; 384 434 385 &xhci0 { 435 &xhci0 { 386 pinctrl-0 = <&usb30_pins>; 436 pinctrl-0 = <&usb30_pins>; 387 pinctrl-names = "default"; 437 pinctrl-names = "default"; 388 438 389 status = "okay"; 439 status = "okay"; 390 }; 440 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.