arm64: dts: mediatek: add pwrap support to mt8365 SoC
authorAlexandre Mergnat <amergnat@baylibre.com>
Wed, 29 Mar 2023 08:54:27 +0000 (10:54 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Thu, 30 Mar 2023 17:22:24 +0000 (19:22 +0200)
In order to use the PMIC, the pwrap support should be added
to allow communication between the SoC and the PMIC.

Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230203-evk-board-support-v3-6-0003e80e0095@baylibre.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8365.dtsi

index ff31546..713c560 100644 (file)
                        #clock-cells = <1>;
                };
 
+               pwrap: pwrap@1000d000 {
+                       compatible = "mediatek,mt8365-pwrap";
+                       reg = <0 0x1000d000 0 0x1000>;
+                       reg-names = "pwrap";
+                       interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&infracfg CLK_IFR_PWRAP_SPI>,
+                                <&infracfg CLK_IFR_PMIC_AP>,
+                                <&infracfg CLK_IFR_PWRAP_SYS>,
+                                <&infracfg CLK_IFR_PWRAP_TMR>;
+                       clock-names = "spi", "wrap", "sys", "tmr";
+               };
+
                keypad: keypad@10010000 {
                        compatible = "mediatek,mt6779-keypad";
                        reg = <0 0x10010000 0 0x1000>;