diff mbox series

[v3,3/4] arm64: dts: mediatek: x20: Add pinmux support for UART1

Message ID 20181107174844.5381-4-manivannan.sadhasivam@linaro.org
State Accepted
Commit 58bef10e47fe7126ee6e6e1548c95ccb3258e6ce
Headers show
Series [v3,1/4] dt-bindings: pinctrl: Add devicetree bindings for MT6797 SoC Pinctrl | expand

Commit Message

Manivannan Sadhasivam Nov. 7, 2018, 5:48 p.m. UTC
Add pinmux support for UART1 on MediatekX20 Development board based
on Mediatek MT6797 SoC.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

---
 arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts | 2 ++
 arch/arm64/boot/dts/mediatek/mt6797.dtsi        | 7 +++++++
 2 files changed, 9 insertions(+)

-- 
2.17.1

Comments

Matthias Brugger Nov. 29, 2018, 11:49 a.m. UTC | #1
On 07/11/2018 18:48, Manivannan Sadhasivam wrote:
> Add pinmux support for UART1 on MediatekX20 Development board based

> on Mediatek MT6797 SoC.

> 

> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

> ---

>  arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts | 2 ++

>  arch/arm64/boot/dts/mediatek/mt6797.dtsi        | 7 +++++++

>  2 files changed, 9 insertions(+)

> 



pushed to v4.20-next/dts64

Thanks!


> diff --git a/arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts b/arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts

> index 742938a1a548..13939d55b85b 100644

> --- a/arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts

> +++ b/arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts

> @@ -30,4 +30,6 @@

>  

>  &uart1 {

>  	status = "okay";

> +	pinctrl-names = "default";

> +	pinctrl-0 = <&uart1_pins_a>;

>  };

> diff --git a/arch/arm64/boot/dts/mediatek/mt6797.dtsi b/arch/arm64/boot/dts/mediatek/mt6797.dtsi

> index 231230d32d09..a64bb84bdec3 100644

> --- a/arch/arm64/boot/dts/mediatek/mt6797.dtsi

> +++ b/arch/arm64/boot/dts/mediatek/mt6797.dtsi

> @@ -141,6 +141,13 @@

>  			    "iocfgr", "iocfgt";

>  		gpio-controller;

>  		#gpio-cells = <2>;

> +

> +		uart1_pins_a: uart1 {

> +			pins1 {

> +				pinmux = <MT6797_GPIO232__FUNC_URXD1>,

> +					 <MT6797_GPIO233__FUNC_UTXD1>;

> +			};

> +		};

>  	};

>  

>  	scpsys: scpsys@10006000 {

>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts b/arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts
index 742938a1a548..13939d55b85b 100644
--- a/arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts
+++ b/arch/arm64/boot/dts/mediatek/mt6797-x20-dev.dts
@@ -30,4 +30,6 @@ 
 
 &uart1 {
 	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart1_pins_a>;
 };
diff --git a/arch/arm64/boot/dts/mediatek/mt6797.dtsi b/arch/arm64/boot/dts/mediatek/mt6797.dtsi
index 231230d32d09..a64bb84bdec3 100644
--- a/arch/arm64/boot/dts/mediatek/mt6797.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt6797.dtsi
@@ -141,6 +141,13 @@ 
 			    "iocfgr", "iocfgt";
 		gpio-controller;
 		#gpio-cells = <2>;
+
+		uart1_pins_a: uart1 {
+			pins1 {
+				pinmux = <MT6797_GPIO232__FUNC_URXD1>,
+					 <MT6797_GPIO233__FUNC_UTXD1>;
+			};
+		};
 	};
 
 	scpsys: scpsys@10006000 {