]>
Commit | Line | Data |
---|---|---|
df826748 | 1 | /* |
d8b18347 | 2 | * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board |
df826748 | 3 | * |
49668b01 GP |
4 | * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com> |
5 | * 2014-2015 Gaël PORTAY <g.portay@overkiz.com> | |
df826748 | 6 | * |
49668b01 | 7 | * Licensed under GPLv2 or later. |
df826748 BB |
8 | */ |
9 | /dts-v1/; | |
6db64d29 | 10 | #include "at91sam9g20.dtsi" |
4a225bed | 11 | #include <dt-bindings/pwm/pwm.h> |
df826748 BB |
12 | |
13 | / { | |
49668b01 | 14 | model = "Overkiz Kizbox"; |
df826748 BB |
15 | compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9"; |
16 | ||
17 | chosen { | |
81104f60 | 18 | bootargs = "ubi.mtd=ubi"; |
7e5883b5 | 19 | stdout-path = &dbgu; |
df826748 BB |
20 | }; |
21 | ||
22 | memory { | |
23 | reg = <0x20000000 0x2000000>; | |
24 | }; | |
25 | ||
26 | clocks { | |
d738989f AB |
27 | main_xtal { |
28 | clock-frequency = <18432000>; | |
29 | }; | |
df826748 BB |
30 | }; |
31 | ||
32 | ahb { | |
33 | apb { | |
3692f91c AB |
34 | tcb0: timer@fffa0000 { |
35 | timer@0 { | |
36 | compatible = "atmel,tcb-timer"; | |
37 | reg = <0>, <1>; | |
38 | }; | |
39 | ||
40 | timer@2 { | |
41 | compatible = "atmel,tcb-timer"; | |
42 | reg = <2>; | |
43 | }; | |
44 | }; | |
45 | ||
df826748 BB |
46 | macb0: ethernet@fffc4000 { |
47 | phy-mode = "mii"; | |
b45c998e BB |
48 | pinctrl-0 = <&pinctrl_macb_rmii |
49 | &pinctrl_macb_rmii_mii_alt>; | |
df826748 BB |
50 | status = "okay"; |
51 | }; | |
52 | ||
e9942d1f GP |
53 | usart3: serial@fffd0000 { |
54 | status = "okay"; | |
55 | }; | |
56 | ||
49668b01 GP |
57 | dbgu: serial@fffff200 { |
58 | status = "okay"; | |
59 | }; | |
60 | ||
705b675d BB |
61 | watchdog@fffffd40 { |
62 | timeout-sec = <15>; | |
63 | atmel,max-heartbeat-sec = <16>; | |
64 | atmel,min-heartbeat-sec = <0>; | |
65 | status = "okay"; | |
66 | }; | |
df826748 BB |
67 | }; |
68 | ||
cfdc7fa5 | 69 | usb0: ohci@500000 { |
49668b01 GP |
70 | num-ports = <1>; |
71 | status = "okay"; | |
72 | }; | |
73 | ||
1004a297 | 74 | ebi: ebi@10000000 { |
df826748 BB |
75 | status = "okay"; |
76 | ||
1004a297 BB |
77 | nand_controller: nand-controller { |
78 | status = "okay"; | |
79 | pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>; | |
80 | pinctrl-names = "default"; | |
81 | ||
82 | nand@3 { | |
83 | reg = <0x3 0x0 0x800000>; | |
84 | rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; | |
85 | cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; | |
86 | nand-bus-width = <8>; | |
87 | nand-ecc-mode = "soft"; | |
88 | nand-on-flash-bbt; | |
89 | label = "atmel_nand"; | |
90 | ||
91 | partitions { | |
92 | compatible = "fixed-partitions"; | |
93 | #address-cells = <1>; | |
94 | #size-cells = <1>; | |
95 | ||
96 | bootstrap@0 { | |
97 | label = "bootstrap"; | |
98 | reg = <0x0 0x20000>; | |
99 | }; | |
100 | ||
101 | ubi@20000 { | |
102 | label = "ubi"; | |
103 | reg = <0x20000 0x7fe0000>; | |
104 | }; | |
105 | }; | |
106 | }; | |
df826748 | 107 | }; |
49668b01 GP |
108 | }; |
109 | }; | |
110 | ||
111 | gpio_keys { | |
112 | compatible = "gpio-keys"; | |
113 | #address-cells = <1>; | |
114 | #size-cells = <0>; | |
df826748 | 115 | |
49668b01 | 116 | reset { |
d1b063ab GP |
117 | label = "PB_RST"; |
118 | gpios = <&pioB 30 GPIO_ACTIVE_HIGH>; | |
49668b01 | 119 | linux,code = <0x100>; |
67ae8b9b | 120 | wakeup-source; |
df826748 BB |
121 | }; |
122 | ||
d1b063ab GP |
123 | user { |
124 | label = "PB_USER"; | |
125 | gpios = <&pioB 31 GPIO_ACTIVE_HIGH>; | |
49668b01 | 126 | linux,code = <0x101>; |
67ae8b9b | 127 | wakeup-source; |
df826748 BB |
128 | }; |
129 | }; | |
130 | ||
e152e3f7 | 131 | i2c-gpio-0 { |
df826748 BB |
132 | status = "okay"; |
133 | ||
49668b01 | 134 | rtc: pcf8563@51 { |
df826748 BB |
135 | compatible = "nxp,pcf8563"; |
136 | reg = <0x51>; | |
137 | }; | |
df826748 BB |
138 | }; |
139 | ||
4a225bed GP |
140 | pwm_leds { |
141 | compatible = "pwm-leds"; | |
df826748 | 142 | |
4a225bed GP |
143 | network_green { |
144 | label = "pwm:green:network"; | |
145 | pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>; | |
146 | max-brightness = <255>; | |
147 | linux,default-trigger = "default-on"; | |
df826748 BB |
148 | }; |
149 | ||
4a225bed GP |
150 | network_red { |
151 | label = "pwm:red:network"; | |
87835a4b | 152 | pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>; |
4a225bed GP |
153 | max-brightness = <255>; |
154 | linux,default-trigger = "default-on"; | |
df826748 BB |
155 | }; |
156 | ||
4a225bed GP |
157 | user_green { |
158 | label = "pwm:green:user"; | |
159 | pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>; | |
160 | max-brightness = <255>; | |
161 | linux,default-trigger = "default-on"; | |
df826748 BB |
162 | }; |
163 | ||
4a225bed GP |
164 | user_red { |
165 | label = "pwm:red:user"; | |
166 | pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>; | |
167 | max-brightness = <255>; | |
168 | linux,default-trigger = "default-on"; | |
df826748 BB |
169 | }; |
170 | }; | |
4a225bed GP |
171 | |
172 | tcb_pwm: pwm { | |
173 | compatible = "atmel,tcb-pwm"; | |
174 | #pwm-cells = <3>; | |
175 | tc-block = <1>; | |
176 | pinctrl-names = "default"; | |
177 | pinctrl-0 = <&pinctrl_tcb1_tioa0 | |
178 | &pinctrl_tcb1_tioa1 | |
179 | &pinctrl_tcb1_tioa2 | |
180 | &pinctrl_tcb1_tiob0>; | |
181 | }; | |
6db64d29 | 182 | }; |