Enable CONFIG_GPIO_DELAY on sandbox and sandbox64 so the gpio-delay driver gets sandbox coverage, and add a gpio-delay-test node wrapping two real GPIO lines (gpio_a 9 and 18), along with test6-gpios and test7-gpios consumer properties for use by an upcoming test.
Verified the existing sandbox test suite (ut dm, pytest) still passes unchanged with the driver enabled and the new node present. Signed-off-by: Pranav Sanwal <[email protected]> --- arch/sandbox/dts/test.dts | 10 ++++++++++ configs/sandbox64_defconfig | 1 + configs/sandbox_defconfig | 1 + 3 files changed, 12 insertions(+) diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index a2c739a2044..7c2c9ed5103 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -331,6 +331,9 @@ <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>; test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>; test5-gpios = <&gpio_a 19>; + test6-gpios = <&gpio_delay 0 10 20>, <&gpio_delay 1 30 40>, + <&gpio_delay 0 50 60>; + test7-gpios = <&gpio_delay 5 10 20>; bool-value; int8-value = /bits/ 8 <0x12>; @@ -860,6 +863,13 @@ gpio-bank-name = "c"; sandbox,gpio-count = <10>; }; + + gpio_delay: gpio-delay-test { + compatible = "gpio-delay"; + gpio-controller; + #gpio-cells = <3>; + gpios = <&gpio_a 9>, <&gpio_a 18>; + }; }; i2c@0 { diff --git a/configs/sandbox64_defconfig b/configs/sandbox64_defconfig index d3fe64c5a83..2b512a599e3 100644 --- a/configs/sandbox64_defconfig +++ b/configs/sandbox64_defconfig @@ -144,6 +144,7 @@ CONFIG_DM_DEMO_SHAPE=y CONFIG_FASTBOOT_FLASH=y CONFIG_FASTBOOT_FLASH_MMC_DEV=0 CONFIG_ARM_FFA_TRANSPORT=y +CONFIG_GPIO_DELAY=y CONFIG_GPIO_HOG=y CONFIG_DM_GPIO_LOOKUP_LABEL=y CONFIG_QCOM_PMIC_GPIO=y diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 2055321025e..9deeab003c9 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_defconfig @@ -214,6 +214,7 @@ CONFIG_SYS_FPGA_CHECK_BUSY=y CONFIG_SYS_FPGA_CHECK_CTRLC=y CONFIG_DM_FPGA=y CONFIG_SANDBOX_FPGA=y +CONFIG_GPIO_DELAY=y CONFIG_GPIO_HOG=y CONFIG_DM_GPIO_LOOKUP_LABEL=y CONFIG_QCOM_PMIC_GPIO=y -- 2.43.7
