diff mbox

[v2,4/4] ARM: shmobile: emev2-kzm9d: Add PFC information for uart1

Message ID 1421583604-27256-5-git-send-email-niso@kth.se (mailing list archive)
State Deferred
Delegated to: Simon Horman
Headers show

Commit Message

Niklas Söderlund Jan. 18, 2015, 12:20 p.m. UTC
Configure the pinmux on kzm9d to use the serial connector for uart1.

Signed-off-by: Niklas Söderlund <niso@kth.se>
---
 arch/arm/boot/dts/emev2-kzm9d.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Linus Walleij Jan. 27, 2015, 7:55 a.m. UTC | #1
On Sun, Jan 18, 2015 at 1:20 PM, Niklas Söderlund <niso@kth.se> wrote:

> Configure the pinmux on kzm9d to use the serial connector for uart1.
>
> Signed-off-by: Niklas Söderlund <niso@kth.se>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

> +&pfc {
> +       uart1_pins: uart@e1030000 {
> +               renesas,groups = "uart1_ctrl", "uart1_data";
> +               renesas,function = "uart1";
> +       };
> +};

Would be nice if the PFC driver could be augmented to also accept the
now standard bindings "groups" and "function" simply :) we're adding parse
functions for those to the core.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Laurent Pinchart Jan. 27, 2015, 8:35 p.m. UTC | #2
Hi Niklas,

Thank you for the patch.

On Sunday 18 January 2015 13:20:04 Niklas Söderlund wrote:
> Configure the pinmux on kzm9d to use the serial connector for uart1.
> 
> Signed-off-by: Niklas Söderlund <niso@kth.se>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  arch/arm/boot/dts/emev2-kzm9d.dts | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/emev2-kzm9d.dts
> b/arch/arm/boot/dts/emev2-kzm9d.dts index 667d323..1944627 100644
> --- a/arch/arm/boot/dts/emev2-kzm9d.dts
> +++ b/arch/arm/boot/dts/emev2-kzm9d.dts
> @@ -94,3 +94,16 @@
>  		vdd33a-supply = <&reg_3p3v>;
>  	};
>  };
> +
> +&pfc {
> +	uart1_pins: uart@e1030000 {
> +		renesas,groups = "uart1_ctrl", "uart1_data";
> +		renesas,function = "uart1";
> +	};
> +};
> +
> +&uart1 {
> +	pinctrl-0 = <&uart1_pins>;
> +	pinctrl-names = "default";
> +	status = "okay";
> +};
diff mbox

Patch

diff --git a/arch/arm/boot/dts/emev2-kzm9d.dts b/arch/arm/boot/dts/emev2-kzm9d.dts
index 667d323..1944627 100644
--- a/arch/arm/boot/dts/emev2-kzm9d.dts
+++ b/arch/arm/boot/dts/emev2-kzm9d.dts
@@ -94,3 +94,16 @@ 
 		vdd33a-supply = <&reg_3p3v>;
 	};
 };
+
+&pfc {
+	uart1_pins: uart@e1030000 {
+		renesas,groups = "uart1_ctrl", "uart1_data";
+		renesas,function = "uart1";
+	};
+};
+
+&uart1 {
+	pinctrl-0 = <&uart1_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+};