Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'at91-drivers' of git://github.com/at91linux/linux-at91 into next/drivers

From Nicolas Ferre:
Adding the DT support to USB gadget High-Speed aka usba.

* tag 'at91-drivers' of git://github.com/at91linux/linux-at91:
USB: gadget: atmel_usba: add DT support
USB: gadget: atmel_usba: allow multi instance
USB: gadget: atmel_usba: move global struct usba_ep usba_ep to struct usba_udc
ARM: at91: udpate defconfigs
ARM: at91: dt: switch to standard IRQ flag defines
ARM: at91: dt: switch to pinctrl to pre-processor
ARM: at91: dt: add pinctrl pre-processor define
ARM: at91: dt: switch to standard GPIO flag defines.
ARM: at91: dt: use #include for all device trees

Signed-off-by: Olof Johansson <olof@lixom.net>

Conflicts:
arch/arm/boot/dts/at91sam9260.dtsi
arch/arm/boot/dts/sama5d3.dtsi

+1806 -1828
+82
Documentation/devicetree/bindings/usb/atmel-usb.txt
··· 47 47 interrupts = <10 4>; 48 48 atmel,vbus-gpio = <&pioC 5 0>; 49 49 }; 50 + 51 + Atmel High-Speed USB device controller 52 + 53 + Required properties: 54 + - compatible: Should be "atmel,at91sam9rl-udc" 55 + - reg: Address and length of the register set for the device 56 + - interrupts: Should contain usba interrupt 57 + - ep childnode: To specify the number of endpoints and their properties. 58 + 59 + Optional properties: 60 + - atmel,vbus-gpio: If present, specifies a gpio that needs to be 61 + activated for the bus to be powered. 62 + 63 + Required child node properties: 64 + - name: Name of the endpoint. 65 + - reg: Num of the endpoint. 66 + - atmel,fifo-size: Size of the fifo. 67 + - atmel,nb-banks: Number of banks. 68 + - atmel,can-dma: Boolean to specify if the endpoint support DMA. 69 + - atmel,can-isoc: Boolean to specify if the endpoint support ISOC. 70 + 71 + usb2: gadget@fff78000 { 72 + #address-cells = <1>; 73 + #size-cells = <0>; 74 + compatible = "atmel,at91sam9rl-udc"; 75 + reg = <0x00600000 0x80000 76 + 0xfff78000 0x400>; 77 + interrupts = <27 4 0>; 78 + atmel,vbus-gpio = <&pioB 19 0>; 79 + 80 + ep0 { 81 + reg = <0>; 82 + atmel,fifo-size = <64>; 83 + atmel,nb-banks = <1>; 84 + }; 85 + 86 + ep1 { 87 + reg = <1>; 88 + atmel,fifo-size = <1024>; 89 + atmel,nb-banks = <2>; 90 + atmel,can-dma; 91 + atmel,can-isoc; 92 + }; 93 + 94 + ep2 { 95 + reg = <2>; 96 + atmel,fifo-size = <1024>; 97 + atmel,nb-banks = <2>; 98 + atmel,can-dma; 99 + atmel,can-isoc; 100 + }; 101 + 102 + ep3 { 103 + reg = <3>; 104 + atmel,fifo-size = <1024>; 105 + atmel,nb-banks = <3>; 106 + atmel,can-dma; 107 + }; 108 + 109 + ep4 { 110 + reg = <4>; 111 + atmel,fifo-size = <1024>; 112 + atmel,nb-banks = <3>; 113 + atmel,can-dma; 114 + }; 115 + 116 + ep5 { 117 + reg = <5>; 118 + atmel,fifo-size = <1024>; 119 + atmel,nb-banks = <3>; 120 + atmel,can-dma; 121 + atmel,can-isoc; 122 + }; 123 + 124 + ep6 { 125 + reg = <6>; 126 + atmel,fifo-size = <1024>; 127 + atmel,nb-banks = <3>; 128 + atmel,can-dma; 129 + atmel,can-isoc; 130 + }; 131 + };
+6 -6
arch/arm/boot/dts/aks-cdu.dts
··· 9 9 10 10 /dts-v1/; 11 11 12 - /include/ "ge863-pro3.dtsi" 12 + #include "ge863-pro3.dtsi" 13 13 14 14 / { 15 15 chosen { ··· 46 46 }; 47 47 48 48 usb1: gadget@fffa4000 { 49 - atmel,vbus-gpio = <&pioC 15 0>; 49 + atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>; 50 50 status = "okay"; 51 51 }; 52 52 }; ··· 90 90 compatible = "gpio-leds"; 91 91 92 92 red { 93 - gpios = <&pioC 10 0>; 93 + gpios = <&pioC 10 GPIO_ACTIVE_HIGH>; 94 94 linux,default-trigger = "none"; 95 95 }; 96 96 97 97 green { 98 - gpios = <&pioA 5 1>; 98 + gpios = <&pioA 5 GPIO_ACTIVE_LOW>; 99 99 linux,default-trigger = "none"; 100 100 default-state = "on"; 101 101 }; 102 102 103 103 yellow { 104 - gpios = <&pioB 20 1>; 104 + gpios = <&pioB 20 GPIO_ACTIVE_LOW>; 105 105 linux,default-trigger = "none"; 106 106 }; 107 107 108 108 blue { 109 - gpios = <&pioB 21 1>; 109 + gpios = <&pioB 21 GPIO_ACTIVE_LOW>; 110 110 linux,default-trigger = "none"; 111 111 }; 112 112 };
+9 -9
arch/arm/boot/dts/animeo_ip.dts
··· 7 7 */ 8 8 9 9 /dts-v1/; 10 - /include/ "at91sam9260.dtsi" 10 + #include "at91sam9260.dtsi" 11 11 12 12 / { 13 13 model = "Somfy Animeo IP"; ··· 123 123 124 124 usb0: ohci@00500000 { 125 125 num-ports = <2>; 126 - atmel,vbus-gpio = <&pioB 15 1>; 126 + atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>; 127 127 status = "okay"; 128 128 }; 129 129 }; ··· 133 133 134 134 power_green { 135 135 label = "power_green"; 136 - gpios = <&pioC 17 0>; 136 + gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; 137 137 linux,default-trigger = "heartbeat"; 138 138 }; 139 139 140 140 power_red { 141 141 label = "power_red"; 142 - gpios = <&pioA 2 0>; 142 + gpios = <&pioA 2 GPIO_ACTIVE_HIGH>; 143 143 }; 144 144 145 145 tx_green { 146 146 label = "tx_green"; 147 - gpios = <&pioC 19 0>; 147 + gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; 148 148 }; 149 149 150 150 tx_red { 151 151 label = "tx_red"; 152 - gpios = <&pioC 18 0>; 152 + gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; 153 153 }; 154 154 }; 155 155 ··· 160 160 161 161 keyswitch_in { 162 162 label = "keyswitch_in"; 163 - gpios = <&pioB 1 0>; 163 + gpios = <&pioB 1 GPIO_ACTIVE_HIGH>; 164 164 linux,code = <28>; 165 165 gpio-key,wakeup; 166 166 }; 167 167 168 168 error_in { 169 169 label = "error_in"; 170 - gpios = <&pioB 2 0>; 170 + gpios = <&pioB 2 GPIO_ACTIVE_HIGH>; 171 171 linux,code = <29>; 172 172 gpio-key,wakeup; 173 173 }; 174 174 175 175 btn { 176 176 label = "btn"; 177 - gpios = <&pioC 23 0>; 177 + gpios = <&pioC 23 GPIO_ACTIVE_HIGH>; 178 178 linux,code = <31>; 179 179 gpio-key,wakeup; 180 180 };
+3 -3
arch/arm/boot/dts/at91-ariag25.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "at91sam9g25.dtsi" 10 + #include "at91sam9g25.dtsi" 11 11 12 12 / { 13 13 model = "Acme Systems Aria G25"; ··· 156 156 /* little green LED in middle of Aria G25 module */ 157 157 aria_led { 158 158 label = "aria_led"; 159 - gpios = <&pioB 8 0>; /* PB8 */ 159 + gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; /* PB8 */ 160 160 linux,default-trigger = "heartbeat"; 161 161 }; 162 162 ··· 164 164 165 165 onewire@0 { 166 166 compatible = "w1-gpio"; 167 - gpios = <&pioA 21 1>; 167 + gpios = <&pioA 21 GPIO_ACTIVE_LOW>; 168 168 pinctrl-names = "default"; 169 169 pinctrl-0 = <&pinctrl_w1_0>; 170 170 };
+107 -100
arch/arm/boot/dts/at91rm9200.dtsi
··· 10 10 * Licensed under GPLv2 or later. 11 11 */ 12 12 13 - /include/ "skeleton.dtsi" 13 + #include "skeleton.dtsi" 14 + #include <dt-bindings/pinctrl/at91.h> 15 + #include <dt-bindings/interrupt-controller/irq.h> 16 + #include <dt-bindings/gpio/gpio.h> 14 17 15 18 / { 16 19 model = "Atmel AT91RM9200 family SoC"; ··· 80 77 st: timer@fffffd00 { 81 78 compatible = "atmel,at91rm9200-st"; 82 79 reg = <0xfffffd00 0x100>; 83 - interrupts = <1 4 7>; 80 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 84 81 }; 85 82 86 83 tcb0: timer@fffa0000 { 87 84 compatible = "atmel,at91rm9200-tcb"; 88 85 reg = <0xfffa0000 0x100>; 89 - interrupts = <17 4 0 18 4 0 19 4 0>; 86 + interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0 87 + 18 IRQ_TYPE_LEVEL_HIGH 0 88 + 19 IRQ_TYPE_LEVEL_HIGH 0>; 90 89 }; 91 90 92 91 tcb1: timer@fffa4000 { 93 92 compatible = "atmel,at91rm9200-tcb"; 94 93 reg = <0xfffa4000 0x100>; 95 - interrupts = <20 4 0 21 4 0 22 4 0>; 94 + interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0 95 + 21 IRQ_TYPE_LEVEL_HIGH 0 96 + 22 IRQ_TYPE_LEVEL_HIGH 0>; 96 97 }; 97 98 98 99 i2c0: i2c@fffb8000 { 99 100 compatible = "atmel,at91rm9200-i2c"; 100 101 reg = <0xfffb8000 0x4000>; 101 - interrupts = <12 4 6>; 102 + interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>; 102 103 pinctrl-names = "default"; 103 104 pinctrl-0 = <&pinctrl_twi>; 104 105 #address-cells = <1>; ··· 113 106 mmc0: mmc@fffb4000 { 114 107 compatible = "atmel,hsmci"; 115 108 reg = <0xfffb4000 0x4000>; 116 - interrupts = <10 4 0>; 109 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH 0>; 117 110 #address-cells = <1>; 118 111 #size-cells = <0>; 119 112 status = "disabled"; ··· 122 115 ssc0: ssc@fffd0000 { 123 116 compatible = "atmel,at91rm9200-ssc"; 124 117 reg = <0xfffd0000 0x4000>; 125 - interrupts = <14 4 5>; 118 + interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>; 126 119 pinctrl-names = "default"; 127 120 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; 128 121 status = "disable"; ··· 131 124 ssc1: ssc@fffd4000 { 132 125 compatible = "atmel,at91rm9200-ssc"; 133 126 reg = <0xfffd4000 0x4000>; 134 - interrupts = <15 4 5>; 127 + interrupts = <15 IRQ_TYPE_LEVEL_HIGH 5>; 135 128 pinctrl-names = "default"; 136 129 pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>; 137 130 status = "disable"; ··· 140 133 ssc2: ssc@fffd8000 { 141 134 compatible = "atmel,at91rm9200-ssc"; 142 135 reg = <0xfffd8000 0x4000>; 143 - interrupts = <16 4 5>; 136 + interrupts = <16 IRQ_TYPE_LEVEL_HIGH 5>; 144 137 pinctrl-names = "default"; 145 138 pinctrl-0 = <&pinctrl_ssc2_tx &pinctrl_ssc2_rx>; 146 139 status = "disable"; ··· 149 142 macb0: ethernet@fffbc000 { 150 143 compatible = "cdns,at91rm9200-emac", "cdns,emac"; 151 144 reg = <0xfffbc000 0x4000>; 152 - interrupts = <24 4 3>; 145 + interrupts = <24 IRQ_TYPE_LEVEL_HIGH 3>; 153 146 phy-mode = "rmii"; 154 147 pinctrl-names = "default"; 155 148 pinctrl-0 = <&pinctrl_macb_rmii>; ··· 174 167 dbgu { 175 168 pinctrl_dbgu: dbgu-0 { 176 169 atmel,pins = 177 - <0 30 0x1 0x0 /* PA30 periph A */ 178 - 0 31 0x1 0x1>; /* PA31 periph with pullup */ 170 + <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA30 periph A */ 171 + AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA31 periph with pullup */ 179 172 }; 180 173 }; 181 174 182 175 uart0 { 183 176 pinctrl_uart0: uart0-0 { 184 177 atmel,pins = 185 - <0 17 0x1 0x0 /* PA17 periph A */ 186 - 0 18 0x1 0x0>; /* PA18 periph A */ 178 + <AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA17 periph A */ 179 + AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA18 periph A */ 187 180 }; 188 181 189 182 pinctrl_uart0_rts: uart0_rts-0 { 190 183 atmel,pins = 191 - <0 20 0x1 0x0>; /* PA20 periph A */ 184 + <AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA20 periph A */ 192 185 }; 193 186 194 187 pinctrl_uart0_cts: uart0_cts-0 { 195 188 atmel,pins = 196 - <0 21 0x1 0x0>; /* PA21 periph A */ 189 + <AT91_PIOA 21 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA21 periph A */ 197 190 }; 198 191 }; 199 192 200 193 uart1 { 201 194 pinctrl_uart1: uart1-0 { 202 195 atmel,pins = 203 - <1 20 0x1 0x1 /* PB20 periph A with pullup */ 204 - 1 21 0x1 0x0>; /* PB21 periph A */ 196 + <AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB20 periph A with pullup */ 197 + AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB21 periph A */ 205 198 }; 206 199 207 200 pinctrl_uart1_rts: uart1_rts-0 { 208 201 atmel,pins = 209 - <1 24 0x1 0x0>; /* PB24 periph A */ 202 + <AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB24 periph A */ 210 203 }; 211 204 212 205 pinctrl_uart1_cts: uart1_cts-0 { 213 206 atmel,pins = 214 - <1 26 0x1 0x0>; /* PB26 periph A */ 207 + <AT91_PIOB 26 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB26 periph A */ 215 208 }; 216 209 217 210 pinctrl_uart1_dtr_dsr: uart1_dtr_dsr-0 { 218 211 atmel,pins = 219 - <1 19 0x1 0x0 /* PB19 periph A */ 220 - 1 25 0x1 0x0>; /* PB25 periph A */ 212 + <AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB19 periph A */ 213 + AT91_PIOB 25 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB25 periph A */ 221 214 }; 222 215 223 216 pinctrl_uart1_dcd: uart1_dcd-0 { 224 217 atmel,pins = 225 - <1 23 0x1 0x0>; /* PB23 periph A */ 218 + <AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB23 periph A */ 226 219 }; 227 220 228 221 pinctrl_uart1_ri: uart1_ri-0 { 229 222 atmel,pins = 230 - <1 18 0x1 0x0>; /* PB18 periph A */ 223 + <AT91_PIOB 18 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB18 periph A */ 231 224 }; 232 225 }; 233 226 234 227 uart2 { 235 228 pinctrl_uart2: uart2-0 { 236 229 atmel,pins = 237 - <0 22 0x1 0x0 /* PA22 periph A */ 238 - 0 23 0x1 0x1>; /* PA23 periph A with pullup */ 230 + <AT91_PIOA 22 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA22 periph A */ 231 + AT91_PIOA 23 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA23 periph A with pullup */ 239 232 }; 240 233 241 234 pinctrl_uart2_rts: uart2_rts-0 { 242 235 atmel,pins = 243 - <0 30 0x2 0x0>; /* PA30 periph B */ 236 + <AT91_PIOA 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA30 periph B */ 244 237 }; 245 238 246 239 pinctrl_uart2_cts: uart2_cts-0 { 247 240 atmel,pins = 248 - <0 31 0x2 0x0>; /* PA31 periph B */ 241 + <AT91_PIOA 31 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA31 periph B */ 249 242 }; 250 243 }; 251 244 252 245 uart3 { 253 246 pinctrl_uart3: uart3-0 { 254 247 atmel,pins = 255 - <0 5 0x2 0x1 /* PA5 periph B with pullup */ 256 - 0 6 0x2 0x0>; /* PA6 periph B */ 248 + <AT91_PIOA 5 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA5 periph B with pullup */ 249 + AT91_PIOA 6 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA6 periph B */ 257 250 }; 258 251 259 252 pinctrl_uart3_rts: uart3_rts-0 { 260 253 atmel,pins = 261 - <1 0 0x2 0x0>; /* PB0 periph B */ 254 + <AT91_PIOB 0 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB0 periph B */ 262 255 }; 263 256 264 257 pinctrl_uart3_cts: uart3_cts-0 { 265 258 atmel,pins = 266 - <1 1 0x2 0x0>; /* PB1 periph B */ 259 + <AT91_PIOB 1 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB1 periph B */ 267 260 }; 268 261 }; 269 262 270 263 nand { 271 264 pinctrl_nand: nand-0 { 272 265 atmel,pins = 273 - <2 2 0x0 0x1 /* PC2 gpio RDY pin pull_up */ 274 - 1 1 0x0 0x1>; /* PB1 gpio CD pin pull_up */ 266 + <AT91_PIOC 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP /* PC2 gpio RDY pin pull_up */ 267 + AT91_PIOB 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PB1 gpio CD pin pull_up */ 275 268 }; 276 269 }; 277 270 278 271 macb { 279 272 pinctrl_macb_rmii: macb_rmii-0 { 280 273 atmel,pins = 281 - <0 7 0x1 0x0 /* PA7 periph A */ 282 - 0 8 0x1 0x0 /* PA8 periph A */ 283 - 0 9 0x1 0x0 /* PA9 periph A */ 284 - 0 10 0x1 0x0 /* PA10 periph A */ 285 - 0 11 0x1 0x0 /* PA11 periph A */ 286 - 0 12 0x1 0x0 /* PA12 periph A */ 287 - 0 13 0x1 0x0 /* PA13 periph A */ 288 - 0 14 0x1 0x0 /* PA14 periph A */ 289 - 0 15 0x1 0x0 /* PA15 periph A */ 290 - 0 16 0x1 0x0>; /* PA16 periph A */ 274 + <AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA7 periph A */ 275 + AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA8 periph A */ 276 + AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA9 periph A */ 277 + AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA10 periph A */ 278 + AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA11 periph A */ 279 + AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA12 periph A */ 280 + AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA13 periph A */ 281 + AT91_PIOA 14 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA14 periph A */ 282 + AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA15 periph A */ 283 + AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA16 periph A */ 291 284 }; 292 285 293 286 pinctrl_macb_rmii_mii: macb_rmii_mii-0 { 294 287 atmel,pins = 295 - <1 12 0x2 0x0 /* PB12 periph B */ 296 - 1 13 0x2 0x0 /* PB13 periph B */ 297 - 1 14 0x2 0x0 /* PB14 periph B */ 298 - 1 15 0x2 0x0 /* PB15 periph B */ 299 - 1 16 0x2 0x0 /* PB16 periph B */ 300 - 1 17 0x2 0x0 /* PB17 periph B */ 301 - 1 18 0x2 0x0 /* PB18 periph B */ 302 - 1 19 0x2 0x0>; /* PB19 periph B */ 288 + <AT91_PIOB 12 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB12 periph B */ 289 + AT91_PIOB 13 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB13 periph B */ 290 + AT91_PIOB 14 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB14 periph B */ 291 + AT91_PIOB 15 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB15 periph B */ 292 + AT91_PIOB 16 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB16 periph B */ 293 + AT91_PIOB 17 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB17 periph B */ 294 + AT91_PIOB 18 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB18 periph B */ 295 + AT91_PIOB 19 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB19 periph B */ 303 296 }; 304 297 }; 305 298 306 299 mmc0 { 307 300 pinctrl_mmc0_clk: mmc0_clk-0 { 308 301 atmel,pins = 309 - <0 27 0x1 0x0>; /* PA27 periph A */ 302 + <AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA27 periph A */ 310 303 }; 311 304 312 305 pinctrl_mmc0_slot0_cmd_dat0: mmc0_slot0_cmd_dat0-0 { 313 306 atmel,pins = 314 - <0 28 0x1 0x1 /* PA28 periph A with pullup */ 315 - 0 29 0x1 0x1>; /* PA29 periph A with pullup */ 307 + <AT91_PIOA 28 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA28 periph A with pullup */ 308 + AT91_PIOA 29 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA29 periph A with pullup */ 316 309 }; 317 310 318 311 pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 { 319 312 atmel,pins = 320 - <1 3 0x2 0x1 /* PB3 periph B with pullup */ 321 - 1 4 0x2 0x1 /* PB4 periph B with pullup */ 322 - 1 5 0x2 0x1>; /* PB5 periph B with pullup */ 313 + <AT91_PIOB 3 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PB3 periph B with pullup */ 314 + AT91_PIOB 4 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PB4 periph B with pullup */ 315 + AT91_PIOB 5 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PB5 periph B with pullup */ 323 316 }; 324 317 325 318 pinctrl_mmc0_slot1_cmd_dat0: mmc0_slot1_cmd_dat0-0 { 326 319 atmel,pins = 327 - <0 8 0x2 0x1 /* PA8 periph B with pullup */ 328 - 0 9 0x2 0x1>; /* PA9 periph B with pullup */ 320 + <AT91_PIOA 8 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA8 periph B with pullup */ 321 + AT91_PIOA 9 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PA9 periph B with pullup */ 329 322 }; 330 323 331 324 pinctrl_mmc0_slot1_dat1_3: mmc0_slot1_dat1_3-0 { 332 325 atmel,pins = 333 - <0 10 0x2 0x1 /* PA10 periph B with pullup */ 334 - 0 11 0x2 0x1 /* PA11 periph B with pullup */ 335 - 0 12 0x2 0x1>; /* PA12 periph B with pullup */ 326 + <AT91_PIOA 10 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA10 periph B with pullup */ 327 + AT91_PIOA 11 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA11 periph B with pullup */ 328 + AT91_PIOA 12 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PA12 periph B with pullup */ 336 329 }; 337 330 }; 338 331 339 332 ssc0 { 340 333 pinctrl_ssc0_tx: ssc0_tx-0 { 341 334 atmel,pins = 342 - <1 0 0x1 0x0 /* PB0 periph A */ 343 - 1 1 0x1 0x0 /* PB1 periph A */ 344 - 1 2 0x1 0x0>; /* PB2 periph A */ 335 + <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB0 periph A */ 336 + AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB1 periph A */ 337 + AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB2 periph A */ 345 338 }; 346 339 347 340 pinctrl_ssc0_rx: ssc0_rx-0 { 348 341 atmel,pins = 349 - <1 3 0x1 0x0 /* PB3 periph A */ 350 - 1 4 0x1 0x0 /* PB4 periph A */ 351 - 1 5 0x1 0x0>; /* PB5 periph A */ 342 + <AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB3 periph A */ 343 + AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A */ 344 + AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB5 periph A */ 352 345 }; 353 346 }; 354 347 355 348 ssc1 { 356 349 pinctrl_ssc1_tx: ssc1_tx-0 { 357 350 atmel,pins = 358 - <1 6 0x1 0x0 /* PB6 periph A */ 359 - 1 7 0x1 0x0 /* PB7 periph A */ 360 - 1 8 0x1 0x0>; /* PB8 periph A */ 351 + <AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A */ 352 + AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB7 periph A */ 353 + AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB8 periph A */ 361 354 }; 362 355 363 356 pinctrl_ssc1_rx: ssc1_rx-0 { 364 357 atmel,pins = 365 - <1 9 0x1 0x0 /* PB9 periph A */ 366 - 1 10 0x1 0x0 /* PB10 periph A */ 367 - 1 11 0x1 0x0>; /* PB11 periph A */ 358 + <AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A */ 359 + AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB10 periph A */ 360 + AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB11 periph A */ 368 361 }; 369 362 }; 370 363 371 364 ssc2 { 372 365 pinctrl_ssc2_tx: ssc2_tx-0 { 373 366 atmel,pins = 374 - <1 12 0x1 0x0 /* PB12 periph A */ 375 - 1 13 0x1 0x0 /* PB13 periph A */ 376 - 1 14 0x1 0x0>; /* PB14 periph A */ 367 + <AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB12 periph A */ 368 + AT91_PIOB 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB13 periph A */ 369 + AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB14 periph A */ 377 370 }; 378 371 379 372 pinctrl_ssc2_rx: ssc2_rx-0 { 380 373 atmel,pins = 381 - <1 15 0x1 0x0 /* PB15 periph A */ 382 - 1 16 0x1 0x0 /* PB16 periph A */ 383 - 1 17 0x1 0x0>; /* PB17 periph A */ 374 + <AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB15 periph A */ 375 + AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB16 periph A */ 376 + AT91_PIOB 17 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB17 periph A */ 384 377 }; 385 378 }; 386 379 387 380 twi { 388 381 pinctrl_twi: twi-0 { 389 382 atmel,pins = 390 - <0 25 0x1 0x2 /* PA25 periph A with multi drive */ 391 - 0 26 0x1 0x2>; /* PA26 periph A with multi drive */ 383 + <AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_MULTI_DRIVE /* PA25 periph A with multi drive */ 384 + AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_MULTI_DRIVE>; /* PA26 periph A with multi drive */ 392 385 }; 393 386 394 387 pinctrl_twi_gpio: twi_gpio-0 { 395 388 atmel,pins = 396 - <0 25 0x0 0x2 /* PA25 GPIO with multi drive */ 397 - 0 26 0x0 0x2>; /* PA26 GPIO with multi drive */ 389 + <AT91_PIOA 25 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE /* PA25 GPIO with multi drive */ 390 + AT91_PIOA 26 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>; /* PA26 GPIO with multi drive */ 398 391 }; 399 392 }; 400 393 401 394 pioA: gpio@fffff400 { 402 395 compatible = "atmel,at91rm9200-gpio"; 403 396 reg = <0xfffff400 0x200>; 404 - interrupts = <2 4 1>; 397 + interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>; 405 398 #gpio-cells = <2>; 406 399 gpio-controller; 407 400 interrupt-controller; ··· 411 404 pioB: gpio@fffff600 { 412 405 compatible = "atmel,at91rm9200-gpio"; 413 406 reg = <0xfffff600 0x200>; 414 - interrupts = <3 4 1>; 407 + interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>; 415 408 #gpio-cells = <2>; 416 409 gpio-controller; 417 410 interrupt-controller; ··· 421 414 pioC: gpio@fffff800 { 422 415 compatible = "atmel,at91rm9200-gpio"; 423 416 reg = <0xfffff800 0x200>; 424 - interrupts = <4 4 1>; 417 + interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>; 425 418 #gpio-cells = <2>; 426 419 gpio-controller; 427 420 interrupt-controller; ··· 431 424 pioD: gpio@fffffa00 { 432 425 compatible = "atmel,at91rm9200-gpio"; 433 426 reg = <0xfffffa00 0x200>; 434 - interrupts = <5 4 1>; 427 + interrupts = <5 IRQ_TYPE_LEVEL_HIGH 1>; 435 428 #gpio-cells = <2>; 436 429 gpio-controller; 437 430 interrupt-controller; ··· 442 435 dbgu: serial@fffff200 { 443 436 compatible = "atmel,at91rm9200-usart"; 444 437 reg = <0xfffff200 0x200>; 445 - interrupts = <1 4 7>; 438 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 446 439 pinctrl-names = "default"; 447 440 pinctrl-0 = <&pinctrl_dbgu>; 448 441 status = "disabled"; ··· 451 444 usart0: serial@fffc0000 { 452 445 compatible = "atmel,at91rm9200-usart"; 453 446 reg = <0xfffc0000 0x200>; 454 - interrupts = <6 4 5>; 447 + interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>; 455 448 atmel,use-dma-rx; 456 449 atmel,use-dma-tx; 457 450 pinctrl-names = "default"; ··· 462 455 usart1: serial@fffc4000 { 463 456 compatible = "atmel,at91rm9200-usart"; 464 457 reg = <0xfffc4000 0x200>; 465 - interrupts = <7 4 5>; 458 + interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>; 466 459 atmel,use-dma-rx; 467 460 atmel,use-dma-tx; 468 461 pinctrl-names = "default"; ··· 473 466 usart2: serial@fffc8000 { 474 467 compatible = "atmel,at91rm9200-usart"; 475 468 reg = <0xfffc8000 0x200>; 476 - interrupts = <8 4 5>; 469 + interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>; 477 470 atmel,use-dma-rx; 478 471 atmel,use-dma-tx; 479 472 pinctrl-names = "default"; ··· 484 477 usart3: serial@fffcc000 { 485 478 compatible = "atmel,at91rm9200-usart"; 486 479 reg = <0xfffcc000 0x200>; 487 - interrupts = <23 4 5>; 480 + interrupts = <23 IRQ_TYPE_LEVEL_HIGH 5>; 488 481 atmel,use-dma-rx; 489 482 atmel,use-dma-tx; 490 483 pinctrl-names = "default"; ··· 495 488 usb1: gadget@fffb0000 { 496 489 compatible = "atmel,at91rm9200-udc"; 497 490 reg = <0xfffb0000 0x4000>; 498 - interrupts = <11 4 2>; 491 + interrupts = <11 IRQ_TYPE_LEVEL_HIGH 2>; 499 492 status = "disabled"; 500 493 }; 501 494 }; ··· 510 503 pinctrl-names = "default"; 511 504 pinctrl-0 = <&pinctrl_nand>; 512 505 nand-ecc-mode = "soft"; 513 - gpios = <&pioC 2 0 506 + gpios = <&pioC 2 GPIO_ACTIVE_HIGH 514 507 0 515 - &pioB 1 0 508 + &pioB 1 GPIO_ACTIVE_HIGH 516 509 >; 517 510 status = "disabled"; 518 511 }; ··· 520 513 usb0: ohci@00300000 { 521 514 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 522 515 reg = <0x00300000 0x100000>; 523 - interrupts = <23 4 2>; 516 + interrupts = <23 IRQ_TYPE_LEVEL_HIGH 2>; 524 517 status = "disabled"; 525 518 }; 526 519 }; 527 520 528 521 i2c@0 { 529 522 compatible = "i2c-gpio"; 530 - gpios = <&pioA 25 0 /* sda */ 531 - &pioA 26 0 /* scl */ 523 + gpios = <&pioA 25 GPIO_ACTIVE_HIGH /* sda */ 524 + &pioA 26 GPIO_ACTIVE_HIGH /* scl */ 532 525 >; 533 526 i2c-gpio,sda-open-drain; 534 527 i2c-gpio,scl-open-drain;
+5 -5
arch/arm/boot/dts/at91rm9200ek.dts
··· 6 6 * Licensed under GPLv2 only 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91rm9200.dtsi" 9 + #include "at91rm9200.dtsi" 10 10 11 11 / { 12 12 model = "Atmel AT91RM9200 evaluation kit"; ··· 50 50 }; 51 51 52 52 usb1: gadget@fffb0000 { 53 - atmel,vbus-gpio = <&pioD 4 0>; 53 + atmel,vbus-gpio = <&pioD 4 GPIO_ACTIVE_HIGH>; 54 54 status = "okay"; 55 55 }; 56 56 }; ··· 66 66 67 67 ds2 { 68 68 label = "green"; 69 - gpios = <&pioB 0 0x1>; 69 + gpios = <&pioB 0 GPIO_ACTIVE_LOW>; 70 70 linux,default-trigger = "mmc0"; 71 71 }; 72 72 73 73 ds4 { 74 74 label = "yellow"; 75 - gpios = <&pioB 1 0x1>; 75 + gpios = <&pioB 1 GPIO_ACTIVE_LOW>; 76 76 linux,default-trigger = "heartbeat"; 77 77 }; 78 78 79 79 ds6 { 80 80 label = "red"; 81 - gpios = <&pioB 2 0x1>; 81 + gpios = <&pioB 2 GPIO_ACTIVE_LOW>; 82 82 }; 83 83 }; 84 84 };
+111 -104
arch/arm/boot/dts/at91sam9260.dtsi
··· 8 8 * Licensed under GPLv2 or later. 9 9 */ 10 10 11 - /include/ "skeleton.dtsi" 11 + #include "skeleton.dtsi" 12 + #include <dt-bindings/pinctrl/at91.h> 13 + #include <dt-bindings/interrupt-controller/irq.h> 14 + #include <dt-bindings/gpio/gpio.h> 12 15 13 16 / { 14 17 model = "Atmel AT91SAM9260 family SoC"; ··· 87 84 pit: timer@fffffd30 { 88 85 compatible = "atmel,at91sam9260-pit"; 89 86 reg = <0xfffffd30 0xf>; 90 - interrupts = <1 4 7>; 87 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 91 88 }; 92 89 93 90 tcb0: timer@fffa0000 { 94 91 compatible = "atmel,at91rm9200-tcb"; 95 92 reg = <0xfffa0000 0x100>; 96 - interrupts = <17 4 0 18 4 0 19 4 0>; 93 + interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0 94 + 18 IRQ_TYPE_LEVEL_HIGH 0 95 + 19 IRQ_TYPE_LEVEL_HIGH 0>; 97 96 }; 98 97 99 98 tcb1: timer@fffdc000 { 100 99 compatible = "atmel,at91rm9200-tcb"; 101 100 reg = <0xfffdc000 0x100>; 102 - interrupts = <26 4 0 27 4 0 28 4 0>; 101 + interrupts = <26 IRQ_TYPE_LEVEL_HIGH 0 102 + 27 IRQ_TYPE_LEVEL_HIGH 0 103 + 28 IRQ_TYPE_LEVEL_HIGH 0>; 103 104 }; 104 105 105 106 pinctrl@fffff400 { ··· 123 116 dbgu { 124 117 pinctrl_dbgu: dbgu-0 { 125 118 atmel,pins = 126 - <1 14 0x1 0x0 /* PB14 periph A */ 127 - 1 15 0x1 0x1>; /* PB15 periph with pullup */ 119 + <AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB14 periph A */ 120 + AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PB15 periph with pullup */ 128 121 }; 129 122 }; 130 123 131 124 usart0 { 132 125 pinctrl_usart0: usart0-0 { 133 126 atmel,pins = 134 - <1 4 0x1 0x0 /* PB4 periph A */ 135 - 1 5 0x1 0x0>; /* PB5 periph A */ 127 + <AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A */ 128 + AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB5 periph A */ 136 129 }; 137 130 138 131 pinctrl_usart0_rts: usart0_rts-0 { 139 132 atmel,pins = 140 - <1 26 0x1 0x0>; /* PB26 periph A */ 133 + <AT91_PIOB 26 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB26 periph A */ 141 134 }; 142 135 143 136 pinctrl_usart0_cts: usart0_cts-0 { 144 137 atmel,pins = 145 - <1 27 0x1 0x0>; /* PB27 periph A */ 138 + <AT91_PIOB 27 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB27 periph A */ 146 139 }; 147 140 148 141 pinctrl_usart0_dtr_dsr: usart0_dtr_dsr-0 { 149 142 atmel,pins = 150 - <1 24 0x1 0x0 /* PB24 periph A */ 151 - 1 22 0x1 0x0>; /* PB22 periph A */ 143 + <AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB24 periph A */ 144 + AT91_PIOB 22 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB22 periph A */ 152 145 }; 153 146 154 147 pinctrl_usart0_dcd: usart0_dcd-0 { 155 148 atmel,pins = 156 - <1 23 0x1 0x0>; /* PB23 periph A */ 149 + <AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB23 periph A */ 157 150 }; 158 151 159 152 pinctrl_usart0_ri: usart0_ri-0 { 160 153 atmel,pins = 161 - <1 25 0x1 0x0>; /* PB25 periph A */ 154 + <AT91_PIOB 25 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB25 periph A */ 162 155 }; 163 156 }; 164 157 165 158 usart1 { 166 159 pinctrl_usart1: usart1-0 { 167 160 atmel,pins = 168 - <1 6 0x1 0x1 /* PB6 periph A with pullup */ 169 - 1 7 0x1 0x0>; /* PB7 periph A */ 161 + <AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB6 periph A with pullup */ 162 + AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB7 periph A */ 170 163 }; 171 164 172 165 pinctrl_usart1_rts: usart1_rts-0 { 173 166 atmel,pins = 174 - <1 28 0x1 0x0>; /* PB28 periph A */ 167 + <AT91_PIOB 28 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB28 periph A */ 175 168 }; 176 169 177 170 pinctrl_usart1_cts: usart1_cts-0 { 178 171 atmel,pins = 179 - <1 29 0x1 0x0>; /* PB29 periph A */ 172 + <AT91_PIOB 29 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB29 periph A */ 180 173 }; 181 174 }; 182 175 183 176 usart2 { 184 177 pinctrl_usart2: usart2-0 { 185 178 atmel,pins = 186 - <1 8 0x1 0x1 /* PB8 periph A with pullup */ 187 - 1 9 0x1 0x0>; /* PB9 periph A */ 179 + <AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB8 periph A with pullup */ 180 + AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB9 periph A */ 188 181 }; 189 182 190 183 pinctrl_usart2_rts: usart2_rts-0 { 191 184 atmel,pins = 192 - <0 4 0x1 0x0>; /* PA4 periph A */ 185 + <AT91_PIOA 4 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA4 periph A */ 193 186 }; 194 187 195 188 pinctrl_usart2_cts: usart2_cts-0 { 196 189 atmel,pins = 197 - <0 5 0x1 0x0>; /* PA5 periph A */ 190 + <AT91_PIOA 5 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA5 periph A */ 198 191 }; 199 192 }; 200 193 201 194 usart3 { 202 195 pinctrl_usart3: usart3-0 { 203 196 atmel,pins = 204 - <1 10 0x1 0x1 /* PB10 periph A with pullup */ 205 - 1 11 0x1 0x0>; /* PB11 periph A */ 197 + <AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB10 periph A with pullup */ 198 + AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB11 periph A */ 206 199 }; 207 200 208 201 pinctrl_usart3_rts: usart3_rts-0 { 209 202 atmel,pins = 210 - <2 8 0x2 0x0>; /* PC8 periph B */ 203 + <AT91_PIOB 8 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC8 periph B */ 211 204 }; 212 205 213 206 pinctrl_usart3_cts: usart3_cts-0 { 214 207 atmel,pins = 215 - <2 10 0x2 0x0>; /* PC10 periph B */ 208 + <AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC10 periph B */ 216 209 }; 217 210 }; 218 211 219 212 uart0 { 220 213 pinctrl_uart0: uart0-0 { 221 214 atmel,pins = 222 - <0 31 0x2 0x1 /* PA31 periph B with pullup */ 223 - 0 30 0x2 0x0>; /* PA30 periph B */ 215 + <AT91_PIOA 31 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA31 periph B with pullup */ 216 + AT91_PIOA 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA30 periph B */ 224 217 }; 225 218 }; 226 219 227 220 uart1 { 228 221 pinctrl_uart1: uart1-0 { 229 222 atmel,pins = 230 - <1 12 0x1 0x1 /* PB12 periph A with pullup */ 231 - 1 13 0x1 0x0>; /* PB13 periph A */ 223 + <AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB12 periph A with pullup */ 224 + AT91_PIOB 13 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB13 periph A */ 232 225 }; 233 226 }; 234 227 235 228 nand { 236 229 pinctrl_nand: nand-0 { 237 230 atmel,pins = 238 - <2 13 0x0 0x1 /* PC13 gpio RDY pin pull_up */ 239 - 2 14 0x0 0x1>; /* PC14 gpio enable pin pull_up */ 231 + <AT91_PIOC 13 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP /* PC13 gpio RDY pin pull_up */ 232 + AT91_PIOC 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PC14 gpio enable pin pull_up */ 240 233 }; 241 234 }; 242 235 243 236 macb { 244 237 pinctrl_macb_rmii: macb_rmii-0 { 245 238 atmel,pins = 246 - <0 12 0x1 0x0 /* PA12 periph A */ 247 - 0 13 0x1 0x0 /* PA13 periph A */ 248 - 0 14 0x1 0x0 /* PA14 periph A */ 249 - 0 15 0x1 0x0 /* PA15 periph A */ 250 - 0 16 0x1 0x0 /* PA16 periph A */ 251 - 0 17 0x1 0x0 /* PA17 periph A */ 252 - 0 18 0x1 0x0 /* PA18 periph A */ 253 - 0 19 0x1 0x0 /* PA19 periph A */ 254 - 0 20 0x1 0x0 /* PA20 periph A */ 255 - 0 21 0x1 0x0>; /* PA21 periph A */ 239 + <AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA12 periph A */ 240 + AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA13 periph A */ 241 + AT91_PIOA 14 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA14 periph A */ 242 + AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA15 periph A */ 243 + AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA16 periph A */ 244 + AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA17 periph A */ 245 + AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA18 periph A */ 246 + AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA19 periph A */ 247 + AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA20 periph A */ 248 + AT91_PIOA 21 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA21 periph A */ 256 249 }; 257 250 258 251 pinctrl_macb_rmii_mii: macb_rmii_mii-0 { 259 252 atmel,pins = 260 - <0 22 0x2 0x0 /* PA22 periph B */ 261 - 0 23 0x2 0x0 /* PA23 periph B */ 262 - 0 24 0x2 0x0 /* PA24 periph B */ 263 - 0 25 0x2 0x0 /* PA25 periph B */ 264 - 0 26 0x2 0x0 /* PA26 periph B */ 265 - 0 27 0x2 0x0 /* PA27 periph B */ 266 - 0 28 0x2 0x0 /* PA28 periph B */ 267 - 0 29 0x2 0x0>; /* PA29 periph B */ 253 + <AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA22 periph B */ 254 + AT91_PIOA 23 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA23 periph B */ 255 + AT91_PIOA 24 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA24 periph B */ 256 + AT91_PIOA 25 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA25 periph B */ 257 + AT91_PIOA 26 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA26 periph B */ 258 + AT91_PIOA 27 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA27 periph B */ 259 + AT91_PIOA 28 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA28 periph B */ 260 + AT91_PIOA 29 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA29 periph B */ 268 261 }; 269 262 270 263 pinctrl_macb_rmii_mii_alt: macb_rmii_mii-1 { 271 264 atmel,pins = 272 - <0 10 0x2 0x0 /* PA10 periph B */ 273 - 0 11 0x2 0x0 /* PA11 periph B */ 274 - 0 22 0x2 0x0 /* PA22 periph B */ 275 - 0 25 0x2 0x0 /* PA25 periph B */ 276 - 0 26 0x2 0x0 /* PA26 periph B */ 277 - 0 27 0x2 0x0 /* PA27 periph B */ 278 - 0 28 0x2 0x0 /* PA28 periph B */ 279 - 0 29 0x2 0x0>; /* PA29 periph B */ 265 + <AT91_PIOA 10 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA10 periph B */ 266 + AT91_PIOA 11 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA11 periph B */ 267 + AT91_PIOA 24 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA24 periph B */ 268 + AT91_PIOA 25 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA25 periph B */ 269 + AT91_PIOA 26 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA26 periph B */ 270 + AT91_PIOA 27 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA27 periph B */ 271 + AT91_PIOA 28 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA28 periph B */ 272 + AT91_PIOA 29 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA29 periph B */ 280 273 }; 281 274 }; 282 275 283 276 mmc0 { 284 277 pinctrl_mmc0_clk: mmc0_clk-0 { 285 278 atmel,pins = 286 - <0 8 0x1 0x0>; /* PA8 periph A */ 279 + <AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA8 periph A */ 287 280 }; 288 281 289 282 pinctrl_mmc0_slot0_cmd_dat0: mmc0_slot0_cmd_dat0-0 { 290 283 atmel,pins = 291 - <0 7 0x1 0x1 /* PA7 periph A with pullup */ 292 - 0 6 0x1 0x1>; /* PA6 periph A with pullup */ 284 + <AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA7 periph A with pullup */ 285 + AT91_PIOA 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA6 periph A with pullup */ 293 286 }; 294 287 295 288 pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 { 296 289 atmel,pins = 297 - <0 9 0x1 0x1 /* PA9 periph A with pullup */ 298 - 0 10 0x1 0x1 /* PA10 periph A with pullup */ 299 - 0 11 0x1 0x1>; /* PA11 periph A with pullup */ 290 + <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA9 periph A with pullup */ 291 + AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA10 periph A with pullup */ 292 + AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA11 periph A with pullup */ 300 293 }; 301 294 302 295 pinctrl_mmc0_slot1_cmd_dat0: mmc0_slot1_cmd_dat0-0 { 303 296 atmel,pins = 304 - <0 1 0x2 0x1 /* PA1 periph B with pullup */ 305 - 0 0 0x2 0x1>; /* PA0 periph B with pullup */ 297 + <AT91_PIOA 1 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA1 periph B with pullup */ 298 + AT91_PIOA 0 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PA0 periph B with pullup */ 306 299 }; 307 300 308 301 pinctrl_mmc0_slot1_dat1_3: mmc0_slot1_dat1_3-0 { 309 302 atmel,pins = 310 - <0 5 0x2 0x1 /* PA5 periph B with pullup */ 311 - 0 4 0x2 0x1 /* PA4 periph B with pullup */ 312 - 0 3 0x2 0x1>; /* PA3 periph B with pullup */ 303 + <AT91_PIOA 5 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA5 periph B with pullup */ 304 + AT91_PIOA 4 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA4 periph B with pullup */ 305 + AT91_PIOA 3 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PA3 periph B with pullup */ 313 306 }; 314 307 }; 315 308 316 309 ssc0 { 317 310 pinctrl_ssc0_tx: ssc0_tx-0 { 318 311 atmel,pins = 319 - <1 16 0x1 0x0 /* PB16 periph A */ 320 - 1 17 0x1 0x0 /* PB17 periph A */ 321 - 1 18 0x1 0x0>; /* PB18 periph A */ 312 + <AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB16 periph A */ 313 + AT91_PIOB 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB17 periph A */ 314 + AT91_PIOB 18 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB18 periph A */ 322 315 }; 323 316 324 317 pinctrl_ssc0_rx: ssc0_rx-0 { 325 318 atmel,pins = 326 - <1 19 0x1 0x0 /* PB19 periph A */ 327 - 1 20 0x1 0x0 /* PB20 periph A */ 328 - 1 21 0x1 0x0>; /* PB21 periph A */ 319 + <AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB19 periph A */ 320 + AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB20 periph A */ 321 + AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB21 periph A */ 329 322 }; 330 323 }; 331 324 332 325 spi0 { 333 326 pinctrl_spi0: spi0-0 { 334 327 atmel,pins = 335 - <0 0 0x1 0x0 /* PA0 periph A SPI0_MISO pin */ 336 - 0 1 0x1 0x0 /* PA1 periph A SPI0_MOSI pin */ 337 - 0 2 0x1 0x0>; /* PA2 periph A SPI0_SPCK pin */ 328 + <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA0 periph A SPI0_MISO pin */ 329 + AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA1 periph A SPI0_MOSI pin */ 330 + AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA2 periph A SPI0_SPCK pin */ 338 331 }; 339 332 }; 340 333 341 334 spi1 { 342 335 pinctrl_spi1: spi1-0 { 343 336 atmel,pins = 344 - <1 0 0x1 0x0 /* PB0 periph A SPI1_MISO pin */ 345 - 1 1 0x1 0x0 /* PB1 periph A SPI1_MOSI pin */ 346 - 1 2 0x1 0x0>; /* PB2 periph A SPI1_SPCK pin */ 337 + <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB0 periph A SPI1_MISO pin */ 338 + AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB1 periph A SPI1_MOSI pin */ 339 + AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB2 periph A SPI1_SPCK pin */ 347 340 }; 348 341 }; 349 342 350 343 pioA: gpio@fffff400 { 351 344 compatible = "atmel,at91rm9200-gpio"; 352 345 reg = <0xfffff400 0x200>; 353 - interrupts = <2 4 1>; 346 + interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>; 354 347 #gpio-cells = <2>; 355 348 gpio-controller; 356 349 interrupt-controller; ··· 360 353 pioB: gpio@fffff600 { 361 354 compatible = "atmel,at91rm9200-gpio"; 362 355 reg = <0xfffff600 0x200>; 363 - interrupts = <3 4 1>; 356 + interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>; 364 357 #gpio-cells = <2>; 365 358 gpio-controller; 366 359 interrupt-controller; ··· 370 363 pioC: gpio@fffff800 { 371 364 compatible = "atmel,at91rm9200-gpio"; 372 365 reg = <0xfffff800 0x200>; 373 - interrupts = <4 4 1>; 366 + interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>; 374 367 #gpio-cells = <2>; 375 368 gpio-controller; 376 369 interrupt-controller; ··· 381 374 dbgu: serial@fffff200 { 382 375 compatible = "atmel,at91sam9260-usart"; 383 376 reg = <0xfffff200 0x200>; 384 - interrupts = <1 4 7>; 377 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 385 378 pinctrl-names = "default"; 386 379 pinctrl-0 = <&pinctrl_dbgu>; 387 380 status = "disabled"; ··· 390 383 usart0: serial@fffb0000 { 391 384 compatible = "atmel,at91sam9260-usart"; 392 385 reg = <0xfffb0000 0x200>; 393 - interrupts = <6 4 5>; 386 + interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>; 394 387 atmel,use-dma-rx; 395 388 atmel,use-dma-tx; 396 389 pinctrl-names = "default"; ··· 401 394 usart1: serial@fffb4000 { 402 395 compatible = "atmel,at91sam9260-usart"; 403 396 reg = <0xfffb4000 0x200>; 404 - interrupts = <7 4 5>; 397 + interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>; 405 398 atmel,use-dma-rx; 406 399 atmel,use-dma-tx; 407 400 pinctrl-names = "default"; ··· 412 405 usart2: serial@fffb8000 { 413 406 compatible = "atmel,at91sam9260-usart"; 414 407 reg = <0xfffb8000 0x200>; 415 - interrupts = <8 4 5>; 408 + interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>; 416 409 atmel,use-dma-rx; 417 410 atmel,use-dma-tx; 418 411 pinctrl-names = "default"; ··· 423 416 usart3: serial@fffd0000 { 424 417 compatible = "atmel,at91sam9260-usart"; 425 418 reg = <0xfffd0000 0x200>; 426 - interrupts = <23 4 5>; 419 + interrupts = <23 IRQ_TYPE_LEVEL_HIGH 5>; 427 420 atmel,use-dma-rx; 428 421 atmel,use-dma-tx; 429 422 pinctrl-names = "default"; ··· 434 427 uart0: serial@fffd4000 { 435 428 compatible = "atmel,at91sam9260-usart"; 436 429 reg = <0xfffd4000 0x200>; 437 - interrupts = <24 4 5>; 430 + interrupts = <24 IRQ_TYPE_LEVEL_HIGH 5>; 438 431 atmel,use-dma-rx; 439 432 atmel,use-dma-tx; 440 433 pinctrl-names = "default"; ··· 445 438 uart1: serial@fffd8000 { 446 439 compatible = "atmel,at91sam9260-usart"; 447 440 reg = <0xfffd8000 0x200>; 448 - interrupts = <25 4 5>; 441 + interrupts = <25 IRQ_TYPE_LEVEL_HIGH 5>; 449 442 atmel,use-dma-rx; 450 443 atmel,use-dma-tx; 451 444 pinctrl-names = "default"; ··· 456 449 macb0: ethernet@fffc4000 { 457 450 compatible = "cdns,at32ap7000-macb", "cdns,macb"; 458 451 reg = <0xfffc4000 0x100>; 459 - interrupts = <21 4 3>; 452 + interrupts = <21 IRQ_TYPE_LEVEL_HIGH 3>; 460 453 pinctrl-names = "default"; 461 454 pinctrl-0 = <&pinctrl_macb_rmii>; 462 455 status = "disabled"; ··· 465 458 usb1: gadget@fffa4000 { 466 459 compatible = "atmel,at91rm9200-udc"; 467 460 reg = <0xfffa4000 0x4000>; 468 - interrupts = <10 4 2>; 461 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH 2>; 469 462 status = "disabled"; 470 463 }; 471 464 472 465 i2c0: i2c@fffac000 { 473 466 compatible = "atmel,at91sam9260-i2c"; 474 467 reg = <0xfffac000 0x100>; 475 - interrupts = <11 4 6>; 468 + interrupts = <11 IRQ_TYPE_LEVEL_HIGH 6>; 476 469 #address-cells = <1>; 477 470 #size-cells = <0>; 478 471 status = "disabled"; ··· 481 474 mmc0: mmc@fffa8000 { 482 475 compatible = "atmel,hsmci"; 483 476 reg = <0xfffa8000 0x600>; 484 - interrupts = <9 4 0>; 477 + interrupts = <9 IRQ_TYPE_LEVEL_HIGH 0>; 485 478 #address-cells = <1>; 486 479 #size-cells = <0>; 487 480 status = "disabled"; ··· 490 483 ssc0: ssc@fffbc000 { 491 484 compatible = "atmel,at91rm9200-ssc"; 492 485 reg = <0xfffbc000 0x4000>; 493 - interrupts = <14 4 5>; 486 + interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>; 494 487 pinctrl-names = "default"; 495 488 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; 496 489 status = "disabled"; ··· 501 494 #size-cells = <0>; 502 495 compatible = "atmel,at91rm9200-spi"; 503 496 reg = <0xfffc8000 0x200>; 504 - interrupts = <12 4 3>; 497 + interrupts = <12 IRQ_TYPE_LEVEL_HIGH 3>; 505 498 pinctrl-names = "default"; 506 499 pinctrl-0 = <&pinctrl_spi0>; 507 500 status = "disabled"; ··· 512 505 #size-cells = <0>; 513 506 compatible = "atmel,at91rm9200-spi"; 514 507 reg = <0xfffcc000 0x200>; 515 - interrupts = <13 4 3>; 508 + interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>; 516 509 pinctrl-names = "default"; 517 510 pinctrl-0 = <&pinctrl_spi1>; 518 511 status = "disabled"; ··· 521 514 adc0: adc@fffe0000 { 522 515 compatible = "atmel,at91sam9260-adc"; 523 516 reg = <0xfffe0000 0x100>; 524 - interrupts = <5 4 0>; 517 + interrupts = <5 IRQ_TYPE_LEVEL_HIGH 0>; 525 518 atmel,adc-use-external-triggers; 526 519 atmel,adc-channels-used = <0xf>; 527 520 atmel,adc-vref = <3300>; ··· 574 567 atmel,nand-cmd-offset = <22>; 575 568 pinctrl-names = "default"; 576 569 pinctrl-0 = <&pinctrl_nand>; 577 - gpios = <&pioC 13 0 578 - &pioC 14 0 570 + gpios = <&pioC 13 GPIO_ACTIVE_HIGH 571 + &pioC 14 GPIO_ACTIVE_HIGH 579 572 0 580 573 >; 581 574 status = "disabled"; ··· 584 577 usb0: ohci@00500000 { 585 578 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 586 579 reg = <0x00500000 0x100000>; 587 - interrupts = <20 4 2>; 580 + interrupts = <20 IRQ_TYPE_LEVEL_HIGH 2>; 588 581 status = "disabled"; 589 582 }; 590 583 }; 591 584 592 585 i2c@0 { 593 586 compatible = "i2c-gpio"; 594 - gpios = <&pioA 23 0 /* sda */ 595 - &pioA 24 0 /* scl */ 587 + gpios = <&pioA 23 GPIO_ACTIVE_HIGH /* sda */ 588 + &pioA 24 GPIO_ACTIVE_HIGH /* scl */ 596 589 >; 597 590 i2c-gpio,sda-open-drain; 598 591 i2c-gpio,scl-open-drain;
+103 -100
arch/arm/boot/dts/at91sam9263.dtsi
··· 6 6 * Licensed under GPLv2 only. 7 7 */ 8 8 9 - /include/ "skeleton.dtsi" 9 + #include "skeleton.dtsi" 10 + #include <dt-bindings/pinctrl/at91.h> 11 + #include <dt-bindings/interrupt-controller/irq.h> 12 + #include <dt-bindings/gpio/gpio.h> 10 13 11 14 / { 12 15 model = "Atmel AT91SAM9263 family SoC"; ··· 75 72 pit: timer@fffffd30 { 76 73 compatible = "atmel,at91sam9260-pit"; 77 74 reg = <0xfffffd30 0xf>; 78 - interrupts = <1 4 7>; 75 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 79 76 }; 80 77 81 78 tcb0: timer@fff7c000 { 82 79 compatible = "atmel,at91rm9200-tcb"; 83 80 reg = <0xfff7c000 0x100>; 84 - interrupts = <19 4 0>; 81 + interrupts = <19 IRQ_TYPE_LEVEL_HIGH 0>; 85 82 }; 86 83 87 84 rstc@fffffd00 { ··· 113 110 dbgu { 114 111 pinctrl_dbgu: dbgu-0 { 115 112 atmel,pins = 116 - <2 30 0x1 0x0 /* PC30 periph A */ 117 - 2 31 0x1 0x1>; /* PC31 periph with pullup */ 113 + <AT91_PIOC 30 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC30 periph A */ 114 + AT91_PIOC 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PC31 periph with pullup */ 118 115 }; 119 116 }; 120 117 121 118 usart0 { 122 119 pinctrl_usart0: usart0-0 { 123 120 atmel,pins = 124 - <0 26 0x1 0x1 /* PA26 periph A with pullup */ 125 - 0 27 0x1 0x0>; /* PA27 periph A */ 121 + <AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA26 periph A with pullup */ 122 + AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA27 periph A */ 126 123 }; 127 124 128 125 pinctrl_usart0_rts: usart0_rts-0 { 129 126 atmel,pins = 130 - <0 28 0x1 0x0>; /* PA28 periph A */ 127 + <AT91_PIOA 28 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA28 periph A */ 131 128 }; 132 129 133 130 pinctrl_usart0_cts: usart0_cts-0 { 134 131 atmel,pins = 135 - <0 29 0x1 0x0>; /* PA29 periph A */ 132 + <AT91_PIOA 29 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA29 periph A */ 136 133 }; 137 134 }; 138 135 139 136 usart1 { 140 137 pinctrl_usart1: usart1-0 { 141 138 atmel,pins = 142 - <3 0 0x1 0x1 /* PD0 periph A with pullup */ 143 - 3 1 0x1 0x0>; /* PD1 periph A */ 139 + <AT91_PIOD 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PD0 periph A with pullup */ 140 + AT91_PIOD 1 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD1 periph A */ 144 141 }; 145 142 146 143 pinctrl_usart1_rts: usart1_rts-0 { 147 144 atmel,pins = 148 - <3 7 0x2 0x0>; /* PD7 periph B */ 145 + <AT91_PIOD 7 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD7 periph B */ 149 146 }; 150 147 151 148 pinctrl_usart1_cts: usart1_cts-0 { 152 149 atmel,pins = 153 - <3 8 0x2 0x0>; /* PD8 periph B */ 150 + <AT91_PIOD 8 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD8 periph B */ 154 151 }; 155 152 }; 156 153 157 154 usart2 { 158 155 pinctrl_usart2: usart2-0 { 159 156 atmel,pins = 160 - <3 2 0x1 0x1 /* PD2 periph A with pullup */ 161 - 3 3 0x1 0x0>; /* PD3 periph A */ 157 + <AT91_PIOD 2 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PD2 periph A with pullup */ 158 + AT91_PIOD 3 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD3 periph A */ 162 159 }; 163 160 164 161 pinctrl_usart2_rts: usart2_rts-0 { 165 162 atmel,pins = 166 - <3 5 0x2 0x0>; /* PD5 periph B */ 163 + <AT91_PIOD 5 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD5 periph B */ 167 164 }; 168 165 169 166 pinctrl_usart2_cts: usart2_cts-0 { 170 167 atmel,pins = 171 - <4 6 0x2 0x0>; /* PD6 periph B */ 168 + <AT91_PIOD 6 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD6 periph B */ 172 169 }; 173 170 }; 174 171 175 172 nand { 176 173 pinctrl_nand: nand-0 { 177 174 atmel,pins = 178 - <0 22 0x0 0x1 /* PA22 gpio RDY pin pull_up*/ 179 - 3 15 0x0 0x1>; /* PD15 gpio enable pin pull_up */ 175 + <AT91_PIOA 22 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP /* PA22 gpio RDY pin pull_up*/ 176 + AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD15 gpio enable pin pull_up */ 180 177 }; 181 178 }; 182 179 183 180 macb { 184 181 pinctrl_macb_rmii: macb_rmii-0 { 185 182 atmel,pins = 186 - <2 25 0x2 0x0 /* PC25 periph B */ 187 - 4 21 0x1 0x0 /* PE21 periph A */ 188 - 4 23 0x1 0x0 /* PE23 periph A */ 189 - 4 24 0x1 0x0 /* PE24 periph A */ 190 - 4 25 0x1 0x0 /* PE25 periph A */ 191 - 4 26 0x1 0x0 /* PE26 periph A */ 192 - 4 27 0x1 0x0 /* PE27 periph A */ 193 - 4 28 0x1 0x0 /* PE28 periph A */ 194 - 4 29 0x1 0x0 /* PE29 periph A */ 195 - 4 30 0x1 0x0>; /* PE30 periph A */ 183 + <AT91_PIOC 25 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC25 periph B */ 184 + AT91_PIOE 21 AT91_PERIPH_A AT91_PINCTRL_NONE /* PE21 periph A */ 185 + AT91_PIOE 23 AT91_PERIPH_A AT91_PINCTRL_NONE /* PE23 periph A */ 186 + AT91_PIOE 24 AT91_PERIPH_A AT91_PINCTRL_NONE /* PE24 periph A */ 187 + AT91_PIOE 25 AT91_PERIPH_A AT91_PINCTRL_NONE /* PE25 periph A */ 188 + AT91_PIOE 26 AT91_PERIPH_A AT91_PINCTRL_NONE /* PE26 periph A */ 189 + AT91_PIOE 27 AT91_PERIPH_A AT91_PINCTRL_NONE /* PE27 periph A */ 190 + AT91_PIOE 28 AT91_PERIPH_A AT91_PINCTRL_NONE /* PE28 periph A */ 191 + AT91_PIOE 29 AT91_PERIPH_A AT91_PINCTRL_NONE /* PE29 periph A */ 192 + AT91_PIOE 30 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PE30 periph A */ 196 193 }; 197 194 198 195 pinctrl_macb_rmii_mii: macb_rmii_mii-0 { 199 196 atmel,pins = 200 - <2 20 0x2 0x0 /* PC20 periph B */ 201 - 2 21 0x2 0x0 /* PC21 periph B */ 202 - 2 22 0x2 0x0 /* PC22 periph B */ 203 - 2 23 0x2 0x0 /* PC23 periph B */ 204 - 2 24 0x2 0x0 /* PC24 periph B */ 205 - 2 25 0x2 0x0 /* PC25 periph B */ 206 - 2 27 0x2 0x0 /* PC27 periph B */ 207 - 4 22 0x2 0x0>; /* PE22 periph B */ 197 + <AT91_PIOC 20 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC20 periph B */ 198 + AT91_PIOC 21 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC21 periph B */ 199 + AT91_PIOC 22 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC22 periph B */ 200 + AT91_PIOC 23 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC23 periph B */ 201 + AT91_PIOC 24 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC24 periph B */ 202 + AT91_PIOC 25 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC25 periph B */ 203 + AT91_PIOC 27 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC27 periph B */ 204 + AT91_PIOE 22 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PE22 periph B */ 208 205 }; 209 206 }; 210 207 211 208 mmc0 { 212 209 pinctrl_mmc0_clk: mmc0_clk-0 { 213 210 atmel,pins = 214 - <0 12 0x1 0x0>; /* PA12 periph A */ 211 + <AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA12 periph A */ 215 212 }; 216 213 217 214 pinctrl_mmc0_slot0_cmd_dat0: mmc0_slot0_cmd_dat0-0 { 218 215 atmel,pins = 219 - <0 1 0x1 0x1 /* PA1 periph A with pullup */ 220 - 0 0 0x1 0x1>; /* PA0 periph A with pullup */ 216 + <AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA1 periph A with pullup */ 217 + AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA0 periph A with pullup */ 221 218 }; 222 219 223 220 pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 { 224 221 atmel,pins = 225 - <0 3 0x1 0x1 /* PA3 periph A with pullup */ 226 - 0 4 0x1 0x1 /* PA4 periph A with pullup */ 227 - 0 5 0x1 0x1>; /* PA5 periph A with pullup */ 222 + <AT91_PIOA 3 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA3 periph A with pullup */ 223 + AT91_PIOA 4 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA4 periph A with pullup */ 224 + AT91_PIOA 5 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA5 periph A with pullup */ 228 225 }; 229 226 230 227 pinctrl_mmc0_slot1_cmd_dat0: mmc0_slot1_cmd_dat0-0 { 231 228 atmel,pins = 232 - <0 16 0x1 0x1 /* PA16 periph A with pullup */ 233 - 0 17 0x1 0x1>; /* PA17 periph A with pullup */ 229 + <AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA16 periph A with pullup */ 230 + AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA17 periph A with pullup */ 234 231 }; 235 232 236 233 pinctrl_mmc0_slot1_dat1_3: mmc0_slot1_dat1_3-0 { 237 234 atmel,pins = 238 - <0 18 0x1 0x1 /* PA18 periph A with pullup */ 239 - 0 19 0x1 0x1 /* PA19 periph A with pullup */ 240 - 0 20 0x1 0x1>; /* PA20 periph A with pullup */ 235 + <AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA18 periph A with pullup */ 236 + AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA19 periph A with pullup */ 237 + AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA20 periph A with pullup */ 241 238 }; 242 239 }; 243 240 244 241 mmc1 { 245 242 pinctrl_mmc1_clk: mmc1_clk-0 { 246 243 atmel,pins = 247 - <0 6 0x1 0x0>; /* PA6 periph A */ 244 + <AT91_PIOA 6 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA6 periph A */ 248 245 }; 249 246 250 247 pinctrl_mmc1_slot0_cmd_dat0: mmc1_slot0_cmd_dat0-0 { 251 248 atmel,pins = 252 - <0 7 0x1 0x1 /* PA7 periph A with pullup */ 253 - 0 8 0x1 0x1>; /* PA8 periph A with pullup */ 249 + <AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA7 periph A with pullup */ 250 + AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA8 periph A with pullup */ 254 251 }; 255 252 256 253 pinctrl_mmc1_slot0_dat1_3: mmc1_slot0_dat1_3-0 { 257 254 atmel,pins = 258 - <0 9 0x1 0x1 /* PA9 periph A with pullup */ 259 - 0 10 0x1 0x1 /* PA10 periph A with pullup */ 260 - 0 11 0x1 0x1>; /* PA11 periph A with pullup */ 255 + <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA9 periph A with pullup */ 256 + AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA10 periph A with pullup */ 257 + AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA11 periph A with pullup */ 261 258 }; 262 259 263 260 pinctrl_mmc1_slot1_cmd_dat0: mmc1_slot1_cmd_dat0-0 { 264 261 atmel,pins = 265 - <0 21 0x1 0x1 /* PA21 periph A with pullup */ 266 - 0 22 0x1 0x1>; /* PA22 periph A with pullup */ 262 + <AT91_PIOA 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA21 periph A with pullup */ 263 + AT91_PIOA 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA22 periph A with pullup */ 267 264 }; 268 265 269 266 pinctrl_mmc1_slot1_dat1_3: mmc1_slot1_dat1_3-0 { 270 267 atmel,pins = 271 - <0 23 0x1 0x1 /* PA23 periph A with pullup */ 272 - 0 24 0x1 0x1 /* PA24 periph A with pullup */ 273 - 0 25 0x1 0x1>; /* PA25 periph A with pullup */ 268 + <AT91_PIOA 23 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA23 periph A with pullup */ 269 + AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA24 periph A with pullup */ 270 + AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA25 periph A with pullup */ 274 271 }; 275 272 }; 276 273 277 274 ssc0 { 278 275 pinctrl_ssc0_tx: ssc0_tx-0 { 279 276 atmel,pins = 280 - <1 0 0x2 0x0 /* PB0 periph B */ 281 - 1 1 0x2 0x0 /* PB1 periph B */ 282 - 1 2 0x2 0x0>; /* PB2 periph B */ 277 + <AT91_PIOB 0 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB0 periph B */ 278 + AT91_PIOB 1 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB1 periph B */ 279 + AT91_PIOB 2 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB2 periph B */ 283 280 }; 284 281 285 282 pinctrl_ssc0_rx: ssc0_rx-0 { 286 283 atmel,pins = 287 - <1 3 0x2 0x0 /* PB3 periph B */ 288 - 1 4 0x2 0x0 /* PB4 periph B */ 289 - 1 5 0x2 0x0>; /* PB5 periph B */ 284 + <AT91_PIOB 3 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB3 periph B */ 285 + AT91_PIOB 4 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB4 periph B */ 286 + AT91_PIOB 5 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB5 periph B */ 290 287 }; 291 288 }; 292 289 293 290 ssc1 { 294 291 pinctrl_ssc1_tx: ssc1_tx-0 { 295 292 atmel,pins = 296 - <1 6 0x1 0x0 /* PB6 periph A */ 297 - 1 7 0x1 0x0 /* PB7 periph A */ 298 - 1 8 0x1 0x0>; /* PB8 periph A */ 293 + <AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A */ 294 + AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB7 periph A */ 295 + AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB8 periph A */ 299 296 }; 300 297 301 298 pinctrl_ssc1_rx: ssc1_rx-0 { 302 299 atmel,pins = 303 - <1 9 0x1 0x0 /* PB9 periph A */ 304 - 1 10 0x1 0x0 /* PB10 periph A */ 305 - 1 11 0x1 0x0>; /* PB11 periph A */ 300 + <AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A */ 301 + AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB10 periph A */ 302 + AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB11 periph A */ 306 303 }; 307 304 }; 308 305 309 306 spi0 { 310 307 pinctrl_spi0: spi0-0 { 311 308 atmel,pins = 312 - <0 0 0x2 0x0 /* PA0 periph B SPI0_MISO pin */ 313 - 0 1 0x2 0x0 /* PA1 periph B SPI0_MOSI pin */ 314 - 0 2 0x2 0x0>; /* PA2 periph B SPI0_SPCK pin */ 309 + <AT91_PIOA 0 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA0 periph B SPI0_MISO pin */ 310 + AT91_PIOA 1 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA1 periph B SPI0_MOSI pin */ 311 + AT91_PIOA 2 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA2 periph B SPI0_SPCK pin */ 315 312 }; 316 313 }; 317 314 318 315 spi1 { 319 316 pinctrl_spi1: spi1-0 { 320 317 atmel,pins = 321 - <1 12 0x1 0x0 /* PB12 periph A SPI1_MISO pin */ 322 - 1 13 0x1 0x0 /* PB13 periph A SPI1_MOSI pin */ 323 - 1 14 0x1 0x0>; /* PB14 periph A SPI1_SPCK pin */ 318 + <AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB12 periph A SPI1_MISO pin */ 319 + AT91_PIOB 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB13 periph A SPI1_MOSI pin */ 320 + AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB14 periph A SPI1_SPCK pin */ 324 321 }; 325 322 }; 326 323 327 324 pioA: gpio@fffff200 { 328 325 compatible = "atmel,at91rm9200-gpio"; 329 326 reg = <0xfffff200 0x200>; 330 - interrupts = <2 4 1>; 327 + interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>; 331 328 #gpio-cells = <2>; 332 329 gpio-controller; 333 330 interrupt-controller; ··· 337 334 pioB: gpio@fffff400 { 338 335 compatible = "atmel,at91rm9200-gpio"; 339 336 reg = <0xfffff400 0x200>; 340 - interrupts = <3 4 1>; 337 + interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>; 341 338 #gpio-cells = <2>; 342 339 gpio-controller; 343 340 interrupt-controller; ··· 347 344 pioC: gpio@fffff600 { 348 345 compatible = "atmel,at91rm9200-gpio"; 349 346 reg = <0xfffff600 0x200>; 350 - interrupts = <4 4 1>; 347 + interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>; 351 348 #gpio-cells = <2>; 352 349 gpio-controller; 353 350 interrupt-controller; ··· 357 354 pioD: gpio@fffff800 { 358 355 compatible = "atmel,at91rm9200-gpio"; 359 356 reg = <0xfffff800 0x200>; 360 - interrupts = <4 4 1>; 357 + interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>; 361 358 #gpio-cells = <2>; 362 359 gpio-controller; 363 360 interrupt-controller; ··· 367 364 pioE: gpio@fffffa00 { 368 365 compatible = "atmel,at91rm9200-gpio"; 369 366 reg = <0xfffffa00 0x200>; 370 - interrupts = <4 4 1>; 367 + interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>; 371 368 #gpio-cells = <2>; 372 369 gpio-controller; 373 370 interrupt-controller; ··· 378 375 dbgu: serial@ffffee00 { 379 376 compatible = "atmel,at91sam9260-usart"; 380 377 reg = <0xffffee00 0x200>; 381 - interrupts = <1 4 7>; 378 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 382 379 pinctrl-names = "default"; 383 380 pinctrl-0 = <&pinctrl_dbgu>; 384 381 status = "disabled"; ··· 387 384 usart0: serial@fff8c000 { 388 385 compatible = "atmel,at91sam9260-usart"; 389 386 reg = <0xfff8c000 0x200>; 390 - interrupts = <7 4 5>; 387 + interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>; 391 388 atmel,use-dma-rx; 392 389 atmel,use-dma-tx; 393 390 pinctrl-names = "default"; ··· 398 395 usart1: serial@fff90000 { 399 396 compatible = "atmel,at91sam9260-usart"; 400 397 reg = <0xfff90000 0x200>; 401 - interrupts = <8 4 5>; 398 + interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>; 402 399 atmel,use-dma-rx; 403 400 atmel,use-dma-tx; 404 401 pinctrl-names = "default"; ··· 409 406 usart2: serial@fff94000 { 410 407 compatible = "atmel,at91sam9260-usart"; 411 408 reg = <0xfff94000 0x200>; 412 - interrupts = <9 4 5>; 409 + interrupts = <9 IRQ_TYPE_LEVEL_HIGH 5>; 413 410 atmel,use-dma-rx; 414 411 atmel,use-dma-tx; 415 412 pinctrl-names = "default"; ··· 420 417 ssc0: ssc@fff98000 { 421 418 compatible = "atmel,at91rm9200-ssc"; 422 419 reg = <0xfff98000 0x4000>; 423 - interrupts = <16 4 5>; 420 + interrupts = <16 IRQ_TYPE_LEVEL_HIGH 5>; 424 421 pinctrl-names = "default"; 425 422 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; 426 423 status = "disabled"; ··· 429 426 ssc1: ssc@fff9c000 { 430 427 compatible = "atmel,at91rm9200-ssc"; 431 428 reg = <0xfff9c000 0x4000>; 432 - interrupts = <17 4 5>; 429 + interrupts = <17 IRQ_TYPE_LEVEL_HIGH 5>; 433 430 pinctrl-names = "default"; 434 431 pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>; 435 432 status = "disabled"; ··· 438 435 macb0: ethernet@fffbc000 { 439 436 compatible = "cdns,at32ap7000-macb", "cdns,macb"; 440 437 reg = <0xfffbc000 0x100>; 441 - interrupts = <21 4 3>; 438 + interrupts = <21 IRQ_TYPE_LEVEL_HIGH 3>; 442 439 pinctrl-names = "default"; 443 440 pinctrl-0 = <&pinctrl_macb_rmii>; 444 441 status = "disabled"; ··· 447 444 usb1: gadget@fff78000 { 448 445 compatible = "atmel,at91rm9200-udc"; 449 446 reg = <0xfff78000 0x4000>; 450 - interrupts = <24 4 2>; 447 + interrupts = <24 IRQ_TYPE_LEVEL_HIGH 2>; 451 448 status = "disabled"; 452 449 }; 453 450 454 451 i2c0: i2c@fff88000 { 455 452 compatible = "atmel,at91sam9263-i2c"; 456 453 reg = <0xfff88000 0x100>; 457 - interrupts = <13 4 6>; 454 + interrupts = <13 IRQ_TYPE_LEVEL_HIGH 6>; 458 455 #address-cells = <1>; 459 456 #size-cells = <0>; 460 457 status = "disabled"; ··· 463 460 mmc0: mmc@fff80000 { 464 461 compatible = "atmel,hsmci"; 465 462 reg = <0xfff80000 0x600>; 466 - interrupts = <10 4 0>; 463 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH 0>; 467 464 #address-cells = <1>; 468 465 #size-cells = <0>; 469 466 status = "disabled"; ··· 472 469 mmc1: mmc@fff84000 { 473 470 compatible = "atmel,hsmci"; 474 471 reg = <0xfff84000 0x600>; 475 - interrupts = <11 4 0>; 472 + interrupts = <11 IRQ_TYPE_LEVEL_HIGH 0>; 476 473 #address-cells = <1>; 477 474 #size-cells = <0>; 478 475 status = "disabled"; ··· 489 486 #size-cells = <0>; 490 487 compatible = "atmel,at91rm9200-spi"; 491 488 reg = <0xfffa4000 0x200>; 492 - interrupts = <14 4 3>; 489 + interrupts = <14 IRQ_TYPE_LEVEL_HIGH 3>; 493 490 pinctrl-names = "default"; 494 491 pinctrl-0 = <&pinctrl_spi0>; 495 492 status = "disabled"; ··· 500 497 #size-cells = <0>; 501 498 compatible = "atmel,at91rm9200-spi"; 502 499 reg = <0xfffa8000 0x200>; 503 - interrupts = <15 4 3>; 500 + interrupts = <15 IRQ_TYPE_LEVEL_HIGH 3>; 504 501 pinctrl-names = "default"; 505 502 pinctrl-0 = <&pinctrl_spi1>; 506 503 status = "disabled"; ··· 518 515 atmel,nand-cmd-offset = <22>; 519 516 pinctrl-names = "default"; 520 517 pinctrl-0 = <&pinctrl_nand>; 521 - gpios = <&pioA 22 0 522 - &pioD 15 0 518 + gpios = <&pioA 22 GPIO_ACTIVE_HIGH 519 + &pioD 15 GPIO_ACTIVE_HIGH 523 520 0 524 521 >; 525 522 status = "disabled"; ··· 528 525 usb0: ohci@00a00000 { 529 526 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 530 527 reg = <0x00a00000 0x100000>; 531 - interrupts = <29 4 2>; 528 + interrupts = <29 IRQ_TYPE_LEVEL_HIGH 2>; 532 529 status = "disabled"; 533 530 }; 534 531 }; 535 532 536 533 i2c@0 { 537 534 compatible = "i2c-gpio"; 538 - gpios = <&pioB 4 0 /* sda */ 539 - &pioB 5 0 /* scl */ 535 + gpios = <&pioB 4 GPIO_ACTIVE_HIGH /* sda */ 536 + &pioB 5 GPIO_ACTIVE_HIGH /* scl */ 540 537 >; 541 538 i2c-gpio,sda-open-drain; 542 539 i2c-gpio,scl-open-drain;
+12 -12
arch/arm/boot/dts/at91sam9263ek.dts
··· 6 6 * Licensed under GPLv2 only 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9263.dtsi" 9 + #include "at91sam9263.dtsi" 10 10 11 11 / { 12 12 model = "Atmel at91sam9263ek"; ··· 51 51 }; 52 52 53 53 usb1: gadget@fff78000 { 54 - atmel,vbus-gpio = <&pioA 25 0>; 54 + atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>; 55 55 status = "okay"; 56 56 }; 57 57 ··· 65 65 slot@0 { 66 66 reg = <0>; 67 67 bus-width = <4>; 68 - cd-gpios = <&pioE 18 0>; 69 - wp-gpios = <&pioE 19 0>; 68 + cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>; 69 + wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>; 70 70 }; 71 71 }; 72 72 ··· 74 74 mmc0 { 75 75 pinctrl_board_mmc0: mmc0-board { 76 76 atmel,pins = 77 - <5 18 0x0 0x5 /* PE18 gpio CD pin pull up and deglitch */ 78 - 5 19 0x0 0x1>; /* PE19 gpio WP pin pull up */ 77 + <AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PE18 gpio CD pin pull up and deglitch */ 78 + AT91_PIOE 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PE19 gpio WP pin pull up */ 79 79 }; 80 80 }; 81 81 }; ··· 141 141 usb0: ohci@00a00000 { 142 142 num-ports = <2>; 143 143 status = "okay"; 144 - atmel,vbus-gpio = <&pioA 24 0 145 - &pioA 21 0 144 + atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH 145 + &pioA 21 GPIO_ACTIVE_HIGH 146 146 >; 147 147 }; 148 148 }; ··· 152 152 153 153 d3 { 154 154 label = "d3"; 155 - gpios = <&pioB 7 0>; 155 + gpios = <&pioB 7 GPIO_ACTIVE_HIGH>; 156 156 linux,default-trigger = "heartbeat"; 157 157 }; 158 158 159 159 d2 { 160 160 label = "d2"; 161 - gpios = <&pioC 29 1>; 161 + gpios = <&pioC 29 GPIO_ACTIVE_LOW>; 162 162 linux,default-trigger = "nand-disk"; 163 163 }; 164 164 }; ··· 168 168 169 169 left_click { 170 170 label = "left_click"; 171 - gpios = <&pioC 5 1>; 171 + gpios = <&pioC 5 GPIO_ACTIVE_LOW>; 172 172 linux,code = <272>; 173 173 gpio-key,wakeup; 174 174 }; 175 175 176 176 right_click { 177 177 label = "right_click"; 178 - gpios = <&pioC 4 1>; 178 + gpios = <&pioC 4 GPIO_ACTIVE_LOW>; 179 179 linux,code = <273>; 180 180 gpio-key,wakeup; 181 181 };
+1 -1
arch/arm/boot/dts/at91sam9g15.dtsi
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 9 - /include/ "at91sam9x5.dtsi" 9 + #include "at91sam9x5.dtsi" 10 10 11 11 / { 12 12 model = "Atmel AT91SAM9G15 SoC";
+2 -2
arch/arm/boot/dts/at91sam9g15ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "at91sam9g15.dtsi" 11 - /include/ "at91sam9x5ek.dtsi" 10 + #include "at91sam9g15.dtsi" 11 + #include "at91sam9x5ek.dtsi" 12 12 13 13 / { 14 14 model = "Atmel AT91SAM9G15-EK";
+1 -1
arch/arm/boot/dts/at91sam9g20.dtsi
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 9 - /include/ "at91sam9260.dtsi" 9 + #include "at91sam9260.dtsi" 10 10 11 11 / { 12 12 model = "Atmel AT91SAM9G20 family SoC";
+3 -3
arch/arm/boot/dts/at91sam9g20ek.dts
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9g20ek_common.dtsi" 9 + #include "at91sam9g20ek_common.dtsi" 10 10 11 11 / { 12 12 model = "Atmel at91sam9g20ek"; ··· 17 17 18 18 ds1 { 19 19 label = "ds1"; 20 - gpios = <&pioA 9 0>; 20 + gpios = <&pioA 9 GPIO_ACTIVE_HIGH>; 21 21 linux,default-trigger = "heartbeat"; 22 22 }; 23 23 24 24 ds5 { 25 25 label = "ds5"; 26 - gpios = <&pioA 6 1>; 26 + gpios = <&pioA 6 GPIO_ACTIVE_LOW>; 27 27 }; 28 28 }; 29 29 };
+5 -5
arch/arm/boot/dts/at91sam9g20ek_2mmc.dts
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9g20ek_common.dtsi" 9 + #include "at91sam9g20ek_common.dtsi" 10 10 11 11 / { 12 12 model = "Atmel at91sam9g20ek 2 mmc"; ··· 23 23 slot@0 { 24 24 reg = <0>; 25 25 bus-width = <4>; 26 - cd-gpios = <&pioC 2 0>; 26 + cd-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; 27 27 }; 28 28 }; 29 29 ··· 31 31 mmc0_slot0 { 32 32 pinctrl_board_mmc0_slot0: mmc0_slot0-board { 33 33 atmel,pins = 34 - <2 2 0x0 0x5>; /* PC2 gpio CD pin pull up and deglitch */ 34 + <AT91_PIOC 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC2 gpio CD pin pull up and deglitch */ 35 35 }; 36 36 }; 37 37 }; ··· 43 43 44 44 ds1 { 45 45 label = "ds1"; 46 - gpios = <&pioB 9 0>; 46 + gpios = <&pioB 9 GPIO_ACTIVE_HIGH>; 47 47 linux,default-trigger = "heartbeat"; 48 48 }; 49 49 50 50 ds5 { 51 51 label = "ds5"; 52 - gpios = <&pioB 8 1>; 52 + gpios = <&pioB 8 GPIO_ACTIVE_LOW>; 53 53 }; 54 54 }; 55 55 };
+13 -15
arch/arm/boot/dts/at91sam9g20ek_common.dtsi
··· 5 5 * 6 6 * Licensed under GPLv2. 7 7 */ 8 - /include/ "at91sam9g20.dtsi" 8 + #include "at91sam9g20.dtsi" 9 9 10 10 / { 11 11 ··· 34 34 board { 35 35 pinctrl_pck0_as_mck: pck0_as_mck { 36 36 atmel,pins = 37 - <2 1 0x2 0x0>; /* PC1 periph B */ 37 + <AT91_PIOC 1 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC1 periph B */ 38 38 }; 39 39 40 + }; 41 + 42 + mmc0_slot1 { 43 + pinctrl_board_mmc0_slot1: mmc0_slot1-board { 44 + atmel,pins = 45 + <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC9 gpio CD pin pull up and deglitch */ 46 + }; 40 47 }; 41 48 }; 42 49 ··· 72 65 }; 73 66 74 67 usb1: gadget@fffa4000 { 75 - atmel,vbus-gpio = <&pioC 5 0>; 68 + atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 76 69 status = "okay"; 77 70 }; 78 71 ··· 86 79 slot@1 { 87 80 reg = <1>; 88 81 bus-width = <4>; 89 - cd-gpios = <&pioC 9 0>; 90 - }; 91 - }; 92 - 93 - pinctrl@fffff400 { 94 - mmc0_slot1 { 95 - pinctrl_board_mmc0_slot1: mmc0_slot1-board { 96 - atmel,pins = 97 - <2 9 0x0 0x5>; /* PC9 gpio CD pin pull up and deglitch */ 98 - }; 82 + cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>; 99 83 }; 100 84 }; 101 85 ··· 178 180 179 181 btn3 { 180 182 label = "Button 3"; 181 - gpios = <&pioA 30 1>; 183 + gpios = <&pioA 30 GPIO_ACTIVE_LOW>; 182 184 linux,code = <0x103>; 183 185 gpio-key,wakeup; 184 186 }; 185 187 186 188 btn4 { 187 189 label = "Button 4"; 188 - gpios = <&pioA 31 1>; 190 + gpios = <&pioA 31 GPIO_ACTIVE_LOW>; 189 191 linux,code = <0x104>; 190 192 gpio-key,wakeup; 191 193 };
+1 -1
arch/arm/boot/dts/at91sam9g25.dtsi
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 9 - /include/ "at91sam9x5.dtsi" 9 + #include "at91sam9x5.dtsi" 10 10 11 11 / { 12 12 model = "Atmel AT91SAM9G25 SoC";
+2 -2
arch/arm/boot/dts/at91sam9g25ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "at91sam9g25.dtsi" 11 - /include/ "at91sam9x5ek.dtsi" 10 + #include "at91sam9g25.dtsi" 11 + #include "at91sam9x5ek.dtsi" 12 12 13 13 / { 14 14 model = "Atmel AT91SAM9G25-EK";
+1 -1
arch/arm/boot/dts/at91sam9g35.dtsi
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 9 - /include/ "at91sam9x5.dtsi" 9 + #include "at91sam9x5.dtsi" 10 10 11 11 / { 12 12 model = "Atmel AT91SAM9G35 SoC";
+2 -2
arch/arm/boot/dts/at91sam9g35ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "at91sam9g35.dtsi" 11 - /include/ "at91sam9x5ek.dtsi" 10 + #include "at91sam9g35.dtsi" 11 + #include "at91sam9x5ek.dtsi" 12 12 13 13 / { 14 14 model = "Atmel AT91SAM9G35-EK";
+108 -105
arch/arm/boot/dts/at91sam9g45.dtsi
··· 9 9 * Licensed under GPLv2 or later. 10 10 */ 11 11 12 - /include/ "skeleton.dtsi" 12 + #include "skeleton.dtsi" 13 + #include <dt-bindings/pinctrl/at91.h> 14 + #include <dt-bindings/interrupt-controller/irq.h> 15 + #include <dt-bindings/gpio/gpio.h> 13 16 14 17 / { 15 18 model = "Atmel AT91SAM9G45 family SoC"; ··· 86 83 pit: timer@fffffd30 { 87 84 compatible = "atmel,at91sam9260-pit"; 88 85 reg = <0xfffffd30 0xf>; 89 - interrupts = <1 4 7>; 86 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 90 87 }; 91 88 92 89 ··· 98 95 tcb0: timer@fff7c000 { 99 96 compatible = "atmel,at91rm9200-tcb"; 100 97 reg = <0xfff7c000 0x100>; 101 - interrupts = <18 4 0>; 98 + interrupts = <18 IRQ_TYPE_LEVEL_HIGH 0>; 102 99 }; 103 100 104 101 tcb1: timer@fffd4000 { 105 102 compatible = "atmel,at91rm9200-tcb"; 106 103 reg = <0xfffd4000 0x100>; 107 - interrupts = <18 4 0>; 104 + interrupts = <18 IRQ_TYPE_LEVEL_HIGH 0>; 108 105 }; 109 106 110 107 dma: dma-controller@ffffec00 { 111 108 compatible = "atmel,at91sam9g45-dma"; 112 109 reg = <0xffffec00 0x200>; 113 - interrupts = <21 4 0>; 110 + interrupts = <21 IRQ_TYPE_LEVEL_HIGH 0>; 114 111 #dma-cells = <2>; 115 112 }; 116 113 ··· 133 130 dbgu { 134 131 pinctrl_dbgu: dbgu-0 { 135 132 atmel,pins = 136 - <1 12 0x1 0x0 /* PB12 periph A */ 137 - 1 13 0x1 0x0>; /* PB13 periph A */ 133 + <AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB12 periph A */ 134 + AT91_PIOB 13 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB13 periph A */ 138 135 }; 139 136 }; 140 137 141 138 usart0 { 142 139 pinctrl_usart0: usart0-0 { 143 140 atmel,pins = 144 - <1 19 0x1 0x1 /* PB19 periph A with pullup */ 145 - 1 18 0x1 0x0>; /* PB18 periph A */ 141 + <AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB19 periph A with pullup */ 142 + AT91_PIOB 18 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB18 periph A */ 146 143 }; 147 144 148 145 pinctrl_usart0_rts: usart0_rts-0 { 149 146 atmel,pins = 150 - <1 17 0x2 0x0>; /* PB17 periph B */ 147 + <AT91_PIOB 17 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB17 periph B */ 151 148 }; 152 149 153 150 pinctrl_usart0_cts: usart0_cts-0 { 154 151 atmel,pins = 155 - <1 15 0x2 0x0>; /* PB15 periph B */ 152 + <AT91_PIOB 15 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB15 periph B */ 156 153 }; 157 154 }; 158 155 159 156 uart1 { 160 157 pinctrl_usart1: usart1-0 { 161 158 atmel,pins = 162 - <1 4 0x1 0x1 /* PB4 periph A with pullup */ 163 - 1 5 0x1 0x0>; /* PB5 periph A */ 159 + <AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB4 periph A with pullup */ 160 + AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB5 periph A */ 164 161 }; 165 162 166 163 pinctrl_usart1_rts: usart1_rts-0 { 167 164 atmel,pins = 168 - <3 16 0x1 0x0>; /* PD16 periph A */ 165 + <AT91_PIOD 16 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD16 periph A */ 169 166 }; 170 167 171 168 pinctrl_usart1_cts: usart1_cts-0 { 172 169 atmel,pins = 173 - <3 17 0x1 0x0>; /* PD17 periph A */ 170 + <AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD17 periph A */ 174 171 }; 175 172 }; 176 173 177 174 usart2 { 178 175 pinctrl_usart2: usart2-0 { 179 176 atmel,pins = 180 - <1 6 0x1 0x1 /* PB6 periph A with pullup */ 181 - 1 7 0x1 0x0>; /* PB7 periph A */ 177 + <AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB6 periph A with pullup */ 178 + AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB7 periph A */ 182 179 }; 183 180 184 181 pinctrl_usart2_rts: usart2_rts-0 { 185 182 atmel,pins = 186 - <2 9 0x2 0x0>; /* PC9 periph B */ 183 + <AT91_PIOC 9 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC9 periph B */ 187 184 }; 188 185 189 186 pinctrl_usart2_cts: usart2_cts-0 { 190 187 atmel,pins = 191 - <2 11 0x2 0x0>; /* PC11 periph B */ 188 + <AT91_PIOC 11 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC11 periph B */ 192 189 }; 193 190 }; 194 191 195 192 usart3 { 196 193 pinctrl_usart3: usart3-0 { 197 194 atmel,pins = 198 - <1 8 0x1 0x1 /* PB9 periph A with pullup */ 199 - 1 9 0x1 0x0>; /* PB8 periph A */ 195 + <AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB9 periph A with pullup */ 196 + AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB8 periph A */ 200 197 }; 201 198 202 199 pinctrl_usart3_rts: usart3_rts-0 { 203 200 atmel,pins = 204 - <0 23 0x2 0x0>; /* PA23 periph B */ 201 + <AT91_PIOA 23 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA23 periph B */ 205 202 }; 206 203 207 204 pinctrl_usart3_cts: usart3_cts-0 { 208 205 atmel,pins = 209 - <0 24 0x2 0x0>; /* PA24 periph B */ 206 + <AT91_PIOA 24 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA24 periph B */ 210 207 }; 211 208 }; 212 209 213 210 nand { 214 211 pinctrl_nand: nand-0 { 215 212 atmel,pins = 216 - <2 8 0x0 0x1 /* PC8 gpio RDY pin pull_up*/ 217 - 2 14 0x0 0x1>; /* PC14 gpio enable pin pull_up */ 213 + <AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP /* PC8 gpio RDY pin pull_up*/ 214 + AT91_PIOC 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PC14 gpio enable pin pull_up */ 218 215 }; 219 216 }; 220 217 221 218 macb { 222 219 pinctrl_macb_rmii: macb_rmii-0 { 223 220 atmel,pins = 224 - <0 10 0x1 0x0 /* PA10 periph A */ 225 - 0 11 0x1 0x0 /* PA11 periph A */ 226 - 0 12 0x1 0x0 /* PA12 periph A */ 227 - 0 13 0x1 0x0 /* PA13 periph A */ 228 - 0 14 0x1 0x0 /* PA14 periph A */ 229 - 0 15 0x1 0x0 /* PA15 periph A */ 230 - 0 16 0x1 0x0 /* PA16 periph A */ 231 - 0 17 0x1 0x0 /* PA17 periph A */ 232 - 0 18 0x1 0x0 /* PA18 periph A */ 233 - 0 19 0x1 0x0>; /* PA19 periph A */ 221 + <AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA10 periph A */ 222 + AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA11 periph A */ 223 + AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA12 periph A */ 224 + AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA13 periph A */ 225 + AT91_PIOA 14 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA14 periph A */ 226 + AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA15 periph A */ 227 + AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA16 periph A */ 228 + AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA17 periph A */ 229 + AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA18 periph A */ 230 + AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA19 periph A */ 234 231 }; 235 232 236 233 pinctrl_macb_rmii_mii: macb_rmii_mii-0 { 237 234 atmel,pins = 238 - <0 6 0x2 0x0 /* PA6 periph B */ 239 - 0 7 0x2 0x0 /* PA7 periph B */ 240 - 0 8 0x2 0x0 /* PA8 periph B */ 241 - 0 9 0x2 0x0 /* PA9 periph B */ 242 - 0 27 0x2 0x0 /* PA27 periph B */ 243 - 0 28 0x2 0x0 /* PA28 periph B */ 244 - 0 29 0x2 0x0 /* PA29 periph B */ 245 - 0 30 0x2 0x0>; /* PA30 periph B */ 235 + <AT91_PIOA 6 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA6 periph B */ 236 + AT91_PIOA 7 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA7 periph B */ 237 + AT91_PIOA 8 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA8 periph B */ 238 + AT91_PIOA 9 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA9 periph B */ 239 + AT91_PIOA 27 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA27 periph B */ 240 + AT91_PIOA 28 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA28 periph B */ 241 + AT91_PIOA 29 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA29 periph B */ 242 + AT91_PIOA 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA30 periph B */ 246 243 }; 247 244 }; 248 245 249 246 mmc0 { 250 247 pinctrl_mmc0_slot0_clk_cmd_dat0: mmc0_slot0_clk_cmd_dat0-0 { 251 248 atmel,pins = 252 - <0 0 0x1 0x0 /* PA0 periph A */ 253 - 0 1 0x1 0x1 /* PA1 periph A with pullup */ 254 - 0 2 0x1 0x1>; /* PA2 periph A with pullup */ 249 + <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA0 periph A */ 250 + AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA1 periph A with pullup */ 251 + AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA2 periph A with pullup */ 255 252 }; 256 253 257 254 pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 { 258 255 atmel,pins = 259 - <0 3 0x1 0x1 /* PA3 periph A with pullup */ 260 - 0 4 0x1 0x1 /* PA4 periph A with pullup */ 261 - 0 5 0x1 0x1>; /* PA5 periph A with pullup */ 256 + <AT91_PIOA 3 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA3 periph A with pullup */ 257 + AT91_PIOA 4 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA4 periph A with pullup */ 258 + AT91_PIOA 5 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA5 periph A with pullup */ 262 259 }; 263 260 264 261 pinctrl_mmc0_slot0_dat4_7: mmc0_slot0_dat4_7-0 { 265 262 atmel,pins = 266 - <0 6 0x1 0x1 /* PA6 periph A with pullup */ 267 - 0 7 0x1 0x1 /* PA7 periph A with pullup */ 268 - 0 8 0x1 0x1 /* PA8 periph A with pullup */ 269 - 0 9 0x1 0x1>; /* PA9 periph A with pullup */ 263 + <AT91_PIOA 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA6 periph A with pullup */ 264 + AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA7 periph A with pullup */ 265 + AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA8 periph A with pullup */ 266 + AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA9 periph A with pullup */ 270 267 }; 271 268 }; 272 269 273 270 mmc1 { 274 271 pinctrl_mmc1_slot0_clk_cmd_dat0: mmc1_slot0_clk_cmd_dat0-0 { 275 272 atmel,pins = 276 - <0 31 0x1 0x0 /* PA31 periph A */ 277 - 0 22 0x1 0x1 /* PA22 periph A with pullup */ 278 - 0 23 0x1 0x1>; /* PA23 periph A with pullup */ 273 + <AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA31 periph A */ 274 + AT91_PIOA 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA22 periph A with pullup */ 275 + AT91_PIOA 23 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA23 periph A with pullup */ 279 276 }; 280 277 281 278 pinctrl_mmc1_slot0_dat1_3: mmc1_slot0_dat1_3-0 { 282 279 atmel,pins = 283 - <0 24 0x1 0x1 /* PA24 periph A with pullup */ 284 - 0 25 0x1 0x1 /* PA25 periph A with pullup */ 285 - 0 26 0x1 0x1>; /* PA26 periph A with pullup */ 280 + <AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA24 periph A with pullup */ 281 + AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA25 periph A with pullup */ 282 + AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA26 periph A with pullup */ 286 283 }; 287 284 288 285 pinctrl_mmc1_slot0_dat4_7: mmc1_slot0_dat4_7-0 { 289 286 atmel,pins = 290 - <0 27 0x1 0x1 /* PA27 periph A with pullup */ 291 - 0 28 0x1 0x1 /* PA28 periph A with pullup */ 292 - 0 29 0x1 0x1 /* PA29 periph A with pullup */ 293 - 0 20 0x1 0x1>; /* PA30 periph A with pullup */ 287 + <AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA27 periph A with pullup */ 288 + AT91_PIOA 28 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA28 periph A with pullup */ 289 + AT91_PIOA 29 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA29 periph A with pullup */ 290 + AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA30 periph A with pullup */ 294 291 }; 295 292 }; 296 293 297 294 ssc0 { 298 295 pinctrl_ssc0_tx: ssc0_tx-0 { 299 296 atmel,pins = 300 - <3 0 0x1 0x0 /* PD0 periph A */ 301 - 3 1 0x1 0x0 /* PD1 periph A */ 302 - 3 2 0x1 0x0>; /* PD2 periph A */ 297 + <AT91_PIOD 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD0 periph A */ 298 + AT91_PIOD 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD1 periph A */ 299 + AT91_PIOD 2 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD2 periph A */ 303 300 }; 304 301 305 302 pinctrl_ssc0_rx: ssc0_rx-0 { 306 303 atmel,pins = 307 - <3 3 0x1 0x0 /* PD3 periph A */ 308 - 3 4 0x1 0x0 /* PD4 periph A */ 309 - 3 5 0x1 0x0>; /* PD5 periph A */ 304 + <AT91_PIOD 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD3 periph A */ 305 + AT91_PIOD 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD4 periph A */ 306 + AT91_PIOD 5 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD5 periph A */ 310 307 }; 311 308 }; 312 309 313 310 ssc1 { 314 311 pinctrl_ssc1_tx: ssc1_tx-0 { 315 312 atmel,pins = 316 - <3 10 0x1 0x0 /* PD10 periph A */ 317 - 3 11 0x1 0x0 /* PD11 periph A */ 318 - 3 12 0x1 0x0>; /* PD12 periph A */ 313 + <AT91_PIOD 10 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD10 periph A */ 314 + AT91_PIOD 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD11 periph A */ 315 + AT91_PIOD 12 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD12 periph A */ 319 316 }; 320 317 321 318 pinctrl_ssc1_rx: ssc1_rx-0 { 322 319 atmel,pins = 323 - <3 13 0x1 0x0 /* PD13 periph A */ 324 - 3 14 0x1 0x0 /* PD14 periph A */ 325 - 3 15 0x1 0x0>; /* PD15 periph A */ 320 + <AT91_PIOD 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD13 periph A */ 321 + AT91_PIOD 14 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD14 periph A */ 322 + AT91_PIOD 15 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD15 periph A */ 326 323 }; 327 324 }; 328 325 329 326 spi0 { 330 327 pinctrl_spi0: spi0-0 { 331 328 atmel,pins = 332 - <1 0 0x1 0x0 /* PB0 periph A SPI0_MISO pin */ 333 - 1 1 0x1 0x0 /* PB1 periph A SPI0_MOSI pin */ 334 - 1 2 0x1 0x0>; /* PB2 periph A SPI0_SPCK pin */ 329 + <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB0 periph A SPI0_MISO pin */ 330 + AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB1 periph A SPI0_MOSI pin */ 331 + AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB2 periph A SPI0_SPCK pin */ 335 332 }; 336 333 }; 337 334 338 335 spi1 { 339 336 pinctrl_spi1: spi1-0 { 340 337 atmel,pins = 341 - <1 14 0x1 0x0 /* PB14 periph A SPI1_MISO pin */ 342 - 1 15 0x1 0x0 /* PB15 periph A SPI1_MOSI pin */ 343 - 1 16 0x1 0x0>; /* PB16 periph A SPI1_SPCK pin */ 338 + <AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB14 periph A SPI1_MISO pin */ 339 + AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB15 periph A SPI1_MOSI pin */ 340 + AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB16 periph A SPI1_SPCK pin */ 344 341 }; 345 342 }; 346 343 347 344 pioA: gpio@fffff200 { 348 345 compatible = "atmel,at91rm9200-gpio"; 349 346 reg = <0xfffff200 0x200>; 350 - interrupts = <2 4 1>; 347 + interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>; 351 348 #gpio-cells = <2>; 352 349 gpio-controller; 353 350 interrupt-controller; ··· 357 354 pioB: gpio@fffff400 { 358 355 compatible = "atmel,at91rm9200-gpio"; 359 356 reg = <0xfffff400 0x200>; 360 - interrupts = <3 4 1>; 357 + interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>; 361 358 #gpio-cells = <2>; 362 359 gpio-controller; 363 360 interrupt-controller; ··· 367 364 pioC: gpio@fffff600 { 368 365 compatible = "atmel,at91rm9200-gpio"; 369 366 reg = <0xfffff600 0x200>; 370 - interrupts = <4 4 1>; 367 + interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>; 371 368 #gpio-cells = <2>; 372 369 gpio-controller; 373 370 interrupt-controller; ··· 377 374 pioD: gpio@fffff800 { 378 375 compatible = "atmel,at91rm9200-gpio"; 379 376 reg = <0xfffff800 0x200>; 380 - interrupts = <5 4 1>; 377 + interrupts = <5 IRQ_TYPE_LEVEL_HIGH 1>; 381 378 #gpio-cells = <2>; 382 379 gpio-controller; 383 380 interrupt-controller; ··· 387 384 pioE: gpio@fffffa00 { 388 385 compatible = "atmel,at91rm9200-gpio"; 389 386 reg = <0xfffffa00 0x200>; 390 - interrupts = <5 4 1>; 387 + interrupts = <5 IRQ_TYPE_LEVEL_HIGH 1>; 391 388 #gpio-cells = <2>; 392 389 gpio-controller; 393 390 interrupt-controller; ··· 398 395 dbgu: serial@ffffee00 { 399 396 compatible = "atmel,at91sam9260-usart"; 400 397 reg = <0xffffee00 0x200>; 401 - interrupts = <1 4 7>; 398 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 402 399 pinctrl-names = "default"; 403 400 pinctrl-0 = <&pinctrl_dbgu>; 404 401 status = "disabled"; ··· 407 404 usart0: serial@fff8c000 { 408 405 compatible = "atmel,at91sam9260-usart"; 409 406 reg = <0xfff8c000 0x200>; 410 - interrupts = <7 4 5>; 407 + interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>; 411 408 atmel,use-dma-rx; 412 409 atmel,use-dma-tx; 413 410 pinctrl-names = "default"; ··· 418 415 usart1: serial@fff90000 { 419 416 compatible = "atmel,at91sam9260-usart"; 420 417 reg = <0xfff90000 0x200>; 421 - interrupts = <8 4 5>; 418 + interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>; 422 419 atmel,use-dma-rx; 423 420 atmel,use-dma-tx; 424 421 pinctrl-names = "default"; ··· 429 426 usart2: serial@fff94000 { 430 427 compatible = "atmel,at91sam9260-usart"; 431 428 reg = <0xfff94000 0x200>; 432 - interrupts = <9 4 5>; 429 + interrupts = <9 IRQ_TYPE_LEVEL_HIGH 5>; 433 430 atmel,use-dma-rx; 434 431 atmel,use-dma-tx; 435 432 pinctrl-names = "default"; ··· 440 437 usart3: serial@fff98000 { 441 438 compatible = "atmel,at91sam9260-usart"; 442 439 reg = <0xfff98000 0x200>; 443 - interrupts = <10 4 5>; 440 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH 5>; 444 441 atmel,use-dma-rx; 445 442 atmel,use-dma-tx; 446 443 pinctrl-names = "default"; ··· 451 448 macb0: ethernet@fffbc000 { 452 449 compatible = "cdns,at32ap7000-macb", "cdns,macb"; 453 450 reg = <0xfffbc000 0x100>; 454 - interrupts = <25 4 3>; 451 + interrupts = <25 IRQ_TYPE_LEVEL_HIGH 3>; 455 452 pinctrl-names = "default"; 456 453 pinctrl-0 = <&pinctrl_macb_rmii>; 457 454 status = "disabled"; ··· 460 457 i2c0: i2c@fff84000 { 461 458 compatible = "atmel,at91sam9g10-i2c"; 462 459 reg = <0xfff84000 0x100>; 463 - interrupts = <12 4 6>; 460 + interrupts = <12 IRQ_TYPE_LEVEL_HIGH 6>; 464 461 #address-cells = <1>; 465 462 #size-cells = <0>; 466 463 status = "disabled"; ··· 469 466 i2c1: i2c@fff88000 { 470 467 compatible = "atmel,at91sam9g10-i2c"; 471 468 reg = <0xfff88000 0x100>; 472 - interrupts = <13 4 6>; 469 + interrupts = <13 IRQ_TYPE_LEVEL_HIGH 6>; 473 470 #address-cells = <1>; 474 471 #size-cells = <0>; 475 472 status = "disabled"; ··· 478 475 ssc0: ssc@fff9c000 { 479 476 compatible = "atmel,at91sam9g45-ssc"; 480 477 reg = <0xfff9c000 0x4000>; 481 - interrupts = <16 4 5>; 478 + interrupts = <16 IRQ_TYPE_LEVEL_HIGH 5>; 482 479 pinctrl-names = "default"; 483 480 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; 484 481 status = "disabled"; ··· 487 484 ssc1: ssc@fffa0000 { 488 485 compatible = "atmel,at91sam9g45-ssc"; 489 486 reg = <0xfffa0000 0x4000>; 490 - interrupts = <17 4 5>; 487 + interrupts = <17 IRQ_TYPE_LEVEL_HIGH 5>; 491 488 pinctrl-names = "default"; 492 489 pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>; 493 490 status = "disabled"; ··· 496 493 adc0: adc@fffb0000 { 497 494 compatible = "atmel,at91sam9260-adc"; 498 495 reg = <0xfffb0000 0x100>; 499 - interrupts = <20 4 0>; 496 + interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>; 500 497 atmel,adc-use-external-triggers; 501 498 atmel,adc-channels-used = <0xff>; 502 499 atmel,adc-vref = <3300>; ··· 536 533 mmc0: mmc@fff80000 { 537 534 compatible = "atmel,hsmci"; 538 535 reg = <0xfff80000 0x600>; 539 - interrupts = <11 4 0>; 536 + interrupts = <11 IRQ_TYPE_LEVEL_HIGH 0>; 540 537 dmas = <&dma 1 0>; 541 538 dma-names = "rxtx"; 542 539 #address-cells = <1>; ··· 547 544 mmc1: mmc@fffd0000 { 548 545 compatible = "atmel,hsmci"; 549 546 reg = <0xfffd0000 0x600>; 550 - interrupts = <29 4 0>; 547 + interrupts = <29 IRQ_TYPE_LEVEL_HIGH 0>; 551 548 dmas = <&dma 1 13>; 552 549 dma-names = "rxtx"; 553 550 #address-cells = <1>; ··· 595 592 atmel,nand-cmd-offset = <22>; 596 593 pinctrl-names = "default"; 597 594 pinctrl-0 = <&pinctrl_nand>; 598 - gpios = <&pioC 8 0 599 - &pioC 14 0 595 + gpios = <&pioC 8 GPIO_ACTIVE_HIGH 596 + &pioC 14 GPIO_ACTIVE_HIGH 600 597 0 601 598 >; 602 599 status = "disabled"; ··· 605 602 usb0: ohci@00700000 { 606 603 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 607 604 reg = <0x00700000 0x100000>; 608 - interrupts = <22 4 2>; 605 + interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>; 609 606 status = "disabled"; 610 607 }; 611 608 612 609 usb1: ehci@00800000 { 613 610 compatible = "atmel,at91sam9g45-ehci", "usb-ehci"; 614 611 reg = <0x00800000 0x100000>; 615 - interrupts = <22 4 2>; 612 + interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>; 616 613 status = "disabled"; 617 614 }; 618 615 }; 619 616 620 617 i2c@0 { 621 618 compatible = "i2c-gpio"; 622 - gpios = <&pioA 20 0 /* sda */ 623 - &pioA 21 0 /* scl */ 619 + gpios = <&pioA 20 GPIO_ACTIVE_HIGH /* sda */ 620 + &pioA 21 GPIO_ACTIVE_HIGH /* scl */ 624 621 >; 625 622 i2c-gpio,sda-open-drain; 626 623 i2c-gpio,scl-open-drain;
+19 -19
arch/arm/boot/dts/at91sam9m10g45ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "at91sam9g45.dtsi" 10 + #include "at91sam9g45.dtsi" 11 11 12 12 / { 13 13 model = "Atmel AT91SAM9M10G45-EK"; ··· 68 68 slot@0 { 69 69 reg = <0>; 70 70 bus-width = <4>; 71 - cd-gpios = <&pioD 10 0>; 71 + cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>; 72 72 }; 73 73 }; 74 74 ··· 81 81 slot@0 { 82 82 reg = <0>; 83 83 bus-width = <4>; 84 - cd-gpios = <&pioD 11 0>; 85 - wp-gpios = <&pioD 29 0>; 84 + cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>; 85 + wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>; 86 86 }; 87 87 }; 88 88 ··· 90 90 mmc0 { 91 91 pinctrl_board_mmc0: mmc0-board { 92 92 atmel,pins = 93 - <3 10 0x0 0x5>; /* PD10 gpio CD pin pull up and deglitch */ 93 + <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */ 94 94 }; 95 95 }; 96 96 97 97 mmc1 { 98 98 pinctrl_board_mmc1: mmc1-board { 99 99 atmel,pins = 100 - <3 11 0x0 0x5 /* PD11 gpio CD pin pull up and deglitch */ 101 - 3 29 0x0 0x1>; /* PD29 gpio WP pin pull up */ 100 + <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PD11 gpio CD pin pull up and deglitch */ 101 + AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD29 gpio WP pin pull up */ 102 102 }; 103 103 }; 104 104 }; ··· 139 139 usb0: ohci@00700000 { 140 140 status = "okay"; 141 141 num-ports = <2>; 142 - atmel,vbus-gpio = <&pioD 1 1 143 - &pioD 3 1>; 142 + atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW 143 + &pioD 3 GPIO_ACTIVE_LOW>; 144 144 }; 145 145 146 146 usb1: ehci@00800000 { ··· 153 153 154 154 d8 { 155 155 label = "d8"; 156 - gpios = <&pioD 30 0>; 156 + gpios = <&pioD 30 GPIO_ACTIVE_HIGH>; 157 157 linux,default-trigger = "heartbeat"; 158 158 }; 159 159 160 160 d6 { 161 161 label = "d6"; 162 - gpios = <&pioD 0 1>; 162 + gpios = <&pioD 0 GPIO_ACTIVE_LOW>; 163 163 linux,default-trigger = "nand-disk"; 164 164 }; 165 165 166 166 d7 { 167 167 label = "d7"; 168 - gpios = <&pioD 31 1>; 168 + gpios = <&pioD 31 GPIO_ACTIVE_LOW>; 169 169 linux,default-trigger = "mmc0"; 170 170 }; 171 171 }; ··· 175 175 176 176 left_click { 177 177 label = "left_click"; 178 - gpios = <&pioB 6 1>; 178 + gpios = <&pioB 6 GPIO_ACTIVE_LOW>; 179 179 linux,code = <272>; 180 180 gpio-key,wakeup; 181 181 }; 182 182 183 183 right_click { 184 184 label = "right_click"; 185 - gpios = <&pioB 7 1>; 185 + gpios = <&pioB 7 GPIO_ACTIVE_LOW>; 186 186 linux,code = <273>; 187 187 gpio-key,wakeup; 188 188 }; 189 189 190 190 left { 191 191 label = "Joystick Left"; 192 - gpios = <&pioB 14 1>; 192 + gpios = <&pioB 14 GPIO_ACTIVE_LOW>; 193 193 linux,code = <105>; 194 194 }; 195 195 196 196 right { 197 197 label = "Joystick Right"; 198 - gpios = <&pioB 15 1>; 198 + gpios = <&pioB 15 GPIO_ACTIVE_LOW>; 199 199 linux,code = <106>; 200 200 }; 201 201 202 202 up { 203 203 label = "Joystick Up"; 204 - gpios = <&pioB 16 1>; 204 + gpios = <&pioB 16 GPIO_ACTIVE_LOW>; 205 205 linux,code = <103>; 206 206 }; 207 207 208 208 down { 209 209 label = "Joystick Down"; 210 - gpios = <&pioB 17 1>; 210 + gpios = <&pioB 17 GPIO_ACTIVE_LOW>; 211 211 linux,code = <108>; 212 212 }; 213 213 214 214 enter { 215 215 label = "Joystick Press"; 216 - gpios = <&pioB 18 1>; 216 + gpios = <&pioB 18 GPIO_ACTIVE_LOW>; 217 217 linux,code = <28>; 218 218 }; 219 219 };
+72 -69
arch/arm/boot/dts/at91sam9n12.dtsi
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 10 - /include/ "skeleton.dtsi" 10 + #include "skeleton.dtsi" 11 + #include <dt-bindings/pinctrl/at91.h> 12 + #include <dt-bindings/interrupt-controller/irq.h> 13 + #include <dt-bindings/gpio/gpio.h> 11 14 12 15 / { 13 16 model = "Atmel AT91SAM9N12 SoC"; ··· 81 78 pit: timer@fffffe30 { 82 79 compatible = "atmel,at91sam9260-pit"; 83 80 reg = <0xfffffe30 0xf>; 84 - interrupts = <1 4 7>; 81 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 85 82 }; 86 83 87 84 shdwc@fffffe10 { ··· 92 89 mmc0: mmc@f0008000 { 93 90 compatible = "atmel,hsmci"; 94 91 reg = <0xf0008000 0x600>; 95 - interrupts = <12 4 0>; 92 + interrupts = <12 IRQ_TYPE_LEVEL_HIGH 0>; 96 93 dmas = <&dma 1 0>; 97 94 dma-names = "rxtx"; 98 95 #address-cells = <1>; ··· 103 100 tcb0: timer@f8008000 { 104 101 compatible = "atmel,at91sam9x5-tcb"; 105 102 reg = <0xf8008000 0x100>; 106 - interrupts = <17 4 0>; 103 + interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; 107 104 }; 108 105 109 106 tcb1: timer@f800c000 { 110 107 compatible = "atmel,at91sam9x5-tcb"; 111 108 reg = <0xf800c000 0x100>; 112 - interrupts = <17 4 0>; 109 + interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; 113 110 }; 114 111 115 112 dma: dma-controller@ffffec00 { 116 113 compatible = "atmel,at91sam9g45-dma"; 117 114 reg = <0xffffec00 0x200>; 118 - interrupts = <20 4 0>; 115 + interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>; 119 116 #dma-cells = <2>; 120 117 }; 121 118 ··· 137 134 dbgu { 138 135 pinctrl_dbgu: dbgu-0 { 139 136 atmel,pins = 140 - <0 9 0x1 0x0 /* PA9 periph A */ 141 - 0 10 0x1 0x1>; /* PA10 periph with pullup */ 137 + <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA9 periph A */ 138 + AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA10 periph with pullup */ 142 139 }; 143 140 }; 144 141 145 142 usart0 { 146 143 pinctrl_usart0: usart0-0 { 147 144 atmel,pins = 148 - <0 1 0x1 0x1 /* PA1 periph A with pullup */ 149 - 0 0 0x1 0x0>; /* PA0 periph A */ 145 + <AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA1 periph A with pullup */ 146 + AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA0 periph A */ 150 147 }; 151 148 152 149 pinctrl_usart0_rts: usart0_rts-0 { 153 150 atmel,pins = 154 - <0 2 0x1 0x0>; /* PA2 periph A */ 151 + <AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA2 periph A */ 155 152 }; 156 153 157 154 pinctrl_usart0_cts: usart0_cts-0 { 158 155 atmel,pins = 159 - <0 3 0x1 0x0>; /* PA3 periph A */ 156 + <AT91_PIOA 3 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA3 periph A */ 160 157 }; 161 158 }; 162 159 163 160 usart1 { 164 161 pinctrl_usart1: usart1-0 { 165 162 atmel,pins = 166 - <0 6 0x1 0x1 /* PA6 periph A with pullup */ 167 - 0 5 0x1 0x0>; /* PA5 periph A */ 163 + <AT91_PIOA 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA6 periph A with pullup */ 164 + AT91_PIOA 5 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA5 periph A */ 168 165 }; 169 166 }; 170 167 171 168 usart2 { 172 169 pinctrl_usart2: usart2-0 { 173 170 atmel,pins = 174 - <0 8 0x1 0x1 /* PA8 periph A with pullup */ 175 - 0 7 0x1 0x0>; /* PA7 periph A */ 171 + <AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA8 periph A with pullup */ 172 + AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA7 periph A */ 176 173 }; 177 174 178 175 pinctrl_usart2_rts: usart2_rts-0 { 179 176 atmel,pins = 180 - <1 0 0x2 0x0>; /* PB0 periph B */ 177 + <AT91_PIOB 0 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB0 periph B */ 181 178 }; 182 179 183 180 pinctrl_usart2_cts: usart2_cts-0 { 184 181 atmel,pins = 185 - <1 1 0x2 0x0>; /* PB1 periph B */ 182 + <AT91_PIOB 1 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB1 periph B */ 186 183 }; 187 184 }; 188 185 189 186 usart3 { 190 187 pinctrl_usart3: usart3-0 { 191 188 atmel,pins = 192 - <2 23 0x2 0x1 /* PC23 periph B with pullup */ 193 - 2 22 0x2 0x0>; /* PC22 periph B */ 189 + <AT91_PIOC 23 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PC23 periph B with pullup */ 190 + AT91_PIOC 22 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC22 periph B */ 194 191 }; 195 192 196 193 pinctrl_usart3_rts: usart3_rts-0 { 197 194 atmel,pins = 198 - <2 24 0x2 0x0>; /* PC24 periph B */ 195 + <AT91_PIOC 24 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC24 periph B */ 199 196 }; 200 197 201 198 pinctrl_usart3_cts: usart3_cts-0 { 202 199 atmel,pins = 203 - <2 25 0x2 0x0>; /* PC25 periph B */ 200 + <AT91_PIOC 25 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC25 periph B */ 204 201 }; 205 202 }; 206 203 207 204 uart0 { 208 205 pinctrl_uart0: uart0-0 { 209 206 atmel,pins = 210 - <2 9 0x3 0x1 /* PC9 periph C with pullup */ 211 - 2 8 0x3 0x0>; /* PC8 periph C */ 207 + <AT91_PIOC 9 AT91_PERIPH_C AT91_PINCTRL_PULL_UP /* PC9 periph C with pullup */ 208 + AT91_PIOC 8 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PC8 periph C */ 212 209 }; 213 210 }; 214 211 215 212 uart1 { 216 213 pinctrl_uart1: uart1-0 { 217 214 atmel,pins = 218 - <2 16 0x3 0x1 /* PC17 periph C with pullup */ 219 - 2 17 0x3 0x0>; /* PC16 periph C */ 215 + <AT91_PIOC 16 AT91_PERIPH_C AT91_PINCTRL_PULL_UP /* PC17 periph C with pullup */ 216 + AT91_PIOC 17 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PC16 periph C */ 220 217 }; 221 218 }; 222 219 223 220 nand { 224 221 pinctrl_nand: nand-0 { 225 222 atmel,pins = 226 - <3 5 0x0 0x1 /* PD5 gpio RDY pin pull_up*/ 227 - 3 4 0x0 0x1>; /* PD4 gpio enable pin pull_up */ 223 + <AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP /* PD5 gpio RDY pin pull_up*/ 224 + AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD4 gpio enable pin pull_up */ 228 225 }; 229 226 }; 230 227 231 228 mmc0 { 232 229 pinctrl_mmc0_slot0_clk_cmd_dat0: mmc0_slot0_clk_cmd_dat0-0 { 233 230 atmel,pins = 234 - <0 17 0x1 0x0 /* PA17 periph A */ 235 - 0 16 0x1 0x1 /* PA16 periph A with pullup */ 236 - 0 15 0x1 0x1>; /* PA15 periph A with pullup */ 231 + <AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA17 periph A */ 232 + AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA16 periph A with pullup */ 233 + AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA15 periph A with pullup */ 237 234 }; 238 235 239 236 pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 { 240 237 atmel,pins = 241 - <0 18 0x1 0x1 /* PA18 periph A with pullup */ 242 - 0 19 0x1 0x1 /* PA19 periph A with pullup */ 243 - 0 20 0x1 0x1>; /* PA20 periph A with pullup */ 238 + <AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA18 periph A with pullup */ 239 + AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA19 periph A with pullup */ 240 + AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA20 periph A with pullup */ 244 241 }; 245 242 246 243 pinctrl_mmc0_slot0_dat4_7: mmc0_slot0_dat4_7-0 { 247 244 atmel,pins = 248 - <0 11 0x2 0x1 /* PA11 periph B with pullup */ 249 - 0 12 0x2 0x1 /* PA12 periph B with pullup */ 250 - 0 13 0x2 0x1 /* PA13 periph B with pullup */ 251 - 0 14 0x2 0x1>; /* PA14 periph B with pullup */ 245 + <AT91_PIOA 11 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA11 periph B with pullup */ 246 + AT91_PIOA 12 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA12 periph B with pullup */ 247 + AT91_PIOA 13 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA13 periph B with pullup */ 248 + AT91_PIOA 14 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PA14 periph B with pullup */ 252 249 }; 253 250 }; 254 251 255 252 ssc0 { 256 253 pinctrl_ssc0_tx: ssc0_tx-0 { 257 254 atmel,pins = 258 - <0 24 0x2 0x0 /* PA24 periph B */ 259 - 0 25 0x2 0x0 /* PA25 periph B */ 260 - 0 26 0x2 0x0>; /* PA26 periph B */ 255 + <AT91_PIOA 24 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA24 periph B */ 256 + AT91_PIOA 25 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA25 periph B */ 257 + AT91_PIOA 26 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA26 periph B */ 261 258 }; 262 259 263 260 pinctrl_ssc0_rx: ssc0_rx-0 { 264 261 atmel,pins = 265 - <0 27 0x2 0x0 /* PA27 periph B */ 266 - 0 28 0x2 0x0 /* PA28 periph B */ 267 - 0 29 0x2 0x0>; /* PA29 periph B */ 262 + <AT91_PIOA 27 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA27 periph B */ 263 + AT91_PIOA 28 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA28 periph B */ 264 + AT91_PIOA 29 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA29 periph B */ 268 265 }; 269 266 }; 270 267 271 268 spi0 { 272 269 pinctrl_spi0: spi0-0 { 273 270 atmel,pins = 274 - <0 11 0x1 0x0 /* PA11 periph A SPI0_MISO pin */ 275 - 0 12 0x1 0x0 /* PA12 periph A SPI0_MOSI pin */ 276 - 0 13 0x1 0x0>; /* PA13 periph A SPI0_SPCK pin */ 271 + <AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA11 periph A SPI0_MISO pin */ 272 + AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA12 periph A SPI0_MOSI pin */ 273 + AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA13 periph A SPI0_SPCK pin */ 277 274 }; 278 275 }; 279 276 280 277 spi1 { 281 278 pinctrl_spi1: spi1-0 { 282 279 atmel,pins = 283 - <0 21 0x2 0x0 /* PA21 periph B SPI1_MISO pin */ 284 - 0 22 0x2 0x0 /* PA22 periph B SPI1_MOSI pin */ 285 - 0 23 0x2 0x0>; /* PA23 periph B SPI1_SPCK pin */ 280 + <AT91_PIOA 21 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA21 periph B SPI1_MISO pin */ 281 + AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA22 periph B SPI1_MOSI pin */ 282 + AT91_PIOA 23 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA23 periph B SPI1_SPCK pin */ 286 283 }; 287 284 }; 288 285 289 286 pioA: gpio@fffff400 { 290 287 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 291 288 reg = <0xfffff400 0x200>; 292 - interrupts = <2 4 1>; 289 + interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>; 293 290 #gpio-cells = <2>; 294 291 gpio-controller; 295 292 interrupt-controller; ··· 299 296 pioB: gpio@fffff600 { 300 297 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 301 298 reg = <0xfffff600 0x200>; 302 - interrupts = <2 4 1>; 299 + interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>; 303 300 #gpio-cells = <2>; 304 301 gpio-controller; 305 302 interrupt-controller; ··· 309 306 pioC: gpio@fffff800 { 310 307 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 311 308 reg = <0xfffff800 0x200>; 312 - interrupts = <3 4 1>; 309 + interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>; 313 310 #gpio-cells = <2>; 314 311 gpio-controller; 315 312 interrupt-controller; ··· 319 316 pioD: gpio@fffffa00 { 320 317 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 321 318 reg = <0xfffffa00 0x200>; 322 - interrupts = <3 4 1>; 319 + interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>; 323 320 #gpio-cells = <2>; 324 321 gpio-controller; 325 322 interrupt-controller; ··· 330 327 dbgu: serial@fffff200 { 331 328 compatible = "atmel,at91sam9260-usart"; 332 329 reg = <0xfffff200 0x200>; 333 - interrupts = <1 4 7>; 330 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 334 331 pinctrl-names = "default"; 335 332 pinctrl-0 = <&pinctrl_dbgu>; 336 333 status = "disabled"; ··· 339 336 ssc0: ssc@f0010000 { 340 337 compatible = "atmel,at91sam9g45-ssc"; 341 338 reg = <0xf0010000 0x4000>; 342 - interrupts = <28 4 5>; 339 + interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>; 343 340 pinctrl-names = "default"; 344 341 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; 345 342 status = "disabled"; ··· 348 345 usart0: serial@f801c000 { 349 346 compatible = "atmel,at91sam9260-usart"; 350 347 reg = <0xf801c000 0x4000>; 351 - interrupts = <5 4 5>; 348 + interrupts = <5 IRQ_TYPE_LEVEL_HIGH 5>; 352 349 pinctrl-names = "default"; 353 350 pinctrl-0 = <&pinctrl_usart0>; 354 351 status = "disabled"; ··· 357 354 usart1: serial@f8020000 { 358 355 compatible = "atmel,at91sam9260-usart"; 359 356 reg = <0xf8020000 0x4000>; 360 - interrupts = <6 4 5>; 357 + interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>; 361 358 pinctrl-names = "default"; 362 359 pinctrl-0 = <&pinctrl_usart1>; 363 360 status = "disabled"; ··· 366 363 usart2: serial@f8024000 { 367 364 compatible = "atmel,at91sam9260-usart"; 368 365 reg = <0xf8024000 0x4000>; 369 - interrupts = <7 4 5>; 366 + interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>; 370 367 pinctrl-names = "default"; 371 368 pinctrl-0 = <&pinctrl_usart2>; 372 369 status = "disabled"; ··· 375 372 usart3: serial@f8028000 { 376 373 compatible = "atmel,at91sam9260-usart"; 377 374 reg = <0xf8028000 0x4000>; 378 - interrupts = <8 4 5>; 375 + interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>; 379 376 pinctrl-names = "default"; 380 377 pinctrl-0 = <&pinctrl_usart3>; 381 378 status = "disabled"; ··· 384 381 i2c0: i2c@f8010000 { 385 382 compatible = "atmel,at91sam9x5-i2c"; 386 383 reg = <0xf8010000 0x100>; 387 - interrupts = <9 4 6>; 384 + interrupts = <9 IRQ_TYPE_LEVEL_HIGH 6>; 388 385 dmas = <&dma 1 13>, 389 386 <&dma 1 14>; 390 387 dma-names = "tx", "rx"; ··· 396 393 i2c1: i2c@f8014000 { 397 394 compatible = "atmel,at91sam9x5-i2c"; 398 395 reg = <0xf8014000 0x100>; 399 - interrupts = <10 4 6>; 396 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH 6>; 400 397 dmas = <&dma 1 15>, 401 398 <&dma 1 16>; 402 399 dma-names = "tx", "rx"; ··· 410 407 #size-cells = <0>; 411 408 compatible = "atmel,at91rm9200-spi"; 412 409 reg = <0xf0000000 0x100>; 413 - interrupts = <13 4 3>; 410 + interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>; 414 411 pinctrl-names = "default"; 415 412 pinctrl-0 = <&pinctrl_spi0>; 416 413 status = "disabled"; ··· 421 418 #size-cells = <0>; 422 419 compatible = "atmel,at91rm9200-spi"; 423 420 reg = <0xf0004000 0x100>; 424 - interrupts = <14 4 3>; 421 + interrupts = <14 IRQ_TYPE_LEVEL_HIGH 3>; 425 422 pinctrl-names = "default"; 426 423 pinctrl-0 = <&pinctrl_spi1>; 427 424 status = "disabled"; ··· 442 439 atmel,nand-cmd-offset = <22>; 443 440 pinctrl-names = "default"; 444 441 pinctrl-0 = <&pinctrl_nand>; 445 - gpios = <&pioD 5 0 446 - &pioD 4 0 442 + gpios = <&pioD 5 GPIO_ACTIVE_HIGH 443 + &pioD 4 GPIO_ACTIVE_HIGH 447 444 0 448 445 >; 449 446 status = "disabled"; ··· 452 449 usb0: ohci@00500000 { 453 450 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 454 451 reg = <0x00500000 0x00100000>; 455 - interrupts = <22 4 2>; 452 + interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>; 456 453 status = "disabled"; 457 454 }; 458 455 }; 459 456 460 457 i2c@0 { 461 458 compatible = "i2c-gpio"; 462 - gpios = <&pioA 30 0 /* sda */ 463 - &pioA 31 0 /* scl */ 459 + gpios = <&pioA 30 GPIO_ACTIVE_HIGH /* sda */ 460 + &pioA 31 GPIO_ACTIVE_HIGH /* scl */ 464 461 >; 465 462 i2c-gpio,sda-open-drain; 466 463 i2c-gpio,scl-open-drain;
+7 -7
arch/arm/boot/dts/at91sam9n12ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "at91sam9n12.dtsi" 10 + #include "at91sam9n12.dtsi" 11 11 12 12 / { 13 13 model = "Atmel AT91SAM9N12-EK"; ··· 55 55 slot@0 { 56 56 reg = <0>; 57 57 bus-width = <4>; 58 - cd-gpios = <&pioA 7 0>; 58 + cd-gpios = <&pioA 7 GPIO_ACTIVE_HIGH>; 59 59 }; 60 60 }; 61 61 ··· 63 63 mmc0 { 64 64 pinctrl_board_mmc0: mmc0-board { 65 65 atmel,pins = 66 - <0 7 0x0 0x5>; /* PA7 gpio CD pin pull up and deglitch */ 66 + <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PA7 gpio CD pin pull up and deglitch */ 67 67 }; 68 68 }; 69 69 }; ··· 95 95 96 96 d8 { 97 97 label = "d8"; 98 - gpios = <&pioB 4 1>; 98 + gpios = <&pioB 4 GPIO_ACTIVE_LOW>; 99 99 linux,default-trigger = "mmc0"; 100 100 }; 101 101 102 102 d9 { 103 103 label = "d6"; 104 - gpios = <&pioB 5 1>; 104 + gpios = <&pioB 5 GPIO_ACTIVE_LOW>; 105 105 linux,default-trigger = "nand-disk"; 106 106 }; 107 107 108 108 d10 { 109 109 label = "d7"; 110 - gpios = <&pioB 6 0>; 110 + gpios = <&pioB 6 GPIO_ACTIVE_HIGH>; 111 111 linux,default-trigger = "heartbeat"; 112 112 }; 113 113 }; ··· 117 117 118 118 enter { 119 119 label = "Enter"; 120 - gpios = <&pioB 4 1>; 120 + gpios = <&pioB 4 GPIO_ACTIVE_LOW>; 121 121 linux,code = <28>; 122 122 gpio-key,wakeup; 123 123 };
+11 -11
arch/arm/boot/dts/at91sam9x25.dtsi
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 9 - /include/ "at91sam9x5.dtsi" 9 + #include "at91sam9x5.dtsi" 10 10 11 11 / { 12 12 model = "Atmel AT91SAM9X25 SoC"; ··· 26 26 macb1 { 27 27 pinctrl_macb1_rmii: macb1_rmii-0 { 28 28 atmel,pins = 29 - <2 16 0x2 0x0 /* PC16 periph B */ 30 - 2 18 0x2 0x0 /* PC18 periph B */ 31 - 2 19 0x2 0x0 /* PC19 periph B */ 32 - 2 20 0x2 0x0 /* PC20 periph B */ 33 - 2 21 0x2 0x0 /* PC21 periph B */ 34 - 2 27 0x2 0x0 /* PC27 periph B */ 35 - 2 28 0x2 0x0 /* PC28 periph B */ 36 - 2 29 0x2 0x0 /* PC29 periph B */ 37 - 2 30 0x2 0x0 /* PC30 periph B */ 38 - 2 31 0x2 0x0>; /* PC31 periph B */ 29 + <AT91_PIOC 16 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC16 periph B */ 30 + AT91_PIOC 18 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC18 periph B */ 31 + AT91_PIOC 19 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC19 periph B */ 32 + AT91_PIOC 20 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC20 periph B */ 33 + AT91_PIOC 21 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC21 periph B */ 34 + AT91_PIOC 27 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC27 periph B */ 35 + AT91_PIOC 28 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC28 periph B */ 36 + AT91_PIOC 29 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC29 periph B */ 37 + AT91_PIOC 30 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC30 periph B */ 38 + AT91_PIOC 31 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC31 periph B */ 39 39 }; 40 40 }; 41 41 };
+2 -2
arch/arm/boot/dts/at91sam9x25ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "at91sam9x25.dtsi" 11 - /include/ "at91sam9x5ek.dtsi" 10 + #include "at91sam9x25.dtsi" 11 + #include "at91sam9x5ek.dtsi" 12 12 13 13 / { 14 14 model = "Atmel AT91SAM9X25-EK";
+1 -1
arch/arm/boot/dts/at91sam9x35.dtsi
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 9 - /include/ "at91sam9x5.dtsi" 9 + #include "at91sam9x5.dtsi" 10 10 11 11 / { 12 12 model = "Atmel AT91SAM9X35 SoC";
+2 -2
arch/arm/boot/dts/at91sam9x35ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "at91sam9x35.dtsi" 11 - /include/ "at91sam9x5ek.dtsi" 10 + #include "at91sam9x35.dtsi" 11 + #include "at91sam9x5ek.dtsi" 12 12 13 13 / { 14 14 model = "Atmel AT91SAM9X35-EK";
+141 -138
arch/arm/boot/dts/at91sam9x5.dtsi
··· 9 9 * Licensed under GPLv2 or later. 10 10 */ 11 11 12 - /include/ "skeleton.dtsi" 12 + #include "skeleton.dtsi" 13 + #include <dt-bindings/pinctrl/at91.h> 14 + #include <dt-bindings/interrupt-controller/irq.h> 15 + #include <dt-bindings/gpio/gpio.h> 13 16 14 17 / { 15 18 model = "Atmel AT91SAM9x5 family SoC"; ··· 88 85 pit: timer@fffffe30 { 89 86 compatible = "atmel,at91sam9260-pit"; 90 87 reg = <0xfffffe30 0xf>; 91 - interrupts = <1 4 7>; 88 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 92 89 }; 93 90 94 91 tcb0: timer@f8008000 { 95 92 compatible = "atmel,at91sam9x5-tcb"; 96 93 reg = <0xf8008000 0x100>; 97 - interrupts = <17 4 0>; 94 + interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; 98 95 }; 99 96 100 97 tcb1: timer@f800c000 { 101 98 compatible = "atmel,at91sam9x5-tcb"; 102 99 reg = <0xf800c000 0x100>; 103 - interrupts = <17 4 0>; 100 + interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>; 104 101 }; 105 102 106 103 dma0: dma-controller@ffffec00 { 107 104 compatible = "atmel,at91sam9g45-dma"; 108 105 reg = <0xffffec00 0x200>; 109 - interrupts = <20 4 0>; 106 + interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>; 110 107 #dma-cells = <2>; 111 108 }; 112 109 113 110 dma1: dma-controller@ffffee00 { 114 111 compatible = "atmel,at91sam9g45-dma"; 115 112 reg = <0xffffee00 0x200>; 116 - interrupts = <21 4 0>; 113 + interrupts = <21 IRQ_TYPE_LEVEL_HIGH 0>; 117 114 #dma-cells = <2>; 118 115 }; 119 116 ··· 127 124 dbgu { 128 125 pinctrl_dbgu: dbgu-0 { 129 126 atmel,pins = 130 - <0 9 0x1 0x0 /* PA9 periph A */ 131 - 0 10 0x1 0x1>; /* PA10 periph A with pullup */ 127 + <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA9 periph A */ 128 + AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA10 periph A with pullup */ 132 129 }; 133 130 }; 134 131 135 132 usart0 { 136 133 pinctrl_usart0: usart0-0 { 137 134 atmel,pins = 138 - <0 0 0x1 0x1 /* PA0 periph A with pullup */ 139 - 0 1 0x1 0x0>; /* PA1 periph A */ 135 + <AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA0 periph A with pullup */ 136 + AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA1 periph A */ 140 137 }; 141 138 142 139 pinctrl_usart0_rts: usart0_rts-0 { 143 140 atmel,pins = 144 - <0 2 0x1 0x0>; /* PA2 periph A */ 141 + <AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA2 periph A */ 145 142 }; 146 143 147 144 pinctrl_usart0_cts: usart0_cts-0 { 148 145 atmel,pins = 149 - <0 3 0x1 0x0>; /* PA3 periph A */ 146 + <AT91_PIOA 3 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA3 periph A */ 150 147 }; 151 148 152 149 pinctrl_usart0_sck: usart0_sck-0 { 153 150 atmel,pins = 154 - <0 4 0x1 0x0>; /* PA4 periph A */ 151 + <AT91_PIOA 4 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA4 periph A */ 155 152 }; 156 153 }; 157 154 158 155 usart1 { 159 156 pinctrl_usart1: usart1-0 { 160 157 atmel,pins = 161 - <0 5 0x1 0x1 /* PA5 periph A with pullup */ 162 - 0 6 0x1 0x0>; /* PA6 periph A */ 158 + <AT91_PIOA 5 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA5 periph A with pullup */ 159 + AT91_PIOA 6 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA6 periph A */ 163 160 }; 164 161 165 162 pinctrl_usart1_rts: usart1_rts-0 { 166 163 atmel,pins = 167 - <2 27 0x3 0x0>; /* PC27 periph C */ 164 + <AT91_PIOC 27 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PC27 periph C */ 168 165 }; 169 166 170 167 pinctrl_usart1_cts: usart1_cts-0 { 171 168 atmel,pins = 172 - <2 28 0x3 0x0>; /* PC28 periph C */ 169 + <AT91_PIOC 28 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PC28 periph C */ 173 170 }; 174 171 175 172 pinctrl_usart1_sck: usart1_sck-0 { 176 173 atmel,pins = 177 - <2 28 0x3 0x0>; /* PC29 periph C */ 174 + <AT91_PIOC 28 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PC29 periph C */ 178 175 }; 179 176 }; 180 177 181 178 usart2 { 182 179 pinctrl_usart2: usart2-0 { 183 180 atmel,pins = 184 - <0 7 0x1 0x1 /* PA7 periph A with pullup */ 185 - 0 8 0x1 0x0>; /* PA8 periph A */ 181 + <AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA7 periph A with pullup */ 182 + AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA8 periph A */ 186 183 }; 187 184 188 185 pinctrl_uart2_rts: uart2_rts-0 { 189 186 atmel,pins = 190 - <1 0 0x2 0x0>; /* PB0 periph B */ 187 + <AT91_PIOB 0 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB0 periph B */ 191 188 }; 192 189 193 190 pinctrl_uart2_cts: uart2_cts-0 { 194 191 atmel,pins = 195 - <1 1 0x2 0x0>; /* PB1 periph B */ 192 + <AT91_PIOB 1 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB1 periph B */ 196 193 }; 197 194 198 195 pinctrl_usart2_sck: usart2_sck-0 { 199 196 atmel,pins = 200 - <1 2 0x2 0x0>; /* PB2 periph B */ 197 + <AT91_PIOB 2 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB2 periph B */ 201 198 }; 202 199 }; 203 200 204 201 usart3 { 205 202 pinctrl_usart3: usart3-0 { 206 203 atmel,pins = 207 - <2 22 0x2 0x1 /* PC22 periph B with pullup */ 208 - 2 23 0x2 0x0>; /* PC23 periph B */ 204 + <AT91_PIOC 22 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PC22 periph B with pullup */ 205 + AT91_PIOC 23 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC23 periph B */ 209 206 }; 210 207 211 208 pinctrl_usart3_rts: usart3_rts-0 { 212 209 atmel,pins = 213 - <2 24 0x2 0x0>; /* PC24 periph B */ 210 + <AT91_PIOC 24 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC24 periph B */ 214 211 }; 215 212 216 213 pinctrl_usart3_cts: usart3_cts-0 { 217 214 atmel,pins = 218 - <2 25 0x2 0x0>; /* PC25 periph B */ 215 + <AT91_PIOC 25 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC25 periph B */ 219 216 }; 220 217 221 218 pinctrl_usart3_sck: usart3_sck-0 { 222 219 atmel,pins = 223 - <2 26 0x2 0x0>; /* PC26 periph B */ 220 + <AT91_PIOC 26 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC26 periph B */ 224 221 }; 225 222 }; 226 223 227 224 uart0 { 228 225 pinctrl_uart0: uart0-0 { 229 226 atmel,pins = 230 - <2 8 0x3 0x0 /* PC8 periph C */ 231 - 2 9 0x3 0x1>; /* PC9 periph C with pullup */ 227 + <AT91_PIOC 8 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC8 periph C */ 228 + AT91_PIOC 9 AT91_PERIPH_C AT91_PINCTRL_PULL_UP>; /* PC9 periph C with pullup */ 232 229 }; 233 230 }; 234 231 235 232 uart1 { 236 233 pinctrl_uart1: uart1-0 { 237 234 atmel,pins = 238 - <2 16 0x3 0x0 /* PC16 periph C */ 239 - 2 17 0x3 0x1>; /* PC17 periph C with pullup */ 235 + <AT91_PIOC 16 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC16 periph C */ 236 + AT91_PIOC 17 AT91_PERIPH_C AT91_PINCTRL_PULL_UP>; /* PC17 periph C with pullup */ 240 237 }; 241 238 }; 242 239 243 240 nand { 244 241 pinctrl_nand: nand-0 { 245 242 atmel,pins = 246 - <3 0 0x1 0x0 /* PD0 periph A Read Enable */ 247 - 3 1 0x1 0x0 /* PD1 periph A Write Enable */ 248 - 3 2 0x1 0x0 /* PD2 periph A Address Latch Enable */ 249 - 3 3 0x1 0x0 /* PD3 periph A Command Latch Enable */ 250 - 3 4 0x0 0x1 /* PD4 gpio Chip Enable pin pull_up */ 251 - 3 5 0x0 0x1 /* PD5 gpio RDY/BUSY pin pull_up */ 252 - 3 6 0x1 0x0 /* PD6 periph A Data bit 0 */ 253 - 3 7 0x1 0x0 /* PD7 periph A Data bit 1 */ 254 - 3 8 0x1 0x0 /* PD8 periph A Data bit 2 */ 255 - 3 9 0x1 0x0 /* PD9 periph A Data bit 3 */ 256 - 3 10 0x1 0x0 /* PD10 periph A Data bit 4 */ 257 - 3 11 0x1 0x0 /* PD11 periph A Data bit 5 */ 258 - 3 12 0x1 0x0 /* PD12 periph A Data bit 6 */ 259 - 3 13 0x1 0x0>; /* PD13 periph A Data bit 7 */ 243 + <AT91_PIOD 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD0 periph A Read Enable */ 244 + AT91_PIOD 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD1 periph A Write Enable */ 245 + AT91_PIOD 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD2 periph A Address Latch Enable */ 246 + AT91_PIOD 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD3 periph A Command Latch Enable */ 247 + AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP /* PD4 gpio Chip Enable pin pull_up */ 248 + AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP /* PD5 gpio RDY/BUSY pin pull_up */ 249 + AT91_PIOD 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD6 periph A Data bit 0 */ 250 + AT91_PIOD 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD7 periph A Data bit 1 */ 251 + AT91_PIOD 8 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD8 periph A Data bit 2 */ 252 + AT91_PIOD 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD9 periph A Data bit 3 */ 253 + AT91_PIOD 10 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD10 periph A Data bit 4 */ 254 + AT91_PIOD 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD11 periph A Data bit 5 */ 255 + AT91_PIOD 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD12 periph A Data bit 6 */ 256 + AT91_PIOD 13 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD13 periph A Data bit 7 */ 260 257 }; 261 258 262 259 pinctrl_nand_16bits: nand_16bits-0 { 263 260 atmel,pins = 264 - <3 14 0x1 0x0 /* PD14 periph A Data bit 8 */ 265 - 3 15 0x1 0x0 /* PD15 periph A Data bit 9 */ 266 - 3 16 0x1 0x0 /* PD16 periph A Data bit 10 */ 267 - 3 17 0x1 0x0 /* PD17 periph A Data bit 11 */ 268 - 3 18 0x1 0x0 /* PD18 periph A Data bit 12 */ 269 - 3 19 0x1 0x0 /* PD19 periph A Data bit 13 */ 270 - 3 20 0x1 0x0 /* PD20 periph A Data bit 14 */ 271 - 3 21 0x1 0x0>; /* PD21 periph A Data bit 15 */ 261 + <AT91_PIOD 14 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD14 periph A Data bit 8 */ 262 + AT91_PIOD 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD15 periph A Data bit 9 */ 263 + AT91_PIOD 16 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD16 periph A Data bit 10 */ 264 + AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD17 periph A Data bit 11 */ 265 + AT91_PIOD 18 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD18 periph A Data bit 12 */ 266 + AT91_PIOD 19 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD19 periph A Data bit 13 */ 267 + AT91_PIOD 20 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD20 periph A Data bit 14 */ 268 + AT91_PIOD 21 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD21 periph A Data bit 15 */ 272 269 }; 273 270 }; 274 271 275 272 macb0 { 276 273 pinctrl_macb0_rmii: macb0_rmii-0 { 277 274 atmel,pins = 278 - <1 0 0x1 0x0 /* PB0 periph A */ 279 - 1 1 0x1 0x0 /* PB1 periph A */ 280 - 1 2 0x1 0x0 /* PB2 periph A */ 281 - 1 3 0x1 0x0 /* PB3 periph A */ 282 - 1 4 0x1 0x0 /* PB4 periph A */ 283 - 1 5 0x1 0x0 /* PB5 periph A */ 284 - 1 6 0x1 0x0 /* PB6 periph A */ 285 - 1 7 0x1 0x0 /* PB7 periph A */ 286 - 1 9 0x1 0x0 /* PB9 periph A */ 287 - 1 10 0x1 0x0>; /* PB10 periph A */ 275 + <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB0 periph A */ 276 + AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB1 periph A */ 277 + AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB2 periph A */ 278 + AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB3 periph A */ 279 + AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A */ 280 + AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB5 periph A */ 281 + AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A */ 282 + AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB7 periph A */ 283 + AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A */ 284 + AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB10 periph A */ 288 285 }; 289 286 290 287 pinctrl_macb0_rmii_mii: macb0_rmii_mii-0 { 291 288 atmel,pins = 292 - <1 8 0x1 0x0 /* PB8 periph A */ 293 - 1 11 0x1 0x0 /* PB11 periph A */ 294 - 1 12 0x1 0x0 /* PB12 periph A */ 295 - 1 13 0x1 0x0 /* PB13 periph A */ 296 - 1 14 0x1 0x0 /* PB14 periph A */ 297 - 1 15 0x1 0x0 /* PB15 periph A */ 298 - 1 16 0x1 0x0 /* PB16 periph A */ 299 - 1 17 0x1 0x0>; /* PB17 periph A */ 289 + <AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB8 periph A */ 290 + AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB11 periph A */ 291 + AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB12 periph A */ 292 + AT91_PIOB 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB13 periph A */ 293 + AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB14 periph A */ 294 + AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB15 periph A */ 295 + AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB16 periph A */ 296 + AT91_PIOB 17 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB17 periph A */ 300 297 }; 301 298 }; 302 299 303 300 mmc0 { 304 301 pinctrl_mmc0_slot0_clk_cmd_dat0: mmc0_slot0_clk_cmd_dat0-0 { 305 302 atmel,pins = 306 - <0 17 0x1 0x0 /* PA17 periph A */ 307 - 0 16 0x1 0x1 /* PA16 periph A with pullup */ 308 - 0 15 0x1 0x1>; /* PA15 periph A with pullup */ 303 + <AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA17 periph A */ 304 + AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA16 periph A with pullup */ 305 + AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA15 periph A with pullup */ 309 306 }; 310 307 311 308 pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 { 312 309 atmel,pins = 313 - <0 18 0x1 0x1 /* PA18 periph A with pullup */ 314 - 0 19 0x1 0x1 /* PA19 periph A with pullup */ 315 - 0 20 0x1 0x1>; /* PA20 periph A with pullup */ 310 + <AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA18 periph A with pullup */ 311 + AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA19 periph A with pullup */ 312 + AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA20 periph A with pullup */ 316 313 }; 317 314 }; 318 315 319 316 mmc1 { 320 317 pinctrl_mmc1_slot0_clk_cmd_dat0: mmc1_slot0_clk_cmd_dat0-0 { 321 318 atmel,pins = 322 - <0 13 0x2 0x0 /* PA13 periph B */ 323 - 0 12 0x2 0x1 /* PA12 periph B with pullup */ 324 - 0 11 0x2 0x1>; /* PA11 periph B with pullup */ 319 + <AT91_PIOA 13 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA13 periph B */ 320 + AT91_PIOA 12 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA12 periph B with pullup */ 321 + AT91_PIOA 11 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PA11 periph B with pullup */ 325 322 }; 326 323 327 324 pinctrl_mmc1_slot0_dat1_3: mmc1_slot0_dat1_3-0 { 328 325 atmel,pins = 329 - <0 2 0x2 0x1 /* PA2 periph B with pullup */ 330 - 0 3 0x2 0x1 /* PA3 periph B with pullup */ 331 - 0 4 0x2 0x1>; /* PA4 periph B with pullup */ 326 + <AT91_PIOA 2 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA2 periph B with pullup */ 327 + AT91_PIOA 3 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA3 periph B with pullup */ 328 + AT91_PIOA 4 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PA4 periph B with pullup */ 332 329 }; 333 330 }; 334 331 335 332 ssc0 { 336 333 pinctrl_ssc0_tx: ssc0_tx-0 { 337 334 atmel,pins = 338 - <0 24 0x2 0x0 /* PA24 periph B */ 339 - 0 25 0x2 0x0 /* PA25 periph B */ 340 - 0 26 0x2 0x0>; /* PA26 periph B */ 335 + <AT91_PIOA 24 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA24 periph B */ 336 + AT91_PIOA 25 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA25 periph B */ 337 + AT91_PIOA 26 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA26 periph B */ 341 338 }; 342 339 343 340 pinctrl_ssc0_rx: ssc0_rx-0 { 344 341 atmel,pins = 345 - <0 27 0x2 0x0 /* PA27 periph B */ 346 - 0 28 0x2 0x0 /* PA28 periph B */ 347 - 0 29 0x2 0x0>; /* PA29 periph B */ 342 + <AT91_PIOA 27 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA27 periph B */ 343 + AT91_PIOA 28 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA28 periph B */ 344 + AT91_PIOA 29 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA29 periph B */ 348 345 }; 349 346 }; 350 347 351 348 spi0 { 352 349 pinctrl_spi0: spi0-0 { 353 350 atmel,pins = 354 - <0 11 0x1 0x0 /* PA11 periph A SPI0_MISO pin */ 355 - 0 12 0x1 0x0 /* PA12 periph A SPI0_MOSI pin */ 356 - 0 13 0x1 0x0>; /* PA13 periph A SPI0_SPCK pin */ 351 + <AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA11 periph A SPI0_MISO pin */ 352 + AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA12 periph A SPI0_MOSI pin */ 353 + AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA13 periph A SPI0_SPCK pin */ 357 354 }; 358 355 }; 359 356 360 357 spi1 { 361 358 pinctrl_spi1: spi1-0 { 362 359 atmel,pins = 363 - <0 21 0x2 0x0 /* PA21 periph B SPI1_MISO pin */ 364 - 0 22 0x2 0x0 /* PA22 periph B SPI1_MOSI pin */ 365 - 0 23 0x2 0x0>; /* PA23 periph B SPI1_SPCK pin */ 360 + <AT91_PIOA 21 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA21 periph B SPI1_MISO pin */ 361 + AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA22 periph B SPI1_MOSI pin */ 362 + AT91_PIOA 23 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA23 periph B SPI1_SPCK pin */ 366 363 }; 367 364 }; 368 365 369 366 i2c0 { 370 367 pinctrl_i2c0: i2c0-0 { 371 368 atmel,pins = 372 - <0 30 0x1 0x0 /* PA30 periph A I2C0 data */ 373 - 0 31 0x1 0x0>; /* PA31 periph A I2C0 clock */ 369 + <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA30 periph A I2C0 data */ 370 + AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA31 periph A I2C0 clock */ 374 371 }; 375 372 }; 376 373 377 374 i2c1 { 378 375 pinctrl_i2c1: i2c1-0 { 379 376 atmel,pins = 380 - <2 0 0x3 0x0 /* PC0 periph C I2C1 data */ 381 - 2 1 0x3 0x0>; /* PC1 periph C I2C1 clock */ 377 + <AT91_PIOC 0 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC0 periph C I2C1 data */ 378 + AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PC1 periph C I2C1 clock */ 382 379 }; 383 380 }; 384 381 385 382 i2c2 { 386 383 pinctrl_i2c2: i2c2-0 { 387 384 atmel,pins = 388 - <1 4 0x2 0x0 /* PB4 periph B I2C2 data */ 389 - 1 5 0x2 0x0>; /* PB5 periph B I2C2 clock */ 385 + <AT91_PIOB 4 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB4 periph B I2C2 data */ 386 + AT91_PIOB 5 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB5 periph B I2C2 clock */ 390 387 }; 391 388 }; 392 389 393 390 i2c_gpio0 { 394 391 pinctrl_i2c_gpio0: i2c_gpio0-0 { 395 392 atmel,pins = 396 - <0 30 0x0 0x2 /* PA30 gpio multidrive I2C0 data */ 397 - 0 31 0x0 0x2>; /* PA31 gpio multidrive I2C0 clock */ 393 + <AT91_PIOA 30 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE /* PA30 gpio multidrive I2C0 data */ 394 + AT91_PIOA 31 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>; /* PA31 gpio multidrive I2C0 clock */ 398 395 }; 399 396 }; 400 397 401 398 i2c_gpio1 { 402 399 pinctrl_i2c_gpio1: i2c_gpio1-0 { 403 400 atmel,pins = 404 - <2 0 0x0 0x2 /* PC0 gpio multidrive I2C1 data */ 405 - 2 1 0x0 0x2>; /* PC1 gpio multidrive I2C1 clock */ 401 + <AT91_PIOC 0 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE /* PC0 gpio multidrive I2C1 data */ 402 + AT91_PIOC 1 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>; /* PC1 gpio multidrive I2C1 clock */ 406 403 }; 407 404 }; 408 405 409 406 i2c_gpio2 { 410 407 pinctrl_i2c_gpio2: i2c_gpio2-0 { 411 408 atmel,pins = 412 - <1 4 0x0 0x2 /* PB4 gpio multidrive I2C2 data */ 413 - 1 5 0x0 0x2>; /* PB5 gpio multidrive I2C2 clock */ 409 + <AT91_PIOB 4 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE /* PB4 gpio multidrive I2C2 data */ 410 + AT91_PIOB 5 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>; /* PB5 gpio multidrive I2C2 clock */ 414 411 }; 415 412 }; 416 413 417 414 pioA: gpio@fffff400 { 418 415 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 419 416 reg = <0xfffff400 0x200>; 420 - interrupts = <2 4 1>; 417 + interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>; 421 418 #gpio-cells = <2>; 422 419 gpio-controller; 423 420 interrupt-controller; ··· 427 424 pioB: gpio@fffff600 { 428 425 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 429 426 reg = <0xfffff600 0x200>; 430 - interrupts = <2 4 1>; 427 + interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>; 431 428 #gpio-cells = <2>; 432 429 gpio-controller; 433 430 #gpio-lines = <19>; ··· 438 435 pioC: gpio@fffff800 { 439 436 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 440 437 reg = <0xfffff800 0x200>; 441 - interrupts = <3 4 1>; 438 + interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>; 442 439 #gpio-cells = <2>; 443 440 gpio-controller; 444 441 interrupt-controller; ··· 448 445 pioD: gpio@fffffa00 { 449 446 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 450 447 reg = <0xfffffa00 0x200>; 451 - interrupts = <3 4 1>; 448 + interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>; 452 449 #gpio-cells = <2>; 453 450 gpio-controller; 454 451 #gpio-lines = <22>; ··· 460 457 ssc0: ssc@f0010000 { 461 458 compatible = "atmel,at91sam9g45-ssc"; 462 459 reg = <0xf0010000 0x4000>; 463 - interrupts = <28 4 5>; 460 + interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>; 464 461 pinctrl-names = "default"; 465 462 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; 466 463 status = "disabled"; ··· 469 466 mmc0: mmc@f0008000 { 470 467 compatible = "atmel,hsmci"; 471 468 reg = <0xf0008000 0x600>; 472 - interrupts = <12 4 0>; 469 + interrupts = <12 IRQ_TYPE_LEVEL_HIGH 0>; 473 470 dmas = <&dma0 1 0>; 474 471 dma-names = "rxtx"; 475 472 #address-cells = <1>; ··· 480 477 mmc1: mmc@f000c000 { 481 478 compatible = "atmel,hsmci"; 482 479 reg = <0xf000c000 0x600>; 483 - interrupts = <26 4 0>; 480 + interrupts = <26 IRQ_TYPE_LEVEL_HIGH 0>; 484 481 dmas = <&dma1 1 0>; 485 482 dma-names = "rxtx"; 486 483 #address-cells = <1>; ··· 491 488 dbgu: serial@fffff200 { 492 489 compatible = "atmel,at91sam9260-usart"; 493 490 reg = <0xfffff200 0x200>; 494 - interrupts = <1 4 7>; 491 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 495 492 pinctrl-names = "default"; 496 493 pinctrl-0 = <&pinctrl_dbgu>; 497 494 status = "disabled"; ··· 500 497 usart0: serial@f801c000 { 501 498 compatible = "atmel,at91sam9260-usart"; 502 499 reg = <0xf801c000 0x200>; 503 - interrupts = <5 4 5>; 500 + interrupts = <5 IRQ_TYPE_LEVEL_HIGH 5>; 504 501 pinctrl-names = "default"; 505 502 pinctrl-0 = <&pinctrl_usart0>; 506 503 status = "disabled"; ··· 509 506 usart1: serial@f8020000 { 510 507 compatible = "atmel,at91sam9260-usart"; 511 508 reg = <0xf8020000 0x200>; 512 - interrupts = <6 4 5>; 509 + interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>; 513 510 pinctrl-names = "default"; 514 511 pinctrl-0 = <&pinctrl_usart1>; 515 512 status = "disabled"; ··· 518 515 usart2: serial@f8024000 { 519 516 compatible = "atmel,at91sam9260-usart"; 520 517 reg = <0xf8024000 0x200>; 521 - interrupts = <7 4 5>; 518 + interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>; 522 519 pinctrl-names = "default"; 523 520 pinctrl-0 = <&pinctrl_usart2>; 524 521 status = "disabled"; ··· 527 524 macb0: ethernet@f802c000 { 528 525 compatible = "cdns,at32ap7000-macb", "cdns,macb"; 529 526 reg = <0xf802c000 0x100>; 530 - interrupts = <24 4 3>; 527 + interrupts = <24 IRQ_TYPE_LEVEL_HIGH 3>; 531 528 pinctrl-names = "default"; 532 529 pinctrl-0 = <&pinctrl_macb0_rmii>; 533 530 status = "disabled"; ··· 536 533 macb1: ethernet@f8030000 { 537 534 compatible = "cdns,at32ap7000-macb", "cdns,macb"; 538 535 reg = <0xf8030000 0x100>; 539 - interrupts = <27 4 3>; 536 + interrupts = <27 IRQ_TYPE_LEVEL_HIGH 3>; 540 537 status = "disabled"; 541 538 }; 542 539 543 540 i2c0: i2c@f8010000 { 544 541 compatible = "atmel,at91sam9x5-i2c"; 545 542 reg = <0xf8010000 0x100>; 546 - interrupts = <9 4 6>; 543 + interrupts = <9 IRQ_TYPE_LEVEL_HIGH 6>; 547 544 dmas = <&dma0 1 7>, 548 545 <&dma0 1 8>; 549 546 dma-names = "tx", "rx"; ··· 557 554 i2c1: i2c@f8014000 { 558 555 compatible = "atmel,at91sam9x5-i2c"; 559 556 reg = <0xf8014000 0x100>; 560 - interrupts = <10 4 6>; 557 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH 6>; 561 558 dmas = <&dma1 1 5>, 562 559 <&dma1 1 6>; 563 560 dma-names = "tx", "rx"; ··· 571 568 i2c2: i2c@f8018000 { 572 569 compatible = "atmel,at91sam9x5-i2c"; 573 570 reg = <0xf8018000 0x100>; 574 - interrupts = <11 4 6>; 571 + interrupts = <11 IRQ_TYPE_LEVEL_HIGH 6>; 575 572 dmas = <&dma0 1 9>, 576 573 <&dma0 1 10>; 577 574 dma-names = "tx", "rx"; ··· 585 582 adc0: adc@f804c000 { 586 583 compatible = "atmel,at91sam9260-adc"; 587 584 reg = <0xf804c000 0x100>; 588 - interrupts = <19 4 0>; 585 + interrupts = <19 IRQ_TYPE_LEVEL_HIGH 0>; 589 586 atmel,adc-use-external; 590 587 atmel,adc-channels-used = <0xffff>; 591 588 atmel,adc-vref = <3300>; ··· 628 625 #size-cells = <0>; 629 626 compatible = "atmel,at91rm9200-spi"; 630 627 reg = <0xf0000000 0x100>; 631 - interrupts = <13 4 3>; 628 + interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>; 632 629 pinctrl-names = "default"; 633 630 pinctrl-0 = <&pinctrl_spi0>; 634 631 status = "disabled"; ··· 639 636 #size-cells = <0>; 640 637 compatible = "atmel,at91rm9200-spi"; 641 638 reg = <0xf0004000 0x100>; 642 - interrupts = <14 4 3>; 639 + interrupts = <14 IRQ_TYPE_LEVEL_HIGH 3>; 643 640 pinctrl-names = "default"; 644 641 pinctrl-0 = <&pinctrl_spi1>; 645 642 status = "disabled"; ··· 648 645 rtc@fffffeb0 { 649 646 compatible = "atmel,at91rm9200-rtc"; 650 647 reg = <0xfffffeb0 0x40>; 651 - interrupts = <1 4 7>; 648 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 652 649 status = "disabled"; 653 650 }; 654 651 }; ··· 667 664 atmel,nand-cmd-offset = <22>; 668 665 pinctrl-names = "default"; 669 666 pinctrl-0 = <&pinctrl_nand>; 670 - gpios = <&pioD 5 0 671 - &pioD 4 0 667 + gpios = <&pioD 5 GPIO_ACTIVE_HIGH 668 + &pioD 4 GPIO_ACTIVE_HIGH 672 669 0 673 670 >; 674 671 status = "disabled"; ··· 677 674 usb0: ohci@00600000 { 678 675 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 679 676 reg = <0x00600000 0x100000>; 680 - interrupts = <22 4 2>; 677 + interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>; 681 678 status = "disabled"; 682 679 }; 683 680 684 681 usb1: ehci@00700000 { 685 682 compatible = "atmel,at91sam9g45-ehci", "usb-ehci"; 686 683 reg = <0x00700000 0x100000>; 687 - interrupts = <22 4 2>; 684 + interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>; 688 685 status = "disabled"; 689 686 }; 690 687 }; 691 688 692 689 i2c@0 { 693 690 compatible = "i2c-gpio"; 694 - gpios = <&pioA 30 0 /* sda */ 695 - &pioA 31 0 /* scl */ 691 + gpios = <&pioA 30 GPIO_ACTIVE_HIGH /* sda */ 692 + &pioA 31 GPIO_ACTIVE_HIGH /* scl */ 696 693 >; 697 694 i2c-gpio,sda-open-drain; 698 695 i2c-gpio,scl-open-drain; ··· 706 703 707 704 i2c@1 { 708 705 compatible = "i2c-gpio"; 709 - gpios = <&pioC 0 0 /* sda */ 710 - &pioC 1 0 /* scl */ 706 + gpios = <&pioC 0 GPIO_ACTIVE_HIGH /* sda */ 707 + &pioC 1 GPIO_ACTIVE_HIGH /* scl */ 711 708 >; 712 709 i2c-gpio,sda-open-drain; 713 710 i2c-gpio,scl-open-drain; ··· 721 718 722 719 i2c@2 { 723 720 compatible = "i2c-gpio"; 724 - gpios = <&pioB 4 0 /* sda */ 725 - &pioB 5 0 /* scl */ 721 + gpios = <&pioB 4 GPIO_ACTIVE_HIGH /* sda */ 722 + &pioB 5 GPIO_ACTIVE_HIGH /* scl */ 726 723 >; 727 724 i2c-gpio,sda-open-drain; 728 725 i2c-gpio,scl-open-drain;
+4 -4
arch/arm/boot/dts/at91sam9x5cm.dtsi
··· 28 28 pinctrl@fffff400 { 29 29 1wire_cm { 30 30 pinctrl_1wire_cm: 1wire_cm-0 { 31 - atmel,pins = <1 18 0x0 0x2>; /* PB18 multidrive, conflicts with led */ 31 + atmel,pins = <AT91_PIOB 18 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>; /* PB18 multidrive, conflicts with led */ 32 32 }; 33 33 }; 34 34 }; ··· 75 75 76 76 pb18 { 77 77 label = "pb18"; 78 - gpios = <&pioB 18 1>; 78 + gpios = <&pioB 18 GPIO_ACTIVE_LOW>; 79 79 linux,default-trigger = "heartbeat"; 80 80 }; 81 81 82 82 pd21 { 83 83 label = "pd21"; 84 - gpios = <&pioD 21 0>; 84 + gpios = <&pioD 21 GPIO_ACTIVE_HIGH>; 85 85 }; 86 86 }; 87 87 88 88 1wire_cm { 89 89 compatible = "w1-gpio"; 90 - gpios = <&pioB 18 0>; 90 + gpios = <&pioB 18 GPIO_ACTIVE_HIGH>; 91 91 linux,open-drain; 92 92 pinctrl-names = "default"; 93 93 pinctrl-0 = <&pinctrl_1wire_cm>;
+7 -7
arch/arm/boot/dts/at91sam9x5ek.dtsi
··· 6 6 * 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 - /include/ "at91sam9x5cm.dtsi" 9 + #include "at91sam9x5cm.dtsi" 10 10 11 11 / { 12 12 model = "Atmel AT91SAM9X5-EK"; ··· 27 27 slot@0 { 28 28 reg = <0>; 29 29 bus-width = <4>; 30 - cd-gpios = <&pioD 15 0>; 30 + cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>; 31 31 }; 32 32 }; 33 33 ··· 40 40 slot@0 { 41 41 reg = <0>; 42 42 bus-width = <4>; 43 - cd-gpios = <&pioD 14 0>; 43 + cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; 44 44 }; 45 45 }; 46 46 ··· 60 60 mmc0 { 61 61 pinctrl_board_mmc0: mmc0-board { 62 62 atmel,pins = 63 - <3 15 0x0 0x5>; /* PD15 gpio CD pin pull up and deglitch */ 63 + <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD15 gpio CD pin pull up and deglitch */ 64 64 }; 65 65 }; 66 66 67 67 mmc1 { 68 68 pinctrl_board_mmc1: mmc1-board { 69 69 atmel,pins = 70 - <3 14 0x0 0x5>; /* PD14 gpio CD pin pull up and deglitch */ 70 + <AT91_PIOD 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD14 gpio CD pin pull up and deglitch */ 71 71 }; 72 72 }; 73 73 }; ··· 86 86 usb0: ohci@00600000 { 87 87 status = "okay"; 88 88 num-ports = <2>; 89 - atmel,vbus-gpio = <&pioD 19 1 90 - &pioD 20 1 89 + atmel,vbus-gpio = <&pioD 19 GPIO_ACTIVE_LOW 90 + &pioD 20 GPIO_ACTIVE_LOW 91 91 >; 92 92 }; 93 93
+3 -3
arch/arm/boot/dts/ethernut5.dts
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9260.dtsi" 9 + #include "at91sam9260.dtsi" 10 10 11 11 / { 12 12 model = "Ethernut 5"; ··· 40 40 }; 41 41 42 42 usb1: gadget@fffa4000 { 43 - atmel,vbus-gpio = <&pioC 5 0>; 43 + atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 44 44 status = "okay"; 45 45 }; 46 46 }; ··· 52 52 status = "okay"; 53 53 54 54 gpios = <0 55 - &pioC 14 0 55 + &pioC 14 GPIO_ACTIVE_HIGH 56 56 0 57 57 >; 58 58
+2 -2
arch/arm/boot/dts/evk-pro3.dts
··· 9 9 10 10 /dts-v1/; 11 11 12 - /include/ "ge863-pro3.dtsi" 12 + #include "ge863-pro3.dtsi" 13 13 14 14 / { 15 15 model = "Telit EVK-PRO3 for Telit GE863-PRO3"; ··· 31 31 }; 32 32 33 33 usb1: gadget@fffa4000 { 34 - atmel,vbus-gpio = <&pioC 5 0>; 34 + atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 35 35 status = "okay"; 36 36 }; 37 37
+1 -1
arch/arm/boot/dts/ge863-pro3.dtsi
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 10 - /include/ "at91sam9260.dtsi" 10 + #include "at91sam9260.dtsi" 11 11 12 12 / { 13 13 clocks {
+7 -7
arch/arm/boot/dts/kizbox.dts
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9g20.dtsi" 9 + #include "at91sam9g20.dtsi" 10 10 11 11 / { 12 12 ··· 94 94 95 95 led1g { 96 96 label = "led1:green"; 97 - gpios = <&pioB 0 1>; 97 + gpios = <&pioB 0 GPIO_ACTIVE_LOW>; 98 98 linux,default-trigger = "none"; 99 99 }; 100 100 101 101 led1r { 102 102 label = "led1:red"; 103 - gpios = <&pioB 1 1>; 103 + gpios = <&pioB 1 GPIO_ACTIVE_LOW>; 104 104 linux,default-trigger = "none"; 105 105 }; 106 106 107 107 led2g { 108 108 label = "led2:green"; 109 - gpios = <&pioB 2 1>; 109 + gpios = <&pioB 2 GPIO_ACTIVE_LOW>; 110 110 linux,default-trigger = "none"; 111 111 default-state = "on"; 112 112 }; 113 113 114 114 led2r { 115 115 label = "led2:red"; 116 - gpios = <&pioB 3 1>; 116 + gpios = <&pioB 3 GPIO_ACTIVE_LOW>; 117 117 linux,default-trigger = "none"; 118 118 }; 119 119 }; ··· 125 125 126 126 reset { 127 127 label = "reset"; 128 - gpios = <&pioB 30 1>; 128 + gpios = <&pioB 30 GPIO_ACTIVE_LOW>; 129 129 linux,code = <0x100>; 130 130 gpio-key,wakeup; 131 131 }; 132 132 133 133 mode { 134 134 label = "mode"; 135 - gpios = <&pioB 31 1>; 135 + gpios = <&pioB 31 GPIO_ACTIVE_LOW>; 136 136 linux,code = <0x101>; 137 137 gpio-key,wakeup; 138 138 };
+2 -2
arch/arm/boot/dts/mpa1600.dts
··· 6 6 * Licensed under GPLv2 only 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91rm9200.dtsi" 9 + #include "at91rm9200.dtsi" 10 10 11 11 / { 12 12 model = "Phontech MPA 1600"; ··· 62 62 63 63 monitor_mute { 64 64 label = "Monitor mute"; 65 - gpios = <&pioC 1 1>; 65 + gpios = <&pioC 1 GPIO_ACTIVE_LOW>; 66 66 linux,code = <113>; 67 67 }; 68 68 };
+11 -11
arch/arm/boot/dts/pm9g45.dts
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9g45.dtsi" 9 + #include "at91sam9g45.dtsi" 10 10 11 11 / { 12 12 model = "Ronetix pm9g45"; ··· 42 42 board { 43 43 pinctrl_board_nand: nand0-board { 44 44 atmel,pins = 45 - <3 3 0x0 0x1 /* PD3 gpio RDY pin pull_up*/ 46 - 2 14 0x0 0x1>; /* PC14 gpio enable pin pull_up */ 45 + <AT91_PIOD 3 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP /* PD3 gpio RDY pin pull_up*/ 46 + AT91_PIOC 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PC14 gpio enable pin pull_up */ 47 47 }; 48 48 }; 49 49 50 50 mmc { 51 51 pinctrl_board_mmc: mmc0-board { 52 52 atmel,pins = 53 - <3 6 0x0 0x5>; /* PD6 gpio CD pin pull_up and deglitch */ 53 + <AT91_PIOD 6 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD6 gpio CD pin pull_up and deglitch */ 54 54 }; 55 55 }; 56 56 }; ··· 64 64 slot@0 { 65 65 reg = <0>; 66 66 bus-width = <4>; 67 - cd-gpios = <&pioD 6 0>; 67 + cd-gpios = <&pioD 6 GPIO_ACTIVE_HIGH>; 68 68 }; 69 69 }; 70 70 ··· 81 81 nand-on-flash-bbt; 82 82 pinctrl-0 = <&pinctrl_board_nand>; 83 83 84 - gpios = <&pioD 3 0 85 - &pioC 14 0 84 + gpios = <&pioD 3 GPIO_ACTIVE_HIGH 85 + &pioC 14 GPIO_ACTIVE_HIGH 86 86 0 87 87 >; 88 88 ··· 134 134 135 135 led0 { 136 136 label = "led0"; 137 - gpios = <&pioD 0 1>; 137 + gpios = <&pioD 0 GPIO_ACTIVE_LOW>; 138 138 linux,default-trigger = "nand-disk"; 139 139 }; 140 140 141 141 led1 { 142 142 label = "led1"; 143 - gpios = <&pioD 31 0>; 143 + gpios = <&pioD 31 GPIO_ACTIVE_HIGH>; 144 144 linux,default-trigger = "heartbeat"; 145 145 }; 146 146 }; ··· 152 152 153 153 right { 154 154 label = "SW4"; 155 - gpios = <&pioE 7 1>; 155 + gpios = <&pioE 7 GPIO_ACTIVE_LOW>; 156 156 linux,code = <106>; 157 157 }; 158 158 159 159 up { 160 160 label = "SW3"; 161 - gpios = <&pioE 8 1>; 161 + gpios = <&pioE 8 GPIO_ACTIVE_LOW>; 162 162 linux,code = <103>; 163 163 }; 164 164 };
+300 -298
arch/arm/boot/dts/sama5d3.dtsi
··· 8 8 * Licensed under GPLv2 or later. 9 9 */ 10 10 11 - /include/ "skeleton.dtsi" 11 + #include "skeleton.dtsi" 12 + #include <dt-bindings/pinctrl/at91.h> 13 + #include <dt-bindings/interrupt-controller/irq.h> 14 + #include <dt-bindings/gpio/gpio.h> 12 15 13 16 / { 14 17 model = "Atmel SAMA5D3 family SoC"; ··· 62 59 mmc0: mmc@f0000000 { 63 60 compatible = "atmel,hsmci"; 64 61 reg = <0xf0000000 0x600>; 65 - interrupts = <21 4 0>; 62 + interrupts = <21 IRQ_TYPE_LEVEL_HIGH 0>; 66 63 dmas = <&dma0 2 0>; 67 64 dma-names = "rxtx"; 68 65 pinctrl-names = "default"; ··· 77 74 #size-cells = <0>; 78 75 compatible = "atmel,at91sam9x5-spi"; 79 76 reg = <0xf0004000 0x100>; 80 - interrupts = <24 4 3>; 77 + interrupts = <24 IRQ_TYPE_LEVEL_HIGH 3>; 81 78 pinctrl-names = "default"; 82 79 pinctrl-0 = <&pinctrl_spi0>; 83 80 status = "disabled"; ··· 86 83 ssc0: ssc@f0008000 { 87 84 compatible = "atmel,at91sam9g45-ssc"; 88 85 reg = <0xf0008000 0x4000>; 89 - interrupts = <38 4 4>; 86 + interrupts = <38 IRQ_TYPE_LEVEL_HIGH 4>; 90 87 pinctrl-names = "default"; 91 88 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; 92 89 status = "disabled"; ··· 95 92 can0: can@f000c000 { 96 93 compatible = "atmel,at91sam9x5-can"; 97 94 reg = <0xf000c000 0x300>; 98 - interrupts = <40 4 3>; 95 + interrupts = <40 IRQ_TYPE_LEVEL_HIGH 3>; 99 96 pinctrl-names = "default"; 100 97 pinctrl-0 = <&pinctrl_can0_rx_tx>; 101 98 status = "disabled"; ··· 104 101 tcb0: timer@f0010000 { 105 102 compatible = "atmel,at91sam9x5-tcb"; 106 103 reg = <0xf0010000 0x100>; 107 - interrupts = <26 4 0>; 104 + interrupts = <26 IRQ_TYPE_LEVEL_HIGH 0>; 108 105 }; 109 106 110 107 i2c0: i2c@f0014000 { 111 108 compatible = "atmel,at91sam9x5-i2c"; 112 109 reg = <0xf0014000 0x4000>; 113 - interrupts = <18 4 6>; 110 + interrupts = <18 IRQ_TYPE_LEVEL_HIGH 6>; 114 111 dmas = <&dma0 2 7>, 115 112 <&dma0 2 8>; 116 113 dma-names = "tx", "rx"; ··· 124 121 i2c1: i2c@f0018000 { 125 122 compatible = "atmel,at91sam9x5-i2c"; 126 123 reg = <0xf0018000 0x4000>; 127 - interrupts = <19 4 6>; 124 + interrupts = <19 IRQ_TYPE_LEVEL_HIGH 6>; 128 125 dmas = <&dma0 2 9>, 129 126 <&dma0 2 10>; 130 127 dma-names = "tx", "rx"; ··· 138 135 usart0: serial@f001c000 { 139 136 compatible = "atmel,at91sam9260-usart"; 140 137 reg = <0xf001c000 0x100>; 141 - interrupts = <12 4 5>; 138 + interrupts = <12 IRQ_TYPE_LEVEL_HIGH 5>; 142 139 pinctrl-names = "default"; 143 140 pinctrl-0 = <&pinctrl_usart0>; 144 141 status = "disabled"; ··· 147 144 usart1: serial@f0020000 { 148 145 compatible = "atmel,at91sam9260-usart"; 149 146 reg = <0xf0020000 0x100>; 150 - interrupts = <13 4 5>; 147 + interrupts = <13 IRQ_TYPE_LEVEL_HIGH 5>; 151 148 pinctrl-names = "default"; 152 149 pinctrl-0 = <&pinctrl_usart1>; 153 150 status = "disabled"; ··· 156 153 macb0: ethernet@f0028000 { 157 154 compatible = "cdns,pc302-gem", "cdns,gem"; 158 155 reg = <0xf0028000 0x100>; 159 - interrupts = <34 4 3>; 156 + interrupts = <34 IRQ_TYPE_LEVEL_HIGH 3>; 160 157 pinctrl-names = "default"; 161 158 pinctrl-0 = <&pinctrl_macb0_data_rgmii &pinctrl_macb0_signal_rgmii>; 162 159 status = "disabled"; ··· 165 162 isi: isi@f0034000 { 166 163 compatible = "atmel,at91sam9g45-isi"; 167 164 reg = <0xf0034000 0x4000>; 168 - interrupts = <37 4 5>; 165 + interrupts = <37 IRQ_TYPE_LEVEL_HIGH 5>; 169 166 status = "disabled"; 170 167 }; 171 168 172 169 mmc1: mmc@f8000000 { 173 170 compatible = "atmel,hsmci"; 174 171 reg = <0xf8000000 0x600>; 175 - interrupts = <22 4 0>; 172 + interrupts = <22 IRQ_TYPE_LEVEL_HIGH 0>; 176 173 dmas = <&dma1 2 0>; 177 174 dma-names = "rxtx"; 178 175 pinctrl-names = "default"; ··· 185 182 mmc2: mmc@f8004000 { 186 183 compatible = "atmel,hsmci"; 187 184 reg = <0xf8004000 0x600>; 188 - interrupts = <23 4 0>; 185 + interrupts = <23 IRQ_TYPE_LEVEL_HIGH 0>; 189 186 dmas = <&dma1 2 1>; 190 187 dma-names = "rxtx"; 191 188 pinctrl-names = "default"; ··· 200 197 #size-cells = <0>; 201 198 compatible = "atmel,at91sam9x5-spi"; 202 199 reg = <0xf8008000 0x100>; 203 - interrupts = <25 4 3>; 200 + interrupts = <25 IRQ_TYPE_LEVEL_HIGH 3>; 204 201 pinctrl-names = "default"; 205 202 pinctrl-0 = <&pinctrl_spi1>; 206 203 status = "disabled"; ··· 209 206 ssc1: ssc@f800c000 { 210 207 compatible = "atmel,at91sam9g45-ssc"; 211 208 reg = <0xf800c000 0x4000>; 212 - interrupts = <39 4 4>; 209 + interrupts = <39 IRQ_TYPE_LEVEL_HIGH 4>; 213 210 pinctrl-names = "default"; 214 211 pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>; 215 212 status = "disabled"; ··· 218 215 can1: can@f8010000 { 219 216 compatible = "atmel,at91sam9x5-can"; 220 217 reg = <0xf8010000 0x300>; 221 - interrupts = <41 4 3>; 218 + interrupts = <41 IRQ_TYPE_LEVEL_HIGH 3>; 222 219 pinctrl-names = "default"; 223 220 pinctrl-0 = <&pinctrl_can1_rx_tx>; 224 221 }; ··· 226 223 tcb1: timer@f8014000 { 227 224 compatible = "atmel,at91sam9x5-tcb"; 228 225 reg = <0xf8014000 0x100>; 229 - interrupts = <27 4 0>; 226 + interrupts = <27 IRQ_TYPE_LEVEL_HIGH 0>; 230 227 }; 231 228 232 229 adc0: adc@f8018000 { 233 230 compatible = "atmel,at91sam9260-adc"; 234 231 reg = <0xf8018000 0x100>; 235 - interrupts = <29 4 5>; 232 + interrupts = <29 IRQ_TYPE_LEVEL_HIGH 5>; 236 233 pinctrl-names = "default"; 237 234 pinctrl-0 = < 238 235 &pinctrl_adc0_adtrg ··· 286 283 tsadcc: tsadcc@f8018000 { 287 284 compatible = "atmel,at91sam9x5-tsadcc"; 288 285 reg = <0xf8018000 0x4000>; 289 - interrupts = <29 4 5>; 286 + interrupts = <29 IRQ_TYPE_LEVEL_HIGH 5>; 290 287 atmel,tsadcc_clock = <300000>; 291 288 atmel,filtering_average = <0x03>; 292 289 atmel,pendet_debounce = <0x08>; ··· 298 295 i2c2: i2c@f801c000 { 299 296 compatible = "atmel,at91sam9x5-i2c"; 300 297 reg = <0xf801c000 0x4000>; 301 - interrupts = <20 4 6>; 298 + interrupts = <20 IRQ_TYPE_LEVEL_HIGH 6>; 302 299 dmas = <&dma1 2 11>, 303 300 <&dma1 2 12>; 304 301 dma-names = "tx", "rx"; ··· 310 307 usart2: serial@f8020000 { 311 308 compatible = "atmel,at91sam9260-usart"; 312 309 reg = <0xf8020000 0x100>; 313 - interrupts = <14 4 5>; 310 + interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>; 314 311 pinctrl-names = "default"; 315 312 pinctrl-0 = <&pinctrl_usart2>; 316 313 status = "disabled"; ··· 319 316 usart3: serial@f8024000 { 320 317 compatible = "atmel,at91sam9260-usart"; 321 318 reg = <0xf8024000 0x100>; 322 - interrupts = <15 4 5>; 319 + interrupts = <15 IRQ_TYPE_LEVEL_HIGH 5>; 323 320 pinctrl-names = "default"; 324 321 pinctrl-0 = <&pinctrl_usart3>; 325 322 status = "disabled"; ··· 328 325 macb1: ethernet@f802c000 { 329 326 compatible = "cdns,at32ap7000-macb", "cdns,macb"; 330 327 reg = <0xf802c000 0x100>; 331 - interrupts = <35 4 3>; 328 + interrupts = <35 IRQ_TYPE_LEVEL_HIGH 3>; 332 329 pinctrl-names = "default"; 333 330 pinctrl-0 = <&pinctrl_macb1_rmii>; 334 331 status = "disabled"; ··· 337 334 sha@f8034000 { 338 335 compatible = "atmel,sam9g46-sha"; 339 336 reg = <0xf8034000 0x100>; 340 - interrupts = <42 4 0>; 337 + interrupts = <42 IRQ_TYPE_LEVEL_HIGH 0>; 341 338 }; 342 339 343 340 aes@f8038000 { ··· 349 346 tdes@f803c000 { 350 347 compatible = "atmel,sam9g46-tdes"; 351 348 reg = <0xf803c000 0x100>; 352 - interrupts = <44 4 0>; 349 + interrupts = <44 IRQ_TYPE_LEVEL_HIGH 0>; 353 350 }; 354 351 355 352 dma0: dma-controller@ffffe600 { 356 353 compatible = "atmel,at91sam9g45-dma"; 357 354 reg = <0xffffe600 0x200>; 358 - interrupts = <30 4 0>; 355 + interrupts = <30 IRQ_TYPE_LEVEL_HIGH 0>; 359 356 #dma-cells = <2>; 360 357 }; 361 358 362 359 dma1: dma-controller@ffffe800 { 363 360 compatible = "atmel,at91sam9g45-dma"; 364 361 reg = <0xffffe800 0x200>; 365 - interrupts = <31 4 0>; 362 + interrupts = <31 IRQ_TYPE_LEVEL_HIGH 0>; 366 363 #dma-cells = <2>; 367 364 }; 368 365 ··· 374 371 dbgu: serial@ffffee00 { 375 372 compatible = "atmel,at91sam9260-usart"; 376 373 reg = <0xffffee00 0x200>; 377 - interrupts = <2 4 7>; 374 + interrupts = <2 IRQ_TYPE_LEVEL_HIGH 7>; 378 375 pinctrl-names = "default"; 379 376 pinctrl-0 = <&pinctrl_dbgu>; 380 377 status = "disabled"; ··· 406 403 adc0 { 407 404 pinctrl_adc0_adtrg: adc0_adtrg { 408 405 atmel,pins = 409 - <3 19 0x1 0x0>; /* PD19 periph A ADTRG */ 406 + <AT91_PIOD 19 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD19 periph A ADTRG */ 410 407 }; 411 408 pinctrl_adc0_ad0: adc0_ad0 { 412 409 atmel,pins = 413 - <3 20 0x1 0x0>; /* PD20 periph A AD0 */ 410 + <AT91_PIOD 20 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD20 periph A AD0 */ 414 411 }; 415 412 pinctrl_adc0_ad1: adc0_ad1 { 416 413 atmel,pins = 417 - <3 21 0x1 0x0>; /* PD21 periph A AD1 */ 414 + <AT91_PIOD 21 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD21 periph A AD1 */ 418 415 }; 419 416 pinctrl_adc0_ad2: adc0_ad2 { 420 417 atmel,pins = 421 - <3 22 0x1 0x0>; /* PD22 periph A AD2 */ 418 + <AT91_PIOD 22 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD22 periph A AD2 */ 422 419 }; 423 420 pinctrl_adc0_ad3: adc0_ad3 { 424 421 atmel,pins = 425 - <3 23 0x1 0x0>; /* PD23 periph A AD3 */ 422 + <AT91_PIOD 23 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD23 periph A AD3 */ 426 423 }; 427 424 pinctrl_adc0_ad4: adc0_ad4 { 428 425 atmel,pins = 429 - <3 24 0x1 0x0>; /* PD24 periph A AD4 */ 426 + <AT91_PIOD 24 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD24 periph A AD4 */ 430 427 }; 431 428 pinctrl_adc0_ad5: adc0_ad5 { 432 429 atmel,pins = 433 - <3 25 0x1 0x0>; /* PD25 periph A AD5 */ 430 + <AT91_PIOD 25 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD25 periph A AD5 */ 434 431 }; 435 432 pinctrl_adc0_ad6: adc0_ad6 { 436 433 atmel,pins = 437 - <3 26 0x1 0x0>; /* PD26 periph A AD6 */ 434 + <AT91_PIOD 26 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD26 periph A AD6 */ 438 435 }; 439 436 pinctrl_adc0_ad7: adc0_ad7 { 440 437 atmel,pins = 441 - <3 27 0x1 0x0>; /* PD27 periph A AD7 */ 438 + <AT91_PIOD 27 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD27 periph A AD7 */ 442 439 }; 443 440 pinctrl_adc0_ad8: adc0_ad8 { 444 441 atmel,pins = 445 - <3 28 0x1 0x0>; /* PD28 periph A AD8 */ 442 + <AT91_PIOD 28 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD28 periph A AD8 */ 446 443 }; 447 444 pinctrl_adc0_ad9: adc0_ad9 { 448 445 atmel,pins = 449 - <3 29 0x1 0x0>; /* PD29 periph A AD9 */ 446 + <AT91_PIOD 29 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD29 periph A AD9 */ 450 447 }; 451 448 pinctrl_adc0_ad10: adc0_ad10 { 452 449 atmel,pins = 453 - <3 30 0x1 0x0>; /* PD30 periph A AD10, conflicts with PCK0 */ 450 + <AT91_PIOD 30 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD30 periph A AD10, conflicts with PCK0 */ 454 451 }; 455 452 pinctrl_adc0_ad11: adc0_ad11 { 456 453 atmel,pins = 457 - <3 31 0x1 0x0>; /* PD31 periph A AD11, conflicts with PCK1 */ 454 + <AT91_PIOD 31 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD31 periph A AD11, conflicts with PCK1 */ 458 455 }; 459 456 }; 460 457 461 458 can0 { 462 459 pinctrl_can0_rx_tx: can0_rx_tx { 463 460 atmel,pins = 464 - <3 14 0x3 0x0 /* PD14 periph C RX, conflicts with SCK0, SPI0_NPCS1 */ 465 - 3 15 0x3 0x0>; /* PD15 periph C TX, conflicts with CTS0, SPI0_NPCS2 */ 461 + <AT91_PIOD 14 AT91_PERIPH_C AT91_PINCTRL_NONE /* PD14 periph C RX, conflicts with SCK0, SPI0_NPCS1 */ 462 + AT91_PIOD 15 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PD15 periph C TX, conflicts with CTS0, SPI0_NPCS2 */ 466 463 }; 467 464 }; 468 465 469 466 can1 { 470 467 pinctrl_can1_rx_tx: can1_rx_tx { 471 468 atmel,pins = 472 - <1 14 0x2 0x0 /* PB14 periph B RX, conflicts with GCRS */ 473 - 1 15 0x2 0x0>; /* PB15 periph B TX, conflicts with GCOL */ 469 + <AT91_PIOB 14 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB14 periph B RX, conflicts with GCRS */ 470 + AT91_PIOB 15 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB15 periph B TX, conflicts with GCOL */ 474 471 }; 475 472 }; 476 473 477 474 dbgu { 478 475 pinctrl_dbgu: dbgu-0 { 479 476 atmel,pins = 480 - <1 30 0x1 0x0 /* PB30 periph A */ 481 - 1 31 0x1 0x1>; /* PB31 periph A with pullup */ 477 + <AT91_PIOB 30 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB30 periph A */ 478 + AT91_PIOB 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PB31 periph A with pullup */ 482 479 }; 483 480 }; 484 481 485 482 i2c0 { 486 483 pinctrl_i2c0: i2c0-0 { 487 484 atmel,pins = 488 - <0 30 0x1 0x0 /* PA30 periph A TWD0 pin, conflicts with URXD1, ISI_VSYNC */ 489 - 0 31 0x1 0x0>; /* PA31 periph A TWCK0 pin, conflicts with UTXD1, ISI_HSYNC */ 485 + <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA30 periph A TWD0 pin, conflicts with URXD1, ISI_VSYNC */ 486 + AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA31 periph A TWCK0 pin, conflicts with UTXD1, ISI_HSYNC */ 490 487 }; 491 488 }; 492 489 493 490 i2c1 { 494 491 pinctrl_i2c1: i2c1-0 { 495 492 atmel,pins = 496 - <2 26 0x2 0x0 /* PC26 periph B TWD1 pin, conflicts with SPI1_NPCS1, ISI_D11 */ 497 - 2 27 0x2 0x0>; /* PC27 periph B TWCK1 pin, conflicts with SPI1_NPCS2, ISI_D10 */ 493 + <AT91_PIOC 26 AT91_PERIPH_B AT91_PINCTRL_NONE /* PC26 periph B TWD1 pin, conflicts with SPI1_NPCS1, ISI_D11 */ 494 + AT91_PIOC 27 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC27 periph B TWCK1 pin, conflicts with SPI1_NPCS2, ISI_D10 */ 498 495 }; 499 496 }; 500 497 501 498 isi { 502 499 pinctrl_isi: isi-0 { 503 500 atmel,pins = 504 - <0 16 0x3 0x0 /* PA16 periph C ISI_D0, conflicts with LCDDAT16 */ 505 - 0 17 0x3 0x0 /* PA17 periph C ISI_D1, conflicts with LCDDAT17 */ 506 - 0 18 0x3 0x0 /* PA18 periph C ISI_D2, conflicts with LCDDAT18, TWD2 */ 507 - 0 19 0x3 0x0 /* PA19 periph C ISI_D3, conflicts with LCDDAT19, TWCK2 */ 508 - 0 20 0x3 0x0 /* PA20 periph C ISI_D4, conflicts with LCDDAT20, PWMH0 */ 509 - 0 21 0x3 0x0 /* PA21 periph C ISI_D5, conflicts with LCDDAT21, PWML0 */ 510 - 0 22 0x3 0x0 /* PA22 periph C ISI_D6, conflicts with LCDDAT22, PWMH1 */ 511 - 0 23 0x3 0x0 /* PA23 periph C ISI_D7, conflicts with LCDDAT23, PWML1 */ 512 - 2 30 0x3 0x0 /* PC30 periph C ISI_PCK, conflicts with UTXD0 */ 513 - 0 31 0x3 0x0 /* PA31 periph C ISI_HSYNC, conflicts with TWCK0, UTXD1 */ 514 - 0 30 0x3 0x0 /* PA30 periph C ISI_VSYNC, conflicts with TWD0, URXD1 */ 515 - 2 29 0x3 0x0 /* PC29 periph C ISI_PD8, conflicts with URXD0, PWMFI2 */ 516 - 2 28 0x3 0x0>; /* PC28 periph C ISI_PD9, conflicts with SPI1_NPCS3, PWMFI0 */ 501 + <AT91_PIOA 16 AT91_PERIPH_C AT91_PINCTRL_NONE /* PA16 periph C ISI_D0, conflicts with LCDDAT16 */ 502 + AT91_PIOA 17 AT91_PERIPH_C AT91_PINCTRL_NONE /* PA17 periph C ISI_D1, conflicts with LCDDAT17 */ 503 + AT91_PIOA 18 AT91_PERIPH_C AT91_PINCTRL_NONE /* PA18 periph C ISI_D2, conflicts with LCDDAT18, TWD2 */ 504 + AT91_PIOA 19 AT91_PERIPH_C AT91_PINCTRL_NONE /* PA19 periph C ISI_D3, conflicts with LCDDAT19, TWCK2 */ 505 + AT91_PIOA 20 AT91_PERIPH_C AT91_PINCTRL_NONE /* PA20 periph C ISI_D4, conflicts with LCDDAT20, PWMH0 */ 506 + AT91_PIOA 21 AT91_PERIPH_C AT91_PINCTRL_NONE /* PA21 periph C ISI_D5, conflicts with LCDDAT21, PWML0 */ 507 + AT91_PIOA 22 AT91_PERIPH_C AT91_PINCTRL_NONE /* PA22 periph C ISI_D6, conflicts with LCDDAT22, PWMH1 */ 508 + AT91_PIOA 23 AT91_PERIPH_C AT91_PINCTRL_NONE /* PA23 periph C ISI_D7, conflicts with LCDDAT23, PWML1 */ 509 + AT91_PIOC 30 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC30 periph C ISI_PCK, conflicts with UTXD0 */ 510 + AT91_PIOA 31 AT91_PERIPH_C AT91_PINCTRL_NONE /* PA31 periph C ISI_HSYNC, conflicts with TWCK0, UTXD1 */ 511 + AT91_PIOA 30 AT91_PERIPH_C AT91_PINCTRL_NONE /* PA30 periph C ISI_VSYNC, conflicts with TWD0, URXD1 */ 512 + AT91_PIOC 29 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC29 periph C ISI_PD8, conflicts with URXD0, PWMFI2 */ 513 + AT91_PIOC 28 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PC28 periph C ISI_PD9, conflicts with SPI1_NPCS3, PWMFI0 */ 517 514 }; 518 515 pinctrl_isi_pck_as_mck: isi_pck_as_mck-0 { 519 516 atmel,pins = 520 - <3 31 0x2 0x0>; /* PD31 periph B ISI_MCK */ 517 + <AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD31 periph B ISI_MCK */ 521 518 }; 522 519 }; 523 520 524 521 lcd { 525 522 pinctrl_lcd: lcd-0 { 526 523 atmel,pins = 527 - <0 24 0x1 0x0 /* PA24 periph A LCDPWM */ 528 - 0 26 0x1 0x0 /* PA26 periph A LCDVSYNC */ 529 - 0 27 0x1 0x0 /* PA27 periph A LCDHSYNC */ 530 - 0 25 0x1 0x0 /* PA25 periph A LCDDISP */ 531 - 0 29 0x1 0x0 /* PA29 periph A LCDDEN */ 532 - 0 28 0x1 0x0 /* PA28 periph A LCDPCK */ 533 - 0 0 0x1 0x0 /* PA0 periph A LCDD0 pin */ 534 - 0 1 0x1 0x0 /* PA1 periph A LCDD1 pin */ 535 - 0 2 0x1 0x0 /* PA2 periph A LCDD2 pin */ 536 - 0 3 0x1 0x0 /* PA3 periph A LCDD3 pin */ 537 - 0 4 0x1 0x0 /* PA4 periph A LCDD4 pin */ 538 - 0 5 0x1 0x0 /* PA5 periph A LCDD5 pin */ 539 - 0 6 0x1 0x0 /* PA6 periph A LCDD6 pin */ 540 - 0 7 0x1 0x0 /* PA7 periph A LCDD7 pin */ 541 - 0 8 0x1 0x0 /* PA8 periph A LCDD8 pin */ 542 - 0 9 0x1 0x0 /* PA9 periph A LCDD9 pin */ 543 - 0 10 0x1 0x0 /* PA10 periph A LCDD10 pin */ 544 - 0 11 0x1 0x0 /* PA11 periph A LCDD11 pin */ 545 - 0 12 0x1 0x0 /* PA12 periph A LCDD12 pin */ 546 - 0 13 0x1 0x0 /* PA13 periph A LCDD13 pin */ 547 - 0 14 0x1 0x0 /* PA14 periph A LCDD14 pin */ 548 - 0 15 0x1 0x0 /* PA15 periph A LCDD15 pin */ 549 - 2 14 0x3 0x0 /* PC14 periph C LCDD16 pin */ 550 - 2 13 0x3 0x0 /* PC13 periph C LCDD17 pin */ 551 - 2 12 0x3 0x0 /* PC12 periph C LCDD18 pin */ 552 - 2 11 0x3 0x0 /* PC11 periph C LCDD19 pin */ 553 - 2 10 0x3 0x0 /* PC10 periph C LCDD20 pin */ 554 - 2 15 0x3 0x0 /* PC15 periph C LCDD21 pin */ 555 - 4 27 0x3 0x0 /* PE27 periph C LCDD22 pin */ 556 - 4 28 0x3 0x0>; /* PE28 periph C LCDD23 pin */ 524 + <AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA24 periph A LCDPWM */ 525 + AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA26 periph A LCDVSYNC */ 526 + AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA27 periph A LCDHSYNC */ 527 + AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA25 periph A LCDDISP */ 528 + AT91_PIOA 29 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA29 periph A LCDDEN */ 529 + AT91_PIOA 28 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA28 periph A LCDPCK */ 530 + AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA0 periph A LCDD0 pin */ 531 + AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA1 periph A LCDD1 pin */ 532 + AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA2 periph A LCDD2 pin */ 533 + AT91_PIOA 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA3 periph A LCDD3 pin */ 534 + AT91_PIOA 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA4 periph A LCDD4 pin */ 535 + AT91_PIOA 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA5 periph A LCDD5 pin */ 536 + AT91_PIOA 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA6 periph A LCDD6 pin */ 537 + AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA7 periph A LCDD7 pin */ 538 + AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA8 periph A LCDD8 pin */ 539 + AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA9 periph A LCDD9 pin */ 540 + AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA10 periph A LCDD10 pin */ 541 + AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA11 periph A LCDD11 pin */ 542 + AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA12 periph A LCDD12 pin */ 543 + AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA13 periph A LCDD13 pin */ 544 + AT91_PIOA 14 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA14 periph A LCDD14 pin */ 545 + AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA15 periph A LCDD15 pin */ 546 + AT91_PIOC 14 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC14 periph C LCDD16 pin */ 547 + AT91_PIOC 13 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC13 periph C LCDD17 pin */ 548 + AT91_PIOC 12 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC12 periph C LCDD18 pin */ 549 + AT91_PIOC 11 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC11 periph C LCDD19 pin */ 550 + AT91_PIOC 10 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC10 periph C LCDD20 pin */ 551 + AT91_PIOC 15 AT91_PERIPH_C AT91_PINCTRL_NONE /* PC15 periph C LCDD21 pin */ 552 + AT91_PIOE 27 AT91_PERIPH_C AT91_PINCTRL_NONE /* PE27 periph C LCDD22 pin */ 553 + AT91_PIOE 28 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PE28 periph C LCDD23 pin */ 557 554 }; 558 555 }; 559 556 560 557 macb0 { 561 558 pinctrl_macb0_data_rgmii: macb0_data_rgmii { 562 559 atmel,pins = 563 - <1 0 0x1 0x0 /* PB0 periph A GTX0, conflicts with PWMH0 */ 564 - 1 1 0x1 0x0 /* PB1 periph A GTX1, conflicts with PWML0 */ 565 - 1 2 0x1 0x0 /* PB2 periph A GTX2, conflicts with TK1 */ 566 - 1 3 0x1 0x0 /* PB3 periph A GTX3, conflicts with TF1 */ 567 - 1 4 0x1 0x0 /* PB4 periph A GRX0, conflicts with PWMH1 */ 568 - 1 5 0x1 0x0 /* PB5 periph A GRX1, conflicts with PWML1 */ 569 - 1 6 0x1 0x0 /* PB6 periph A GRX2, conflicts with TD1 */ 570 - 1 7 0x1 0x0>; /* PB7 periph A GRX3, conflicts with RK1 */ 560 + <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB0 periph A GTX0, conflicts with PWMH0 */ 561 + AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB1 periph A GTX1, conflicts with PWML0 */ 562 + AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB2 periph A GTX2, conflicts with TK1 */ 563 + AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB3 periph A GTX3, conflicts with TF1 */ 564 + AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A GRX0, conflicts with PWMH1 */ 565 + AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB5 periph A GRX1, conflicts with PWML1 */ 566 + AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A GRX2, conflicts with TD1 */ 567 + AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB7 periph A GRX3, conflicts with RK1 */ 571 568 }; 572 569 pinctrl_macb0_data_gmii: macb0_data_gmii { 573 570 atmel,pins = 574 - <1 19 0x2 0x0 /* PB19 periph B GTX4, conflicts with MCI1_CDA */ 575 - 1 20 0x2 0x0 /* PB20 periph B GTX5, conflicts with MCI1_DA0 */ 576 - 1 21 0x2 0x0 /* PB21 periph B GTX6, conflicts with MCI1_DA1 */ 577 - 1 22 0x2 0x0 /* PB22 periph B GTX7, conflicts with MCI1_DA2 */ 578 - 1 23 0x2 0x0 /* PB23 periph B GRX4, conflicts with MCI1_DA3 */ 579 - 1 24 0x2 0x0 /* PB24 periph B GRX5, conflicts with MCI1_CK */ 580 - 1 25 0x2 0x0 /* PB25 periph B GRX6, conflicts with SCK1 */ 581 - 1 26 0x2 0x0>; /* PB26 periph B GRX7, conflicts with CTS1 */ 571 + <AT91_PIOB 19 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB19 periph B GTX4, conflicts with MCI1_CDA */ 572 + AT91_PIOB 20 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB20 periph B GTX5, conflicts with MCI1_DA0 */ 573 + AT91_PIOB 21 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB21 periph B GTX6, conflicts with MCI1_DA1 */ 574 + AT91_PIOB 22 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB22 periph B GTX7, conflicts with MCI1_DA2 */ 575 + AT91_PIOB 23 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB23 periph B GRX4, conflicts with MCI1_DA3 */ 576 + AT91_PIOB 24 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB24 periph B GRX5, conflicts with MCI1_CK */ 577 + AT91_PIOB 25 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB25 periph B GRX6, conflicts with SCK1 */ 578 + AT91_PIOB 26 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB26 periph B GRX7, conflicts with CTS1 */ 582 579 }; 583 580 pinctrl_macb0_signal_rgmii: macb0_signal_rgmii { 584 581 atmel,pins = 585 - <1 8 0x1 0x0 /* PB8 periph A GTXCK, conflicts with PWMH2 */ 586 - 1 9 0x1 0x0 /* PB9 periph A GTXEN, conflicts with PWML2 */ 587 - 1 11 0x1 0x0 /* PB11 periph A GRXCK, conflicts with RD1 */ 588 - 1 13 0x1 0x0 /* PB13 periph A GRXER, conflicts with PWML3 */ 589 - 1 16 0x1 0x0 /* PB16 periph A GMDC */ 590 - 1 17 0x1 0x0 /* PB17 periph A GMDIO */ 591 - 1 18 0x1 0x0>; /* PB18 periph A G125CK */ 582 + <AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB8 periph A GTXCK, conflicts with PWMH2 */ 583 + AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A GTXEN, conflicts with PWML2 */ 584 + AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB11 periph A GRXCK, conflicts with RD1 */ 585 + AT91_PIOB 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB13 periph A GRXER, conflicts with PWML3 */ 586 + AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB16 periph A GMDC */ 587 + AT91_PIOB 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB17 periph A GMDIO */ 588 + AT91_PIOB 18 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB18 periph A G125CK */ 592 589 }; 593 590 pinctrl_macb0_signal_gmii: macb0_signal_gmii { 594 591 atmel,pins = 595 - <1 9 0x1 0x0 /* PB9 periph A GTXEN, conflicts with PWML2 */ 596 - 1 10 0x1 0x0 /* PB10 periph A GTXER, conflicts with RF1 */ 597 - 1 11 0x1 0x0 /* PB11 periph A GRXCK, conflicts with RD1 */ 598 - 1 12 0x1 0x0 /* PB12 periph A GRXDV, conflicts with PWMH3 */ 599 - 1 13 0x1 0x0 /* PB13 periph A GRXER, conflicts with PWML3 */ 600 - 1 14 0x1 0x0 /* PB14 periph A GCRS, conflicts with CANRX1 */ 601 - 1 15 0x1 0x0 /* PB15 periph A GCOL, conflicts with CANTX1 */ 602 - 1 16 0x1 0x0 /* PB16 periph A GMDC */ 603 - 1 17 0x1 0x0 /* PB17 periph A GMDIO */ 604 - 1 27 0x2 0x0>; /* PB27 periph B G125CKO */ 592 + <AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A GTXEN, conflicts with PWML2 */ 593 + AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB10 periph A GTXER, conflicts with RF1 */ 594 + AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB11 periph A GRXCK, conflicts with RD1 */ 595 + AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB12 periph A GRXDV, conflicts with PWMH3 */ 596 + AT91_PIOB 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB13 periph A GRXER, conflicts with PWML3 */ 597 + AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB14 periph A GCRS, conflicts with CANRX1 */ 598 + AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB15 periph A GCOL, conflicts with CANTX1 */ 599 + AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB16 periph A GMDC */ 600 + AT91_PIOB 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB17 periph A GMDIO */ 601 + AT91_PIOB 27 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB27 periph B G125CKO */ 605 602 }; 606 603 607 604 }; ··· 609 606 macb1 { 610 607 pinctrl_macb1_rmii: macb1_rmii-0 { 611 608 atmel,pins = 612 - <2 0 0x1 0x0 /* PC0 periph A ETX0, conflicts with TIOA3 */ 613 - 2 1 0x1 0x0 /* PC1 periph A ETX1, conflicts with TIOB3 */ 614 - 2 2 0x1 0x0 /* PC2 periph A ERX0, conflicts with TCLK3 */ 615 - 2 3 0x1 0x0 /* PC3 periph A ERX1, conflicts with TIOA4 */ 616 - 2 4 0x1 0x0 /* PC4 periph A ETXEN, conflicts with TIOB4 */ 617 - 2 5 0x1 0x0 /* PC5 periph A ECRSDV,conflicts with TCLK4 */ 618 - 2 6 0x1 0x0 /* PC6 periph A ERXER, conflicts with TIOA5 */ 619 - 2 7 0x1 0x0 /* PC7 periph A EREFCK, conflicts with TIOB5 */ 620 - 2 8 0x1 0x0 /* PC8 periph A EMDC, conflicts with TCLK5 */ 621 - 2 9 0x1 0x0>; /* PC9 periph A EMDIO */ 609 + <AT91_PIOC 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC0 periph A ETX0, conflicts with TIOA3 */ 610 + AT91_PIOC 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC1 periph A ETX1, conflicts with TIOB3 */ 611 + AT91_PIOC 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC2 periph A ERX0, conflicts with TCLK3 */ 612 + AT91_PIOC 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC3 periph A ERX1, conflicts with TIOA4 */ 613 + AT91_PIOC 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC4 periph A ETXEN, conflicts with TIOB4 */ 614 + AT91_PIOC 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC5 periph A ECRSDV,conflicts with TCLK4 */ 615 + AT91_PIOC 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC6 periph A ERXER, conflicts with TIOA5 */ 616 + AT91_PIOC 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC7 periph A EREFCK, conflicts with TIOB5 */ 617 + AT91_PIOC 8 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC8 periph A EMDC, conflicts with TCLK5 */ 618 + AT91_PIOC 9 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PC9 periph A EMDIO */ 622 619 }; 623 620 }; 624 621 625 622 mmc0 { 626 623 pinctrl_mmc0_clk_cmd_dat0: mmc0_clk_cmd_dat0 { 627 624 atmel,pins = 628 - <3 9 0x1 0x0 /* PD9 periph A MCI0_CK */ 629 - 3 0 0x1 0x1 /* PD0 periph A MCI0_CDA with pullup */ 630 - 3 1 0x1 0x1>; /* PD1 periph A MCI0_DA0 with pullup */ 625 + <AT91_PIOD 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD9 periph A MCI0_CK */ 626 + AT91_PIOD 0 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PD0 periph A MCI0_CDA with pullup */ 627 + AT91_PIOD 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PD1 periph A MCI0_DA0 with pullup */ 631 628 }; 632 629 pinctrl_mmc0_dat1_3: mmc0_dat1_3 { 633 630 atmel,pins = 634 - <3 2 0x1 0x1 /* PD2 periph A MCI0_DA1 with pullup */ 635 - 3 3 0x1 0x1 /* PD3 periph A MCI0_DA2 with pullup */ 636 - 3 4 0x1 0x1>; /* PD4 periph A MCI0_DA3 with pullup */ 631 + <AT91_PIOD 2 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PD2 periph A MCI0_DA1 with pullup */ 632 + AT91_PIOD 3 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PD3 periph A MCI0_DA2 with pullup */ 633 + AT91_PIOD 4 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PD4 periph A MCI0_DA3 with pullup */ 637 634 }; 638 635 pinctrl_mmc0_dat4_7: mmc0_dat4_7 { 639 636 atmel,pins = 640 - <3 5 0x1 0x1 /* PD5 periph A MCI0_DA4 with pullup, conflicts with TIOA0, PWMH2 */ 641 - 3 6 0x1 0x1 /* PD6 periph A MCI0_DA5 with pullup, conflicts with TIOB0, PWML2 */ 642 - 3 7 0x1 0x1 /* PD7 periph A MCI0_DA6 with pullup, conlicts with TCLK0, PWMH3 */ 643 - 3 8 0x1 0x1>; /* PD8 periph A MCI0_DA7 with pullup, conflicts with PWML3 */ 637 + <AT91_PIOD 5 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PD5 periph A MCI0_DA4 with pullup, conflicts with TIOA0, PWMH2 */ 638 + AT91_PIOD 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PD6 periph A MCI0_DA5 with pullup, conflicts with TIOB0, PWML2 */ 639 + AT91_PIOD 7 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PD7 periph A MCI0_DA6 with pullup, conlicts with TCLK0, PWMH3 */ 640 + AT91_PIOD 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PD8 periph A MCI0_DA7 with pullup, conflicts with PWML3 */ 644 641 }; 645 642 }; 646 643 647 644 mmc1 { 648 645 pinctrl_mmc1_clk_cmd_dat0: mmc1_clk_cmd_dat0 { 649 646 atmel,pins = 650 - <1 24 0x1 0x0 /* PB24 periph A MCI1_CK, conflicts with GRX5 */ 651 - 1 19 0x1 0x1 /* PB19 periph A MCI1_CDA with pullup, conflicts with GTX4 */ 652 - 1 20 0x1 0x1>; /* PB20 periph A MCI1_DA0 with pullup, conflicts with GTX5 */ 647 + <AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB24 periph A MCI1_CK, conflicts with GRX5 */ 648 + AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB19 periph A MCI1_CDA with pullup, conflicts with GTX4 */ 649 + AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PB20 periph A MCI1_DA0 with pullup, conflicts with GTX5 */ 653 650 }; 654 651 pinctrl_mmc1_dat1_3: mmc1_dat1_3 { 655 652 atmel,pins = 656 - <1 21 0x1 0x1 /* PB21 periph A MCI1_DA1 with pullup, conflicts with GTX6 */ 657 - 1 22 0x1 0x1 /* PB22 periph A MCI1_DA2 with pullup, conflicts with GTX7 */ 658 - 1 23 0x1 0x1>; /* PB23 periph A MCI1_DA3 with pullup, conflicts with GRX4 */ 653 + <AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB21 periph A MCI1_DA1 with pullup, conflicts with GTX6 */ 654 + AT91_PIOB 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PB22 periph A MCI1_DA2 with pullup, conflicts with GTX7 */ 655 + AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PB23 periph A MCI1_DA3 with pullup, conflicts with GRX4 */ 659 656 }; 660 657 }; 661 658 662 659 mmc2 { 663 660 pinctrl_mmc2_clk_cmd_dat0: mmc2_clk_cmd_dat0 { 664 661 atmel,pins = 665 - <2 15 0x1 0x0 /* PC15 periph A MCI2_CK, conflicts with PCK2 */ 666 - 2 10 0x1 0x1 /* PC10 periph A MCI2_CDA with pullup */ 667 - 2 11 0x1 0x1>; /* PC11 periph A MCI2_DA0 with pullup */ 662 + <AT91_PIOC 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC15 periph A MCI2_CK, conflicts with PCK2 */ 663 + AT91_PIOC 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PC10 periph A MCI2_CDA with pullup */ 664 + AT91_PIOC 11 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PC11 periph A MCI2_DA0 with pullup */ 668 665 }; 669 666 pinctrl_mmc2_dat1_3: mmc2_dat1_3 { 670 667 atmel,pins = 671 - <2 12 0x1 0x0 /* PC12 periph A MCI2_DA1 with pullup, conflicts with TIOA1 */ 672 - 2 13 0x1 0x0 /* PC13 periph A MCI2_DA2 with pullup, conflicts with TIOB1 */ 673 - 2 14 0x1 0x0>; /* PC14 periph A MCI2_DA3 with pullup, conflicts with TCLK1 */ 668 + <AT91_PIOC 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC12 periph A MCI2_DA1 with pullup, conflicts with TIOA1 */ 669 + AT91_PIOC 13 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC13 periph A MCI2_DA2 with pullup, conflicts with TIOB1 */ 670 + AT91_PIOC 14 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PC14 periph A MCI2_DA3 with pullup, conflicts with TCLK1 */ 674 671 }; 675 672 }; 676 673 677 674 nand0 { 678 675 pinctrl_nand0_ale_cle: nand0_ale_cle-0 { 679 676 atmel,pins = 680 - <4 21 0x1 0x1 /* PE21 periph A with pullup */ 681 - 4 22 0x1 0x1>; /* PE22 periph A with pullup */ 677 + <AT91_PIOE 21 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PE21 periph A with pullup */ 678 + AT91_PIOE 22 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PE22 periph A with pullup */ 682 679 }; 683 680 }; 681 + 682 + spi0 { 683 + pinctrl_spi0: spi0-0 { 684 + atmel,pins = 685 + <AT91_PIOD 10 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD10 periph A SPI0_MISO pin */ 686 + AT91_PIOD 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD11 periph A SPI0_MOSI pin */ 687 + AT91_PIOD 12 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD12 periph A SPI0_SPCK pin */ 688 + }; 689 + }; 690 + 691 + spi1 { 692 + pinctrl_spi1: spi1-0 { 693 + atmel,pins = 694 + <AT91_PIOC 22 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC22 periph A SPI1_MISO pin */ 695 + AT91_PIOC 23 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC23 periph A SPI1_MOSI pin */ 696 + AT91_PIOC 24 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PC24 periph A SPI1_SPCK pin */ 697 + }; 698 + }; 699 + 700 + ssc0 { 701 + pinctrl_ssc0_tx: ssc0_tx { 702 + atmel,pins = 703 + <AT91_PIOC 16 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC16 periph A TK0 */ 704 + AT91_PIOC 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC17 periph A TF0 */ 705 + AT91_PIOC 18 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PC18 periph A TD0 */ 706 + }; 707 + 708 + pinctrl_ssc0_rx: ssc0_rx { 709 + atmel,pins = 710 + <AT91_PIOC 19 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC19 periph A RK0 */ 711 + AT91_PIOC 20 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC20 periph A RF0 */ 712 + AT91_PIOC 21 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PC21 periph A RD0 */ 713 + }; 714 + }; 715 + 716 + ssc1 { 717 + pinctrl_ssc1_tx: ssc1_tx { 718 + atmel,pins = 719 + <AT91_PIOB 2 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB2 periph B TK1, conflicts with GTX2 */ 720 + AT91_PIOB 3 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB3 periph B TF1, conflicts with GTX3 */ 721 + AT91_PIOB 6 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB6 periph B TD1, conflicts with TD1 */ 722 + }; 723 + 724 + pinctrl_ssc1_rx: ssc1_rx { 725 + atmel,pins = 726 + <AT91_PIOB 7 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB7 periph B RK1, conflicts with EREFCK */ 727 + AT91_PIOB 10 AT91_PERIPH_B AT91_PINCTRL_NONE /* PB10 periph B RF1, conflicts with GTXER */ 728 + AT91_PIOB 11 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB11 periph B RD1, conflicts with GRXCK */ 729 + }; 730 + }; 731 + 732 + uart0 { 733 + pinctrl_uart0: uart0-0 { 734 + atmel,pins = 735 + <AT91_PIOC 29 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC29 periph A, conflicts with PWMFI2, ISI_D8 */ 736 + AT91_PIOC 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PC30 periph A with pullup, conflicts with ISI_PCK */ 737 + }; 738 + }; 739 + 740 + uart1 { 741 + pinctrl_uart1: uart1-0 { 742 + atmel,pins = 743 + <AT91_PIOA 30 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA30 periph B, conflicts with TWD0, ISI_VSYNC */ 744 + AT91_PIOA 31 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PA31 periph B with pullup, conflicts with TWCK0, ISI_HSYNC */ 745 + }; 746 + }; 747 + 748 + usart0 { 749 + pinctrl_usart0: usart0-0 { 750 + atmel,pins = 751 + <AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD17 periph A */ 752 + AT91_PIOD 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PD18 periph A with pullup */ 753 + }; 754 + 755 + pinctrl_usart0_rts_cts: usart0_rts_cts-0 { 756 + atmel,pins = 757 + <AT91_PIOD 15 AT91_PERIPH_A AT91_PINCTRL_NONE /* PD15 periph A, conflicts with SPI0_NPCS2, CANTX0 */ 758 + AT91_PIOD 16 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PD16 periph A, conflicts with SPI0_NPCS3, PWMFI3 */ 759 + }; 760 + }; 761 + 762 + usart1 { 763 + pinctrl_usart1: usart1-0 { 764 + atmel,pins = 765 + <AT91_PIOB 28 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB28 periph A */ 766 + AT91_PIOB 29 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PB29 periph A with pullup */ 767 + }; 768 + 769 + pinctrl_usart1_rts_cts: usart1_rts_cts-0 { 770 + atmel,pins = 771 + <AT91_PIOB 26 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB26 periph A, conflicts with GRX7 */ 772 + AT91_PIOB 27 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB27 periph A, conflicts with G125CKO */ 773 + }; 774 + }; 775 + 776 + usart2 { 777 + pinctrl_usart2: usart2-0 { 778 + atmel,pins = 779 + <AT91_PIOE 25 AT91_PERIPH_B AT91_PINCTRL_NONE /* PE25 periph B, conflicts with A25 */ 780 + AT91_PIOE 26 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PE26 periph B with pullup, conflicts NCS0 */ 781 + }; 782 + 783 + pinctrl_usart2_rts_cts: usart2_rts_cts-0 { 784 + atmel,pins = 785 + <AT91_PIOE 23 AT91_PERIPH_B AT91_PINCTRL_NONE /* PE23 periph B, conflicts with A23 */ 786 + AT91_PIOE 24 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PE24 periph B, conflicts with A24 */ 787 + }; 788 + }; 789 + 790 + usart3 { 791 + pinctrl_usart3: usart3-0 { 792 + atmel,pins = 793 + <AT91_PIOE 18 AT91_PERIPH_B AT91_PINCTRL_NONE /* PE18 periph B, conflicts with A18 */ 794 + AT91_PIOE 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PE19 periph B with pullup, conflicts with A19 */ 795 + }; 796 + 797 + pinctrl_usart3_rts_cts: usart3_rts_cts-0 { 798 + atmel,pins = 799 + <AT91_PIOE 16 AT91_PERIPH_B AT91_PINCTRL_NONE /* PE16 periph B, conflicts with A16 */ 800 + AT91_PIOE 17 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PE17 periph B, conflicts with A17 */ 801 + }; 802 + }; 803 + 684 804 685 805 pioA: gpio@fffff200 { 686 806 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 687 807 reg = <0xfffff200 0x100>; 688 - interrupts = <6 4 1>; 808 + interrupts = <6 IRQ_TYPE_LEVEL_HIGH 1>; 689 809 #gpio-cells = <2>; 690 810 gpio-controller; 691 811 interrupt-controller; ··· 818 692 pioB: gpio@fffff400 { 819 693 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 820 694 reg = <0xfffff400 0x100>; 821 - interrupts = <7 4 1>; 695 + interrupts = <7 IRQ_TYPE_LEVEL_HIGH 1>; 822 696 #gpio-cells = <2>; 823 697 gpio-controller; 824 698 interrupt-controller; ··· 828 702 pioC: gpio@fffff600 { 829 703 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 830 704 reg = <0xfffff600 0x100>; 831 - interrupts = <8 4 1>; 705 + interrupts = <8 IRQ_TYPE_LEVEL_HIGH 1>; 832 706 #gpio-cells = <2>; 833 707 gpio-controller; 834 708 interrupt-controller; ··· 838 712 pioD: gpio@fffff800 { 839 713 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 840 714 reg = <0xfffff800 0x100>; 841 - interrupts = <9 4 1>; 715 + interrupts = <9 IRQ_TYPE_LEVEL_HIGH 1>; 842 716 #gpio-cells = <2>; 843 717 gpio-controller; 844 718 interrupt-controller; ··· 848 722 pioE: gpio@fffffa00 { 849 723 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; 850 724 reg = <0xfffffa00 0x100>; 851 - interrupts = <10 4 1>; 725 + interrupts = <10 IRQ_TYPE_LEVEL_HIGH 1>; 852 726 #gpio-cells = <2>; 853 727 gpio-controller; 854 728 interrupt-controller; 855 729 #interrupt-cells = <2>; 856 - }; 857 - 858 - spi0 { 859 - pinctrl_spi0: spi0-0 { 860 - atmel,pins = 861 - <3 10 0x1 0x0 /* PD10 periph A SPI0_MISO pin */ 862 - 3 11 0x1 0x0 /* PD11 periph A SPI0_MOSI pin */ 863 - 3 12 0x1 0x0 /* PD12 periph A SPI0_SPCK pin */ 864 - 3 13 0x0 0x0>; /* PD13 GPIO SPI0_NPCS0 pin */ 865 - }; 866 - }; 867 - 868 - spi1 { 869 - pinctrl_spi1: spi1-0 { 870 - atmel,pins = 871 - <2 22 0x1 0x0 /* PC22 periph A SPI1_MISO pin */ 872 - 2 23 0x1 0x0 /* PC23 periph A SPI1_MOSI pin */ 873 - 2 24 0x1 0x0 /* PC24 periph A SPI1_SPCK pin */ 874 - 2 25 0x0 0x0>; /* PC25 GPIO SPI1_NPCS0 pin */ 875 - }; 876 - }; 877 - 878 - ssc0 { 879 - pinctrl_ssc0_tx: ssc0_tx { 880 - atmel,pins = 881 - <2 16 0x1 0x0 /* PC16 periph A TK0 */ 882 - 2 17 0x1 0x0 /* PC17 periph A TF0 */ 883 - 2 18 0x1 0x0>; /* PC18 periph A TD0 */ 884 - }; 885 - 886 - pinctrl_ssc0_rx: ssc0_rx { 887 - atmel,pins = 888 - <2 19 0x1 0x0 /* PC19 periph A RK0 */ 889 - 2 20 0x1 0x0 /* PC20 periph A RF0 */ 890 - 2 21 0x1 0x0>; /* PC21 periph A RD0 */ 891 - }; 892 - }; 893 - 894 - ssc1 { 895 - pinctrl_ssc1_tx: ssc1_tx { 896 - atmel,pins = 897 - <1 2 0x2 0x0 /* PB2 periph B TK1, conflicts with GTX2 */ 898 - 1 3 0x2 0x0 /* PB3 periph B TF1, conflicts with GTX3 */ 899 - 1 6 0x2 0x0>; /* PB6 periph B TD1, conflicts with TD1 */ 900 - }; 901 - 902 - pinctrl_ssc1_rx: ssc1_rx { 903 - atmel,pins = 904 - <1 7 0x2 0x0 /* PB7 periph B RK1, conflicts with EREFCK */ 905 - 1 10 0x2 0x0 /* PB10 periph B RF1, conflicts with GTXER */ 906 - 1 11 0x2 0x0>; /* PB11 periph B RD1, conflicts with GRXCK */ 907 - }; 908 - }; 909 - 910 - uart0 { 911 - pinctrl_uart0: uart0-0 { 912 - atmel,pins = 913 - <2 29 0x1 0x0 /* PC29 periph A, conflicts with PWMFI2, ISI_D8 */ 914 - 2 30 0x1 0x1>; /* PC30 periph A with pullup, conflicts with ISI_PCK */ 915 - }; 916 - }; 917 - 918 - uart1 { 919 - pinctrl_uart1: uart1-0 { 920 - atmel,pins = 921 - <0 30 0x2 0x0 /* PA30 periph B, conflicts with TWD0, ISI_VSYNC */ 922 - 0 31 0x2 0x1>; /* PA31 periph B with pullup, conflicts with TWCK0, ISI_HSYNC */ 923 - }; 924 - }; 925 - 926 - usart0 { 927 - pinctrl_usart0: usart0-0 { 928 - atmel,pins = 929 - <3 17 0x1 0x0 /* PD17 periph A */ 930 - 3 18 0x1 0x1>; /* PD18 periph A with pullup */ 931 - }; 932 - 933 - pinctrl_usart0_rts_cts: usart0_rts_cts-0 { 934 - atmel,pins = 935 - <3 15 0x1 0x0 /* PD15 periph A, conflicts with SPI0_NPCS2, CANTX0 */ 936 - 3 16 0x1 0x0>; /* PD16 periph A, conflicts with SPI0_NPCS3, PWMFI3 */ 937 - }; 938 - }; 939 - 940 - usart1 { 941 - pinctrl_usart1: usart1-0 { 942 - atmel,pins = 943 - <1 28 0x1 0x0 /* PB28 periph A */ 944 - 1 29 0x1 0x1>; /* PB29 periph A with pullup */ 945 - }; 946 - 947 - pinctrl_usart1_rts_cts: usart1_rts_cts-0 { 948 - atmel,pins = 949 - <1 26 0x1 0x0 /* PB26 periph A, conflicts with GRX7 */ 950 - 1 27 0x1 0x0>; /* PB27 periph A, conflicts with G125CKO */ 951 - }; 952 - }; 953 - 954 - usart2 { 955 - pinctrl_usart2: usart2-0 { 956 - atmel,pins = 957 - <4 25 0x2 0x0 /* PE25 periph B, conflicts with A25 */ 958 - 4 26 0x2 0x1>; /* PE26 periph B with pullup, conflicts NCS0 */ 959 - }; 960 - 961 - pinctrl_usart2_rts_cts: usart2_rts_cts-0 { 962 - atmel,pins = 963 - <4 23 0x2 0x0 /* PE23 periph B, conflicts with A23 */ 964 - 4 24 0x2 0x0>; /* PE24 periph B, conflicts with A24 */ 965 - }; 966 - }; 967 - 968 - usart3 { 969 - pinctrl_usart3: usart3-0 { 970 - atmel,pins = 971 - <4 18 0x2 0x0 /* PE18 periph B, conflicts with A18 */ 972 - 4 19 0x2 0x1>; /* PE19 periph B with pullup, conflicts with A19 */ 973 - }; 974 - 975 - pinctrl_usart3_rts_cts: usart3_rts_cts-0 { 976 - atmel,pins = 977 - <4 16 0x2 0x0 /* PE16 periph B, conflicts with A16 */ 978 - 4 17 0x2 0x0>; /* PE17 periph B, conflicts with A17 */ 979 - }; 980 730 }; 981 731 }; 982 732 ··· 869 867 pit: timer@fffffe30 { 870 868 compatible = "atmel,at91sam9260-pit"; 871 869 reg = <0xfffffe30 0xf>; 872 - interrupts = <3 4 5>; 870 + interrupts = <3 IRQ_TYPE_LEVEL_HIGH 5>; 873 871 }; 874 872 875 873 watchdog@fffffe40 { ··· 881 879 rtc@fffffeb0 { 882 880 compatible = "atmel,at91rm9200-rtc"; 883 881 reg = <0xfffffeb0 0x30>; 884 - interrupts = <1 4 7>; 882 + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; 885 883 }; 886 884 }; 887 885 ··· 891 889 compatible = "atmel,at91sam9rl-udc"; 892 890 reg = <0x00500000 0x100000 893 891 0xf8030000 0x4000>; 894 - interrupts = <33 4 2>; 892 + interrupts = <33 IRQ_TYPE_LEVEL_HIGH 2>; 895 893 status = "disabled"; 896 894 897 895 ep0 { ··· 1003 1001 usb1: ohci@00600000 { 1004 1002 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 1005 1003 reg = <0x00600000 0x100000>; 1006 - interrupts = <32 4 2>; 1004 + interrupts = <32 IRQ_TYPE_LEVEL_HIGH 2>; 1007 1005 status = "disabled"; 1008 1006 }; 1009 1007 1010 1008 usb2: ehci@00700000 { 1011 1009 compatible = "atmel,at91sam9g45-ehci", "usb-ehci"; 1012 1010 reg = <0x00700000 0x100000>; 1013 - interrupts = <32 4 2>; 1011 + interrupts = <32 IRQ_TYPE_LEVEL_HIGH 2>; 1014 1012 status = "disabled"; 1015 1013 }; 1016 1014 ··· 1026 1024 0xffffc000 0x00000070 /* NFC HSMC regs */ 1027 1025 0x00200000 0x00100000 /* NFC SRAM banks */ 1028 1026 >; 1029 - interrupts = <5 4 6>; 1027 + interrupts = <5 IRQ_TYPE_LEVEL_HIGH 6>; 1030 1028 atmel,nand-addr-offset = <21>; 1031 1029 atmel,nand-cmd-offset = <22>; 1032 1030 pinctrl-names = "default";
+3 -3
arch/arm/boot/dts/sama5d31ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "sama5d3xmb.dtsi" 11 - /include/ "sama5d3xdm.dtsi" 10 + #include "sama5d3xmb.dtsi" 11 + #include "sama5d3xdm.dtsi" 12 12 13 13 / { 14 14 model = "Atmel SAMA5D31-EK"; ··· 41 41 leds { 42 42 d3 { 43 43 label = "d3"; 44 - gpios = <&pioE 24 0>; 44 + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; 45 45 }; 46 46 }; 47 47
+2 -2
arch/arm/boot/dts/sama5d33ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "sama5d3xmb.dtsi" 11 - /include/ "sama5d3xdm.dtsi" 10 + #include "sama5d3xmb.dtsi" 11 + #include "sama5d3xdm.dtsi" 12 12 13 13 / { 14 14 model = "Atmel SAMA5D33-EK";
+3 -3
arch/arm/boot/dts/sama5d34ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "sama5d3xmb.dtsi" 11 - /include/ "sama5d3xdm.dtsi" 10 + #include "sama5d3xmb.dtsi" 11 + #include "sama5d3xdm.dtsi" 12 12 13 13 / { 14 14 model = "Atmel SAMA5D34-EK"; ··· 51 51 leds { 52 52 d3 { 53 53 label = "d3"; 54 - gpios = <&pioE 24 0>; 54 + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; 55 55 }; 56 56 }; 57 57
+2 -2
arch/arm/boot/dts/sama5d35ek.dts
··· 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 9 /dts-v1/; 10 - /include/ "sama5d3xmb.dtsi" 10 + #include "sama5d3xmb.dtsi" 11 11 12 12 / { 13 13 model = "Atmel SAMA5D35-EK"; ··· 48 48 49 49 pb_user1 { 50 50 label = "pb_user1"; 51 - gpios = <&pioE 27 0>; 51 + gpios = <&pioE 27 GPIO_ACTIVE_HIGH>; 52 52 linux,code = <0x100>; 53 53 gpio-key,wakeup; 54 54 };
+2 -2
arch/arm/boot/dts/sama5d3xcm.dtsi
··· 6 6 * 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 - /include/ "sama5d3.dtsi" 9 + #include "sama5d3.dtsi" 10 10 11 11 / { 12 12 compatible = "atmel,samad3xcm", "atmel,sama5d3", "atmel,sama5"; ··· 89 89 90 90 d2 { 91 91 label = "d2"; 92 - gpios = <&pioE 25 1>; /* PE25, conflicts with A25, RXD2 */ 92 + gpios = <&pioE 25 GPIO_ACTIVE_LOW>; /* PE25, conflicts with A25, RXD2 */ 93 93 }; 94 94 }; 95 95 };
+1 -1
arch/arm/boot/dts/sama5d3xdm.dtsi
··· 33 33 board { 34 34 pinctrl_qt1070_irq: qt1070_irq { 35 35 atmel,pins = 36 - <4 31 0x0 0x5>; /* PE31 GPIO with pull up deglith */ 36 + <AT91_PIOE 31 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PE31 GPIO with pull up deglith */ 37 37 }; 38 38 }; 39 39 };
+13 -13
arch/arm/boot/dts/sama5d3xmb.dtsi
··· 6 6 * 7 7 * Licensed under GPLv2 or later. 8 8 */ 9 - /include/ "sama5d3xcm.dtsi" 9 + #include "sama5d3xcm.dtsi" 10 10 11 11 / { 12 12 compatible = "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5"; ··· 20 20 slot@0 { 21 21 reg = <0>; 22 22 bus-width = <4>; 23 - cd-gpios = <&pioD 17 0>; 23 + cd-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>; 24 24 }; 25 25 }; 26 26 ··· 62 62 slot@0 { 63 63 reg = <0>; 64 64 bus-width = <4>; 65 - cd-gpios = <&pioD 18 0>; 65 + cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>; 66 66 }; 67 67 }; 68 68 ··· 87 87 board { 88 88 pinctrl_mmc0_cd: mmc0_cd { 89 89 atmel,pins = 90 - <3 17 0x0 0x5>; /* PD17 GPIO with pullup deglitch */ 90 + <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD17 GPIO with pullup deglitch */ 91 91 }; 92 92 93 93 pinctrl_mmc1_cd: mmc1_cd { 94 94 atmel,pins = 95 - <3 18 0x0 0x5>; /* PD18 GPIO with pullup deglitch */ 95 + <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD18 GPIO with pullup deglitch */ 96 96 }; 97 97 98 98 pinctrl_pck0_as_audio_mck: pck0_as_audio_mck { 99 99 atmel,pins = 100 - <3 30 0x2 0x0>; /* PD30 periph B */ 100 + <AT91_PIOD 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD30 periph B */ 101 101 }; 102 102 103 103 pinctrl_isi_reset: isi_reset-0 { 104 104 atmel,pins = 105 - <4 24 0x0 0x0>; /* PE24 gpio */ 105 + <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE24 gpio */ 106 106 }; 107 107 108 108 pinctrl_isi_power: isi_power-0 { 109 109 atmel,pins = 110 - <4 29 0x0 0x0>; /* PE29 gpio */ 110 + <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE29 gpio */ 111 111 }; 112 112 113 113 pinctrl_usba_vbus: usba_vbus { 114 114 atmel,pins = 115 - <3 29 0x0 0x4>; /* PD29 GPIO with deglitch */ 115 + <AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PD29 GPIO with deglitch */ 116 116 }; 117 117 }; 118 118 }; ··· 127 127 }; 128 128 129 129 usb0: gadget@00500000 { 130 - atmel,vbus-gpio = <&pioD 29 0>; 130 + atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>; 131 131 pinctrl-names = "default"; 132 132 pinctrl-0 = <&pinctrl_usba_vbus>; 133 133 status = "okay"; ··· 135 135 136 136 usb1: ohci@00600000 { 137 137 num-ports = <3>; 138 - atmel,vbus-gpio = <&pioD 25 0 139 - &pioD 26 1 140 - &pioD 27 1 138 + atmel,vbus-gpio = <&pioD 25 GPIO_ACTIVE_HIGH 139 + &pioD 26 GPIO_ACTIVE_LOW 140 + &pioD 27 GPIO_ACTIVE_LOW 141 141 >; 142 142 status = "okay"; 143 143 };
+2 -2
arch/arm/boot/dts/tny_a9260.dts
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9260.dtsi" 10 - /include/ "tny_a9260_common.dtsi" 9 + #include "at91sam9260.dtsi" 10 + #include "tny_a9260_common.dtsi" 11 11 12 12 / { 13 13 model = "Calao TNY A9260";
+2 -2
arch/arm/boot/dts/tny_a9263.dts
··· 6 6 * Licensed under GPLv2 only 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9263.dtsi" 9 + #include "at91sam9263.dtsi" 10 10 11 11 / { 12 12 model = "Calao TNY A9263"; ··· 38 38 }; 39 39 40 40 usb1: gadget@fff78000 { 41 - atmel,vbus-gpio = <&pioB 11 0>; 41 + atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>; 42 42 status = "okay"; 43 43 }; 44 44 };
+2 -2
arch/arm/boot/dts/tny_a9g20.dts
··· 6 6 * Licensed under GPLv2. 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9g20.dtsi" 10 - /include/ "tny_a9260_common.dtsi" 9 + #include "at91sam9g20.dtsi" 10 + #include "tny_a9260_common.dtsi" 11 11 12 12 / { 13 13 model = "Calao TNY A9G20";
+2 -2
arch/arm/boot/dts/usb_a9260.dts
··· 6 6 * Licensed under GPLv2 or later. 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9260.dtsi" 10 - /include/ "usb_a9260_common.dtsi" 9 + #include "at91sam9260.dtsi" 10 + #include "usb_a9260_common.dtsi" 11 11 12 12 / { 13 13 model = "Calao USB A9260";
+3 -3
arch/arm/boot/dts/usb_a9260_common.dtsi
··· 30 30 }; 31 31 32 32 usb1: gadget@fffa4000 { 33 - atmel,vbus-gpio = <&pioC 5 0>; 33 + atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 34 34 status = "okay"; 35 35 }; 36 36 }; ··· 93 93 94 94 user_led { 95 95 label = "user_led"; 96 - gpios = <&pioB 21 1>; 96 + gpios = <&pioB 21 GPIO_ACTIVE_LOW>; 97 97 linux,default-trigger = "heartbeat"; 98 98 }; 99 99 }; ··· 105 105 106 106 user_pb { 107 107 label = "user_pb"; 108 - gpios = <&pioB 10 1>; 108 + gpios = <&pioB 10 GPIO_ACTIVE_LOW>; 109 109 linux,code = <28>; 110 110 gpio-key,wakeup; 111 111 };
+4 -4
arch/arm/boot/dts/usb_a9263.dts
··· 6 6 * Licensed under GPLv2 only 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9263.dtsi" 9 + #include "at91sam9263.dtsi" 10 10 11 11 / { 12 12 model = "Calao USB A9263"; ··· 43 43 }; 44 44 45 45 usb1: gadget@fff78000 { 46 - atmel,vbus-gpio = <&pioB 11 0>; 46 + atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>; 47 47 status = "okay"; 48 48 }; 49 49 ··· 107 107 108 108 user_led { 109 109 label = "user_led"; 110 - gpios = <&pioB 21 0>; 110 + gpios = <&pioB 21 GPIO_ACTIVE_HIGH>; 111 111 linux,default-trigger = "heartbeat"; 112 112 }; 113 113 }; ··· 119 119 120 120 user_pb { 121 121 label = "user_pb"; 122 - gpios = <&pioB 10 1>; 122 + gpios = <&pioB 10 GPIO_ACTIVE_LOW>; 123 123 linux,code = <28>; 124 124 gpio-key,wakeup; 125 125 };
+11 -11
arch/arm/boot/dts/usb_a9g20-dab-mmx.dtsi
··· 28 28 29 29 user_led1 { 30 30 label = "user_led1"; 31 - gpios = <&pioB 20 1>; 31 + gpios = <&pioB 20 GPIO_ACTIVE_LOW>; 32 32 }; 33 33 34 34 /* 35 35 * led already used by mother board but active as high 36 36 * user_led2 { 37 37 * label = "user_led2"; 38 - * gpios = <&pioB 21 1>; 38 + * gpios = <&pioB 21 GPIO_ACTIVE_LOW>; 39 39 * }; 40 40 */ 41 41 user_led3 { 42 42 label = "user_led3"; 43 - gpios = <&pioB 22 1>; 43 + gpios = <&pioB 22 GPIO_ACTIVE_LOW>; 44 44 }; 45 45 46 46 user_led4 { 47 47 label = "user_led4"; 48 - gpios = <&pioB 23 1>; 48 + gpios = <&pioB 23 GPIO_ACTIVE_LOW>; 49 49 }; 50 50 51 51 red { 52 52 label = "red"; 53 - gpios = <&pioB 24 1>; 53 + gpios = <&pioB 24 GPIO_ACTIVE_LOW>; 54 54 }; 55 55 56 56 orange { 57 57 label = "orange"; 58 - gpios = <&pioB 30 1>; 58 + gpios = <&pioB 30 GPIO_ACTIVE_LOW>; 59 59 }; 60 60 61 61 green { 62 62 label = "green"; 63 - gpios = <&pioB 31 1>; 63 + gpios = <&pioB 31 GPIO_ACTIVE_LOW>; 64 64 }; 65 65 }; 66 66 ··· 71 71 72 72 user_pb1 { 73 73 label = "user_pb1"; 74 - gpios = <&pioB 25 1>; 74 + gpios = <&pioB 25 GPIO_ACTIVE_LOW>; 75 75 linux,code = <0x100>; 76 76 }; 77 77 78 78 user_pb2 { 79 79 label = "user_pb2"; 80 - gpios = <&pioB 13 1>; 80 + gpios = <&pioB 13 GPIO_ACTIVE_LOW>; 81 81 linux,code = <0x101>; 82 82 }; 83 83 84 84 user_pb3 { 85 85 label = "user_pb3"; 86 - gpios = <&pioA 26 1>; 86 + gpios = <&pioA 26 GPIO_ACTIVE_LOW>; 87 87 linux,code = <0x102>; 88 88 }; 89 89 90 90 user_pb4 { 91 91 label = "user_pb4"; 92 - gpios = <&pioC 9 1>; 92 + gpios = <&pioC 9 GPIO_ACTIVE_LOW>; 93 93 linux,code = <0x103>; 94 94 }; 95 95 };
+2 -2
arch/arm/boot/dts/usb_a9g20.dts
··· 6 6 * Licensed under GPLv2 or later. 7 7 */ 8 8 /dts-v1/; 9 - /include/ "at91sam9g20.dtsi" 10 - /include/ "usb_a9260_common.dtsi" 9 + #include "at91sam9g20.dtsi" 10 + #include "usb_a9260_common.dtsi" 11 11 12 12 / { 13 13 model = "Calao USB A9G20";
+31 -24
arch/arm/configs/at91_dt_defconfig
··· 1 - CONFIG_EXPERIMENTAL=y 2 1 # CONFIG_LOCALVERSION_AUTO is not set 3 2 # CONFIG_SWAP is not set 4 3 CONFIG_SYSVIPC=y ··· 24 25 CONFIG_AT91_TIMER_HZ=128 25 26 CONFIG_AEABI=y 26 27 # CONFIG_OABI_COMPAT is not set 27 - CONFIG_LEDS=y 28 - CONFIG_LEDS_CPU=y 29 28 CONFIG_UACCESS_WITH_MEMCPY=y 30 29 CONFIG_ZBOOT_ROM_TEXT=0x0 31 30 CONFIG_ZBOOT_ROM_BSS=0x0 ··· 39 42 CONFIG_INET=y 40 43 CONFIG_IP_MULTICAST=y 41 44 CONFIG_IP_PNP=y 45 + CONFIG_IP_PNP_DHCP=y 46 + CONFIG_IP_PNP_BOOTP=y 47 + CONFIG_IP_PNP_RARP=y 42 48 # CONFIG_INET_XFRM_MODE_TRANSPORT is not set 43 49 # CONFIG_INET_XFRM_MODE_TUNNEL is not set 44 50 # CONFIG_INET_XFRM_MODE_BEET is not set ··· 51 51 # CONFIG_INET6_XFRM_MODE_TUNNEL is not set 52 52 # CONFIG_INET6_XFRM_MODE_BEET is not set 53 53 CONFIG_IPV6_SIT_6RD=y 54 - # CONFIG_WIRELESS is not set 54 + CONFIG_CFG80211=y 55 + CONFIG_MAC80211=y 55 56 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" 56 57 CONFIG_DEVTMPFS=y 57 58 CONFIG_DEVTMPFS_MOUNT=y ··· 73 72 CONFIG_BLK_DEV_RAM_SIZE=8192 74 73 CONFIG_ATMEL_PWM=y 75 74 CONFIG_ATMEL_TCLIB=y 76 - CONFIG_EEPROM_93CX6=m 77 75 CONFIG_SCSI=y 78 76 CONFIG_BLK_DEV_SD=y 79 77 CONFIG_SCSI_MULTI_LUN=y ··· 81 81 CONFIG_MII=y 82 82 CONFIG_MACB=y 83 83 # CONFIG_NET_VENDOR_BROADCOM is not set 84 - # CONFIG_NET_VENDOR_CHELSIO is not set 85 84 # CONFIG_NET_VENDOR_FARADAY is not set 86 85 # CONFIG_NET_VENDOR_INTEL is not set 87 86 # CONFIG_NET_VENDOR_MARVELL is not set ··· 91 92 # CONFIG_NET_VENDOR_STMICRO is not set 92 93 CONFIG_DAVICOM_PHY=y 93 94 CONFIG_MICREL_PHY=y 94 - # CONFIG_WLAN is not set 95 + CONFIG_RTL8187=m 96 + CONFIG_LIBERTAS=m 97 + CONFIG_LIBERTAS_SDIO=m 98 + CONFIG_LIBERTAS_SPI=m 99 + CONFIG_RT2X00=m 100 + CONFIG_RT2500USB=m 101 + CONFIG_RT73USB=m 102 + CONFIG_RT2800USB=m 103 + CONFIG_RT2800USB_RT53XX=y 104 + CONFIG_RT2800USB_RT55XX=y 105 + CONFIG_RT2800USB_UNKNOWN=y 106 + CONFIG_RTLWIFI=m 107 + # CONFIG_RTLWIFI_DEBUG is not set 108 + CONFIG_RTL8192CU=m 109 + CONFIG_MWIFIEX=m 110 + CONFIG_MWIFIEX_SDIO=m 111 + CONFIG_MWIFIEX_USB=m 95 112 CONFIG_INPUT_POLLDEV=y 96 113 # CONFIG_INPUT_MOUSEDEV_PSAUX is not set 97 114 CONFIG_INPUT_MOUSEDEV_SCREEN_X=480 ··· 127 112 CONFIG_I2C_GPIO=y 128 113 CONFIG_SPI=y 129 114 CONFIG_SPI_ATMEL=y 130 - CONFIG_PINCTRL_AT91=y 131 115 # CONFIG_HWMON is not set 132 116 CONFIG_WATCHDOG=y 133 117 CONFIG_AT91SAM9X_WATCHDOG=y 134 118 CONFIG_SSB=m 135 119 CONFIG_FB=y 136 - CONFIG_FB_MODE_HELPERS=y 137 120 CONFIG_FB_ATMEL=y 138 121 CONFIG_BACKLIGHT_LCD_SUPPORT=y 139 122 # CONFIG_LCD_CLASS_DEVICE is not set ··· 145 132 CONFIG_FONT_ACORN_8x8=y 146 133 CONFIG_FONT_MINI_4x6=y 147 134 CONFIG_LOGO=y 148 - # CONFIG_HID_SUPPORT is not set 149 135 CONFIG_USB=y 150 136 CONFIG_USB_ANNOUNCE_NEW_DEVICES=y 151 - CONFIG_USB_DEVICEFS=y 152 - # CONFIG_USB_DEVICE_CLASS is not set 153 137 CONFIG_USB_EHCI_HCD=y 154 138 CONFIG_USB_OHCI_HCD=y 155 139 CONFIG_USB_ACM=y ··· 156 146 CONFIG_USB_SERIAL_FTDI_SIO=y 157 147 CONFIG_USB_SERIAL_PL2303=y 158 148 CONFIG_USB_GADGET=y 159 - CONFIG_USB_AT91=m 160 - CONFIG_USB_ATMEL_USBA=m 161 - CONFIG_USB_ETH=m 162 - CONFIG_USB_GADGETFS=m 163 - CONFIG_USB_CDC_COMPOSITE=m 164 - CONFIG_USB_G_ACM_MS=m 165 - CONFIG_USB_G_MULTI=m 166 - CONFIG_USB_G_MULTI_CDC=y 149 + CONFIG_USB_AT91=y 150 + CONFIG_USB_ATMEL_USBA=y 151 + CONFIG_USB_G_SERIAL=y 167 152 CONFIG_MMC=y 168 153 CONFIG_MMC_ATMELMCI=y 169 154 CONFIG_NEW_LEDS=y ··· 173 168 CONFIG_RTC_DRV_AT91SAM9=y 174 169 CONFIG_DMADEVICES=y 175 170 # CONFIG_IOMMU_SUPPORT is not set 176 - CONFIG_EXT2_FS=y 171 + CONFIG_EXT4_FS=y 177 172 CONFIG_FANOTIFY=y 178 173 CONFIG_VFAT_FS=y 179 174 CONFIG_TMPFS=y 175 + CONFIG_UBIFS_FS=y 176 + CONFIG_UBIFS_FS_ADVANCED_COMPR=y 180 177 CONFIG_NFS_FS=y 181 - CONFIG_NFS_V3=y 182 178 CONFIG_ROOT_NFS=y 183 179 CONFIG_NLS_CODEPAGE_437=y 184 180 CONFIG_NLS_CODEPAGE_850=y 185 181 CONFIG_NLS_ISO8859_1=y 182 + CONFIG_NLS_UTF8=y 186 183 CONFIG_STRIP_ASM_SYMS=y 187 184 CONFIG_DEBUG_FS=y 188 185 # CONFIG_SCHED_DEBUG is not set ··· 199 192 CONFIG_CRYPTO_USER_API_HASH=m 200 193 CONFIG_CRYPTO_USER_API_SKCIPHER=m 201 194 # CONFIG_CRYPTO_HW is not set 202 - CONFIG_CRC_CCITT=m 203 - CONFIG_CRC_ITU_T=m 195 + CONFIG_CRC_CCITT=y 196 + CONFIG_CRC_ITU_T=y 204 197 CONFIG_CRC7=m 205 198 CONFIG_AVERAGE=y
+29 -189
arch/arm/configs/at91rm9200_defconfig
··· 1 - CONFIG_EXPERIMENTAL=y 2 1 # CONFIG_LOCALVERSION_AUTO is not set 3 2 # CONFIG_SWAP is not set 4 3 CONFIG_SYSVIPC=y 4 + CONFIG_NO_HZ=y 5 + CONFIG_HIGH_RES_TIMERS=y 5 6 CONFIG_IKCONFIG=y 6 7 CONFIG_IKCONFIG_PROC=y 7 8 CONFIG_LOG_BUF_SHIFT=14 9 + CONFIG_USER_NS=y 8 10 CONFIG_BLK_DEV_INITRD=y 9 11 CONFIG_MODULES=y 10 12 CONFIG_MODULE_FORCE_LOAD=y ··· 37 35 # CONFIG_ARM_THUMB is not set 38 36 CONFIG_PCCARD=y 39 37 CONFIG_AT91_CF=y 40 - CONFIG_NO_HZ=y 41 - CONFIG_HIGH_RES_TIMERS=y 42 - CONFIG_PREEMPT=y 43 38 CONFIG_AEABI=y 44 - CONFIG_LEDS=y 45 - CONFIG_LEDS_CPU=y 39 + # CONFIG_COMPACTION is not set 46 40 CONFIG_ZBOOT_ROM_TEXT=0x10000000 47 41 CONFIG_ZBOOT_ROM_BSS=0x20040000 48 42 CONFIG_KEXEC=y 43 + CONFIG_AUTO_ZRELADDR=y 49 44 CONFIG_FPE_NWFPE=y 50 45 CONFIG_BINFMT_MISC=y 51 46 CONFIG_NET=y 52 47 CONFIG_PACKET=y 53 48 CONFIG_UNIX=y 54 - CONFIG_XFRM_USER=m 55 49 CONFIG_INET=y 56 50 CONFIG_IP_MULTICAST=y 57 51 CONFIG_IP_PNP=y 58 52 CONFIG_IP_PNP_DHCP=y 59 53 CONFIG_IP_PNP_BOOTP=y 60 - CONFIG_NET_IPIP=m 61 - CONFIG_INET_AH=m 62 - CONFIG_INET_ESP=m 63 - CONFIG_INET_IPCOMP=m 64 - CONFIG_INET_XFRM_MODE_TRANSPORT=m 65 - CONFIG_INET_XFRM_MODE_TUNNEL=m 66 - CONFIG_INET_XFRM_MODE_BEET=m 54 + # CONFIG_INET_XFRM_MODE_TRANSPORT is not set 55 + # CONFIG_INET_XFRM_MODE_TUNNEL is not set 56 + # CONFIG_INET_XFRM_MODE_BEET is not set 57 + # CONFIG_INET_DIAG is not set 58 + CONFIG_IPV6=y 67 59 CONFIG_IPV6_PRIVACY=y 68 60 CONFIG_IPV6_ROUTER_PREF=y 69 61 CONFIG_IPV6_ROUTE_INFO=y 70 - CONFIG_INET6_AH=m 71 - CONFIG_INET6_ESP=m 72 - CONFIG_INET6_IPCOMP=m 73 - CONFIG_IPV6_MIP6=m 74 - CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m 75 - CONFIG_IPV6_TUNNEL=m 76 - CONFIG_BRIDGE=m 77 - CONFIG_VLAN_8021Q=m 78 - CONFIG_BT=m 79 62 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" 63 + CONFIG_DEVTMPFS=y 64 + CONFIG_DEVTMPFS_MOUNT=y 65 + # CONFIG_STANDALONE is not set 66 + # CONFIG_PREVENT_FIRMWARE_BUILD is not set 80 67 CONFIG_MTD=y 81 68 CONFIG_MTD_CMDLINE_PARTS=y 82 - CONFIG_MTD_AFS_PARTS=y 83 69 CONFIG_MTD_CHAR=y 84 70 CONFIG_MTD_BLOCK=y 85 71 CONFIG_MTD_CFI=y ··· 84 94 CONFIG_MTD_UBI=y 85 95 CONFIG_MTD_UBI_GLUEBI=y 86 96 CONFIG_BLK_DEV_LOOP=y 87 - CONFIG_BLK_DEV_NBD=y 88 97 CONFIG_BLK_DEV_RAM=y 89 98 CONFIG_BLK_DEV_RAM_SIZE=8192 90 - CONFIG_SCSI=y 91 - CONFIG_BLK_DEV_SD=y 92 - CONFIG_BLK_DEV_SR=m 93 - CONFIG_BLK_DEV_SR_VENDOR=y 94 - CONFIG_CHR_DEV_SG=m 95 - CONFIG_SCSI_MULTI_LUN=y 96 - # CONFIG_SCSI_LOWLEVEL is not set 97 99 CONFIG_NETDEVICES=y 98 - CONFIG_TUN=m 100 + CONFIG_MII=y 99 101 CONFIG_ARM_AT91_ETHER=y 100 - CONFIG_PHYLIB=y 101 102 CONFIG_DAVICOM_PHY=y 102 103 CONFIG_SMSC_PHY=y 103 104 CONFIG_MICREL_PHY=y 104 - CONFIG_PPP=y 105 - CONFIG_PPP_BSDCOMP=y 106 - CONFIG_PPP_DEFLATE=y 107 - CONFIG_PPP_FILTER=y 108 - CONFIG_PPP_MPPE=m 109 - CONFIG_PPP_MULTILINK=y 110 - CONFIG_PPPOE=m 111 - CONFIG_PPP_ASYNC=y 112 - CONFIG_SLIP=m 113 - CONFIG_SLIP_COMPRESSED=y 114 - CONFIG_SLIP_SMART=y 115 - CONFIG_SLIP_MODE_SLIP6=y 116 - CONFIG_USB_CATC=m 117 - CONFIG_USB_KAWETH=m 118 - CONFIG_USB_PEGASUS=m 119 - CONFIG_USB_RTL8150=m 120 - CONFIG_USB_USBNET=m 121 - CONFIG_USB_NET_DM9601=m 122 - CONFIG_USB_NET_GL620A=m 123 - CONFIG_USB_NET_PLUSB=m 124 - CONFIG_USB_NET_RNDIS_HOST=m 125 - CONFIG_USB_ALI_M5632=y 126 - CONFIG_USB_AN2720=y 127 - CONFIG_USB_EPSON2888=y 128 - # CONFIG_INPUT_MOUSEDEV_PSAUX is not set 129 - CONFIG_INPUT_MOUSEDEV_SCREEN_X=640 130 - CONFIG_INPUT_MOUSEDEV_SCREEN_Y=480 105 + # CONFIG_WLAN is not set 106 + # CONFIG_INPUT_MOUSEDEV is not set 131 107 CONFIG_INPUT_EVDEV=y 132 108 CONFIG_KEYBOARD_GPIO=y 133 109 # CONFIG_INPUT_MOUSE is not set 134 110 CONFIG_INPUT_TOUCHSCREEN=y 135 - CONFIG_LEGACY_PTY_COUNT=32 111 + # CONFIG_LEGACY_PTYS is not set 136 112 CONFIG_SERIAL_ATMEL=y 137 113 CONFIG_SERIAL_ATMEL_CONSOLE=y 138 114 CONFIG_HW_RANDOM=y ··· 107 151 CONFIG_I2C_GPIO=y 108 152 CONFIG_SPI=y 109 153 CONFIG_SPI_ATMEL=y 110 - CONFIG_SPI_BITBANG=y 111 154 CONFIG_GPIO_SYSFS=y 112 - CONFIG_HWMON=m 113 - CONFIG_SENSORS_ADM1021=m 114 - CONFIG_SENSORS_ADM1025=m 115 - CONFIG_SENSORS_ADM1026=m 116 - CONFIG_SENSORS_ADM1029=m 117 - CONFIG_SENSORS_ADM1031=m 118 - CONFIG_SENSORS_ADM9240=m 119 - CONFIG_SENSORS_DS1621=m 120 - CONFIG_SENSORS_GL518SM=m 121 - CONFIG_SENSORS_GL520SM=m 122 - CONFIG_SENSORS_IT87=m 123 - CONFIG_SENSORS_LM63=m 124 - CONFIG_SENSORS_LM73=m 125 - CONFIG_SENSORS_LM75=m 126 - CONFIG_SENSORS_LM77=m 127 - CONFIG_SENSORS_LM78=m 128 - CONFIG_SENSORS_LM80=m 129 - CONFIG_SENSORS_LM83=m 130 - CONFIG_SENSORS_LM85=m 131 - CONFIG_SENSORS_LM87=m 132 - CONFIG_SENSORS_LM90=m 133 - CONFIG_SENSORS_LM92=m 134 - CONFIG_SENSORS_MAX1619=m 135 - CONFIG_SENSORS_PCF8591=m 136 - CONFIG_SENSORS_SMSC47B397=m 137 - CONFIG_SENSORS_W83781D=m 138 - CONFIG_SENSORS_W83791D=m 139 - CONFIG_SENSORS_W83792D=m 140 - CONFIG_SENSORS_W83793=m 141 - CONFIG_SENSORS_W83L785TS=m 155 + # CONFIG_HWMON is not set 142 156 CONFIG_WATCHDOG=y 143 157 CONFIG_WATCHDOG_NOWAYOUT=y 144 158 CONFIG_AT91RM9200_WATCHDOG=y ··· 120 194 CONFIG_LCD_CLASS_DEVICE=y 121 195 CONFIG_BACKLIGHT_CLASS_DEVICE=y 122 196 # CONFIG_BACKLIGHT_GENERIC is not set 123 - CONFIG_DISPLAY_SUPPORT=y 124 197 CONFIG_FRAMEBUFFER_CONSOLE=y 125 198 CONFIG_FONTS=y 126 - CONFIG_FONT_MINI_4x6=y 127 199 CONFIG_LOGO=y 128 - # CONFIG_LOGO_LINUX_MONO is not set 129 - # CONFIG_LOGO_LINUX_VGA16 is not set 130 200 CONFIG_USB=y 131 - CONFIG_USB_DEVICEFS=y 132 - # CONFIG_USB_DEVICE_CLASS is not set 133 - CONFIG_USB_MON=y 134 201 CONFIG_USB_OHCI_HCD=y 135 - CONFIG_USB_ACM=m 136 - CONFIG_USB_PRINTER=m 137 - CONFIG_USB_STORAGE=y 138 - CONFIG_USB_SERIAL=y 139 - CONFIG_USB_SERIAL_CONSOLE=y 140 - CONFIG_USB_SERIAL_GENERIC=y 141 - CONFIG_USB_SERIAL_FTDI_SIO=y 142 - CONFIG_USB_SERIAL_KEYSPAN=y 143 - CONFIG_USB_SERIAL_KEYSPAN_MPR=y 144 - CONFIG_USB_SERIAL_KEYSPAN_USA28=y 145 - CONFIG_USB_SERIAL_KEYSPAN_USA28X=y 146 - CONFIG_USB_SERIAL_KEYSPAN_USA28XA=y 147 - CONFIG_USB_SERIAL_KEYSPAN_USA28XB=y 148 - CONFIG_USB_SERIAL_KEYSPAN_USA19=y 149 - CONFIG_USB_SERIAL_KEYSPAN_USA18X=y 150 - CONFIG_USB_SERIAL_KEYSPAN_USA19W=y 151 - CONFIG_USB_SERIAL_KEYSPAN_USA19QW=y 152 - CONFIG_USB_SERIAL_KEYSPAN_USA19QI=y 153 - CONFIG_USB_SERIAL_KEYSPAN_USA49W=y 154 - CONFIG_USB_SERIAL_KEYSPAN_USA49WLC=y 155 - CONFIG_USB_SERIAL_MCT_U232=y 156 - CONFIG_USB_SERIAL_PL2303=y 157 202 CONFIG_USB_GADGET=y 158 - CONFIG_USB_ETH=m 159 - CONFIG_USB_MASS_STORAGE=m 203 + CONFIG_USB_AT91=y 204 + CONFIG_USB_G_SERIAL=y 160 205 CONFIG_MMC=y 161 206 CONFIG_MMC_ATMELMCI=y 162 207 CONFIG_NEW_LEDS=y ··· 137 240 CONFIG_LEDS_TRIGGER_TIMER=y 138 241 CONFIG_LEDS_TRIGGER_HEARTBEAT=y 139 242 CONFIG_LEDS_TRIGGER_GPIO=y 140 - CONFIG_LEDS_TRIGGER_DEFAULT_ON=y 141 243 CONFIG_RTC_CLASS=y 142 - # CONFIG_RTC_HCTOSYS is not set 143 - CONFIG_RTC_DRV_DS1307=y 144 - CONFIG_RTC_DRV_PCF8563=y 145 244 CONFIG_RTC_DRV_AT91RM9200=y 146 - CONFIG_EXT2_FS=y 147 - CONFIG_EXT2_FS_XATTR=y 148 - CONFIG_EXT3_FS=y 149 - # CONFIG_EXT3_FS_XATTR is not set 150 - CONFIG_REISERFS_FS=y 245 + CONFIG_EXT4_FS=y 151 246 CONFIG_AUTOFS4_FS=y 152 - CONFIG_ISO9660_FS=y 153 - CONFIG_JOLIET=y 154 - CONFIG_ZISOFS=y 155 - CONFIG_UDF_FS=y 156 - CONFIG_MSDOS_FS=y 157 247 CONFIG_VFAT_FS=y 158 - CONFIG_NTFS_FS=m 159 248 CONFIG_TMPFS=y 160 - CONFIG_CONFIGFS_FS=y 161 - CONFIG_JFFS2_FS=y 162 - CONFIG_JFFS2_SUMMARY=y 163 - CONFIG_JFFS2_COMPRESSION_OPTIONS=y 164 - CONFIG_JFFS2_LZO=y 165 - CONFIG_JFFS2_RUBIN=y 166 - CONFIG_CRAMFS=y 167 - CONFIG_MINIX_FS=y 249 + CONFIG_UBIFS_FS=y 250 + CONFIG_UBIFS_FS_ADVANCED_COMPR=y 168 251 CONFIG_NFS_FS=y 169 - CONFIG_NFS_V3=y 170 - CONFIG_NFS_V3_ACL=y 171 - CONFIG_NFS_V4=y 172 252 CONFIG_ROOT_NFS=y 173 - CONFIG_NFSD=y 174 - CONFIG_CIFS=m 175 - CONFIG_PARTITION_ADVANCED=y 176 - CONFIG_MAC_PARTITION=y 177 253 CONFIG_NLS_CODEPAGE_437=y 178 - CONFIG_NLS_CODEPAGE_737=m 179 - CONFIG_NLS_CODEPAGE_775=m 180 - CONFIG_NLS_CODEPAGE_850=m 181 - CONFIG_NLS_CODEPAGE_852=m 182 - CONFIG_NLS_CODEPAGE_855=m 183 - CONFIG_NLS_CODEPAGE_857=m 184 - CONFIG_NLS_CODEPAGE_860=m 185 - CONFIG_NLS_CODEPAGE_861=m 186 - CONFIG_NLS_CODEPAGE_862=m 187 - CONFIG_NLS_CODEPAGE_863=m 188 - CONFIG_NLS_CODEPAGE_864=m 189 - CONFIG_NLS_CODEPAGE_865=m 190 - CONFIG_NLS_CODEPAGE_866=m 191 - CONFIG_NLS_CODEPAGE_869=m 192 - CONFIG_NLS_CODEPAGE_936=m 193 - CONFIG_NLS_CODEPAGE_950=m 194 - CONFIG_NLS_CODEPAGE_932=m 195 - CONFIG_NLS_CODEPAGE_949=m 196 - CONFIG_NLS_CODEPAGE_874=m 197 - CONFIG_NLS_ISO8859_8=m 198 - CONFIG_NLS_CODEPAGE_1250=m 199 - CONFIG_NLS_CODEPAGE_1251=m 200 - CONFIG_NLS_ASCII=m 254 + CONFIG_NLS_CODEPAGE_850=y 201 255 CONFIG_NLS_ISO8859_1=y 202 - CONFIG_NLS_ISO8859_2=m 203 - CONFIG_NLS_ISO8859_3=m 204 - CONFIG_NLS_ISO8859_4=m 205 - CONFIG_NLS_ISO8859_5=m 206 - CONFIG_NLS_ISO8859_6=m 207 - CONFIG_NLS_ISO8859_7=m 208 - CONFIG_NLS_ISO8859_9=m 209 - CONFIG_NLS_ISO8859_13=m 210 - CONFIG_NLS_ISO8859_14=m 211 - CONFIG_NLS_ISO8859_15=m 212 - CONFIG_NLS_KOI8_R=m 213 - CONFIG_NLS_KOI8_U=m 214 256 CONFIG_NLS_UTF8=y 215 257 CONFIG_MAGIC_SYSRQ=y 216 258 CONFIG_DEBUG_FS=y 217 259 CONFIG_DEBUG_KERNEL=y 218 260 # CONFIG_FTRACE is not set 261 + CONFIG_DEBUG_USER=y 262 + CONFIG_DEBUG_LL=y 263 + CONFIG_EARLY_PRINTK=y 219 264 CONFIG_CRYPTO_PCBC=y 220 265 CONFIG_CRYPTO_SHA1=y 266 + CONFIG_XZ_DEC_ARMTHUMB=y
+78 -13
arch/arm/configs/at91sam9260_defconfig arch/arm/configs/at91sam9260_9g20_defconfig
··· 1 - CONFIG_EXPERIMENTAL=y 2 1 # CONFIG_LOCALVERSION_AUTO is not set 3 2 # CONFIG_SWAP is not set 4 3 CONFIG_SYSVIPC=y ··· 11 12 # CONFIG_IOSCHED_CFQ is not set 12 13 CONFIG_ARCH_AT91=y 13 14 CONFIG_ARCH_AT91SAM9260=y 14 - CONFIG_ARCH_AT91SAM9260_SAM9XE=y 15 15 CONFIG_MACH_AT91SAM9260EK=y 16 16 CONFIG_MACH_CAM60=y 17 17 CONFIG_MACH_SAM9_L9260=y ··· 19 21 CONFIG_MACH_QIL_A9260=y 20 22 CONFIG_MACH_CPU9260=y 21 23 CONFIG_MACH_FLEXIBITY=y 24 + CONFIG_MACH_AT91SAM9G20EK=y 25 + CONFIG_MACH_AT91SAM9G20EK_2MMC=y 26 + CONFIG_MACH_CPU9G20=y 27 + CONFIG_MACH_ACMENETUSFOXG20=y 28 + CONFIG_MACH_PORTUXG20=y 29 + CONFIG_MACH_STAMP9G20=y 30 + CONFIG_MACH_PCONTROL_G20=y 31 + CONFIG_MACH_GSIA18S=y 22 32 CONFIG_MACH_SNAPPER_9260=y 23 33 CONFIG_MACH_AT91SAM9_DT=y 24 34 CONFIG_AT91_PROGRAMMABLE_CLOCKS=y 35 + CONFIG_AT91_SLOW_CLOCK=y 25 36 # CONFIG_ARM_THUMB is not set 37 + CONFIG_AEABI=y 38 + CONFIG_LEDS=y 39 + CONFIG_LEDS_CPU=y 26 40 CONFIG_ZBOOT_ROM_TEXT=0x0 27 41 CONFIG_ZBOOT_ROM_BSS=0x0 28 42 CONFIG_ARM_APPENDED_DTB=y 29 43 CONFIG_ARM_ATAG_DTB_COMPAT=y 30 44 CONFIG_CMDLINE="mem=64M console=ttyS0,115200 initrd=0x21100000,3145728 root=/dev/ram0 rw" 45 + CONFIG_AUTO_ZRELADDR=y 31 46 CONFIG_FPE_NWFPE=y 32 47 CONFIG_NET=y 33 48 CONFIG_PACKET=y 34 49 CONFIG_UNIX=y 35 50 CONFIG_INET=y 36 51 CONFIG_IP_PNP=y 52 + CONFIG_IP_PNP_DHCP=y 37 53 CONFIG_IP_PNP_BOOTP=y 38 54 # CONFIG_INET_XFRM_MODE_TRANSPORT is not set 39 55 # CONFIG_INET_XFRM_MODE_TUNNEL is not set ··· 55 43 # CONFIG_INET_LRO is not set 56 44 # CONFIG_IPV6 is not set 57 45 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" 46 + CONFIG_DEVTMPFS=y 47 + CONFIG_DEVTMPFS_MOUNT=y 48 + CONFIG_MTD=y 49 + CONFIG_MTD_CMDLINE_PARTS=y 50 + CONFIG_MTD_OF_PARTS=y 51 + CONFIG_MTD_CHAR=y 52 + CONFIG_MTD_BLOCK=y 53 + CONFIG_MTD_DATAFLASH=y 54 + CONFIG_MTD_NAND=y 55 + CONFIG_MTD_NAND_ATMEL=y 56 + CONFIG_BLK_DEV_LOOP=y 58 57 CONFIG_BLK_DEV_RAM=y 59 58 CONFIG_BLK_DEV_RAM_SIZE=8192 59 + CONFIG_MISC_DEVICES=y 60 + CONFIG_EEPROM_AT25=y 60 61 CONFIG_SCSI=y 61 62 CONFIG_BLK_DEV_SD=y 62 63 CONFIG_SCSI_MULTI_LUN=y 64 + # CONFIG_SCSI_LOWLEVEL is not set 63 65 CONFIG_NETDEVICES=y 64 66 CONFIG_MII=y 65 67 CONFIG_MACB=y 68 + # CONFIG_NET_VENDOR_BROADCOM is not set 69 + # CONFIG_NET_VENDOR_CHELSIO is not set 70 + # CONFIG_NET_VENDOR_FARADAY is not set 71 + # CONFIG_NET_VENDOR_INTEL is not set 72 + # CONFIG_NET_VENDOR_MARVELL is not set 73 + # CONFIG_NET_VENDOR_MICREL is not set 74 + # CONFIG_NET_VENDOR_MICROCHIP is not set 75 + # CONFIG_NET_VENDOR_NATSEMI is not set 76 + # CONFIG_NET_VENDOR_SEEQ is not set 77 + # CONFIG_NET_VENDOR_SMSC is not set 78 + # CONFIG_NET_VENDOR_STMICRO is not set 79 + CONFIG_SMSC_PHY=y 66 80 # CONFIG_INPUT_MOUSEDEV_PSAUX is not set 67 - # CONFIG_INPUT_KEYBOARD is not set 81 + CONFIG_KEYBOARD_GPIO=y 68 82 # CONFIG_INPUT_MOUSE is not set 69 83 # CONFIG_SERIO is not set 70 84 CONFIG_SERIAL_ATMEL=y 71 85 CONFIG_SERIAL_ATMEL_CONSOLE=y 72 - # CONFIG_HW_RANDOM is not set 86 + CONFIG_HW_RANDOM=y 73 87 CONFIG_I2C=y 74 88 CONFIG_I2C_CHARDEV=y 75 89 CONFIG_I2C_GPIO=y 90 + CONFIG_SPI=y 91 + CONFIG_SPI_ATMEL=y 92 + CONFIG_SPI_SPIDEV=y 93 + CONFIG_GPIO_SYSFS=y 76 94 # CONFIG_HWMON is not set 77 95 CONFIG_WATCHDOG=y 78 96 CONFIG_WATCHDOG_NOWAYOUT=y 79 97 CONFIG_AT91SAM9X_WATCHDOG=y 80 - # CONFIG_USB_HID is not set 98 + CONFIG_SOUND=y 99 + CONFIG_SND=y 100 + CONFIG_SND_SEQUENCER=y 101 + CONFIG_SND_MIXER_OSS=y 102 + CONFIG_SND_PCM_OSS=y 103 + CONFIG_SND_SEQUENCER_OSS=y 104 + # CONFIG_SND_VERBOSE_PROCFS is not set 81 105 CONFIG_USB=y 82 106 CONFIG_USB_DEVICEFS=y 107 + # CONFIG_USB_DEVICE_CLASS is not set 83 108 CONFIG_USB_MON=y 84 109 CONFIG_USB_OHCI_HCD=y 85 110 CONFIG_USB_STORAGE=y 86 - CONFIG_USB_STORAGE_DEBUG=y 87 111 CONFIG_USB_GADGET=y 88 - CONFIG_USB_ZERO=m 89 - CONFIG_USB_GADGETFS=m 90 - CONFIG_USB_MASS_STORAGE=m 91 - CONFIG_USB_G_SERIAL=m 112 + CONFIG_USB_AT91=y 113 + CONFIG_USB_G_SERIAL=y 114 + CONFIG_MMC=y 115 + CONFIG_MMC_ATMELMCI=y 116 + CONFIG_MMC_SPI=y 117 + CONFIG_NEW_LEDS=y 118 + CONFIG_LEDS_CLASS=y 119 + CONFIG_LEDS_GPIO=y 120 + CONFIG_LEDS_TRIGGERS=y 121 + CONFIG_LEDS_TRIGGER_TIMER=y 122 + CONFIG_LEDS_TRIGGER_HEARTBEAT=y 92 123 CONFIG_RTC_CLASS=y 124 + CONFIG_RTC_DRV_RV3029C2=y 93 125 CONFIG_RTC_DRV_AT91SAM9=y 94 - CONFIG_EXT2_FS=y 126 + CONFIG_EXT4_FS=y 95 127 CONFIG_VFAT_FS=y 96 128 CONFIG_TMPFS=y 97 - CONFIG_CRAMFS=y 129 + CONFIG_UBIFS_FS=y 130 + CONFIG_UBIFS_FS_ADVANCED_COMPR=y 131 + CONFIG_NFS_FS=y 132 + CONFIG_ROOT_NFS=y 98 133 CONFIG_NLS_CODEPAGE_437=y 99 134 CONFIG_NLS_CODEPAGE_850=y 100 135 CONFIG_NLS_ISO8859_1=y 136 + CONFIG_NLS_ISO8859_15=y 137 + CONFIG_NLS_UTF8=y 138 + # CONFIG_ENABLE_WARN_DEPRECATED is not set 101 139 CONFIG_DEBUG_KERNEL=y 102 - CONFIG_DEBUG_USER=y 140 + CONFIG_DEBUG_INFO=y 141 + # CONFIG_FTRACE is not set 103 142 CONFIG_DEBUG_LL=y 143 + CONFIG_AT91_DEBUG_LL_DBGU0=y 144 + CONFIG_EARLY_PRINTK=y
-158
arch/arm/configs/at91sam9261_defconfig
··· 1 - CONFIG_EXPERIMENTAL=y 2 - # CONFIG_LOCALVERSION_AUTO is not set 3 - CONFIG_KERNEL_LZMA=y 4 - # CONFIG_SWAP is not set 5 - CONFIG_SYSVIPC=y 6 - CONFIG_IKCONFIG=y 7 - CONFIG_IKCONFIG_PROC=y 8 - CONFIG_LOG_BUF_SHIFT=14 9 - CONFIG_NAMESPACES=y 10 - CONFIG_EMBEDDED=y 11 - CONFIG_SLAB=y 12 - CONFIG_MODULES=y 13 - CONFIG_MODULE_UNLOAD=y 14 - # CONFIG_BLK_DEV_BSG is not set 15 - # CONFIG_IOSCHED_DEADLINE is not set 16 - # CONFIG_IOSCHED_CFQ is not set 17 - CONFIG_ARCH_AT91=y 18 - CONFIG_ARCH_AT91SAM9261=y 19 - CONFIG_MACH_AT91SAM9261EK=y 20 - CONFIG_AT91_PROGRAMMABLE_CLOCKS=y 21 - # CONFIG_ARM_THUMB is not set 22 - CONFIG_AEABI=y 23 - # CONFIG_OABI_COMPAT is not set 24 - CONFIG_ZBOOT_ROM_TEXT=0x0 25 - CONFIG_ZBOOT_ROM_BSS=0x0 26 - CONFIG_CMDLINE="mem=64M console=ttyS0,115200 initrd=0x21100000,3145728 root=/dev/ram0 rw" 27 - CONFIG_AUTO_ZRELADDR=y 28 - CONFIG_VFP=y 29 - # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set 30 - CONFIG_NET=y 31 - CONFIG_PACKET=y 32 - CONFIG_UNIX=y 33 - CONFIG_INET=y 34 - CONFIG_IP_MULTICAST=y 35 - CONFIG_IP_PNP=y 36 - CONFIG_IP_PNP_DHCP=y 37 - CONFIG_IP_PNP_BOOTP=y 38 - # CONFIG_INET_LRO is not set 39 - # CONFIG_IPV6 is not set 40 - CONFIG_CFG80211=y 41 - CONFIG_LIB80211=y 42 - CONFIG_MAC80211=y 43 - CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" 44 - CONFIG_MTD=y 45 - CONFIG_MTD_PARTITIONS=y 46 - CONFIG_MTD_CMDLINE_PARTS=y 47 - CONFIG_MTD_BLOCK=y 48 - CONFIG_MTD_NAND=y 49 - CONFIG_MTD_NAND_ATMEL=y 50 - CONFIG_MTD_UBI=y 51 - CONFIG_MTD_UBI_GLUEBI=y 52 - CONFIG_BLK_DEV_RAM=y 53 - CONFIG_BLK_DEV_RAM_SIZE=8192 54 - CONFIG_MISC_DEVICES=y 55 - CONFIG_ATMEL_TCLIB=y 56 - CONFIG_ATMEL_SSC=y 57 - CONFIG_SCSI=y 58 - CONFIG_BLK_DEV_SD=y 59 - CONFIG_SCSI_MULTI_LUN=y 60 - CONFIG_NETDEVICES=y 61 - CONFIG_NET_ETHERNET=y 62 - CONFIG_DM9000=y 63 - # CONFIG_NETDEV_1000 is not set 64 - # CONFIG_NETDEV_10000 is not set 65 - CONFIG_USB_ZD1201=m 66 - CONFIG_RTL8187=m 67 - CONFIG_LIBERTAS=m 68 - CONFIG_LIBERTAS_USB=m 69 - CONFIG_LIBERTAS_SDIO=m 70 - CONFIG_LIBERTAS_SPI=m 71 - CONFIG_RT2X00=m 72 - CONFIG_RT2500USB=m 73 - CONFIG_RT73USB=m 74 - CONFIG_ZD1211RW=m 75 - CONFIG_INPUT_POLLDEV=m 76 - # CONFIG_INPUT_MOUSEDEV_PSAUX is not set 77 - CONFIG_INPUT_MOUSEDEV_SCREEN_X=240 78 - CONFIG_INPUT_MOUSEDEV_SCREEN_Y=320 79 - CONFIG_INPUT_EVDEV=y 80 - # CONFIG_KEYBOARD_ATKBD is not set 81 - CONFIG_KEYBOARD_GPIO=y 82 - # CONFIG_INPUT_MOUSE is not set 83 - CONFIG_INPUT_TOUCHSCREEN=y 84 - CONFIG_TOUCHSCREEN_ADS7846=y 85 - CONFIG_DEVPTS_MULTIPLE_INSTANCES=y 86 - CONFIG_SERIAL_ATMEL=y 87 - CONFIG_SERIAL_ATMEL_CONSOLE=y 88 - CONFIG_HW_RANDOM=y 89 - CONFIG_I2C=y 90 - CONFIG_I2C_CHARDEV=y 91 - CONFIG_I2C_GPIO=y 92 - CONFIG_SPI=y 93 - CONFIG_SPI_ATMEL=y 94 - # CONFIG_HWMON is not set 95 - CONFIG_WATCHDOG=y 96 - CONFIG_WATCHDOG_NOWAYOUT=y 97 - CONFIG_AT91SAM9X_WATCHDOG=y 98 - CONFIG_FB=y 99 - CONFIG_FB_ATMEL=y 100 - CONFIG_BACKLIGHT_LCD_SUPPORT=y 101 - # CONFIG_LCD_CLASS_DEVICE is not set 102 - CONFIG_BACKLIGHT_CLASS_DEVICE=y 103 - CONFIG_BACKLIGHT_ATMEL_LCDC=y 104 - # CONFIG_BACKLIGHT_GENERIC is not set 105 - CONFIG_FRAMEBUFFER_CONSOLE=y 106 - CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y 107 - CONFIG_LOGO=y 108 - CONFIG_SOUND=y 109 - CONFIG_SND=y 110 - CONFIG_SND_SEQUENCER=y 111 - CONFIG_SND_MIXER_OSS=y 112 - CONFIG_SND_PCM_OSS=y 113 - # CONFIG_SND_SUPPORT_OLD_API is not set 114 - # CONFIG_SND_VERBOSE_PROCFS is not set 115 - # CONFIG_SND_DRIVERS is not set 116 - # CONFIG_SND_ARM is not set 117 - CONFIG_SND_AT73C213=y 118 - CONFIG_SND_USB_AUDIO=m 119 - # CONFIG_USB_HID is not set 120 - CONFIG_USB=y 121 - CONFIG_USB_DEVICEFS=y 122 - CONFIG_USB_OHCI_HCD=y 123 - CONFIG_USB_STORAGE=y 124 - CONFIG_USB_GADGET=y 125 - CONFIG_USB_ZERO=m 126 - CONFIG_USB_ETH=m 127 - CONFIG_USB_GADGETFS=m 128 - CONFIG_USB_MASS_STORAGE=m 129 - CONFIG_USB_G_SERIAL=m 130 - CONFIG_MMC=y 131 - CONFIG_MMC_ATMELMCI=m 132 - CONFIG_NEW_LEDS=y 133 - CONFIG_LEDS_CLASS=y 134 - CONFIG_LEDS_GPIO=y 135 - CONFIG_LEDS_TRIGGERS=y 136 - CONFIG_LEDS_TRIGGER_TIMER=y 137 - CONFIG_LEDS_TRIGGER_HEARTBEAT=y 138 - CONFIG_LEDS_TRIGGER_GPIO=y 139 - CONFIG_RTC_CLASS=y 140 - CONFIG_RTC_DRV_AT91SAM9=y 141 - CONFIG_MSDOS_FS=y 142 - CONFIG_VFAT_FS=y 143 - CONFIG_TMPFS=y 144 - CONFIG_UBIFS_FS=y 145 - CONFIG_UBIFS_FS_ADVANCED_COMPR=y 146 - CONFIG_SQUASHFS=y 147 - CONFIG_SQUASHFS_LZO=y 148 - CONFIG_SQUASHFS_XZ=y 149 - CONFIG_NFS_FS=y 150 - CONFIG_NFS_V3=y 151 - CONFIG_ROOT_NFS=y 152 - CONFIG_NLS_CODEPAGE_437=y 153 - CONFIG_NLS_CODEPAGE_850=y 154 - CONFIG_NLS_ISO8859_1=y 155 - CONFIG_NLS_ISO8859_15=y 156 - CONFIG_NLS_UTF8=y 157 - CONFIG_FTRACE=y 158 - CONFIG_CRC_CCITT=m
+13 -26
arch/arm/configs/at91sam9263_defconfig
··· 1 - CONFIG_EXPERIMENTAL=y 2 1 # CONFIG_LOCALVERSION_AUTO is not set 3 - CONFIG_KERNEL_LZMA=y 4 2 # CONFIG_SWAP is not set 5 3 CONFIG_SYSVIPC=y 6 4 CONFIG_IKCONFIG=y ··· 46 48 # CONFIG_INET_LRO is not set 47 49 # CONFIG_INET_DIAG is not set 48 50 CONFIG_IPV6=y 51 + # CONFIG_WIRELESS is not set 49 52 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" 53 + CONFIG_DEVTMPFS=y 54 + CONFIG_DEVTMPFS_MOUNT=y 50 55 CONFIG_MTD=y 51 - CONFIG_MTD_PARTITIONS=y 52 56 CONFIG_MTD_CMDLINE_PARTS=y 53 57 CONFIG_MTD_CHAR=y 54 58 CONFIG_MTD_BLOCK=y ··· 65 65 CONFIG_BLK_DEV_LOOP=y 66 66 CONFIG_BLK_DEV_RAM=y 67 67 CONFIG_BLK_DEV_RAM_SIZE=8192 68 - CONFIG_MISC_DEVICES=y 69 68 CONFIG_ATMEL_PWM=y 70 69 CONFIG_ATMEL_TCLIB=y 71 70 CONFIG_SCSI=y ··· 72 73 CONFIG_SCSI_MULTI_LUN=y 73 74 CONFIG_NETDEVICES=y 74 75 CONFIG_MII=y 75 - CONFIG_SMSC_PHY=y 76 - CONFIG_NET_ETHERNET=y 77 76 CONFIG_MACB=y 78 - # CONFIG_NETDEV_1000 is not set 79 - # CONFIG_NETDEV_10000 is not set 80 - CONFIG_USB_ZD1201=m 77 + CONFIG_SMSC_PHY=y 78 + # CONFIG_WLAN is not set 81 79 CONFIG_INPUT_POLLDEV=m 82 - # CONFIG_INPUT_MOUSEDEV_PSAUX is not set 83 - CONFIG_INPUT_MOUSEDEV_SCREEN_X=240 84 - CONFIG_INPUT_MOUSEDEV_SCREEN_Y=320 80 + # CONFIG_INPUT_MOUSEDEV is not set 85 81 CONFIG_INPUT_EVDEV=y 86 82 # CONFIG_KEYBOARD_ATKBD is not set 87 83 CONFIG_KEYBOARD_GPIO=y 88 84 # CONFIG_INPUT_MOUSE is not set 89 85 CONFIG_INPUT_TOUCHSCREEN=y 90 86 CONFIG_TOUCHSCREEN_ADS7846=y 91 - CONFIG_LEGACY_PTY_COUNT=4 87 + # CONFIG_LEGACY_PTYS is not set 92 88 CONFIG_SERIAL_ATMEL=y 93 89 CONFIG_SERIAL_ATMEL_CONSOLE=y 94 90 CONFIG_HW_RANDOM=y ··· 92 98 CONFIG_I2C_GPIO=y 93 99 CONFIG_SPI=y 94 100 CONFIG_SPI_ATMEL=y 101 + CONFIG_GPIO_SYSFS=y 95 102 # CONFIG_HWMON is not set 96 103 CONFIG_WATCHDOG=y 97 104 CONFIG_WATCHDOG_NOWAYOUT=y ··· 102 107 CONFIG_BACKLIGHT_LCD_SUPPORT=y 103 108 CONFIG_LCD_CLASS_DEVICE=y 104 109 CONFIG_BACKLIGHT_CLASS_DEVICE=y 105 - CONFIG_BACKLIGHT_ATMEL_LCDC=y 106 110 CONFIG_FRAMEBUFFER_CONSOLE=y 107 111 CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y 112 + CONFIG_FONTS=y 108 113 CONFIG_LOGO=y 109 114 CONFIG_SOUND=y 110 115 CONFIG_SND=y ··· 119 124 # CONFIG_SND_SPI is not set 120 125 CONFIG_SND_USB_AUDIO=m 121 126 CONFIG_USB=y 122 - CONFIG_USB_DEVICEFS=y 123 127 CONFIG_USB_MON=y 124 128 CONFIG_USB_OHCI_HCD=y 125 129 CONFIG_USB_STORAGE=y 126 130 CONFIG_USB_GADGET=y 127 - CONFIG_USB_ZERO=m 128 - CONFIG_USB_ETH=m 129 - CONFIG_USB_GADGETFS=m 130 - CONFIG_USB_MASS_STORAGE=m 131 - CONFIG_USB_G_SERIAL=m 131 + CONFIG_USB_ATMEL_USBA=y 132 + CONFIG_USB_G_SERIAL=y 132 133 CONFIG_MMC=y 133 134 CONFIG_SDIO_UART=m 134 135 CONFIG_MMC_ATMELMCI=m ··· 136 145 CONFIG_LEDS_TRIGGER_HEARTBEAT=y 137 146 CONFIG_RTC_CLASS=y 138 147 CONFIG_RTC_DRV_AT91SAM9=y 139 - CONFIG_EXT2_FS=y 140 - CONFIG_FUSE_FS=m 148 + CONFIG_EXT4_FS=y 141 149 CONFIG_VFAT_FS=y 142 150 CONFIG_TMPFS=y 143 - CONFIG_JFFS2_FS=y 144 151 CONFIG_UBIFS_FS=y 145 152 CONFIG_UBIFS_FS_ADVANCED_COMPR=y 146 - CONFIG_CRAMFS=y 147 153 CONFIG_NFS_FS=y 148 - CONFIG_NFS_V3=y 149 154 CONFIG_NFS_V3_ACL=y 150 155 CONFIG_NFS_V4=y 151 156 CONFIG_ROOT_NFS=y 152 157 CONFIG_NLS_CODEPAGE_437=y 153 158 CONFIG_NLS_CODEPAGE_850=y 154 159 CONFIG_NLS_ISO8859_1=y 155 - CONFIG_FTRACE=y 160 + CONFIG_NLS_UTF8=y 156 161 CONFIG_DEBUG_USER=y 157 162 CONFIG_XZ_DEC=y
+68 -46
arch/arm/configs/at91sam9g20_defconfig arch/arm/configs/at91sam9261_9g10_defconfig
··· 1 1 CONFIG_EXPERIMENTAL=y 2 2 # CONFIG_LOCALVERSION_AUTO is not set 3 + CONFIG_KERNEL_LZMA=y 3 4 # CONFIG_SWAP is not set 4 5 CONFIG_SYSVIPC=y 6 + CONFIG_IKCONFIG=y 7 + CONFIG_IKCONFIG_PROC=y 5 8 CONFIG_LOG_BUF_SHIFT=14 6 - CONFIG_BLK_DEV_INITRD=y 9 + CONFIG_NAMESPACES=y 10 + CONFIG_EMBEDDED=y 7 11 CONFIG_SLAB=y 8 12 CONFIG_MODULES=y 9 13 CONFIG_MODULE_UNLOAD=y ··· 15 11 # CONFIG_IOSCHED_DEADLINE is not set 16 12 # CONFIG_IOSCHED_CFQ is not set 17 13 CONFIG_ARCH_AT91=y 18 - CONFIG_ARCH_AT91SAM9G20=y 19 - CONFIG_MACH_AT91SAM9G20EK=y 20 - CONFIG_MACH_AT91SAM9G20EK_2MMC=y 21 - CONFIG_MACH_CPU9G20=y 22 - CONFIG_MACH_ACMENETUSFOXG20=y 23 - CONFIG_MACH_PORTUXG20=y 24 - CONFIG_MACH_STAMP9G20=y 25 - CONFIG_MACH_PCONTROL_G20=y 26 - CONFIG_MACH_GSIA18S=y 27 - CONFIG_MACH_USB_A9G20=y 28 - CONFIG_MACH_SNAPPER_9260=y 29 - CONFIG_MACH_AT91SAM9_DT=y 14 + CONFIG_ARCH_AT91SAM9261=y 15 + CONFIG_MACH_AT91SAM9261EK=y 16 + CONFIG_MACH_AT91SAM9G10EK=y 30 17 CONFIG_AT91_PROGRAMMABLE_CLOCKS=y 31 18 # CONFIG_ARM_THUMB is not set 32 19 CONFIG_AEABI=y 33 - CONFIG_LEDS=y 34 - CONFIG_LEDS_CPU=y 20 + # CONFIG_OABI_COMPAT is not set 35 21 CONFIG_ZBOOT_ROM_TEXT=0x0 36 22 CONFIG_ZBOOT_ROM_BSS=0x0 37 - CONFIG_ARM_APPENDED_DTB=y 38 - CONFIG_ARM_ATAG_DTB_COMPAT=y 39 23 CONFIG_CMDLINE="mem=64M console=ttyS0,115200 initrd=0x21100000,3145728 root=/dev/ram0 rw" 40 - CONFIG_FPE_NWFPE=y 24 + CONFIG_AUTO_ZRELADDR=y 25 + CONFIG_VFP=y 26 + # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set 41 27 CONFIG_NET=y 42 28 CONFIG_PACKET=y 43 29 CONFIG_UNIX=y 44 30 CONFIG_INET=y 31 + CONFIG_IP_MULTICAST=y 45 32 CONFIG_IP_PNP=y 33 + CONFIG_IP_PNP_DHCP=y 46 34 CONFIG_IP_PNP_BOOTP=y 47 - # CONFIG_INET_XFRM_MODE_TRANSPORT is not set 48 - # CONFIG_INET_XFRM_MODE_TUNNEL is not set 49 - # CONFIG_INET_XFRM_MODE_BEET is not set 50 35 # CONFIG_INET_LRO is not set 51 36 # CONFIG_IPV6 is not set 37 + CONFIG_CFG80211=y 38 + CONFIG_MAC80211=y 52 39 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" 40 + CONFIG_DEVTMPFS=y 41 + CONFIG_DEVTMPFS_MOUNT=y 53 42 CONFIG_MTD=y 54 43 CONFIG_MTD_CMDLINE_PARTS=y 55 - CONFIG_MTD_CHAR=y 56 44 CONFIG_MTD_BLOCK=y 57 - CONFIG_MTD_DATAFLASH=y 58 45 CONFIG_MTD_NAND=y 59 46 CONFIG_MTD_NAND_ATMEL=y 60 - CONFIG_BLK_DEV_LOOP=y 47 + CONFIG_MTD_UBI=y 48 + CONFIG_MTD_UBI_GLUEBI=y 61 49 CONFIG_BLK_DEV_RAM=y 62 50 CONFIG_BLK_DEV_RAM_SIZE=8192 51 + CONFIG_ATMEL_TCLIB=y 52 + CONFIG_ATMEL_SSC=y 63 53 CONFIG_SCSI=y 64 54 CONFIG_BLK_DEV_SD=y 65 55 CONFIG_SCSI_MULTI_LUN=y 66 - # CONFIG_SCSI_LOWLEVEL is not set 67 56 CONFIG_NETDEVICES=y 68 - CONFIG_MII=y 69 - CONFIG_MACB=y 57 + CONFIG_DM9000=y 58 + CONFIG_USB_ZD1201=m 59 + CONFIG_RTL8187=m 60 + CONFIG_LIBERTAS=m 61 + CONFIG_LIBERTAS_USB=m 62 + CONFIG_LIBERTAS_SDIO=m 63 + CONFIG_LIBERTAS_SPI=m 64 + CONFIG_RT2X00=m 65 + CONFIG_RT2500USB=m 66 + CONFIG_RT73USB=m 67 + CONFIG_ZD1211RW=m 68 + CONFIG_INPUT_POLLDEV=m 70 69 # CONFIG_INPUT_MOUSEDEV_PSAUX is not set 71 - CONFIG_INPUT_MOUSEDEV_SCREEN_X=320 72 - CONFIG_INPUT_MOUSEDEV_SCREEN_Y=240 70 + CONFIG_INPUT_MOUSEDEV_SCREEN_X=240 71 + CONFIG_INPUT_MOUSEDEV_SCREEN_Y=320 73 72 CONFIG_INPUT_EVDEV=y 74 73 # CONFIG_KEYBOARD_ATKBD is not set 75 74 CONFIG_KEYBOARD_GPIO=y 76 75 # CONFIG_INPUT_MOUSE is not set 77 - CONFIG_LEGACY_PTY_COUNT=16 76 + CONFIG_INPUT_TOUCHSCREEN=y 77 + CONFIG_TOUCHSCREEN_ADS7846=y 78 + CONFIG_DEVPTS_MULTIPLE_INSTANCES=y 78 79 CONFIG_SERIAL_ATMEL=y 79 80 CONFIG_SERIAL_ATMEL_CONSOLE=y 80 81 CONFIG_HW_RANDOM=y 81 82 CONFIG_I2C=y 83 + CONFIG_I2C_CHARDEV=y 82 84 CONFIG_I2C_GPIO=y 83 85 CONFIG_SPI=y 84 86 CONFIG_SPI_ATMEL=y 85 - CONFIG_SPI_SPIDEV=y 86 87 # CONFIG_HWMON is not set 88 + CONFIG_WATCHDOG=y 89 + CONFIG_WATCHDOG_NOWAYOUT=y 90 + CONFIG_AT91SAM9X_WATCHDOG=y 91 + CONFIG_FB=y 92 + CONFIG_FB_ATMEL=y 93 + CONFIG_BACKLIGHT_LCD_SUPPORT=y 94 + # CONFIG_LCD_CLASS_DEVICE is not set 95 + CONFIG_BACKLIGHT_CLASS_DEVICE=y 96 + CONFIG_BACKLIGHT_ATMEL_LCDC=y 97 + # CONFIG_BACKLIGHT_GENERIC is not set 98 + CONFIG_FRAMEBUFFER_CONSOLE=y 99 + CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y 100 + CONFIG_LOGO=y 87 101 CONFIG_SOUND=y 88 102 CONFIG_SND=y 89 103 CONFIG_SND_SEQUENCER=y 90 104 CONFIG_SND_MIXER_OSS=y 91 105 CONFIG_SND_PCM_OSS=y 92 - CONFIG_SND_SEQUENCER_OSS=y 106 + # CONFIG_SND_SUPPORT_OLD_API is not set 93 107 # CONFIG_SND_VERBOSE_PROCFS is not set 108 + # CONFIG_SND_DRIVERS is not set 109 + # CONFIG_SND_ARM is not set 110 + CONFIG_SND_AT73C213=y 111 + CONFIG_SND_USB_AUDIO=m 112 + # CONFIG_USB_HID is not set 94 113 CONFIG_USB=y 95 - CONFIG_USB_DEVICEFS=y 96 - # CONFIG_USB_DEVICE_CLASS is not set 97 - CONFIG_USB_MON=y 98 114 CONFIG_USB_OHCI_HCD=y 99 115 CONFIG_USB_STORAGE=y 100 116 CONFIG_USB_GADGET=y 101 - CONFIG_USB_ZERO=m 102 - CONFIG_USB_GADGETFS=m 103 - CONFIG_USB_MASS_STORAGE=m 104 - CONFIG_USB_G_SERIAL=m 117 + CONFIG_USB_AT91=y 118 + CONFIG_USB_G_SERIAL=y 105 119 CONFIG_MMC=y 106 120 CONFIG_MMC_ATMELMCI=m 107 121 CONFIG_NEW_LEDS=y ··· 128 106 CONFIG_LEDS_TRIGGERS=y 129 107 CONFIG_LEDS_TRIGGER_TIMER=y 130 108 CONFIG_LEDS_TRIGGER_HEARTBEAT=y 109 + CONFIG_LEDS_TRIGGER_GPIO=y 131 110 CONFIG_RTC_CLASS=y 132 - CONFIG_RTC_DRV_RV3029C2=y 133 111 CONFIG_RTC_DRV_AT91SAM9=y 134 - CONFIG_EXT2_FS=y 135 112 CONFIG_MSDOS_FS=y 136 113 CONFIG_VFAT_FS=y 137 114 CONFIG_TMPFS=y 138 - CONFIG_JFFS2_FS=y 139 - CONFIG_JFFS2_SUMMARY=y 140 - CONFIG_CRAMFS=y 115 + CONFIG_UBIFS_FS=y 116 + CONFIG_UBIFS_FS_ADVANCED_COMPR=y 117 + CONFIG_SQUASHFS=y 118 + CONFIG_SQUASHFS_LZO=y 119 + CONFIG_SQUASHFS_XZ=y 141 120 CONFIG_NFS_FS=y 142 - CONFIG_NFS_V3=y 143 121 CONFIG_ROOT_NFS=y 144 122 CONFIG_NLS_CODEPAGE_437=y 145 123 CONFIG_NLS_CODEPAGE_850=y 146 124 CONFIG_NLS_ISO8859_1=y 147 125 CONFIG_NLS_ISO8859_15=y 148 126 CONFIG_NLS_UTF8=y 149 - # CONFIG_ENABLE_WARN_DEPRECATED is not set 127 + CONFIG_CRC_CCITT=m
+28 -66
arch/arm/configs/at91sam9g45_defconfig
··· 1 - CONFIG_EXPERIMENTAL=y 2 1 # CONFIG_LOCALVERSION_AUTO is not set 3 2 # CONFIG_SWAP is not set 4 3 CONFIG_SYSVIPC=y ··· 22 23 CONFIG_AT91_SLOW_CLOCK=y 23 24 CONFIG_AEABI=y 24 25 # CONFIG_OABI_COMPAT is not set 25 - CONFIG_LEDS=y 26 - CONFIG_LEDS_CPU=y 27 26 CONFIG_UACCESS_WITH_MEMCPY=y 28 27 CONFIG_ZBOOT_ROM_TEXT=0x0 29 28 CONFIG_ZBOOT_ROM_BSS=0x0 ··· 33 36 CONFIG_UNIX=y 34 37 CONFIG_INET=y 35 38 CONFIG_IP_MULTICAST=y 39 + CONFIG_IP_PNP=y 40 + CONFIG_IP_PNP_DHCP=y 41 + CONFIG_IP_PNP_BOOTP=y 36 42 # CONFIG_INET_XFRM_MODE_TRANSPORT is not set 37 43 # CONFIG_INET_XFRM_MODE_TUNNEL is not set 38 44 # CONFIG_INET_XFRM_MODE_BEET is not set ··· 45 45 # CONFIG_INET6_XFRM_MODE_TUNNEL is not set 46 46 # CONFIG_INET6_XFRM_MODE_BEET is not set 47 47 CONFIG_IPV6_SIT_6RD=y 48 - CONFIG_CFG80211=y 49 - CONFIG_LIB80211=y 50 - CONFIG_MAC80211=y 51 48 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" 52 49 CONFIG_DEVTMPFS=y 53 50 CONFIG_DEVTMPFS_MOUNT=y ··· 58 61 CONFIG_MTD_NAND=y 59 62 CONFIG_MTD_NAND_ATMEL=y 60 63 CONFIG_MTD_UBI=y 64 + CONFIG_MTD_UBI_GLUEBI=y 61 65 CONFIG_BLK_DEV_LOOP=y 62 66 CONFIG_BLK_DEV_RAM=y 63 67 CONFIG_BLK_DEV_RAM_COUNT=4 64 68 CONFIG_BLK_DEV_RAM_SIZE=8192 65 - CONFIG_MISC_DEVICES=y 66 69 CONFIG_ATMEL_PWM=y 67 70 CONFIG_ATMEL_TCLIB=y 71 + CONFIG_ATMEL_SSC=y 68 72 CONFIG_SCSI=y 69 73 CONFIG_BLK_DEV_SD=y 70 74 CONFIG_SCSI_MULTI_LUN=y ··· 74 76 CONFIG_MII=y 75 77 CONFIG_MACB=y 76 78 CONFIG_DAVICOM_PHY=y 77 - CONFIG_LIBERTAS_THINFIRM=m 78 - CONFIG_LIBERTAS_THINFIRM_USB=m 79 - CONFIG_AT76C50X_USB=m 80 - CONFIG_USB_ZD1201=m 81 - CONFIG_RTL8187=m 82 - CONFIG_ATH_COMMON=m 83 - CONFIG_ATH9K=m 84 - CONFIG_CARL9170=m 85 - CONFIG_B43=m 86 - CONFIG_B43_PHY_N=y 87 - CONFIG_LIBERTAS=m 88 - CONFIG_LIBERTAS_USB=m 89 - CONFIG_LIBERTAS_SDIO=m 90 - CONFIG_LIBERTAS_SPI=m 91 - CONFIG_RT2X00=m 92 - CONFIG_RT2500USB=m 93 - CONFIG_RT73USB=m 94 - CONFIG_RT2800USB=m 95 - CONFIG_RT2800USB_RT53XX=y 96 - CONFIG_RT2800USB_UNKNOWN=y 97 - CONFIG_RTL8192CU=m 98 - CONFIG_WL1251=m 99 - CONFIG_WL1251_SDIO=m 100 - CONFIG_WL12XX_MENU=m 101 - CONFIG_WL12XX=m 102 - CONFIG_WL12XX_SDIO=m 103 - CONFIG_ZD1211RW=m 104 - CONFIG_MWIFIEX=m 105 - CONFIG_MWIFIEX_SDIO=m 106 - CONFIG_INPUT_POLLDEV=m 107 - # CONFIG_INPUT_MOUSEDEV_PSAUX is not set 108 - CONFIG_INPUT_MOUSEDEV_SCREEN_X=480 109 - CONFIG_INPUT_MOUSEDEV_SCREEN_Y=272 79 + # CONFIG_INPUT_MOUSEDEV is not set 110 80 CONFIG_INPUT_JOYDEV=y 111 81 CONFIG_INPUT_EVDEV=y 112 82 # CONFIG_KEYBOARD_ATKBD is not set 113 - CONFIG_KEYBOARD_QT1070=m 114 - CONFIG_KEYBOARD_QT2160=m 83 + CONFIG_KEYBOARD_QT1070=y 84 + CONFIG_KEYBOARD_QT2160=y 115 85 CONFIG_KEYBOARD_GPIO=y 116 86 # CONFIG_INPUT_MOUSE is not set 117 87 CONFIG_INPUT_TOUCHSCREEN=y 118 88 CONFIG_TOUCHSCREEN_ATMEL_MXT=m 119 89 CONFIG_TOUCHSCREEN_ATMEL_TSADCC=y 120 90 # CONFIG_SERIO is not set 121 - CONFIG_LEGACY_PTY_COUNT=4 91 + # CONFIG_LEGACY_PTYS is not set 122 92 CONFIG_SERIAL_ATMEL=y 123 93 CONFIG_SERIAL_ATMEL_CONSOLE=y 124 94 CONFIG_HW_RANDOM=y 125 95 CONFIG_I2C=y 96 + CONFIG_I2C_CHARDEV=y 126 97 CONFIG_I2C_GPIO=y 127 98 CONFIG_SPI=y 128 99 CONFIG_SPI_ATMEL=y 129 100 # CONFIG_HWMON is not set 130 101 CONFIG_FB=y 131 102 CONFIG_FB_ATMEL=y 132 - CONFIG_FB_UDL=m 133 103 CONFIG_BACKLIGHT_LCD_SUPPORT=y 134 - # CONFIG_LCD_CLASS_DEVICE is not set 104 + CONFIG_LCD_CLASS_DEVICE=y 135 105 CONFIG_BACKLIGHT_CLASS_DEVICE=y 136 106 CONFIG_BACKLIGHT_ATMEL_LCDC=y 107 + CONFIG_BACKLIGHT_ATMEL_PWM=y 137 108 # CONFIG_BACKLIGHT_GENERIC is not set 109 + CONFIG_FRAMEBUFFER_CONSOLE=y 110 + CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y 111 + CONFIG_FONTS=y 112 + CONFIG_LOGO=y 138 113 CONFIG_SOUND=y 139 114 CONFIG_SND=y 140 115 CONFIG_SND_SEQUENCER=y ··· 119 148 # CONFIG_SND_ARM is not set 120 149 CONFIG_SND_ATMEL_AC97C=y 121 150 # CONFIG_SND_SPI is not set 122 - CONFIG_SND_USB_AUDIO=m 151 + # CONFIG_SND_USB is not set 123 152 # CONFIG_USB_HID is not set 124 153 CONFIG_USB=y 125 154 CONFIG_USB_ANNOUNCE_NEW_DEVICES=y 126 - CONFIG_USB_DEVICEFS=y 127 - # CONFIG_USB_DEVICE_CLASS is not set 128 155 CONFIG_USB_EHCI_HCD=y 129 156 CONFIG_USB_OHCI_HCD=y 130 157 CONFIG_USB_ACM=y 131 158 CONFIG_USB_STORAGE=y 132 159 CONFIG_USB_GADGET=y 133 - CONFIG_USB_ATMEL_USBA=m 134 - CONFIG_USB_ZERO=m 135 - CONFIG_USB_AUDIO=m 136 - CONFIG_USB_ETH=m 137 - CONFIG_USB_ETH_EEM=y 138 - CONFIG_USB_MASS_STORAGE=m 139 - CONFIG_USB_G_SERIAL=m 140 - CONFIG_USB_CDC_COMPOSITE=m 141 - CONFIG_USB_G_MULTI=m 160 + CONFIG_USB_ATMEL_USBA=y 161 + CONFIG_USB_G_MULTI=y 142 162 CONFIG_USB_G_MULTI_CDC=y 143 163 CONFIG_MMC=y 144 164 # CONFIG_MMC_BLOCK_BOUNCE is not set 145 - CONFIG_SDIO_UART=m 146 165 CONFIG_MMC_ATMELMCI=y 147 - CONFIG_LEDS_ATMEL_PWM=y 166 + CONFIG_NEW_LEDS=y 167 + CONFIG_LEDS_CLASS=y 148 168 CONFIG_LEDS_GPIO=y 169 + CONFIG_LEDS_TRIGGERS=y 149 170 CONFIG_LEDS_TRIGGER_TIMER=y 150 171 CONFIG_LEDS_TRIGGER_HEARTBEAT=y 151 172 CONFIG_LEDS_TRIGGER_GPIO=y ··· 147 184 CONFIG_AT_HDMAC=y 148 185 CONFIG_DMATEST=m 149 186 # CONFIG_IOMMU_SUPPORT is not set 150 - CONFIG_EXT2_FS=y 187 + CONFIG_EXT4_FS=y 151 188 CONFIG_FANOTIFY=y 152 189 CONFIG_VFAT_FS=y 153 190 CONFIG_TMPFS=y 154 - CONFIG_JFFS2_FS=y 155 - CONFIG_JFFS2_SUMMARY=y 156 - CONFIG_CRAMFS=m 157 - CONFIG_SQUASHFS=m 158 - CONFIG_SQUASHFS_EMBEDDED=y 191 + CONFIG_UBIFS_FS=y 192 + CONFIG_UBIFS_FS_ADVANCED_COMPR=y 159 193 CONFIG_NFS_FS=y 160 - CONFIG_NFS_V3=y 194 + CONFIG_ROOT_NFS=y 161 195 CONFIG_NLS_CODEPAGE_437=y 162 196 CONFIG_NLS_CODEPAGE_850=y 163 197 CONFIG_NLS_ISO8859_1=y ··· 163 203 CONFIG_DEBUG_MEMORY_INIT=y 164 204 # CONFIG_FTRACE is not set 165 205 CONFIG_DEBUG_USER=y 206 + CONFIG_DEBUG_LL=y 207 + CONFIG_EARLY_PRINTK=y 166 208 CONFIG_CRYPTO_ECB=y 167 209 # CONFIG_CRYPTO_ANSI_CPRNG is not set 168 210 CONFIG_CRYPTO_USER_API_HASH=m
+29 -6
arch/arm/configs/sama5_defconfig
··· 26 26 CONFIG_UACCESS_WITH_MEMCPY=y 27 27 CONFIG_ZBOOT_ROM_TEXT=0x0 28 28 CONFIG_ZBOOT_ROM_BSS=0x0 29 + CONFIG_ARM_APPENDED_DTB=y 29 30 CONFIG_CMDLINE="console=ttyS0,115200 initrd=0x21100000,25165824 root=/dev/ram0 rw" 31 + CONFIG_KEXEC=y 30 32 CONFIG_AUTO_ZRELADDR=y 31 33 CONFIG_VFP=y 32 34 # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set ··· 41 39 CONFIG_INET=y 42 40 CONFIG_IP_MULTICAST=y 43 41 CONFIG_IP_PNP=y 42 + CONFIG_IP_PNP_DHCP=y 43 + CONFIG_IP_PNP_BOOTP=y 44 + CONFIG_IP_PNP_RARP=y 44 45 # CONFIG_INET_XFRM_MODE_TRANSPORT is not set 45 46 # CONFIG_INET_XFRM_MODE_TUNNEL is not set 46 47 # CONFIG_INET_XFRM_MODE_BEET is not set ··· 73 68 CONFIG_MTD_NAND=y 74 69 CONFIG_MTD_NAND_ATMEL=y 75 70 CONFIG_MTD_UBI=y 71 + CONFIG_MTD_UBI_GLUEBI=y 72 + CONFIG_PROC_DEVICETREE=y 76 73 CONFIG_BLK_DEV_LOOP=y 77 74 CONFIG_BLK_DEV_RAM=y 78 75 CONFIG_BLK_DEV_RAM_COUNT=4 ··· 102 95 # CONFIG_NET_VENDOR_STMICRO is not set 103 96 # CONFIG_NET_VENDOR_WIZNET is not set 104 97 CONFIG_MICREL_PHY=y 105 - # CONFIG_WLAN is not set 98 + CONFIG_LIBERTAS_THINFIRM=m 99 + CONFIG_LIBERTAS_THINFIRM_USB=m 100 + CONFIG_RTL8187=m 101 + CONFIG_RT2X00=m 102 + CONFIG_RT2500USB=m 103 + CONFIG_RT73USB=m 104 + CONFIG_RT2800USB=m 105 + CONFIG_RT2800USB_RT53XX=y 106 + CONFIG_RT2800USB_RT55XX=y 107 + CONFIG_RT2800USB_UNKNOWN=y 108 + CONFIG_MWIFIEX=m 109 + CONFIG_MWIFIEX_SDIO=m 110 + CONFIG_MWIFIEX_USB=m 106 111 # CONFIG_INPUT_MOUSEDEV is not set 107 112 CONFIG_INPUT_EVDEV=y 108 113 # CONFIG_KEYBOARD_ATKBD is not set ··· 152 133 CONFIG_USB_OHCI_HCD=y 153 134 CONFIG_USB_ACM=y 154 135 CONFIG_USB_STORAGE=y 136 + CONFIG_USB_SERIAL=y 137 + CONFIG_USB_SERIAL_GENERIC=y 138 + CONFIG_USB_SERIAL_FTDI_SIO=y 139 + CONFIG_USB_SERIAL_PL2303=y 155 140 CONFIG_USB_GADGET=y 156 - CONFIG_USB_AT91=y 157 - CONFIG_USB_MASS_STORAGE=m 141 + CONFIG_USB_ATMEL_USBA=y 142 + CONFIG_USB_G_SERIAL=y 158 143 CONFIG_MMC=y 159 144 # CONFIG_MMC_BLOCK_BOUNCE is not set 160 145 CONFIG_MMC_ATMELMCI=y ··· 174 151 # CONFIG_IOMMU_SUPPORT is not set 175 152 CONFIG_IIO=y 176 153 CONFIG_AT91_ADC=y 177 - CONFIG_EXT2_FS=y 154 + CONFIG_EXT4_FS=y 178 155 CONFIG_FANOTIFY=y 179 156 CONFIG_VFAT_FS=y 180 157 CONFIG_TMPFS=y 181 - CONFIG_JFFS2_FS=y 182 - CONFIG_JFFS2_SUMMARY=y 183 158 CONFIG_UBIFS_FS=y 159 + CONFIG_UBIFS_FS_ADVANCED_COMPR=y 184 160 CONFIG_NFS_FS=y 185 161 CONFIG_ROOT_NFS=y 186 162 CONFIG_NLS_CODEPAGE_437=y 187 163 CONFIG_NLS_CODEPAGE_850=y 188 164 CONFIG_NLS_ISO8859_1=y 165 + CONFIG_NLS_UTF8=y 189 166 CONFIG_STRIP_ASM_SYMS=y 190 167 CONFIG_DEBUG_FS=y 191 168 # CONFIG_SCHED_DEBUG is not set
+71 -88
arch/arm/mach-at91/Kconfig.non_dt
··· 14 14 select SOC_AT91RM9200 15 15 16 16 config ARCH_AT91SAM9260 17 - bool "AT91SAM9260 or AT91SAM9XE" 17 + bool "AT91SAM9260 or AT91SAM9XE or AT91SAM9G20" 18 18 select SOC_AT91SAM9260 19 19 20 20 config ARCH_AT91SAM9261 21 - bool "AT91SAM9261" 22 - select SOC_AT91SAM9261 23 - 24 - config ARCH_AT91SAM9G10 25 - bool "AT91SAM9G10" 21 + bool "AT91SAM9261 or AT91SAM9G10" 26 22 select SOC_AT91SAM9261 27 23 28 24 config ARCH_AT91SAM9263 ··· 28 32 config ARCH_AT91SAM9RL 29 33 bool "AT91SAM9RL" 30 34 select SOC_AT91SAM9RL 31 - 32 - config ARCH_AT91SAM9G20 33 - bool "AT91SAM9G20" 34 - select SOC_AT91SAM9260 35 35 36 36 config ARCH_AT91SAM9G45 37 37 bool "AT91SAM9G45" ··· 41 49 select SPARSE_IRQ 42 50 43 51 endchoice 52 + 53 + config ARCH_AT91SAM9G20 54 + bool 55 + select ARCH_AT91SAM9260 56 + 57 + config ARCH_AT91SAM9G10 58 + bool 59 + select ARCH_AT91SAM9261 44 60 45 61 # ---------------------------------------------------------- 46 62 ··· 207 207 Select this if you are using Flexibity Connect board 208 208 <http://www.flexibity.com> 209 209 210 - endif 211 - 212 - # ---------------------------------------------------------- 213 - 214 - if ARCH_AT91SAM9261 215 - 216 - comment "AT91SAM9261 Board Type" 217 - 218 - config MACH_AT91SAM9261EK 219 - bool "Atmel AT91SAM9261-EK Evaluation Kit" 220 - select HAVE_AT91_DATAFLASH_CARD 221 - help 222 - Select this if you are using Atmel's AT91SAM9261-EK Evaluation Kit. 223 - <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820> 224 - 225 - endif 226 - 227 - # ---------------------------------------------------------- 228 - 229 - if ARCH_AT91SAM9G10 230 - 231 - comment "AT91SAM9G10 Board Type" 232 - 233 - config MACH_AT91SAM9G10EK 234 - bool "Atmel AT91SAM9G10-EK Evaluation Kit" 235 - select HAVE_AT91_DATAFLASH_CARD 236 - help 237 - Select this if you are using Atmel's AT91SAM9G10-EK Evaluation Kit. 238 - <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4588> 239 - 240 - endif 241 - 242 - # ---------------------------------------------------------- 243 - 244 - if ARCH_AT91SAM9263 245 - 246 - comment "AT91SAM9263 Board Type" 247 - 248 - config MACH_AT91SAM9263EK 249 - bool "Atmel AT91SAM9263-EK Evaluation Kit" 250 - select HAVE_AT91_DATAFLASH_CARD 251 - help 252 - Select this if you are using Atmel's AT91SAM9263-EK Evaluation Kit. 253 - <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4057> 254 - 255 - config MACH_USB_A9263 256 - bool "CALAO USB-A9263" 257 - help 258 - Select this if you are using a Calao Systems USB-A9263. 259 - <http://www.calao-systems.com> 260 - 261 - endif 262 - 263 - # ---------------------------------------------------------- 264 - 265 - if ARCH_AT91SAM9RL 266 - 267 - comment "AT91SAM9RL Board Type" 268 - 269 - config MACH_AT91SAM9RLEK 270 - bool "Atmel AT91SAM9RL-EK Evaluation Kit" 271 - help 272 - Select this if you are using Atmel's AT91SAM9RL-EK Evaluation Kit. 273 - 274 - endif 275 - 276 - # ---------------------------------------------------------- 277 - 278 - if ARCH_AT91SAM9G20 279 - 280 210 comment "AT91SAM9G20 Board Type" 281 211 282 212 config MACH_AT91SAM9G20EK ··· 271 341 Select this if you are using a Calao Systems USB-A9G20. 272 342 <http://www.calao-systems.com> 273 343 344 + config MACH_SNAPPER_9260 345 + bool "Bluewater Systems Snapper 9260/9G20 module" 346 + help 347 + Select this if you are using the Bluewater Systems Snapper 9260 or 348 + Snapper 9G20 modules. 349 + <http://www.bluewatersys.com/> 274 350 endif 275 351 276 - if (ARCH_AT91SAM9260 || ARCH_AT91SAM9G20) 277 - comment "AT91SAM9260/AT91SAM9G20 boards" 352 + # ---------------------------------------------------------- 278 353 279 - config MACH_SNAPPER_9260 280 - bool "Bluewater Systems Snapper 9260/9G20 module" 281 - help 282 - Select this if you are using the Bluewater Systems Snapper 9260 or 283 - Snapper 9G20 modules. 284 - <http://www.bluewatersys.com/> 354 + if ARCH_AT91SAM9261 355 + 356 + comment "AT91SAM9261 Board Type" 357 + 358 + config MACH_AT91SAM9261EK 359 + bool "Atmel AT91SAM9261-EK Evaluation Kit" 360 + select HAVE_AT91_DATAFLASH_CARD 361 + help 362 + Select this if you are using Atmel's AT91SAM9261-EK Evaluation Kit. 363 + <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820> 364 + 365 + comment "AT91SAM9G10 Board Type" 366 + 367 + config MACH_AT91SAM9G10EK 368 + bool "Atmel AT91SAM9G10-EK Evaluation Kit" 369 + select HAVE_AT91_DATAFLASH_CARD 370 + help 371 + Select this if you are using Atmel's AT91SAM9G10-EK Evaluation Kit. 372 + <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4588> 373 + 374 + endif 375 + 376 + # ---------------------------------------------------------- 377 + 378 + if ARCH_AT91SAM9263 379 + 380 + comment "AT91SAM9263 Board Type" 381 + 382 + config MACH_AT91SAM9263EK 383 + bool "Atmel AT91SAM9263-EK Evaluation Kit" 384 + select HAVE_AT91_DATAFLASH_CARD 385 + help 386 + Select this if you are using Atmel's AT91SAM9263-EK Evaluation Kit. 387 + <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4057> 388 + 389 + config MACH_USB_A9263 390 + bool "CALAO USB-A9263" 391 + help 392 + Select this if you are using a Calao Systems USB-A9263. 393 + <http://www.calao-systems.com> 394 + 395 + endif 396 + 397 + # ---------------------------------------------------------- 398 + 399 + if ARCH_AT91SAM9RL 400 + 401 + comment "AT91SAM9RL Board Type" 402 + 403 + config MACH_AT91SAM9RLEK 404 + bool "Atmel AT91SAM9RL-EK Evaluation Kit" 405 + help 406 + Select this if you are using Atmel's AT91SAM9RL-EK Evaluation Kit. 407 + 285 408 endif 286 409 287 410 # ----------------------------------------------------------
-2
arch/arm/mach-at91/Makefile
··· 27 27 obj-$(CONFIG_ARCH_AT91RM9200) += at91rm9200_devices.o 28 28 obj-$(CONFIG_ARCH_AT91SAM9260) += at91sam9260_devices.o 29 29 obj-$(CONFIG_ARCH_AT91SAM9261) += at91sam9261_devices.o 30 - obj-$(CONFIG_ARCH_AT91SAM9G10) += at91sam9261_devices.o 31 30 obj-$(CONFIG_ARCH_AT91SAM9263) += at91sam9263_devices.o 32 31 obj-$(CONFIG_ARCH_AT91SAM9RL) += at91sam9rl_devices.o 33 - obj-$(CONFIG_ARCH_AT91SAM9G20) += at91sam9260_devices.o 34 32 obj-$(CONFIG_ARCH_AT91SAM9G45) += at91sam9g45_devices.o 35 33 obj-$(CONFIG_ARCH_AT91X40) += at91x40.o at91x40_time.o 36 34
+14 -14
arch/arm/mach-at91/board-sam9261ek.c
··· 264 264 */ 265 265 static struct at73c213_board_info at73c213_data = { 266 266 .ssc_id = 1, 267 - #if defined(CONFIG_MACH_AT91SAM9261EK) 268 - .shortname = "AT91SAM9261-EK external DAC", 269 - #else 270 - .shortname = "AT91SAM9G10-EK external DAC", 271 - #endif 267 + .shortname = "AT91SAM9261/9G10-EK external DAC", 272 268 }; 273 269 274 270 #if defined(CONFIG_SND_AT73C213) || defined(CONFIG_SND_AT73C213_MODULE) ··· 408 412 .default_monspecs = &at91fb_default_stn_monspecs, 409 413 .atmel_lcdfb_power_control = at91_lcdc_stn_power_control, 410 414 .guard_time = 1, 411 - #if defined(CONFIG_MACH_AT91SAM9G10EK) 412 - .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB, 413 - #endif 414 415 }; 415 416 416 417 #else ··· 461 468 .default_monspecs = &at91fb_default_tft_monspecs, 462 469 .atmel_lcdfb_power_control = at91_lcdc_tft_power_control, 463 470 .guard_time = 1, 464 - #if defined(CONFIG_MACH_AT91SAM9G10EK) 465 - .lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB, 466 - #endif 467 471 }; 468 472 #endif 469 473 ··· 564 574 /* DBGU on ttyS0. (Rx & Tx only) */ 565 575 at91_register_uart(0, 0, 0); 566 576 at91_add_device_serial(); 577 + 578 + if (cpu_is_at91sam9g10()) 579 + ek_lcdc_data.lcd_wiring_mode = ATMEL_LCDC_WIRING_RGB; 580 + 567 581 /* USB Host */ 568 582 at91_add_device_usbh(&ek_usbh_data); 569 583 /* USB Device */ ··· 600 606 at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); 601 607 } 602 608 603 - #if defined(CONFIG_MACH_AT91SAM9261EK) 604 609 MACHINE_START(AT91SAM9261EK, "Atmel AT91SAM9261-EK") 605 - #else 610 + /* Maintainer: Atmel */ 611 + .init_time = at91sam926x_pit_init, 612 + .map_io = at91_map_io, 613 + .handle_irq = at91_aic_handle_irq, 614 + .init_early = ek_init_early, 615 + .init_irq = at91_init_irq_default, 616 + .init_machine = ek_board_init, 617 + MACHINE_END 618 + 606 619 MACHINE_START(AT91SAM9G10EK, "Atmel AT91SAM9G10-EK") 607 - #endif 608 620 /* Maintainer: Atmel */ 609 621 .init_time = at91sam926x_pit_init, 610 622 .map_io = at91_map_io,
+1 -1
drivers/usb/gadget/Kconfig
··· 155 155 156 156 config USB_ATMEL_USBA 157 157 tristate "Atmel USBA" 158 - depends on AVR32 || ARCH_AT91SAM9RL || ARCH_AT91SAM9G45 158 + depends on AVR32 || ARCH_AT91 159 159 help 160 160 USBA is the integrated high-speed USB Device controller on 161 161 the AT32AP700x, some AT91SAM9 and AT91CAP9 processors from Atmel.
+184 -80
drivers/usb/gadget/atmel_usba_udc.c
··· 22 22 #include <linux/usb/atmel_usba_udc.h> 23 23 #include <linux/delay.h> 24 24 #include <linux/platform_data/atmel.h> 25 + #include <linux/of.h> 26 + #include <linux/of_gpio.h> 25 27 26 28 #include <asm/gpio.h> 27 29 28 30 #include "atmel_usba_udc.h" 29 - 30 - 31 - static struct usba_udc the_udc; 32 - static struct usba_ep *usba_ep; 33 31 34 32 #ifdef CONFIG_USB_GADGET_DEBUG_FS 35 33 #include <linux/debugfs.h> ··· 1012 1014 1013 1015 } 1014 1016 1015 - static struct usba_udc the_udc = { 1016 - .gadget = { 1017 - .ops = &usba_udc_ops, 1018 - .ep_list = LIST_HEAD_INIT(the_udc.gadget.ep_list), 1019 - .max_speed = USB_SPEED_HIGH, 1020 - .name = "atmel_usba_udc", 1021 - .dev = { 1022 - .init_name = "gadget", 1023 - .release = nop_release, 1024 - }, 1017 + struct usb_gadget usba_gadget_template = { 1018 + .ops = &usba_udc_ops, 1019 + .max_speed = USB_SPEED_HIGH, 1020 + .name = "atmel_usba_udc", 1021 + .dev = { 1022 + .init_name = "gadget", 1023 + .release = nop_release, 1025 1024 }, 1026 1025 }; 1027 1026 ··· 1142 1147 * Test_SE0_NAK: Force high-speed mode and set up ep0 1143 1148 * for Bulk IN transfers 1144 1149 */ 1145 - ep = &usba_ep[0]; 1150 + ep = &udc->usba_ep[0]; 1146 1151 usba_writel(udc, TST, 1147 1152 USBA_BF(SPEED_CFG, USBA_SPEED_CFG_FORCE_HIGH)); 1148 1153 usba_ep_writel(ep, CFG, ··· 1160 1165 break; 1161 1166 case 0x0400: 1162 1167 /* Test_Packet */ 1163 - ep = &usba_ep[0]; 1168 + ep = &udc->usba_ep[0]; 1164 1169 usba_ep_writel(ep, CFG, 1165 1170 USBA_BF(EPT_SIZE, USBA_EPT_SIZE_64) 1166 1171 | USBA_EPT_DIR_IN ··· 1663 1668 1664 1669 for (i = 1; i < USBA_NR_ENDPOINTS; i++) 1665 1670 if (dma_status & (1 << i)) 1666 - usba_dma_irq(udc, &usba_ep[i]); 1671 + usba_dma_irq(udc, &udc->usba_ep[i]); 1667 1672 } 1668 1673 1669 1674 ep_status = USBA_BFEXT(EPT_INT, status); ··· 1672 1677 1673 1678 for (i = 0; i < USBA_NR_ENDPOINTS; i++) 1674 1679 if (ep_status & (1 << i)) { 1675 - if (ep_is_control(&usba_ep[i])) 1676 - usba_control_irq(udc, &usba_ep[i]); 1680 + if (ep_is_control(&udc->usba_ep[i])) 1681 + usba_control_irq(udc, &udc->usba_ep[i]); 1677 1682 else 1678 - usba_ep_irq(udc, &usba_ep[i]); 1683 + usba_ep_irq(udc, &udc->usba_ep[i]); 1679 1684 } 1680 1685 } 1681 1686 ··· 1700 1705 DBG(DBG_BUS, "%s bus reset detected\n", 1701 1706 usb_speed_string(udc->gadget.speed)); 1702 1707 1703 - ep0 = &usba_ep[0]; 1708 + ep0 = &udc->usba_ep[0]; 1704 1709 ep0->ep.desc = &usba_ep0_desc; 1705 1710 ep0->state = WAIT_FOR_SETUP; 1706 1711 usba_ep_writel(ep0, CFG, ··· 1830 1835 return 0; 1831 1836 } 1832 1837 1833 - static int __init usba_udc_probe(struct platform_device *pdev) 1838 + #ifdef CONFIG_OF 1839 + static struct usba_ep * atmel_udc_of_init(struct platform_device *pdev, 1840 + struct usba_udc *udc) 1841 + { 1842 + u32 val; 1843 + const char *name; 1844 + enum of_gpio_flags flags; 1845 + struct device_node *np = pdev->dev.of_node; 1846 + struct device_node *pp; 1847 + int i, ret; 1848 + struct usba_ep *eps, *ep; 1849 + 1850 + udc->num_ep = 0; 1851 + 1852 + udc->vbus_pin = of_get_named_gpio_flags(np, "atmel,vbus-gpio", 0, 1853 + &flags); 1854 + udc->vbus_pin_inverted = (flags & OF_GPIO_ACTIVE_LOW) ? 1 : 0; 1855 + 1856 + pp = NULL; 1857 + while ((pp = of_get_next_child(np, pp))) 1858 + udc->num_ep++; 1859 + 1860 + eps = devm_kzalloc(&pdev->dev, sizeof(struct usba_ep) * udc->num_ep, 1861 + GFP_KERNEL); 1862 + if (!eps) 1863 + return ERR_PTR(-ENOMEM); 1864 + 1865 + udc->gadget.ep0 = &eps[0].ep; 1866 + 1867 + INIT_LIST_HEAD(&eps[0].ep.ep_list); 1868 + 1869 + pp = NULL; 1870 + i = 0; 1871 + while ((pp = of_get_next_child(np, pp))) { 1872 + ep = &eps[i]; 1873 + 1874 + ret = of_property_read_u32(pp, "reg", &val); 1875 + if (ret) { 1876 + dev_err(&pdev->dev, "of_probe: reg error(%d)\n", ret); 1877 + goto err; 1878 + } 1879 + ep->index = val; 1880 + 1881 + ret = of_property_read_u32(pp, "atmel,fifo-size", &val); 1882 + if (ret) { 1883 + dev_err(&pdev->dev, "of_probe: fifo-size error(%d)\n", ret); 1884 + goto err; 1885 + } 1886 + ep->fifo_size = val; 1887 + 1888 + ret = of_property_read_u32(pp, "atmel,nb-banks", &val); 1889 + if (ret) { 1890 + dev_err(&pdev->dev, "of_probe: nb-banks error(%d)\n", ret); 1891 + goto err; 1892 + } 1893 + ep->nr_banks = val; 1894 + 1895 + ep->can_dma = of_property_read_bool(pp, "atmel,can-dma"); 1896 + ep->can_isoc = of_property_read_bool(pp, "atmel,can-isoc"); 1897 + 1898 + ret = of_property_read_string(pp, "name", &name); 1899 + ep->ep.name = name; 1900 + 1901 + ep->ep_regs = udc->regs + USBA_EPT_BASE(i); 1902 + ep->dma_regs = udc->regs + USBA_DMA_BASE(i); 1903 + ep->fifo = udc->fifo + USBA_FIFO_BASE(i); 1904 + ep->ep.ops = &usba_ep_ops; 1905 + ep->ep.maxpacket = ep->fifo_size; 1906 + ep->udc = udc; 1907 + INIT_LIST_HEAD(&ep->queue); 1908 + 1909 + if (i) 1910 + list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); 1911 + 1912 + i++; 1913 + } 1914 + 1915 + return eps; 1916 + err: 1917 + return ERR_PTR(ret); 1918 + } 1919 + #else 1920 + static struct usba_ep * atmel_udc_of_init(struct platform_device *pdev, 1921 + struct usba_udc *udc) 1922 + { 1923 + return ERR_PTR(-ENOSYS); 1924 + } 1925 + #endif 1926 + 1927 + static struct usba_ep * usba_udc_pdata(struct platform_device *pdev, 1928 + struct usba_udc *udc) 1834 1929 { 1835 1930 struct usba_platform_data *pdata = pdev->dev.platform_data; 1931 + struct usba_ep *eps; 1932 + int i; 1933 + 1934 + if (!pdata) 1935 + return ERR_PTR(-ENXIO); 1936 + 1937 + eps = devm_kzalloc(&pdev->dev, sizeof(struct usba_ep) * pdata->num_ep, 1938 + GFP_KERNEL); 1939 + if (!eps) 1940 + return ERR_PTR(-ENOMEM); 1941 + 1942 + udc->gadget.ep0 = &eps[0].ep; 1943 + 1944 + udc->vbus_pin = pdata->vbus_pin; 1945 + udc->vbus_pin_inverted = pdata->vbus_pin_inverted; 1946 + udc->num_ep = pdata->num_ep; 1947 + 1948 + INIT_LIST_HEAD(&eps[0].ep.ep_list); 1949 + 1950 + for (i = 0; i < pdata->num_ep; i++) { 1951 + struct usba_ep *ep = &eps[i]; 1952 + 1953 + ep->ep_regs = udc->regs + USBA_EPT_BASE(i); 1954 + ep->dma_regs = udc->regs + USBA_DMA_BASE(i); 1955 + ep->fifo = udc->fifo + USBA_FIFO_BASE(i); 1956 + ep->ep.ops = &usba_ep_ops; 1957 + ep->ep.name = pdata->ep[i].name; 1958 + ep->fifo_size = ep->ep.maxpacket = pdata->ep[i].fifo_size; 1959 + ep->udc = udc; 1960 + INIT_LIST_HEAD(&ep->queue); 1961 + ep->nr_banks = pdata->ep[i].nr_banks; 1962 + ep->index = pdata->ep[i].index; 1963 + ep->can_dma = pdata->ep[i].can_dma; 1964 + ep->can_isoc = pdata->ep[i].can_isoc; 1965 + 1966 + if (i) 1967 + list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); 1968 + } 1969 + 1970 + return eps; 1971 + } 1972 + 1973 + static int __init usba_udc_probe(struct platform_device *pdev) 1974 + { 1836 1975 struct resource *regs, *fifo; 1837 1976 struct clk *pclk, *hclk; 1838 - struct usba_udc *udc = &the_udc; 1977 + struct usba_udc *udc; 1839 1978 int irq, ret, i; 1979 + 1980 + udc = devm_kzalloc(&pdev->dev, sizeof(*udc), GFP_KERNEL); 1981 + if (!udc) 1982 + return -ENOMEM; 1983 + 1984 + udc->gadget = usba_gadget_template; 1985 + INIT_LIST_HEAD(&udc->gadget.ep_list); 1840 1986 1841 1987 regs = platform_get_resource(pdev, IORESOURCE_MEM, CTRL_IOMEM_ID); 1842 1988 fifo = platform_get_resource(pdev, IORESOURCE_MEM, FIFO_IOMEM_ID); 1843 - if (!regs || !fifo || !pdata) 1989 + if (!regs || !fifo) 1844 1990 return -ENXIO; 1845 1991 1846 1992 irq = platform_get_irq(pdev, 0); ··· 2027 1891 usba_writel(udc, CTRL, USBA_DISABLE_MASK); 2028 1892 clk_disable(pclk); 2029 1893 2030 - usba_ep = kzalloc(sizeof(struct usba_ep) * pdata->num_ep, 2031 - GFP_KERNEL); 2032 - if (!usba_ep) 1894 + if (pdev->dev.of_node) 1895 + udc->usba_ep = atmel_udc_of_init(pdev, udc); 1896 + else 1897 + udc->usba_ep = usba_udc_pdata(pdev, udc); 1898 + 1899 + if (IS_ERR(udc->usba_ep)) { 1900 + ret = PTR_ERR(udc->usba_ep); 2033 1901 goto err_alloc_ep; 2034 - 2035 - the_udc.gadget.ep0 = &usba_ep[0].ep; 2036 - 2037 - INIT_LIST_HEAD(&usba_ep[0].ep.ep_list); 2038 - usba_ep[0].ep_regs = udc->regs + USBA_EPT_BASE(0); 2039 - usba_ep[0].dma_regs = udc->regs + USBA_DMA_BASE(0); 2040 - usba_ep[0].fifo = udc->fifo + USBA_FIFO_BASE(0); 2041 - usba_ep[0].ep.ops = &usba_ep_ops; 2042 - usba_ep[0].ep.name = pdata->ep[0].name; 2043 - usba_ep[0].ep.maxpacket = pdata->ep[0].fifo_size; 2044 - usba_ep[0].udc = &the_udc; 2045 - INIT_LIST_HEAD(&usba_ep[0].queue); 2046 - usba_ep[0].fifo_size = pdata->ep[0].fifo_size; 2047 - usba_ep[0].nr_banks = pdata->ep[0].nr_banks; 2048 - usba_ep[0].index = pdata->ep[0].index; 2049 - usba_ep[0].can_dma = pdata->ep[0].can_dma; 2050 - usba_ep[0].can_isoc = pdata->ep[0].can_isoc; 2051 - 2052 - for (i = 1; i < pdata->num_ep; i++) { 2053 - struct usba_ep *ep = &usba_ep[i]; 2054 - 2055 - ep->ep_regs = udc->regs + USBA_EPT_BASE(i); 2056 - ep->dma_regs = udc->regs + USBA_DMA_BASE(i); 2057 - ep->fifo = udc->fifo + USBA_FIFO_BASE(i); 2058 - ep->ep.ops = &usba_ep_ops; 2059 - ep->ep.name = pdata->ep[i].name; 2060 - ep->ep.maxpacket = pdata->ep[i].fifo_size; 2061 - ep->udc = &the_udc; 2062 - INIT_LIST_HEAD(&ep->queue); 2063 - ep->fifo_size = pdata->ep[i].fifo_size; 2064 - ep->nr_banks = pdata->ep[i].nr_banks; 2065 - ep->index = pdata->ep[i].index; 2066 - ep->can_dma = pdata->ep[i].can_dma; 2067 - ep->can_isoc = pdata->ep[i].can_isoc; 2068 - 2069 - list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); 2070 1902 } 2071 1903 2072 1904 ret = request_irq(irq, usba_udc_irq, 0, "atmel_usba_udc", udc); ··· 2045 1941 } 2046 1942 udc->irq = irq; 2047 1943 2048 - if (gpio_is_valid(pdata->vbus_pin)) { 2049 - if (!gpio_request(pdata->vbus_pin, "atmel_usba_udc")) { 2050 - udc->vbus_pin = pdata->vbus_pin; 2051 - udc->vbus_pin_inverted = pdata->vbus_pin_inverted; 2052 - 1944 + if (gpio_is_valid(udc->vbus_pin)) { 1945 + if (!devm_gpio_request(&pdev->dev, udc->vbus_pin, "atmel_usba_udc")) { 2053 1946 ret = request_irq(gpio_to_irq(udc->vbus_pin), 2054 1947 usba_vbus_irq, 0, 2055 1948 "atmel_usba_udc", udc); 2056 1949 if (ret) { 2057 - gpio_free(udc->vbus_pin); 2058 1950 udc->vbus_pin = -ENODEV; 2059 1951 dev_warn(&udc->pdev->dev, 2060 1952 "failed to request vbus irq; " ··· 2069 1969 goto err_add_udc; 2070 1970 2071 1971 usba_init_debugfs(udc); 2072 - for (i = 1; i < pdata->num_ep; i++) 2073 - usba_ep_init_debugfs(udc, &usba_ep[i]); 1972 + for (i = 1; i < udc->num_ep; i++) 1973 + usba_ep_init_debugfs(udc, &udc->usba_ep[i]); 2074 1974 2075 1975 return 0; 2076 1976 2077 1977 err_add_udc: 2078 - if (gpio_is_valid(pdata->vbus_pin)) { 1978 + if (gpio_is_valid(udc->vbus_pin)) 2079 1979 free_irq(gpio_to_irq(udc->vbus_pin), udc); 2080 - gpio_free(udc->vbus_pin); 2081 - } 2082 1980 2083 1981 free_irq(irq, udc); 2084 1982 err_request_irq: 2085 - kfree(usba_ep); 2086 1983 err_alloc_ep: 2087 1984 iounmap(udc->fifo); 2088 1985 err_map_fifo: ··· 2096 1999 { 2097 2000 struct usba_udc *udc; 2098 2001 int i; 2099 - struct usba_platform_data *pdata = pdev->dev.platform_data; 2100 2002 2101 2003 udc = platform_get_drvdata(pdev); 2102 2004 2103 2005 usb_del_gadget_udc(&udc->gadget); 2104 2006 2105 - for (i = 1; i < pdata->num_ep; i++) 2106 - usba_ep_cleanup_debugfs(&usba_ep[i]); 2007 + for (i = 1; i < udc->num_ep; i++) 2008 + usba_ep_cleanup_debugfs(&udc->usba_ep[i]); 2107 2009 usba_cleanup_debugfs(udc); 2108 2010 2109 2011 if (gpio_is_valid(udc->vbus_pin)) { 2110 2012 free_irq(gpio_to_irq(udc->vbus_pin), udc); 2111 - gpio_free(udc->vbus_pin); 2112 2013 } 2113 2014 2114 2015 free_irq(udc->irq, udc); 2115 - kfree(usba_ep); 2116 2016 iounmap(udc->fifo); 2117 2017 iounmap(udc->regs); 2118 2018 clk_put(udc->hclk); ··· 2118 2024 return 0; 2119 2025 } 2120 2026 2027 + #if defined(CONFIG_OF) 2028 + static const struct of_device_id atmel_udc_dt_ids[] = { 2029 + { .compatible = "atmel,at91sam9rl-udc" }, 2030 + { /* sentinel */ } 2031 + }; 2032 + 2033 + MODULE_DEVICE_TABLE(of, atmel_udc_dt_ids); 2034 + #endif 2035 + 2121 2036 static struct platform_driver udc_driver = { 2122 2037 .remove = __exit_p(usba_udc_remove), 2123 2038 .driver = { 2124 2039 .name = "atmel_usba_udc", 2125 2040 .owner = THIS_MODULE, 2041 + .of_match_table = of_match_ptr(atmel_udc_dt_ids), 2126 2042 }, 2127 2043 }; 2128 2044
+2
drivers/usb/gadget/atmel_usba_udc.h
··· 317 317 int irq; 318 318 int vbus_pin; 319 319 int vbus_pin_inverted; 320 + int num_ep; 320 321 struct clk *pclk; 321 322 struct clk *hclk; 323 + struct usba_ep *usba_ep; 322 324 323 325 u16 devstatus; 324 326
+35
include/dt-bindings/pinctrl/at91.h
··· 1 + /* 2 + * This header provides constants for most at91 pinctrl bindings. 3 + * 4 + * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 5 + * 6 + * GPLv2 only 7 + */ 8 + 9 + #ifndef __DT_BINDINGS_AT91_PINCTRL_H__ 10 + #define __DT_BINDINGS_AT91_PINCTRL_H__ 11 + 12 + #define AT91_PINCTRL_NONE (0 << 0) 13 + #define AT91_PINCTRL_PULL_UP (1 << 0) 14 + #define AT91_PINCTRL_MULTI_DRIVE (1 << 1) 15 + #define AT91_PINCTRL_DEGLITCH (1 << 2) 16 + #define AT91_PINCTRL_PULL_DOWN (1 << 3) 17 + #define AT91_PINCTRL_DIS_SCHMIT (1 << 4) 18 + #define AT91_PINCTRL_DEBOUNCE (1 << 16) 19 + #define AT91_PINCTRL_DEBOUNCE_VA(x) (x << 17) 20 + 21 + #define AT91_PINCTRL_PULL_UP_DEGLITCH (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DEGLITCH) 22 + 23 + #define AT91_PIOA 0 24 + #define AT91_PIOB 1 25 + #define AT91_PIOC 2 26 + #define AT91_PIOD 3 27 + #define AT91_PIOE 4 28 + 29 + #define AT91_PERIPH_GPIO 0 30 + #define AT91_PERIPH_A 1 31 + #define AT91_PERIPH_B 2 32 + #define AT91_PERIPH_C 3 33 + #define AT91_PERIPH_D 4 34 + 35 + #endif /* __DT_BINDINGS_AT91_PINCTRL_H__ */