diff options
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/dts/at91sam9g20.dtsi | 68 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9g45.dtsi | 87 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9m10g45ek.dts | 72 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9x5.dtsi | 12 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9x5cm.dtsi | 15 | ||||
-rw-r--r-- | arch/arm/boot/dts/usb_a9g20.dts | 23 |
6 files changed, 256 insertions, 21 deletions
diff --git a/arch/arm/boot/dts/at91sam9g20.dtsi b/arch/arm/boot/dts/at91sam9g20.dtsi index 07603b8c9503..a100db03ec90 100644 --- a/arch/arm/boot/dts/at91sam9g20.dtsi +++ b/arch/arm/boot/dts/at91sam9g20.dtsi | |||
@@ -23,6 +23,11 @@ | |||
23 | serial4 = &usart3; | 23 | serial4 = &usart3; |
24 | serial5 = &usart4; | 24 | serial5 = &usart4; |
25 | serial6 = &usart5; | 25 | serial6 = &usart5; |
26 | gpio0 = &pioA; | ||
27 | gpio1 = &pioB; | ||
28 | gpio2 = &pioC; | ||
29 | tcb0 = &tcb0; | ||
30 | tcb1 = &tcb1; | ||
26 | }; | 31 | }; |
27 | cpus { | 32 | cpus { |
28 | cpu@0 { | 33 | cpu@0 { |
@@ -47,24 +52,69 @@ | |||
47 | ranges; | 52 | ranges; |
48 | 53 | ||
49 | aic: interrupt-controller@fffff000 { | 54 | aic: interrupt-controller@fffff000 { |
50 | #interrupt-cells = <1>; | 55 | #interrupt-cells = <2>; |
51 | compatible = "atmel,at91rm9200-aic"; | 56 | compatible = "atmel,at91rm9200-aic"; |
52 | interrupt-controller; | 57 | interrupt-controller; |
53 | interrupt-parent; | 58 | interrupt-parent; |
54 | reg = <0xfffff000 0x200>; | 59 | reg = <0xfffff000 0x200>; |
55 | }; | 60 | }; |
56 | 61 | ||
62 | pit: timer@fffffd30 { | ||
63 | compatible = "atmel,at91sam9260-pit"; | ||
64 | reg = <0xfffffd30 0xf>; | ||
65 | interrupts = <1 4>; | ||
66 | }; | ||
67 | |||
68 | tcb0: timer@fffa0000 { | ||
69 | compatible = "atmel,at91rm9200-tcb"; | ||
70 | reg = <0xfffa0000 0x100>; | ||
71 | interrupts = <17 4 18 4 19 4>; | ||
72 | }; | ||
73 | |||
74 | tcb1: timer@fffdc000 { | ||
75 | compatible = "atmel,at91rm9200-tcb"; | ||
76 | reg = <0xfffdc000 0x100>; | ||
77 | interrupts = <26 4 27 4 28 4>; | ||
78 | }; | ||
79 | |||
80 | pioA: gpio@fffff400 { | ||
81 | compatible = "atmel,at91rm9200-gpio"; | ||
82 | reg = <0xfffff400 0x100>; | ||
83 | interrupts = <2 4>; | ||
84 | #gpio-cells = <2>; | ||
85 | gpio-controller; | ||
86 | interrupt-controller; | ||
87 | }; | ||
88 | |||
89 | pioB: gpio@fffff600 { | ||
90 | compatible = "atmel,at91rm9200-gpio"; | ||
91 | reg = <0xfffff600 0x100>; | ||
92 | interrupts = <3 4>; | ||
93 | #gpio-cells = <2>; | ||
94 | gpio-controller; | ||
95 | interrupt-controller; | ||
96 | }; | ||
97 | |||
98 | pioC: gpio@fffff800 { | ||
99 | compatible = "atmel,at91rm9200-gpio"; | ||
100 | reg = <0xfffff800 0x100>; | ||
101 | interrupts = <4 4>; | ||
102 | #gpio-cells = <2>; | ||
103 | gpio-controller; | ||
104 | interrupt-controller; | ||
105 | }; | ||
106 | |||
57 | dbgu: serial@fffff200 { | 107 | dbgu: serial@fffff200 { |
58 | compatible = "atmel,at91sam9260-usart"; | 108 | compatible = "atmel,at91sam9260-usart"; |
59 | reg = <0xfffff200 0x200>; | 109 | reg = <0xfffff200 0x200>; |
60 | interrupts = <1>; | 110 | interrupts = <1 4>; |
61 | status = "disabled"; | 111 | status = "disabled"; |
62 | }; | 112 | }; |
63 | 113 | ||
64 | usart0: serial@fffb0000 { | 114 | usart0: serial@fffb0000 { |
65 | compatible = "atmel,at91sam9260-usart"; | 115 | compatible = "atmel,at91sam9260-usart"; |
66 | reg = <0xfffb0000 0x200>; | 116 | reg = <0xfffb0000 0x200>; |
67 | interrupts = <6>; | 117 | interrupts = <6 4>; |
68 | atmel,use-dma-rx; | 118 | atmel,use-dma-rx; |
69 | atmel,use-dma-tx; | 119 | atmel,use-dma-tx; |
70 | status = "disabled"; | 120 | status = "disabled"; |
@@ -73,7 +123,7 @@ | |||
73 | usart1: serial@fffb4000 { | 123 | usart1: serial@fffb4000 { |
74 | compatible = "atmel,at91sam9260-usart"; | 124 | compatible = "atmel,at91sam9260-usart"; |
75 | reg = <0xfffb4000 0x200>; | 125 | reg = <0xfffb4000 0x200>; |
76 | interrupts = <7>; | 126 | interrupts = <7 4>; |
77 | atmel,use-dma-rx; | 127 | atmel,use-dma-rx; |
78 | atmel,use-dma-tx; | 128 | atmel,use-dma-tx; |
79 | status = "disabled"; | 129 | status = "disabled"; |
@@ -82,7 +132,7 @@ | |||
82 | usart2: serial@fffb8000 { | 132 | usart2: serial@fffb8000 { |
83 | compatible = "atmel,at91sam9260-usart"; | 133 | compatible = "atmel,at91sam9260-usart"; |
84 | reg = <0xfffb8000 0x200>; | 134 | reg = <0xfffb8000 0x200>; |
85 | interrupts = <8>; | 135 | interrupts = <8 4>; |
86 | atmel,use-dma-rx; | 136 | atmel,use-dma-rx; |
87 | atmel,use-dma-tx; | 137 | atmel,use-dma-tx; |
88 | status = "disabled"; | 138 | status = "disabled"; |
@@ -91,7 +141,7 @@ | |||
91 | usart3: serial@fffd0000 { | 141 | usart3: serial@fffd0000 { |
92 | compatible = "atmel,at91sam9260-usart"; | 142 | compatible = "atmel,at91sam9260-usart"; |
93 | reg = <0xfffd0000 0x200>; | 143 | reg = <0xfffd0000 0x200>; |
94 | interrupts = <23>; | 144 | interrupts = <23 4>; |
95 | atmel,use-dma-rx; | 145 | atmel,use-dma-rx; |
96 | atmel,use-dma-tx; | 146 | atmel,use-dma-tx; |
97 | status = "disabled"; | 147 | status = "disabled"; |
@@ -100,7 +150,7 @@ | |||
100 | usart4: serial@fffd4000 { | 150 | usart4: serial@fffd4000 { |
101 | compatible = "atmel,at91sam9260-usart"; | 151 | compatible = "atmel,at91sam9260-usart"; |
102 | reg = <0xfffd4000 0x200>; | 152 | reg = <0xfffd4000 0x200>; |
103 | interrupts = <24>; | 153 | interrupts = <24 4>; |
104 | atmel,use-dma-rx; | 154 | atmel,use-dma-rx; |
105 | atmel,use-dma-tx; | 155 | atmel,use-dma-tx; |
106 | status = "disabled"; | 156 | status = "disabled"; |
@@ -109,7 +159,7 @@ | |||
109 | usart5: serial@fffd8000 { | 159 | usart5: serial@fffd8000 { |
110 | compatible = "atmel,at91sam9260-usart"; | 160 | compatible = "atmel,at91sam9260-usart"; |
111 | reg = <0xfffd8000 0x200>; | 161 | reg = <0xfffd8000 0x200>; |
112 | interrupts = <25>; | 162 | interrupts = <25 4>; |
113 | atmel,use-dma-rx; | 163 | atmel,use-dma-rx; |
114 | atmel,use-dma-tx; | 164 | atmel,use-dma-tx; |
115 | status = "disabled"; | 165 | status = "disabled"; |
@@ -118,7 +168,7 @@ | |||
118 | macb0: ethernet@fffc4000 { | 168 | macb0: ethernet@fffc4000 { |
119 | compatible = "cdns,at32ap7000-macb", "cdns,macb"; | 169 | compatible = "cdns,at32ap7000-macb", "cdns,macb"; |
120 | reg = <0xfffc4000 0x100>; | 170 | reg = <0xfffc4000 0x100>; |
121 | interrupts = <21>; | 171 | interrupts = <21 4>; |
122 | status = "disabled"; | 172 | status = "disabled"; |
123 | }; | 173 | }; |
124 | }; | 174 | }; |
diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi index fffa005300a4..f779667159b1 100644 --- a/arch/arm/boot/dts/at91sam9g45.dtsi +++ b/arch/arm/boot/dts/at91sam9g45.dtsi | |||
@@ -22,6 +22,13 @@ | |||
22 | serial2 = &usart1; | 22 | serial2 = &usart1; |
23 | serial3 = &usart2; | 23 | serial3 = &usart2; |
24 | serial4 = &usart3; | 24 | serial4 = &usart3; |
25 | gpio0 = &pioA; | ||
26 | gpio1 = &pioB; | ||
27 | gpio2 = &pioC; | ||
28 | gpio3 = &pioD; | ||
29 | gpio4 = &pioE; | ||
30 | tcb0 = &tcb0; | ||
31 | tcb1 = &tcb1; | ||
25 | }; | 32 | }; |
26 | cpus { | 33 | cpus { |
27 | cpu@0 { | 34 | cpu@0 { |
@@ -46,30 +53,94 @@ | |||
46 | ranges; | 53 | ranges; |
47 | 54 | ||
48 | aic: interrupt-controller@fffff000 { | 55 | aic: interrupt-controller@fffff000 { |
49 | #interrupt-cells = <1>; | 56 | #interrupt-cells = <2>; |
50 | compatible = "atmel,at91rm9200-aic"; | 57 | compatible = "atmel,at91rm9200-aic"; |
51 | interrupt-controller; | 58 | interrupt-controller; |
52 | interrupt-parent; | 59 | interrupt-parent; |
53 | reg = <0xfffff000 0x200>; | 60 | reg = <0xfffff000 0x200>; |
54 | }; | 61 | }; |
55 | 62 | ||
63 | pit: timer@fffffd30 { | ||
64 | compatible = "atmel,at91sam9260-pit"; | ||
65 | reg = <0xfffffd30 0xf>; | ||
66 | interrupts = <1 4>; | ||
67 | }; | ||
68 | |||
69 | |||
70 | tcb0: timer@fff7c000 { | ||
71 | compatible = "atmel,at91rm9200-tcb"; | ||
72 | reg = <0xfff7c000 0x100>; | ||
73 | interrupts = <18 4>; | ||
74 | }; | ||
75 | |||
76 | tcb1: timer@fffd4000 { | ||
77 | compatible = "atmel,at91rm9200-tcb"; | ||
78 | reg = <0xfffd4000 0x100>; | ||
79 | interrupts = <18 4>; | ||
80 | }; | ||
81 | |||
56 | dma: dma-controller@ffffec00 { | 82 | dma: dma-controller@ffffec00 { |
57 | compatible = "atmel,at91sam9g45-dma"; | 83 | compatible = "atmel,at91sam9g45-dma"; |
58 | reg = <0xffffec00 0x200>; | 84 | reg = <0xffffec00 0x200>; |
59 | interrupts = <21>; | 85 | interrupts = <21 4>; |
86 | }; | ||
87 | |||
88 | pioA: gpio@fffff200 { | ||
89 | compatible = "atmel,at91rm9200-gpio"; | ||
90 | reg = <0xfffff200 0x100>; | ||
91 | interrupts = <2 4>; | ||
92 | #gpio-cells = <2>; | ||
93 | gpio-controller; | ||
94 | interrupt-controller; | ||
95 | }; | ||
96 | |||
97 | pioB: gpio@fffff400 { | ||
98 | compatible = "atmel,at91rm9200-gpio"; | ||
99 | reg = <0xfffff400 0x100>; | ||
100 | interrupts = <3 4>; | ||
101 | #gpio-cells = <2>; | ||
102 | gpio-controller; | ||
103 | interrupt-controller; | ||
104 | }; | ||
105 | |||
106 | pioC: gpio@fffff600 { | ||
107 | compatible = "atmel,at91rm9200-gpio"; | ||
108 | reg = <0xfffff600 0x100>; | ||
109 | interrupts = <4 4>; | ||
110 | #gpio-cells = <2>; | ||
111 | gpio-controller; | ||
112 | interrupt-controller; | ||
113 | }; | ||
114 | |||
115 | pioD: gpio@fffff800 { | ||
116 | compatible = "atmel,at91rm9200-gpio"; | ||
117 | reg = <0xfffff800 0x100>; | ||
118 | interrupts = <5 4>; | ||
119 | #gpio-cells = <2>; | ||
120 | gpio-controller; | ||
121 | interrupt-controller; | ||
122 | }; | ||
123 | |||
124 | pioE: gpio@fffffa00 { | ||
125 | compatible = "atmel,at91rm9200-gpio"; | ||
126 | reg = <0xfffffa00 0x100>; | ||
127 | interrupts = <5 4>; | ||
128 | #gpio-cells = <2>; | ||
129 | gpio-controller; | ||
130 | interrupt-controller; | ||
60 | }; | 131 | }; |
61 | 132 | ||
62 | dbgu: serial@ffffee00 { | 133 | dbgu: serial@ffffee00 { |
63 | compatible = "atmel,at91sam9260-usart"; | 134 | compatible = "atmel,at91sam9260-usart"; |
64 | reg = <0xffffee00 0x200>; | 135 | reg = <0xffffee00 0x200>; |
65 | interrupts = <1>; | 136 | interrupts = <1 4>; |
66 | status = "disabled"; | 137 | status = "disabled"; |
67 | }; | 138 | }; |
68 | 139 | ||
69 | usart0: serial@fff8c000 { | 140 | usart0: serial@fff8c000 { |
70 | compatible = "atmel,at91sam9260-usart"; | 141 | compatible = "atmel,at91sam9260-usart"; |
71 | reg = <0xfff8c000 0x200>; | 142 | reg = <0xfff8c000 0x200>; |
72 | interrupts = <7>; | 143 | interrupts = <7 4>; |
73 | atmel,use-dma-rx; | 144 | atmel,use-dma-rx; |
74 | atmel,use-dma-tx; | 145 | atmel,use-dma-tx; |
75 | status = "disabled"; | 146 | status = "disabled"; |
@@ -78,7 +149,7 @@ | |||
78 | usart1: serial@fff90000 { | 149 | usart1: serial@fff90000 { |
79 | compatible = "atmel,at91sam9260-usart"; | 150 | compatible = "atmel,at91sam9260-usart"; |
80 | reg = <0xfff90000 0x200>; | 151 | reg = <0xfff90000 0x200>; |
81 | interrupts = <8>; | 152 | interrupts = <8 4>; |
82 | atmel,use-dma-rx; | 153 | atmel,use-dma-rx; |
83 | atmel,use-dma-tx; | 154 | atmel,use-dma-tx; |
84 | status = "disabled"; | 155 | status = "disabled"; |
@@ -87,7 +158,7 @@ | |||
87 | usart2: serial@fff94000 { | 158 | usart2: serial@fff94000 { |
88 | compatible = "atmel,at91sam9260-usart"; | 159 | compatible = "atmel,at91sam9260-usart"; |
89 | reg = <0xfff94000 0x200>; | 160 | reg = <0xfff94000 0x200>; |
90 | interrupts = <9>; | 161 | interrupts = <9 4>; |
91 | atmel,use-dma-rx; | 162 | atmel,use-dma-rx; |
92 | atmel,use-dma-tx; | 163 | atmel,use-dma-tx; |
93 | status = "disabled"; | 164 | status = "disabled"; |
@@ -96,7 +167,7 @@ | |||
96 | usart3: serial@fff98000 { | 167 | usart3: serial@fff98000 { |
97 | compatible = "atmel,at91sam9260-usart"; | 168 | compatible = "atmel,at91sam9260-usart"; |
98 | reg = <0xfff98000 0x200>; | 169 | reg = <0xfff98000 0x200>; |
99 | interrupts = <10>; | 170 | interrupts = <10 4>; |
100 | atmel,use-dma-rx; | 171 | atmel,use-dma-rx; |
101 | atmel,use-dma-tx; | 172 | atmel,use-dma-tx; |
102 | status = "disabled"; | 173 | status = "disabled"; |
@@ -105,7 +176,7 @@ | |||
105 | macb0: ethernet@fffbc000 { | 176 | macb0: ethernet@fffbc000 { |
106 | compatible = "cdns,at32ap7000-macb", "cdns,macb"; | 177 | compatible = "cdns,at32ap7000-macb", "cdns,macb"; |
107 | reg = <0xfffbc000 0x100>; | 178 | reg = <0xfffbc000 0x100>; |
108 | interrupts = <25>; | 179 | interrupts = <25 4>; |
109 | status = "disabled"; | 180 | status = "disabled"; |
110 | }; | 181 | }; |
111 | }; | 182 | }; |
diff --git a/arch/arm/boot/dts/at91sam9m10g45ek.dts b/arch/arm/boot/dts/at91sam9m10g45ek.dts index a387e7704ce1..15e25f903cad 100644 --- a/arch/arm/boot/dts/at91sam9m10g45ek.dts +++ b/arch/arm/boot/dts/at91sam9m10g45ek.dts | |||
@@ -37,4 +37,76 @@ | |||
37 | }; | 37 | }; |
38 | }; | 38 | }; |
39 | }; | 39 | }; |
40 | |||
41 | leds { | ||
42 | compatible = "gpio-leds"; | ||
43 | |||
44 | d8 { | ||
45 | label = "d8"; | ||
46 | gpios = <&pioD 30 0>; | ||
47 | linux,default-trigger = "heartbeat"; | ||
48 | }; | ||
49 | |||
50 | d6 { | ||
51 | label = "d6"; | ||
52 | gpios = <&pioD 0 1>; | ||
53 | linux,default-trigger = "nand-disk"; | ||
54 | }; | ||
55 | |||
56 | d7 { | ||
57 | label = "d7"; | ||
58 | gpios = <&pioD 31 1>; | ||
59 | linux,default-trigger = "mmc0"; | ||
60 | }; | ||
61 | }; | ||
62 | |||
63 | gpio_keys { | ||
64 | compatible = "gpio-keys"; | ||
65 | #address-cells = <1>; | ||
66 | #size-cells = <0>; | ||
67 | |||
68 | left_click { | ||
69 | label = "left_click"; | ||
70 | gpios = <&pioB 6 1>; | ||
71 | linux,code = <272>; | ||
72 | gpio-key,wakeup; | ||
73 | }; | ||
74 | |||
75 | right_click { | ||
76 | label = "right_click"; | ||
77 | gpios = <&pioB 7 1>; | ||
78 | linux,code = <273>; | ||
79 | gpio-key,wakeup; | ||
80 | }; | ||
81 | |||
82 | left { | ||
83 | label = "Joystick Left"; | ||
84 | gpios = <&pioB 14 1>; | ||
85 | linux,code = <105>; | ||
86 | }; | ||
87 | |||
88 | right { | ||
89 | label = "Joystick Right"; | ||
90 | gpios = <&pioB 15 1>; | ||
91 | linux,code = <106>; | ||
92 | }; | ||
93 | |||
94 | up { | ||
95 | label = "Joystick Up"; | ||
96 | gpios = <&pioB 16 1>; | ||
97 | linux,code = <103>; | ||
98 | }; | ||
99 | |||
100 | down { | ||
101 | label = "Joystick Down"; | ||
102 | gpios = <&pioB 17 1>; | ||
103 | linux,code = <108>; | ||
104 | }; | ||
105 | |||
106 | enter { | ||
107 | label = "Joystick Press"; | ||
108 | gpios = <&pioB 18 1>; | ||
109 | linux,code = <28>; | ||
110 | }; | ||
111 | }; | ||
40 | }; | 112 | }; |
diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index e91391f50730..a02e636d8a57 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/arch/arm/boot/dts/at91sam9x5.dtsi | |||
@@ -89,35 +89,39 @@ | |||
89 | }; | 89 | }; |
90 | 90 | ||
91 | pioA: gpio@fffff400 { | 91 | pioA: gpio@fffff400 { |
92 | compatible = "atmel,at91rm9200-gpio"; | 92 | compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; |
93 | reg = <0xfffff400 0x100>; | 93 | reg = <0xfffff400 0x100>; |
94 | interrupts = <2 4>; | 94 | interrupts = <2 4>; |
95 | #gpio-cells = <2>; | 95 | #gpio-cells = <2>; |
96 | gpio-controller; | 96 | gpio-controller; |
97 | interrupt-controller; | ||
97 | }; | 98 | }; |
98 | 99 | ||
99 | pioB: gpio@fffff600 { | 100 | pioB: gpio@fffff600 { |
100 | compatible = "atmel,at91rm9200-gpio"; | 101 | compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; |
101 | reg = <0xfffff600 0x100>; | 102 | reg = <0xfffff600 0x100>; |
102 | interrupts = <2 4>; | 103 | interrupts = <2 4>; |
103 | #gpio-cells = <2>; | 104 | #gpio-cells = <2>; |
104 | gpio-controller; | 105 | gpio-controller; |
106 | interrupt-controller; | ||
105 | }; | 107 | }; |
106 | 108 | ||
107 | pioC: gpio@fffff800 { | 109 | pioC: gpio@fffff800 { |
108 | compatible = "atmel,at91rm9200-gpio"; | 110 | compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; |
109 | reg = <0xfffff800 0x100>; | 111 | reg = <0xfffff800 0x100>; |
110 | interrupts = <3 4>; | 112 | interrupts = <3 4>; |
111 | #gpio-cells = <2>; | 113 | #gpio-cells = <2>; |
112 | gpio-controller; | 114 | gpio-controller; |
115 | interrupt-controller; | ||
113 | }; | 116 | }; |
114 | 117 | ||
115 | pioD: gpio@fffffa00 { | 118 | pioD: gpio@fffffa00 { |
116 | compatible = "atmel,at91rm9200-gpio"; | 119 | compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio"; |
117 | reg = <0xfffffa00 0x100>; | 120 | reg = <0xfffffa00 0x100>; |
118 | interrupts = <3 4>; | 121 | interrupts = <3 4>; |
119 | #gpio-cells = <2>; | 122 | #gpio-cells = <2>; |
120 | gpio-controller; | 123 | gpio-controller; |
124 | interrupt-controller; | ||
121 | }; | 125 | }; |
122 | 126 | ||
123 | dbgu: serial@fffff200 { | 127 | dbgu: serial@fffff200 { |
diff --git a/arch/arm/boot/dts/at91sam9x5cm.dtsi b/arch/arm/boot/dts/at91sam9x5cm.dtsi index 4ab5a77f4afc..64ae3e890259 100644 --- a/arch/arm/boot/dts/at91sam9x5cm.dtsi +++ b/arch/arm/boot/dts/at91sam9x5cm.dtsi | |||
@@ -11,4 +11,19 @@ | |||
11 | memory@20000000 { | 11 | memory@20000000 { |
12 | reg = <0x20000000 0x8000000>; | 12 | reg = <0x20000000 0x8000000>; |
13 | }; | 13 | }; |
14 | |||
15 | leds { | ||
16 | compatible = "gpio-leds"; | ||
17 | |||
18 | pb18 { | ||
19 | label = "pb18"; | ||
20 | gpios = <&pioB 18 1>; | ||
21 | linux,default-trigger = "heartbeat"; | ||
22 | }; | ||
23 | |||
24 | pd21 { | ||
25 | label = "pd21"; | ||
26 | gpios = <&pioD 21 0>; | ||
27 | }; | ||
28 | }; | ||
14 | }; | 29 | }; |
diff --git a/arch/arm/boot/dts/usb_a9g20.dts b/arch/arm/boot/dts/usb_a9g20.dts index f04b535477f5..d74545a2a77c 100644 --- a/arch/arm/boot/dts/usb_a9g20.dts +++ b/arch/arm/boot/dts/usb_a9g20.dts | |||
@@ -32,4 +32,27 @@ | |||
32 | }; | 32 | }; |
33 | }; | 33 | }; |
34 | }; | 34 | }; |
35 | |||
36 | leds { | ||
37 | compatible = "gpio-leds"; | ||
38 | |||
39 | user_led { | ||
40 | label = "user_led"; | ||
41 | gpios = <&pioB 21 1>; | ||
42 | linux,default-trigger = "heartbeat"; | ||
43 | }; | ||
44 | }; | ||
45 | |||
46 | gpio_keys { | ||
47 | compatible = "gpio-keys"; | ||
48 | #address-cells = <1>; | ||
49 | #size-cells = <0>; | ||
50 | |||
51 | user_pb { | ||
52 | label = "user_pb"; | ||
53 | gpios = <&pioB 10 1>; | ||
54 | linux,code = <28>; | ||
55 | gpio-key,wakeup; | ||
56 | }; | ||
57 | }; | ||
35 | }; | 58 | }; |