blob: b4f147c193fdb5c56923ab47232690833d7b92ef [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 {
Alexandre Bellonid7389892014-06-18 21:05:05 +020027 main_xtal {
28 clock-frequency = <18432000>;
29 };
Boris BREZILLONdf826742012-04-20 14:37:50 +020030 };
31
32 ahb {
33 apb {
Boris BREZILLONdf826742012-04-20 14:37:50 +020034 macb0: ethernet@fffc4000 {
35 phy-mode = "mii";
Boris BREZILLONb45c9982012-12-13 14:03:08 +000036 pinctrl-0 = <&pinctrl_macb_rmii
37 &pinctrl_macb_rmii_mii_alt>;
Boris BREZILLONdf826742012-04-20 14:37:50 +020038 status = "okay";
39 };
40
Gaël PORTAYe9942d12015-04-30 09:33:34 +020041 usart3: serial@fffd0000 {
42 status = "okay";
43 };
44
Gaël PORTAY49668b02015-04-30 09:33:33 +020045 dbgu: serial@fffff200 {
46 status = "okay";
47 };
48
Boris BREZILLON705b6752013-10-04 09:24:15 +020049 watchdog@fffffd40 {
50 timeout-sec = <15>;
51 atmel,max-heartbeat-sec = <16>;
52 atmel,min-heartbeat-sec = <0>;
53 status = "okay";
54 };
Boris BREZILLONdf826742012-04-20 14:37:50 +020055 };
56
Raashid Muhammedcfdc7fa2016-06-03 11:45:38 +053057 usb0: ohci@500000 {
Gaël PORTAY49668b02015-04-30 09:33:33 +020058 num-ports = <1>;
59 status = "okay";
60 };
61
Boris BREZILLONdf826742012-04-20 14:37:50 +020062 nand0: nand@40000000 {
63 nand-bus-width = <8>;
64 nand-ecc-mode = "soft";
65 status = "okay";
66
Gaël PORTAYea685842015-04-30 09:33:37 +020067 bootstrap@0 {
68 label = "bootstrap";
69 reg = <0x0 0x20000>;
Boris BREZILLONdf826742012-04-20 14:37:50 +020070 };
71
Gaël PORTAYea685842015-04-30 09:33:37 +020072 ubi@20000 {
Boris BREZILLONdf826742012-04-20 14:37:50 +020073 label = "ubi";
Gaël PORTAYea685842015-04-30 09:33:37 +020074 reg = <0x20000 0x7fe0000>;
Boris BREZILLONdf826742012-04-20 14:37:50 +020075 };
Gaël PORTAY49668b02015-04-30 09:33:33 +020076 };
77 };
Boris BREZILLONdf826742012-04-20 14:37:50 +020078
Gaël PORTAY49668b02015-04-30 09:33:33 +020079 gpio_keys {
80 compatible = "gpio-keys";
81 #address-cells = <1>;
82 #size-cells = <0>;
83
84 reset {
Gaël PORTAYd1b063a2015-04-30 09:33:35 +020085 label = "PB_RST";
86 gpios = <&pioB 30 GPIO_ACTIVE_HIGH>;
Gaël PORTAY49668b02015-04-30 09:33:33 +020087 linux,code = <0x100>;
Sudeep Holla67ae8b92015-10-21 11:10:07 +010088 wakeup-source;
Boris BREZILLONdf826742012-04-20 14:37:50 +020089 };
90
Gaël PORTAYd1b063a2015-04-30 09:33:35 +020091 user {
92 label = "PB_USER";
93 gpios = <&pioB 31 GPIO_ACTIVE_HIGH>;
Gaël PORTAY49668b02015-04-30 09:33:33 +020094 linux,code = <0x101>;
Sudeep Holla67ae8b92015-10-21 11:10:07 +010095 wakeup-source;
Boris BREZILLONdf826742012-04-20 14:37:50 +020096 };
97 };
98
Alexandre Bellonie152e3f2016-07-14 16:58:11 +020099 i2c-gpio-0 {
Boris BREZILLONdf826742012-04-20 14:37:50 +0200100 status = "okay";
101
Gaël PORTAY49668b02015-04-30 09:33:33 +0200102 rtc: pcf8563@51 {
Boris BREZILLONdf826742012-04-20 14:37:50 +0200103 compatible = "nxp,pcf8563";
104 reg = <0x51>;
105 };
Boris BREZILLONdf826742012-04-20 14:37:50 +0200106 };
107
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200108 pwm_leds {
109 compatible = "pwm-leds";
Boris BREZILLONdf826742012-04-20 14:37:50 +0200110
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200111 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";
Boris BREZILLONdf826742012-04-20 14:37:50 +0200116 };
117
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200118 network_red {
119 label = "pwm:red:network";
Gaël PORTAY87835a42015-06-03 11:44:23 +0200120 pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>;
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200121 max-brightness = <255>;
122 linux,default-trigger = "default-on";
Boris BREZILLONdf826742012-04-20 14:37:50 +0200123 };
124
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200125 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";
Boris BREZILLONdf826742012-04-20 14:37:50 +0200130 };
131
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200132 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";
Boris BREZILLONdf826742012-04-20 14:37:50 +0200137 };
138 };
Gaël PORTAY4a225be2015-04-30 09:33:36 +0200139
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 };
Jean-Christophe PLAGNIOL-VILLARD6db64d22013-05-15 01:21:50 +0800150};