diff options
author | AnilKumar Ch <anilkumar@ti.com> | 2012-11-21 06:52:17 -0500 |
---|---|---|
committer | Benoit Cousson <benoit.cousson@linaro.org> | 2013-04-08 18:16:44 -0400 |
commit | b918e2c0b5a09c1e15426854579eb7ed04ce1685 (patch) | |
tree | e109ab707b6e0d45ca77351af1d270d020de665a | |
parent | 5852264f9d6139751796853fdfca9d5230cbfb97 (diff) |
ARM: dts: AM33XX: Rename I2C and GPIO nodes
Rename I2C and GPIO nodes according to AM33XX TRM. According to
AM33XX TRM device instances are starting from "0" like i2c0, i2c1
and i2c3.
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
[panto@antoniou-consulting.com: initial patch by pantelis's]
Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/am335x-bone.dts | 10 | ||||
-rw-r--r-- | arch/arm/boot/dts/am335x-evm.dts | 18 | ||||
-rw-r--r-- | arch/arm/boot/dts/am335x-evmsk.dts | 18 | ||||
-rw-r--r-- | arch/arm/boot/dts/am33xx.dtsi | 14 |
4 files changed, 30 insertions, 30 deletions
diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts index 11b240c5d323..5302f79c05b7 100644 --- a/arch/arm/boot/dts/am335x-bone.dts +++ b/arch/arm/boot/dts/am335x-bone.dts | |||
@@ -43,7 +43,7 @@ | |||
43 | status = "okay"; | 43 | status = "okay"; |
44 | }; | 44 | }; |
45 | 45 | ||
46 | i2c1: i2c@44e0b000 { | 46 | i2c0: i2c@44e0b000 { |
47 | status = "okay"; | 47 | status = "okay"; |
48 | clock-frequency = <400000>; | 48 | clock-frequency = <400000>; |
49 | 49 | ||
@@ -59,27 +59,27 @@ | |||
59 | 59 | ||
60 | led@2 { | 60 | led@2 { |
61 | label = "beaglebone:green:heartbeat"; | 61 | label = "beaglebone:green:heartbeat"; |
62 | gpios = <&gpio2 21 0>; | 62 | gpios = <&gpio1 21 0>; |
63 | linux,default-trigger = "heartbeat"; | 63 | linux,default-trigger = "heartbeat"; |
64 | default-state = "off"; | 64 | default-state = "off"; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | led@3 { | 67 | led@3 { |
68 | label = "beaglebone:green:mmc0"; | 68 | label = "beaglebone:green:mmc0"; |
69 | gpios = <&gpio2 22 0>; | 69 | gpios = <&gpio1 22 0>; |
70 | linux,default-trigger = "mmc0"; | 70 | linux,default-trigger = "mmc0"; |
71 | default-state = "off"; | 71 | default-state = "off"; |
72 | }; | 72 | }; |
73 | 73 | ||
74 | led@4 { | 74 | led@4 { |
75 | label = "beaglebone:green:usr2"; | 75 | label = "beaglebone:green:usr2"; |
76 | gpios = <&gpio2 23 0>; | 76 | gpios = <&gpio1 23 0>; |
77 | default-state = "off"; | 77 | default-state = "off"; |
78 | }; | 78 | }; |
79 | 79 | ||
80 | led@5 { | 80 | led@5 { |
81 | label = "beaglebone:green:usr3"; | 81 | label = "beaglebone:green:usr3"; |
82 | gpios = <&gpio2 24 0>; | 82 | gpios = <&gpio1 24 0>; |
83 | default-state = "off"; | 83 | default-state = "off"; |
84 | }; | 84 | }; |
85 | }; | 85 | }; |
diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index d6496440fcea..0423298a26fe 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm/boot/dts/am335x-evm.dts | |||
@@ -51,7 +51,7 @@ | |||
51 | status = "okay"; | 51 | status = "okay"; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | i2c1: i2c@44e0b000 { | 54 | i2c0: i2c@44e0b000 { |
55 | status = "okay"; | 55 | status = "okay"; |
56 | clock-frequency = <400000>; | 56 | clock-frequency = <400000>; |
57 | 57 | ||
@@ -60,7 +60,7 @@ | |||
60 | }; | 60 | }; |
61 | }; | 61 | }; |
62 | 62 | ||
63 | i2c2: i2c@4802a000 { | 63 | i2c1: i2c@4802a000 { |
64 | status = "okay"; | 64 | status = "okay"; |
65 | clock-frequency = <100000>; | 65 | clock-frequency = <100000>; |
66 | 66 | ||
@@ -123,12 +123,12 @@ | |||
123 | debounce-delay-ms = <5>; | 123 | debounce-delay-ms = <5>; |
124 | col-scan-delay-us = <2>; | 124 | col-scan-delay-us = <2>; |
125 | 125 | ||
126 | row-gpios = <&gpio2 25 0 /* Bank1, pin25 */ | 126 | row-gpios = <&gpio1 25 0 /* Bank1, pin25 */ |
127 | &gpio2 26 0 /* Bank1, pin26 */ | 127 | &gpio1 26 0 /* Bank1, pin26 */ |
128 | &gpio2 27 0>; /* Bank1, pin27 */ | 128 | &gpio1 27 0>; /* Bank1, pin27 */ |
129 | 129 | ||
130 | col-gpios = <&gpio2 21 0 /* Bank1, pin21 */ | 130 | col-gpios = <&gpio1 21 0 /* Bank1, pin21 */ |
131 | &gpio2 22 0>; /* Bank1, pin22 */ | 131 | &gpio1 22 0>; /* Bank1, pin22 */ |
132 | 132 | ||
133 | linux,keymap = <0x0000008b /* MENU */ | 133 | linux,keymap = <0x0000008b /* MENU */ |
134 | 0x0100009e /* BACK */ | 134 | 0x0100009e /* BACK */ |
@@ -147,14 +147,14 @@ | |||
147 | switch@9 { | 147 | switch@9 { |
148 | label = "volume-up"; | 148 | label = "volume-up"; |
149 | linux,code = <115>; | 149 | linux,code = <115>; |
150 | gpios = <&gpio1 2 1>; | 150 | gpios = <&gpio0 2 1>; |
151 | gpio-key,wakeup; | 151 | gpio-key,wakeup; |
152 | }; | 152 | }; |
153 | 153 | ||
154 | switch@10 { | 154 | switch@10 { |
155 | label = "volume-down"; | 155 | label = "volume-down"; |
156 | linux,code = <114>; | 156 | linux,code = <114>; |
157 | gpios = <&gpio1 3 1>; | 157 | gpios = <&gpio0 3 1>; |
158 | gpio-key,wakeup; | 158 | gpio-key,wakeup; |
159 | }; | 159 | }; |
160 | }; | 160 | }; |
diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts index f5a6162a4ff2..f67c360844f4 100644 --- a/arch/arm/boot/dts/am335x-evmsk.dts +++ b/arch/arm/boot/dts/am335x-evmsk.dts | |||
@@ -58,7 +58,7 @@ | |||
58 | status = "okay"; | 58 | status = "okay"; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | i2c1: i2c@44e0b000 { | 61 | i2c0: i2c@44e0b000 { |
62 | status = "okay"; | 62 | status = "okay"; |
63 | clock-frequency = <400000>; | 63 | clock-frequency = <400000>; |
64 | 64 | ||
@@ -115,26 +115,26 @@ | |||
115 | 115 | ||
116 | led@1 { | 116 | led@1 { |
117 | label = "evmsk:green:usr0"; | 117 | label = "evmsk:green:usr0"; |
118 | gpios = <&gpio2 4 0>; | 118 | gpios = <&gpio1 4 0>; |
119 | default-state = "off"; | 119 | default-state = "off"; |
120 | }; | 120 | }; |
121 | 121 | ||
122 | led@2 { | 122 | led@2 { |
123 | label = "evmsk:green:usr1"; | 123 | label = "evmsk:green:usr1"; |
124 | gpios = <&gpio2 5 0>; | 124 | gpios = <&gpio1 5 0>; |
125 | default-state = "off"; | 125 | default-state = "off"; |
126 | }; | 126 | }; |
127 | 127 | ||
128 | led@3 { | 128 | led@3 { |
129 | label = "evmsk:green:mmc0"; | 129 | label = "evmsk:green:mmc0"; |
130 | gpios = <&gpio2 6 0>; | 130 | gpios = <&gpio1 6 0>; |
131 | linux,default-trigger = "mmc0"; | 131 | linux,default-trigger = "mmc0"; |
132 | default-state = "off"; | 132 | default-state = "off"; |
133 | }; | 133 | }; |
134 | 134 | ||
135 | led@4 { | 135 | led@4 { |
136 | label = "evmsk:green:heartbeat"; | 136 | label = "evmsk:green:heartbeat"; |
137 | gpios = <&gpio2 7 0>; | 137 | gpios = <&gpio1 7 0>; |
138 | linux,default-trigger = "heartbeat"; | 138 | linux,default-trigger = "heartbeat"; |
139 | default-state = "off"; | 139 | default-state = "off"; |
140 | }; | 140 | }; |
@@ -148,26 +148,26 @@ | |||
148 | switch@1 { | 148 | switch@1 { |
149 | label = "button0"; | 149 | label = "button0"; |
150 | linux,code = <0x100>; | 150 | linux,code = <0x100>; |
151 | gpios = <&gpio3 3 0>; | 151 | gpios = <&gpio2 3 0>; |
152 | }; | 152 | }; |
153 | 153 | ||
154 | switch@2 { | 154 | switch@2 { |
155 | label = "button1"; | 155 | label = "button1"; |
156 | linux,code = <0x101>; | 156 | linux,code = <0x101>; |
157 | gpios = <&gpio3 2 0>; | 157 | gpios = <&gpio2 2 0>; |
158 | }; | 158 | }; |
159 | 159 | ||
160 | switch@3 { | 160 | switch@3 { |
161 | label = "button2"; | 161 | label = "button2"; |
162 | linux,code = <0x102>; | 162 | linux,code = <0x102>; |
163 | gpios = <&gpio1 30 0>; | 163 | gpios = <&gpio0 30 0>; |
164 | gpio-key,wakeup; | 164 | gpio-key,wakeup; |
165 | }; | 165 | }; |
166 | 166 | ||
167 | switch@4 { | 167 | switch@4 { |
168 | label = "button3"; | 168 | label = "button3"; |
169 | linux,code = <0x103>; | 169 | linux,code = <0x103>; |
170 | gpios = <&gpio3 5 0>; | 170 | gpios = <&gpio2 5 0>; |
171 | }; | 171 | }; |
172 | }; | 172 | }; |
173 | }; | 173 | }; |
diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 0957645b73af..dd237de4c35f 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi | |||
@@ -87,7 +87,7 @@ | |||
87 | reg = <0x48200000 0x1000>; | 87 | reg = <0x48200000 0x1000>; |
88 | }; | 88 | }; |
89 | 89 | ||
90 | gpio1: gpio@44e07000 { | 90 | gpio0: gpio@44e07000 { |
91 | compatible = "ti,omap4-gpio"; | 91 | compatible = "ti,omap4-gpio"; |
92 | ti,hwmods = "gpio1"; | 92 | ti,hwmods = "gpio1"; |
93 | gpio-controller; | 93 | gpio-controller; |
@@ -98,7 +98,7 @@ | |||
98 | interrupts = <96>; | 98 | interrupts = <96>; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | gpio2: gpio@4804c000 { | 101 | gpio1: gpio@4804c000 { |
102 | compatible = "ti,omap4-gpio"; | 102 | compatible = "ti,omap4-gpio"; |
103 | ti,hwmods = "gpio2"; | 103 | ti,hwmods = "gpio2"; |
104 | gpio-controller; | 104 | gpio-controller; |
@@ -109,7 +109,7 @@ | |||
109 | interrupts = <98>; | 109 | interrupts = <98>; |
110 | }; | 110 | }; |
111 | 111 | ||
112 | gpio3: gpio@481ac000 { | 112 | gpio2: gpio@481ac000 { |
113 | compatible = "ti,omap4-gpio"; | 113 | compatible = "ti,omap4-gpio"; |
114 | ti,hwmods = "gpio3"; | 114 | ti,hwmods = "gpio3"; |
115 | gpio-controller; | 115 | gpio-controller; |
@@ -120,7 +120,7 @@ | |||
120 | interrupts = <32>; | 120 | interrupts = <32>; |
121 | }; | 121 | }; |
122 | 122 | ||
123 | gpio4: gpio@481ae000 { | 123 | gpio3: gpio@481ae000 { |
124 | compatible = "ti,omap4-gpio"; | 124 | compatible = "ti,omap4-gpio"; |
125 | ti,hwmods = "gpio4"; | 125 | ti,hwmods = "gpio4"; |
126 | gpio-controller; | 126 | gpio-controller; |
@@ -185,7 +185,7 @@ | |||
185 | status = "disabled"; | 185 | status = "disabled"; |
186 | }; | 186 | }; |
187 | 187 | ||
188 | i2c1: i2c@44e0b000 { | 188 | i2c0: i2c@44e0b000 { |
189 | compatible = "ti,omap4-i2c"; | 189 | compatible = "ti,omap4-i2c"; |
190 | #address-cells = <1>; | 190 | #address-cells = <1>; |
191 | #size-cells = <0>; | 191 | #size-cells = <0>; |
@@ -195,7 +195,7 @@ | |||
195 | status = "disabled"; | 195 | status = "disabled"; |
196 | }; | 196 | }; |
197 | 197 | ||
198 | i2c2: i2c@4802a000 { | 198 | i2c1: i2c@4802a000 { |
199 | compatible = "ti,omap4-i2c"; | 199 | compatible = "ti,omap4-i2c"; |
200 | #address-cells = <1>; | 200 | #address-cells = <1>; |
201 | #size-cells = <0>; | 201 | #size-cells = <0>; |
@@ -205,7 +205,7 @@ | |||
205 | status = "disabled"; | 205 | status = "disabled"; |
206 | }; | 206 | }; |
207 | 207 | ||
208 | i2c3: i2c@4819c000 { | 208 | i2c2: i2c@4819c000 { |
209 | compatible = "ti,omap4-i2c"; | 209 | compatible = "ti,omap4-i2c"; |
210 | #address-cells = <1>; | 210 | #address-cells = <1>; |
211 | #size-cells = <0>; | 211 | #size-cells = <0>; |