Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 359f9365 authored by Hongzhou Yang's avatar Hongzhou Yang Committed by Matthias Brugger
Browse files

arm64: dts: mt8173: Add pinctrl/GPIO/EINT node for mt8173.



Add pinctrl, GPIO and EINT node to mt8173.dtsi.

Signed-off-by: default avatarHongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 0a233cdf
Loading
Loading
Loading
Loading
+682 −0

File added.

Preview size limit exceeded, changes collapsed.

+20 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include "mt8173-pinfunc.h"

/ {
	compatible = "mediatek,mt8173";
@@ -105,6 +106,25 @@
		compatible = "simple-bus";
		ranges;

		syscfg_pctl_a: syscfg_pctl_a@10005000 {
			compatible = "mediatek,mt8173-pctl-a-syscfg", "syscon";
			reg = <0 0x10005000 0 0x1000>;
		};

		pio: pinctrl@0x10005000 {
			compatible = "mediatek,mt8173-pinctrl";
			reg = <0 0x1000B000 0 0x1000>;
			mediatek,pctl-regmap = <&syscfg_pctl_a>;
			pins-are-numbered;
			gpio-controller;
			#gpio-cells = <2>;
			interrupt-controller;
			#interrupt-cells = <2>;
			interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
						<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
						<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
		};

		sysirq: intpol-controller@10200620 {
			compatible = "mediatek,mt8173-sysirq",
					"mediatek,mt6577-sysirq";