Message ID | 20230823161012.6986-4-kabel@kernel.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Turris Omnia MCU driver | expand |
On 23/08/2023 18:10, Marek Behún wrote: > Turris Omnia's MCU provides various features that can be configured over > I2C at address 0x2a. Add device-tree node. > > Fixes: 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia") > Signed-off-by: Marek Behún <kabel@kernel.org> > --- > .../dts/marvell/armada-385-turris-omnia.dts | 24 ++++++++++++++++++- > 1 file changed, 23 insertions(+), 1 deletion(-) > > 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 2d8d319bec83..761147f5870f 100644 > --- a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts > +++ b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts > @@ -218,7 +218,24 @@ i2c@0 { > #size-cells = <0>; > reg = <0>; > > - /* STM32F0 command interface at address 0x2a */ > + mcu: system-controller@2a { > + compatible = "cznic,turris-omnia-mcu"; > + reg = <0x2a>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&mcu_pins>; > + > + interrupt-parent = <&gpio1>; > + interrupts = <11 IRQ_TYPE_NONE>; > + > + gpio-controller; > + #gpio-cells = <2>; > + > + interrupt-controller; > + #interrupt-cells = <2>; > + > + status = "okay"; Drop status. Best regards, Krzysztof
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 2d8d319bec83..761147f5870f 100644 --- a/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts +++ b/arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts @@ -218,7 +218,24 @@ i2c@0 { #size-cells = <0>; reg = <0>; - /* STM32F0 command interface at address 0x2a */ + mcu: system-controller@2a { + compatible = "cznic,turris-omnia-mcu"; + reg = <0x2a>; + + pinctrl-names = "default"; + pinctrl-0 = <&mcu_pins>; + + interrupt-parent = <&gpio1>; + interrupts = <11 IRQ_TYPE_NONE>; + + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + + status = "okay"; + }; led-controller@2b { compatible = "cznic,turris-omnia-leds"; @@ -503,6 +520,11 @@ fixed-link { }; &pinctrl { + mcu_pins: mcu-pins { + marvell,pins = "mpp43"; + marvell,function = "gpio"; + }; + pcawan_pins: pcawan-pins { marvell,pins = "mpp46"; marvell,function = "gpio";
Turris Omnia's MCU provides various features that can be configured over I2C at address 0x2a. Add device-tree node. Fixes: 26ca8b52d6e1 ("ARM: dts: add support for Turris Omnia") Signed-off-by: Marek Behún <kabel@kernel.org> --- .../dts/marvell/armada-385-turris-omnia.dts | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-)