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 { | |
27 | #address-cells = <1>; | |
28 | #size-cells = <1>; | |
29 | ranges; | |
30 | ||
31 | main_clock: clock@0 { | |
32 | compatible = "atmel,osc", "fixed-clock"; | |
33 | clock-frequency = <18432000>; | |
34 | }; | |
d738989f AB |
35 | |
36 | main_xtal { | |
37 | clock-frequency = <18432000>; | |
38 | }; | |
df826748 BB |
39 | }; |
40 | ||
41 | ahb { | |
42 | apb { | |
df826748 BB |
43 | macb0: ethernet@fffc4000 { |
44 | phy-mode = "mii"; | |
b45c998e BB |
45 | pinctrl-0 = <&pinctrl_macb_rmii |
46 | &pinctrl_macb_rmii_mii_alt>; | |
df826748 BB |
47 | status = "okay"; |
48 | }; | |
49 | ||
e9942d1f GP |
50 | usart3: serial@fffd0000 { |
51 | status = "okay"; | |
52 | }; | |
53 | ||
49668b01 GP |
54 | dbgu: serial@fffff200 { |
55 | status = "okay"; | |
56 | }; | |
57 | ||
705b675d BB |
58 | watchdog@fffffd40 { |
59 | timeout-sec = <15>; | |
60 | atmel,max-heartbeat-sec = <16>; | |
61 | atmel,min-heartbeat-sec = <0>; | |
62 | status = "okay"; | |
63 | }; | |
df826748 BB |
64 | }; |
65 | ||
49668b01 GP |
66 | usb0: ohci@00500000 { |
67 | num-ports = <1>; | |
68 | status = "okay"; | |
69 | }; | |
70 | ||
df826748 BB |
71 | nand0: nand@40000000 { |
72 | nand-bus-width = <8>; | |
73 | nand-ecc-mode = "soft"; | |
74 | status = "okay"; | |
75 | ||
ea685849 GP |
76 | bootstrap@0 { |
77 | label = "bootstrap"; | |
78 | reg = <0x0 0x20000>; | |
df826748 BB |
79 | }; |
80 | ||
ea685849 | 81 | ubi@20000 { |
df826748 | 82 | label = "ubi"; |
ea685849 | 83 | reg = <0x20000 0x7fe0000>; |
df826748 | 84 | }; |
49668b01 GP |
85 | }; |
86 | }; | |
87 | ||
88 | gpio_keys { | |
89 | compatible = "gpio-keys"; | |
90 | #address-cells = <1>; | |
91 | #size-cells = <0>; | |
df826748 | 92 | |
49668b01 | 93 | reset { |
d1b063ab GP |
94 | label = "PB_RST"; |
95 | gpios = <&pioB 30 GPIO_ACTIVE_HIGH>; | |
49668b01 GP |
96 | linux,code = <0x100>; |
97 | gpio-key,wakeup; | |
df826748 BB |
98 | }; |
99 | ||
d1b063ab GP |
100 | user { |
101 | label = "PB_USER"; | |
102 | gpios = <&pioB 31 GPIO_ACTIVE_HIGH>; | |
49668b01 GP |
103 | linux,code = <0x101>; |
104 | gpio-key,wakeup; | |
df826748 BB |
105 | }; |
106 | }; | |
107 | ||
108 | i2c@0 { | |
109 | status = "okay"; | |
110 | ||
49668b01 | 111 | rtc: pcf8563@51 { |
df826748 BB |
112 | compatible = "nxp,pcf8563"; |
113 | reg = <0x51>; | |
114 | }; | |
df826748 BB |
115 | }; |
116 | ||
4a225bed GP |
117 | pwm_leds { |
118 | compatible = "pwm-leds"; | |
df826748 | 119 | |
4a225bed GP |
120 | network_green { |
121 | label = "pwm:green:network"; | |
122 | pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>; | |
123 | max-brightness = <255>; | |
124 | linux,default-trigger = "default-on"; | |
df826748 BB |
125 | }; |
126 | ||
4a225bed GP |
127 | network_red { |
128 | label = "pwm:red:network"; | |
87835a4b | 129 | pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>; |
4a225bed GP |
130 | max-brightness = <255>; |
131 | linux,default-trigger = "default-on"; | |
df826748 BB |
132 | }; |
133 | ||
4a225bed GP |
134 | user_green { |
135 | label = "pwm:green:user"; | |
136 | pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>; | |
137 | max-brightness = <255>; | |
138 | linux,default-trigger = "default-on"; | |
df826748 BB |
139 | }; |
140 | ||
4a225bed GP |
141 | user_red { |
142 | label = "pwm:red:user"; | |
143 | pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>; | |
144 | max-brightness = <255>; | |
145 | linux,default-trigger = "default-on"; | |
df826748 BB |
146 | }; |
147 | }; | |
4a225bed GP |
148 | |
149 | tcb_pwm: pwm { | |
150 | compatible = "atmel,tcb-pwm"; | |
151 | #pwm-cells = <3>; | |
152 | tc-block = <1>; | |
153 | pinctrl-names = "default"; | |
154 | pinctrl-0 = <&pinctrl_tcb1_tioa0 | |
155 | &pinctrl_tcb1_tioa1 | |
156 | &pinctrl_tcb1_tioa2 | |
157 | &pinctrl_tcb1_tiob0>; | |
158 | }; | |
6db64d29 | 159 | }; |