0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini board
0004 *
0005 * Copyright (C) 2014-2018 Overkiz SAS
0006 * Author: Antoine Aubert <a.aubert@overkiz.com>
0007 * Gaël Portay <g.portay@overkiz.com>
0008 * Kévin Raymond <k.raymond@overkiz.com>
0009 * Dorian Rocipon <d.rocipon@overkiz.com>
0010 */
0011 #include "at91sam9g25.dtsi"
0012
0013 / {
0014 chosen {
0015 bootargs = "ubi.mtd=ubi";
0016 stdout-path = &dbgu;
0017 };
0018
0019 memory@20000000 {
0020 reg = <0x20000000 0x8000000>;
0021 };
0022
0023 clocks {
0024 main_xtal {
0025 clock-frequency = <12000000>;
0026 };
0027
0028 slow_xtal {
0029 clock-frequency = <32768>;
0030 };
0031
0032 adc_op_clk {
0033 status = "disabled";
0034 };
0035 };
0036
0037 gpio_keys {
0038 compatible = "gpio-keys";
0039
0040 key-prog {
0041 label = "PB_PROG";
0042 gpios = <&pioC 17 GPIO_ACTIVE_LOW>;
0043 linux,code = <0x102>;
0044 wakeup-source;
0045 };
0046
0047 key-reset {
0048 label = "PB_RST";
0049 gpios = <&pioC 16 GPIO_ACTIVE_LOW>;
0050 linux,code = <0x100>;
0051 wakeup-source;
0052 };
0053 };
0054
0055 leds: led-controller-1 {
0056 compatible = "pwm-leds";
0057
0058 led_blue: led-1 {
0059 label = "pwm:blue:user";
0060 pwms = <&pwm0 2 10000000 0>;
0061 max-brightness = <255>;
0062 linux,default-trigger = "none";
0063 status = "disabled";
0064 };
0065
0066 led_green: led-2 {
0067 label = "pwm:green:user";
0068 pwms = <&pwm0 0 10000000 0>;
0069 max-brightness = <255>;
0070 linux,default-trigger = "default-on";
0071 };
0072
0073 led_red: led-3 {
0074 label = "pwm:red:user";
0075 pwms = <&pwm0 1 10000000 0>;
0076 max-brightness = <255>;
0077 linux,default-trigger = "default-on";
0078 };
0079 };
0080 };
0081
0082 &usart0 {
0083 atmel,use-dma-rx;
0084 atmel,use-dma-tx;
0085 status = "okay";
0086 };
0087
0088 &macb0 {
0089 phy-mode = "rmii";
0090 status = "okay";
0091 };
0092
0093 &pwm0 {
0094 pinctrl-names = "default";
0095 pinctrl-0 = <&pinctrl_pwm0_pwm0_1
0096 &pinctrl_pwm0_pwm1_1
0097 &pinctrl_pwm0_pwm2_1>;
0098 status = "okay";
0099 };
0100
0101 &dbgu {
0102 status = "okay";
0103 };
0104
0105 &watchdog {
0106 status = "okay";
0107 };
0108
0109 &adc0 {
0110 status = "disabled";
0111 };
0112
0113 &rtc {
0114 status = "disabled";
0115 };
0116
0117 &ebi {
0118 pinctrl-0 = <&pinctrl_ebi_addr_nand
0119 &pinctrl_ebi_data_0_7>;
0120 pinctrl-names = "default";
0121 status = "okay";
0122 };
0123
0124 &nand_controller {
0125 status = "okay";
0126 pinctrl-0 = <&pinctrl_nand_oe_we
0127 &pinctrl_nand_cs
0128 &pinctrl_nand_rb>;
0129 pinctrl-names = "default";
0130
0131 nand@3 {
0132 reg = <0x3 0x0 0x800000>;
0133 rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
0134 cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
0135 nand-bus-width = <8>;
0136 nand-ecc-mode = "hw";
0137 nand-ecc-strength = <4>;
0138 nand-ecc-step-size = <512>;
0139 nand-on-flash-bbt;
0140 label = "atmel_nand";
0141
0142 partitions {
0143 compatible = "fixed-partitions";
0144 #address-cells = <1>;
0145 #size-cells = <1>;
0146
0147 bootstrap@0 {
0148 label = "bootstrap";
0149 reg = <0x0 0x20000>;
0150 };
0151
0152 ubi@20000 {
0153 label = "ubi";
0154 reg = <0x20000 0x7fe0000>;
0155 };
0156 };
0157 };
0158 };
0159
0160 &usb0 {
0161 num-ports = <1>;
0162 status = "okay";
0163 };
0164
0165 &usb1 {
0166 status = "okay";
0167 };
0168