Commit | Line | Data |
---|---|---|
b8af4591 UH |
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"; | |
16010a3e | 27 | stdout-path = "serial0:115200n8"; |
b8af4591 UH |
28 | }; |
29 | ||
30 | memory@40000000 { | |
31 | device_type = "memory"; | |
32 | reg = <0 0x40000000 0 0x40000000>; | |
33 | }; | |
d7d5974b SH |
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 | }; | |
3b18d859 SH |
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 | }; | |
b8af4591 UH |
132 | }; |
133 | ||
134 | &extal_clk { | |
135 | clock-frequency = <20000000>; | |
136 | }; | |
137 | ||
a81f0508 SH |
138 | &pfc { |
139 | scif0_pins: serial0 { | |
140 | renesas,groups = "scif0_data_d"; | |
141 | renesas,function = "scif0"; | |
142 | }; | |
143 | ||
144 | scif1_pins: serial1 { | |
145 | renesas,groups = "scif1_data_d"; | |
146 | renesas,function = "scif1"; | |
147 | }; | |
148 | ||
149 | ether_pins: ether { | |
150 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; | |
151 | renesas,function = "eth"; | |
152 | }; | |
153 | ||
154 | phy1_pins: phy1 { | |
155 | renesas,groups = "intc_irq0"; | |
156 | renesas,function = "intc"; | |
157 | }; | |
6380d62a SH |
158 | |
159 | qspi_pins: spi0 { | |
160 | renesas,groups = "qspi_ctrl", "qspi_data4"; | |
161 | renesas,function = "qspi"; | |
162 | }; | |
a81f0508 SH |
163 | }; |
164 | ||
b8af4591 | 165 | ðer { |
a81f0508 SH |
166 | pinctrl-0 = <ðer_pins &phy1_pins>; |
167 | pinctrl-names = "default"; | |
168 | ||
b8af4591 UH |
169 | phy-handle = <&phy1>; |
170 | renesas,ether-link-active-low; | |
171 | status = "okay"; | |
172 | ||
173 | phy1: ethernet-phy@1 { | |
174 | reg = <1>; | |
175 | interrupt-parent = <&irqc0>; | |
176 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | |
177 | micrel,led-mode = <1>; | |
178 | }; | |
179 | }; | |
180 | ||
181 | &cmt0 { | |
182 | status = "okay"; | |
183 | }; | |
184 | ||
185 | &scif0 { | |
a81f0508 SH |
186 | pinctrl-0 = <&scif0_pins>; |
187 | pinctrl-names = "default"; | |
188 | ||
b8af4591 UH |
189 | status = "okay"; |
190 | }; | |
191 | ||
192 | &scif1 { | |
a81f0508 SH |
193 | pinctrl-0 = <&scif1_pins>; |
194 | pinctrl-names = "default"; | |
195 | ||
b8af4591 UH |
196 | status = "okay"; |
197 | }; | |
6380d62a SH |
198 | |
199 | &qspi { | |
200 | pinctrl-0 = <&qspi_pins>; | |
201 | pinctrl-names = "default"; | |
202 | ||
203 | status = "okay"; | |
204 | ||
205 | flash@0 { | |
206 | compatible = "spansion,s25fl512s", "jedec,spi-nor"; | |
207 | reg = <0>; | |
208 | spi-max-frequency = <30000000>; | |
209 | spi-tx-bus-width = <4>; | |
210 | spi-rx-bus-width = <4>; | |
211 | spi-cpol; | |
212 | spi-cpha; | |
213 | m25p,fast-read; | |
214 | ||
215 | partitions { | |
e5e6f9b4 | 216 | compatible = "fixed-partitions"; |
6380d62a SH |
217 | #address-cells = <1>; |
218 | #size-cells = <1>; | |
219 | ||
220 | partition@0 { | |
221 | label = "loader"; | |
222 | reg = <0x00000000 0x00040000>; | |
223 | read-only; | |
224 | }; | |
225 | partition@40000 { | |
226 | label = "user"; | |
227 | reg = <0x00040000 0x00400000>; | |
228 | read-only; | |
229 | }; | |
230 | partition@440000 { | |
231 | label = "flash"; | |
232 | reg = <0x00440000 0x03bc0000>; | |
233 | }; | |
234 | }; | |
235 | }; | |
236 | }; |