Message ID | 20230207-b4-amlogic-bindings-fixups-v2-v1-5-93b7e50286e7@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | arm64: meson: bunch of DT fixes, take 2 | expand |
On Tue, Feb 7, 2023 at 4:08 PM Neil Armstrong <neil.armstrong@linaro.org> wrote: > > Fixes the following bindings check error: > pinctrl@40: keypad-gpio: {...} is not of type 'array' > > Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> [...] > &periphs_pinctrl { > - keypad_gpio_pins: keypad-gpio { > + keypad_gpio_pins: keypad-gpio-state { > mux { > groups = "GPIOX_0", "GPIOX_1", "GPIOX_2", "GPIOX_3", > "GPIOX_4", "GPIOX_5", "GPIOX_6", "GPIOX_7", I'm wondering whether we make the keys work without having to specify a pinmux configuration for them separately. Our pinctrl driver already sets: pc->chip.set_config = gpiochip_generic_config; So you should be able to use the GPIO_PULL_UP flag for these GPIOs in device-tree instead of specifying bias-pull-up here, for example: gpios = <&gpio GPIOX_0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; output-disable is managed by the direction of the GPIO anyways. pinmux_ops.gpio_request_enable is also implemented by our pinctrl driver. This is not urgent - I am just curious as always :-) Best regards, Martin
On 11/02/2023 21:04, Martin Blumenstingl wrote: > On Tue, Feb 7, 2023 at 4:08 PM Neil Armstrong <neil.armstrong@linaro.org> wrote: >> >> Fixes the following bindings check error: >> pinctrl@40: keypad-gpio: {...} is not of type 'array' >> >> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> > Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> > > [...] >> &periphs_pinctrl { >> - keypad_gpio_pins: keypad-gpio { >> + keypad_gpio_pins: keypad-gpio-state { >> mux { >> groups = "GPIOX_0", "GPIOX_1", "GPIOX_2", "GPIOX_3", >> "GPIOX_4", "GPIOX_5", "GPIOX_6", "GPIOX_7", > I'm wondering whether we make the keys work without having to specify > a pinmux configuration for them separately. > Our pinctrl driver already sets: > pc->chip.set_config = gpiochip_generic_config; > So you should be able to use the GPIO_PULL_UP flag for these GPIOs in > device-tree instead of specifying bias-pull-up here, for example: > gpios = <&gpio GPIOX_0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; > > output-disable is managed by the direction of the GPIO anyways. > pinmux_ops.gpio_request_enable is also implemented by our pinctrl driver. > > This is not urgent - I am just curious as always :-) I didn't know we supported this, this is only a bindings check fix, but yeah at some point this should be moved to (GPIO_ACTIVE_LOW | GPIO_PULL_UP). Neil > > > Best regards, > Martin
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts index c8e5a0a42b89..29d642e746d4 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts @@ -620,7 +620,7 @@ &frddr_a { }; &periphs_pinctrl { - keypad_gpio_pins: keypad-gpio { + keypad_gpio_pins: keypad-gpio-state { mux { groups = "GPIOX_0", "GPIOX_1", "GPIOX_2", "GPIOX_3", "GPIOX_4", "GPIOX_5", "GPIOX_6", "GPIOX_7",
Fixes the following bindings check error: pinctrl@40: keypad-gpio: {...} is not of type 'array' Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> --- arch/arm64/boot/dts/amlogic/meson-g12b-odroid-go-ultra.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)