blob: bf18ece0c02708c4d7b99ac543e2bc9045daf63b [file] [log] [blame]
Boris BREZILLONdf826742012-04-20 14:37:50 +02001/*
Gaël PORTAYd8b18342015-04-30 09:33:32 +02002 * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
Boris BREZILLONdf826742012-04-20 14:37:50 +02003 *
Gaël PORTAY49668b02015-04-30 09:33:33 +02004 * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com>
5 * 2014-2015 Gaël PORTAY <g.portay@overkiz.com>
Boris BREZILLONdf826742012-04-20 14:37:50 +02006 *
Gaël PORTAY49668b02015-04-30 09:33:33 +02007 * Licensed under GPLv2 or later.
Boris BREZILLONdf826742012-04-20 14:37:50 +02008 */
9/dts-v1/;
Jean-Christophe PLAGNIOL-VILLARD6db64d22013-05-15 01:21:50 +080010#include "at91sam9g20.dtsi"
Gaël PORTAY4a225be2015-04-30 09:33:36 +020011#include <dt-bindings/pwm/pwm.h>
Boris BREZILLONdf826742012-04-20 14:37:50 +020012
13/ {
Gaël PORTAY49668b02015-04-30 09:33:33 +020014 model = "Overkiz Kizbox";
Boris BREZILLONdf826742012-04-20 14:37:50 +020015 compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9";
16
17 chosen {
Gaël PORTAY81104f62015-04-30 09:33:38 +020018 bootargs = "ubi.mtd=ubi";
Alexandre Belloni7e5883b2015-06-03 14:24:05 +020019 stdout-path = &dbgu;
Boris BREZILLONdf826742012-04-20 14:37:50 +020020 };
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 };
Alexandre Bellonid7389892014-06-18 21:05:05 +020035
36 main_xtal {
37 clock-frequency = <18432000>;
38 };
Boris BREZILLONdf826742012-04-20 14:37:50 +020039 };
40
41 ahb {
42 apb {
Boris BREZILLONdf826742012-04-20 14:37:50 +020043 macb0: ethernet@fffc4000 {
44 phy-mode = "mii";
Boris BREZILLONb45c9982012-12-13 14:03:08 +000045 pinctrl-0 = <&pinctrl_macb_rmii
46 &pinctrl_macb_rmii_mii_alt>;
Boris BREZILLONdf826742012-04-20 14:37:50 +020047 status = "okay";
48 };
49
Gaël PORTAYe9942d12015-04-30 09:33:34 +020050 usart3: serial@fffd0000 {
51 status = "okay";
52 };
53
Gaël PORTAY49668b02015-04-30 09:33:33 +020054 dbgu: serial@fffff200 {
55 status = "okay";
56 };
57
Boris BREZILLON705b6752013-10-04 09:24:15 +020058 watchdog@fffffd40 {
59 timeout-sec = <15>;
60 atmel,max-heartbeat-sec = <16>;
61 atmel,min-heartbeat-sec = <0>;
62 status = "okay";
63 };
Boris BREZILLONdf826742012-04-20 14:37:50 +020064 };
65
Gaël PORTAY49668b02015-04-30 09:33:33 +020066 usb0: ohci@00500000 {
67 num-ports = <1>;
68 status = "okay";
69 };
70
Boris BREZILLONdf826742012-04-20 14:37:50 +020071 nand0: nand@40000000 {
72 nand-bus-width = <8>;
73 nand-ecc-mode = "soft";
74 status = "okay";
75
Gaël PORTAYea685842015-04-30 09:33:37 +020076 bootstrap@0 {
77 label = "bootstrap";
78 reg = <0x0 0x20000>;
Boris BREZILLONdf826742012-04-20 14:37:50 +020079 };
80
Gaël PORTAYea685842015-04-30 09:33:37 +020081 ubi@20000 {
Boris BREZILLONdf826742012-04-20 14:37:50 +020082 label = "ubi";
Gaël PORTAYea685842015-04-30 09:33:37 +020083 reg = <0x20000 0x7fe0000>;
Boris BREZILLONdf826742012-04-20 14:37:50 +020084 };
Gaël PORTAY49668b02015-04-30 09:33:33 +020085 };
86 };
Boris BREZILLONdf826742012-04-20 14:37:50 +020087
Gaël PORTAY49668b02015-04-30 09:33:33 +020088 gpio_keys {
89 compatible = "gpio-keys";
90 #address-cells = <1>;
91 #size-cells = <0>;
92
93 reset {
Gaël PORTAYd1b063a2015-04-30 09:33:35 +020094 label = "PB_RST";
95 gpios = <&pioB 30 GPIO_ACTIVE_HIGH>;
Gaël PORTAY49668b02015-04-30 09:33:33 +020096 linux,code = <0x100>;
97 gpio-key,wakeup;
Boris BREZILLONdf826742012-04-20 14:37:50 +020098 };
99
Gaël PORTAYd1b063a2015-04-30 09:33:35 +0200100 user {
101 label = "PB_USER";
102 gpios = <&pioB 31 GPIO_ACTIVE_HIGH>;
Gaël PORTAY49668b02015-04-30 09:33:33 +0200103 linux,code = <0x101>;
104 gpio-key,wakeup;
Boris BREZILLONdf826742012-04-20 14:37:50 +0200105 };
106 };
107
108 i2c@0 {
109 status = "okay";
110
Gaël PORTAY49668b02015-04-30 09:33:33 +0200111 rtc: pcf8563@51 {
Boris BREZILLONdf826742012-04-20 14:37:50 +0200112 compatible = "nxp,pcf8563";
113 reg = <0x51>;
114 };
Boris BREZILLONdf826742012-04-20 14:37:50 +0200115 };
116
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200117 pwm_leds {
118 compatible = "pwm-leds";
Boris BREZILLONdf826742012-04-20 14:37:50 +0200119
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200120 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";
Boris BREZILLONdf826742012-04-20 14:37:50 +0200125 };
126
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200127 network_red {
128 label = "pwm:red:network";
Gaël PORTAY87835a42015-06-03 11:44:23 +0200129 pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>;
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200130 max-brightness = <255>;
131 linux,default-trigger = "default-on";
Boris BREZILLONdf826742012-04-20 14:37:50 +0200132 };
133
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200134 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";
Boris BREZILLONdf826742012-04-20 14:37:50 +0200139 };
140
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200141 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";
Boris BREZILLONdf826742012-04-20 14:37:50 +0200146 };
147 };
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200148
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 };
Jean-Christophe PLAGNIOL-VILLARD6db64d22013-05-15 01:21:50 +0800159};