Commit eb5f711b authored by Wealian Liao's avatar Wealian Liao Committed by Anas Nashif
Browse files

test: driver: buildall: Add NCT38XX gpio



Add support NCT38XX I2C-based GPIO in build all test.

Signed-off-by: default avatarWealian Liao <WHLIAO@nuvoton.com>
parent 5a9bc389
Loading
Loading
Loading
Loading
+69 −1
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@
				ngpios = <8>;
				nint-gpios = <&test_gpio 0 0>;
			};

			test_i2c_fxl6408: fxl6408@43 {
				status = "okay";
				compatible = "fcs,fxl6408";
@@ -80,6 +81,73 @@
				#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 {
+1 −0
Original line number Diff line number Diff line
@@ -8,3 +8,4 @@ CONFIG_GPIO_PCA953X=y
CONFIG_GPIO_FXL6408=y
CONFIG_SPI=y
CONFIG_GPIO_MCP23S17=y
CONFIG_GPIO_NCT38XX=y