2021-11-22 12:36:06

by Sam Shih

[permalink] [raw]
Subject: [PATCH v10 0/2] Mediatek MT7986 pinctrl support

This patch series add pinctrl support for mediatek mt7986 SoC series.
It is based on patch series "Add basic SoC support for mediatek mt7986"
https://lore.kernel.org/all/[email protected]/

This patch series base on the following patches
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
that have been applied to the pin control tree

---
v10: used mt7986b.dtsi to include mt7986a.dtsi to reduce duplicate dts nodes
v9: added Acked-by and Reviewed-by tag
v8: fixed uart node in yaml dts example
v7: separate pinctrl part into a single patch series

According to the maintainer’s suggestion, this patch splits the previous
thread into independent patch series.
This patch include clock driver and device tree update

Original thread:
https://lore.kernel.org/all/[email protected]/
---

Sam Shih (2):
arm64: dts: mediatek: add pinctrl support for mt7986a
arm64: dts: mediatek: add pinctrl support for mt7986b

arch/arm64/boot/dts/mediatek/Makefile | 1 +
arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 20 ++++++++++++++
arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 21 ++++++++++++++
arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts | 29 ++++++++++++++++++++
arch/arm64/boot/dts/mediatek/mt7986b.dtsi | 12 ++++++++
5 files changed, 83 insertions(+)
create mode 100644 arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts
create mode 100644 arch/arm64/boot/dts/mediatek/mt7986b.dtsi

--
2.29.2



2021-11-22 12:36:09

by Sam Shih

[permalink] [raw]
Subject: [PATCH v10 1/2] arm64: dts: mediatek: add pinctrl support for mt7986a

Add mt7986a pinctrl node, and update pinmux setting for mt7986a

Signed-off-by: Sam Shih <[email protected]>
---
arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 20 +++++++++++++++++++
arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 21 ++++++++++++++++++++
2 files changed, 41 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts b/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts
index 6911862390d7..5cd760abff51 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts
@@ -29,9 +29,29 @@ &uart0 {
};

&uart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart1_pins>;
status = "okay";
};

&uart2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart2_pins>;
status = "okay";
};
+
+&pio {
+ uart1_pins: uart1-pins {
+ mux {
+ function = "uart";
+ groups = "uart1";
+ };
+ };
+
+ uart2_pins: uart2-pins {
+ mux {
+ function = "uart";
+ groups = "uart2";
+ };
+ };
+};
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
index 77906839cc85..b8da76b6ba47 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -107,6 +107,27 @@ watchdog: watchdog@1001c000 {
status = "disabled";
};

+ pio: pinctrl@1001f000 {
+ compatible = "mediatek,mt7986a-pinctrl";
+ reg = <0 0x1001f000 0 0x1000>,
+ <0 0x11c30000 0 0x1000>,
+ <0 0x11c40000 0 0x1000>,
+ <0 0x11e20000 0 0x1000>,
+ <0 0x11e30000 0 0x1000>,
+ <0 0x11f00000 0 0x1000>,
+ <0 0x11f10000 0 0x1000>,
+ <0 0x1000b000 0 0x1000>;
+ reg-names = "gpio", "iocfg_rt", "iocfg_rb", "iocfg_lt",
+ "iocfg_lb", "iocfg_tr", "iocfg_tl", "eint";
+ gpio-controller;
+ #gpio-cells = <2>;
+ gpio-ranges = <&pio 0 0 100>;
+ interrupt-controller;
+ interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-parent = <&gic>;
+ #interrupt-cells = <2>;
+ };
+
trng: trng@1020f000 {
compatible = "mediatek,mt7986-rng",
"mediatek,mt7623-rng";
--
2.29.2


2021-12-15 20:07:27

by Matthias Brugger

[permalink] [raw]
Subject: Re: [PATCH v10 0/2] Mediatek MT7986 pinctrl support



On 22/11/2021 13:35, Sam Shih wrote:
> This patch series add pinctrl support for mediatek mt7986 SoC series.
> It is based on patch series "Add basic SoC support for mediatek mt7986"
> https://lore.kernel.org/all/[email protected]/
>
> This patch series base on the following patches
> https://lore.kernel.org/all/[email protected]/
> https://lore.kernel.org/all/[email protected]/
> that have been applied to the pin control tree
>

Whole series applied to v5.16-next/dts64

Thanks!

> ---
> v10: used mt7986b.dtsi to include mt7986a.dtsi to reduce duplicate dts nodes
> v9: added Acked-by and Reviewed-by tag
> v8: fixed uart node in yaml dts example
> v7: separate pinctrl part into a single patch series
>
> According to the maintainer’s suggestion, this patch splits the previous
> thread into independent patch series.
> This patch include clock driver and device tree update
>
> Original thread:
> https://lore.kernel.org/all/[email protected]/
> ---
>
> Sam Shih (2):
> arm64: dts: mediatek: add pinctrl support for mt7986a
> arm64: dts: mediatek: add pinctrl support for mt7986b
>
> arch/arm64/boot/dts/mediatek/Makefile | 1 +
> arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 20 ++++++++++++++
> arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 21 ++++++++++++++
> arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts | 29 ++++++++++++++++++++
> arch/arm64/boot/dts/mediatek/mt7986b.dtsi | 12 ++++++++
> 5 files changed, 83 insertions(+)
> create mode 100644 arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts
> create mode 100644 arch/arm64/boot/dts/mediatek/mt7986b.dtsi
>