[PATCH v2 6/6] configs: airoha: en7523: enable pinctrl/gpio support
David Lechner
dlechner at baylibre.com
Tue Apr 28 23:03:38 CEST 2026
On 4/28/26 10:34 AM, Mikhail Kshevetskiy wrote:
> This enables EN7523 pin controller and gpio driver.
>
> This patch also removes existing gpio nodes and replaces them
> with pinctrl node. It should not be very dangerous, because:
> * No official EN7523 gpio support present in U-Boot
> * The same driver is planned for upstream linux/openwrt
>
> Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
> ---
> arch/arm/dts/en7523-u-boot.dtsi | 21 +++++++++++++++++++++
probably better to split dts changes into a separate patch
> configs/en7523_evb_defconfig | 1 +
> 2 files changed, 22 insertions(+)
>
> diff --git a/arch/arm/dts/en7523-u-boot.dtsi b/arch/arm/dts/en7523-u-boot.dtsi
> index 62d1a724678..3bd78b373a3 100644
> --- a/arch/arm/dts/en7523-u-boot.dtsi
> +++ b/arch/arm/dts/en7523-u-boot.dtsi
> @@ -2,6 +2,9 @@
>
> #include <dt-bindings/reset/airoha,en7523-reset.h>
>
> +/delete-node/ &gpio0;
> +/delete-node/ &gpio1;
> +
> / {
> reserved-memory {
> #address-cells = <1>;
> @@ -22,6 +25,24 @@
> #reset-cells = <1>;
> };
>
> + system-controller at 1fbf0200 {
> + compatible = "syscon", "simple-mfd";
> + reg = <0x1fbf0200 0xc0>;
> +
> + en7523_pinctrl: pinctrl {
> + compatible = "airoha,en7523-pinctrl", "airoha,airoha-pinctrl";
Upstream bindings for other similar pinctrls don't have this fallback.
I would drop it.
> +
> + interrupt-parent = <&gic>;
> + interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
> +
> + gpio-controller;
> + #gpio-cells = <2>;
> +
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + };
> + };
> +
> eth: ethernet at 1fb50000 {
> compatible = "airoha,en7523-eth";
> reg = <0x1fb50000 0x2600>,
> diff --git a/configs/en7523_evb_defconfig b/configs/en7523_evb_defconfig
> index 381d5d05616..e8433c7da12 100644
> --- a/configs/en7523_evb_defconfig
> +++ b/configs/en7523_evb_defconfig
> @@ -56,6 +56,7 @@ CONFIG_AIROHA_ETH=y
> CONFIG_PHY=y
> CONFIG_PINCTRL=y
> CONFIG_PINCONF=y
> +CONFIG_PINCTRL_AIROHA_EN7523=y
> CONFIG_RAM=y
> CONFIG_DM_SERIAL=y
> CONFIG_SYS_NS16550=y
More information about the U-Boot
mailing list