riscv: dts: microchip: fix the icicle's #pwm-cells
authorConor Dooley <conor.dooley@microchip.com>
Fri, 7 Oct 2022 11:35:11 +0000 (12:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:31:51 +0000 (13:31 +0100)
[ Upstream commit bdd28ab35c163553a2a686fdc5ea3cf247aad69b ]

\#pwm-cells for the Icicle kit's fabric PWM was incorrectly set to 2 &
blindly overridden by the (out of tree) driver anyway. The core can
support inverted operation, so update the entry to correctly report its
capabilities.

Fixes: 72560c6559b8 ("riscv: dts: microchip: add fpga fabric section to icicle kit")
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/boot/dts/microchip/mpfs-icicle-kit-fabric.dtsi

index 24b1cfb..5d3e524 100644 (file)
@@ -9,7 +9,7 @@
                compatible = "microchip,corepwm-rtl-v4";
                reg = <0x0 0x40000000 0x0 0xF0>;
                microchip,sync-update-mask = /bits/ 32 <0>;
-               #pwm-cells = <2>;
+               #pwm-cells = <3>;
                clocks = <&fabric_clk3>;
                status = "disabled";
        };