diff mbox series

[v3,1/2] realtek: enable pca953x driver for target

Message ID 20220309125214.1951-2-musashino.open@gmail.com
State Superseded
Delegated to: Petr Štetiar
Headers show
Series [v3,1/2] realtek: enable pca953x driver for target | expand

Commit Message

INAGAKI Hiroshi March 9, 2022, 12:52 p.m. UTC
The system status LED on Panasonic Switch-M8eG PN28080K is connected to
a PCA9539PW. To use the LED as a status LED of OpenWrt while booting,
enable the pca953x driver and built-in to the kernel.
Also enable CONFIG_GPIO_PCA953X_IRQ to use interrupt via RTL83xx GPIO.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
---
v1 -> v2:

- drop changes in config-5.4
- enable CONFIG_GPIO_PCA953X_IRQ to use interrupt

v2 -> v3:

(no changes)

 target/linux/realtek/rtl838x/config-5.10 | 3 +++
 1 file changed, 3 insertions(+)

Comments

INAGAKI Hiroshi March 9, 2022, 12:58 p.m. UTC | #1
Oops, I forgot to update the title of this commit...

I'll fix and re-send, please ignore this series. Sorry for noise...

Regards,
Hiroshi

On 2022/03/09 21:52, INAGAKI Hiroshi wrote:
> The system status LED on Panasonic Switch-M8eG PN28080K is connected to
> a PCA9539PW. To use the LED as a status LED of OpenWrt while booting,
> enable the pca953x driver and built-in to the kernel.
> Also enable CONFIG_GPIO_PCA953X_IRQ to use interrupt via RTL83xx GPIO.
>
> Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
> ---
> v1 -> v2:
>
> - drop changes in config-5.4
> - enable CONFIG_GPIO_PCA953X_IRQ to use interrupt
>
> v2 -> v3:
>
> (no changes)
>
>   target/linux/realtek/rtl838x/config-5.10 | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/target/linux/realtek/rtl838x/config-5.10 b/target/linux/realtek/rtl838x/config-5.10
> index 1252aab11e..8e27af95ba 100644
> --- a/target/linux/realtek/rtl838x/config-5.10
> +++ b/target/linux/realtek/rtl838x/config-5.10
> @@ -69,6 +69,8 @@ CONFIG_GENERIC_TIME_VSYSCALL=y
>   CONFIG_GPIOLIB=y
>   CONFIG_GPIOLIB_IRQCHIP=y
>   CONFIG_GPIO_GENERIC=y
> +CONFIG_GPIO_PCA953X=y
> +CONFIG_GPIO_PCA953X_IRQ=y
>   CONFIG_GPIO_REALTEK_OTTO=y
>   CONFIG_GPIO_RTL8231=y
>   CONFIG_GRO_CELLS=y
> @@ -166,6 +168,7 @@ CONFIG_REALTEK_OTTO_WDT=y
>   CONFIG_REALTEK_PHY=y
>   CONFIG_REALTEK_SOC_PHY=y
>   CONFIG_REGMAP=y
> +CONFIG_REGMAP_I2C=y
>   CONFIG_REGMAP_MMIO=y
>   CONFIG_RESET_CONTROLLER=y
>   CONFIG_RTL83XX=y
diff mbox series

Patch

diff --git a/target/linux/realtek/rtl838x/config-5.10 b/target/linux/realtek/rtl838x/config-5.10
index 1252aab11e..8e27af95ba 100644
--- a/target/linux/realtek/rtl838x/config-5.10
+++ b/target/linux/realtek/rtl838x/config-5.10
@@ -69,6 +69,8 @@  CONFIG_GENERIC_TIME_VSYSCALL=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIOLIB_IRQCHIP=y
 CONFIG_GPIO_GENERIC=y
+CONFIG_GPIO_PCA953X=y
+CONFIG_GPIO_PCA953X_IRQ=y
 CONFIG_GPIO_REALTEK_OTTO=y
 CONFIG_GPIO_RTL8231=y
 CONFIG_GRO_CELLS=y
@@ -166,6 +168,7 @@  CONFIG_REALTEK_OTTO_WDT=y
 CONFIG_REALTEK_PHY=y
 CONFIG_REALTEK_SOC_PHY=y
 CONFIG_REGMAP=y
+CONFIG_REGMAP_I2C=y
 CONFIG_REGMAP_MMIO=y
 CONFIG_RESET_CONTROLLER=y
 CONFIG_RTL83XX=y