]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: mediatek: add mt6357 PMIC support for mt8365-evk
authorAlexandre Mergnat <amergnat@baylibre.com>
Thu, 25 May 2023 08:33:13 +0000 (10:33 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 29 May 2023 13:19:42 +0000 (15:19 +0200)
This power management system chip integration helps to manage regulators
and keys.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Link: https://lore.kernel.org/r/20230203-evk-board-support-v8-4-7019f3fd0adf@baylibre.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8365-evk.dts

index ceb48eb1a6e6942888b9d7efb5682c673adb6b2d..6074aa9c1c3e3a12ee016a505b21deac73cafb6c 100644 (file)
@@ -12,6 +12,7 @@
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/pinctrl/mt8365-pinfunc.h>
 #include "mt8365.dtsi"
+#include "mt6357.dtsi"
 
 / {
        model = "MediaTek MT8365 Open Platform EVK";
        status = "okay";
 };
 
+&mt6357_pmic {
+       interrupts-extended = <&pio 145 IRQ_TYPE_LEVEL_HIGH>;
+       interrupt-controller;
+       #interrupt-cells = <2>;
+};
+
 &pio {
        gpio_keys: gpio-keys-pins {
                pins {