1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the Porter board
5 * Copyright (C) 2015 Cogent Embedded, Inc.
14 * This command is required before playback/capture:
16 * amixer set "LINEOUT Mixer DACL" on
20 #include "r8a7791.dtsi"
21 #include <dt-bindings/gpio/gpio.h>
25 compatible = "renesas,porter", "renesas,r8a7791";
32 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
33 stdout-path = "serial0:115200n8";
37 device_type = "memory";
38 reg = <0 0x40000000 0 0x40000000>;
42 device_type = "memory";
43 reg = <2 0x00000000 0 0x40000000>;
46 vcc_sdhi0: regulator-vcc-sdhi0 {
47 compatible = "regulator-fixed";
49 regulator-name = "SDHI0 Vcc";
50 regulator-min-microvolt = <3300000>;
51 regulator-max-microvolt = <3300000>;
55 vccq_sdhi0: regulator-vccq-sdhi0 {
56 compatible = "regulator-gpio";
58 regulator-name = "SDHI0 VccQ";
59 regulator-min-microvolt = <1800000>;
60 regulator-max-microvolt = <3300000>;
62 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
68 vcc_sdhi2: regulator-vcc-sdhi2 {
69 compatible = "regulator-fixed";
71 regulator-name = "SDHI2 Vcc";
72 regulator-min-microvolt = <3300000>;
73 regulator-max-microvolt = <3300000>;
77 vccq_sdhi2: regulator-vccq-sdhi2 {
78 compatible = "regulator-gpio";
80 regulator-name = "SDHI2 VccQ";
81 regulator-min-microvolt = <1800000>;
82 regulator-max-microvolt = <3300000>;
84 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
91 compatible = "hdmi-connector";
96 remote-endpoint = <&adv7511_out>;
102 compatible = "fixed-clock";
104 clock-frequency = <148500000>;
108 compatible = "fixed-clock";
110 clock-frequency = <74250000>;
113 x14_clk: audio_clock {
114 compatible = "fixed-clock";
116 clock-frequency = <11289600>;
120 compatible = "simple-audio-card";
122 simple-audio-card,format = "left_j";
123 simple-audio-card,bitclock-master = <&soundcodec>;
124 simple-audio-card,frame-master = <&soundcodec>;
126 simple-audio-card,cpu {
127 sound-dai = <&rcar_sound>;
130 soundcodec: simple-audio-card,codec {
131 sound-dai = <&ak4642>;
138 clock-frequency = <20000000>;
143 groups = "scif0_data_d";
148 groups = "eth_link", "eth_mdio", "eth_rmii";
153 groups = "intc_irq0";
158 groups = "sdhi0_data4", "sdhi0_ctrl";
163 groups = "sdhi2_data4", "sdhi2_ctrl";
168 groups = "qspi_ctrl", "qspi_data4";
188 groups = "vin0_data8", "vin0_clk";
193 groups = "can0_data";
198 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
203 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
207 audio_clk_pins: audio_clk {
208 groups = "audio_clk_a";
209 function = "audio_clk";
214 pinctrl-0 = <&scif0_pins>;
215 pinctrl-names = "default";
221 pinctrl-0 = <ðer_pins &phy1_pins>;
222 pinctrl-names = "default";
224 phy-handle = <&phy1>;
225 renesas,ether-link-active-low;
228 phy1: ethernet-phy@1 {
230 interrupt-parent = <&irqc0>;
231 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
232 micrel,led-mode = <1>;
237 pinctrl-0 = <&sdhi0_pins>;
238 pinctrl-names = "default";
240 vmmc-supply = <&vcc_sdhi0>;
241 vqmmc-supply = <&vccq_sdhi0>;
242 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
243 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
248 pinctrl-0 = <&sdhi2_pins>;
249 pinctrl-names = "default";
251 vmmc-supply = <&vcc_sdhi2>;
252 vqmmc-supply = <&vccq_sdhi2>;
253 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
258 pinctrl-0 = <&qspi_pins>;
259 pinctrl-names = "default";
264 compatible = "spansion,s25fl512s", "jedec,spi-nor";
266 spi-max-frequency = <30000000>;
267 spi-tx-bus-width = <4>;
268 spi-rx-bus-width = <4>;
272 compatible = "fixed-partitions";
273 #address-cells = <1>;
277 label = "loader_prg";
278 reg = <0x00000000 0x00040000>;
283 reg = <0x00040000 0x00400000>;
288 reg = <0x00440000 0x03bc0000>;
295 pinctrl-0 = <&i2c2_pins>;
296 pinctrl-names = "default";
299 clock-frequency = <400000>;
302 compatible = "asahi-kasei,ak4642";
303 #sound-dai-cells = <0>;
308 compatible = "adi,adv7180";
315 remote-endpoint = <&vin0ep>;
321 compatible = "adi,adv7511w";
323 interrupt-parent = <&gpio3>;
324 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
326 adi,input-depth = <8>;
327 adi,input-colorspace = "rgb";
328 adi,input-clock = "1x";
329 adi,input-style = <1>;
330 adi,input-justification = "evenly";
333 #address-cells = <1>;
338 adv7511_in: endpoint {
339 remote-endpoint = <&du_out_rgb>;
345 adv7511_out: endpoint {
346 remote-endpoint = <&hdmi_con>;
355 clock-frequency = <400000>;
362 /* composite video input */
365 pinctrl-0 = <&vin0_pins>;
366 pinctrl-names = "default";
369 #address-cells = <1>;
373 remote-endpoint = <&adv7180>;
380 pinctrl-0 = <&usb0_pins>;
381 pinctrl-names = "default";
387 pinctrl-0 = <&usb1_pins>;
388 pinctrl-names = "default";
394 pinctrl-0 = <&usb0_pins>;
395 pinctrl-names = "default";
405 clock-frequency = <100000000>;
413 pinctrl-0 = <&can0_pins>;
414 pinctrl-names = "default";
420 pinctrl-0 = <&du_pins>;
421 pinctrl-names = "default";
424 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 726>,
425 <&x3_clk>, <&x16_clk>;
426 clock-names = "du.0", "du.1", "lvds.0",
427 "dclkin.0", "dclkin.1";
432 remote-endpoint = <&adv7511_in>;
439 pinctrl-0 = <&ssi_pins &audio_clk_pins>;
440 pinctrl-names = "default";
444 #sound-dai-cells = <0>;