blob: 50a14568f094a64cd5368851e2c39bd250e0cebe [file] [log] [blame]
Kyle Swenson8d8f6542021-03-15 11:02:55 -06001/*
2 * at91-kizbox2.dts - Device Tree file for Overkiz Kizbox 2 board
3 *
4 * Copyright (C) 2014 Gaƫl PORTAY <g.portay@overkiz.com>
5 *
6 * Licensed under GPLv2 or later.
7 */
8/dts-v1/;
9#include "sama5d31.dtsi"
10#include <dt-bindings/pwm/pwm.h>
11
12/ {
13 model = "Overkiz Kizbox 2";
14 compatible = "overkiz,kizbox2", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
15
16 chosen {
17 bootargs = "ubi.mtd=ubi";
18 stdout-path = &dbgu;
19 };
20
21 memory {
22 reg = <0x20000000 0x10000000>;
23 };
24
25 clocks {
26 slow_xtal {
27 clock-frequency = <32768>;
28 };
29
30 main_xtal {
31 clock-frequency = <12000000>;
32 };
33 };
34
35 ahb {
36 apb {
37 i2c1: i2c@f0018000 {
38 status = "okay";
39
40 pmic: act8865@5b {
41 compatible = "active-semi,act8865";
42 reg = <0x5b>;
43 status = "okay";
44
45 regulators {
46 vcc_1v8_reg: DCDC_REG1 {
47 regulator-name = "VCC_1V8";
48 regulator-min-microvolt = <1800000>;
49 regulator-max-microvolt = <1800000>;
50 regulator-always-on;
51 };
52
53 vcc_1v2_reg: DCDC_REG2 {
54 regulator-name = "VCC_1V2";
55 regulator-min-microvolt = <1200000>;
56 regulator-max-microvolt = <1200000>;
57 regulator-always-on;
58 };
59
60 vcc_3v3_reg: DCDC_REG3 {
61 regulator-name = "VCC_3V3";
62 regulator-min-microvolt = <3300000>;
63 regulator-max-microvolt = <3300000>;
64 regulator-always-on;
65 };
66
67 vddfuse_reg: LDO_REG1 {
68 regulator-name = "FUSE_2V5";
69 regulator-min-microvolt = <2500000>;
70 regulator-max-microvolt = <2500000>;
71 };
72
73 vddana_reg: LDO_REG2 {
74 regulator-name = "VDDANA";
75 regulator-min-microvolt = <3300000>;
76 regulator-max-microvolt = <3300000>;
77 regulator-always-on;
78 };
79
80 vled_reg: LDO_REG3 {
81 regulator-name = "VLED";
82 regulator-min-microvolt = <3300000>;
83 regulator-max-microvolt = <3300000>;
84 regulator-always-on;
85 };
86
87 v3v8_rf_reg: LDO_REG4 {
88 regulator-name = "V3V8_RF";
89 regulator-min-microvolt = <3800000>;
90 regulator-max-microvolt = <3800000>;
91 regulator-always-on;
92 };
93 };
94 };
95 };
96
97 usart0: serial@f001c000 {
98 status = "okay";
99 };
100
101 usart1: serial@f0020000 {
102 status = "okay";
103 };
104
105 pwm0: pwm@f002c000 {
106 pinctrl-names = "default";
107 pinctrl-0 = <&pinctrl_pwm0_pwmh0_1
108 &pinctrl_pwm0_pwmh1_1
109 &pinctrl_pwm0_pwmh2_0>;
110 status = "okay";
111 };
112
113 adc0: adc@f8018000 {
114 atmel,adc-vref = <3333>;
115 status = "okay";
116 };
117
118 usart2: serial@f8020000 {
119 status = "okay";
120 };
121
122 macb1: ethernet@f802c000 {
123 phy-mode = "rmii";
124 status = "okay";
125 };
126
127 dbgu: serial@ffffee00 {
128 status = "okay";
129 };
130
131 watchdog@fffffe40 {
132 status = "okay";
133 };
134 };
135
136 usb1: ohci@00600000 {
137 status = "okay";
138 };
139
140 usb2: ehci@00700000 {
141 status = "okay";
142 };
143
144 nand0: nand@60000000 {
145 nand-bus-width = <8>;
146 nand-ecc-mode = "hw";
147 atmel,has-pmecc;
148 atmel,pmecc-cap = <4>;
149 atmel,pmecc-sector-size = <512>;
150 nand-on-flash-bbt;
151 status = "okay";
152
153 bootstrap@0 {
154 label = "bootstrap";
155 reg = <0x0 0x20000>;
156 };
157
158 ubi@20000 {
159 label = "ubi";
160 reg = <0x20000 0x7fe0000>;
161 };
162 };
163 };
164
165 gpio_keys {
166 compatible = "gpio-keys";
167 #address-cells = <1>;
168 #size-cells = <0>;
169
170 prog {
171 label = "PB_PROG";
172 gpios = <&pioE 27 GPIO_ACTIVE_LOW>;
173 linux,code = <0x102>;
174 wakeup-source;
175 };
176
177 reset {
178 label = "PB_RST";
179 gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
180 linux,code = <0x100>;
181 wakeup-source;
182 };
183
184 user {
185 label = "PB_USER";
186 gpios = <&pioE 31 GPIO_ACTIVE_HIGH>;
187 linux,code = <0x101>;
188 wakeup-source;
189 };
190 };
191
192 pwm_leds {
193 compatible = "pwm-leds";
194
195 blue {
196 label = "pwm:blue:user";
197 pwms = <&pwm0 2 10000000 0>;
198 max-brightness = <255>;
199 linux,default-trigger = "default-on";
200 };
201
202 green {
203 label = "pwm:green:user";
204 pwms = <&pwm0 1 10000000 0>;
205 max-brightness = <255>;
206 linux,default-trigger = "default-on";
207 };
208
209 red {
210 label = "pwm:red:user";
211 pwms = <&pwm0 0 10000000 0>;
212 max-brightness = <255>;
213 linux,default-trigger = "default-on";
214 };
215 };
216};