[patch] fix omap compile with randconfig

2014-01-12 Thread Pavel Machek

This fixes:

arch/arm/mach-omap2/built-in.o: In function `omap_reserve':
/data/l/linux-n900/arch/arm/mach-omap2/common.c:36: undefined
  reference to `omap_fb_reserve_memblock'

Signed-off-by: Pavel Machek 

diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c
index 9beecde..857907f 100644
--- a/arch/arm/mach-omap2/common.c
+++ b/arch/arm/mach-omap2/common.c
@@ -33,5 +33,7 @@ void __init omap_reserve(void)
omap_dsp_reserve_sdram_memblock();
omap_secure_ram_reserve_memblock();
omap_barrier_reserve_memblock();
+#ifdef CONFIG_OMAP2_VRFB
omap_fb_reserve_memblock();
+#endif
 }


-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 12/12] ARM: OMAP2+: make reset pulse for sbc-t3x usb hubs

2014-01-12 Thread Dmitry Lifshitz
sbc-t3x boards features two external USB ports on SB-T35 baseboard.
The baseboardi USB hub reset signal should be de-asserted to make
those ports functional.

sbc-t3517 features additional (assembled on CoM) USB hub which also
requires reset signal handling.

Add quirks code to handle proper reset pulse signal.

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/mach-omap2/pdata-quirks.c |   21 +
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/pdata-quirks.c 
b/arch/arm/mach-omap2/pdata-quirks.c
index 1ee831f..3e1407c 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -108,6 +108,23 @@ static int omap3_sbc_t3730_twl_callback(struct device *dev,
return 0;
 }
 
+static void __init omap3_sbc_t3x_usb_hub_init(int gpio, char *hub_name)
+{
+   int err = gpio_request_one(gpio, GPIOF_OUT_INIT_LOW, hub_name);
+
+   if (err) {
+   pr_err("SBC-T3x: %s reset gpio request failed: %d\n",
+   hub_name, err);
+   return;
+   }
+
+   gpio_export(gpio, 0);
+
+   udelay(10);
+   gpio_set_value(gpio, 1);
+   msleep(1);
+}
+
 static void __init omap3_sbc_t3730_twl_init(void)
 {
twl_gpio_auxdata.setup = omap3_sbc_t3730_twl_callback;
@@ -115,12 +132,14 @@ static void __init omap3_sbc_t3730_twl_init(void)
 
 static void __init omap3_sbc_t3730_legacy_init(void)
 {
+   omap3_sbc_t3x_usb_hub_init(167, "sb-t35 usb hub");
legacy_init_wl12xx(WL12XX_REFCLOCK_38, 0, 136);
omap_ads7846_init(1, 57, 0, NULL);
 }
 
 static void __init omap3_sbc_t3530_legacy_init(void)
 {
+   omap3_sbc_t3x_usb_hub_init(167, "sb-t35 usb hub");
omap_ads7846_init(1, 57, 0, NULL);
 }
 
@@ -198,6 +217,8 @@ static void __init omap3_sbc_t3517_wifi_init(void)
 
 static void __init omap3_sbc_t3517_legacy_init(void)
 {
+   omap3_sbc_t3x_usb_hub_init(152, "cm-t3517 usb hub");
+   omap3_sbc_t3x_usb_hub_init(98, "sb-t35 usb hub");
am35xx_emac_reset();
hsmmc2_internal_input_clk();
omap3_sbc_t3517_wifi_init();
-- 
1.7.5.4

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


[PATCH 02/12] ARM: dts: sbc-t3x: refactor DT support

2014-01-12 Thread Dmitry Lifshitz
Refactor the sbc-t3x device tree as a preparation for additional
(sbc-t3530, sbc-t3517, etc.) boards support.

No functional changes.

The device tree will have the following structure:

omap3-cm-t3x.dtsi
 |
 |<-- omap3-cm-t3x30.dtsi
 | |
 | |
 | | -  ---  
 | || CoM || Board || Base board |
 | | -  ---  
 | |omap3-sb-t35.dtsi
 | |  |
 | |<-- omap3-cm-t3730.dts <-- omap3-sbc-t3730.dts -->|
 | |  |
 | |<-- omap3-cm-t3530.dts <-- omap3-sbc-t3530.dts -->|
 ||
 |< omap3-cm-t3517.dts <-- omap3-sbc-t3517.dts -->|

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/omap3-cm-t3730.dts  |   41 --
 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   60 +
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |   36 +--
 arch/arm/boot/dts/omap3-sb-t35.dtsi   |   11 ++
 arch/arm/boot/dts/omap3-sbc-t3730.dts |   14 
 arch/arm/mach-omap2/pdata-quirks.c|2 +-
 6 files changed, 89 insertions(+), 75 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap3-cm-t3x.dtsi

diff --git a/arch/arm/boot/dts/omap3-cm-t3730.dts 
b/arch/arm/boot/dts/omap3-cm-t3730.dts
index 508cd9b..b3f9a50 100644
--- a/arch/arm/boot/dts/omap3-cm-t3730.dts
+++ b/arch/arm/boot/dts/omap3-cm-t3730.dts
@@ -32,16 +32,6 @@
 };
 
 &omap3_pmx_core {
-   mmc1_pins: pinmux_mmc1_pins {
-   pinctrl-single,pins = <
-   OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT_PULLUP | 
MUX_MODE0)/* sdmmc1_clk.sdmmc1_clk */
-   OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_cmd.sdmmc1_cmd */
-   OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat0.sdmmc1_dat0 */
-   OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat1.sdmmc1_dat1 */
-   OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat2.sdmmc1_dat2 */
-   OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat3.sdmmc1_dat3 */
-   >;
-   };
 
mmc2_pins: pinmux_mmc2_pins {
pinctrl-single,pins = <
@@ -54,20 +44,6 @@
>;
};
 
-   smsc1_pins: pinmux_smsc1_pins {
-   pinctrl-single,pins = <
-   OMAP3_CORE1_IOPAD(0x20b8, PIN_OUTPUT | MUX_MODE0)   
/* gpmc_ncs5.gpmc_ncs5 */
-   OMAP3_CORE1_IOPAD(0x219a, PIN_INPUT_PULLUP | MUX_MODE4) 
/* uart3_cts_rctx.gpio_163 */
-   >;
-   };
-
-   uart3_pins: pinmux_uart3_pins {
-   pinctrl-single,pins = <
-   OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)
/* uart3_rx_irrx.uart3_rx_irrx */
-   OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)   
/* uart3_tx_irtx.uart3_tx_irtx */
-   >;
-   };
-
wl12xx_gpio: pinmux_wl12xx_gpio {
pinctrl-single,pins = <
OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE4)   
/* dss_data3.gpio_73 */
@@ -76,13 +52,6 @@
};
 };
 
-&mmc1 {
-   vmmc-supply = <&vmmc1>;
-   bus-width = <4>;
-   pinctrl-names = "default";
-   pinctrl-0 = <&mmc1_pins>;
-};
-
 &mmc2 {
pinctrl-names = "default";
pinctrl-0 = <&mmc2_pins>;
@@ -92,13 +61,3 @@
bus-width = <4>;
cap-power-off-card;
 };
-
-&smsc1 {
-   pinctrl-names = "default";
-   pinctrl-0 = <&smsc1_pins>;
-};
-
-&uart3 {
-   pinctrl-names = "default";
-   pinctrl-0 = <&uart3_pins>;
-};
diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
new file mode 100644
index 000..ca6090d
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -0,0 +1,60 @@
+/*
+ * Common support for CompuLab CM-T3x CoMs
+ */
+
+/ {
+
+   memory {
+   device_type = "memory";
+   reg = <0x8000 0x1000>; /* 256 MB */
+   };
+
+   leds {
+   compatible = "gpio-leds";
+   ledb {
+   label = "cm-t3x:green";
+   gpios = <&gpio6 26 GPIO_ACTIVE_HIGH>;  /* gpio186 */
+   linux,default-trigger = "heartbeat";
+   };
+   };
+};
+
+&omap3_pmx_core {
+
+   uart3_pins: pinmux_uart3_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT  | MUX_MODE0)   
/* uart3_rx_irrx.uart3_rx_irrx */
+   OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)   
/* uart3_tx_irtx.uart3_tx_irtx */
+   >;
+   };
+
+   mmc1_pins: pinmux

[PATCH 09/12] ARM: dts: cm-t3x30: add USB OTG support

2014-01-12 Thread Dmitry Lifshitz
Add USB OTG support for cm-t3x30 CoMs.

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |   28 
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index cb43929..d000558 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -32,6 +32,23 @@
OMAP3_CORE1_IOPAD(0x219a, PIN_INPUT_PULLUP | MUX_MODE4) 
/* uart3_cts_rctx.gpio_163 */
>;
};
+
+   hsusb0_pins: pinmux_hsusb0_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)   
/* hsusb0_clk.hsusb0_clk */
+   OMAP3_CORE1_IOPAD(0x21a2, PIN_OUTPUT | MUX_MODE0)   
/* hsusb0_stp.hsusb0_stp */
+   OMAP3_CORE1_IOPAD(0x21a4, PIN_INPUT_PULLDOWN | 
MUX_MODE0)   /* hsusb0_dir.hsusb0_dir */
+   OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT_PULLDOWN | 
MUX_MODE0)   /* hsusb0_nxt.hsusb0_nxt */
+   OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT_PULLDOWN | 
MUX_MODE0)   /* hsusb0_data0.hsusb2_data0 */
+   OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT_PULLDOWN | 
MUX_MODE0)   /* hsusb0_data1.hsusb0_data1 */
+   OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT_PULLDOWN | 
MUX_MODE0)   /* hsusb0_data2.hsusb0_data2 */
+   OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT_PULLDOWN | 
MUX_MODE0)   /* hsusb0_data7.hsusb0_data3 */
+   OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT_PULLDOWN | 
MUX_MODE0)   /* hsusb0_data7.hsusb0_data4 */
+   OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT_PULLDOWN | 
MUX_MODE0)   /* hsusb0_data7.hsusb0_data5 */
+   OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT_PULLDOWN | 
MUX_MODE0)   /* hsusb0_data7.hsusb0_data6 */
+   OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT_PULLDOWN | 
MUX_MODE0)   /* hsusb0_data7.hsusb0_data7 */
+   >;
+   };
 };
 
 &gpmc {
@@ -101,3 +118,14 @@
 &hsusb2_phy {
reset-gpios = <&twl_gpio 7 GPIO_ACTIVE_LOW>;
 };
+
+&usb_otg_hs {
+   pinctrl-names = "default";
+   pinctrl-0 = <&hsusb0_pins>;
+   interface-type = <0>;
+   usb-phy = <&usb2_phy>;
+   phys = <&usb2_phy>;
+   phy-names = "usb2-phy";
+   mode = <3>;
+   power = <50>;
+};
-- 
1.7.5.4

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


[PATCH 03/12] ARM: dts: sbc-t3x: disable mmc3

2014-01-12 Thread Dmitry Lifshitz
Disable mmc3 interface, since is not used on sbc-t3x boards.

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/omap3-cm-t3x.dtsi |4 
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index ca6090d..842201c 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -51,6 +51,10 @@
bus-width = <4>;
 };
 
+&mmc3 {
+   status = "disabled";
+};
+
 &i2c1 {
clock-frequency = <40>;
 };
-- 
1.7.5.4

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


[PATCH 00/11] ARM: dts: sbc-t3x: add support for more boards

2014-01-12 Thread Dmitry Lifshitz
Add support for CompuLab SBC-T3530 and SBC-T3517 boards:

https://compulab.co.il/products/sbcs/sbc-t3530/
https://compulab.co.il/products/sbcs/sbc-t3517/

along with respective CoMs - CM-T3530 and CM-T3517:

https://compulab.co.il/products/computer-on-modules/cm-t3530/
https://compulab.co.il/products/computer-on-modules/cm-t3517/

The device tree files have the following structure:

omap3-cm-t3x.dtsi
 |
 |<-- omap3-cm-t3x30.dtsi
 | |
 | |
 | | -  ---  
 | || CoM || Board || Base board |
 | | -  ---  
 | |omap3-sb-t35.dtsi
 | |  |
 | |<-- omap3-cm-t3730.dts <-- omap3-sbc-t3730.dts -->|
 | |  |
 | |<-- omap3-cm-t3530.dts <-- omap3-sbc-t3530.dts -->|
 ||
 |< omap3-cm-t3517.dts <-- omap3-sbc-t3517.dts -->|


where omap3-cm-t3730.dts, omap3-cm-t3530.dts, omap3-cm-t3517.dts
contain CoMs specific data, while omap3-sbc-t3730.dts, omap3-sbc-t3530.dts,
omap3-sbc-t3517.dts represent eval boards with respective core modules.

This series is based on Tony's omap-for-v3.14/dt branch

Dmitry Lifshitz (11):
  ARM: dts: sbc-t3x: refactor DT support
  ARM: dts: sbc-t3x: disable mmc3
  ARM: dts: sb-t35: fix Ethernet power supply
  ARM: dts: cm-t3x: add gpio-led pinmux
  ARM: dts: cm-t3x30: add twl4030 gpio pullups
  ARM: dts: cm-t3x30: add HS USB Host support
  ARM: dts: sbc-t3730: add pinmux for usb hub reset
  ARM: dts: cm-t3x30: add USB OTG support
  ARM: dts: sbc-t3530: add support for sbc-t3530
  ARM: dts: sbc-t3517: add support for sbc-t3517
  ARM: OMAP2+: make reset pulse for sbc-t3x usb hubs

 arch/arm/boot/dts/Makefile|4 +
 arch/arm/boot/dts/omap3-cm-t3517.dts  |  137 +
 arch/arm/boot/dts/omap3-cm-t3530.dts  |   13 +++
 arch/arm/boot/dts/omap3-cm-t3730.dts  |   40 --
 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |  112 +++
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |   74 +-
 arch/arm/boot/dts/omap3-sb-t35.dtsi   |   30 +++-
 arch/arm/boot/dts/omap3-sbc-t3517.dts |   44 +++
 arch/arm/boot/dts/omap3-sbc-t3530.dts |   37 +
 arch/arm/boot/dts/omap3-sbc-t3730.dts |   24 +++---
 arch/arm/mach-omap2/pdata-quirks.c|   67 -
 11 files changed, 506 insertions(+), 76 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap3-cm-t3517.dts
 create mode 100644 arch/arm/boot/dts/omap3-cm-t3530.dts
 create mode 100644 arch/arm/boot/dts/omap3-cm-t3x.dtsi
 create mode 100644 arch/arm/boot/dts/omap3-sbc-t3517.dts
 create mode 100644 arch/arm/boot/dts/omap3-sbc-t3530.dts

-- 
1.7.5.4

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


[PATCH 06/12] ARM: dts: cm-t3x30: add twl4030 gpio pullups

2014-01-12 Thread Dmitry Lifshitz
Add pullup for twl4030 GPIO_0 used as MMC1 card detect signal.

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index 4bcc639..a56d082 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -90,4 +90,6 @@
 
 &twl_gpio {
ti,use-leds;
+   /* pullups: BIT(0) */
+   ti,pullups = <0x01>;
 };
-- 
1.7.5.4

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


[PATCH 04/12] ARM: dts: sb-t35: fix Ethernet power supply

2014-01-12 Thread Dmitry Lifshitz
SB-T35 baseboard features SMSC9220 Ethernet chip which requires
its own power supply regulators.

Add baseboard specific regulators for the SB-T35 Ethernet chip.

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/omap3-sb-t35.dtsi |   18 --
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-sb-t35.dtsi 
b/arch/arm/boot/dts/omap3-sb-t35.dtsi
index b3b6e43..7909c51 100644
--- a/arch/arm/boot/dts/omap3-sb-t35.dtsi
+++ b/arch/arm/boot/dts/omap3-sb-t35.dtsi
@@ -2,6 +2,20 @@
  * Common support for CompuLab SB-T35 used on SBC-T3530, SBC-T3517 and 
SBC-T3730
  */
 
+/ {
+   vddvario_sb_t35: regulator-vddvario-sb-t35 {
+   compatible = "regulator-fixed";
+   regulator-name = "vddvario";
+   regulator-always-on;
+   };
+
+   vdd33a_sb_t35: regulator-vdd33a-sb-t35 {
+   compatible = "regulator-fixed";
+   regulator-name = "vdd33a";
+   regulator-always-on;
+   };
+};
+
 &omap3_pmx_core {
smsc2_pins: pinmux_smsc2_pins {
pinctrl-single,pins = <
@@ -43,8 +57,8 @@
gpmc,wr-access-ns = <186>;
gpmc,cycle2cycle-samecsen;
gpmc,cycle2cycle-diffcsen;
-   vddvario-supply = <&vddvario>;
-   vdd33a-supply = <&vdd33a>;
+   vddvario-supply = <&vddvario_sb_t35>;
+   vdd33a-supply = <&vdd33a_sb_t35>;
reg-io-width = <4>;
smsc,save-mac-address;
};
-- 
1.7.5.4

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


[PATCH 10/12] ARM: dts: sbc-t3530: add support for sbc-t3530

2014-01-12 Thread Dmitry Lifshitz
Add support for CM-T3530 CoM and SBC-T3530 board.

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/Makefile|2 +
 arch/arm/boot/dts/omap3-cm-t3530.dts  |   12 +++
 arch/arm/boot/dts/omap3-sbc-t3530.dts |   36 +
 arch/arm/mach-omap2/pdata-quirks.c|6 +
 4 files changed, 56 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap3-cm-t3530.dts
 create mode 100644 arch/arm/boot/dts/omap3-sbc-t3530.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index b7af502..fb8c397 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -179,6 +179,8 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
omap2420-n810-wimax.dtb \
omap3430-sdp.dtb \
omap3-beagle.dtb \
+   omap3-cm-t3530.dtb \
+   omap3-sbc-t3530.dtb \
omap3-cm-t3730.dtb \
omap3-sbc-t3730.dtb \
omap3-devkit8000.dtb \
diff --git a/arch/arm/boot/dts/omap3-cm-t3530.dts 
b/arch/arm/boot/dts/omap3-cm-t3530.dts
new file mode 100644
index 000..9faf1cd
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-cm-t3530.dts
@@ -0,0 +1,12 @@
+/*
+ * Support for CompuLab CM-T3530
+ */
+/dts-v1/;
+
+#include "omap34xx.dtsi"
+#include "omap3-cm-t3x30.dtsi"
+
+/ {
+   model = "CompuLab CM-T3530";
+   compatible = "compulab,omap3-cm-t3530", "ti,omap34xx", "ti,omap3";
+};
diff --git a/arch/arm/boot/dts/omap3-sbc-t3530.dts 
b/arch/arm/boot/dts/omap3-sbc-t3530.dts
new file mode 100644
index 000..bbbeea6
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-sbc-t3530.dts
@@ -0,0 +1,36 @@
+/*
+ * Suppport for CompuLab SBC-T3530 with CM-T3530
+ */
+
+#include "omap3-cm-t3530.dts"
+#include "omap3-sb-t35.dtsi"
+
+/ {
+   model = "CompuLab SBC-T3530 with CM-T3530";
+   compatible = "compulab,omap3-sbc-t3530", "compulab,omap3-cm-t3530", 
"ti,omap34xx", "ti,omap3";
+};
+
+&omap3_pmx_core {
+   pinctrl-names = "default";
+   pinctrl-0 = <&sb_t35_usb_hub_pins>;
+
+   sb_t35_usb_hub_pins: pinmux_sb_t35_usb_hub_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x2130, PIN_OUTPUT | MUX_MODE4) /* 
ccdc_wen.gpio_167 - SB-T35 USB HUB RST */
+   >;
+   };
+};
+
+/*
+ * The following ranges correspond to SMSC9x eth chips on CM-T3530 CoM and
+ * SB-T35 baseboard respectively.
+ * This setting includes both chips in SBC-T3530 board device tree.
+ */
+&gpmc {
+   ranges = <5 0 0x2c00 0x0100>,
+<4 0 0x2d00 0x0100>;
+};
+
+&mmc1 {
+   cd-gpios =  <&twl_gpio 0 GPIO_ACTIVE_HIGH>;
+};
diff --git a/arch/arm/mach-omap2/pdata-quirks.c 
b/arch/arm/mach-omap2/pdata-quirks.c
index 0748ade..4f2591e 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -119,6 +119,11 @@ static void __init omap3_sbc_t3730_legacy_init(void)
omap_ads7846_init(1, 57, 0, NULL);
 }
 
+static void __init omap3_sbc_t3530_legacy_init(void)
+{
+   omap_ads7846_init(1, 57, 0, NULL);
+}
+
 static void __init omap3_igep0020_legacy_init(void)
 {
omap3_igep2_display_init_of();
@@ -258,6 +263,7 @@ struct of_dev_auxdata omap_auxdata_lookup[] __initdata = {
  */
 static struct pdata_init pdata_quirks[] __initdata = {
 #ifdef CONFIG_ARCH_OMAP3
+   { "compulab,omap3-sbc-t3530", omap3_sbc_t3530_legacy_init, },
{ "compulab,omap3-sbc-t3730", omap3_sbc_t3730_legacy_init, },
{ "nokia,omap3-n900", hsmmc2_internal_input_clk, },
{ "nokia,omap3-n9", hsmmc2_internal_input_clk, },
-- 
1.7.5.4

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


[PATCH 05/12] ARM: dts: cm-t3x: add gpio-led pinmux

2014-01-12 Thread Dmitry Lifshitz
GPIO186 is used for the heartbeat led.
Setup the pinmux for the GPIO186.

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/omap3-cm-t3x.dtsi |8 
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index 842201c..abda493 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -11,6 +11,8 @@
 
leds {
compatible = "gpio-leds";
+   pinctrl-names = "default";
+   pinctrl-0 = <&green_led_pins>;
ledb {
label = "cm-t3x:green";
gpios = <&gpio6 26 GPIO_ACTIVE_HIGH>;  /* gpio186 */
@@ -38,6 +40,12 @@
OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat3.sdmmc1_dat3 */
>;
};
+
+   green_led_pins: pinmux_green_led_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x21e2, PIN_OUTPUT | MUX_MODE4)   
/* sys_clkout2.gpio_186 */
+   >;
+   };
 };
 
 &uart3 {
-- 
1.7.5.4

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


[PATCH 11/12] ARM: dts: sbc-t3517: add support for sbc-t3517

2014-01-12 Thread Dmitry Lifshitz
Add support for CM-T3517 CoM and SBC-T3517 board.

reused common support for sbc-t3x boards
(omap3-cm-t3x.dtsi, omap3-sb-t35.dtsi):

* SB-T35 baseboard eth
* MMC1, UART3
* HS USB Port 1/2
* I2C1/3
* Heartbit led

Added basic support for:

* MMC1 wp/cd signals
* CM-T3517 Usb Hub
* WL12xx WiFi chip
* Davinci EMAC
* AM35X OTG

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/Makefile|2 +
 arch/arm/boot/dts/omap3-cm-t3517.dts  |  136 +
 arch/arm/boot/dts/omap3-sbc-t3517.dts |   43 ++
 arch/arm/mach-omap2/pdata-quirks.c|   38 +-
 4 files changed, 218 insertions(+), 1 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap3-cm-t3517.dts
 create mode 100644 arch/arm/boot/dts/omap3-sbc-t3517.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index fb8c397..afa9698 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -179,6 +179,8 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
omap2420-n810-wimax.dtb \
omap3430-sdp.dtb \
omap3-beagle.dtb \
+   omap3-cm-t3517.dtb \
+   omap3-sbc-t3517.dtb \
omap3-cm-t3530.dtb \
omap3-sbc-t3530.dtb \
omap3-cm-t3730.dtb \
diff --git a/arch/arm/boot/dts/omap3-cm-t3517.dts 
b/arch/arm/boot/dts/omap3-cm-t3517.dts
new file mode 100644
index 000..d00502f
--- /dev/null
+++ b/arch/arm/boot/dts/omap3-cm-t3517.dts
@@ -0,0 +1,136 @@
+/*
+ * Support for CompuLab CM-T3517
+ */
+/dts-v1/;
+
+#include "am3517.dtsi"
+#include "omap3-cm-t3x.dtsi"
+
+/ {
+   model = "CompuLab CM-T3517";
+   compatible = "compulab,omap3-cm-t3517", "ti,am3517", "ti,omap3";
+
+   vmmc:  regulator-vmmc {
+compatible = "regulator-fixed";
+regulator-name = "vmmc";
+regulator-min-microvolt = <330>;
+regulator-max-microvolt = <330>;
+};
+
+   wl12xx_vmmc2: wl12xx_vmmc2 {
+   compatible = "regulator-fixed";
+   regulator-name = "vw1271";
+   pinctrl-names = "default";
+   pinctrl-0 = <
+   &wl12xx_wkup_pins
+   &wl12xx_core_pins
+   >;
+   regulator-min-microvolt = <180>;
+   regulator-max-microvolt = <180>;
+   gpio = <&gpio1 6 GPIO_ACTIVE_HIGH >; /* gpio6 */
+   startup-delay-us = <2>;
+   enable-active-high;
+   };
+
+   wl12xx_vaux2: wl12xx_vaux2 {
+   compatible = "regulator-fixed";
+   regulator-name = "vwl1271_vaux2";
+   regulator-min-microvolt = <180>;
+   regulator-max-microvolt = <180>;
+   };
+};
+
+&omap3_pmx_wkup {
+
+   wl12xx_wkup_pins: pinmux_wl12xx_wkup_pins {
+   pinctrl-single,pins = <
+   OMAP3_WKUP_IOPAD(0x2a0e, PIN_OUTPUT | MUX_MODE4)
/* sys_boot2.gpio_4 */
+   OMAP3_WKUP_IOPAD(0x2a12, PIN_OUTPUT | MUX_MODE4)
/* sys_boot4.gpio_6 */
+   >;
+   };
+};
+
+&omap3_pmx_core {
+
+   phy1_reset_pins: pinmux_hsusb1_phy_reset_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE4)   
/* uart2_tx.gpio_146 */
+   >;
+   };
+
+   phy2_reset_pins: pinmux_hsusb2_phy_reset_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x217a, PIN_OUTPUT | MUX_MODE4)   
/* uart2_rx.gpio_147 */
+   >;
+   };
+
+   otg_drv_vbus: pinmux_otg_drv_vbus {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x2210, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rmii_50Mhz_clk.usb0_drvvbus */
+   >;
+   };
+
+   mmc2_pins: pinmux_mmc2_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_clk.sdmmc2_clk */
+   OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_cmd.sdmmc2_cmd */
+   OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_dat0.sdmmc2_dat0 */
+   OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_dat1.sdmmc2_dat1 */
+   OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_dat2.sdmmc2_dat2 */
+   OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_dat3.sdmmc2_dat3 */
+   >;
+   };
+
+   wl12xx_core_pins: pinmux_wl12xx_core_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x20b8, PIN_OUTPUT | MUX_MODE4)   
/* gpmc_ncs5.gpio_56 */
+   OMAP3_CORE1_IOPAD(0x2176, PIN_INPUT_PULLUP | MUX_MODE4) 
/* uart2_rts.gpio_145 */
+   >;
+   };
+
+   usb_hub_pins: pinmux_usb_hub

[PATCH 07/12] ARM: dts: cm-t3x30: add HS USB Host support

2014-01-12 Thread Dmitry Lifshitz
Add HS USB Host support along with USB PHYs and power supply regulators

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   38 +
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |8 +++
 2 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index abda493..c671a22 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -19,6 +19,36 @@
linux,default-trigger = "heartbeat";
};
};
+
+   /* HS USB Port 1 Power */
+   hsusb1_power: hsusb1_power_reg {
+   compatible = "regulator-fixed";
+   regulator-name = "hsusb1_vbus";
+   regulator-min-microvolt = <330>;
+   regulator-max-microvolt = <330>;
+   startup-delay-us = <7>;
+   };
+
+   /* HS USB Port 2 Power */
+   hsusb2_power: hsusb2_power_reg {
+   compatible = "regulator-fixed";
+   regulator-name = "hsusb2_vbus";
+   regulator-min-microvolt = <330>;
+   regulator-max-microvolt = <330>;
+   startup-delay-us = <7>;
+   };
+
+   /* HS USB Host PHY on PORT 1 */
+   hsusb1_phy: hsusb1_phy {
+   compatible = "usb-nop-xceiv";
+   vcc-supply = <&hsusb1_power>;
+   };
+
+   /* HS USB Host PHY on PORT 2 */
+   hsusb2_phy: hsusb2_phy {
+   compatible = "usb-nop-xceiv";
+   vcc-supply = <&hsusb2_power>;
+   };
 };
 
 &omap3_pmx_core {
@@ -70,3 +100,11 @@
 &i2c3 {
clock-frequency = <40>;
 };
+&usbhshost {
+   port1-mode = "ehci-phy";
+   port2-mode = "ehci-phy";
+};
+
+&usbhsehci {
+   phys = <&hsusb1_phy &hsusb2_phy>;
+};
diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index a56d082..cb43929 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -93,3 +93,11 @@
/* pullups: BIT(0) */
ti,pullups = <0x01>;
 };
+
+&hsusb1_phy {
+   reset-gpios = <&twl_gpio 6 GPIO_ACTIVE_LOW>;
+};
+
+&hsusb2_phy {
+   reset-gpios = <&twl_gpio 7 GPIO_ACTIVE_LOW>;
+};
-- 
1.7.5.4

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


[PATCH 01/12] ARM: dts: sbc-t3x: use omap specific pinctrl defines

2014-01-12 Thread Dmitry Lifshitz
Use omap specific pinctrl defines (OMAP3_CORE1_IOPAD) to configure
the padconf register offset.

This simplify further support of CompuLab's boards based on omap36xx,
omap34xx and am35x.

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/omap3-cm-t3730.dts  |   36 
 arch/arm/boot/dts/omap3-sbc-t3730.dts |6 ++--
 2 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3730.dts 
b/arch/arm/boot/dts/omap3-cm-t3730.dts
index 486f4d6..508cd9b 100644
--- a/arch/arm/boot/dts/omap3-cm-t3730.dts
+++ b/arch/arm/boot/dts/omap3-cm-t3730.dts
@@ -34,44 +34,44 @@
 &omap3_pmx_core {
mmc1_pins: pinmux_mmc1_pins {
pinctrl-single,pins = <
-   0x114 (PIN_OUTPUT_PULLUP | MUX_MODE0)   /* 
sdmmc1_clk.sdmmc1_clk */
-   0x116 (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc1_cmd.sdmmc1_cmd */
-   0x118 (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc1_dat0.sdmmc1_dat0 */
-   0x11a (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc1_dat1.sdmmc1_dat1 */
-   0x11c (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc1_dat2.sdmmc1_dat2 */
-   0x11e (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc1_dat3.sdmmc1_dat3 */
+   OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT_PULLUP | 
MUX_MODE0)/* sdmmc1_clk.sdmmc1_clk */
+   OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_cmd.sdmmc1_cmd */
+   OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat0.sdmmc1_dat0 */
+   OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat1.sdmmc1_dat1 */
+   OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat2.sdmmc1_dat2 */
+   OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc1_dat3.sdmmc1_dat3 */
>;
};
 
mmc2_pins: pinmux_mmc2_pins {
pinctrl-single,pins = <
-   0x128 (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc2_clk.sdmmc2_clk */
-   0x12a (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc2_cmd.sdmmc2_cmd */
-   0x12c (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc2_dat0.sdmmc2_dat0 */
-   0x12e (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc2_dat1.sdmmc2_dat1 */
-   0x130 (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc2_dat2.sdmmc2_dat2 */
-   0x132 (PIN_INPUT_PULLUP | MUX_MODE0)/* 
sdmmc2_dat3.sdmmc2_dat3 */
+   OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_clk.sdmmc2_clk */
+   OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_cmd.sdmmc2_cmd */
+   OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_dat0.sdmmc2_dat0 */
+   OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_dat1.sdmmc2_dat1 */
+   OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_dat2.sdmmc2_dat2 */
+   OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdmmc2_dat3.sdmmc2_dat3 */
>;
};
 
smsc1_pins: pinmux_smsc1_pins {
pinctrl-single,pins = <
-   0x88 (PIN_OUTPUT | MUX_MODE0)   /* 
gpmc_ncs5.gpmc_ncs5 */
-   0x16a (PIN_INPUT_PULLUP | MUX_MODE4)/* 
uart3_cts_rctx.gpio_163 */
+   OMAP3_CORE1_IOPAD(0x20b8, PIN_OUTPUT | MUX_MODE0)   
/* gpmc_ncs5.gpmc_ncs5 */
+   OMAP3_CORE1_IOPAD(0x219a, PIN_INPUT_PULLUP | MUX_MODE4) 
/* uart3_cts_rctx.gpio_163 */
>;
};
 
uart3_pins: pinmux_uart3_pins {
pinctrl-single,pins = <
-   0x16e (PIN_INPUT | MUX_MODE0)   /* 
uart3_rx_irrx.uart3_rx_irrx */
-   0x170 (PIN_OUTPUT | MUX_MODE0)  /* 
uart3_tx_irtx.uart3_tx_irtx */
+   OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0)
/* uart3_rx_irrx.uart3_rx_irrx */
+   OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)   
/* uart3_tx_irtx.uart3_tx_irtx */
>;
};
 
wl12xx_gpio: pinmux_wl12xx_gpio {
pinctrl-single,pins = <
-   0xb2 (PIN_OUTPUT | MUX_MODE4)   /* 
dss_data3.gpio_73 */
-   0x134 (PIN_INPUT | MUX_MODE4)   /* 
sdmmc2_dat4.gpio_136 */
+   OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE4)   
/* dss_data3.gpio_73 */
+   OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT | MUX_MODE4)
/* sdmmc2_dat4.gpio_136 */
>;
};
 };
diff --git a/arch/arm/boot/dts/omap3-sbc-t3730.dts 
b/arch/arm/boot/dts/omap3-sbc-t3730.dts
index c119bd5

[PATCH 08/12] ARM: dts: sbc-t3730: add pinmux for usb hub reset

2014-01-12 Thread Dmitry Lifshitz
GPIO167 is used as SB-T35 baseboard USB Hub reset.
Add GPIO167 pinmux.

Signed-off-by: Dmitry Lifshitz 
---
 arch/arm/boot/dts/omap3-sbc-t3730.dts |   11 +++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-sbc-t3730.dts 
b/arch/arm/boot/dts/omap3-sbc-t3730.dts
index 565099c..08e4a70 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3730.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3730.dts
@@ -10,6 +10,17 @@
compatible = "compulab,omap3-sbc-t3730", "compulab,omap3-cm-t3730", 
"ti,omap36xx", "ti,omap3";
 };
 
+&omap3_pmx_core {
+   pinctrl-names = "default";
+   pinctrl-0 = <&sb_t35_usb_hub_pins>;
+
+   sb_t35_usb_hub_pins: pinmux_sb_t35_usb_hub_pins {
+   pinctrl-single,pins = <
+   OMAP3_CORE1_IOPAD(0x2130, PIN_OUTPUT | MUX_MODE4) /* 
ccdc_wen.gpio_167 - SB-T35 USB HUB RST */
+   >;
+   };
+};
+
 &gpmc {
ranges = <5 0 0x2c00 0x0100>,
 <4 0 0x2d00 0x0100>;
-- 
1.7.5.4

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