test: driver: buildall: Add NCT38XX gpio
Add support NCT38XX I2C-based GPIO in build all test. Signed-off-by: Wealian Liao <WHLIAO@nuvoton.com>
This commit is contained in:
parent
5a9bc389f0
commit
eb5f711b7b
2 changed files with 70 additions and 1 deletions
|
@ -71,6 +71,7 @@
|
|||
ngpios = <8>;
|
||||
nint-gpios = <&test_gpio 0 0>;
|
||||
};
|
||||
|
||||
test_i2c_fxl6408: fxl6408@43 {
|
||||
status = "okay";
|
||||
compatible = "fcs,fxl6408";
|
||||
|
@ -79,7 +80,74 @@
|
|||
ngpios = <8>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
};
|
||||
};
|
||||
|
||||
test_i2c_nct3807: nct3807@72 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "nuvoton,nct38xx-gpio";
|
||||
reg = <0x72>;
|
||||
label = "NCT3807_0";
|
||||
|
||||
gpio@0 {
|
||||
compatible = "nuvoton,nct38xx-gpio-port";
|
||||
reg = <0x0>;
|
||||
label = "NCT3807_0_GPIO0";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <8>;
|
||||
pin_mask = <0xff>;
|
||||
pinmux_mask = <0xf7>;
|
||||
};
|
||||
|
||||
gpio@1 {
|
||||
compatible = "nuvoton,nct38xx-gpio-port";
|
||||
reg = <0x1>;
|
||||
label = "NCT3807_0_GPIO1";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <8>;
|
||||
pin_mask = <0xff>;
|
||||
};
|
||||
};
|
||||
|
||||
test_i2c_nct3808_p1: nct3808_0_P1@71 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "nuvoton,nct38xx-gpio";
|
||||
reg = <0x71>;
|
||||
label = "NCT3808_0_P1";
|
||||
|
||||
gpio@0 {
|
||||
compatible = "nuvoton,nct38xx-gpio-port";
|
||||
reg = <0x0>;
|
||||
label = "NCT3808_0_P1_GPIO0";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <8>;
|
||||
pin_mask = <0xdc>;
|
||||
pinmux_mask = <0xff>;
|
||||
};
|
||||
};
|
||||
|
||||
test_i2c_nct3808_p2: nct3808_0_P2@75 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "nuvoton,nct38xx-gpio";
|
||||
reg = <0x75>;
|
||||
label = "NCT3808_0_P2";
|
||||
|
||||
gpio@0 {
|
||||
compatible = "nuvoton,nct38xx-gpio-port";
|
||||
reg = <0x0>;
|
||||
label = "NCT3808_0_P2_GPIO0";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <8>;
|
||||
pin_mask = <0xdc>;
|
||||
pinmux_mask = <0xff>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
test_spi: spi@33334444 {
|
||||
|
|
|
@ -8,3 +8,4 @@ CONFIG_GPIO_PCA953X=y
|
|||
CONFIG_GPIO_FXL6408=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_GPIO_MCP23S17=y
|
||||
CONFIG_GPIO_NCT38XX=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue