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