aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Lin <ken.lin@advantech.com.tw>2016-08-12 13:45:11 -0400
committerShawn Guo <shawnguo@kernel.org>2016-08-28 21:22:25 -0400
commit118e81cb7307934870721312da5443913a14faa2 (patch)
tree3571b4d0643c112060ad66b737e8fcf6f19682f4
parentb5ca028fe9ba2090afdbb3a2e8362590adc42a9c (diff)
ARM: dts: imx6q-bx50v3: configure unused pca953x pins
At power on, pca953x GPIO pins are configured as input and may cause unexpected interrupts. Configure the unused pins as GPO low to avoid unexpected interrupts. Signed-off-by: Ken Lin <ken.lin@advantech.com.tw> Signed-off-by: Akshay Bhat <akshay.bhat@timesys.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
-rw-r--r--arch/arm/boot/dts/imx6q-b450v3.dts16
-rw-r--r--arch/arm/boot/dts/imx6q-b650v3.dts9
-rw-r--r--arch/arm/boot/dts/imx6q-bx50v3.dtsi70
3 files changed, 95 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6q-b450v3.dts b/arch/arm/boot/dts/imx6q-b450v3.dts
index f0a2be5268e3..78bfc1a307d6 100644
--- a/arch/arm/boot/dts/imx6q-b450v3.dts
+++ b/arch/arm/boot/dts/imx6q-b450v3.dts
@@ -89,3 +89,19 @@
89 }; 89 };
90 }; 90 };
91}; 91};
92
93&pca9539 {
94 P04 {
95 gpio-hog;
96 gpios = <4 0>;
97 output-low;
98 line-name = "PCA9539-P04";
99 };
100
101 P05 {
102 gpio-hog;
103 gpios = <5 0>;
104 output-low;
105 line-name = "PCA9539-P05";
106 };
107};
diff --git a/arch/arm/boot/dts/imx6q-b650v3.dts b/arch/arm/boot/dts/imx6q-b650v3.dts
index 33cb71acadcc..d85388725426 100644
--- a/arch/arm/boot/dts/imx6q-b650v3.dts
+++ b/arch/arm/boot/dts/imx6q-b650v3.dts
@@ -89,3 +89,12 @@
89 }; 89 };
90 }; 90 };
91}; 91};
92
93&pca9539 {
94 P05 {
95 gpio-hog;
96 gpios = <5 0>;
97 output-low;
98 line-name = "PCA9539-P05";
99 };
100};
diff --git a/arch/arm/boot/dts/imx6q-bx50v3.dtsi b/arch/arm/boot/dts/imx6q-bx50v3.dtsi
index cf3fd31e3406..e4a415fd899b 100644
--- a/arch/arm/boot/dts/imx6q-bx50v3.dtsi
+++ b/arch/arm/boot/dts/imx6q-bx50v3.dtsi
@@ -183,6 +183,76 @@
183 interrupt-controller; 183 interrupt-controller;
184 interrupt-parent = <&gpio2>; 184 interrupt-parent = <&gpio2>;
185 interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 185 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
186
187 P06 {
188 gpio-hog;
189 gpios = <6 0>;
190 output-low;
191 line-name = "PCA9539-P06";
192 };
193
194 P07 {
195 gpio-hog;
196 gpios = <7 0>;
197 output-low;
198 line-name = "PCA9539-P07";
199 };
200
201 P10 {
202 gpio-hog;
203 gpios = <8 0>;
204 output-low;
205 line-name = "PCA9539-P10";
206 };
207
208 P11 {
209 gpio-hog;
210 gpios = <9 0>;
211 output-low;
212 line-name = "PCA9539-P11";
213 };
214
215 P12 {
216 gpio-hog;
217 gpios = <10 0>;
218 output-low;
219 line-name = "PCA9539-P12";
220 };
221
222 P13 {
223 gpio-hog;
224 gpios = <11 0>;
225 output-low;
226 line-name = "PCA9539-P13";
227 };
228
229 P14 {
230 gpio-hog;
231 gpios = <12 0>;
232 output-low;
233 line-name = "PCA9539-P14";
234 };
235
236 P15 {
237 gpio-hog;
238 gpios = <13 0>;
239 output-low;
240 line-name = "PCA9539-P15";
241 };
242
243 P16 {
244 gpio-hog;
245 gpios = <14 0>;
246 output-low;
247 line-name = "PCA9539-P16";
248 };
249
250 P17 {
251 gpio-hog;
252 gpios = <15 0>;
253 output-low;
254 line-name = "PCA9539-P17";
255 };
186 }; 256 };
187 }; 257 };
188 258