1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * animeo_ip.dts - Device Tree file for Somfy 3 * animeo_ip.dts - Device Tree file for Somfy Animeo IP Boards 4 * 4 * 5 * Copyright (C) 2011-2012 Jean-Christophe PL< 5 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 6 */ 6 */ 7 7 8 /dts-v1/; 8 /dts-v1/; 9 #include "at91sam9260.dtsi" 9 #include "at91sam9260.dtsi" 10 10 11 / { 11 / { 12 model = "Somfy Animeo IP"; 12 model = "Somfy Animeo IP"; 13 compatible = "somfy,animeo-ip", "atmel 13 compatible = "somfy,animeo-ip", "atmel,at91sam9260", "atmel,at91sam9"; 14 14 15 aliases { 15 aliases { 16 serial0 = &usart1; 16 serial0 = &usart1; 17 serial1 = &usart2; 17 serial1 = &usart2; 18 serial2 = &usart0; 18 serial2 = &usart0; 19 serial3 = &dbgu; 19 serial3 = &dbgu; 20 serial4 = &usart3; 20 serial4 = &usart3; 21 serial5 = &uart0; 21 serial5 = &uart0; 22 serial6 = &uart1; 22 serial6 = &uart1; 23 }; 23 }; 24 24 25 chosen { 25 chosen { 26 stdout-path = &usart2; 26 stdout-path = &usart2; 27 }; 27 }; 28 28 29 memory@20000000 { 29 memory@20000000 { 30 reg = <0x20000000 0x4000000>; 30 reg = <0x20000000 0x4000000>; 31 }; 31 }; 32 32 33 clocks { 33 clocks { 34 slow_xtal { 34 slow_xtal { 35 clock-frequency = <327 35 clock-frequency = <32768>; 36 }; 36 }; 37 37 38 main_xtal { 38 main_xtal { 39 clock-frequency = <184 39 clock-frequency = <18432000>; 40 }; 40 }; 41 }; 41 }; 42 42 43 ahb { 43 ahb { 44 apb { 44 apb { 45 tcb0: timer@fffa0000 { 45 tcb0: timer@fffa0000 { 46 timer@0 { 46 timer@0 { 47 compat 47 compatible = "atmel,tcb-timer"; 48 reg = 48 reg = <0>, <1>; 49 }; 49 }; 50 50 51 timer@2 { 51 timer@2 { 52 compat 52 compatible = "atmel,tcb-timer"; 53 reg = 53 reg = <2>; 54 }; 54 }; 55 }; 55 }; 56 56 57 usart0: serial@fffb000 57 usart0: serial@fffb0000 { 58 pinctrl-0 = <& 58 pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts>; 59 linux,rs485-en 59 linux,rs485-enabled-at-boot-time; 60 status = "okay 60 status = "okay"; 61 }; 61 }; 62 62 63 usart1: serial@fffb400 63 usart1: serial@fffb4000 { 64 pinctrl-0 = <& 64 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts>; 65 linux,rs485-en 65 linux,rs485-enabled-at-boot-time; 66 status = "okay 66 status = "okay"; 67 }; 67 }; 68 68 69 usart2: serial@fffb800 69 usart2: serial@fffb8000 { 70 pinctrl-0 = <& 70 pinctrl-0 = <&pinctrl_usart2>; 71 status = "okay 71 status = "okay"; 72 }; 72 }; 73 73 74 macb0: ethernet@fffc40 74 macb0: ethernet@fffc4000 { 75 pinctrl-0 = <& 75 pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii>; 76 phy-mode = "mi 76 phy-mode = "mii"; 77 status = "okay 77 status = "okay"; 78 }; 78 }; 79 79 80 mmc0: mmc@fffa8000 { 80 mmc0: mmc@fffa8000 { 81 pinctrl-0 = <& 81 pinctrl-0 = <&pinctrl_mmc0_clk 82 & 82 &pinctrl_mmc0_slot1_cmd_dat0 83 & 83 &pinctrl_mmc0_slot1_dat1_3>; 84 pinctrl-names 84 pinctrl-names = "default"; 85 status = "okay 85 status = "okay"; 86 86 87 slot@1 { 87 slot@1 { 88 reg = 88 reg = <1>; 89 bus-wi 89 bus-width = <4>; 90 }; 90 }; 91 }; 91 }; 92 92 93 watchdog@fffffd40 { 93 watchdog@fffffd40 { 94 status = "okay 94 status = "okay"; 95 }; 95 }; 96 }; 96 }; 97 97 98 ebi: ebi@10000000 { 98 ebi: ebi@10000000 { 99 status = "okay"; 99 status = "okay"; 100 100 101 nand_controller: nand- 101 nand_controller: nand-controller { 102 status = "okay 102 status = "okay"; 103 pinctrl-0 = <& 103 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>; 104 pinctrl-names 104 pinctrl-names = "default"; 105 105 106 nand@3 { 106 nand@3 { 107 reg = 107 reg = <0x3 0x0 0x800000>; 108 rb-gpi 108 rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; 109 cs-gpi 109 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; 110 nand-b 110 nand-bus-width = <8>; 111 nand-e 111 nand-ecc-mode = "soft"; 112 nand-o 112 nand-on-flash-bbt; 113 label 113 label = "atmel_nand"; 114 114 115 partit 115 partitions { 116 116 compatible = "fixed-partitions"; 117 117 #address-cells = <1>; 118 118 #size-cells = <1>; 119 119 120 120 barebox@0 { 121 121 label = "barebox"; 122 122 reg = <0x0 0x58000>; 123 123 }; 124 124 125 125 u_boot_env@58000 { 126 126 label = "u_boot_env"; 127 127 reg = <0x58000 0x8000>; 128 128 }; 129 129 130 130 ubi@60000 { 131 131 label = "ubi"; 132 132 reg = <0x60000 0x1FA0000>; 133 133 }; 134 }; 134 }; 135 }; 135 }; 136 }; 136 }; 137 }; 137 }; 138 138 139 usb0: ohci@500000 { 139 usb0: ohci@500000 { 140 num-ports = <2>; 140 num-ports = <2>; 141 atmel,vbus-gpio = <&pi 141 atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>; 142 status = "okay"; 142 status = "okay"; 143 }; 143 }; 144 }; 144 }; 145 145 146 leds { 146 leds { 147 compatible = "gpio-leds"; 147 compatible = "gpio-leds"; 148 148 149 power_green { 149 power_green { 150 label = "power_green"; 150 label = "power_green"; 151 gpios = <&pioC 17 GPIO 151 gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; 152 linux,default-trigger 152 linux,default-trigger = "heartbeat"; 153 }; 153 }; 154 154 155 power_red { 155 power_red { 156 label = "power_red"; 156 label = "power_red"; 157 gpios = <&pioA 2 GPIO_ 157 gpios = <&pioA 2 GPIO_ACTIVE_HIGH>; 158 }; 158 }; 159 159 160 tx_green { 160 tx_green { 161 label = "tx_green"; 161 label = "tx_green"; 162 gpios = <&pioC 19 GPIO 162 gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; 163 }; 163 }; 164 164 165 tx_red { 165 tx_red { 166 label = "tx_red"; 166 label = "tx_red"; 167 gpios = <&pioC 18 GPIO 167 gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; 168 }; 168 }; 169 }; 169 }; 170 170 171 gpio-keys { 171 gpio-keys { 172 compatible = "gpio-keys"; 172 compatible = "gpio-keys"; 173 173 174 key-switch-in { 174 key-switch-in { 175 label = "keyswitch_in" 175 label = "keyswitch_in"; 176 gpios = <&pioB 1 GPIO_ 176 gpios = <&pioB 1 GPIO_ACTIVE_HIGH>; 177 linux,code = <28>; 177 linux,code = <28>; 178 wakeup-source; 178 wakeup-source; 179 }; 179 }; 180 180 181 key-error-in { 181 key-error-in { 182 label = "error_in"; 182 label = "error_in"; 183 gpios = <&pioB 2 GPIO_ 183 gpios = <&pioB 2 GPIO_ACTIVE_HIGH>; 184 linux,code = <29>; 184 linux,code = <29>; 185 wakeup-source; 185 wakeup-source; 186 }; 186 }; 187 187 188 key-s { 188 key-s { 189 label = "btn"; 189 label = "btn"; 190 gpios = <&pioC 23 GPIO 190 gpios = <&pioC 23 GPIO_ACTIVE_HIGH>; 191 linux,code = <31>; 191 linux,code = <31>; 192 wakeup-source; 192 wakeup-source; 193 }; 193 }; 194 }; 194 }; 195 }; 195 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.