Message ID | 20240424173809.7214-10-kabel@kernel.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Turris Omnia MCU driver | expand |
Hello Marek, > Now that we have the MCU device-tree node, which acts as a GPIO > controller, add GPIO key node for the front button. > > Fixes: 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia") Same as previous patch is it really a fix ? Gregory > Signed-off-by: Marek Behún <kabel@kernel.org> > --- > .../boot/dts/marvell/armada-385-turris-omnia.dts | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts > index 59079d63fe27..43202890c959 100644 > --- a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts > +++ b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts > @@ -112,6 +112,19 @@ sfp: sfp { > status = "disabled"; > }; > > + gpio-keys { > + compatible = "gpio-keys"; > + > + front-button { > + label = "Front Button"; > + linux,code = <KEY_VENDOR>; > + linux,can-disable; > + gpios = <&mcu 0 12 GPIO_ACTIVE_HIGH>; > + /* debouncing is done by the microcontroller */ > + debounce-interval = <0>; > + }; > + }; > + > sound { > compatible = "simple-audio-card"; > simple-audio-card,name = "SPDIF"; > -- > 2.43.2
diff --git a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts index 59079d63fe27..43202890c959 100644 --- a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts +++ b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts @@ -112,6 +112,19 @@ sfp: sfp { status = "disabled"; }; + gpio-keys { + compatible = "gpio-keys"; + + front-button { + label = "Front Button"; + linux,code = <KEY_VENDOR>; + linux,can-disable; + gpios = <&mcu 0 12 GPIO_ACTIVE_HIGH>; + /* debouncing is done by the microcontroller */ + debounce-interval = <0>; + }; + }; + sound { compatible = "simple-audio-card"; simple-audio-card,name = "SPDIF";
Now that we have the MCU device-tree node, which acts as a GPIO controller, add GPIO key node for the front button. Fixes: 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia") Signed-off-by: Marek Behún <kabel@kernel.org> --- .../boot/dts/marvell/armada-385-turris-omnia.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+)