devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: am57xx-idk: Add DCAN support
@ 2017-02-21 10:00 Sekhar Nori
       [not found] ` <8981d49e7011a7246ff7dc6a9a9da0a56dfe5621.1487670384.git.nsekhar-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Sekhar Nori @ 2017-02-21 10:00 UTC (permalink / raw)
  To: Tony Lindgren, Rob Herring, Mark Rutland
  Cc: Linux OMAP Mailing List, Linux ARM Mailing List,
	Device Tree Mailing List, Schuyler Patton, Kishon Vijay Abraham I,
	Franklin S Cooper Jr

From: Schuyler Patton <spatton-l0cyMroinI0@public.gmane.org>

AM571x IDK and the AM572x IDK use CAN1 interface.
This patch enables it for both boards.

Tested on AM572x IDK using cansequence.

Signed-off-by: Schuyler Patton <spatton-l0cyMroinI0@public.gmane.org>
Signed-off-by: Kishon Vijay Abraham I <kishon-l0cyMroinI0@public.gmane.org>
Signed-off-by: Franklin S Cooper Jr <fcooper-l0cyMroinI0@public.gmane.org>
[nsekhar-l0cyMroinI0@public.gmane.org: move to use DRA7XX_CORE_IOPAD())
Signed-off-by: Sekhar Nori <nsekhar-l0cyMroinI0@public.gmane.org>
---
 arch/arm/boot/dts/am57xx-idk-common.dtsi | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi
index 814a720d5c3d..abdee2e7a18e 100644
--- a/arch/arm/boot/dts/am57xx-idk-common.dtsi
+++ b/arch/arm/boot/dts/am57xx-idk-common.dtsi
@@ -97,6 +97,22 @@
 	};
 };
 
+&dra7_pmx_core {
+	dcan1_pins_default: dcan1_pins_default {
+		pinctrl-single,pins = <
+			DRA7XX_CORE_IOPAD(0x37d0, PIN_OUTPUT_PULLUP | MUX_MODE0)	/* dcan1_tx */
+			DRA7XX_CORE_IOPAD(0x37d4, PIN_INPUT_PULLUP | MUX_MODE0)		/* dcan1_rx */
+		>;
+	};
+
+	dcan1_pins_sleep: dcan1_pins_sleep {
+		pinctrl-single,pins = <
+			DRA7XX_CORE_IOPAD(0x37d0, MUX_MODE15 | PULL_UP)	/* dcan1_tx.off */
+			DRA7XX_CORE_IOPAD(0x37d4, MUX_MODE15 | PULL_UP)	/* dcan1_rx.off */
+		>;
+	};
+};
+
 &i2c1 {
 	status = "okay";
 	clock-frequency = <400000>;
@@ -387,6 +403,14 @@
 	max-frequency = <96000000>;
 };
 
+&dcan1 {
+	status = "okay";
+	pinctrl-names = "default", "sleep", "active";
+	pinctrl-0 = <&dcan1_pins_sleep>;
+	pinctrl-1 = <&dcan1_pins_sleep>;
+	pinctrl-2 = <&dcan1_pins_default>;
+};
+
 &qspi {
 	status = "okay";
 
-- 
2.9.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] ARM: dts: am57xx-idk: Add DCAN support
       [not found] ` <8981d49e7011a7246ff7dc6a9a9da0a56dfe5621.1487670384.git.nsekhar-l0cyMroinI0@public.gmane.org>
@ 2017-02-21 10:11   ` Sekhar Nori
  2017-03-06 18:41     ` Tony Lindgren
  0 siblings, 1 reply; 5+ messages in thread
From: Sekhar Nori @ 2017-02-21 10:11 UTC (permalink / raw)
  To: Tony Lindgren, Rob Herring, Mark Rutland
  Cc: Linux OMAP Mailing List, Linux ARM Mailing List,
	Device Tree Mailing List, Schuyler Patton, Kishon Vijay Abraham I,
	Franklin S Cooper Jr, Quadros, Roger

On Tuesday 21 February 2017 03:30 PM, Sekhar Nori wrote:
> From: Schuyler Patton <spatton-l0cyMroinI0@public.gmane.org>
> 
> AM571x IDK and the AM572x IDK use CAN1 interface.
> This patch enables it for both boards.
> 
> Tested on AM572x IDK using cansequence.
> 
> Signed-off-by: Schuyler Patton <spatton-l0cyMroinI0@public.gmane.org>
> Signed-off-by: Kishon Vijay Abraham I <kishon-l0cyMroinI0@public.gmane.org>
> Signed-off-by: Franklin S Cooper Jr <fcooper-l0cyMroinI0@public.gmane.org>
> [nsekhar-l0cyMroinI0@public.gmane.org: move to use DRA7XX_CORE_IOPAD())
> Signed-off-by: Sekhar Nori <nsekhar-l0cyMroinI0@public.gmane.org>

I should have noted that although CAN does function on the IDK with this
patch, there are "omap_hwmod: dcan1: _wait_target_disable failed"
messages that come up due to lack of workaround for errata i893[1]

Roger does have some patches to workaround that errata. If you want to
wait for those patches to be submitted and accepted first, it should be
fine as well.

Thanks,
Sekhar

[1] http://www.ti.com/lit/er/sprz436b/sprz436b.pdf
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ARM: dts: am57xx-idk: Add DCAN support
  2017-02-21 10:11   ` Sekhar Nori
@ 2017-03-06 18:41     ` Tony Lindgren
  2017-03-30 14:23       ` Sekhar Nori
  0 siblings, 1 reply; 5+ messages in thread
From: Tony Lindgren @ 2017-03-06 18:41 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: Mark Rutland, Device Tree Mailing List, Schuyler Patton,
	Kishon Vijay Abraham I, Rob Herring, Franklin S Cooper Jr,
	Linux OMAP Mailing List, Linux ARM Mailing List, Quadros, Roger

* Sekhar Nori <nsekhar@ti.com> [170221 02:13]:
> On Tuesday 21 February 2017 03:30 PM, Sekhar Nori wrote:
> > From: Schuyler Patton <spatton@ti.com>
> > 
> > AM571x IDK and the AM572x IDK use CAN1 interface.
> > This patch enables it for both boards.
> > 
> > Tested on AM572x IDK using cansequence.
> > 
> > Signed-off-by: Schuyler Patton <spatton@ti.com>
> > Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
> > Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
> > [nsekhar@ti.com: move to use DRA7XX_CORE_IOPAD())
> > Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> 
> I should have noted that although CAN does function on the IDK with this
> patch, there are "omap_hwmod: dcan1: _wait_target_disable failed"
> messages that come up due to lack of workaround for errata i893[1]
> 
> Roger does have some patches to workaround that errata. If you want to
> wait for those patches to be submitted and accepted first, it should be
> fine as well.

OK let's wait a bit on this then to avoid introducing extra warnings.

Regards,

Tony

> [1] http://www.ti.com/lit/er/sprz436b/sprz436b.pdf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ARM: dts: am57xx-idk: Add DCAN support
  2017-03-06 18:41     ` Tony Lindgren
@ 2017-03-30 14:23       ` Sekhar Nori
       [not found]         ` <042d52f4-3148-0564-a41a-5212ede042d5-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Sekhar Nori @ 2017-03-30 14:23 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: Mark Rutland, Device Tree Mailing List, Schuyler Patton,
	Kishon Vijay Abraham I, Rob Herring, Franklin S Cooper Jr,
	Linux OMAP Mailing List, Linux ARM Mailing List, Quadros, Roger

Hi Tony,

On Tuesday 07 March 2017 12:11 AM, Tony Lindgren wrote:
> * Sekhar Nori <nsekhar@ti.com> [170221 02:13]:
>> On Tuesday 21 February 2017 03:30 PM, Sekhar Nori wrote:
>>> From: Schuyler Patton <spatton@ti.com>
>>>
>>> AM571x IDK and the AM572x IDK use CAN1 interface.
>>> This patch enables it for both boards.
>>>
>>> Tested on AM572x IDK using cansequence.
>>>
>>> Signed-off-by: Schuyler Patton <spatton@ti.com>
>>> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
>>> Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
>>> [nsekhar@ti.com: move to use DRA7XX_CORE_IOPAD())
>>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
>>
>> I should have noted that although CAN does function on the IDK with this
>> patch, there are "omap_hwmod: dcan1: _wait_target_disable failed"
>> messages that come up due to lack of workaround for errata i893[1]
>>
>> Roger does have some patches to workaround that errata. If you want to
>> wait for those patches to be submitted and accepted first, it should be
>> fine as well.
> 
> OK let's wait a bit on this then to avoid introducing extra warnings.

Now that Roger's hwmod patches for the DCAN errata are in linux-next,
this patch can be applied safely. Let me know if you need me to resend it.

Thanks,
Sekhar

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ARM: dts: am57xx-idk: Add DCAN support
       [not found]         ` <042d52f4-3148-0564-a41a-5212ede042d5-l0cyMroinI0@public.gmane.org>
@ 2017-04-04 15:56           ` Tony Lindgren
  0 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2017-04-04 15:56 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: Rob Herring, Mark Rutland, Linux OMAP Mailing List,
	Linux ARM Mailing List, Device Tree Mailing List, Schuyler Patton,
	Kishon Vijay Abraham I, Franklin S Cooper Jr, Quadros, Roger

* Sekhar Nori <nsekhar-l0cyMroinI0@public.gmane.org> [170330 07:26]:
> Hi Tony,
> 
> On Tuesday 07 March 2017 12:11 AM, Tony Lindgren wrote:
> > * Sekhar Nori <nsekhar-l0cyMroinI0@public.gmane.org> [170221 02:13]:
> >> On Tuesday 21 February 2017 03:30 PM, Sekhar Nori wrote:
> >>> From: Schuyler Patton <spatton-l0cyMroinI0@public.gmane.org>
> >>>
> >>> AM571x IDK and the AM572x IDK use CAN1 interface.
> >>> This patch enables it for both boards.
> >>>
> >>> Tested on AM572x IDK using cansequence.
> >>>
> >>> Signed-off-by: Schuyler Patton <spatton-l0cyMroinI0@public.gmane.org>
> >>> Signed-off-by: Kishon Vijay Abraham I <kishon-l0cyMroinI0@public.gmane.org>
> >>> Signed-off-by: Franklin S Cooper Jr <fcooper-l0cyMroinI0@public.gmane.org>
> >>> [nsekhar-l0cyMroinI0@public.gmane.org: move to use DRA7XX_CORE_IOPAD())
> >>> Signed-off-by: Sekhar Nori <nsekhar-l0cyMroinI0@public.gmane.org>
> >>
> >> I should have noted that although CAN does function on the IDK with this
> >> patch, there are "omap_hwmod: dcan1: _wait_target_disable failed"
> >> messages that come up due to lack of workaround for errata i893[1]
> >>
> >> Roger does have some patches to workaround that errata. If you want to
> >> wait for those patches to be submitted and accepted first, it should be
> >> fine as well.
> > 
> > OK let's wait a bit on this then to avoid introducing extra warnings.
> 
> Now that Roger's hwmod patches for the DCAN errata are in linux-next,
> this patch can be applied safely. Let me know if you need me to resend it.

No need to resend, applying into omap-for-v4.12/dt-v2.

Thanks,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-04-04 15:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-21 10:00 [PATCH] ARM: dts: am57xx-idk: Add DCAN support Sekhar Nori
     [not found] ` <8981d49e7011a7246ff7dc6a9a9da0a56dfe5621.1487670384.git.nsekhar-l0cyMroinI0@public.gmane.org>
2017-02-21 10:11   ` Sekhar Nori
2017-03-06 18:41     ` Tony Lindgren
2017-03-30 14:23       ` Sekhar Nori
     [not found]         ` <042d52f4-3148-0564-a41a-5212ede042d5-l0cyMroinI0@public.gmane.org>
2017-04-04 15:56           ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).