]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: mediatek: mt8516: add i2c clock-div property
authorVal Packett <val@packett.cool>
Wed, 4 Dec 2024 19:05:06 +0000 (16:05 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:46:52 +0000 (12:46 +0100)
[ Upstream commit eb72341fd92b7af510d236e5a8554d855ed38d3c ]

Move the clock-div property from the pumpkin board dtsi to the SoC's
since it belongs to the SoC itself and is required on other devices.

Fixes: 5236347bde42 ("arm64: dts: mediatek: add dtsi for MT8516")
Signed-off-by: Val Packett <val@packett.cool>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20241204190524.21862-4-val@packett.cool
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/mediatek/mt8516.dtsi
arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi

index 5163dda398d561625049f18282d3913026eb6260..383ae46891ec23f61e83b764473aca5e070ffaa3 100644 (file)
                        reg = <0 0x11009000 0 0x90>,
                              <0 0x11000180 0 0x80>;
                        interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>;
+                       clock-div = <2>;
                        clocks = <&topckgen CLK_TOP_I2C0>,
                                 <&topckgen CLK_TOP_APDMA>;
                        clock-names = "main", "dma";
                        reg = <0 0x1100a000 0 0x90>,
                              <0 0x11000200 0 0x80>;
                        interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_LOW>;
+                       clock-div = <2>;
                        clocks = <&topckgen CLK_TOP_I2C1>,
                                 <&topckgen CLK_TOP_APDMA>;
                        clock-names = "main", "dma";
                        reg = <0 0x1100b000 0 0x90>,
                              <0 0x11000280 0 0x80>;
                        interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_LOW>;
+                       clock-div = <2>;
                        clocks = <&topckgen CLK_TOP_I2C2>,
                                 <&topckgen CLK_TOP_APDMA>;
                        clock-names = "main", "dma";
index d5059735c594048b134b46b166f81fb7e840587f..e5e3a3969145b849e70ad760ccaba1e39d9fd8d3 100644 (file)
@@ -48,7 +48,6 @@
 };
 
 &i2c0 {
-       clock-div = <2>;
        pinctrl-names = "default";
        pinctrl-0 = <&i2c0_pins_a>;
        status = "okay";
 };
 
 &i2c2 {
-       clock-div = <2>;
        pinctrl-names = "default";
        pinctrl-0 = <&i2c2_pins_a>;
        status = "okay";