blob: b7fa8261e02feb1716f586a94b2b9ee154f4ce0c [file] [log] [blame]
Sergei Shtylyovf138e542015-10-01 02:02:27 +03001/*
2 * Device Tree Source for the Porter board
3 *
4 * Copyright (C) 2015 Cogent Embedded, Inc.
5 *
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.
9 */
10
11/dts-v1/;
12#include "r8a7791.dtsi"
Sergei Shtylyovb941a5c2015-10-07 02:05:41 +030013#include <dt-bindings/gpio/gpio.h>
Sergei Shtylyovf138e542015-10-01 02:02:27 +030014
15/ {
16 model = "Porter";
17 compatible = "renesas,porter", "renesas,r8a7791";
18
19 aliases {
20 serial0 = &scif0;
21 };
22
23 chosen {
Sergei Shtylyov08770982015-10-06 01:51:01 +030024 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
Sergei Shtylyovf138e542015-10-01 02:02:27 +030025 stdout-path = &scif0;
26 };
27
28 memory@40000000 {
29 device_type = "memory";
30 reg = <0 0x40000000 0 0x40000000>;
31 };
32
33 memory@200000000 {
34 device_type = "memory";
35 reg = <2 0x00000000 0 0x40000000>;
36 };
Sergei Shtylyovb941a5c2015-10-07 02:05:41 +030037
38 vcc_sdhi0: regulator@0 {
39 compatible = "regulator-fixed";
40
41 regulator-name = "SDHI0 Vcc";
42 regulator-min-microvolt = <3300000>;
43 regulator-max-microvolt = <3300000>;
44 regulator-always-on;
45 };
46
47 vccq_sdhi0: regulator@1 {
48 compatible = "regulator-gpio";
49
50 regulator-name = "SDHI0 VccQ";
51 regulator-min-microvolt = <1800000>;
52 regulator-max-microvolt = <3300000>;
53
54 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
55 gpios-states = <1>;
56 states = <3300000 1
57 1800000 0>;
58 };
59
60 vcc_sdhi2: regulator@2 {
61 compatible = "regulator-fixed";
62
63 regulator-name = "SDHI2 Vcc";
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
66 regulator-always-on;
67 };
68
69 vccq_sdhi2: regulator@3 {
70 compatible = "regulator-gpio";
71
72 regulator-name = "SDHI2 VccQ";
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <3300000>;
75
76 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
77 gpios-states = <1>;
78 states = <3300000 1
79 1800000 0>;
80 };
Sergei Shtylyovf138e542015-10-01 02:02:27 +030081};
82
83&extal_clk {
84 clock-frequency = <20000000>;
85};
86
87&pfc {
88 scif0_pins: serial0 {
89 renesas,groups = "scif0_data_d";
90 renesas,function = "scif0";
91 };
Sergei Shtylyov08770982015-10-06 01:51:01 +030092
93 ether_pins: ether {
94 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
95 renesas,function = "eth";
96 };
97
98 phy1_pins: phy1 {
99 renesas,groups = "intc_irq0";
100 renesas,function = "intc";
101 };
Sergei Shtylyovb941a5c2015-10-07 02:05:41 +0300102
103 sdhi0_pins: sd0 {
104 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
105 renesas,function = "sdhi0";
106 };
107
108 sdhi2_pins: sd2 {
109 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
110 renesas,function = "sdhi2";
111 };
Sergei Shtylyovd6b94032015-10-09 00:44:18 +0300112
113 i2c2_pins: i2c2 {
114 renesas,groups = "i2c2";
115 renesas,function = "i2c2";
116 };
Sergei Shtylyov778f2e72015-10-09 00:45:49 +0300117
118 vin0_pins: vin0 {
119 renesas,groups = "vin0_data8", "vin0_clk";
120 renesas,function = "vin0";
121 };
Sergei Shtylyovf138e542015-10-01 02:02:27 +0300122};
123
124&scif0 {
125 pinctrl-0 = <&scif0_pins>;
126 pinctrl-names = "default";
127
128 status = "okay";
129};
Sergei Shtylyov08770982015-10-06 01:51:01 +0300130
131&ether {
132 pinctrl-0 = <&ether_pins &phy1_pins>;
133 pinctrl-names = "default";
134
135 phy-handle = <&phy1>;
136 renesas,ether-link-active-low;
137 status = "ok";
138
139 phy1: ethernet-phy@1 {
140 reg = <1>;
141 interrupt-parent = <&irqc0>;
142 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
143 micrel,led-mode = <1>;
144 };
145};
Sergei Shtylyovb941a5c2015-10-07 02:05:41 +0300146
147&sdhi0 {
148 pinctrl-0 = <&sdhi0_pins>;
149 pinctrl-names = "default";
150
151 vmmc-supply = <&vcc_sdhi0>;
152 vqmmc-supply = <&vccq_sdhi0>;
153 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
154 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
155 status = "okay";
156};
157
158&sdhi2 {
159 pinctrl-0 = <&sdhi2_pins>;
160 pinctrl-names = "default";
161
162 vmmc-supply = <&vcc_sdhi2>;
163 vqmmc-supply = <&vccq_sdhi2>;
164 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
165 status = "okay";
166};
Sergei Shtylyovefbb05c22015-10-08 01:00:06 +0300167
Sergei Shtylyovd6b94032015-10-09 00:44:18 +0300168&i2c2 {
169 pinctrl-0 = <&i2c2_pins>;
170 pinctrl-names = "default";
171
172 status = "okay";
173 clock-frequency = <400000>;
Sergei Shtylyov778f2e72015-10-09 00:45:49 +0300174
175 composite-in@20 {
176 compatible = "adi,adv7180";
177 reg = <0x20>;
178 remote = <&vin0>;
179
180 port {
181 adv7180: endpoint {
182 bus-width = <8>;
183 remote-endpoint = <&vin0ep>;
184 };
185 };
186 };
Sergei Shtylyovd6b94032015-10-09 00:44:18 +0300187};
188
Sergei Shtylyovefbb05c22015-10-08 01:00:06 +0300189&sata0 {
190 status = "okay";
191};
Sergei Shtylyov778f2e72015-10-09 00:45:49 +0300192
193/* composite video input */
194&vin0 {
195 status = "ok";
196 pinctrl-0 = <&vin0_pins>;
197 pinctrl-names = "default";
198
199 port {
200 #address-cells = <1>;
201 #size-cells = <0>;
202
203 vin0ep: endpoint {
204 remote-endpoint = <&adv7180>;
205 bus-width = <8>;
206 };
207 };
208};