]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: aspeed: yosemite4: Add gpio pca9506 for CPLD IOE
authorRicky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
Tue, 10 Sep 2024 05:47:51 +0000 (13:47 +0800)
committerAndrew Jeffery <andrew@codeconstruct.com.au>
Fri, 13 Dec 2024 05:16:58 +0000 (15:46 +1030)
We use CPLD to emulate gpio pca9506 I/O expander on each server
boards.
Therefore, add pca9506 to probe driver for the CPLD I/O expander.

Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
Link: https://patch.msgid.link/20240910054751.2943217-3-Delphine_CC_Chiu@wiwynn.com
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts

index bc91c7ac3b349d8baaf90b216b00257733416b86..10837d4fcd170e4b37a7e63a8764c9333973848a 100644 (file)
                reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
        };
 
+       gpio@21 {
+               compatible = "nxp,pca9506";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@22 {
+               compatible = "nxp,pca9506";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@23 {
+               compatible = "nxp,pca9506";
+               reg = <0x23>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@24 {
+               compatible = "nxp,pca9506";
+               reg = <0x24>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
        power-sensor@40 {
                compatible = "adi,adm1281";
                reg = <0x40>;
                reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
        };
 
+       gpio@21 {
+               compatible = "nxp,pca9506";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@22 {
+               compatible = "nxp,pca9506";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@23 {
+               compatible = "nxp,pca9506";
+               reg = <0x23>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@24 {
+               compatible = "nxp,pca9506";
+               reg = <0x24>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
        power-sensor@40 {
                compatible = "adi,adm1281";
                reg = <0x40>;
                reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
        };
 
+       gpio@21 {
+               compatible = "nxp,pca9506";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@22 {
+               compatible = "nxp,pca9506";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@23 {
+               compatible = "nxp,pca9506";
+               reg = <0x23>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@24 {
+               compatible = "nxp,pca9506";
+               reg = <0x24>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
        power-sensor@40 {
                compatible = "adi,adm1281";
                reg = <0x40>;
                reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
        };
 
+       gpio@21 {
+               compatible = "nxp,pca9506";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@22 {
+               compatible = "nxp,pca9506";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@23 {
+               compatible = "nxp,pca9506";
+               reg = <0x23>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@24 {
+               compatible = "nxp,pca9506";
+               reg = <0x24>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
        power-sensor@40 {
                compatible = "adi,adm1281";
                reg = <0x40>;
                reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
        };
 
+       gpio@21 {
+               compatible = "nxp,pca9506";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@22 {
+               compatible = "nxp,pca9506";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@23 {
+               compatible = "nxp,pca9506";
+               reg = <0x23>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@24 {
+               compatible = "nxp,pca9506";
+               reg = <0x24>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
        power-sensor@40 {
                compatible = "adi,adm1281";
                reg = <0x40>;
                reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
        };
 
+       gpio@21 {
+               compatible = "nxp,pca9506";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@22 {
+               compatible = "nxp,pca9506";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@23 {
+               compatible = "nxp,pca9506";
+               reg = <0x23>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@24 {
+               compatible = "nxp,pca9506";
+               reg = <0x24>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
        power-sensor@40 {
                compatible = "adi,adm1281";
                reg = <0x40>;
                reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
        };
 
+       gpio@21 {
+               compatible = "nxp,pca9506";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@22 {
+               compatible = "nxp,pca9506";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@23 {
+               compatible = "nxp,pca9506";
+               reg = <0x23>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@24 {
+               compatible = "nxp,pca9506";
+               reg = <0x24>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
        power-sensor@40 {
                compatible = "adi,adm1281";
                reg = <0x40>;
                reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
        };
 
+       gpio@21 {
+               compatible = "nxp,pca9506";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@22 {
+               compatible = "nxp,pca9506";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@23 {
+               compatible = "nxp,pca9506";
+               reg = <0x23>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@24 {
+               compatible = "nxp,pca9506";
+               reg = <0x24>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
        power-sensor@40 {
                compatible = "adi,adm1281";
                reg = <0x40>;
                reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
                i2c-protocol;
        };
+
+       gpio@20 {
+               compatible = "nxp,pca9506";
+               reg = <0x20>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@21 {
+               compatible = "nxp,pca9506";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@22 {
+               compatible = "nxp,pca9506";
+               reg = <0x22>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio@23 {
+               compatible = "nxp,pca9506";
+               reg = <0x23>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
 };
 
 &i2c14 {