diff mbox

ARM: dts: kirkwood: Fix SATA pinmux-ing for TS419

Message ID 1487611358.2885.3.camel@decadent.org.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Ben Hutchings Feb. 20, 2017, 5:22 p.m. UTC
On Mon, 2017-02-20 at 17:50 +0100, Thomas Petazzoni wrote:
> Hello,
> 
> On Mon, 20 Feb 2017 16:40:25 +0000, Ben Hutchings wrote:
> 
> > That is precisely what I intended.  20-23 are used by the second
> > Ethernet port.  The old board code doesn't assign 4 or 5 at all.
> 
> Then I believe it would be more explicit to have separate pin muxing
> configurations for SATA on this board.

You mean, define additional pinmux nodes and override the pinctrl-0
property of &sata?  More like this:


Ben.

Comments

Thomas Petazzoni Feb. 20, 2017, 8:31 p.m. UTC | #1
Hello,

On Mon, 20 Feb 2017 17:22:38 +0000, Ben Hutchings wrote:

> You mean, define additional pinmux nodes and override the pinctrl-0
> property of &sata?  More like this:

Yes, exactly.

Thomas
Gregory CLEMENT March 7, 2017, 5:16 p.m. UTC | #2
Hi Ben,
 
 On lun., févr. 20 2017, Ben Hutchings <ben@decadent.org.uk> wrote:

> On Mon, 2017-02-20 at 17:50 +0100, Thomas Petazzoni wrote:
>> Hello,
>> 
>> On Mon, 20 Feb 2017 16:40:25 +0000, Ben Hutchings wrote:
>> 
>> > That is precisely what I intended.  20-23 are used by the second
>> > Ethernet port.  The old board code doesn't assign 4 or 5 at all.
>> 
>> Then I believe it would be more explicit to have separate pin muxing
>> configurations for SATA on this board.
>
> You mean, define additional pinmux nodes and override the pinctrl-0
> property of &sata?  More like this:
>
> --- a/arch/arm/boot/dts/kirkwood-ts419.dtsi
> +++ b/arch/arm/boot/dts/kirkwood-ts419.dtsi
> @@ -73,3 +73,19 @@
>  		phy-handle = <&ethphy1>;
>  	};
>  };
> +
> +&pinctrl {
> +	pmx_sata0_ts419: pmx-sata0-ts419 {
> +		marvell,pins = "mpp15";
> +		marvell,function = "sata0";
> +	};
> +
> +	pmx_sata1_ts419: pmx-sata1-ts419 {
> +		marvell,pins = "mpp16";
> +		marvell,function = "sata1";
> +	};
> +};
> +
> +&sata {
> +	pinctrl-0 = <&pmx_sata0_ts419 &pmx_sata1_ts419>;
> +};
> --- END ---

If you send a new version of your patch, then I will be able to apply
it on mvebu/dt.

Thanks,

Gregory

>
> Ben.
>
> -- 
> Ben Hutchings
> If at first you don't succeed, you're doing about average.
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff mbox

Patch

--- a/arch/arm/boot/dts/kirkwood-ts419.dtsi
+++ b/arch/arm/boot/dts/kirkwood-ts419.dtsi
@@ -73,3 +73,19 @@ 
 		phy-handle = <&ethphy1>;
 	};
 };
+
+&pinctrl {
+	pmx_sata0_ts419: pmx-sata0-ts419 {
+		marvell,pins = "mpp15";
+		marvell,function = "sata0";
+	};
+
+	pmx_sata1_ts419: pmx-sata1-ts419 {
+		marvell,pins = "mpp16";
+		marvell,function = "sata1";
+	};
+};
+
+&sata {
+	pinctrl-0 = <&pmx_sata0_ts419 &pmx_sata1_ts419>;
+};
--- END ---