0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * animeo_ip.dts - Device Tree file for Somfy Animeo IP Boards
0004 *
0005 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
0006 */
0007
0008 /dts-v1/;
0009 #include "at91sam9260.dtsi"
0010
0011 / {
0012 model = "Somfy Animeo IP";
0013 compatible = "somfy,animeo-ip", "atmel,at91sam9260", "atmel,at91sam9";
0014
0015 aliases {
0016 serial0 = &usart1;
0017 serial1 = &usart2;
0018 serial2 = &usart0;
0019 serial3 = &dbgu;
0020 serial4 = &usart3;
0021 serial5 = &uart0;
0022 serial6 = &uart1;
0023 };
0024
0025 chosen {
0026 stdout-path = &usart2;
0027 };
0028
0029 memory@20000000 {
0030 reg = <0x20000000 0x4000000>;
0031 };
0032
0033 clocks {
0034 slow_xtal {
0035 clock-frequency = <32768>;
0036 };
0037
0038 main_xtal {
0039 clock-frequency = <18432000>;
0040 };
0041 };
0042
0043 ahb {
0044 apb {
0045 tcb0: timer@fffa0000 {
0046 timer@0 {
0047 compatible = "atmel,tcb-timer";
0048 reg = <0>, <1>;
0049 };
0050
0051 timer@2 {
0052 compatible = "atmel,tcb-timer";
0053 reg = <2>;
0054 };
0055 };
0056
0057 usart0: serial@fffb0000 {
0058 pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts>;
0059 linux,rs485-enabled-at-boot-time;
0060 status = "okay";
0061 };
0062
0063 usart1: serial@fffb4000 {
0064 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts>;
0065 linux,rs485-enabled-at-boot-time;
0066 status = "okay";
0067 };
0068
0069 usart2: serial@fffb8000 {
0070 pinctrl-0 = <&pinctrl_usart2>;
0071 status = "okay";
0072 };
0073
0074 macb0: ethernet@fffc4000 {
0075 pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii>;
0076 phy-mode = "mii";
0077 status = "okay";
0078 };
0079
0080 mmc0: mmc@fffa8000 {
0081 pinctrl-0 = <&pinctrl_mmc0_clk
0082 &pinctrl_mmc0_slot1_cmd_dat0
0083 &pinctrl_mmc0_slot1_dat1_3>;
0084 pinctrl-names = "default";
0085 status = "okay";
0086
0087 slot@1 {
0088 reg = <1>;
0089 bus-width = <4>;
0090 };
0091 };
0092
0093 watchdog@fffffd40 {
0094 status = "okay";
0095 };
0096 };
0097
0098 ebi: ebi@10000000 {
0099 status = "okay";
0100
0101 nand_controller: nand-controller {
0102 status = "okay";
0103 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
0104 pinctrl-names = "default";
0105
0106 nand@3 {
0107 reg = <0x3 0x0 0x800000>;
0108 rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
0109 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
0110 nand-bus-width = <8>;
0111 nand-ecc-mode = "soft";
0112 nand-on-flash-bbt;
0113 label = "atmel_nand";
0114
0115 partitions {
0116 compatible = "fixed-partitions";
0117 #address-cells = <1>;
0118 #size-cells = <1>;
0119
0120 barebox@0 {
0121 label = "barebox";
0122 reg = <0x0 0x58000>;
0123 };
0124
0125 u_boot_env@58000 {
0126 label = "u_boot_env";
0127 reg = <0x58000 0x8000>;
0128 };
0129
0130 ubi@60000 {
0131 label = "ubi";
0132 reg = <0x60000 0x1FA0000>;
0133 };
0134 };
0135 };
0136 };
0137 };
0138
0139 usb0: ohci@500000 {
0140 num-ports = <2>;
0141 atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
0142 status = "okay";
0143 };
0144 };
0145
0146 leds {
0147 compatible = "gpio-leds";
0148
0149 power_green {
0150 label = "power_green";
0151 gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
0152 linux,default-trigger = "heartbeat";
0153 };
0154
0155 power_red {
0156 label = "power_red";
0157 gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
0158 };
0159
0160 tx_green {
0161 label = "tx_green";
0162 gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
0163 };
0164
0165 tx_red {
0166 label = "tx_red";
0167 gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
0168 };
0169 };
0170
0171 gpio-keys {
0172 compatible = "gpio-keys";
0173
0174 key-switch-in {
0175 label = "keyswitch_in";
0176 gpios = <&pioB 1 GPIO_ACTIVE_HIGH>;
0177 linux,code = <28>;
0178 wakeup-source;
0179 };
0180
0181 key-error-in {
0182 label = "error_in";
0183 gpios = <&pioB 2 GPIO_ACTIVE_HIGH>;
0184 linux,code = <29>;
0185 wakeup-source;
0186 };
0187
0188 key-s {
0189 label = "btn";
0190 gpios = <&pioC 23 GPIO_ACTIVE_HIGH>;
0191 linux,code = <31>;
0192 wakeup-source;
0193 };
0194 };
0195 };