Skip to content

Commit cfa65ef

Browse files
elkablogclement
authored andcommitted
ARM: dts: turris-omnia: Add MCU system-controller node
Turris Omnia's MCU provides various features that can be configured over I2C at address 0x2a. Add device-tree node. This does not carry a Fixes tag - we do not want this to get backported to stable kernels for the following reason: U-Boot since v2022.10 inserts a phy-reset-gpio property into the WAN ethernet node pointing to the MCU node if it finds the MCU node with a cznic,turris-omnia-mcu compatible. Thus if this change got backported to a stable kernel, the WAN interface driver would defer probe indefinitely (since it would wait for the turris-omnia-mcu driver which would not be present). Signed-off-by: Marek Behún <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Gregory CLEMENT <[email protected]>
1 parent 5b3566a commit cfa65ef

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

arch/arm/boot/dts/marvell/armada-385-turris-omnia.dts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,22 @@
218218
#size-cells = <0>;
219219
reg = <0>;
220220

221-
/* STM32F0 command interface at address 0x2a */
221+
mcu: system-controller@2a {
222+
compatible = "cznic,turris-omnia-mcu";
223+
reg = <0x2a>;
224+
225+
pinctrl-names = "default";
226+
pinctrl-0 = <&mcu_pins>;
227+
228+
interrupt-parent = <&gpio1>;
229+
interrupts = <11 IRQ_TYPE_NONE>;
230+
231+
gpio-controller;
232+
#gpio-cells = <3>;
233+
234+
interrupt-controller;
235+
#interrupt-cells = <2>;
236+
};
222237

223238
led-controller@2b {
224239
compatible = "cznic,turris-omnia-leds";
@@ -501,6 +516,11 @@
501516
};
502517

503518
&pinctrl {
519+
mcu_pins: mcu-pins {
520+
marvell,pins = "mpp43";
521+
marvell,function = "gpio";
522+
};
523+
504524
pcawan_pins: pcawan-pins {
505525
marvell,pins = "mpp46";
506526
marvell,function = "gpio";

0 commit comments

Comments
 (0)