Skip to contentSkip to conversation

ARM: dts: aspeed: swift: Add pca9539 devices

PATCH New Adriana Kobylak 3 participants 4 messages May 20, 2019 – May 22, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: aspeed: swift: Add pca9539 devices

From: Adriana Kobylak <[email protected]>

Add the pca9539 devices to the Swift device tree.

---
 arch/arm/boot/dts/aspeed-bmc-opp-swift.dts | 146 +++++++++++++++++++++++++++++
 1 file changed, 146 insertions(+)
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +146 -0
index 9610637..270c923 100644
@@ -732,6 +732,79 @@
 		compatible = "infineon,ir35221";
 		reg = <0x72>;
 	};
+
+	pca2: pca9539 at 74 {
+		compatible = "nxp,pca9539";
+		reg = <0x74>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		gpio-controller;
+		#gpio-cells = <2>;
+
+		gpio at 0 {
+			reg = <0>;
+		};
+
+		gpio at 1 {
+			reg = <1>;
+		};
+
+		gpio at 2 {
+			reg = <2>;
+		};
+
+		gpio at 3 {
+			reg = <3>;
+		};
+
+		gpio at 4 {
+			reg = <4>;
+		};
+
+		gpio at 5 {
+			reg = <5>;
+		};
+
+		gpio at 6 {
+			reg = <6>;
+		};
+
+		gpio at 7 {
+			reg = <7>;
+		};
+
+		gpio at 8 {
+			reg = <8>;
+		};
+
+		gpio at 9 {
+			reg = <9>;
+		};
+
+		gpio at 10 {
+			reg = <10>;
+		};
+
+		gpio at 11 {
+			reg = <11>;
+		};
+
+		gpio at 12 {
+			reg = <12>;
+		};
+
+		gpio at 13 {
+			reg = <13>;
+		};
+
+		gpio at 14 {
+			reg = <14>;
+		};
+
+		gpio at 15 {
+			reg = <15>;
+		};
+	};
 };
 
 &i2c10 {
@@ -756,6 +829,79 @@
 		compatible = "infineon,ir35221";
 		reg = <0x72>;
 	};
+
+	pca3: pca9539 at 74 {
+		compatible = "nxp,pca9539";
+		reg = <0x74>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		gpio-controller;
+		#gpio-cells = <2>;
+
+		gpio at 0 {
+			reg = <0>;
+		};
+
+		gpio at 1 {
+			reg = <1>;
+		};
+
+		gpio at 2 {
+			reg = <2>;
+		};
+
+		gpio at 3 {
+			reg = <3>;
+		};
+
+		gpio at 4 {
+			reg = <4>;
+		};
+
+		gpio at 5 {
+			reg = <5>;
+		};
+
+		gpio at 6 {
+			reg = <6>;
+		};
+
+		gpio at 7 {
+			reg = <7>;
+		};
+
+		gpio at 8 {
+			reg = <8>;
+		};
+
+		gpio at 9 {
+			reg = <9>;
+		};
+
+		gpio at 10 {
+			reg = <10>;
+		};
+
+		gpio at 11 {
+			reg = <11>;
+		};
+
+		gpio at 12 {
+			reg = <12>;
+		};
+
+		gpio at 13 {
+			reg = <13>;
+		};
+
+		gpio at 14 {
+			reg = <14>;
+		};
+
+		gpio at 15 {
+			reg = <15>;
+		};
+	};
 };
 
 &i2c11 {
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 ARM: dts: aspeed: swift: Add pca9539 devices

Quoted 15 lines · Adriana Kobylak

From: Adriana Kobylak <[email protected]>

Add the pca9539 devices to the Swift device tree.

---
 arch/arm/boot/dts/aspeed-bmc-opp-swift.dts | 146 +++++++++++++++++++++++++++++
 1 file changed, 146 insertions(+)
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +0 -0
index 9610637..270c923 100644

arch/arm/boot/dts/aspeed-bmc-opp-swift.dts line 738

Quoted 7 lines
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +4 -0
@@ -732,6 +732,79 @@
                compatible = "infineon,ir35221";
                reg = <0x72>;
        };
+
+       pca2: pca9539 at 74 {
+               compatible = "nxp,pca9539";
+               reg = <0x74>;

This looks like the right bus, address, and chip/compatible type, but what follows after I am not 100% certain on. I do not know the specifics of how to indicate these are input GPIO pins.

Quoted 73 lines
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +69 -0
+               #address-cells = <1>;
+               #size-cells = <0>;
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               gpio at 0 {
+                       reg = <0>;
+               };
+
+               gpio at 1 {
+                       reg = <1>;
+               };
+
+               gpio at 2 {
+                       reg = <2>;
+               };
+
+               gpio at 3 {
+                       reg = <3>;
+               };
+
+               gpio at 4 {
+                       reg = <4>;
+               };
+
+               gpio at 5 {
+                       reg = <5>;
+               };
+
+               gpio at 6 {
+                       reg = <6>;
+               };
+
+               gpio at 7 {
+                       reg = <7>;
+               };
+
+               gpio at 8 {
+                       reg = <8>;
+               };
+
+               gpio at 9 {
+                       reg = <9>;
+               };
+
+               gpio at 10 {
+                       reg = <10>;
+               };
+
+               gpio at 11 {
+                       reg = <11>;
+               };
+
+               gpio at 12 {
+                       reg = <12>;
+               };
+
+               gpio at 13 {
+                       reg = <13>;
+               };
+
+               gpio at 14 {
+                       reg = <14>;
+               };
+
+               gpio at 15 {
+                       reg = <15>;
+               };
+       };
 };
 
 &i2c10 {

arch/arm/boot/dts/aspeed-bmc-opp-swift.dts line 835

Quoted 7 lines
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +4 -0
@@ -756,6 +829,79 @@
                compatible = "infineon,ir35221";
                reg = <0x72>;
        };
+
+       pca3: pca9539 at 74 {
+               compatible = "nxp,pca9539";
+               reg = <0x74>;

This looks like the correct bus, address, and type as well, but again, not sure on how to make sure they are GPIO input pins.

Quoted 75 lines
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +69 -1
+               #address-cells = <1>;
+               #size-cells = <0>;
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               gpio at 0 {
+                       reg = <0>;
+               };
+
+               gpio at 1 {
+                       reg = <1>;
+               };
+
+               gpio at 2 {
+                       reg = <2>;
+               };
+
+               gpio at 3 {
+                       reg = <3>;
+               };
+
+               gpio at 4 {
+                       reg = <4>;
+               };
+
+               gpio at 5 {
+                       reg = <5>;
+               };
+
+               gpio at 6 {
+                       reg = <6>;
+               };
+
+               gpio at 7 {
+                       reg = <7>;
+               };
+
+               gpio at 8 {
+                       reg = <8>;
+               };
+
+               gpio at 9 {
+                       reg = <9>;
+               };
+
+               gpio at 10 {
+                       reg = <10>;
+               };
+
+               gpio at 11 {
+                       reg = <11>;
+               };
+
+               gpio at 12 {
+                       reg = <12>;
+               };
+
+               gpio at 13 {
+                       reg = <13>;
+               };
+
+               gpio at 14 {
+                       reg = <14>;
+               };
+
+               gpio at 15 {
+                       reg = <15>;
+               };
+       };
 };
 
 &i2c11 {
--

1.8.3.1

#2 lore raw

PATCH 1/1 ARM: dts: aspeed: swift: Add pca9539 devices

Quoted 8 lines · Brandon Wyman
Quoted 6 lines · Adriana Kobylak

From: Adriana Kobylak <[email protected]>

Add the pca9539 devices to the Swift device tree.

Quoted 180 lines
Quoted 9 lines
---
 arch/arm/boot/dts/aspeed-bmc-opp-swift.dts | 146 +++++++++++++++++++++++++++++
 1 file changed, 146 insertions(+)
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +0 -0
index 9610637..270c923 100644

arch/arm/boot/dts/aspeed-bmc-opp-swift.dts line 738

Quoted 7 lines
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +4 -0
@@ -732,6 +732,79 @@
                compatible = "infineon,ir35221";
                reg = <0x72>;
        };
+
+       pca2: pca9539 at 74 {
+               compatible = "nxp,pca9539";
+               reg = <0x74>;

This looks like the right bus, address, and chip/compatible type, but what follows after I am not 100% certain on. I do not know the specifics of how to indicate these are input GPIO pins.

Quoted 73 lines
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +69 -0
+               #address-cells = <1>;
+               #size-cells = <0>;
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               gpio at 0 {
+                       reg = <0>;
+               };
+
+               gpio at 1 {
+                       reg = <1>;
+               };
+
+               gpio at 2 {
+                       reg = <2>;
+               };
+
+               gpio at 3 {
+                       reg = <3>;
+               };
+
+               gpio at 4 {
+                       reg = <4>;
+               };
+
+               gpio at 5 {
+                       reg = <5>;
+               };
+
+               gpio at 6 {
+                       reg = <6>;
+               };
+
+               gpio at 7 {
+                       reg = <7>;
+               };
+
+               gpio at 8 {
+                       reg = <8>;
+               };
+
+               gpio at 9 {
+                       reg = <9>;
+               };
+
+               gpio at 10 {
+                       reg = <10>;
+               };
+
+               gpio at 11 {
+                       reg = <11>;
+               };
+
+               gpio at 12 {
+                       reg = <12>;
+               };
+
+               gpio at 13 {
+                       reg = <13>;
+               };
+
+               gpio at 14 {
+                       reg = <14>;
+               };
+
+               gpio at 15 {
+                       reg = <15>;
+               };
+       };
 };
 
 &i2c10 {

arch/arm/boot/dts/aspeed-bmc-opp-swift.dts line 835

Quoted 7 lines
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +4 -0
@@ -756,6 +829,79 @@
                compatible = "infineon,ir35221";
                reg = <0x72>;
        };
+
+       pca3: pca9539 at 74 {
+               compatible = "nxp,pca9539";
+               reg = <0x74>;

This looks like the correct bus, address, and type as well, but again, not sure on how to make sure they are GPIO input pins.

Quoted 75 lines
arch/arm/boot/dts/aspeed-bmc-opp-swift.dts +69 -1
+               #address-cells = <1>;
+               #size-cells = <0>;
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               gpio at 0 {
+                       reg = <0>;
+               };
+
+               gpio at 1 {
+                       reg = <1>;
+               };
+
+               gpio at 2 {
+                       reg = <2>;
+               };
+
+               gpio at 3 {
+                       reg = <3>;
+               };
+
+               gpio at 4 {
+                       reg = <4>;
+               };
+
+               gpio at 5 {
+                       reg = <5>;
+               };
+
+               gpio at 6 {
+                       reg = <6>;
+               };
+
+               gpio at 7 {
+                       reg = <7>;
+               };
+
+               gpio at 8 {
+                       reg = <8>;
+               };
+
+               gpio at 9 {
+                       reg = <9>;
+               };
+
+               gpio at 10 {
+                       reg = <10>;
+               };
+
+               gpio at 11 {
+                       reg = <11>;
+               };
+
+               gpio at 12 {
+                       reg = <12>;
+               };
+
+               gpio at 13 {
+                       reg = <13>;
+               };
+
+               gpio at 14 {
+                       reg = <14>;
+               };
+
+               gpio at 15 {
+                       reg = <15>;
+               };
+       };
 };
 
 &i2c11 {
--

1.8.3.1