OSDN Git Service

ARM: dts: gose: add i2c2 bus to device tree
[uclinux-h8/linux.git] / arch / arm / boot / dts / r8a7793-gose.dts
1 /*
2  * Device Tree Source for the Gose board
3  *
4  * Copyright (C) 2014-2015 Renesas Electronics Corporation
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 "r8a7793.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15
16 / {
17         model = "Gose";
18         compatible = "renesas,gose", "renesas,r8a7793";
19
20         aliases {
21                 serial0 = &scif0;
22                 serial1 = &scif1;
23         };
24
25         chosen {
26                 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
27                 stdout-path = "serial0:115200n8";
28         };
29
30         memory@40000000 {
31                 device_type = "memory";
32                 reg = <0 0x40000000 0 0x40000000>;
33         };
34
35         gpio-keys {
36                 compatible = "gpio-keys";
37
38                 key-1 {
39                         gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
40                         linux,code = <KEY_1>;
41                         label = "SW2-1";
42                         gpio-key,wakeup;
43                         debounce-interval = <20>;
44                 };
45                 key-2 {
46                         gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
47                         linux,code = <KEY_2>;
48                         label = "SW2-2";
49                         gpio-key,wakeup;
50                         debounce-interval = <20>;
51                 };
52                 key-3 {
53                         gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
54                         linux,code = <KEY_3>;
55                         label = "SW2-3";
56                         gpio-key,wakeup;
57                         debounce-interval = <20>;
58                 };
59                 key-4 {
60                         gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
61                         linux,code = <KEY_4>;
62                         label = "SW2-4";
63                         gpio-key,wakeup;
64                         debounce-interval = <20>;
65                 };
66                 key-a {
67                         gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
68                         linux,code = <KEY_A>;
69                         label = "SW30";
70                         gpio-key,wakeup;
71                         debounce-interval = <20>;
72                 };
73                 key-b {
74                         gpios = <&gpio7 1 GPIO_ACTIVE_LOW>;
75                         linux,code = <KEY_B>;
76                         label = "SW31";
77                         gpio-key,wakeup;
78                         debounce-interval = <20>;
79                 };
80                 key-c {
81                         gpios = <&gpio7 2 GPIO_ACTIVE_LOW>;
82                         linux,code = <KEY_C>;
83                         label = "SW32";
84                         gpio-key,wakeup;
85                         debounce-interval = <20>;
86                 };
87                 key-d {
88                         gpios = <&gpio7 3 GPIO_ACTIVE_LOW>;
89                         linux,code = <KEY_D>;
90                         label = "SW33";
91                         gpio-key,wakeup;
92                         debounce-interval = <20>;
93                 };
94                 key-e {
95                         gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
96                         linux,code = <KEY_E>;
97                         label = "SW34";
98                         gpio-key,wakeup;
99                         debounce-interval = <20>;
100                 };
101                 key-f {
102                         gpios = <&gpio7 5 GPIO_ACTIVE_LOW>;
103                         linux,code = <KEY_F>;
104                         label = "SW35";
105                         gpio-key,wakeup;
106                         debounce-interval = <20>;
107                 };
108                 key-g {
109                         gpios = <&gpio7 6 GPIO_ACTIVE_LOW>;
110                         linux,code = <KEY_G>;
111                         label = "SW36";
112                         gpio-key,wakeup;
113                         debounce-interval = <20>;
114                 };
115         };
116
117         leds {
118                 compatible = "gpio-leds";
119                 led6 {
120                         gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
121                         label = "LED6";
122                 };
123                 led7 {
124                         gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
125                         label = "LED7";
126                 };
127                 led8 {
128                         gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
129                         label = "LED8";
130                 };
131         };
132 };
133
134 &extal_clk {
135         clock-frequency = <20000000>;
136 };
137
138 &pfc {
139         i2c2_pins: i2c2 {
140                 renesas,groups = "i2c2";
141                 renesas,function = "i2c2";
142         };
143
144         scif0_pins: serial0 {
145                 renesas,groups = "scif0_data_d";
146                 renesas,function = "scif0";
147         };
148
149         scif1_pins: serial1 {
150                 renesas,groups = "scif1_data_d";
151                 renesas,function = "scif1";
152         };
153
154         ether_pins: ether {
155                 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
156                 renesas,function = "eth";
157         };
158
159         phy1_pins: phy1 {
160                 renesas,groups = "intc_irq0";
161                 renesas,function = "intc";
162         };
163
164         qspi_pins: spi0 {
165                 renesas,groups = "qspi_ctrl", "qspi_data4";
166                 renesas,function = "qspi";
167         };
168 };
169
170 &ether {
171         pinctrl-0 = <&ether_pins &phy1_pins>;
172         pinctrl-names = "default";
173
174         phy-handle = <&phy1>;
175         renesas,ether-link-active-low;
176         status = "okay";
177
178         phy1: ethernet-phy@1 {
179                 reg = <1>;
180                 interrupt-parent = <&irqc0>;
181                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
182                 micrel,led-mode = <1>;
183         };
184 };
185
186 &cmt0 {
187         status = "okay";
188 };
189
190 &scif0 {
191         pinctrl-0 = <&scif0_pins>;
192         pinctrl-names = "default";
193
194         status = "okay";
195 };
196
197 &scif1 {
198         pinctrl-0 = <&scif1_pins>;
199         pinctrl-names = "default";
200
201         status = "okay";
202 };
203
204 &qspi {
205         pinctrl-0 = <&qspi_pins>;
206         pinctrl-names = "default";
207
208         status = "okay";
209
210         flash@0 {
211                 compatible = "spansion,s25fl512s", "jedec,spi-nor";
212                 reg = <0>;
213                 spi-max-frequency = <30000000>;
214                 spi-tx-bus-width = <4>;
215                 spi-rx-bus-width = <4>;
216                 spi-cpol;
217                 spi-cpha;
218                 m25p,fast-read;
219
220                 partitions {
221                         compatible = "fixed-partitions";
222                         #address-cells = <1>;
223                         #size-cells = <1>;
224
225                         partition@0 {
226                                 label = "loader";
227                                 reg = <0x00000000 0x00040000>;
228                                 read-only;
229                         };
230                         partition@40000 {
231                                 label = "user";
232                                 reg = <0x00040000 0x00400000>;
233                                 read-only;
234                         };
235                         partition@440000 {
236                                 label = "flash";
237                                 reg = <0x00440000 0x03bc0000>;
238                         };
239                 };
240         };
241 };
242
243 &i2c2 {
244         pinctrl-0 = <&i2c2_pins>;
245         pinctrl-names = "default";
246
247         status = "okay";
248         clock-frequency = <100000>;
249
250         eeprom@50 {
251                 compatible = "renesas,r1ex24002", "atmel,24c02";
252                 reg = <0x50>;
253                 pagesize = <16>;
254         };
255 };