* [PATCH] ARM: dts: AM437x GP EVM support
@ 2013-11-12 11:24 Afzal Mohammed
2013-11-12 14:22 ` Felipe Balbi
0 siblings, 1 reply; 4+ messages in thread
From: Afzal Mohammed @ 2013-11-12 11:24 UTC (permalink / raw)
To: linux-arm-kernel
From: Lokesh Vutla <lokeshvutla@ti.com>
AM437x GP EVM DTS with pinmux information to make I2C on EVM usable.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Afzal Mohammed <afzal@ti.com>
---
.../devicetree/bindings/arm/omap/omap.txt | 3 ++
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/am437x-gp-evm.dts | 47 ++++++++++++++++++++++
3 files changed, 51 insertions(+)
create mode 100644 arch/arm/boot/dts/am437x-gp-evm.dts
diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt b/Documentation/devicetree/bindings/arm/omap/omap.txt
index 808c154..be5f365 100644
--- a/Documentation/devicetree/bindings/arm/omap/omap.txt
+++ b/Documentation/devicetree/bindings/arm/omap/omap.txt
@@ -61,5 +61,8 @@ Boards:
- AM43x EPOS EVM
compatible = "ti,am43x-epos-evm", "ti,am4372", "ti,am43"
+- AM437x GP EVM
+ compatible = "ti,am437x-gp-evm", "ti,am4372", "ti,am43"
+
- DRA7 EVM: Software Developement Board for DRA7XX
compatible = "ti,dra7-evm", "ti,dra7"
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index d57c1a6..85626e4 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -203,6 +203,7 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
am3517-evm.dtb \
am3517_mt_ventoux.dtb \
am43x-epos-evm.dtb \
+ am437x-gp-evm.dtb \
dra7-evm.dtb
dtb-$(CONFIG_ARCH_ORION5X) += orion5x-lacie-ethernet-disk-mini-v2.dtb
dtb-$(CONFIG_ARCH_PRIMA2) += prima2-evb.dtb
diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts
new file mode 100644
index 0000000..11d93ba
--- /dev/null
+++ b/arch/arm/boot/dts/am437x-gp-evm.dts
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/* AM437x GP EVM */
+
+/dts-v1/;
+
+#include "am4372.dtsi"
+#include <dt-bindings/pinctrl/am43xx.h>
+
+/ {
+ model = "TI AM437x GP EVM";
+ compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43";
+};
+
+&am43xx_pinmux {
+ i2c0_pins: i2c0_pins {
+ pinctrl-single,pins = <
+ 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
+ 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
+ >;
+ };
+
+ i2c1_pins: i2c1_pins {
+ pinctrl-single,pins = <
+ 0x15c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_cs0.i2c1_scl */
+ 0x158 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_d1.i2c1_sda */
+ >;
+ };
+};
+
+&i2c0 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_pins>;
+};
+
+&i2c1 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c1_pins>;
+};
--
1.8.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ARM: dts: AM437x GP EVM support
2013-11-12 11:24 [PATCH] ARM: dts: AM437x GP EVM support Afzal Mohammed
@ 2013-11-12 14:22 ` Felipe Balbi
2013-11-13 7:04 ` Afzal Mohammed
0 siblings, 1 reply; 4+ messages in thread
From: Felipe Balbi @ 2013-11-12 14:22 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
On Tue, Nov 12, 2013 at 04:54:26PM +0530, Afzal Mohammed wrote:
> From: Lokesh Vutla <lokeshvutla@ti.com>
>
> AM437x GP EVM DTS with pinmux information to make I2C on EVM usable.
>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
> Signed-off-by: Afzal Mohammed <afzal@ti.com>
could you instead send the much more complete version we already have
at [1] ? It's pointless to repatch all of that in this file if we *know*
those are already working.
[1] http://git.ti.com/cgit/cgit.cgi/ti-linux-kernel/ti-linux-kernel.git/tree/arch/arm/boot/dts/am437x-gp-evm.dts?h=ti-linux-3.12.y
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131112/b8924342/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: dts: AM437x GP EVM support
2013-11-12 14:22 ` Felipe Balbi
@ 2013-11-13 7:04 ` Afzal Mohammed
2013-11-13 12:44 ` Felipe Balbi
0 siblings, 1 reply; 4+ messages in thread
From: Afzal Mohammed @ 2013-11-13 7:04 UTC (permalink / raw)
To: linux-arm-kernel
Hi Felipe,
On Tuesday 12 November 2013 07:52 PM, Felipe Balbi wrote:
> On Tue, Nov 12, 2013 at 04:54:26PM +0530, Afzal Mohammed wrote:
>> From: Lokesh Vutla <lokeshvutla@ti.com>
>> AM437x GP EVM DTS with pinmux information to make I2C on EVM usable.
>>
>> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
>> Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
>> Signed-off-by: Afzal Mohammed <afzal@ti.com>
> could you instead send the much more complete version we already have
> at [1] ? It's pointless to repatch all of that in this file if we *know*
> those are already working.
By taking those changes and testing on mainline, I couldn't get mmc
working and was not confident about ethernet changes, I2C changes were
verified and boot test was done (with DT clock series). I posted only
the changes that I felt confident.
Basic DT file and I2C are dependency for others, it was necessary to
remove dependencies at the earliest.
Regards
Afzal
> [1] http://git.ti.com/cgit/cgit.cgi/ti-linux-kernel/ti-linux-kernel.git/tree/arch/arm/boot/dts/am437x-gp-evm.dts?h=ti-linux-3.12.y
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: dts: AM437x GP EVM support
2013-11-13 7:04 ` Afzal Mohammed
@ 2013-11-13 12:44 ` Felipe Balbi
0 siblings, 0 replies; 4+ messages in thread
From: Felipe Balbi @ 2013-11-13 12:44 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 13, 2013 at 12:34:29PM +0530, Afzal Mohammed wrote:
> Hi Felipe,
>
> On Tuesday 12 November 2013 07:52 PM, Felipe Balbi wrote:
> > On Tue, Nov 12, 2013 at 04:54:26PM +0530, Afzal Mohammed wrote:
> >> From: Lokesh Vutla <lokeshvutla@ti.com>
>
> >> AM437x GP EVM DTS with pinmux information to make I2C on EVM usable.
> >>
> >> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> >> Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
> >> Signed-off-by: Afzal Mohammed <afzal@ti.com>
>
> > could you instead send the much more complete version we already have
> > at [1] ? It's pointless to repatch all of that in this file if we *know*
> > those are already working.
>
> By taking those changes and testing on mainline, I couldn't get mmc
> working and was not confident about ethernet changes, I2C changes were
> verified and boot test was done (with DT clock series). I posted only
> the changes that I felt confident.
>
> Basic DT file and I2C are dependency for others, it was necessary to
> remove dependencies at the earliest.
fair enough, still sounds weird not to send the full DTS considering
it won't cause regressions, it just exposes an existing failure WRT
AM437x support upstream.
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131113/79ea9155/attachment-0001.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-13 12:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-12 11:24 [PATCH] ARM: dts: AM437x GP EVM support Afzal Mohammed
2013-11-12 14:22 ` Felipe Balbi
2013-11-13 7:04 ` Afzal Mohammed
2013-11-13 12:44 ` Felipe Balbi
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).