1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Device Tree Source for the Silicon Linux RZ/G2E 96board platform (CAT874) 4 * 5 * Copyright (C) 2019 Renesas Electronics Corp. 6 */ 7 8/dts-v1/; 9#include "r8a774c0.dtsi" 10#include <dt-bindings/gpio/gpio.h> 11#include <dt-bindings/display/tda998x.h> 12 13/ { 14 model = "Silicon Linux RZ/G2E 96board platform (CAT874)"; 15 compatible = "si-linux,cat874", "renesas,r8a774c0"; 16 17 aliases { 18 serial0 = &scif2; 19 serial1 = &hscif2; 20 }; 21 22 chosen { 23 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; 24 stdout-path = "serial0:115200n8"; 25 }; 26 27 hdmi-out { 28 compatible = "hdmi-connector"; 29 type = "a"; 30 31 port { 32 hdmi_con_out: endpoint { 33 remote-endpoint = <&tda19988_out>; 34 }; 35 }; 36 }; 37 38 leds { 39 compatible = "gpio-leds"; 40 41 led0 { 42 gpios = <&gpio5 19 GPIO_ACTIVE_HIGH>; 43 label = "LED0"; 44 }; 45 46 led1 { 47 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>; 48 label = "LED1"; 49 }; 50 51 led2 { 52 gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>; 53 label = "LED2"; 54 }; 55 56 led3 { 57 gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>; 58 label = "LED3"; 59 }; 60 }; 61 62 memory@48000000 { 63 device_type = "memory"; 64 /* first 128MB is reserved for secure area. */ 65 reg = <0x0 0x48000000 0x0 0x78000000>; 66 }; 67 68 sound: sound { 69 compatible = "simple-audio-card"; 70 71 simple-audio-card,name = "CAT874 HDMI sound"; 72 simple-audio-card,format = "i2s"; 73 simple-audio-card,bitclock-master = <&sndcpu>; 74 simple-audio-card,frame-master = <&sndcpu>; 75 76 sndcpu: simple-audio-card,cpu { 77 sound-dai = <&rcar_sound>; 78 }; 79 80 sndcodec: simple-audio-card,codec { 81 sound-dai = <&tda19988>; 82 }; 83 }; 84 85 vcc_sdhi0: regulator-vcc-sdhi0 { 86 compatible = "regulator-fixed"; 87 88 regulator-name = "SDHI0 Vcc"; 89 regulator-min-microvolt = <3300000>; 90 regulator-max-microvolt = <3300000>; 91 regulator-always-on; 92 regulator-boot-on; 93 }; 94 95 vccq_sdhi0: regulator-vccq-sdhi0 { 96 compatible = "regulator-gpio"; 97 98 regulator-name = "SDHI0 VccQ"; 99 regulator-min-microvolt = <1800000>; 100 regulator-max-microvolt = <3300000>; 101 102 gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; 103 gpios-states = <1>; 104 states = <3300000 1 105 1800000 0>; 106 }; 107 108 wlan_en_reg: fixedregulator { 109 compatible = "regulator-fixed"; 110 regulator-name = "wlan-en-regulator"; 111 regulator-min-microvolt = <1800000>; 112 regulator-max-microvolt = <1800000>; 113 startup-delay-us = <70000>; 114 115 gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>; 116 enable-active-high; 117 }; 118 119 x13_clk: x13 { 120 compatible = "fixed-clock"; 121 #clock-cells = <0>; 122 clock-frequency = <74250000>; 123 }; 124}; 125 126&audio_clk_a { 127 clock-frequency = <22579200>; 128}; 129 130&du { 131 pinctrl-0 = <&du_pins>; 132 pinctrl-names = "default"; 133 status = "okay"; 134 135 clocks = <&cpg CPG_MOD 724>, 136 <&cpg CPG_MOD 723>, 137 <&x13_clk>; 138 clock-names = "du.0", "du.1", "dclkin.0"; 139 140 ports { 141 port@0 { 142 endpoint { 143 remote-endpoint = <&tda19988_in>; 144 }; 145 }; 146 }; 147}; 148 149&ehci0 { 150 dr_mode = "host"; 151 status = "okay"; 152}; 153 154&extal_clk { 155 clock-frequency = <48000000>; 156}; 157 158&hscif2 { 159 pinctrl-0 = <&hscif2_pins>; 160 pinctrl-names = "default"; 161 162 uart-has-rtscts; 163 status = "okay"; 164 165 bluetooth { 166 compatible = "ti,wl1837-st"; 167 enable-gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; 168 }; 169}; 170 171&i2c0 { 172 status = "okay"; 173 clock-frequency = <100000>; 174 175 tda19988: tda19988@70 { 176 compatible = "nxp,tda998x"; 177 reg = <0x70>; 178 interrupt-parent = <&gpio1>; 179 interrupts = <1 IRQ_TYPE_LEVEL_LOW>; 180 181 video-ports = <0x234501>; 182 183 #sound-dai-cells = <0>; 184 audio-ports = <TDA998x_I2S 0x03>; 185 clocks = <&rcar_sound 1>; 186 187 ports { 188 #address-cells = <1>; 189 #size-cells = <0>; 190 191 port@0 { 192 reg = <0>; 193 tda19988_in: endpoint { 194 remote-endpoint = <&du_out_rgb>; 195 }; 196 }; 197 198 port@1 { 199 reg = <1>; 200 tda19988_out: endpoint { 201 remote-endpoint = <&hdmi_con_out>; 202 }; 203 }; 204 }; 205 }; 206}; 207 208&i2c1 { 209 pinctrl-0 = <&i2c1_pins>; 210 pinctrl-names = "default"; 211 212 status = "okay"; 213 clock-frequency = <400000>; 214 215 rtc@32 { 216 compatible = "epson,rx8571"; 217 reg = <0x32>; 218 }; 219}; 220 221&lvds0 { 222 status = "okay"; 223 224 clocks = <&cpg CPG_MOD 727>, <&x13_clk>, <&extal_clk>; 225 clock-names = "fck", "dclkin.0", "extal"; 226}; 227 228&ohci0 { 229 dr_mode = "host"; 230 status = "okay"; 231}; 232 233&pcie_bus_clk { 234 clock-frequency = <100000000>; 235}; 236 237&pciec0 { 238 /* Map all possible DDR as inbound ranges */ 239 dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000>; 240}; 241 242&pfc { 243 du_pins: du { 244 groups = "du_rgb888", "du_clk_out_0", "du_sync", "du_disp", 245 "du_clk_in_0"; 246 function = "du"; 247 }; 248 249 i2c1_pins: i2c1 { 250 groups = "i2c1_b"; 251 function = "i2c1"; 252 }; 253 254 hscif2_pins: hscif2 { 255 groups = "hscif2_data_a", "hscif2_ctrl_a"; 256 function = "hscif2"; 257 }; 258 259 scif2_pins: scif2 { 260 groups = "scif2_data_a"; 261 function = "scif2"; 262 }; 263 264 sdhi0_pins: sd0 { 265 groups = "sdhi0_data4", "sdhi0_ctrl"; 266 function = "sdhi0"; 267 power-source = <3300>; 268 }; 269 270 sdhi0_pins_uhs: sd0_uhs { 271 groups = "sdhi0_data4", "sdhi0_ctrl"; 272 function = "sdhi0"; 273 power-source = <1800>; 274 }; 275 276 sdhi3_pins: sd3 { 277 groups = "sdhi3_data4", "sdhi3_ctrl"; 278 function = "sdhi3"; 279 power-source = <1800>; 280 }; 281 282 sound_pins: sound { 283 groups = "ssi01239_ctrl", "ssi0_data"; 284 function = "ssi"; 285 }; 286 287 sound_clk_pins: sound_clk { 288 groups = "audio_clkout1_a"; 289 function = "audio_clk"; 290 }; 291 292 usb30_pins: usb30 { 293 groups = "usb30", "usb30_id"; 294 function = "usb30"; 295 }; 296}; 297 298&rcar_sound { 299 pinctrl-0 = <&sound_pins &sound_clk_pins>; 300 pinctrl-names = "default"; 301 302 /* Single DAI */ 303 #sound-dai-cells = <0>; 304 305 /* audio_clkout0/1/2/3 */ 306 #clock-cells = <1>; 307 clock-frequency = <11289600>; 308 309 status = "okay"; 310 311 rcar_sound,dai { 312 dai0 { 313 playback = <&ssi0 &src0 &dvc0>; 314 }; 315 }; 316}; 317 318&rwdt { 319 timeout-sec = <60>; 320 status = "okay"; 321}; 322 323&scif2 { 324 pinctrl-0 = <&scif2_pins>; 325 pinctrl-names = "default"; 326 327 status = "okay"; 328}; 329 330&sdhi0 { 331 pinctrl-0 = <&sdhi0_pins>; 332 pinctrl-1 = <&sdhi0_pins_uhs>; 333 pinctrl-names = "default", "state_uhs"; 334 335 vmmc-supply = <&vcc_sdhi0>; 336 vqmmc-supply = <&vccq_sdhi0>; 337 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; 338 bus-width = <4>; 339 sd-uhs-sdr50; 340 sd-uhs-sdr104; 341 status = "okay"; 342}; 343 344&sdhi3 { 345 status = "okay"; 346 pinctrl-0 = <&sdhi3_pins>; 347 pinctrl-names = "default"; 348 349 vmmc-supply = <&wlan_en_reg>; 350 bus-width = <4>; 351 non-removable; 352 cap-power-off-card; 353 keep-power-in-suspend; 354 355 #address-cells = <1>; 356 #size-cells = <0>; 357 wlcore: wlcore@2 { 358 compatible = "ti,wl1837"; 359 reg = <2>; 360 interrupt-parent = <&gpio1>; 361 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 362 }; 363}; 364 365&usb2_phy0 { 366 renesas,no-otg-pins; 367 status = "okay"; 368}; 369 370&usb3_peri0 { 371 companion = <&xhci0>; 372 status = "okay"; 373}; 374 375&xhci0 { 376 pinctrl-0 = <&usb30_pins>; 377 pinctrl-names = "default"; 378 379 status = "okay"; 380}; 381