arm64: dts: mediatek: Move MT6358 PMIC interrupts to MT8183 boards
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 25 Oct 2023 09:38:12 +0000 (11:38 +0200)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 11 Dec 2023 10:12:56 +0000 (11:12 +0100)
MT6358 is a PMIC that is typically used on MT8183 boards, and it has
its own dtsi file, declaring interrupts-extended on its node.

The interrupt pin of that PMIC is connected to a SoC GPIO and that
is therefore not only SoC-specific, but board-specific: this means
that the interrupt-extended property does not belong to the PMIC
dtsi file, but to board files using that PMIC.

For correctness, transfer the interrupts-extended property from the
PMIC-specific mt6358.dtsi to board files.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt6358.dtsi
arch/arm64/boot/dts/mediatek/mt8183-evb.dts
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts

index 6f01ddf..61a6553 100644 (file)
@@ -8,7 +8,6 @@
        pmic: pmic {
                compatible = "mediatek,mt6358";
                interrupt-controller;
-               interrupts-extended = <&pio 182 IRQ_TYPE_LEVEL_HIGH>;
                #interrupt-cells = <2>;
 
                mt6358codec: mt6358codec {
index ce336a4..f8c1f8d 100644 (file)
        };
 };
 
+&pmic {
+       interrupts-extended = <&pio 182 IRQ_TYPE_LEVEL_HIGH>;
+};
+
 &mfg {
        domain-supply = <&mt6358_vgpu_reg>;
 };
index adadfc6..c81407e 100644 (file)
        };
 };
 
+&pmic {
+       interrupts-extended = <&pio 182 IRQ_TYPE_LEVEL_HIGH>;
+};
+
 &pwm0 {
        status = "okay";
        pinctrl-names = "default";
index b5784a6..76449b4 100644 (file)
        };
 };
 
+&pmic {
+       interrupts-extended = <&pio 182 IRQ_TYPE_LEVEL_HIGH>;
+};
+
 &mfg {
        domain-supply = <&mt6358_vgpu_reg>;
 };