ARM: dts: imx6q-bx50v3: configure unused pca953x pins
authorKen Lin <ken.lin@advantech.com.tw>
Fri, 12 Aug 2016 17:45:11 +0000 (13:45 -0400)
committerShawn Guo <shawnguo@kernel.org>
Mon, 29 Aug 2016 01:22:25 +0000 (09:22 +0800)
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>
arch/arm/boot/dts/imx6q-b450v3.dts
arch/arm/boot/dts/imx6q-b650v3.dts
arch/arm/boot/dts/imx6q-bx50v3.dtsi

index f0a2be5268e355822e1fde2a162ccef15e167b9d..78bfc1a307d60c61ad340d979959748e7abdd564 100644 (file)
                };
        };
 };
+
+&pca9539 {
+       P04 {
+               gpio-hog;
+               gpios = <4 0>;
+               output-low;
+               line-name = "PCA9539-P04";
+       };
+
+       P05 {
+               gpio-hog;
+               gpios = <5 0>;
+               output-low;
+               line-name = "PCA9539-P05";
+       };
+};
index 33cb71acadcced4c5fe4bb332e0372d0502076ed..d853887254268aae304f3a90b244bef3cdc07990 100644 (file)
                };
        };
 };
+
+&pca9539 {
+       P05 {
+               gpio-hog;
+               gpios = <5 0>;
+               output-low;
+               line-name = "PCA9539-P05";
+       };
+};
index cf3fd31e3406070df72f0ce5ea3a98c631d97aa4..e4a415fd899b670bf74f44b3640580910919d960 100644 (file)
                                interrupt-controller;
                                interrupt-parent = <&gpio2>;
                                interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
+
+                               P06 {
+                                       gpio-hog;
+                                       gpios = <6 0>;
+                                       output-low;
+                                       line-name = "PCA9539-P06";
+                               };
+
+                               P07 {
+                                       gpio-hog;
+                                       gpios = <7 0>;
+                                       output-low;
+                                       line-name = "PCA9539-P07";
+                               };
+
+                               P10 {
+                                       gpio-hog;
+                                       gpios = <8 0>;
+                                       output-low;
+                                       line-name = "PCA9539-P10";
+                               };
+
+                               P11 {
+                                       gpio-hog;
+                                       gpios = <9 0>;
+                                       output-low;
+                                       line-name = "PCA9539-P11";
+                               };
+
+                               P12 {
+                                       gpio-hog;
+                                       gpios = <10 0>;
+                                       output-low;
+                                       line-name = "PCA9539-P12";
+                               };
+
+                               P13 {
+                                       gpio-hog;
+                                       gpios = <11 0>;
+                                       output-low;
+                                       line-name = "PCA9539-P13";
+                               };
+
+                               P14 {
+                                       gpio-hog;
+                                       gpios = <12 0>;
+                                       output-low;
+                                       line-name = "PCA9539-P14";
+                               };
+
+                               P15 {
+                                       gpio-hog;
+                                       gpios = <13 0>;
+                                       output-low;
+                                       line-name = "PCA9539-P15";
+                               };
+
+                               P16 {
+                                       gpio-hog;
+                                       gpios = <14 0>;
+                                       output-low;
+                                       line-name = "PCA9539-P16";
+                               };
+
+                               P17 {
+                                       gpio-hog;
+                                       gpios = <15 0>;
+                                       output-low;
+                                       line-name = "PCA9539-P17";
+                               };
                        };
                };