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";
35 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
36 stdout-path = "serial0:115200n8";
40 device_type = "memory";
41 reg = <0 0x40000000 0 0x40000000>;
45 device_type = "memory";
46 reg = <2 0x00000000 0 0x40000000>;
49 vcc_sdhi0: regulator@0 {
50 compatible = "regulator-fixed";
52 regulator-name = "SDHI0 Vcc";
53 regulator-min-microvolt = <3300000>;
54 regulator-max-microvolt = <3300000>;
58 vccq_sdhi0: regulator@1 {
59 compatible = "regulator-gpio";
61 regulator-name = "SDHI0 VccQ";
62 regulator-min-microvolt = <1800000>;
63 regulator-max-microvolt = <3300000>;
65 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
71 vcc_sdhi2: regulator@2 {
72 compatible = "regulator-fixed";
74 regulator-name = "SDHI2 Vcc";
75 regulator-min-microvolt = <3300000>;
76 regulator-max-microvolt = <3300000>;
80 vccq_sdhi2: regulator@3 {
81 compatible = "regulator-gpio";
83 regulator-name = "SDHI2 VccQ";
84 regulator-min-microvolt = <1800000>;
85 regulator-max-microvolt = <3300000>;
87 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
94 compatible = "hdmi-connector";
99 remote-endpoint = <&adv7511_out>;
105 compatible = "fixed-clock";
107 clock-frequency = <148500000>;
111 compatible = "fixed-clock";
113 clock-frequency = <74250000>;
117 compatible = "fixed-clock";
119 clock-frequency = <11289600>;
120 clock-output-names = "audio_clock";
124 compatible = "simple-audio-card";
126 simple-audio-card,format = "left_j";
127 simple-audio-card,bitclock-master = <&soundcodec>;
128 simple-audio-card,frame-master = <&soundcodec>;
130 simple-audio-card,cpu {
131 sound-dai = <&rcar_sound>;
134 soundcodec: simple-audio-card,codec {
135 sound-dai = <&ak4642>;
142 clock-frequency = <20000000>;
146 scif0_pins: serial0 {
147 renesas,groups = "scif0_data_d";
148 renesas,function = "scif0";
152 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
153 renesas,function = "eth";
157 renesas,groups = "intc_irq0";
158 renesas,function = "intc";
162 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
163 renesas,function = "sdhi0";
167 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
168 renesas,function = "sdhi2";
172 renesas,groups = "qspi_ctrl", "qspi_data4";
173 renesas,function = "qspi";
177 renesas,groups = "i2c2";
178 renesas,function = "i2c2";
182 renesas,groups = "usb0";
183 renesas,function = "usb0";
187 renesas,groups = "usb1";
188 renesas,function = "usb1";
192 renesas,groups = "vin0_data8", "vin0_clk";
193 renesas,function = "vin0";
197 renesas,groups = "can0_data";
198 renesas,function = "can0";
202 renesas,groups = "du_rgb888", "du_sync", "du_disp", "du_clk_out_0";
203 renesas,function = "du";
207 renesas,groups = "ssi0129_ctrl", "ssi0_data", "ssi1_data";
208 renesas,function = "ssi";
211 audio_clk_pins: audio_clk {
212 renesas,groups = "audio_clk_a";
213 renesas,function = "audio_clk";
218 pinctrl-0 = <&scif0_pins>;
219 pinctrl-names = "default";
225 pinctrl-0 = <ðer_pins &phy1_pins>;
226 pinctrl-names = "default";
228 phy-handle = <&phy1>;
229 renesas,ether-link-active-low;
232 phy1: ethernet-phy@1 {
234 interrupt-parent = <&irqc0>;
235 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
236 micrel,led-mode = <1>;
241 pinctrl-0 = <&sdhi0_pins>;
242 pinctrl-names = "default";
244 vmmc-supply = <&vcc_sdhi0>;
245 vqmmc-supply = <&vccq_sdhi0>;
246 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
247 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
252 pinctrl-0 = <&sdhi2_pins>;
253 pinctrl-names = "default";
255 vmmc-supply = <&vcc_sdhi2>;
256 vqmmc-supply = <&vccq_sdhi2>;
257 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
262 pinctrl-0 = <&qspi_pins>;
263 pinctrl-names = "default";
268 compatible = "spansion,s25fl512s", "jedec,spi-nor";
270 spi-max-frequency = <30000000>;
271 spi-tx-bus-width = <4>;
272 spi-rx-bus-width = <4>;
276 compatible = "fixed-partitions";
277 #address-cells = <1>;
281 label = "loader_prg";
282 reg = <0x00000000 0x00040000>;
287 reg = <0x00040000 0x00400000>;
292 reg = <0x00440000 0x03bc0000>;
299 pinctrl-0 = <&i2c2_pins>;
300 pinctrl-names = "default";
303 clock-frequency = <400000>;
306 compatible = "asahi-kasei,ak4642";
307 #sound-dai-cells = <0>;
312 compatible = "adi,adv7180";
319 remote-endpoint = <&vin0ep>;
325 compatible = "adi,adv7511w";
327 interrupt-parent = <&gpio3>;
328 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
330 adi,input-depth = <8>;
331 adi,input-colorspace = "rgb";
332 adi,input-clock = "1x";
333 adi,input-style = <1>;
334 adi,input-justification = "evenly";
337 #address-cells = <1>;
342 adv7511_in: endpoint {
343 remote-endpoint = <&du_out_rgb>;
349 adv7511_out: endpoint {
350 remote-endpoint = <&hdmi_con>;
361 /* composite video input */
364 pinctrl-0 = <&vin0_pins>;
365 pinctrl-names = "default";
368 #address-cells = <1>;
372 remote-endpoint = <&adv7180>;
379 pinctrl-0 = <&usb0_pins>;
380 pinctrl-names = "default";
386 pinctrl-0 = <&usb1_pins>;
387 pinctrl-names = "default";
393 pinctrl-0 = <&usb0_pins>;
394 pinctrl-names = "default";
404 clock-frequency = <100000000>;
413 pinctrl-0 = <&can0_pins>;
414 pinctrl-names = "default";
420 pinctrl-0 = <&du_pins>;
421 pinctrl-names = "default";
424 clocks = <&mstp7_clks R8A7791_CLK_DU0>,
425 <&mstp7_clks R8A7791_CLK_DU1>,
426 <&mstp7_clks R8A7791_CLK_LVDS0>,
427 <&x3_clk>, <&x16_clk>;
428 clock-names = "du.0", "du.1", "lvds.0",
429 "dclkin.0", "dclkin.1";
434 remote-endpoint = <&adv7511_in>;
441 pinctrl-0 = <&ssi_pins &audio_clk_pins>;
442 pinctrl-names = "default";
446 #sound-dai-cells = <0>;