Merge tag 'zynq-dt-for-v5.0' of https://github.com/Xilinx/linux-xlnx into next/dt
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / r8a77470-iwg23s-sbc.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for the iWave-RZ/G1C single board computer
4  *
5  * Copyright (C) 2018 Renesas Electronics Corp.
6  */
7
8 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include "r8a77470.dtsi"
11 / {
12         model = "iWave iW-RainboW-G23S single board computer based on RZ/G1C";
13         compatible = "iwave,g23s", "renesas,r8a77470";
14
15         aliases {
16                 ethernet0 = &avb;
17                 serial1 = &scif1;
18         };
19
20         chosen {
21                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
22                 stdout-path = "serial1:115200n8";
23         };
24
25         memory@40000000 {
26                 device_type = "memory";
27                 reg = <0 0x40000000 0 0x20000000>;
28         };
29
30         reg_1p8v: reg-1p8v {
31                 compatible = "regulator-fixed";
32                 regulator-name = "fixed-1.8V";
33                 regulator-min-microvolt = <1800000>;
34                 regulator-max-microvolt = <1800000>;
35                 regulator-boot-on;
36                 regulator-always-on;
37         };
38
39         reg_3p3v: reg-3p3v {
40                 compatible = "regulator-fixed";
41                 regulator-name = "fixed-3.3V";
42                 regulator-min-microvolt = <3300000>;
43                 regulator-max-microvolt = <3300000>;
44                 regulator-boot-on;
45                 regulator-always-on;
46         };
47
48         vccq_sdhi2: regulator-vccq-sdhi2 {
49                 compatible = "regulator-gpio";
50
51                 regulator-name = "SDHI2 VccQ";
52                 regulator-min-microvolt = <1800000>;
53                 regulator-max-microvolt = <3300000>;
54
55                 gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
56                 gpios-states = <1>;
57                 states = <3300000 1
58                           1800000 0>;
59         };
60 };
61
62 &avb {
63         pinctrl-0 = <&avb_pins>;
64         pinctrl-names = "default";
65
66         phy-handle = <&phy3>;
67         phy-mode = "gmii";
68         renesas,no-ether-link;
69         status = "okay";
70
71         phy3: ethernet-phy@3 {
72                 reg = <3>;
73                 interrupt-parent = <&gpio5>;
74                 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
75                 micrel,led-mode = <1>;
76         };
77 };
78
79 &cmt0 {
80         status = "okay";
81 };
82
83 &extal_clk {
84         clock-frequency = <20000000>;
85 };
86
87 &pfc {
88         avb_pins: avb {
89                 groups = "avb_mdio", "avb_gmii_tx_rx";
90                 function = "avb";
91         };
92
93         mmc_pins_uhs: mmc_uhs {
94                 groups = "mmc_data8", "mmc_ctrl";
95                 function = "mmc";
96                 power-source = <1800>;
97         };
98
99         qspi0_pins: qspi0 {
100                 groups = "qspi0_ctrl", "qspi0_data2";
101                 function = "qspi0";
102         };
103
104         scif1_pins: scif1 {
105                 groups = "scif1_data_b";
106                 function = "scif1";
107         };
108
109         sdhi2_pins: sd2 {
110                 groups = "sdhi2_data4", "sdhi2_ctrl";
111                 function = "sdhi2";
112                 power-source = <3300>;
113         };
114
115         sdhi2_pins_uhs: sd2_uhs {
116                 groups = "sdhi2_data4", "sdhi2_ctrl";
117                 function = "sdhi2";
118                 power-source = <1800>;
119         };
120 };
121
122 &qspi0 {
123         pinctrl-0 = <&qspi0_pins>;
124         pinctrl-names = "default";
125
126         status = "okay";
127
128         /* WARNING - This device contains the bootloader. Handle with care. */
129         flash: flash@0 {
130                 #address-cells = <1>;
131                 #size-cells = <1>;
132                 compatible = "issi,is25lp016d", "jedec,spi-nor";
133                 reg = <0>;
134                 spi-max-frequency = <133000000>;
135                 spi-tx-bus-width = <1>;
136                 spi-rx-bus-width = <1>;
137                 m25p,fast-read;
138                 spi-cpol;
139                 spi-cpha;
140         };
141 };
142
143 &rwdt {
144         timeout-sec = <60>;
145         status = "okay";
146 };
147
148 &scif1 {
149         pinctrl-0 = <&scif1_pins>;
150         pinctrl-names = "default";
151
152         status = "okay";
153 };
154
155 &sdhi1 {
156         pinctrl-0 = <&mmc_pins_uhs>;
157         pinctrl-names = "state_uhs";
158
159         vmmc-supply = <&reg_3p3v>;
160         vqmmc-supply = <&reg_1p8v>;
161         bus-width = <8>;
162         mmc-hs200-1_8v;
163         non-removable;
164         fixed-emmc-driver-type = <1>;
165         status = "okay";
166 };
167
168 &sdhi2 {
169         pinctrl-0 = <&sdhi2_pins>;
170         pinctrl-1 = <&sdhi2_pins_uhs>;
171         pinctrl-names = "default", "state_uhs";
172
173         vmmc-supply = <&reg_3p3v>;
174         vqmmc-supply = <&vccq_sdhi2>;
175         bus-width = <4>;
176         cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
177         sd-uhs-sdr50;
178         status = "okay";
179 };