WIP FPC-III support
[linux/fpc-iii.git] / arch / arm / boot / dts / r8a7790-stout.dts
blob6a457bc9280a4949fe750c9aab566a06ca9e0915
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for the Stout board
4  *
5  * Copyright (C) 2018 Marek Vasut <marek.vasut@gmail.com>
6  */
8 /dts-v1/;
9 #include "r8a7790.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
13 / {
14         model = "Stout";
15         compatible = "renesas,stout", "renesas,r8a7790";
17         aliases {
18                 serial0 = &scifa0;
19         };
21         chosen {
22                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
23                 stdout-path = "serial0:115200n8";
24         };
26         memory@40000000 {
27                 device_type = "memory";
28                 reg = <0 0x40000000 0 0x40000000>;
29         };
31         leds {
32                 compatible = "gpio-leds";
33                 led1 {
34                         gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
35                 };
36                 led2 {
37                         gpios = <&gpio4 23 GPIO_ACTIVE_LOW>;
38                 };
39                 led3 {
40                         gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
41                 };
42                 led5 {
43                         gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
44                 };
45         };
47         fixedregulator3v3: regulator-3v3 {
48                 compatible = "regulator-fixed";
49                 regulator-name = "fixed-3.3V";
50                 regulator-min-microvolt = <3300000>;
51                 regulator-max-microvolt = <3300000>;
52                 regulator-boot-on;
53                 regulator-always-on;
54         };
56         vcc_sdhi0: regulator-vcc-sdhi0 {
57                 compatible = "regulator-fixed";
59                 regulator-name = "SDHI0 Vcc";
60                 regulator-min-microvolt = <3300000>;
61                 regulator-max-microvolt = <3300000>;
63                 gpio = <&gpio5 24 GPIO_ACTIVE_HIGH>;
64                 enable-active-high;
65         };
67         hdmi-out {
68                 compatible = "hdmi-connector";
69                 type = "a";
71                 port {
72                         hdmi_con_out: endpoint {
73                                 remote-endpoint = <&adv7511_out>;
74                         };
75                 };
76         };
78         osc1_clk: osc1-clock {
79                 compatible = "fixed-clock";
80                 #clock-cells = <0>;
81                 clock-frequency = <148500000>;
82         };
84         osc4_clk: osc4-clock {
85                 compatible = "fixed-clock";
86                 #clock-cells = <0>;
87                 clock-frequency = <12000000>;
88         };
91 &du {
92         pinctrl-0 = <&du_pins>;
93         pinctrl-names = "default";
94         status = "okay";
96         clocks = <&cpg CPG_MOD 724>, <&cpg CPG_MOD 723>, <&cpg CPG_MOD 722>,
97                  <&osc1_clk>;
98         clock-names = "du.0", "du.1", "du.2", "dclkin.0";
100         ports {
101                 port@0 {
102                         endpoint {
103                                 remote-endpoint = <&adv7511_in>;
104                         };
105                 };
106         };
109 &lvds0 {
110         ports {
111                 port@1 {
112                         lvds_connector0: endpoint {
113                         };
114                 };
115         };
118 &lvds1 {
119         ports {
120                 port@1 {
121                         lvds_connector1: endpoint {
122                         };
123                 };
124         };
127 &extal_clk {
128         clock-frequency = <20000000>;
131 &pfc {
133         pinctrl-0 = <&scif_clk_pins>;
134         pinctrl-names = "default";
136         du_pins: du {
137                 groups = "du_rgb888", "du_sync_1", "du_clk_out_0";
138                 function = "du";
139         };
141         scifa0_pins: scifa0 {
142                 groups = "scifa0_data_b";
143                 function = "scifa0";
144         };
146         scif_clk_pins: scif_clk {
147                 groups = "scif_clk";
148                 function = "scif_clk";
149         };
151         ether_pins: ether {
152                 groups = "eth_link", "eth_mdio", "eth_rmii";
153                 function = "eth";
154         };
156         phy1_pins: phy1 {
157                 groups = "intc_irq1";
158                 function = "intc";
159         };
161         sdhi0_pins: sd0 {
162                 groups = "sdhi0_data4", "sdhi0_ctrl";
163                 function = "sdhi0";
164                 power-source = <3300>;
165         };
167         qspi_pins: qspi {
168                 groups = "qspi_ctrl", "qspi_data4";
169                 function = "qspi";
170         };
172         iic2_pins: iic2 {
173                 groups = "iic2_b";
174                 function = "iic2";
175         };
177         iic3_pins: iic3 {
178                 groups = "iic3";
179                 function = "iic3";
180         };
182         pmic_irq_pins: pmicirq {
183                 groups = "intc_irq2";
184                 function = "intc";
185         };
187         usb0_pins: usb0 {
188                 groups = "usb0";
189                 function = "usb0";
190         };
193 &ether {
194         pinctrl-0 = <&ether_pins &phy1_pins>;
195         pinctrl-names = "default";
197         phy-handle = <&phy1>;
198         renesas,ether-link-active-low;
199         status = "okay";
201         phy1: ethernet-phy@1 {
202                 reg = <1>;
203                 interrupt-parent = <&irqc0>;
204                 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
205                 micrel,led-mode = <1>;
206                 reset-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
207         };
210 &cmt0 {
211         status = "okay";
214 &qspi {
215         pinctrl-0 = <&qspi_pins>;
216         pinctrl-names = "default";
218         status = "okay";
220         flash: flash@0 {
221                 compatible = "spansion,s25fl512s", "jedec,spi-nor";
222                 reg = <0>;
223                 spi-max-frequency = <30000000>;
224                 spi-tx-bus-width = <4>;
225                 spi-rx-bus-width = <4>;
226                 spi-cpha;
227                 spi-cpol;
228                 m25p,fast-read;
230                 partitions {
231                         compatible = "fixed-partitions";
232                         #address-cells = <1>;
233                         #size-cells = <1>;
235                         partition@0 {
236                                 label = "loader";
237                                 reg = <0x00000000 0x00080000>;
238                                 read-only;
239                         };
240                         partition@80000 {
241                                 label = "uboot";
242                                 reg = <0x00080000 0x00040000>;
243                                 read-only;
244                         };
245                         partition@c0000 {
246                                 label = "uboot-env";
247                                 reg = <0x000c0000 0x00040000>;
248                                 read-only;
249                         };
250                         partition@100000 {
251                                 label = "flash";
252                                 reg = <0x00100000 0x03f00000>;
253                         };
254                 };
255         };
258 &scifa0 {
259         pinctrl-0 = <&scifa0_pins>;
260         pinctrl-names = "default";
262         status = "okay";
265 &scif_clk {
266         clock-frequency = <14745600>;
269 &sdhi0 {
270         pinctrl-0 = <&sdhi0_pins>;
271         pinctrl-names = "default";
273         vmmc-supply = <&vcc_sdhi0>;
274         cd-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
275         status = "okay";
278 &cpu0 {
279         cpu0-supply = <&vdd_dvfs>;
282 &iic2   {
283         status = "okay";
284         pinctrl-0 = <&iic2_pins>;
285         pinctrl-names = "default";
287         clock-frequency = <100000>;
289         hdmi@39 {
290                 compatible = "adi,adv7511w";
291                 reg = <0x39>;
292                 interrupt-parent = <&gpio1>;
293                 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
294                 clocks = <&osc4_clk>;
295                 clock-names = "cec";
297                 adi,input-depth = <8>;
298                 adi,input-colorspace = "rgb";
299                 adi,input-clock = "1x";
301                 ports {
302                         #address-cells = <1>;
303                         #size-cells = <0>;
305                         port@0 {
306                                 reg = <0>;
307                                 adv7511_in: endpoint {
308                                         remote-endpoint = <&du_out_rgb>;
309                                 };
310                         };
312                         port@1 {
313                                 reg = <1>;
314                                 adv7511_out: endpoint {
315                                         remote-endpoint = <&hdmi_con_out>;
316                                 };
317                         };
318                 };
319         };
322 &iic3 {
323         pinctrl-names = "default";
324         pinctrl-0 = <&iic3_pins &pmic_irq_pins>;
325         status = "okay";
327         pmic@58 {
328                 compatible = "dlg,da9063";
329                 reg = <0x58>;
330                 interrupt-parent = <&irqc0>;
331                 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
332                 interrupt-controller;
334                 onkey {
335                         compatible = "dlg,da9063-onkey";
336                 };
338                 rtc {
339                         compatible = "dlg,da9063-rtc";
340                 };
342                 wdt {
343                         compatible = "dlg,da9063-watchdog";
344                 };
345         };
347         vdd_dvfs: regulator@68 {
348                 compatible = "dlg,da9210";
349                 reg = <0x68>;
350                 interrupt-parent = <&irqc0>;
351                 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
353                 regulator-min-microvolt = <1000000>;
354                 regulator-max-microvolt = <1000000>;
355                 regulator-boot-on;
356                 regulator-always-on;
357         };
359         vdd: regulator@70 {
360                 compatible = "dlg,da9210";
361                 reg = <0x70>;
362                 interrupt-parent = <&irqc0>;
363                 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
365                 regulator-min-microvolt = <1000000>;
366                 regulator-max-microvolt = <1000000>;
367                 regulator-boot-on;
368                 regulator-always-on;
369         };
372 &pci0 {
373         status = "okay";
374         pinctrl-0 = <&usb0_pins>;
375         pinctrl-names = "default";
378 &usbphy {
379         status = "okay";