2 * Device Tree Source for the Porter board
4 * Copyright (C) 2015 Cogent Embedded, Inc.
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
17 * This command is required before playback/capture:
19 * amixer set "LINEOUT Mixer DACL" on
23 #include "r8a7791.dtsi"
24 #include <dt-bindings/gpio/gpio.h>
28 compatible = "renesas,porter", "renesas,r8a7791";
37 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
38 stdout-path = "serial0:115200n8";
42 device_type = "memory";
43 reg = <0 0x40000000 0 0x40000000>;
47 device_type = "memory";
48 reg = <2 0x00000000 0 0x40000000>;
51 vcc_sdhi0: regulator-vcc-sdhi0 {
52 compatible = "regulator-fixed";
54 regulator-name = "SDHI0 Vcc";
55 regulator-min-microvolt = <3300000>;
56 regulator-max-microvolt = <3300000>;
60 vccq_sdhi0: regulator-vccq-sdhi0 {
61 compatible = "regulator-gpio";
63 regulator-name = "SDHI0 VccQ";
64 regulator-min-microvolt = <1800000>;
65 regulator-max-microvolt = <3300000>;
67 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
73 vcc_sdhi2: regulator-vcc-sdhi2 {
74 compatible = "regulator-fixed";
76 regulator-name = "SDHI2 Vcc";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
82 vccq_sdhi2: regulator-vccq-sdhi2 {
83 compatible = "regulator-gpio";
85 regulator-name = "SDHI2 VccQ";
86 regulator-min-microvolt = <1800000>;
87 regulator-max-microvolt = <3300000>;
89 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
96 compatible = "hdmi-connector";
101 remote-endpoint = <&adv7511_out>;
107 compatible = "fixed-clock";
109 clock-frequency = <148500000>;
113 compatible = "fixed-clock";
115 clock-frequency = <74250000>;
118 x14_clk: audio_clock {
119 compatible = "fixed-clock";
121 clock-frequency = <11289600>;
125 compatible = "simple-audio-card";
127 simple-audio-card,format = "left_j";
128 simple-audio-card,bitclock-master = <&soundcodec>;
129 simple-audio-card,frame-master = <&soundcodec>;
131 simple-audio-card,cpu {
132 sound-dai = <&rcar_sound>;
135 soundcodec: simple-audio-card,codec {
136 sound-dai = <&ak4642>;
142 #address-cells = <1>;
144 compatible = "i2c-gpio";
146 scl-gpios = <&gpio2 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
147 sda-gpios = <&gpio2 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
148 i2c-gpio,delay-us = <5>;
152 * A fallback to GPIO is provided for I2C2.
155 compatible = "i2c-demux-pinctrl";
156 i2c-parent = <&i2c2>, <&gpioi2c2>;
157 i2c-bus-name = "i2c-hdmi";
158 #address-cells = <1>;
162 compatible = "asahi-kasei,ak4642";
163 #sound-dai-cells = <0>;
168 compatible = "adi,adv7180";
175 remote-endpoint = <&vin0ep>;
181 compatible = "adi,adv7511w";
183 interrupt-parent = <&gpio3>;
184 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
186 adi,input-depth = <8>;
187 adi,input-colorspace = "rgb";
188 adi,input-clock = "1x";
189 adi,input-style = <1>;
190 adi,input-justification = "evenly";
193 #address-cells = <1>;
198 adv7511_in: endpoint {
199 remote-endpoint = <&du_out_rgb>;
205 adv7511_out: endpoint {
206 remote-endpoint = <&hdmi_con>;
215 clock-frequency = <20000000>;
220 groups = "scif0_data_d";
225 groups = "eth_link", "eth_mdio", "eth_rmii";
230 groups = "intc_irq0";
235 groups = "sdhi0_data4", "sdhi0_ctrl";
240 groups = "sdhi2_data4", "sdhi2_ctrl";
245 groups = "qspi_ctrl", "qspi_data4";
265 groups = "vin0_data8", "vin0_clk";
270 groups = "can0_data";
275 groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
280 groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
284 audio_clk_pins: audio_clk {
285 groups = "audio_clk_a";
286 function = "audio_clk";
291 pinctrl-0 = <&scif0_pins>;
292 pinctrl-names = "default";
298 pinctrl-0 = <ðer_pins &phy1_pins>;
299 pinctrl-names = "default";
301 phy-handle = <&phy1>;
302 renesas,ether-link-active-low;
305 phy1: ethernet-phy@1 {
307 interrupt-parent = <&irqc0>;
308 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
309 micrel,led-mode = <1>;
314 pinctrl-0 = <&sdhi0_pins>;
315 pinctrl-names = "default";
317 vmmc-supply = <&vcc_sdhi0>;
318 vqmmc-supply = <&vccq_sdhi0>;
319 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
320 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
325 pinctrl-0 = <&sdhi2_pins>;
326 pinctrl-names = "default";
328 vmmc-supply = <&vcc_sdhi2>;
329 vqmmc-supply = <&vccq_sdhi2>;
330 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
335 pinctrl-0 = <&qspi_pins>;
336 pinctrl-names = "default";
341 compatible = "spansion,s25fl512s", "jedec,spi-nor";
343 spi-max-frequency = <30000000>;
344 spi-tx-bus-width = <4>;
345 spi-rx-bus-width = <4>;
349 compatible = "fixed-partitions";
350 #address-cells = <1>;
354 label = "loader_prg";
355 reg = <0x00000000 0x00040000>;
360 reg = <0x00040000 0x00400000>;
365 reg = <0x00440000 0x03bc0000>;
372 pinctrl-0 = <&i2c2_pins>;
373 pinctrl-names = "i2c-hdmi";
375 clock-frequency = <400000>;
382 /* composite video input */
385 pinctrl-0 = <&vin0_pins>;
386 pinctrl-names = "default";
390 remote-endpoint = <&adv7180>;
397 pinctrl-0 = <&usb0_pins>;
398 pinctrl-names = "default";
404 pinctrl-0 = <&usb1_pins>;
405 pinctrl-names = "default";
411 pinctrl-0 = <&usb0_pins>;
412 pinctrl-names = "default";
422 clock-frequency = <100000000>;
430 pinctrl-0 = <&can0_pins>;
431 pinctrl-names = "default";
437 pinctrl-0 = <&du_pins>;
438 pinctrl-names = "default";
441 clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>,
442 <&x3_clk>, <&x16_clk>;
443 clock-names = "du.0", "du.1", "dclkin.0", "dclkin.1";
448 remote-endpoint = <&adv7511_in>;
459 lvds_connector: endpoint {
466 pinctrl-0 = <&ssi_pins &audio_clk_pins>;
467 pinctrl-names = "default";
471 #sound-dai-cells = <0>;