Merge branch 'omap-for-v4.14/fixes' into omap-for-v4.15/fixes-v2
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / iwg20d-q7-common.dtsi
1 /*
2  * Device Tree Source for the iWave-RZ/G1M/G1N Qseven carrier board
3  *
4  * Copyright (C) 2017 Renesas Electronics Corp.
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 / {
12         aliases {
13                 serial0 = &scif0;
14                 ethernet0 = &avb;
15         };
16
17         chosen {
18                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
19                 stdout-path = "serial0:115200n8";
20         };
21
22         vcc_sdhi1: regulator-vcc-sdhi1 {
23                 compatible = "regulator-fixed";
24
25                 regulator-name = "SDHI1 Vcc";
26                 regulator-min-microvolt = <3300000>;
27                 regulator-max-microvolt = <3300000>;
28
29                 gpio = <&gpio1 16 GPIO_ACTIVE_LOW>;
30         };
31
32         vccq_sdhi1: regulator-vccq-sdhi1 {
33                 compatible = "regulator-gpio";
34
35                 regulator-name = "SDHI1 VccQ";
36                 regulator-min-microvolt = <1800000>;
37                 regulator-max-microvolt = <3300000>;
38
39                 gpios = <&gpio2 30 GPIO_ACTIVE_LOW>;
40                 gpios-states = <1>;
41                 states = <3300000 1
42                           1800000 0>;
43         };
44 };
45
46 &avb {
47         pinctrl-0 = <&avb_pins>;
48         pinctrl-names = "default";
49
50         phy-handle = <&phy3>;
51         phy-mode = "gmii";
52         renesas,no-ether-link;
53         status = "okay";
54
55         phy3: ethernet-phy@3 {
56                 reg = <3>;
57                 micrel,led-mode = <1>;
58         };
59 };
60
61 &hsusb {
62         status = "okay";
63         pinctrl-0 = <&usb0_pins>;
64         pinctrl-names = "default";
65 };
66
67 &i2c2 {
68         pinctrl-0 = <&i2c2_pins>;
69         pinctrl-names = "default";
70
71         status = "okay";
72         clock-frequency = <400000>;
73
74         rtc@68 {
75                 compatible = "ti,bq32000";
76                 reg = <0x68>;
77         };
78 };
79
80 &pci0 {
81         pinctrl-0 = <&usb0_pins>;
82         pinctrl-names = "default";
83 };
84
85 &pci1 {
86         status = "okay";
87         pinctrl-0 = <&usb1_pins>;
88         pinctrl-names = "default";
89 };
90
91 &pfc {
92         avb_pins: avb {
93                 groups = "avb_mdio", "avb_gmii";
94                 function = "avb";
95         };
96
97         i2c2_pins: i2c2 {
98                 groups = "i2c2";
99                 function = "i2c2";
100         };
101
102         scif0_pins: scif0 {
103                 groups = "scif0_data_d";
104                 function = "scif0";
105         };
106
107         sdhi1_pins: sd1 {
108                 groups = "sdhi1_data4", "sdhi1_ctrl";
109                 function = "sdhi1";
110                 power-source = <3300>;
111         };
112
113         sdhi1_pins_uhs: sd1_uhs {
114                 groups = "sdhi1_data4", "sdhi1_ctrl";
115                 function = "sdhi1";
116                 power-source = <1800>;
117         };
118
119         usb0_pins: usb0 {
120                 groups = "usb0";
121                 function = "usb0";
122         };
123
124         usb1_pins: usb1 {
125                 groups = "usb1";
126                 function = "usb1";
127         };
128 };
129
130 &scif0 {
131         pinctrl-0 = <&scif0_pins>;
132         pinctrl-names = "default";
133
134         status = "okay";
135 };
136
137 &sdhi1 {
138         pinctrl-0 = <&sdhi1_pins>;
139         pinctrl-1 = <&sdhi1_pins_uhs>;
140         pinctrl-names = "default", "state_uhs";
141
142         vmmc-supply = <&vcc_sdhi1>;
143         vqmmc-supply = <&vccq_sdhi1>;
144         cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
145         wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
146         sd-uhs-sdr50;
147         status = "okay";
148 };
149
150 &usbphy {
151         status = "okay";
152 };