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