0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board
0004 *
0005 * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com>
0006 * 2014-2015 Gaƫl PORTAY <g.portay@overkiz.com>
0007 */
0008 /dts-v1/;
0009 #include "at91sam9g20.dtsi"
0010 #include <dt-bindings/pwm/pwm.h>
0011
0012 / {
0013 model = "Overkiz Kizbox";
0014 compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9";
0015
0016 chosen {
0017 bootargs = "ubi.mtd=ubi";
0018 stdout-path = &dbgu;
0019 };
0020
0021 memory@20000000 {
0022 reg = <0x20000000 0x2000000>;
0023 };
0024
0025 clocks {
0026 main_xtal {
0027 clock-frequency = <18432000>;
0028 };
0029 };
0030
0031 gpio-keys {
0032 compatible = "gpio-keys";
0033
0034 button-reset {
0035 label = "PB_RST";
0036 gpios = <&pioB 30 GPIO_ACTIVE_HIGH>;
0037 linux,code = <0x100>;
0038 wakeup-source;
0039 };
0040
0041 button-user {
0042 label = "PB_USER";
0043 gpios = <&pioB 31 GPIO_ACTIVE_HIGH>;
0044 linux,code = <0x101>;
0045 wakeup-source;
0046 };
0047 };
0048
0049 led-controller {
0050 compatible = "pwm-leds";
0051
0052 led-1 {
0053 label = "pwm:green:network";
0054 pwms = <&tcb1_pwm1 0 10000000 PWM_POLARITY_INVERTED>;
0055 max-brightness = <255>;
0056 linux,default-trigger = "default-on";
0057 };
0058
0059 led-2 {
0060 label = "pwm:red:network";
0061 pwms = <&tcb1_pwm2 0 10000000 PWM_POLARITY_INVERTED>;
0062 max-brightness = <255>;
0063 linux,default-trigger = "default-on";
0064 };
0065
0066 led-3 {
0067 label = "pwm:green:user";
0068 pwms = <&tcb1_pwm0 0 10000000 PWM_POLARITY_INVERTED>;
0069 max-brightness = <255>;
0070 linux,default-trigger = "default-on";
0071 };
0072
0073 led-4 {
0074 label = "pwm:red:user";
0075 pwms = <&tcb1_pwm0 1 10000000 PWM_POLARITY_INVERTED>;
0076 max-brightness = <255>;
0077 linux,default-trigger = "default-on";
0078 };
0079 };
0080 };
0081
0082 &tcb0 {
0083 timer@0 {
0084 compatible = "atmel,tcb-timer";
0085 reg = <0>, <1>;
0086 };
0087
0088 timer@2 {
0089 compatible = "atmel,tcb-timer";
0090 reg = <2>;
0091 };
0092 };
0093
0094 &tcb1 {
0095 tcb1_pwm0: pwm@0 {
0096 compatible = "atmel,tcb-pwm";
0097 reg = <0>;
0098 #pwm-cells = <3>;
0099 pinctrl-names = "default";
0100 pinctrl-0 = <&pinctrl_tcb1_tioa0 &pinctrl_tcb1_tiob0>;
0101 };
0102
0103 tcb1_pwm1: pwm@1 {
0104 compatible = "atmel,tcb-pwm";
0105 reg = <1>;
0106 #pwm-cells = <3>;
0107 pinctrl-names = "default";
0108 pinctrl-0 = <&pinctrl_tcb1_tioa1>;
0109 };
0110
0111 tcb1_pwm2: pwm@2 {
0112 compatible = "atmel,tcb-pwm";
0113 reg = <2>;
0114 #pwm-cells = <3>;
0115 pinctrl-names = "default";
0116 pinctrl-0 = <&pinctrl_tcb1_tioa2>;
0117 };
0118 };
0119
0120 &ebi {
0121 status = "okay";
0122 };
0123
0124 &nand_controller {
0125 status = "okay";
0126 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
0127 pinctrl-names = "default";
0128
0129 nand@3 {
0130 reg = <0x3 0x0 0x800000>;
0131 rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
0132 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
0133 nand-bus-width = <8>;
0134 nand-ecc-mode = "soft";
0135 nand-on-flash-bbt;
0136 label = "atmel_nand";
0137
0138 partitions {
0139 compatible = "fixed-partitions";
0140 #address-cells = <1>;
0141 #size-cells = <1>;
0142
0143 bootstrap@0 {
0144 label = "bootstrap";
0145 reg = <0x0 0x20000>;
0146 };
0147
0148 ubi@20000 {
0149 label = "ubi";
0150 reg = <0x20000 0x7fe0000>;
0151 };
0152 };
0153 };
0154 };
0155
0156 &macb0 {
0157 phy-mode = "mii";
0158 pinctrl-0 = <&pinctrl_macb_rmii
0159 &pinctrl_macb_rmii_mii_alt>;
0160 status = "okay";
0161 };
0162
0163 &usart3 {
0164 status = "okay";
0165 };
0166
0167 &dbgu {
0168 status = "okay";
0169 };
0170
0171 &watchdog {
0172 timeout-sec = <15>;
0173 atmel,max-heartbeat-sec = <16>;
0174 atmel,min-heartbeat-sec = <0>;
0175 status = "okay";
0176 };
0177
0178 &usb0 {
0179 num-ports = <1>;
0180 status = "okay";
0181 };
0182
0183 &i2c_gpio0 {
0184 status = "okay";
0185
0186 rtc: pcf8563@51 {
0187 compatible = "nxp,pcf8563";
0188 reg = <0x51>;
0189 };
0190 };