[PATCH 1/2] ARM: OMAP3: cm-t35: add mt9t001 camera sensor support

2012-06-13 Thread Dmitry Lifshitz
Setup pinmux for CPI and register the mt9t001 camera sensor
in ISP subsystem.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
Signed-off-by: Igor Grinberg grinb...@compulab.co.il
---
 arch/arm/mach-omap2/board-cm-t35.c |   69 
 1 files changed, 69 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-cm-t35.c 
b/arch/arm/mach-omap2/board-cm-t35.c
index ded100c..05c66e8 100644
--- a/arch/arm/mach-omap2/board-cm-t35.c
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -490,6 +490,51 @@ static struct twl4030_platform_data cm_t35_twldata = {
.power  = cm_t35_power_data,
 };
 
+#if defined(CONFIG_VIDEO_OMAP3) || defined(CONFIG_VIDEO_OMAP3_MODULE)
+#include media/omap3isp.h
+#include devices.h
+
+static struct i2c_board_info cm_t35_isp_i2c_boardinfo[] = {
+   {
+   I2C_BOARD_INFO(mt9t001, 0x5d),
+   },
+};
+
+static struct isp_subdev_i2c_board_info cm_t35_isp_primary_subdevs[] = {
+   {
+   .board_info = cm_t35_isp_i2c_boardinfo[0],
+   .i2c_adapter_id = 3,
+   },
+   { NULL, 0, },
+};
+
+static struct isp_v4l2_subdevs_group cm_t35_isp_subdevs[] = {
+   {
+   .subdevs = cm_t35_isp_primary_subdevs,
+   .interface = ISP_INTERFACE_PARALLEL,
+   .bus = {
+   .parallel = {
+   .clk_pol = 1,
+   },
+   },
+   },
+   { NULL, 0, },
+};
+
+static struct isp_platform_data cm_t35_isp_pdata = {
+   .subdevs = cm_t35_isp_subdevs,
+};
+
+static void __init cm_t35_init_camera(void)
+{
+   if (omap3_init_camera(cm_t35_isp_pdata)  0)
+   pr_warn(CM-T3x: Failed registering camera device!\n);
+}
+
+#else
+static inline void cm_t35_init_camera(void) {}
+#endif /* CONFIG_VIDEO_OMAP3 */
+
 static void __init cm_t35_init_i2c(void)
 {
omap3_pmic_get_config(cm_t35_twldata, TWL_COMMON_PDATA_USB,
@@ -497,6 +542,8 @@ static void __init cm_t35_init_i2c(void)
  TWL_COMMON_PDATA_AUDIO);
 
omap3_pmic_init(tps65930, cm_t35_twldata);
+
+   omap_register_i2c_bus(3, 400, NULL, 0);
 }
 
 #ifdef CONFIG_OMAP_MUX
@@ -574,6 +621,27 @@ static struct omap_board_mux board_mux[] __initdata = {
OMAP3_MUX(DSS_DATA16, OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT),
OMAP3_MUX(DSS_DATA17, OMAP_MUX_MODE0 | OMAP_PIN_OUTPUT),
 
+   /* Camera */
+   OMAP3_MUX(CAM_HS, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_VS, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_XCLKA, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_PCLK, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_FLD, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_D0, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_D1, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_D2, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_D3, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_D4, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_D5, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_D6, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_D7, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+   OMAP3_MUX(CAM_D8, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLDOWN),
+   OMAP3_MUX(CAM_D9, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLDOWN),
+   OMAP3_MUX(CAM_STROBE, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
+
+   OMAP3_MUX(CAM_D10, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLDOWN),
+   OMAP3_MUX(CAM_D11, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLDOWN),
+
/* display controls */
OMAP3_MUX(MCBSP1_FSR, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
OMAP3_MUX(GPMC_NCS7, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
@@ -646,6 +714,7 @@ static void __init cm_t3x_common_init(void)
 
usb_musb_init(NULL);
cm_t35_init_usbh();
+   cm_t35_init_camera();
 }
 
 static void __init cm_t35_init(void)
-- 
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 2/2] ARM: OMAP3: cm-t35: add tvp5150 decoder support

2012-06-13 Thread Dmitry Lifshitz
Register the tvp5150 video decoder in ISP subsystem.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
Signed-off-by: Igor Grinberg grinb...@compulab.co.il
---
 arch/arm/mach-omap2/board-cm-t35.c |   20 
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-cm-t35.c 
b/arch/arm/mach-omap2/board-cm-t35.c
index 05c66e8..97d7190 100644
--- a/arch/arm/mach-omap2/board-cm-t35.c
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -498,6 +498,9 @@ static struct i2c_board_info cm_t35_isp_i2c_boardinfo[] = {
{
I2C_BOARD_INFO(mt9t001, 0x5d),
},
+   {
+   I2C_BOARD_INFO(tvp5150, 0x5c),
+   },
 };
 
 static struct isp_subdev_i2c_board_info cm_t35_isp_primary_subdevs[] = {
@@ -508,6 +511,14 @@ static struct isp_subdev_i2c_board_info 
cm_t35_isp_primary_subdevs[] = {
{ NULL, 0, },
 };
 
+static struct isp_subdev_i2c_board_info cm_t35_isp_secondary_subdevs[] = {
+   {
+   .board_info = cm_t35_isp_i2c_boardinfo[1],
+   .i2c_adapter_id = 3,
+   },
+   { NULL, 0, },
+};
+
 static struct isp_v4l2_subdevs_group cm_t35_isp_subdevs[] = {
{
.subdevs = cm_t35_isp_primary_subdevs,
@@ -518,6 +529,15 @@ static struct isp_v4l2_subdevs_group cm_t35_isp_subdevs[] 
= {
},
},
},
+   {
+   .subdevs = cm_t35_isp_secondary_subdevs,
+   .interface = ISP_INTERFACE_PARALLEL,
+   .bus = {
+   .parallel = {
+   .clk_pol = 0,
+   },
+   },
+   },
{ NULL, 0, },
 };
 
-- 
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 0/2] Add mt9t001 and tvp5150 support to cm-t3x board.

2012-06-13 Thread Dmitry Lifshitz
This patch set adds mt9t001 camera sensor and tvp5150 video decoder 
registration to 
cm-t35/cm-t3730 board support file. Base board (SB-T35) CIP of cm-t3x module 
can be 
connected to external video input adapter like Compulab VIP-ADP board.

VIP-ADP has a digital camera sensor connection port and two composite video 
input ports.
Analog composite video is processed by TVP5151 NTSC/PAL/SECAM Video Decoder 
chip.

Dmitry Lifshitz (2):
  ARM: OMAP3: cm-t35: add mt9t001 camera sensor support
  ARM: OMAP3: cm-t35: add tvp5150 decoder support

 arch/arm/mach-omap2/board-cm-t35.c |   89 
 1 files changed, 89 insertions(+), 0 deletions(-)

-- 
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 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 lifsh...@compulab.co.il
---
 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


[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 lifsh...@compulab.co.il
---
 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 lifsh...@compulab.co.il
---
 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

[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 lifsh...@compulab.co.il
---
 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_mmc1_pins {
+   pinctrl-single

[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 lifsh...@compulab.co.il
---
 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 lifsh...@compulab.co.il
---
 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 lifsh...@compulab.co.il
---
 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 lifsh...@compulab.co.il
---
 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 lifsh...@compulab.co.il
---
 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 lifsh...@compulab.co.il
---
 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 lifsh...@compulab.co.il
---
 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_pins {
+   pinctrl

[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 lifsh...@compulab.co.il
---
 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


Re: [PATCH] ARM: OMAP5: DSS hwmod data

2014-03-16 Thread Dmitry Lifshitz

Hi Tomi,

(resending in the text format)

Where can I get those unpublished omap5 and omap5-uevm display patches 
to test the video out with this patch?
I'll appreciate your assistance in additional setup (like required uEvm 
.dts changes and DSI panel connection short guide).


Thanks you in advance,

Dmitry Lifshitz

On 03/12/2014 12:33 PM, Tomi Valkeinen wrote:

On 12/03/14 12:26, Tomi Valkeinen wrote:

Hi,

This patch adds hwmod data for omap5 display subsystem. I have tested this on
omap5-uevm with a DSI panel. I cannot test omap5-uevm's hdmi output yet, as the
mainline is missing omap5 HDMI driver.

I do see this when booting:

   omap_hwmod: dss_dispc: cannot be enabled for reset (3)
   omap_hwmod: dss_dsi1: cannot be enabled for reset (3)
   omap_hwmod: dss_dsi2: cannot be enabled for reset (3)
   omap_hwmod: dss_hdmi: cannot be enabled for reset (3)
   omap_hwmod: dss_rfbi: cannot be enabled for reset (3)

But at least DSI works just fine.

Oh, I forgot to say that I tested this on top of the DSS DT branch, and
unpublished omap5 and omap5-uevm display patches. So if applied to the
current mainline, the hwmods are not used at all (except the reset at
boot time, I think).

But if this gets merged for 3.15, it'll make adding omap5 DSS support
easier for 3.16 as the HWMOD data is already there.

  Tomi




--
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


Re: [PATCH] ARM: OMAP5: DSS hwmod data

2014-03-17 Thread Dmitry Lifshitz

Hi Tomi,

Thank you for the feedback.

We have OMAP5 based board with no ESD  Level Translator chip.
So, I made a quick hack in tpd12s015 driver to skip using un-relevant GPIOs.

I've copied DSS DT structure from uEmv board *.dts.
However the HDMI output is not activate yet.

Here is some debug output:

root@cm-debian:~# dmesg | grep -i dss
[0.040554] omap_hwmod: dss_dispc: cannot be enabled for reset (3)
[0.043135] omap_hwmod: dss_dsi1: cannot be enabled for reset (3)
[0.045725] omap_hwmod: dss_dsi2: cannot be enabled for reset (3)
[0.048311] omap_hwmod: dss_hdmi: cannot be enabled for reset (3)
[0.050888] omap_hwmod: dss_rfbi: cannot be enabled for reset (3)
[0.325392] DSS: set fck to 19200
[0.325400] DSS: dss_runtime_get
[0.325427] DSS: dss_restore_context
[0.325445] OMAP DSS rev 6.1
[0.325450] DSS: dss_runtime_put
[0.325456] DSS: dss_save_context
[0.325461] DSS: context saved
[0.325707] DSS: dss_restore_context
[0.325711] DSS: context restored
[0.325746] omapdss_dispc 58001000.dispc: OMAP DISPC rev 5.1
[0.325838] DSS: dss_save_context
[0.325843] DSS: context saved


I do not use uEvm BSP u-Boot. I'm forking from this source: 
git://git.denx.de/u-boot-ti.git


Perhaps I'm missing some clocks initialization?
What are the correct bootargs for activating HDMI video output?

Thank you in advance for the assistance,

Dmitry


On 03/17/2014 08:13 AM, Tomi Valkeinen wrote:

On 16/03/14 13:41, Dmitry Lifshitz wrote:

Hi Tomi,

(resending in the text format)

Where can I get those unpublished omap5 and omap5-uevm display patches
to test the video out with this patch?
I'll appreciate your assistance in additional setup (like required uEvm
.dts changes and DSI panel connection short guide).

git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux.git
work/dss-dt-pyra

I've since added omap5 hdmi support, so omap5-uevm's hdmi output works
on that branch.

  Tomi




--
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


Re: [PATCH] ARM: OMAP5: DSS hwmod data

2014-03-17 Thread Dmitry Lifshitz

Hi Tomi,

Unfortunately, I have a lack of experience with DT DSS stuff.

How should I define the endpoints and the connector in my case?
Please, could you provide some reference.

Regarding omapfb, is it sufficient to turn it on in the Kernel config?

Thanks,

Dmitry

On 03/17/2014 03:28 PM, Tomi Valkeinen wrote:

On 17/03/14 15:22, Dmitry Lifshitz wrote:

Hi Tomi,

Thank you for the feedback.

We have OMAP5 based board with no ESD  Level Translator chip.
So, I made a quick hack in tpd12s015 driver to skip using un-relevant
GPIOs.

If you don't have tpd12s015 on your board, don't modify it. Remove it
from your board's dts file totally.


I've copied DSS DT structure from uEmv board *.dts.
However the HDMI output is not activate yet.

Here is some debug output:

root@cm-debian:~# dmesg | grep -i dss
[0.040554] omap_hwmod: dss_dispc: cannot be enabled for reset (3)
[0.043135] omap_hwmod: dss_dsi1: cannot be enabled for reset (3)
[0.045725] omap_hwmod: dss_dsi2: cannot be enabled for reset (3)
[0.048311] omap_hwmod: dss_hdmi: cannot be enabled for reset (3)
[0.050888] omap_hwmod: dss_rfbi: cannot be enabled for reset (3)
[0.325392] DSS: set fck to 19200
[0.325400] DSS: dss_runtime_get
[0.325427] DSS: dss_restore_context
[0.325445] OMAP DSS rev 6.1
[0.325450] DSS: dss_runtime_put
[0.325456] DSS: dss_save_context
[0.325461] DSS: context saved
[0.325707] DSS: dss_restore_context
[0.325711] DSS: context restored
[0.325746] omapdss_dispc 58001000.dispc: OMAP DISPC rev 5.1
[0.325838] DSS: dss_save_context
[0.325843] DSS: context saved


I do not use uEvm BSP u-Boot. I'm forking from this source:
git://git.denx.de/u-boot-ti.git

Perhaps I'm missing some clocks initialization?
What are the correct bootargs for activating HDMI video output?

HDMI is the only output on the uevm, and if your board is similar, no
boot args are needed. But, of course, you need omapfb or omapdrm to
manage the display.

  Tomi




--
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


Re: [PATCH] ARM: OMAP5: DSS hwmod data

2014-03-18 Thread Dmitry Lifshitz
+0x18/0x48)
[   11.277968] [c03cc6c4] (platform_drv_probe) from [c03ca8cc] 
(really_probe+0x80/0x208)
[   11.286516] [c03ca8cc] (really_probe) from [c03cab64] 
(driver_probe_device+0x30/0x48)
[   11.295071] [c03cab64] (driver_probe_device) from [c03cac08] 
(__driver_attach+0x8c/0x90)
[   11.303881] [c03cac08] (__driver_attach) from [c03c92dc] 
(bus_for_each_dev+0x54/0x88)
[   11.312422] [c03c92dc] (bus_for_each_dev) from [c03ca1b8] 
(bus_add_driver+0xe4/0x1d8)
[   11.320957] [c03ca1b8] (bus_add_driver) from [c03cb264] 
(driver_register+0x78/0xf4)
[   11.329323] [c03cb264] (driver_register) from [c0008788] 
(do_one_initcall+0x44/0x174)
[   11.337876] [c0008788] (do_one_initcall) from [c07137b4] 
(do_init_module+0x48/0x17c)
[   11.346331] [c07137b4] (do_init_module) from [c00bad0c] 
(SyS_init_module+0x64/0x6c)
[   11.354690] [c00bad0c] (SyS_init_module) from [c0020d80] 
(ret_fast_syscall+0x0/0x30)


While using FBDEV I have the following issue:

root@cm-debian:~# modprobe omapfb
[   27.524419] [ cut here ]
[   27.529256] WARNING: CPU: 1 PID: 2087 at 
/home/lifshitz/workroot/OMAP5-eewiki/omap5-kernel/mm/page_alloc.c:2492 
__alloc_pages_nodemask+0x268/0x83c()
[   27.543164] Modules linked in: omapfb(+) cfbcopyarea cfbimgblt 
cfbfillrect bnep rfcomm bluetooth 6lowpan_iphc phy_omap_usb2 
connector_hdmi omapdss omap4_keypad matrix_keymap omap_ocp2scp 
rtc_palmas spi_omap2_mcspi
[   27.563113] CPU: 1 PID: 2087 Comm: modprobe Tainted: G W
3.14.0-rc4-cm-t54-test-suit+ #108
[   27.572677] [c00280ac] (unwind_backtrace) from [c0024eb0] 
(show_stack+0x10/0x14)
[   27.580786] [c0024eb0] (show_stack) from [c06fc434] 
(dump_stack+0x70/0x88)
[   27.588341] [c06fc434] (dump_stack) from [c004d8e8] 
(warn_slowpath_common+0x70/0x88)
[   27.596815] [c004d8e8] (warn_slowpath_common) from [c004d91c] 
(warn_slowpath_null+0x1c/0x24)
[   27.606004] [c004d91c] (warn_slowpath_null) from [c01135ec] 
(__alloc_pages_nodemask+0x268/0x83c)
[   27.615562] [c01135ec] (__alloc_pages_nodemask) from [c002cd78] 
(__dma_alloc_buffer.isra.16+0x2c/0xdc)
[   27.625661] [c002cd78] (__dma_alloc_buffer.isra.16) from 
[c002ce40] (__alloc_remap_buffer.isra.19+0x18/0xcc)
[   27.636300] [c002ce40] (__alloc_remap_buffer.isra.19) from 
[c002d248] (__dma_alloc+0x110/0x138)
[   27.645757] [c002d248] (__dma_alloc) from [c002d3fc] 
(arm_dma_alloc+0xb0/0xd8)
[   27.653686] [c002d3fc] (arm_dma_alloc) from [bf1b1f74] 
(omapfb_alloc_fbmem.isra.24+0xc8/0x158 [omapfb])
[   27.663911] [bf1b1f74] (omapfb_alloc_fbmem.isra.24 [omapfb]) from 
[bf1b7078] (omapfb_alloc_fbmem_display.isra.25+0xec/0xfc [omapfb])
[   27.676759] [bf1b7078] (omapfb_alloc_fbmem_display.isra.25 
[omapfb]) from [bf1b21fc] (omapfb_allocate_all_fbs+0xf4/0x174 [omapfb])
[   27.689419] [bf1b21fc] (omapfb_allocate_all_fbs [omapfb]) from 
[bf1b30f8] (omapfb_create_framebuffers+0x1fc/0x524 [omapfb])
[   27.701432] [bf1b30f8] (omapfb_create_framebuffers [omapfb]) from 
[bf1b3fdc] (omapfb_probe+0x28c/0x41c [omapfb])
[   27.712446] [bf1b3fdc] (omapfb_probe [omapfb]) from [c03ab844] 
(platform_drv_probe+0x18/0x48)
[   27.721728] [c03ab844] (platform_drv_probe) from [c03a9a4c] 
(really_probe+0x80/0x208)
[   27.730284] [c03a9a4c] (really_probe) from [c03a9ce4] 
(driver_probe_device+0x30/0x48)
[   27.738834] [c03a9ce4] (driver_probe_device) from [c03a9d88] 
(__driver_attach+0x8c/0x90)
[   27.747661] [c03a9d88] (__driver_attach) from [c03a845c] 
(bus_for_each_dev+0x54/0x88)
[   27.756220] [c03a845c] (bus_for_each_dev) from [c03a9338] 
(bus_add_driver+0xe4/0x1d8)
[   27.764778] [c03a9338] (bus_add_driver) from [c03aa3e4] 
(driver_register+0x78/0xf4)
[   27.773148] [c03aa3e4] (driver_register) from [c0008788] 
(do_one_initcall+0x44/0x174)
[   27.781703] [c0008788] (do_one_initcall) from [c06f2934] 
(do_init_module+0x48/0x17c)
[   27.790172] [c06f2934] (do_init_module) from [c00bad0c] 
(SyS_init_module+0x64/0x6c)
[   27.798546] [c00bad0c] (SyS_init_module) from [c0020d80] 
(ret_fast_syscall+0x0/0x30)

[   27.807015] ---[ end trace 842d286115ab739d ]---
[   27.811849] omapfb omapfb: failed to allocate framebuffer
[   27.817490] omapfb omapfb: failed to allocate fbmem
[   27.822746] omapfb omapfb: failed to setup omapfb
[   27.827710] omapfb: probe of omapfb failed with error -12


Regards,

Dmitry


On 03/18/2014 07:29 AM, Tomi Valkeinen wrote:

On 17/03/14 16:22, Dmitry Lifshitz wrote:

Hi Tomi,

Unfortunately, I have a lack of experience with DT DSS stuff.

How should I define the endpoints and the connector in my case?
Please, could you provide some reference.

See Documentation/devicetree/bindings/media/video-interfaces.txt for a
description of the ports and endpoints.

If your board is similar to uevm except you don't have the tpd12s015,
then you just need to remove the tpd12s015 from the .dts file, and
connect the OMAP's HDMI output directly to the connector.


Regarding omapfb, is it sufficient to turn it on in the Kernel config?

Yes.

  Tomi




--
To unsubscribe from this list: send

Re: [PATCH] ARM: OMAP5: DSS hwmod data

2014-03-18 Thread Dmitry Lifshitz

Hi Tomi,

I've activated HDMI output with omapfb. Thank you very much !

Some minor issue are observed:
* the colors are inverted.
* DRM seems to be loaded with no failures, however there is no output.


HPD connector pin is connected to HDMI_HPD/GPIO7_193.
In addition we have DVI output (uses TFP410 encoder to convert DPI to DVI).
TFP410 is not connected to I2C and its PD always on.

I tried to turn DVI support using omap4-panda-common.dtsi as the 
reference (with OMAP5 specific pinmux, of course),

however it fails. Does it supposed to work?

Please, could you share the .config you are using with uEvm?

Thank you in advance,

Dmitry


On 03/18/2014 10:37 AM, Tomi Valkeinen wrote:

On 18/03/14 10:19, Dmitry Lifshitz wrote:

Hi Tomi,

Thank you a lot for your assistance.

Here are my relevant DT nodes:

/ {
 aliases {
 display0 = hdmi0;
 };

 hdmi0: connector@0 {
 compatible = hdmi-connector;
 label = hdmi;

 type = b;

 hdmi_connector_in: endpoint {
 remote-endpoint = hdmi_out;
 };
 };
};

dss {
 status = ok;
};

hdmi {
 status = ok;
 vdda-supply = ldo4_reg;

 pinctrl-names = default;
 pinctrl-0 = dss_hdmi_pins;

 hdmi_out: endpoint {
 remote-endpoint = hdmi_connector_in;
 };
};

The above looks fine.


I have the following kernel crash (caused by missing .detect callback):

Yes, it seems the hdmi driver is missing detect, as there's no support
in there for the detection at the moment. You can add the function to
omap5.c, and return true always.

How does the HPD work on your board? On uevm, the ESD/Level shifter chip
handles HPD, which is the only supported way at the moment.


While using FBDEV I have the following issue:

root@cm-debian:~# modprobe omapfb
[   27.524419] [ cut here ]
[   27.529256] WARNING: CPU: 1 PID: 2087 at
/home/lifshitz/workroot/OMAP5-eewiki/omap5-kernel/mm/page_alloc.c:2492
__alloc_pages_nodemask+0x268/0x83c()
[   27.543164] Modules linked in: omapfb(+) cfbcopyarea cfbimgblt
cfbfillrect bnep rfcomm bluetooth 6lowpan_iphc phy_omap_usb2
connector_hdmi omapdss omap4_keypad matrix_keymap omap_ocp2scp
rtc_palmas spi_omap2_mcspi
[   27.563113] CPU: 1 PID: 2087 Comm: modprobe Tainted: G W
3.14.0-rc4-cm-t54-test-suit+ #108
[   27.572677] [c00280ac] (unwind_backtrace) from [c0024eb0]
(show_stack+0x10/0x14)
[   27.580786] [c0024eb0] (show_stack) from [c06fc434]
(dump_stack+0x70/0x88)
[   27.588341] [c06fc434] (dump_stack) from [c004d8e8]
(warn_slowpath_common+0x70/0x88)
[   27.596815] [c004d8e8] (warn_slowpath_common) from [c004d91c]
(warn_slowpath_null+0x1c/0x24)
[   27.606004] [c004d91c] (warn_slowpath_null) from [c01135ec]
(__alloc_pages_nodemask+0x268/0x83c)
[   27.615562] [c01135ec] (__alloc_pages_nodemask) from [c002cd78]
(__dma_alloc_buffer.isra.16+0x2c/0xdc)
[   27.625661] [c002cd78] (__dma_alloc_buffer.isra.16) from
[c002ce40] (__alloc_remap_buffer.isra.19+0x18/0xcc)
[   27.636300] [c002ce40] (__alloc_remap_buffer.isra.19) from
[c002d248] (__dma_alloc+0x110/0x138)
[   27.645757] [c002d248] (__dma_alloc) from [c002d3fc]
(arm_dma_alloc+0xb0/0xd8)
[   27.653686] [c002d3fc] (arm_dma_alloc) from [bf1b1f74]
(omapfb_alloc_fbmem.isra.24+0xc8/0x158 [omapfb])
[   27.663911] [bf1b1f74] (omapfb_alloc_fbmem.isra.24 [omapfb]) from
[bf1b7078] (omapfb_alloc_fbmem_display.isra.25+0xec/0xfc [omapfb])
[   27.676759] [bf1b7078] (omapfb_alloc_fbmem_display.isra.25
[omapfb]) from [bf1b21fc] (omapfb_allocate_all_fbs+0xf4/0x174 [omapfb])
[   27.689419] [bf1b21fc] (omapfb_allocate_all_fbs [omapfb]) from
[bf1b30f8] (omapfb_create_framebuffers+0x1fc/0x524 [omapfb])
[   27.701432] [bf1b30f8] (omapfb_create_framebuffers [omapfb]) from
[bf1b3fdc] (omapfb_probe+0x28c/0x41c [omapfb])
[   27.712446] [bf1b3fdc] (omapfb_probe [omapfb]) from [c03ab844]
(platform_drv_probe+0x18/0x48)
[   27.721728] [c03ab844] (platform_drv_probe) from [c03a9a4c]
(really_probe+0x80/0x208)
[   27.730284] [c03a9a4c] (really_probe) from [c03a9ce4]
(driver_probe_device+0x30/0x48)
[   27.738834] [c03a9ce4] (driver_probe_device) from [c03a9d88]
(__driver_attach+0x8c/0x90)
[   27.747661] [c03a9d88] (__driver_attach) from [c03a845c]
(bus_for_each_dev+0x54/0x88)
[   27.756220] [c03a845c] (bus_for_each_dev) from [c03a9338]
(bus_add_driver+0xe4/0x1d8)
[   27.764778] [c03a9338] (bus_add_driver) from [c03aa3e4]
(driver_register+0x78/0xf4)
[   27.773148] [c03aa3e4] (driver_register) from [c0008788]
(do_one_initcall+0x44/0x174)
[   27.781703] [c0008788] (do_one_initcall) from [c06f2934]
(do_init_module+0x48/0x17c)
[   27.790172] [c06f2934] (do_init_module) from [c00bad0c]
(SyS_init_module+0x64/0x6c)
[   27.798546] [c00bad0c] (SyS_init_module) from [c0020d80]
(ret_fast_syscall+0x0/0x30)
[   27.807015] ---[ end trace 842d286115ab739d ]---
[   27.811849] omapfb omapfb: failed to allocate framebuffer

Re: [PATCH v9 resend 1/3] mmc: omap_hsmmc: Enable SDIO interrupt

2014-03-24 Thread Dmitry Lifshitz

Hi,

I've tested the branch omap_hsmmc_sdio_irq_devm_cleanup on custom OMAP5 
based board.

We have mwifiex connected to MMC3.

I used two approaches:

* Using dat1 line as GPIO with dynamic remuxing
* Using separate GPIO connected to dat1 with static mux settings

Both works just fine. Thanks Andreas for a great solution.

I have just one issue - how to define GPIO IRQ using DT in OMAP5 case.
As a temporary hack for testing I used a fixed GPIO number and 
gpio_to_irq() call in omap_hsmmc_configure_wake_irq().


OMAP5 MMC3 has the following DT entry (omap5.dtsi):

mmc3: mmc@480ad000 {
compatible = ti,omap4-hsmmc;
reg = 0x480ad000 0x400;
interrupts = GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH;
ti,hwmods = mmc3;
ti,needs-special-reset;
dmas = sdma 77, sdma 78;
dma-names = tx, rx;
};

What should be by board MMC3 setup?

Something like this?

mmc3 {
pinctrl-names = default, active, idle;
pinctrl-0 = mmc3_pins;
pinctrl-1 = mmc3_pins;
pinctrl-2 = mmc3_cirq_pin;

interrupts = GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH,
;

vmmc-supply = ldo2_reg;
bus-width = 4;
ti,non-removable;
};

I tried to specify the second interrupt as (wlsdio_data1 / gpio5_131):

gpio5 3 IRQ_TYPE_NONE

but it fails:

[2.275777] [ cut here ]
[2.280604] WARNING: CPU: 1 PID: 6 at 
/home/lifshitz/workroot/OMAP5-eewiki/omap5-kernel/kernel/irq/manage.c:1418 
request_threaded_irq+0x11c/0x12c()

[2.294414] Modules linked in:
[2.297611] CPU: 1 PID: 6 Comm: kworker/u4:0 Tainted: G W
3.14.0-rc4-cm-t54-test-suit+ #30

[2.307165] Workqueue: deferwq deferred_probe_work_func
[2.312629] [c001597c] (unwind_backtrace) from [c001283c] 
(show_stack+0x10/0x14)
[2.320739] [c001283c] (show_stack) from [c06494dc] 
(dump_stack+0x70/0x88)
[2.328294] [c06494dc] (dump_stack) from [c003a520] 
(warn_slowpath_common+0x70/0x88)
[2.336761] [c003a520] (warn_slowpath_common) from [c003a554] 
(warn_slowpath_null+0x1c/0x24)
[2.345940] [c003a554] (warn_slowpath_null) from [c0083ce4] 
(request_threaded_irq+0x11c/0x12c)
[2.355312] [c0083ce4] (request_threaded_irq) from [c0085964] 
(devm_request_threaded_irq+0x5c/0x90)
[2.361973] mmc1: host does not support reading read-only switch. 
assuming write-enable.

[2.362020] mmc1: new SDHC card at address e624
[2.362331] mmcblk1: mmc1:e624 SU08G 7.40 GiB
[2.368152]  mmcblk1: p1 p2
[2.385850] [c0085964] (devm_request_threaded_irq) from 
[c047d958] (omap_hsmmc_configure_wake_irq+0x7c/0xfc)

[2.393150] usb 1-2: New USB device found, idVendor=0424, idProduct=3503
[2.393156] usb 1-2: New USB device strings: Mfr=0, Product=0, 
SerialNumber=0

[2.393674] hub 1-2:1.0: USB hub found
[2.393769] hub 1-2:1.0: 3 ports detected
[2.419038] [c047d958] (omap_hsmmc_configure_wake_irq) from 
[c047ea28] (omap_hsmmc_probe+0x5b4/0x854)
[2.429052] [c047ea28] (omap_hsmmc_probe) from [c0359ec0] 
(platform_drv_probe+0x18/0x48)
[2.437879] [c0359ec0] (platform_drv_probe) from [c03580c8] 
(really_probe+0x80/0x208)
[2.446427] [c03580c8] (really_probe) from [c0358360] 
(driver_probe_device+0x30/0x48)
[2.454976] [c0358360] (driver_probe_device) from [c0356a58] 
(bus_for_each_drv+0x5c/0x88)
[2.463891] [c0356a58] (bus_for_each_drv) from [c03582f4] 
(device_attach+0x80/0xa0)
[2.472247] [c03582f4] (device_attach) from [c03577b4] 
(bus_probe_device+0x84/0xa8)
[2.480617] [c03577b4] (bus_probe_device) from [c0357bb8] 
(deferred_probe_work_func+0x68/0x98)
[2.489987] [c0357bb8] (deferred_probe_work_func) from [c00533c0] 
(process_one_work+0x150/0x41c)
[2.499542] [c00533c0] (process_one_work) from [c0053d10] 
(worker_thread+0xf4/0x31c)
[2.508011] [c0053d10] (worker_thread) from [c0059994] 
(kthread+0xd4/0xe8)

[2.512785] usb 1-3: new high-speed USB device number 3 using ehci-omap
[2.522474] [c0059994] (kthread) from [c000e878] 
(ret_from_fork+0x14/0x3c)

[2.530023] ---[ end trace 8d60f1d3adba88d7 ]---


Regards,

Dmitry

On 03/21/2014 06:10 PM, Balaji T K wrote:

On Friday 21 March 2014 05:50 PM, Andreas Fenkart wrote:

Thanks Andreas for the patch series

I rebased against latest mmc-next, made few changes to your patch.
I have hosted your series along with devm cleanups on a branch[1] for 
testing

[1]
git://git.ti.com/~balajitk/ti-linux-kernel/omap-hsmmc.git 
omap_hsmmc_sdio_irq_devm_cleanup


Can you please test on your platform and provide feedback.

Details about the changes below.


--
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 0/2] ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

2014-04-08 Thread Dmitry Lifshitz
Add support for CompuLab CM-T54 CoM and SBC-T54 board:

http://compulab.co.il/products/computer-on-modules/cm-t54/
http://compulab.co.il/products/sbcs/sbc-t54/

SBC-T54 is a single board computer based on OMAP5432 CPU.
It is implemented with a CM-T54 CoM providing most of the functions,
and SB-T54 carrier board providing connectors and several additional
functions.

Dmitry Lifshitz (2):
  ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54
  ARM: dts: cm-t54: add WiFi/BT support

 arch/arm/boot/dts/Makefile  |2 +
 arch/arm/boot/dts/omap5-cm-t54.dts  |  390 +++
 arch/arm/boot/dts/omap5-sbc-t54.dts |   33 +++
 arch/arm/mach-omap2/pdata-quirks.c  |   10 +
 4 files changed, 435 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap5-cm-t54.dts
 create mode 100644 arch/arm/boot/dts/omap5-sbc-t54.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 2/2] ARM: dts: cm-t54: add WiFi/BT support

2014-04-08 Thread Dmitry Lifshitz
Add support of AW-NH387 (mwifiex) WiFi/BT chip connected to MMC3.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap5-cm-t54.dts |   27 +++
 arch/arm/mach-omap2/pdata-quirks.c |   10 ++
 2 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index c87401f..27f5b7f 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -51,6 +51,7 @@
pinctrl-0 = 
led_gpio_pins
usbhost_pins
+   wlan_reset_pins
;
 
led_gpio_pins: pinmux_led_gpio_pins {
@@ -92,6 +93,24 @@
;
};
 
+   mmc3_pins: pinmux_mmc3_pins {
+   pinctrl-single,pins = 
+   0x164 (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */
+   0x166 (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */
+   0x168 (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */
+   0x16a (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */
+   0x16c (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */
+   0x16e (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */
+   ;
+   };
+
+   wlan_reset_pins: pinmux_wlan_reset_pins {
+   pinctrl-single,pins = 
+   0x15c (PIN_OUTPUT | MUX_MODE6) /* 
abemcpdm_ul_data.gpio4_109 - WLAN_nPD */
+   0x15e (PIN_OUTPUT | MUX_MODE6) /* 
abemcpdm_dl_data.gpio4_110 - WLAN_nRESET */
+   ;
+   };
+
usbhost_pins: pinmux_usbhost_pins {
pinctrl-single,pins = 
0x084 (PIN_INPUT | MUX_MODE0)  /* usbb2_hsic_strobe */
@@ -121,6 +140,14 @@
ti,non-removable;
 };
 
+mmc3 {
+   pinctrl-names = default;
+   pinctrl-0 = mmc3_pins;
+   vmmc-supply = ldo2_reg;
+   bus-width = 4;
+   ti,non-removable;
+};
+
 mmc4 {
status = disabled;
 };
diff --git a/arch/arm/mach-omap2/pdata-quirks.c 
b/arch/arm/mach-omap2/pdata-quirks.c
index a114806..554ab37 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -205,6 +205,15 @@ static void __init omap5_uevm_legacy_init(void)
 {
legacy_init_ehci_clk(auxclk1_ck);
 }
+
+static void __init omap5_cm_t54_legacy_init(void)
+{
+   gpio_request_one(109, GPIOF_OUT_INIT_HIGH, wlan_pdn);
+   gpio_export(109, 0);
+
+   gpio_request_one(110, GPIOF_OUT_INIT_HIGH, wlan_rst);
+   gpio_export(110, 0);
+}
 #endif
 
 static struct pcs_pdata pcs_pdata;
@@ -286,6 +295,7 @@ static struct pdata_init pdata_quirks[] __initdata = {
 #endif
 #ifdef CONFIG_SOC_OMAP5
{ ti,omap5-uevm, omap5_uevm_legacy_init, },
+   { compulab,omap5-cm-t54, omap5_cm_t54_legacy_init, },
 #endif
{ /* sentinel */ },
 };
-- 
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 1/2] ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

2014-04-08 Thread Dmitry Lifshitz
Add support for CM-T54 CoM and SBC-T54 board:

http://compulab.co.il/products/computer-on-modules/cm-t54/
http://compulab.co.il/products/sbcs/sbc-t54/

SBC-T54 is a single board computer based on OMAP5432 CPU.
It is implemented with a CM-T54 CoM providing most of the functions,
and SB-T54 carrier board providing connectors and several additional
functions.

Added basic support for:

* PMIC
* LED
* MMC/SD
* eMMC
* USB
* I2C1/4
* SB-T54 and CM-T54 EEPROMs
* RTC

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/Makefile  |2 +
 arch/arm/boot/dts/omap5-cm-t54.dts  |  363 +++
 arch/arm/boot/dts/omap5-sbc-t54.dts |   33 
 3 files changed, 398 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap5-cm-t54.dts
 create mode 100644 arch/arm/boot/dts/omap5-sbc-t54.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 84d90fc..e362b1c 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -221,6 +221,8 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
omap4-var-som.dtb \
omap4-sdp.dtb \
omap4-sdp-es23plus.dtb \
+   omap5-cm-t54.dtb \
+   omap5-sbc-t54.dtb \
omap5-uevm.dtb \
omap5-pyra.dtb \
am335x-evm.dtb \
diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
new file mode 100644
index 000..c87401f
--- /dev/null
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -0,0 +1,363 @@
+/*
+ * Support for CompuLab CM-T54
+ */
+/dts-v1/;
+
+#include omap5.dtsi
+#include dt-bindings/interrupt-controller/irq.h
+#include dt-bindings/interrupt-controller/arm-gic.h
+
+/ {
+   model = CompuLab CM-T54;
+   compatible = compulab,omap5-cm-t54, ti,omap5;
+
+   memory {
+   device_type = memory;
+   reg = 0x8000 0x7F00; /* 2048 MB */
+   };
+
+   vmmcsd_fixed: fixed-regulator-mmcsd {
+   compatible = regulator-fixed;
+   regulator-name = vmmcsd_fixed;
+   regulator-min-microvolt = 330;
+   regulator-max-microvolt = 330;
+   };
+
+   /* HS USB Host PHY on PORT 2 */
+   hsusb2_phy: hsusb2_phy {
+   compatible = usb-nop-xceiv;
+   reset-gpios = gpio3 12 GPIO_ACTIVE_LOW; /* gpio3_76 
HUB_RESET */
+   };
+
+   /* HS USB Host PHY on PORT 3 */
+   hsusb3_phy: hsusb3_phy {
+   compatible = usb-nop-xceiv;
+   reset-gpios = gpio3 19 GPIO_ACTIVE_LOW; /* gpio3_83 
ETH_RESET */
+   };
+
+   leds {
+   compatible = gpio-leds;
+   led@1 {
+   label = Heartbeat;
+   gpios = gpio3 16 GPIO_ACTIVE_HIGH; /* gpio3_80 
ACT_LED */
+   linux,default-trigger = heartbeat;
+   default-state = off;
+   };
+   };
+};
+
+omap5_pmx_core {
+   pinctrl-names = default;
+   pinctrl-0 = 
+   led_gpio_pins
+   usbhost_pins
+   ;
+
+   led_gpio_pins: pinmux_led_gpio_pins {
+   pinctrl-single,pins = 
+   0x070 (PIN_OUTPUT | MUX_MODE6) /* hsi2_caflag.gpio3_80 
*/
+   ;
+   };
+
+   i2c1_pins: pinmux_i2c1_pins {
+   pinctrl-single,pins = 
+   0x1b2 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_pmic_scl */
+   0x1b4 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_pmic_sda */
+   ;
+   };
+
+   mmc1_pins: pinmux_mmc1_pins {
+   pinctrl-single,pins = 
+   0x1a2 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_clk */
+   0x1a4 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_cmd */
+   0x1a6 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data2 */
+   0x1a8 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data3 */
+   0x1aa (PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data0 */
+   0x1ac (PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_data1 */
+   ;
+   };
+
+   mmc2_pins: pinmux_mmc2_pins {
+   pinctrl-single,pins = 
+   0x000 (PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_clk */
+   0x002 (PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_cmd */
+   0x004 (PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data0 */
+   0x006 (PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data1 */
+   0x008 (PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data2 */
+   0x00a (PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data3 */
+   0x00c (PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data4 */
+   0x00e (PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data5 */
+   0x010 (PIN_INPUT_PULLUP | MUX_MODE0) /* emmc_data6 */
+   0x012 (PIN_INPUT_PULLUP | MUX_MODE0

[PATCH v2 2/2] ARM: dts: cm-t54: add WiFi/BT support

2014-04-28 Thread Dmitry Lifshitz
Add support of AW-NH387 (mwifiex) WiFi/BT chip connected to MMC3.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---

Changes from V1:

* Platform quirk for deasserting PDN and RST GPIOs of WiFi chip replaced by
  appropriate regulators in DT.

 arch/arm/boot/dts/omap5-cm-t54.dts |   53 +++-
 1 files changed, 52 insertions(+), 1 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index 787c4aa..570130f 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -23,6 +23,28 @@
regulator-max-microvolt = 330;
};
 
+   vwlan_pdn_fixed: fixed-regulator-vwlan-pdn {
+   compatible = regulator-fixed;
+   regulator-name = vwlan_pdn_fixed;
+   regulator-min-microvolt = 330;
+   regulator-max-microvolt = 330;
+   vin-supply = ldo2_reg;
+   gpio = gpio4 13 GPIO_ACTIVE_HIGH;   /* gpio4_109 */
+   startup-delay-us = 1000;
+   enable-active-high;
+   };
+
+   vwlan_fixed: fixed-regulator-vwlan {
+   compatible = regulator-fixed;
+   regulator-name = vwlan_fixed;
+   regulator-min-microvolt = 330;
+   regulator-max-microvolt = 330;
+   vin-supply = vwlan_pdn_fixed;
+   gpio = gpio4 14 GPIO_ACTIVE_HIGH;   /* gpio4_110 */
+   startup-delay-us = 1000;
+   enable-active-high;
+   };
+
/* HS USB Host PHY on PORT 2 */
hsusb2_phy: hsusb2_phy {
compatible = usb-nop-xceiv;
@@ -92,6 +114,24 @@
;
};
 
+   mmc3_pins: pinmux_mmc3_pins {
+   pinctrl-single,pins = 
+   OMAP5_CORE_IOPAD(0x29a4, PIN_INPUT_PULLUP | MUX_MODE0) 
/* wlsdio_clk */
+   OMAP5_CORE_IOPAD(0x29a6, PIN_INPUT_PULLUP | MUX_MODE0) 
/* wlsdio_cmd */
+   OMAP5_CORE_IOPAD(0x29a8, PIN_INPUT_PULLUP | MUX_MODE0) 
/* wlsdio_data0 */
+   OMAP5_CORE_IOPAD(0x29aa, PIN_INPUT_PULLUP | MUX_MODE0) 
/* wlsdio_data1 */
+   OMAP5_CORE_IOPAD(0x29ac, PIN_INPUT_PULLUP | MUX_MODE0) 
/* wlsdio_data2 */
+   OMAP5_CORE_IOPAD(0x29ae, PIN_INPUT_PULLUP | MUX_MODE0) 
/* wlsdio_data3 */
+   ;
+   };
+
+   wlan_gpios_pins: pinmux_wlan_gpios_pins {
+   pinctrl-single,pins = 
+   OMAP5_CORE_IOPAD(0x299c, PIN_OUTPUT_PULLDOWN | 
MUX_MODE6) /* gpio4_109 */
+   OMAP5_CORE_IOPAD(0x299e, PIN_OUTPUT_PULLDOWN | 
MUX_MODE6) /* gpio4_110 */
+   ;
+   };
+
usbhost_pins: pinmux_usbhost_pins {
pinctrl-single,pins = 
OMAP5_CORE_IOPAD(0x28c4, PIN_INPUT | MUX_MODE0)  /* 
usbb2_hsic_strobe */
@@ -121,6 +161,17 @@
ti,non-removable;
 };
 
+mmc3 {
+   pinctrl-names = default;
+   pinctrl-0 = 
+   mmc3_pins
+   wlan_gpios_pins
+   ;
+   vmmc-supply = vwlan_fixed;
+   bus-width = 4;
+   ti,non-removable;
+};
+
 mmc4 {
status = disabled;
 };
@@ -255,7 +306,7 @@
regulator-name = ldo2;
regulator-min-microvolt = 330;
regulator-max-microvolt = 330;
-   regulator-boot-on;
+   startup-delay-us = 1000;
};
 
ldo3_reg: ldo3 {
-- 
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 v2 0/2] ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

2014-04-28 Thread Dmitry Lifshitz
Add support for CompuLab CM-T54 CoM and SBC-T54 board:

http://compulab.co.il/products/computer-on-modules/cm-t54/
http://compulab.co.il/products/sbcs/sbc-t54/

SBC-T54 is a single board computer based on OMAP5432 CPU.
It is implemented with a CM-T54 CoM providing most of the functions,
and SB-T54 carrier board providing connectors and several additional
functions.

Changes from V1:

* Used OMAP5_CORE_IOPAD macros for pimnux settings
* Added CD and WP support for SD/MMC card on SB-T54
* Platform quirk for deasserting PDN and RST GPIOs of WiFi chip replaced by
  appropriate regulators in DT.

Dmitry Lifshitz (2):
  ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54
  ARM: dts: cm-t54: add WiFi/BT support

 arch/arm/boot/dts/Makefile  |2 +
 arch/arm/boot/dts/omap5-cm-t54.dts  |  414 +++
 arch/arm/boot/dts/omap5-sbc-t54.dts |   52 +
 3 files changed, 468 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap5-cm-t54.dts
 create mode 100644 arch/arm/boot/dts/omap5-sbc-t54.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 v2 1/2] ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

2014-04-28 Thread Dmitry Lifshitz
Add support for CM-T54 CoM and SBC-T54 board:

http://compulab.co.il/products/computer-on-modules/cm-t54/
http://compulab.co.il/products/sbcs/sbc-t54/

SBC-T54 is a single board computer based on OMAP5432 CPU.
It is implemented with a CM-T54 CoM providing most of the functions,
and SB-T54 carrier board providing connectors and several additional
functions.

Added basic support for:

* PMIC
* LED
* MMC/SD
* eMMC
* USB
* I2C1/4
* SB-T54 and CM-T54 EEPROMs
* RTC

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---

Changes from V1:

* Used OMAP5_CORE_IOPAD macros for pimnux settings
* Added CD and WP support for SD/MMC card on SB-T54


 arch/arm/boot/dts/Makefile  |2 +
 arch/arm/boot/dts/omap5-cm-t54.dts  |  363 +++
 arch/arm/boot/dts/omap5-sbc-t54.dts |   52 +
 3 files changed, 417 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap5-cm-t54.dts
 create mode 100644 arch/arm/boot/dts/omap5-sbc-t54.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 0bdeba3..f7b2ec0 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -277,6 +277,8 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
omap4-var-som.dtb \
omap4-sdp.dtb \
omap4-sdp-es23plus.dtb \
+   omap5-cm-t54.dtb \
+   omap5-sbc-t54.dtb \
omap5-uevm.dtb \
am335x-evm.dtb \
am335x-evmsk.dtb \
diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
new file mode 100644
index 000..787c4aa
--- /dev/null
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -0,0 +1,363 @@
+/*
+ * Support for CompuLab CM-T54
+ */
+/dts-v1/;
+
+#include omap5.dtsi
+#include dt-bindings/interrupt-controller/irq.h
+#include dt-bindings/interrupt-controller/arm-gic.h
+
+/ {
+   model = CompuLab CM-T54;
+   compatible = compulab,omap5-cm-t54, ti,omap5;
+
+   memory {
+   device_type = memory;
+   reg = 0x8000 0x7F00; /* 2048 MB */
+   };
+
+   vmmcsd_fixed: fixed-regulator-mmcsd {
+   compatible = regulator-fixed;
+   regulator-name = vmmcsd_fixed;
+   regulator-min-microvolt = 330;
+   regulator-max-microvolt = 330;
+   };
+
+   /* HS USB Host PHY on PORT 2 */
+   hsusb2_phy: hsusb2_phy {
+   compatible = usb-nop-xceiv;
+   reset-gpios = gpio3 12 GPIO_ACTIVE_LOW; /* gpio3_76 
HUB_RESET */
+   };
+
+   /* HS USB Host PHY on PORT 3 */
+   hsusb3_phy: hsusb3_phy {
+   compatible = usb-nop-xceiv;
+   reset-gpios = gpio3 19 GPIO_ACTIVE_LOW; /* gpio3_83 
ETH_RESET */
+   };
+
+   leds {
+   compatible = gpio-leds;
+   led@1 {
+   label = Heartbeat;
+   gpios = gpio3 16 GPIO_ACTIVE_HIGH; /* gpio3_80 
ACT_LED */
+   linux,default-trigger = heartbeat;
+   default-state = off;
+   };
+   };
+};
+
+omap5_pmx_core {
+   pinctrl-names = default;
+   pinctrl-0 = 
+   led_gpio_pins
+   usbhost_pins
+   ;
+
+   led_gpio_pins: pinmux_led_gpio_pins {
+   pinctrl-single,pins = 
+   OMAP5_CORE_IOPAD(0x28b0, PIN_OUTPUT | MUX_MODE6) /* 
hsi2_caflag.gpio3_80 */
+   ;
+   };
+
+   i2c1_pins: pinmux_i2c1_pins {
+   pinctrl-single,pins = 
+   OMAP5_CORE_IOPAD(0x29f2, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c1_pmic_scl */
+   OMAP5_CORE_IOPAD(0x29f4, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c1_pmic_sda */
+   ;
+   };
+
+   mmc1_pins: pinmux_mmc1_pins {
+   pinctrl-single,pins = 
+   OMAP5_CORE_IOPAD(0x29e2, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdcard_clk */
+   OMAP5_CORE_IOPAD(0x29e4, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdcard_cmd */
+   OMAP5_CORE_IOPAD(0x29e6, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdcard_data2 */
+   OMAP5_CORE_IOPAD(0x29e8, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdcard_data3 */
+   OMAP5_CORE_IOPAD(0x29ea, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdcard_data0 */
+   OMAP5_CORE_IOPAD(0x29ec, PIN_INPUT_PULLUP | MUX_MODE0) 
/* sdcard_data1 */
+   ;
+   };
+
+   mmc2_pins: pinmux_mmc2_pins {
+   pinctrl-single,pins = 
+   OMAP5_CORE_IOPAD(0x2840, PIN_INPUT_PULLUP | MUX_MODE0) 
/* emmc_clk */
+   OMAP5_CORE_IOPAD(0x2842, PIN_INPUT_PULLUP | MUX_MODE0) 
/* emmc_cmd */
+   OMAP5_CORE_IOPAD(0x2844, PIN_INPUT_PULLUP | MUX_MODE0) 
/* emmc_data0 */
+   OMAP5_CORE_IOPAD(0x2846, PIN_INPUT_PULLUP | MUX_MODE0) 
/* emmc_data1 */
+   OMAP5_CORE_IOPAD(0x2848, PIN_INPUT_PULLUP | MUX_MODE0

Re: OMAP baseline test results for v3.15-rc8

2014-06-02 Thread Dmitry Lifshitz

Hi Paul,

CM-T3517 is a bare-bone CoM without MMC/SD card slot (NAND option).
MMC/SD card interface (and some other peripherals) are properties of the 
carrier base board SB-T35, which turns this CoM into fully functional 
board SBC-T3517.


Please, use omap3-sbc-t3517.dtb target.

Attached Linux v3.15-rc8 boot log using omap2plus_defconfig.

On 06/02/2014 10:50 AM, Paul Walmsley wrote:


Boot to userspace:
 FAIL ( 2/13): 2430sdp, cmt3517
 skip ( 2/13): 5912osk, 4460varsomom
 Pass ( 9/13): 2420n800, 3517evm, 3530es3beagle, 3730beaglexm,
  37xxevm, 4430es2panda, 4460pandaes, am335xbone,
  am335xbonelt




Regards,

Dmitry
U-Boot 2009.11-cm-t3517-1 (Dec 10 2010 - 23:25:02)

AM35xx-GP ES2.0, L3-165MHz
CM-T3517 Module + LPDDR/NAND 128/512M
I2C:   ready
DRAM:  256 MB
NAND:  512 MiB
In:serial
Out:   serial
Err:   serial
PCB:   1.2
Die ID #7a640001016b29c60d00c020
Net:   DaVinci EMAC, smc911x-0
Hit any key to stop autoboot:  0 
CM-T3517 # sete bootargs 'console=ttyO2,115200n8 debug ignore_loglevel 
earlyprintk root=/dev/mmcblk0p2 rootwait init=/bin/sh nohlt'
CM-T3517 # sete bootcmd 'tftp 0x8200  uImage-cm-t3517_wdt.bin  bootm 
0x8200'
CM-T3517 # boot
Using DaVinci EMAC device
TFTP from server 192.168.11.10; our IP address is 192.168.6.204
Filename 'uImage-cm-t3517_wdt.bin'.
Load address: 0x8200
Loading: #
 #
 T #
 #
 #
 ##T ###
 #
 ##T ###
 ###T ##
 T #
 #
 #T 
 ##T ###
 #
 ##
done
Bytes transferred = 4769379 (48c663 hex)
## Booting kernel from Legacy Image at 8200 ...
   Image Name:   Linux
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:4769315 Bytes =  4.5 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[0.00] Booting Linux on physical CPU 0x0
[0.00] Linux version 3.15.0-rc8 (lifsh...@compulab.co.il) (gcc version 
4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #4 SMP Mon Jun 2 11:19:33 IDT 2014
[0.00] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c5387d
[0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing 
instruction cache
[0.00] Machine model: CompuLab SBC-T3517 with CM-T3517
[0.00] debug: ignoring loglevel setting.
[0.00] cma: CMA: reserved 16 MiB at 8e80
[0.00] Memory policy: Data cache writeback
[0.00] On node 0 totalpages: 65280
[0.00] free_area_init_node: node 0, pgdat c092e8c0, node_mem_map 
cfcf2000
[0.00]   Normal zone: 512 pages used for memmap
[0.00]   Normal zone: 0 pages reserved
[0.00]   Normal zone: 65280 pages, LIFO batch:15
[0.00] CPU: All CPU(s) started in SVC mode.
[0.00] AM3517 ES1.1 (l2cache sgx neon )
[0.00] PERCPU: Embedded 9 pages/cpu @cfcaf000 s14080 r8192 d14592 u36864
[0.00] pcpu-alloc: s14080 r8192 d14592 u36864 alloc=9*4096
[0.00] pcpu-alloc: [0] 0 
[0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 64768
[0.00] Kernel command line: console=ttyO2,115200n8 debug 
ignore_loglevel earlyprintk root=/dev/mmcblk0p2 rootwait init=/bin/sh nohlt
[0.00] PID hash table entries: 1024 (order: 0, 4096 bytes)
[0.00] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[0.00] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[0.00] Memory: 227188K/261120K available (6111K kernel code, 664K 
rwdata, 2216K rodata, 393K init, 5522K bss, 33932K reserved, 0K highmem)
[0.00] Virtual kernel memory layout:
[0.00] vector  : 0x - 0x1000   (   4 kB)
[0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
[0.00] vmalloc : 0xd080 - 0xff00   ( 744 MB)
[0.00] lowmem  : 0xc000 - 0xd000   ( 256 MB)
[0.00] pkmap   : 0xbfe0 - 0xc000   (   2 MB)
[0.00] modules : 

Re: [PATCH v14 0/6] mmc: omap_hsmmc: Enable SDIO IRQ

2014-08-06 Thread Dmitry Lifshitz

Hi,

I did not find this patch set in Chris MMC tree.
I did succeed to locate it in Linaro repo only.

When it will be merged in the mainline?

We are using SDIO IRQ patch with OMAP5 board and it is really useful.

Andreas, thank you.

Regards,

Dmitry


On 06/16/2014 12:26 PM, Ulf Hansson wrote:

On 29 May 2014 10:27, Andreas Fenkart afenk...@gmail.com wrote:

Hi Balaji, Tony, Ulf, all

v14
- drop all ifdef/endif introduced by v13
-- rely on pinctrl_lookup_state to prevent ifdef CONFIG_PM
-- benefit: all code is compile tested no matter the configuration
-- drawback: require wake_irq/pinctrl configuration even when
runtime suspend is not configured
- drop runtime state from debugfs output
- rebased onto current mmc-next 06732b84b4cf


Thanks! Applied for next.

Kind regards
Ulf Hansson



v13
- fix compile breaks if !CONFIG_PM
- additional patch: install dummy pm runtime hooks if !CONFIG_PM_RUNTIME

v12
- drop !CONFIG_OF compile break only exists when
   #undef CONFIG_OF after include headers 1/7(Sebastian Reichel)
- do not emit falling back to polling if wake_irq not specified
   since MMC does not need it, and it might confuse users
   only emit if pinmux default/idle is not present or claiming
   the irq failed 2/7(Balaji)
- dropped out-of-tree patches 6/7(Balaji)
- mention ti,am33xx-hsmmc compatible section in bindings
   documentation 1/5

v11
- split !CONFIG_OF compile break into separate patch
- enable IWE/CLKEXTFREE in CON/HCTL register needed for omap4
- '' vs '' in omap_hsmmc_resume, 1/5 (Andreas Müller)
- #define DLEV_DAT instead of BIT(21) 2/5 (Balaji)
- pinctrl_pm_select_default_state() removed, 4/5 (Balaji)
- drop _irqsave/_irqrestore from omap_hsmmc_wake_irq handler since it
   can't be preempted by same priority omap_hsmmc_irq handler 1/5(Joel 
Fernandes)
- replace devres_open_group by explicit devm_free calls 1/5 (Balaji)
- disable_irq_nosync wake_irq since we handle it thread safe 1/5 (Balaji)
- drop 'gpio_dat1' pinctrl states and rework documentation 5/5 (Balaji)

v10
- bug fix on multi-core, untested
- incorporated changes from Balaji
- use devres / RAII mechanism to configure wake_up /
   sdio irq capabilities
- drop pinctrl state 'active'
   rely on driver-model states 'default', 'idle'
- add specific 'gpio_dat1' state for am335x SWAKEUP hack
- reorganized patches; +1 patch multi-core bugfix / +1 for pinctrl
- rebased 455c6fdbd21916 / cherry-picks from mmc-next

v9
- extended comment about why wake-irq is needed
- drop double '(' ')' around card_detect_irq
- drop final '.' in in subject line of patch

v8
- rebased on top of Tony Lindgrent...@atomide.com changes
   - improved changelog describing the earlier work
   - improved wakeup irq setup
   - works for am3730 es platform now
- my changes on top:
   - compile tested with #undef CONFIG_OF
   - disable wake_irq in handler to prevent infinite loop
   - fixed typo and added comment about wake-irq

v7
- rebase on 3.14.0-rc3-49726-g77e15ec
- split omap_hsmmc_pin_init due to regression on omap-3730 platform

v6
- rebase on Linux 3.13-rc3
- reformatting debugfs

v5
- fix compile error introduced by last minute one line fix

v4:
- switch to interrupts-extended format
- drop ti,swakeup-missing flag convert to comaptible section

v3:
- removed gpio_irq from platform_data

v2:
- incorparated changes as suggested by reviewers
- simplified workaround for am335x, gpio will now only wake
   the module from runtime suspend, not handle the sdio irq
   itself

Andreas Fenkart (6):
   mmc: omap_hsmmc: Enable SDIO interrupt
   mmc: omap_hsmmc: Extend debugfs by SDIO IRQ handling, runtime state
   mmc: omap_hsmmc: enable wakeup event for sdio OMAP4
   mmc: omap_hsmmc: abort runtime suspend if pending sdio irq detected
   mmc: omap_hsmmc: switch default/idle pinctrl states in runtime hooks
   mmc: omap_hsmmc: Pin remux workaround to support SDIO interrupt on
 AM335x

  .../devicetree/bindings/mmc/ti-omap-hsmmc.txt  |   54 
  drivers/mmc/host/omap_hsmmc.c  |  283 ++--
  include/linux/platform_data/mmc-omap.h |1 +
  3 files changed, 317 insertions(+), 21 deletions(-)

--
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-mmc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.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




--
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 1/2] ARM: dts: cm-t54: fix serial console power supply.

2014-09-04 Thread Dmitry Lifshitz
LDO8 regulator is used for act led and serial cosole power supply.

Its DT status is declared as disabled, however the serial console was
functional until Commit 318dbb02b (regulator: palmas: Fix SMPS
enable/disable/is_enabled) wich properly turns off LDO8 on boot.

Fix serial cosole power supply (and act led) on boot by turning LDO8 on.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap5-cm-t54.dts |5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index b8698ca..429471a 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -353,13 +353,12 @@
};
 
ldo8_reg: ldo8 {
-   /* VDD_3v0: Does not go anywhere */
+   /* VDD_3V_GP: act led/serial console */
regulator-name = ldo8;
regulator-min-microvolt = 300;
regulator-max-microvolt = 300;
+   regulator-always-on;
regulator-boot-on;
-   /* Unused */
-   status = disabled;
};
 
ldo9_reg: ldo9 {
-- 
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 2/2] ARM: dts: sbc-t54: fix model property

2014-09-04 Thread Dmitry Lifshitz
CM-T54 CoM can be used with various custom baseboards, other
than SB-T54 (supplied with SBC-T54 single board computer).

Update model property of SBC-T54 DT to clarify this.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap5-sbc-t54.dts |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-sbc-t54.dts 
b/arch/arm/boot/dts/omap5-sbc-t54.dts
index aa98fea..8e89793 100644
--- a/arch/arm/boot/dts/omap5-sbc-t54.dts
+++ b/arch/arm/boot/dts/omap5-sbc-t54.dts
@@ -1,11 +1,11 @@
 /*
- * Suppport for CompuLab SBC-T54 with CM-T54
+ * Suppport for CompuLab CM-T54 on SB-T54 baseboard
  */
 
 #include omap5-cm-t54.dts
 
 / {
-   model = CompuLab SBC-T54 with CM-T54;
+   model = CompuLab CM-T54 on SB-T54;
compatible = compulab,omap5-sbc-t54, compulab,omap5-cm-t54, 
ti,omap5;
 };
 
-- 
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 0/2] fix cm-t54 serial console power supply

2014-09-04 Thread Dmitry Lifshitz
Essential fix of CM-T54 serial console power supply and
minor update of SBC-T54 DT model property.

Dmitry Lifshitz (2):
  ARM: dts: cm-t54: fix serial console power supply.
  ARM: dts: sbc-t54: fix model property

 arch/arm/boot/dts/omap5-cm-t54.dts  |5 ++---
 arch/arm/boot/dts/omap5-sbc-t54.dts |4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

-- 
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


Re: [PATCH 2/2] ARM: dts: omap5: Add dr_mode for dwc3

2014-09-08 Thread Dmitry Lifshitz

Hi Felipe, Roger

On 04/16/2014 07:16 PM, Felipe Balbi wrote:

On Fri, Oct 11, 2013 at 05:46:12PM +0300, Roger Quadros wrote:

Hi,

On 10/10/2013 01:49 PM, Kishon Vijay Abraham I wrote:

From: George Cherian george.cher...@ti.com

Added dr_mode property in dwc3 and set its default mode to device.


If there is a specific reason why this is not set to otg, we need
to explain it here.

AFAIK the port is meant to be used as OTG port.


we still don't have the workaround for dual role ports, I've been
working on it but still need to retest and make sure it's working fine
before merging upstream.




Does the OTG port suppose to work with OMAP5? I mean role switching 
mechanism?


I'm testing kernel v3.16 with OMAP5 based board (CM-T54).

If I set CONFIG_USB_DWC3_DUAL_ROLE, than nothing is going on when I plug 
some device/host cable into micro USB3.0 port (VBUS/ID detection with 
extcon events works fine).


CONFIG_USB_DWC3_HOST/CONFIG_USB_DWC3_GADGET bring port to appropriate 
mode and it works.


What is the purpose of setting dr_mode = peripheral in omap5.dtsi, 
since it is overridden by config options in dwc3_probe()?


Thank you in advance for the assistance,

Dmitry

--
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


Re: [PATCH 2/2] ARM: dts: omap5: Add dr_mode for dwc3

2014-09-08 Thread Dmitry Lifshitz

Hi Roger,

Thank you for a quick reply. See, my reply below.

On 09/08/2014 02:39 PM, Roger Quadros wrote:

On 09/08/2014 02:34 PM, Dmitry Lifshitz wrote:

Hi Felipe, Roger

On 04/16/2014 07:16 PM, Felipe Balbi wrote:

On Fri, Oct 11, 2013 at 05:46:12PM +0300, Roger Quadros wrote:

Hi,

On 10/10/2013 01:49 PM, Kishon Vijay Abraham I wrote:

From: George Cherian george.cher...@ti.com

Added dr_mode property in dwc3 and set its default mode to device.


If there is a specific reason why this is not set to otg, we need
to explain it here.

AFAIK the port is meant to be used as OTG port.


we still don't have the workaround for dual role ports, I've been
working on it but still need to retest and make sure it's working fine
before merging upstream.




Does the OTG port suppose to work with OMAP5? I mean role switching mechanism?

I'm testing kernel v3.16 with OMAP5 based board (CM-T54).

If I set CONFIG_USB_DWC3_DUAL_ROLE, than nothing is going on when I plug some 
device/host cable into micro USB3.0 port (VBUS/ID detection with extcon events 
works fine).

CONFIG_USB_DWC3_HOST/CONFIG_USB_DWC3_GADGET bring port to appropriate mode and 
it works.

What is the purpose of setting dr_mode = peripheral in omap5.dtsi, since it 
is overridden by config options in dwc3_probe()?


If dual role works it should be otg then. I'm not sure why it was set to 
peripheral. Maybe the role switching mechanism
was not in place earlier.



This is what I have when setting dr_mode = otg (and compiling with 
CONFIG_USB_DWC3_DUAL_ROLE):


when load gadget driver and plugging host PC cable:

root@cm-debian:~# modprobe g_ether
using random self ethernet address
using random host ethernet address
usb0: HOST MAC fa:db:52:7f:95:c5
usb0: MAC be:75:8d:71:6d:02
using random self ethernet address
using random host ethernet address
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
root@cm-debian:~# [ cut here ]
WARNING: CPU: 0 PID: 65 at 
/home/lifshitz/workroot/git-repo/OMAP5/omap5-kernel/drivers/bus/omap_l3_noc.c:147 
l3_handle_target.isra.2+0x230/0x27c()
4400.ocp:L3 Standard Error: MASTER UN IDENTIFIED TARGET OCMRAM 
(Read): At Address: 0x : Data Access in User mode during 
Functional access
Modules linked in: usb_f_eem g_ether usb_f_rndis libcomposite u_ether 
configfs rfcomm ecb btmrvl_sdio btmrvl bluetooth mwifiex_sdio mwifiex 
dwc3 ahci_platform libahci_platform libahci libata snd_soc_cm_t54 
ads7846 dwc3_omap extcon_palmas rtc_palmas extcon_class at24 
snd_soc_wm8731 snd_soc_omap_mcbsp
CPU: 0 PID: 65 Comm: irq/39-palmas Tainted: GW 
3.16.0-cm-t54+ #99

[c00156d0] (unwind_backtrace) from [c00124ac] (show_stack+0x10/0x14)
[c00124ac] (show_stack) from [c05e29dc] (dump_stack+0x74/0x8c)
[c05e29dc] (dump_stack) from [c0037dbc] (warn_slowpath_common+0x70/0x88)
[c0037dbc] (warn_slowpath_common) from [c0037e68] 
(warn_slowpath_fmt+0x30/0x40)
[c0037e68] (warn_slowpath_fmt) from [c02d88b8] 
(l3_handle_target.isra.2+0x230/0x27c)
[c02d88b8] (l3_handle_target.isra.2) from [c02d89b0] 
(l3_interrupt_handler+0xac/0x13c)
[c02d89b0] (l3_interrupt_handler) from [c007ea00] 
(handle_irq_event_percpu+0x7c/0x230)
[c007ea00] (handle_irq_event_percpu) from [c007ebf8] 
(handle_irq_event+0x44/0x64)
[c007ebf8] (handle_irq_event) from [c0081b78] 
(handle_fasteoi_irq+0xa8/0x134)
[c0081b78] (handle_fasteoi_irq) from [c007e398] 
(generic_handle_irq+0x20/0x30)

[c007e398] (generic_handle_irq) from [c000f4ac] (handle_IRQ+0x40/0x90)
[c000f4ac] (handle_IRQ) from [c0008620] (gic_handle_irq+0x2c/0x60)
[c0008620] (gic_handle_irq) from [c05eacc0] (__irq_svc+0x40/0x50)
Exception stack(0xec939d80 to 0xec939dc8)
9d80: ecb729b0 2013  0001 ecb72800 eca1e000  
ec939e44
9da0: ec939ed0 2013 ecb72818 ed005e14 ec939ec8 ec939dc8 bf015f54 
c05ea548

9dc0: 8013 
[c05eacc0] (__irq_svc) from [c05ea548] 
(_raw_spin_unlock_irqrestore+0x1c/0x20)
[c05ea548] (_raw_spin_unlock_irqrestore) from [bf015f54] 
(extcon_update_state+0x144/0x1c4 [extcon_class])
[bf015f54] (extcon_update_state [extcon_class]) from [bf023288] 
(palmas_vbus_irq_handler+0x64/0xa0 [extcon_palmas])
[bf023288] (palmas_vbus_irq_handler [extcon_palmas]) from [c00815a8] 
(handle_nested_irq+0xa0/0x10c)
[c00815a8] (handle_nested_irq) from [c03ab85c] 
(regmap_irq_thread+0x184/0x300)

[c03ab85c] (regmap_irq_thread) from [c007f8b8] (irq_thread_fn+0x1c/0x40)
[c007f8b8] (irq_thread_fn) from [c007f6a4] (irq_thread+0x120/0x15c)
[c007f6a4] (irq_thread) from [c0056434] (kthread+0xdc/0xf0)
[c0056434] (kthread) from [c000eb98] (ret_from_fork+0x14/0x3c)
---[ end trace 3b365a734f7f3202 ]---
palmas-usb 4807.i2c:palmas@48:palmas_usb: USB cable is attached



when plugging storage device:

root@cm-debian:~# dmesg | tail -n20
...
omap-dwc3 4a02.omap_dwc3: ID GND
palmas-usb 4807.i2c:palmas@48:palmas_usb: USB-HOST cable is attached
palmas-usb 4807.i2c:palmas@48:palmas_usb: USB cable is attached

and nothing

Re: [PATCH 2/2] ARM: dts: omap5: Add dr_mode for dwc3

2014-09-10 Thread Dmitry Lifshitz

Hi,

On 09/08/2014 04:24 PM, Felipe Balbi wrote:

Hi,

On Mon, Sep 08, 2014 at 02:34:33PM +0300, Dmitry Lifshitz wrote:

Hi Felipe, Roger

On 04/16/2014 07:16 PM, Felipe Balbi wrote:

On Fri, Oct 11, 2013 at 05:46:12PM +0300, Roger Quadros wrote:

Hi,

On 10/10/2013 01:49 PM, Kishon Vijay Abraham I wrote:

From: George Cherian george.cher...@ti.com

Added dr_mode property in dwc3 and set its default mode to device.


If there is a specific reason why this is not set to otg, we need
to explain it here.

AFAIK the port is meant to be used as OTG port.


we still don't have the workaround for dual role ports, I've been
working on it but still need to retest and make sure it's working fine
before merging upstream.




Does the OTG port suppose to work with OMAP5? I mean role switching
mechanism?

I'm testing kernel v3.16 with OMAP5 based board (CM-T54).

If I set CONFIG_USB_DWC3_DUAL_ROLE, than nothing is going on when I plug
some device/host cable into micro USB3.0 port (VBUS/ID detection with extcon
events works fine).


Dual role does not work. We allow the driver to the built with both Host
and Peripheral support because some platforms have more than one port
and building the driver with dual role allows us to make one port host
and one peripheral.



Please, can you provide some detail about platforms with several ports.
How do that ports are connected to DWC3?


Thanks,

Dmitry


--
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 1/4] ARM: dts: cm-t54: add HDMI/DVI display data

2014-09-16 Thread Dmitry Lifshitz
Add DSS related pinmux and display data nodes required to support HDMI
and DVI video out on CM-T54.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap5-cm-t54.dts |  158 
 1 files changed, 158 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index 429471a..9cb40d6 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -66,6 +66,69 @@
default-state = off;
};
};
+
+   aliases {
+   display0 = hdmi0;
+   display1 = dvi0;
+   };
+
+   hdmi0: connector@0 {
+   compatible = hdmi-connector;
+   label = hdmi;
+
+   type = a;
+
+   pinctrl-names = default;
+   pinctrl-0 = hdmi_conn_pins;
+
+   hpd-gpios = gpio7 1 GPIO_ACTIVE_HIGH; /* GPIO 193, HPD */
+
+   port {
+   hdmi_connector_in: endpoint {
+   remote-endpoint = hdmi_out;
+   };
+   };
+   };
+
+   tfp410: encoder@0 {
+   compatible = ti,tfp410;
+
+   ports {
+   #address-cells = 1;
+   #size-cells = 0;
+
+   port@0 {
+   reg = 0;
+
+   tfp410_in: endpoint@0 {
+   remote-endpoint = dpi_dvi_out;
+   };
+   };
+
+   port@1 {
+   reg = 1;
+
+   tfp410_out: endpoint@0 {
+   remote-endpoint = dvi_connector_in;
+   };
+   };
+   };
+   };
+
+   dvi0: connector@1 {
+   compatible = dvi-connector;
+   label = dvi;
+
+   digital;
+
+   ddc-i2c-bus = i2c2;
+
+   port {
+   dvi_connector_in: endpoint {
+   remote-endpoint = tfp410_out;
+   };
+   };
+   };
 };
 
 omap5_pmx_core {
@@ -88,6 +151,13 @@
;
};
 
+   i2c2_pins: pinmux_i2c2_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x01b8, PIN_INPUT | MUX_MODE0) /* i2c2_scl 
*/
+   OMAP5_IOPAD(0x01ba, PIN_INPUT | MUX_MODE0) /* i2c2_sda 
*/
+   ;
+   };
+
mmc1_pins: pinmux_mmc1_pins {
pinctrl-single,pins = 
OMAP5_IOPAD(0x01e2, PIN_INPUT_PULLUP | MUX_MODE0) /* 
sdcard_clk */
@@ -144,6 +214,53 @@
OMAP5_IOPAD(0x00b6, PIN_OUTPUT | MUX_MODE6) /* 
hsi2_acdata.gpio3_83 */
;
};
+
+   dss_hdmi_pins: pinmux_dss_hdmi_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x013c, PIN_INPUT_PULLUP | MUX_MODE0) /* 
hdmi_cec.hdmi_cec */
+   OMAP5_IOPAD(0x0140, PIN_INPUT | MUX_MODE0) /* 
hdmi_ddc_scl.hdmi_ddc_scl */
+   OMAP5_IOPAD(0x0142, PIN_INPUT | MUX_MODE0) /* 
hdmi_ddc_sda.hdmi_ddc_sda */
+   ;
+   };
+
+   hdmi_conn_pins: pinmux_hdmi_conn_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* 
hdmi_hpd.gpio7_193 */
+   ;
+   };
+
+   dss_dpi_pins: pinmux_dss_dpi_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x0104, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data15 */
+   OMAP5_IOPAD(0x0106, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data14 */
+   OMAP5_IOPAD(0x0108, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data13 */
+   OMAP5_IOPAD(0x010a, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data12 */
+   OMAP5_IOPAD(0x010c, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data11 */
+   OMAP5_IOPAD(0x010e, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data10 */
+   OMAP5_IOPAD(0x0110, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data9 */
+   OMAP5_IOPAD(0x0112, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data8 */
+   OMAP5_IOPAD(0x0114, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data7 */
+   OMAP5_IOPAD(0x0116, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data6 */
+   OMAP5_IOPAD(0x0118, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data5 */
+   OMAP5_IOPAD(0x011a, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data4 */
+   OMAP5_IOPAD(0x011c, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data3 */
+   OMAP5_IOPAD(0x011e, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data2 */
+   OMAP5_IOPAD(0x0120, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data1

[PATCH 4/4] ARM: dts: cm-t54: setup omap_dwc3

2014-09-16 Thread Dmitry Lifshitz
Add extcon and vbus-supply properties of DWC3 node.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap5-cm-t54.dts |5 +
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index 9cfcad5..855cb88a 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -631,6 +631,11 @@
phys = 0 hsusb2_phy hsusb3_phy;
 };
 
+usb3 {
+   extcon = extcon_usb3;
+   vbus-supply = smps10_out1_reg;
+};
+
 cpu0 {
cpu0-supply = smps123_reg;
 };
-- 
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 2/4] ARM: dts: cm-t54: add Startek LCD support

2014-09-16 Thread Dmitry Lifshitz
Add DT support for Startek KD050C LCD 800x480 panel.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap5-cm-t54.dts |   44 
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index 9cb40d6..588cc2a 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -70,8 +70,41 @@
aliases {
display0 = hdmi0;
display1 = dvi0;
+   display2 = lcd0;
};
 
+   lcd0: display {
+compatible = startek,startek-kd050c, panel-dpi;
+label = lcd;
+
+pinctrl-names = default;
+pinctrl-0 = lcd_pins;
+
+enable-gpios = gpio8 3 GPIO_ACTIVE_HIGH;
+
+panel-timing {
+clock-frequency = 3300;
+hactive = 800;
+vactive = 480;
+hfront-porch = 40;
+hback-porch = 40;
+hsync-len = 43;
+vback-porch = 29;
+vfront-porch = 13;
+vsync-len = 3;
+hsync-active = 0;
+vsync-active = 0;
+de-active = 1;
+pixelclk-active = 1;
+};
+
+port {
+lcd_in: endpoint {
+remote-endpoint = dpi_lcd_out;
+};
+};
+};
+
hdmi0: connector@0 {
compatible = hdmi-connector;
label = hdmi;
@@ -223,6 +256,12 @@
;
};
 
+   lcd_pins: pinmux_lcd_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x0172, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* 
timer11_pwm_evt.gpio8_227 */
+   ;
+   };
+
hdmi_conn_pins: pinmux_hdmi_conn_pins {
pinctrl-single,pins = 
OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* 
hdmi_hpd.gpio7_193 */
@@ -546,6 +585,11 @@
remote-endpoint = tfp410_in;
data-lines = 24;
};
+
+   dpi_lcd_out: endpoint@1 {
+   remote-endpoint = lcd_in;
+   data-lines = 24;
+   };
};
 };
 
-- 
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 3/4] ARM: dts: cm-t54: add ADS7846 touchscreen support

2014-09-16 Thread Dmitry Lifshitz
Add ADS7846 touchscreen support.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap5-cm-t54.dts |   61 
 1 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index 588cc2a..9cfcad5 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -45,6 +45,13 @@
enable-active-high;
};
 
+   ads7846reg: ads7846-reg {
+   compatible = regulator-fixed;
+   regulator-name = ads7846-reg;
+   regulator-min-microvolt = 330;
+   regulator-max-microvolt = 330;
+   };
+
/* HS USB Host PHY on PORT 2 */
hsusb2_phy: hsusb2_phy {
compatible = usb-nop-xceiv;
@@ -164,6 +171,15 @@
};
 };
 
+omap5_pmx_wkup {
+
+   ads7846_pins: pinmux_ads7846_pins {
+   pinctrl-single,pins = 
+   0x02 (PIN_INPUT_PULLDOWN | MUX_MODE6)  /* 
llib_wakereqin.gpio1_wk15 */
+   ;
+   };
+};
+
 omap5_pmx_core {
pinctrl-names = default;
pinctrl-0 = 
@@ -300,6 +316,51 @@
OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* 
dispc_data23 */
;
};
+
+   mcspi2_pins: pinmux_mcspi1_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x00fc, PIN_INPUT | MUX_MODE0)  /* 
mcspi2_clk.mcspi2_clk */
+   OMAP5_IOPAD(0x00fe, PIN_INPUT | MUX_MODE0)  /* 
mcspi2_simo.mcspi2_simo */
+   OMAP5_IOPAD(0x0100, PIN_INPUT | MUX_MODE0)  /* 
mcspi2_somi.mcspi2_somi */
+   OMAP5_IOPAD(0x0102, PIN_INPUT | MUX_MODE0)  /* 
mcspi2_cs0.mcspi2_cs0 */
+   ;
+   };
+};
+
+mcspi2 {
+   pinctrl-names = default;
+   pinctrl-0 = mcspi2_pins;
+
+   /* touch controller */
+   ads7846@0 {
+   pinctrl-names = default;
+   pinctrl-0 = ads7846_pins;
+
+   compatible = ti,ads7846;
+   vcc-supply = ads7846reg;
+
+   reg = 0;  /* CS0 */
+   spi-max-frequency = 150;
+
+   interrupt-parent = gpio1;
+   interrupts = 15 0;/* gpio1_wk15 */
+   pendown-gpio = gpio1 15 0;
+
+
+   ti,x-min = /bits/ 16 0x0;
+   ti,x-max = /bits/ 16 0x0fff;
+   ti,y-min = /bits/ 16 0x0;
+   ti,y-max = /bits/ 16 0x0fff;
+
+   ti,x-plate-ohms = /bits/ 16 180;
+   ti,pressure-max = /bits/ 16 255;
+
+   ti,debounce-max = /bits/ 16 30;
+   ti,debounce-tol = /bits/ 16 10;
+   ti,debounce-rep = /bits/ 16 1;
+
+   linux,wakeup;
+   };
 };
 
 mmc1 {
-- 
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 0/4] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0

2014-09-16 Thread Dmitry Lifshitz
Add CM-T54 DT nodes:

* enable HDMI/DVI/LCD video output support
* add ADS7846 touchscreen support
* enchance DWC3 setup to enable power supply for USB3.0 OTG port

Dmitry Lifshitz (4):
  ARM: dts: cm-t54: add HDMI/DVI display data
  ARM: dts: cm-t54: add Startek LCD support
  ARM: dts: cm-t54: add ADS7846 touchscreen support
  ARM: dts: cm-t54: setup omap_dwc3

 arch/arm/boot/dts/omap5-cm-t54.dts |  268 
 1 files changed, 268 insertions(+), 0 deletions(-)

-- 
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 v2 3/6] ARM: dts: cm-t54: add HDMI/DVI display data

2014-09-17 Thread Dmitry Lifshitz
Add DSS related pinmux and display data nodes required to support HDMI
and DVI video out on CM-T54.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
v2: * Fixed comment style issue for mux mode.
  Follow the convention mode0_name.modeX_name for pins
  which mux mode differs from MUX_MODE0

* Moved aliases node to the top of dts file

 arch/arm/boot/dts/omap5-cm-t54.dts |  158 
 1 files changed, 158 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index 44a9f23..d2f241d 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -16,6 +16,11 @@
reg = 0x8000 0x7F00; /* 2048 MB */
};
 
+   aliases {
+   display0 = hdmi0;
+   display1 = dvi0;
+   };
+
vmmcsd_fixed: fixed-regulator-mmcsd {
compatible = regulator-fixed;
regulator-name = vmmcsd_fixed;
@@ -66,6 +71,64 @@
default-state = off;
};
};
+
+   hdmi0: connector@0 {
+   compatible = hdmi-connector;
+   label = hdmi;
+
+   type = a;
+
+   pinctrl-names = default;
+   pinctrl-0 = hdmi_conn_pins;
+
+   hpd-gpios = gpio7 1 GPIO_ACTIVE_HIGH; /* GPIO 193, HPD */
+
+   port {
+   hdmi_connector_in: endpoint {
+   remote-endpoint = hdmi_out;
+   };
+   };
+   };
+
+   tfp410: encoder@0 {
+   compatible = ti,tfp410;
+
+   ports {
+   #address-cells = 1;
+   #size-cells = 0;
+
+   port@0 {
+   reg = 0;
+
+   tfp410_in: endpoint@0 {
+   remote-endpoint = dpi_dvi_out;
+   };
+   };
+
+   port@1 {
+   reg = 1;
+
+   tfp410_out: endpoint@0 {
+   remote-endpoint = dvi_connector_in;
+   };
+   };
+   };
+   };
+
+   dvi0: connector@1 {
+   compatible = dvi-connector;
+   label = dvi;
+
+   digital;
+
+   ddc-i2c-bus = i2c2;
+
+   port {
+   dvi_connector_in: endpoint {
+   remote-endpoint = tfp410_out;
+   };
+   };
+   };
 };
 
 omap5_pmx_core {
@@ -88,6 +151,13 @@
;
};
 
+   i2c2_pins: pinmux_i2c2_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x01b8, PIN_INPUT | MUX_MODE0) /* i2c2_scl 
*/
+   OMAP5_IOPAD(0x01ba, PIN_INPUT | MUX_MODE0) /* i2c2_sda 
*/
+   ;
+   };
+
mmc1_pins: pinmux_mmc1_pins {
pinctrl-single,pins = 
OMAP5_IOPAD(0x01e2, PIN_INPUT_PULLUP | MUX_MODE0) /* 
sdcard_clk */
@@ -144,6 +214,53 @@
OMAP5_IOPAD(0x00b6, PIN_OUTPUT | MUX_MODE6) /* 
hsi2_acdata.gpio3_83 */
;
};
+
+   dss_hdmi_pins: pinmux_dss_hdmi_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x013c, PIN_INPUT_PULLUP | MUX_MODE0) /* 
hdmi_cec */
+   OMAP5_IOPAD(0x0140, PIN_INPUT | MUX_MODE0) /* 
hdmi_ddc_scl */
+   OMAP5_IOPAD(0x0142, PIN_INPUT | MUX_MODE0) /* 
hdmi_ddc_sda */
+   ;
+   };
+
+   hdmi_conn_pins: pinmux_hdmi_conn_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* 
hdmi_hpd.gpio7_193 */
+   ;
+   };
+
+   dss_dpi_pins: pinmux_dss_dpi_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x0104, PIN_OUTPUT | MUX_MODE3) /* 
rfbi_data15.dispc_data15 */
+   OMAP5_IOPAD(0x0106, PIN_OUTPUT | MUX_MODE3) /* 
rfbi_data14.dispc_data14 */
+   OMAP5_IOPAD(0x0108, PIN_OUTPUT | MUX_MODE3) /* 
rfbi_data13.dispc_data13 */
+   OMAP5_IOPAD(0x010a, PIN_OUTPUT | MUX_MODE3) /* 
rfbi_data12.dispc_data12 */
+   OMAP5_IOPAD(0x010c, PIN_OUTPUT | MUX_MODE3) /* 
rfbi_data11.dispc_data11 */
+   OMAP5_IOPAD(0x010e, PIN_OUTPUT | MUX_MODE3) /* 
rfbi_data10.dispc_data10 */
+   OMAP5_IOPAD(0x0110, PIN_OUTPUT | MUX_MODE3) /* 
rfbi_data9.dispc_data9 */
+   OMAP5_IOPAD(0x0112, PIN_OUTPUT | MUX_MODE3) /* 
rfbi_data8.dispc_data8 */
+   OMAP5_IOPAD(0x0114, PIN_OUTPUT | MUX_MODE3) /* 
rfbi_data7.dispc_data7 */
+   OMAP5_IOPAD(0x0116

[PATCH v2 5/6] ARM: dts: cm-t54: add ADS7846 touchscreen support

2014-09-17 Thread Dmitry Lifshitz
Add ADS7846 touchscreen support.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 v2:  Fixed comment style issue for mux mode.

 arch/arm/boot/dts/omap5-cm-t54.dts |   61 
 1 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index e7afeb4..de76550 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -51,6 +51,13 @@
enable-active-high;
};
 
+   ads7846reg: ads7846-reg {
+   compatible = regulator-fixed;
+   regulator-name = ads7846-reg;
+   regulator-min-microvolt = 330;
+   regulator-max-microvolt = 330;
+   };
+
/* HS USB Host PHY on PORT 2 */
hsusb2_phy: hsusb2_phy {
compatible = usb-nop-xceiv;
@@ -164,6 +171,15 @@
};
 };
 
+omap5_pmx_wkup {
+
+   ads7846_pins: pinmux_ads7846_pins {
+   pinctrl-single,pins = 
+   0x02 (PIN_INPUT_PULLDOWN | MUX_MODE6)  /* 
llib_wakereqin.gpio1_wk15 */
+   ;
+   };
+};
+
 omap5_pmx_core {
pinctrl-names = default;
pinctrl-0 = 
@@ -300,6 +316,51 @@
OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* 
gpio6_187.dispc_data23 */
;
};
+
+   mcspi2_pins: pinmux_mcspi1_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x00fc, PIN_INPUT | MUX_MODE0) /* 
mcspi2_clk */
+   OMAP5_IOPAD(0x00fe, PIN_INPUT | MUX_MODE0) /* 
mcspi2_simo */
+   OMAP5_IOPAD(0x0100, PIN_INPUT | MUX_MODE0) /* 
mcspi2_somi */
+   OMAP5_IOPAD(0x0102, PIN_INPUT | MUX_MODE0) /* 
mcspi2_cs0 */
+   ;
+   };
+};
+
+mcspi2 {
+   pinctrl-names = default;
+   pinctrl-0 = mcspi2_pins;
+
+   /* touch controller */
+   ads7846@0 {
+   pinctrl-names = default;
+   pinctrl-0 = ads7846_pins;
+
+   compatible = ti,ads7846;
+   vcc-supply = ads7846reg;
+
+   reg = 0;  /* CS0 */
+   spi-max-frequency = 150;
+
+   interrupt-parent = gpio1;
+   interrupts = 15 0;/* gpio1_wk15 */
+   pendown-gpio = gpio1 15 0;
+
+
+   ti,x-min = /bits/ 16 0x0;
+   ti,x-max = /bits/ 16 0x0fff;
+   ti,y-min = /bits/ 16 0x0;
+   ti,y-max = /bits/ 16 0x0fff;
+
+   ti,x-plate-ohms = /bits/ 16 180;
+   ti,pressure-max = /bits/ 16 255;
+
+   ti,debounce-max = /bits/ 16 30;
+   ti,debounce-tol = /bits/ 16 10;
+   ti,debounce-rep = /bits/ 16 1;
+
+   linux,wakeup;
+   };
 };
 
 mmc1 {
-- 
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 v2 6/6] ARM: dts: cm-t54: setup omap_dwc3

2014-09-17 Thread Dmitry Lifshitz
Add extcon and vbus-supply properties of DWC3 node.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 v2: No changes

 arch/arm/boot/dts/omap5-cm-t54.dts |5 +
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index de76550..f712e23 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -631,6 +631,11 @@
phys = 0 hsusb2_phy hsusb3_phy;
 };
 
+usb3 {
+   extcon = extcon_usb3;
+   vbus-supply = smps10_out1_reg;
+};
+
 cpu0 {
cpu0-supply = smps123_reg;
 };
-- 
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 v2 2/6] ARM: dts: cm-t54: fix mux mode comment style

2014-09-17 Thread Dmitry Lifshitz
Follow the comment style of mode0_name.modeX_name for pins
which mux mode differs from MUX_MODE0.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---

 v2: New patch

 arch/arm/boot/dts/omap5-cm-t54.dts |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index 429471a..44a9f23 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -127,8 +127,8 @@
 
wlan_gpios_pins: pinmux_wlan_gpios_pins {
pinctrl-single,pins = 
-   OMAP5_IOPAD(0x019c, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* 
gpio4_109 */
-   OMAP5_IOPAD(0x019e, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* 
gpio4_110 */
+   OMAP5_IOPAD(0x019c, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* 
abemcpdm_ul_data.gpio4_109 */
+   OMAP5_IOPAD(0x019e, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* 
abemcpdm_dl_data.gpio4_110 */
;
};
 
-- 
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 v2 1/6] ARM: dts: sbc-t54: fix mux mode comment style

2014-09-17 Thread Dmitry Lifshitz
Follow the comment style of mode0_name.modeX_name for pins
which mux mode differs from MUX_MODE0.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---

 v2: New patch

 arch/arm/boot/dts/omap5-sbc-t54.dts |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-sbc-t54.dts 
b/arch/arm/boot/dts/omap5-sbc-t54.dts
index 8e89793..337bbbc 100644
--- a/arch/arm/boot/dts/omap5-sbc-t54.dts
+++ b/arch/arm/boot/dts/omap5-sbc-t54.dts
@@ -19,8 +19,8 @@
 
mmc1_aux_pins: pinmux_mmc1_aux_pins {
pinctrl-single,pins = 
-   OMAP5_IOPAD(0x0174, PIN_INPUT_PULLUP | MUX_MODE6) /* 
gpio8_228 */
-   OMAP5_IOPAD(0x0176, PIN_INPUT_PULLUP | MUX_MODE6) /* 
gpio8_229 */
+   OMAP5_IOPAD(0x0174, PIN_INPUT_PULLUP | MUX_MODE6) /* 
timer5_pwm_evt.gpio8_228 */
+   OMAP5_IOPAD(0x0176, PIN_INPUT_PULLUP | MUX_MODE6) /* 
timer6_pwm_evt.gpio8_229 */
;
};
 };
-- 
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 v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0

2014-09-17 Thread Dmitry Lifshitz
Add CM-T54 DT nodes:

* enable HDMI/DVI/LCD video output support
* add ADS7846 touchscreen support
* enchance DWC3 setup to enable power supply for USB3.0 OTG port

v2: * Fixed comment style issue for mux mode.
  Follow the convention mode0_name.modeX_name for pins
  which mux mode differs from MUX_MODE0

* Moved aliases node to the top of dts file

Dmitry Lifshitz (6):
  ARM: dts: sbc-t54: fix mux mode comment style
  ARM: dts: cm-t54: fix mux mode comment style
  ARM: dts: cm-t54: add HDMI/DVI display data
  ARM: dts: cm-t54: add Startek LCD support
  ARM: dts: cm-t54: add ADS7846 touchscreen support
  ARM: dts: cm-t54: setup omap_dwc3

 arch/arm/boot/dts/omap5-cm-t54.dts  |  272 ++-
 arch/arm/boot/dts/omap5-sbc-t54.dts |4 +-
 2 files changed, 272 insertions(+), 4 deletions(-)

-- 
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 v2 4/6] ARM: dts: cm-t54: add Startek LCD support

2014-09-17 Thread Dmitry Lifshitz
Add DT support for Startek KD050C LCD 800x480 panel.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 
 v2: Rebased on top of the previous patch changes

 arch/arm/boot/dts/omap5-cm-t54.dts |   44 
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts 
b/arch/arm/boot/dts/omap5-cm-t54.dts
index d2f241d..e7afeb4 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -19,6 +19,7 @@
aliases {
display0 = hdmi0;
display1 = dvi0;
+   display2 = lcd0;
};
 
vmmcsd_fixed: fixed-regulator-mmcsd {
@@ -72,6 +73,38 @@
};
};
 
+   lcd0: display {
+compatible = startek,startek-kd050c, panel-dpi;
+label = lcd;
+
+pinctrl-names = default;
+pinctrl-0 = lcd_pins;
+
+enable-gpios = gpio8 3 GPIO_ACTIVE_HIGH;
+
+panel-timing {
+clock-frequency = 3300;
+hactive = 800;
+vactive = 480;
+hfront-porch = 40;
+hback-porch = 40;
+hsync-len = 43;
+vback-porch = 29;
+vfront-porch = 13;
+vsync-len = 3;
+hsync-active = 0;
+vsync-active = 0;
+de-active = 1;
+pixelclk-active = 1;
+};
+
+port {
+lcd_in: endpoint {
+remote-endpoint = dpi_lcd_out;
+};
+};
+};
+
hdmi0: connector@0 {
compatible = hdmi-connector;
label = hdmi;
@@ -223,6 +256,12 @@
;
};
 
+   lcd_pins: pinmux_lcd_pins {
+   pinctrl-single,pins = 
+   OMAP5_IOPAD(0x0172, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* 
timer11_pwm_evt.gpio8_227 */
+   ;
+   };
+
hdmi_conn_pins: pinmux_hdmi_conn_pins {
pinctrl-single,pins = 
OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* 
hdmi_hpd.gpio7_193 */
@@ -546,6 +585,11 @@
remote-endpoint = tfp410_in;
data-lines = 24;
};
+
+   dpi_lcd_out: endpoint@1 {
+   remote-endpoint = lcd_in;
+   data-lines = 24;
+   };
};
 };
 
-- 
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] ARM: dts: sbc-t3x: add DVI display data

2014-10-15 Thread Dmitry Lifshitz
Add DSS related pinmux and display data nodes required to support
DVI video out on SBC-T3530, SBC-T3730 and SBC-T3517.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap3-cm-t3517.dts  |   22 +++
 arch/arm/boot/dts/omap3-cm-t3530.dts  |   22 +++
 arch/arm/boot/dts/omap3-cm-t3730.dts  |   24 
 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   28 +++
 arch/arm/boot/dts/omap3-sb-t35.dtsi   |   49 +
 arch/arm/boot/dts/omap3-sbc-t3517.dts |   14 +
 arch/arm/boot/dts/omap3-sbc-t3530.dts |   14 +
 arch/arm/boot/dts/omap3-sbc-t3730.dts |   14 +
 8 files changed, 187 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3517.dts 
b/arch/arm/boot/dts/omap3-cm-t3517.dts
index d00502f..65abe17 100644
--- a/arch/arm/boot/dts/omap3-cm-t3517.dts
+++ b/arch/arm/boot/dts/omap3-cm-t3517.dts
@@ -93,6 +93,17 @@
OMAP3_CORE1_IOPAD(0x2184, PIN_OUTPUT | MUX_MODE4)   
/* mcbsp4_clkx.gpio_152 - USB HUB RST */
;
};
+
+   dss_dpi_pins_cm_t3517: pinmux_dss_dpi_pins_cm_t3517 {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)   
/* dss_data0.dss_data0 */
+   OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)   
/* dss_data1.dss_data1 */
+   OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)   
/* dss_data2.dss_data2 */
+   OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)   
/* dss_data3.dss_data3 */
+   OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)   
/* dss_data4.dss_data4 */
+   OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)   
/* dss_data5.dss_data5 */
+   ;
+   };
 };
 
 hsusb1_phy {
@@ -134,3 +145,14 @@
bus-width = 4;
cap-power-off-card;
 };
+
+dss {
+   status = ok;
+
+   pinctrl-names = default;
+   pinctrl-0 = 
+   dss_dpi_pins_common
+   dss_dpi_pins_cm_t3517
+   ;
+};
+
diff --git a/arch/arm/boot/dts/omap3-cm-t3530.dts 
b/arch/arm/boot/dts/omap3-cm-t3530.dts
index d145849..c1465a4 100644
--- a/arch/arm/boot/dts/omap3-cm-t3530.dts
+++ b/arch/arm/boot/dts/omap3-cm-t3530.dts
@@ -36,6 +36,17 @@
OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE1)
/* sdmmc2_dat7.sdmmc2_clkin */
;
};
+
+   dss_dpi_pins_cm_t3530: pinmux_dss_dpi_pins_cm_t3530 {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)   
/* dss_data0.dss_data0 */
+   OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)   
/* dss_data1.dss_data1 */
+   OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)   
/* dss_data2.dss_data2 */
+   OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)   
/* dss_data3.dss_data3 */
+   OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)   
/* dss_data4.dss_data4 */
+   OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)   
/* dss_data5.dss_data5 */
+   ;
+   };
 };
 
 mmc2 {
@@ -46,3 +57,14 @@
bus-width = 4;
cap-power-off-card;
 };
+
+dss {
+   status = ok;
+
+   pinctrl-names = default;
+   pinctrl-0 = 
+   dss_dpi_pins_common
+   dss_dpi_pins_cm_t3530
+   ;
+};
+
diff --git a/arch/arm/boot/dts/omap3-cm-t3730.dts 
b/arch/arm/boot/dts/omap3-cm-t3730.dts
index b3f9a50..4b36d80 100644
--- a/arch/arm/boot/dts/omap3-cm-t3730.dts
+++ b/arch/arm/boot/dts/omap3-cm-t3730.dts
@@ -31,6 +31,19 @@
};
 };
 
+omap3_pmx_wkup {
+   dss_dpi_pins_cm_t3730: pinmux_dss_dpi_pins_cm_t3730 {
+   pinctrl-single,pins = 
+   0x0a (PIN_OUTPUT | MUX_MODE3)   /* sys_boot0.dss_data18 
*/
+   0x0c (PIN_OUTPUT | MUX_MODE3)   /* sys_boot1.dss_data19 
*/
+   0x10 (PIN_OUTPUT | MUX_MODE3)   /* sys_boot3.dss_data20 
*/
+   0x12 (PIN_OUTPUT | MUX_MODE3)   /* sys_boot4.dss_data21 
*/
+   0x14 (PIN_OUTPUT | MUX_MODE3)   /* sys_boot5.dss_data22 
*/
+   0x16 (PIN_OUTPUT | MUX_MODE3)   /* sys_boot6.dss_data23 
*/
+   ;
+   };
+};
+
 omap3_pmx_core {
 
mmc2_pins: pinmux_mmc2_pins {
@@ -61,3 +74,14 @@
bus-width = 4;
cap-power-off-card;
 };
+
+dss {
+   status = ok;
+
+   pinctrl-names = default;
+   pinctrl-0 = 
+   dss_dpi_pins_common
+   dss_dpi_pins_cm_t3730
+   ;
+};
+
diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index c671a22..6b6c2f4 100644

[PATCH v2] ARM: dts: sbc-t3x: add DVI display data

2014-11-02 Thread Dmitry Lifshitz
Add DSS related pinmux and display data nodes required to support
DVI video out on SBC-T3530, SBC-T3730 and SBC-T3517.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
v2:  * Make use of OMAP3_WKUP_IOPAD() macro
 * Move common DSS pinmux of CM-T3517 and CM-T3530
   into omap3-cm-t3x.dtsi.

 arch/arm/boot/dts/omap3-cm-t3517.dts  |   11 +++
 arch/arm/boot/dts/omap3-cm-t3530.dts  |   11 +++
 arch/arm/boot/dts/omap3-cm-t3730.dts  |   24 
 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   39 ++
 arch/arm/boot/dts/omap3-sb-t35.dtsi   |   49 +
 arch/arm/boot/dts/omap3-sbc-t3517.dts |   14 +
 arch/arm/boot/dts/omap3-sbc-t3530.dts |   14 +
 arch/arm/boot/dts/omap3-sbc-t3730.dts |   14 +
 8 files changed, 176 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3517.dts 
b/arch/arm/boot/dts/omap3-cm-t3517.dts
index d00502f..0ab748c 100644
--- a/arch/arm/boot/dts/omap3-cm-t3517.dts
+++ b/arch/arm/boot/dts/omap3-cm-t3517.dts
@@ -134,3 +134,14 @@
bus-width = 4;
cap-power-off-card;
 };
+
+dss {
+   status = ok;
+
+   pinctrl-names = default;
+   pinctrl-0 = 
+   dss_dpi_pins_common
+   dss_dpi_pins_cm_t35x
+   ;
+};
+
diff --git a/arch/arm/boot/dts/omap3-cm-t3530.dts 
b/arch/arm/boot/dts/omap3-cm-t3530.dts
index d145849..8dd14fc 100644
--- a/arch/arm/boot/dts/omap3-cm-t3530.dts
+++ b/arch/arm/boot/dts/omap3-cm-t3530.dts
@@ -46,3 +46,14 @@
bus-width = 4;
cap-power-off-card;
 };
+
+dss {
+   status = ok;
+
+   pinctrl-names = default;
+   pinctrl-0 = 
+   dss_dpi_pins_common
+   dss_dpi_pins_cm_t35x
+   ;
+};
+
diff --git a/arch/arm/boot/dts/omap3-cm-t3730.dts 
b/arch/arm/boot/dts/omap3-cm-t3730.dts
index b3f9a50..46eadb2 100644
--- a/arch/arm/boot/dts/omap3-cm-t3730.dts
+++ b/arch/arm/boot/dts/omap3-cm-t3730.dts
@@ -31,6 +31,19 @@
};
 };
 
+omap3_pmx_wkup {
+   dss_dpi_pins_cm_t3730: pinmux_dss_dpi_pins_cm_t3730 {
+   pinctrl-single,pins = 
+   OMAP3_WKUP_IOPAD(0x2a08, PIN_OUTPUT | MUX_MODE3)   /* 
sys_boot0.dss_data18 */
+   OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE3)   /* 
sys_boot1.dss_data19 */
+   OMAP3_WKUP_IOPAD(0x2a10, PIN_OUTPUT | MUX_MODE3)   /* 
sys_boot3.dss_data20 */
+   OMAP3_WKUP_IOPAD(0x2a12, PIN_OUTPUT | MUX_MODE3)   /* 
sys_boot4.dss_data21 */
+   OMAP3_WKUP_IOPAD(0x2a14, PIN_OUTPUT | MUX_MODE3)   /* 
sys_boot5.dss_data22 */
+   OMAP3_WKUP_IOPAD(0x2a16, PIN_OUTPUT | MUX_MODE3)   /* 
sys_boot6.dss_data23 */
+   ;
+   };
+};
+
 omap3_pmx_core {
 
mmc2_pins: pinmux_mmc2_pins {
@@ -61,3 +74,14 @@
bus-width = 4;
cap-power-off-card;
 };
+
+dss {
+   status = ok;
+
+   pinctrl-names = default;
+   pinctrl-0 = 
+   dss_dpi_pins_common
+   dss_dpi_pins_cm_t3730
+   ;
+};
+
diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index c671a22..b074673 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -76,6 +76,45 @@
OMAP3_CORE1_IOPAD(0x21e2, PIN_OUTPUT | MUX_MODE4)   
/* sys_clkout2.gpio_186 */
;
};
+
+   dss_dpi_pins_common: pinmux_dss_dpi_pins_common {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)   
/* dss_pclk.dss_pclk */
+   OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)   
/* dss_hsync.dss_hsync */
+   OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)   
/* dss_vsync.dss_vsync */
+   OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)   
/* dss_acbias.dss_acbias */
+
+   OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)   
/* dss_data6.dss_data6 */
+   OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)   
/* dss_data7.dss_data7 */
+   OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)   
/* dss_data8.dss_data8 */
+   OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)   
/* dss_data9.dss_data9 */
+   OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)   
/* dss_data10.dss_data10 */
+   OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)   
/* dss_data11.dss_data11 */
+   OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)   
/* dss_data12.dss_data12 */
+   OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)   
/* dss_data13.dss_data13 */
+   OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)   
/* dss_data14.dss_data14 */
+   OMAP3_CORE1_IOPAD(0x20fa

[PATCH 2/9] ARM: dts: cm-t3x: add ADS7846 touchscreen support

2014-11-18 Thread Dmitry Lifshitz
Add ADS7846 touchscreen support.

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

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index e4c0c56..3636fed 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -49,6 +49,13 @@
compatible = usb-nop-xceiv;
vcc-supply = hsusb2_power;
};
+
+   ads7846reg: ads7846-reg {
+   compatible = regulator-fixed;
+   regulator-name = ads7846-reg;
+   regulator-min-microvolt = 330;
+   regulator-max-microvolt = 330;
+   };
 };
 
 omap3_pmx_core {
@@ -115,6 +122,21 @@
OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)   
/* dss_data5.dss_data5 */
;
};
+
+   ads7846_pins: pinmux_ads7846_pins {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x20ba, PIN_INPUT_PULLUP | MUX_MODE4) 
/* gpmc_ncs6.gpio_57 */
+   ;
+   };
+
+   mcspi1_pins: pinmux_mcspi1_pins {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0)
/* mcspi1_clk */
+   OMAP3_CORE1_IOPAD(0x21ca, PIN_INPUT | MUX_MODE0)
/* mcspi1_simo */
+   OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT | MUX_MODE0)
/* mcspi1_somi */
+   OMAP3_CORE1_IOPAD(0x21ce, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* mcspi1_cs0 */
+   ;
+   };
 };
 
 uart3 {
@@ -147,3 +169,38 @@
 usbhsehci {
phys = hsusb1_phy hsusb2_phy;
 };
+
+mcspi1 {
+   pinctrl-names = default;
+   pinctrl-0 = mcspi1_pins;
+
+   /* touch controller */
+   ads7846@0 {
+   pinctrl-names = default;
+   pinctrl-0 = ads7846_pins;
+
+   compatible = ti,ads7846;
+   vcc-supply = ads7846reg;
+
+   reg = 0;  /* CS0 */
+   spi-max-frequency = 150;
+
+   interrupt-parent = gpio2;
+   interrupts = 25 0;/* gpio_57 */
+   pendown-gpio = gpio2 25 0;
+
+   ti,x-min = /bits/ 16 0x0;
+   ti,x-max = /bits/ 16 0x0fff;
+   ti,y-min = /bits/ 16 0x0;
+   ti,y-max = /bits/ 16 0x0fff;
+
+   ti,x-plate-ohms = /bits/ 16 180;
+   ti,pressure-max = /bits/ 16 255;
+
+   ti,debounce-max = /bits/ 16 30;
+   ti,debounce-tol = /bits/ 16 10;
+   ti,debounce-rep = /bits/ 16 1;
+
+   linux,wakeup;
+   };
+};
-- 
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 1/9] ARM: dts: cm-t3x: cleanup comments indentation

2014-11-18 Thread Dmitry Lifshitz
Fix comment style

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap3-cm-t3x.dtsi |   12 ++--
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index b074673..e4c0c56 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -107,12 +107,12 @@
 
dss_dpi_pins_cm_t35x: pinmux_dss_dpi_pins_cm_t35x {
pinctrl-single,pins = 
-   OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)   
/* dss_data0.dss_data0 */
-   OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)   
/* dss_data1.dss_data1 */
-   OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)   
/* dss_data2.dss_data2 */
-   OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)   
/* dss_data3.dss_data3 */
-   OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)   
/* dss_data4.dss_data4 */
-   OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)   
/* dss_data5.dss_data5 */
+   OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)   
/* dss_data0.dss_data0 */
+   OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)   
/* dss_data1.dss_data1 */
+   OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)   
/* dss_data2.dss_data2 */
+   OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)   
/* dss_data3.dss_data3 */
+   OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)   
/* dss_data4.dss_data4 */
+   OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)   
/* dss_data5.dss_data5 */
;
};
 };
-- 
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 7/9] ARM: dts: sbc-t3x: add TV out display alias

2014-11-18 Thread Dmitry Lifshitz
Add display alias for TV out.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap3-sbc-t3517.dts |1 +
 arch/arm/boot/dts/omap3-sbc-t3530.dts |1 +
 arch/arm/boot/dts/omap3-sbc-t3730.dts |1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-sbc-t3517.dts 
b/arch/arm/boot/dts/omap3-sbc-t3517.dts
index 4ec5d86..1798653 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3517.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3517.dts
@@ -11,6 +11,7 @@
 
aliases {
display0 = dvi0;
+   display1 = tv0;
};
 
/* Only one GPMC smsc9220 on SBC-T3517, CM-T3517 uses am35x Ethernet */
diff --git a/arch/arm/boot/dts/omap3-sbc-t3530.dts 
b/arch/arm/boot/dts/omap3-sbc-t3530.dts
index 8dfc1df..c994f0f 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3530.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3530.dts
@@ -11,6 +11,7 @@
 
aliases {
display0 = dvi0;
+   display1 = tv0;
};
 };
 
diff --git a/arch/arm/boot/dts/omap3-sbc-t3730.dts 
b/arch/arm/boot/dts/omap3-sbc-t3730.dts
index 6b69864..5bdddf2 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3730.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3730.dts
@@ -11,6 +11,7 @@
 
aliases {
display0 = dvi0;
+   display1 = tv0;
};
 };
 
-- 
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 4/9] ARM: dts: cm-t3x: add EEPROM support

2014-11-18 Thread Dmitry Lifshitz
Add at24 EEPROM chip support.

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

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index 3636fed..58205f0 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -155,12 +155,22 @@
 };
 
 i2c1 {
+   pinctrl-names = default;
+   pinctrl-0 = i2c1_pins;
+
clock-frequency = 40;
+
+   at24@50 {
+   compatible = at24,24c02;
+   pagesize = 16;
+   reg = 0x50;
+   };
 };
 
 i2c3 {
clock-frequency = 40;
 };
+
 usbhshost {
port1-mode = ehci-phy;
port2-mode = ehci-phy;
-- 
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 5/9] ARM: dts: sb-t35: add EEPROM support

2014-11-18 Thread Dmitry Lifshitz
Add at24 EEPROM chip support.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap3-sb-t35.dtsi |   20 
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-sb-t35.dtsi 
b/arch/arm/boot/dts/omap3-sb-t35.dtsi
index b1cb577..aff733e 100644
--- a/arch/arm/boot/dts/omap3-sb-t35.dtsi
+++ b/arch/arm/boot/dts/omap3-sb-t35.dtsi
@@ -58,6 +58,26 @@
OMAP3_CORE1_IOPAD(0x20b4, PIN_OUTPUT | MUX_MODE4)   
/* gpmc_ncs3.gpio_54 */
;
};
+
+   i2c3_pins: pinmux_i2c3_pins {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c3_scl */
+   OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c3_sda */
+   ;
+   };
+};
+
+i2c3 {
+   pinctrl-names = default;
+   pinctrl-0 = i2c3_pins;
+
+   clock-frequency = 40;
+
+   at24@50 {
+   compatible = at24,24c02;
+   pagesize = 16;
+   reg = 0x50;
+   };
 };
 
 gpmc {
-- 
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 9/9] ARM: dts: cm-t3x30: add keypad support

2014-11-18 Thread Dmitry Lifshitz
Add twl4030 matrtix keypad support.

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

diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index bcd896f..3a91204 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -78,6 +78,7 @@
 
 #include twl4030.dtsi
 #include twl4030_omap3.dtsi
+#include dt-bindings/input/input.h
 
 mmc1 {
vmmc-supply = vmmc1;
@@ -89,6 +90,22 @@
ti,pullups = 0x01;
 };
 
+twl_keypad {
+   linux,keymap = 
+   MATRIX_KEY(0x00, 0x01, KEY_A)
+   MATRIX_KEY(0x00, 0x02, KEY_B)
+   MATRIX_KEY(0x00, 0x03, KEY_LEFT)
+
+   MATRIX_KEY(0x01, 0x01, KEY_UP)
+   MATRIX_KEY(0x01, 0x02, KEY_ENTER)
+   MATRIX_KEY(0x01, 0x03, KEY_DOWN)
+
+   MATRIX_KEY(0x02, 0x01, KEY_RIGHT)
+   MATRIX_KEY(0x02, 0x02, KEY_C)
+   MATRIX_KEY(0x02, 0x03, KEY_D)
+   ;
+};
+
 hsusb1_phy {
reset-gpios = twl_gpio 6 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 8/9] ARM: dts: sbc-t3x30: add audio support

2014-11-18 Thread Dmitry Lifshitz
Add audio related DT nodes

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   16 
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |   14 ++
 arch/arm/boot/dts/omap3-sb-t35.dtsi   |   16 
 3 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 1a8262c..7e510e0 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -148,6 +148,15 @@
OMAP3_CORE1_IOPAD(0x21ce, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* mcspi1_cs0 */
;
};
+
+   mcbsp2_pins: pinmux_mcbsp2_pins {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)
/* mcbsp2_fsx */
+   OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)
/* mcbsp2_clkx */
+   OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)
/* mcbsp2_dr */
+   OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)   
/* mcbsp2_dx */
+   ;
+   };
 };
 
 uart3 {
@@ -238,3 +247,10 @@
};
};
 };
+
+mcbsp2 {
+   status = ok;
+
+   pinctrl-names = default;
+   pinctrl-0 = mcbsp2_pins;
+};
diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index 25ba083..bcd896f 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -10,6 +10,14 @@
cpu0-supply = vcc;
};
};
+
+   sound {
+   compatible = ti,omap-twl4030;
+   ti,model = cm-t35;
+
+   ti,mcbsp = mcbsp2;
+   ti,codec = twl_audio;
+   };
 };
 
 omap3_pmx_core {
@@ -59,6 +67,12 @@
reg = 0x48;
interrupts = 7; /* SYS_NIRQ cascaded to intc */
interrupt-parent = intc;
+
+   twl_audio: audio {
+   compatible = ti,twl4030-audio;
+   codec {
+   };
+   };
};
 };
 
diff --git a/arch/arm/boot/dts/omap3-sb-t35.dtsi 
b/arch/arm/boot/dts/omap3-sb-t35.dtsi
index aff733e..827f614 100644
--- a/arch/arm/boot/dts/omap3-sb-t35.dtsi
+++ b/arch/arm/boot/dts/omap3-sb-t35.dtsi
@@ -43,6 +43,16 @@
};
};
};
+
+   audio_amp: audio_amp {
+   compatible = regulator-fixed;
+   regulator-name = audio_amp;
+   pinctrl-names = default;
+   pinctrl-0 = sb_t35_audio_amp;
+   gpio = gpio2 29 GPIO_ACTIVE_LOW;   /* gpio_61 */
+   enable-active-low;
+   regulator-always-on;
+   };
 };
 
 omap3_pmx_core {
@@ -65,6 +75,12 @@
OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c3_sda */
;
};
+
+   sb_t35_audio_amp: pinmux_sb_t35_audio_amp {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x20c8, PIN_OUTPUT | MUX_MODE4) /* 
gpmc_nbe1.gpio_61 */
+   ;
+   };
 };
 
 i2c3 {
-- 
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 0/9] ARM: dts: sbc-t3x: add more features support

2014-11-18 Thread Dmitry Lifshitz
Add support for more SBC-T3x single board computers features:

* CM-T3x CoM and SB-T35 baseboard EEPROMs
* TV out
* Touchscreen
* CM-T3x30 audio
* CM-T3x30 keypad

Dmitry Lifshitz (9):
  ARM: dts: cm-t3x: cleanup comments indentation
  ARM: dts: cm-t3x: add ADS7846 touchscreen support
  ARM: OMAP2+: remove cm-t3x touchscreen pdata quirk
  ARM: dts: cm-t3x: add EEPROM support
  ARM: dts: sb-t35: add EEPROM support
  ARM: dts: cm-t3x: add TV out support
  ARM: dts: sbc-t3x: add TV out display alias
  ARM: dts: sbc-t3x30: add audio support
  ARM: dts: cm-t3x30: add keypad support

 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |  119 +++--
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |   31 +
 arch/arm/boot/dts/omap3-sb-t35.dtsi   |   36 ++
 arch/arm/boot/dts/omap3-sbc-t3517.dts |1 +
 arch/arm/boot/dts/omap3-sbc-t3530.dts |1 +
 arch/arm/boot/dts/omap3-sbc-t3730.dts |1 +
 arch/arm/mach-omap2/pdata-quirks.c|3 -
 7 files changed, 183 insertions(+), 9 deletions(-)

-- 
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 6/9] ARM: dts: cm-t3x: add TV out support

2014-11-18 Thread Dmitry Lifshitz
Add TV out support.

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

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index 58205f0..1a8262c 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -56,6 +56,17 @@
regulator-min-microvolt = 330;
regulator-max-microvolt = 330;
};
+
+   tv0: connector@1 {
+   compatible = svideo-connector;
+   label = tv;
+
+   port {
+   tv_connector_in: endpoint {
+   remote-endpoint = venc_out;
+   };
+   };
+   };
 };
 
 omap3_pmx_core {
@@ -214,3 +225,16 @@
linux,wakeup;
};
 };
+
+venc {
+   status = ok;
+
+   vdda-supply = vdac;
+
+   port {
+   venc_out: endpoint {
+   remote-endpoint = tv_connector_in;
+   ti,channels = 2;
+   };
+   };
+};
-- 
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 3/9] ARM: OMAP2+: remove cm-t3x touchscreen pdata quirk

2014-11-18 Thread Dmitry Lifshitz
Remove ADS7846 touchscreen pdata quirk for CM-T3x CoMs

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/mach-omap2/pdata-quirks.c |3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/pdata-quirks.c 
b/arch/arm/mach-omap2/pdata-quirks.c
index e72f0fc..02080c0 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -131,13 +131,11 @@ 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);
 }
 
 struct ti_st_plat_data wilink_pdata = {
@@ -249,7 +247,6 @@ static void __init omap3_sbc_t3517_legacy_init(void)
hsmmc2_internal_input_clk();
omap3_sbc_t3517_wifi_init();
legacy_init_wl12xx(WL12XX_REFCLOCK_38, 0, 145);
-   omap_ads7846_init(1, 57, 0, NULL);
 }
 
 static void __init am3517_evm_legacy_init(void)
-- 
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 3/4] ARM: dts: sbc-t3x: add TV out display alias

2014-11-23 Thread Dmitry Lifshitz
Add display alias for TV out.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap3-sbc-t3517.dts |1 +
 arch/arm/boot/dts/omap3-sbc-t3530.dts |1 +
 arch/arm/boot/dts/omap3-sbc-t3730.dts |1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-sbc-t3517.dts 
b/arch/arm/boot/dts/omap3-sbc-t3517.dts
index 4ec5d86..1798653 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3517.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3517.dts
@@ -11,6 +11,7 @@
 
aliases {
display0 = dvi0;
+   display1 = tv0;
};
 
/* Only one GPMC smsc9220 on SBC-T3517, CM-T3517 uses am35x Ethernet */
diff --git a/arch/arm/boot/dts/omap3-sbc-t3530.dts 
b/arch/arm/boot/dts/omap3-sbc-t3530.dts
index 8dfc1df..c994f0f 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3530.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3530.dts
@@ -11,6 +11,7 @@
 
aliases {
display0 = dvi0;
+   display1 = tv0;
};
 };
 
diff --git a/arch/arm/boot/dts/omap3-sbc-t3730.dts 
b/arch/arm/boot/dts/omap3-sbc-t3730.dts
index 6b69864..5bdddf2 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3730.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3730.dts
@@ -11,6 +11,7 @@
 
aliases {
display0 = dvi0;
+   display1 = tv0;
};
 };
 
-- 
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 0/4] ARM: dts: sbc-t3x: add audio and TV out support

2014-11-23 Thread Dmitry Lifshitz
Add support for more SBC-T3x single board computers features:

* Audio on CM-T3x30
* TV out on CM-T3x

This patch set adds missing I2C1 pinmux required for CM-T3x EEPROM and 
CM-T3x30 audio support.

Dmitry Lifshitz (4):
  ARM: dts: cm-t3x: add I2C1 pinmux
  ARM: dts: cm-t3x: add TV out support
  ARM: dts: sbc-t3x: add TV out display alias
  ARM: dts: sbc-t3x30: add audio support

 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   48 +
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |   18 
 arch/arm/boot/dts/omap3-sb-t35.dtsi   |   16 +++
 arch/arm/boot/dts/omap3-sbc-t3517.dts |1 +
 arch/arm/boot/dts/omap3-sbc-t3530.dts |1 +
 arch/arm/boot/dts/omap3-sbc-t3730.dts |1 +
 6 files changed, 85 insertions(+), 0 deletions(-)

-- 
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 2/4] ARM: dts: cm-t3x: add TV out support

2014-11-23 Thread Dmitry Lifshitz
Add TV out support.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   22 ++
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |4 
 2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index 620a3f4..63bea24 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -56,6 +56,17 @@
regulator-min-microvolt = 330;
regulator-max-microvolt = 330;
};
+
+   tv0: connector@1 {
+   compatible = svideo-connector;
+   label = tv;
+
+   port {
+   tv_connector_in: endpoint {
+   remote-endpoint = venc_out;
+   };
+   };
+   };
 };
 
 omap3_pmx_core {
@@ -221,3 +232,14 @@
linux,wakeup;
};
 };
+
+venc {
+   status = ok;
+
+   port {
+   venc_out: endpoint {
+   remote-endpoint = tv_connector_in;
+   ti,channels = 2;
+   };
+   };
+};
diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index 3cbaf98..9cc7185 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -66,6 +66,10 @@
 #include twl4030_omap3.dtsi
 #include dt-bindings/input/input.h
 
+venc {
+   vdda-supply = vdac;
+};
+
 mmc1 {
vmmc-supply = vmmc1;
 };
-- 
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 4/4] ARM: dts: sbc-t3x30: add audio support

2014-11-23 Thread Dmitry Lifshitz
Add audio related DT nodes

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   16 
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |   14 ++
 arch/arm/boot/dts/omap3-sb-t35.dtsi   |   16 
 3 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 63bea24..6ea6d46 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -155,6 +155,15 @@
OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c1_sda */
;
};
+
+   mcbsp2_pins: pinmux_mcbsp2_pins {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0)
/* mcbsp2_fsx */
+   OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0)
/* mcbsp2_clkx */
+   OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0)
/* mcbsp2_dr */
+   OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0)   
/* mcbsp2_dx */
+   ;
+   };
 };
 
 uart3 {
@@ -243,3 +252,10 @@
};
};
 };
+
+mcbsp2 {
+   status = ok;
+
+   pinctrl-names = default;
+   pinctrl-0 = mcbsp2_pins;
+};
diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index 9cc7185..9a4a3ab 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -10,6 +10,14 @@
cpu0-supply = vcc;
};
};
+
+   sound {
+   compatible = ti,omap-twl4030;
+   ti,model = cm-t35;
+
+   ti,mcbsp = mcbsp2;
+   ti,codec = twl_audio;
+   };
 };
 
 omap3_pmx_core {
@@ -59,6 +67,12 @@
reg = 0x48;
interrupts = 7; /* SYS_NIRQ cascaded to intc */
interrupt-parent = intc;
+
+   twl_audio: audio {
+   compatible = ti,twl4030-audio;
+   codec {
+   };
+   };
};
 };
 
diff --git a/arch/arm/boot/dts/omap3-sb-t35.dtsi 
b/arch/arm/boot/dts/omap3-sb-t35.dtsi
index aff733e..827f614 100644
--- a/arch/arm/boot/dts/omap3-sb-t35.dtsi
+++ b/arch/arm/boot/dts/omap3-sb-t35.dtsi
@@ -43,6 +43,16 @@
};
};
};
+
+   audio_amp: audio_amp {
+   compatible = regulator-fixed;
+   regulator-name = audio_amp;
+   pinctrl-names = default;
+   pinctrl-0 = sb_t35_audio_amp;
+   gpio = gpio2 29 GPIO_ACTIVE_LOW;   /* gpio_61 */
+   enable-active-low;
+   regulator-always-on;
+   };
 };
 
 omap3_pmx_core {
@@ -65,6 +75,12 @@
OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c3_sda */
;
};
+
+   sb_t35_audio_amp: pinmux_sb_t35_audio_amp {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x20c8, PIN_OUTPUT | MUX_MODE4) /* 
gpmc_nbe1.gpio_61 */
+   ;
+   };
 };
 
 i2c3 {
-- 
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 1/4] ARM: dts: cm-t3x: add I2C1 pinmux

2014-11-23 Thread Dmitry Lifshitz
Add missing I2C1 pinmux setup.

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

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index 3a98ce1..620a3f4 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -137,6 +137,13 @@
OMAP3_CORE1_IOPAD(0x21ce, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* mcspi1_cs0 */
;
};
+
+   i2c1_pins: pinmux_i2c1_pins {
+   pinctrl-single,pins = 
+   OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c1_scl */
+   OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c1_sda */
+   ;
+   };
 };
 
 uart3 {
@@ -155,6 +162,9 @@
 };
 
 i2c1 {
+   pinctrl-names = default;
+   pinctrl-0 = i2c1_pins;
+
clock-frequency = 40;
 
at24@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] ARM: dts: cm-t3x: add NAND support

2014-12-28 Thread Dmitry Lifshitz
Add NAND support

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---
 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   58 +
 arch/arm/boot/dts/omap3-sbc-t3517.dts |4 ++
 arch/arm/boot/dts/omap3-sbc-t3530.dts |   10 ++
 arch/arm/boot/dts/omap3-sbc-t3730.dts |5 ++-
 4 files changed, 68 insertions(+), 9 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index 6ea6d46..4d091ca 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -259,3 +259,61 @@
pinctrl-names = default;
pinctrl-0 = mcbsp2_pins;
 };
+
+gpmc {
+   ranges = 0 0 0x 0x0100;
+
+   nand@0,0 {
+   reg = 0 0 4;  /* CS0, offset 0, IO size 4 */
+   nand-bus-width = 8;
+   gpmc,device-width = 1;
+   ti,nand-ecc-opt = sw;
+
+   gpmc,cs-on-ns = 0;
+   gpmc,cs-rd-off-ns = 120;
+   gpmc,cs-wr-off-ns = 120;
+
+   gpmc,adv-on-ns = 0;
+   gpmc,adv-rd-off-ns = 120;
+   gpmc,adv-wr-off-ns = 120;
+
+   gpmc,we-on-ns = 6;
+   gpmc,we-off-ns = 90;
+
+   gpmc,oe-on-ns = 6;
+   gpmc,oe-off-ns = 90;
+
+   gpmc,page-burst-access-ns = 6;
+   gpmc,access-ns = 72;
+   gpmc,cycle2cycle-delay-ns = 60;
+
+   gpmc,rd-cycle-ns = 120;
+   gpmc,wr-cycle-ns = 120;
+   gpmc,wr-access-ns = 186;
+   gpmc,wr-data-mux-bus-ns = 90;
+
+   #address-cells = 1;
+   #size-cells = 1;
+
+   partition@0 {
+   label = xloader;
+   reg = 0 0x8;
+   };
+   partition@0x8 {
+   label = uboot;
+   reg = 0x8 0x1e;
+   };
+   partition@0x26 {
+   label = uboot environment;
+   reg = 0x26 0x4;
+   };
+   partition@0x2a {
+   label = linux;
+   reg = 0x2a 0x40;
+   };
+   partition@0x6a {
+   label = rootfs;
+   reg = 0x6a 0x1f88;
+   };
+   };
+};
diff --git a/arch/arm/boot/dts/omap3-sbc-t3517.dts 
b/arch/arm/boot/dts/omap3-sbc-t3517.dts
index 1798653..c2d5c28 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3517.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3517.dts
@@ -69,3 +69,7 @@
};
 };
 
+gpmc {
+   ranges = 4 0 0x2d00 0x0100,   /* SB-T35 SMSC9x Eth */
+0 0 0x 0x0100;   /* CM-T3x NAND */
+};
diff --git a/arch/arm/boot/dts/omap3-sbc-t3530.dts 
b/arch/arm/boot/dts/omap3-sbc-t3530.dts
index c994f0f..834bc78 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3530.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3530.dts
@@ -26,14 +26,10 @@
};
 };
 
-/*
- * 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;
+   ranges = 5 0 0x2c00 0x0100,   /* CM-T3x30 SMSC9x Eth */
+4 0 0x2d00 0x0100,   /* SB-T35 SMSC9x Eth */
+0 0 0x 0x0100;   /* CM-T3x NAND */
 };
 
 mmc1 {
diff --git a/arch/arm/boot/dts/omap3-sbc-t3730.dts 
b/arch/arm/boot/dts/omap3-sbc-t3730.dts
index 5bdddf2..73c7bf4 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3730.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3730.dts
@@ -27,8 +27,9 @@
 };
 
 gpmc {
-   ranges = 5 0 0x2c00 0x0100,
-4 0 0x2d00 0x0100;
+   ranges = 5 0 0x2c00 0x0100,   /* CM-T3x30 SMSC9x Eth */
+4 0 0x2d00 0x0100,   /* SB-T35 SMSC9x Eth */
+0 0 0x 0x0100;   /* CM-T3x NAND */
 };
 
 dss {
-- 
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 v2] ARM: dts: cm-t3x: add NAND support

2014-12-28 Thread Dmitry Lifshitz
CM-T3517, CM-T3530 and CM-T3730 features NAND storage chip connected to
GPMC bus.

Add GPMC DT entry into the root DT file omap3-cm-t3x.dtsi, common for
all three modules.

NAND timings are calculated to be safe for CM-T3x devices as it works
now in non DT boot (in this case the timings are updated by U-Boot).

Update GPMC ranges in boards DT files to include all connected devices.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---

v2 * Update GPMC ranges with NAND values in omap3-cm-t3x30.dtsi. 
   * Add commit message details

 arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   58 +
 arch/arm/boot/dts/omap3-cm-t3x30.dtsi |3 +-
 arch/arm/boot/dts/omap3-sbc-t3517.dts |4 ++
 arch/arm/boot/dts/omap3-sbc-t3530.dts |   10 ++
 arch/arm/boot/dts/omap3-sbc-t3730.dts |5 ++-
 5 files changed, 70 insertions(+), 10 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index 6ea6d46..4d091ca 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -259,3 +259,61 @@
pinctrl-names = default;
pinctrl-0 = mcbsp2_pins;
 };
+
+gpmc {
+   ranges = 0 0 0x 0x0100;
+
+   nand@0,0 {
+   reg = 0 0 4;  /* CS0, offset 0, IO size 4 */
+   nand-bus-width = 8;
+   gpmc,device-width = 1;
+   ti,nand-ecc-opt = sw;
+
+   gpmc,cs-on-ns = 0;
+   gpmc,cs-rd-off-ns = 120;
+   gpmc,cs-wr-off-ns = 120;
+
+   gpmc,adv-on-ns = 0;
+   gpmc,adv-rd-off-ns = 120;
+   gpmc,adv-wr-off-ns = 120;
+
+   gpmc,we-on-ns = 6;
+   gpmc,we-off-ns = 90;
+
+   gpmc,oe-on-ns = 6;
+   gpmc,oe-off-ns = 90;
+
+   gpmc,page-burst-access-ns = 6;
+   gpmc,access-ns = 72;
+   gpmc,cycle2cycle-delay-ns = 60;
+
+   gpmc,rd-cycle-ns = 120;
+   gpmc,wr-cycle-ns = 120;
+   gpmc,wr-access-ns = 186;
+   gpmc,wr-data-mux-bus-ns = 90;
+
+   #address-cells = 1;
+   #size-cells = 1;
+
+   partition@0 {
+   label = xloader;
+   reg = 0 0x8;
+   };
+   partition@0x8 {
+   label = uboot;
+   reg = 0x8 0x1e;
+   };
+   partition@0x26 {
+   label = uboot environment;
+   reg = 0x26 0x4;
+   };
+   partition@0x2a {
+   label = linux;
+   reg = 0x2a 0x40;
+   };
+   partition@0x6a {
+   label = rootfs;
+   reg = 0x6a 0x1f88;
+   };
+   };
+};
diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index 9a4a3ab..d9e92b6 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -50,7 +50,8 @@
 #include omap-gpmc-smsc911x.dtsi
 
 gpmc {
-   ranges = 5 0 0x2c00 0x0100;
+   ranges = 5 0 0x2c00 0x0100, /* CM-T3x30 SMSC9x Eth */
+0 0 0x 0x0100; /* CM-T3x NAND */
 
smsc1: ethernet@gpmc {
compatible = smsc,lan9221, smsc,lan9115;
diff --git a/arch/arm/boot/dts/omap3-sbc-t3517.dts 
b/arch/arm/boot/dts/omap3-sbc-t3517.dts
index 1798653..c2d5c28 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3517.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3517.dts
@@ -69,3 +69,7 @@
};
 };
 
+gpmc {
+   ranges = 4 0 0x2d00 0x0100,   /* SB-T35 SMSC9x Eth */
+0 0 0x 0x0100;   /* CM-T3x NAND */
+};
diff --git a/arch/arm/boot/dts/omap3-sbc-t3530.dts 
b/arch/arm/boot/dts/omap3-sbc-t3530.dts
index c994f0f..834bc78 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3530.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3530.dts
@@ -26,14 +26,10 @@
};
 };
 
-/*
- * 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;
+   ranges = 5 0 0x2c00 0x0100,   /* CM-T3x30 SMSC9x Eth */
+4 0 0x2d00 0x0100,   /* SB-T35 SMSC9x Eth */
+0 0 0x 0x0100;   /* CM-T3x NAND */
 };
 
 mmc1 {
diff --git a/arch/arm/boot/dts/omap3-sbc-t3730.dts 
b/arch/arm/boot/dts/omap3-sbc-t3730.dts
index 5bdddf2..73c7bf4 100644
--- a/arch/arm/boot/dts/omap3-sbc-t3730.dts
+++ b/arch/arm/boot/dts/omap3-sbc-t3730.dts
@@ -27,8 +27,9 @@
 };
 
 gpmc {
-   ranges = 5 0 0x2c00 0x0100,
-4 0 0x2d00 0x0100;
+   ranges = 5 0 0x2c00 0x0100,   /* CM-T3x30 SMSC9x

Re: [PATCH v2] ARM: dts: cm-t3x: add NAND support

2014-12-29 Thread Dmitry Lifshitz

Hi Roger,

On 12/29/2014 03:06 PM, Roger Quadros wrote:

Hi Dmitry,

On 28/12/14 16:30, Dmitry Lifshitz wrote:

CM-T3517, CM-T3530 and CM-T3730 features NAND storage chip connected to
GPMC bus.

Add GPMC DT entry into the root DT file omap3-cm-t3x.dtsi, common for
all three modules.

NAND timings are calculated to be safe for CM-T3x devices as it works
now in non DT boot (in this case the timings are updated by U-Boot).


I didn't get this part. You provide the GPMC timings in the DT now so they will 
override
u-boot configured timings.



In the board files for CM-T3x modules we did not override NAND timings 
configured in U-Boot. Now, with DT boot, we do not want to rely on boot 
loader settings wherever is possible. So, we specify the timings 
explicitly.


In order to avoid regression, the timings setup is the same as we do in 
U-Boot.




Update GPMC ranges in boards DT files to include all connected devices.

Signed-off-by: Dmitry Lifshitz lifsh...@compulab.co.il
---

v2 * Update GPMC ranges with NAND values in omap3-cm-t3x30.dtsi.
* Add commit message details

  arch/arm/boot/dts/omap3-cm-t3x.dtsi   |   58 +
  arch/arm/boot/dts/omap3-cm-t3x30.dtsi |3 +-
  arch/arm/boot/dts/omap3-sbc-t3517.dts |4 ++
  arch/arm/boot/dts/omap3-sbc-t3530.dts |   10 ++
  arch/arm/boot/dts/omap3-sbc-t3730.dts |5 ++-
  5 files changed, 70 insertions(+), 10 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
index 6ea6d46..4d091ca 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
@@ -259,3 +259,61 @@
pinctrl-names = default;
pinctrl-0 = mcbsp2_pins;
  };
+
+gpmc {
+   ranges = 0 0 0x 0x0100;


Isn't this ranges property redundant as it will be overridden by the board 
specific dts?


+
+   nand@0,0 {
+   reg = 0 0 4;/* CS0, offset 0, IO size 4 */
+   nand-bus-width = 8;
+   gpmc,device-width = 1;
+   ti,nand-ecc-opt = sw;


any particular reason for sticking with sw? Isn't it better to use at least 
ham1
or migrate to stronger schemes like bch4 or bch8?

ham1 scheme is compatible with ROM loader so the boot partition could be 
flashed from Linux.
For bch4/8 you will have to keep boot partition/s locked from Linux access as 
we don't yet
support mixed ECC schemes among partitions.



The regression issue should be considered here. Our customers have 
thousands of boards running rootfs with sw ecc. Updating the kernel is 
not a reason for reformatting the NAND.



+
+   gpmc,cs-on-ns = 0;
+   gpmc,cs-rd-off-ns = 120;
+   gpmc,cs-wr-off-ns = 120;
+
+   gpmc,adv-on-ns = 0;
+   gpmc,adv-rd-off-ns = 120;
+   gpmc,adv-wr-off-ns = 120;
+
+   gpmc,we-on-ns = 6;
+   gpmc,we-off-ns = 90;
+
+   gpmc,oe-on-ns = 6;
+   gpmc,oe-off-ns = 90;
+
+   gpmc,page-burst-access-ns = 6;
+   gpmc,access-ns = 72;
+   gpmc,cycle2cycle-delay-ns = 60;
+
+   gpmc,rd-cycle-ns = 120;
+   gpmc,wr-cycle-ns = 120;
+   gpmc,wr-access-ns = 186;
+   gpmc,wr-data-mux-bus-ns = 90;
+
+   #address-cells = 1;
+   #size-cells = 1;
+
+   partition@0 {
+   label = xloader;
+   reg = 0 0x8;
+   };
+   partition@0x8 {
+   label = uboot;
+   reg = 0x8 0x1e;
+   };
+   partition@0x26 {
+   label = uboot environment;
+   reg = 0x26 0x4;
+   };
+   partition@0x2a {
+   label = linux;
+   reg = 0x2a 0x40;
+   };
+   partition@0x6a {
+   label = rootfs;
+   reg = 0x6a 0x1f88;
+   };
+   };
+};
diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index 9a4a3ab..d9e92b6 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -50,7 +50,8 @@
  #include omap-gpmc-smsc911x.dtsi

  gpmc {
-   ranges = 5 0 0x2c00 0x0100;
+   ranges = 5 0 0x2c00 0x0100, /* CM-T3x30 SMSC9x Eth */
+0 0 0x 0x0100; /* CM-T3x NAND */


Isn't this ranges property redundant as it will anyways be overridden by the 
board specific dts?



The ranges are specified here (and other files below) by design.

We built a tree like structure to organize DT files -
d234e4239 ARM: dts: sbc-t3x: refactor DT support

It allows to inherit/override properties common for different boards.

Our customers do not have to deal with a correct GPMC ranges settings, 
once they base

[PATCH V3 01/19] ARM: dts: am57xx: cl-som-am57x: add basic module support

2015-12-01 Thread Dmitry Lifshitz
Add support for CompuLab CM-SOM-AM57X board.

CL-SOM-AM57x is a miniature System-on-Module (SoM) based on
TI Sitara AM57x ARM Cortex-A15 System-on-Chip family.

https://www.compulab.co.il/products/computer-on-modules/cl-som-am57x-ti-am5728-am5718-system-on-module/

Add basic DT support for standalone module (without a carrier board):

* Memory configuration
* Heartbeat led
* I2C1 and I2C4
* PMIC
* SATA

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---
 v3:
 
   * Move PMIC to I2C4
   * Reformat subject
 
 v2: 

   * Fixed voltages (for OPP_HIGH) for VDD_GPU, VDD_IVA, VDD_DSPEVE
   * Added comments for VDDA_1V8_PHYA/B
   * Add "regulator-always-on" property for ldousb_reg 

 .../devicetree/bindings/arm/omap/omap.txt  |   3 +
 arch/arm/boot/dts/Makefile |   3 +-
 arch/arm/boot/dts/am57xx-cl-som-am57x.dts  | 274 +
 3 files changed, 279 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/am57xx-cl-som-am57x.dts

diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt 
b/Documentation/devicetree/bindings/arm/omap/omap.txt
index da84372..dd53c90 100644
--- a/Documentation/devicetree/bindings/arm/omap/omap.txt
+++ b/Documentation/devicetree/bindings/arm/omap/omap.txt
@@ -156,6 +156,9 @@ Boards:
 - AM437x SK EVM: AM437x StarterKit Evaluation Module
   compatible = "ti,am437x-sk-evm", "ti,am4372", "ti,am43"
 
+- AM57XX CL-SOM-AM57x
+  compatible = "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", 
"ti,dra7"
+
 - DRA742 EVM:  Software Development Board for DRA742
   compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7"
 
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 5492a24..803a020 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -477,8 +477,9 @@ dtb-$(CONFIG_SOC_OMAP5) += \
omap5-sbc-t54.dtb \
omap5-uevm.dtb
 dtb-$(CONFIG_SOC_DRA7XX) += \
-   dra7-evm.dtb \
am57xx-beagle-x15.dtb \
+   am57xx-cl-som-am57x.dtb \
+   dra7-evm.dtb \
dra72-evm.dtb
 dtb-$(CONFIG_ARCH_ORION5X) += \
orion5x-lacie-d2-network.dtb \
diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
new file mode 100644
index 000..087d62e
--- /dev/null
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -0,0 +1,274 @@
+/*
+ * Support for CompuLab CL-SOM-AM57x System-on-Module
+ *
+ * Copyright (C) 2015 CompuLab Ltd. - http://www.compulab.co.il/
+ * Author: Dmitry Lifshitz <lifsh...@compulab.co.il>
+ *
+ * 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.
+ */
+
+/dts-v1/;
+
+#include 
+#include 
+#include "dra74x.dtsi"
+
+/ {
+   model = "CompuLab CL-SOM-AM57x";
+   compatible = "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", 
"ti,dra74", "ti,dra7";
+
+   memory {
+   device_type = "memory";
+   reg = <0x8000 0x2000>; /* 512 MB - minimal 
configuration */
+   };
+
+   leds {
+   compatible = "gpio-leds";
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+
+   led@0 {
+   label = "cl-som-am57x:green";
+   gpios = < 5 GPIO_ACTIVE_HIGH>;
+   linux,default-trigger = "heartbeat";
+   default-state = "off";
+   };
+   };
+};
+
+_pmx_core {
+   leds_pins_default: leds_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x347c, PIN_OUTPUT | MUX_MODE14)  
/* gpmc_a15.gpio2_5 */
+   >;
+   };
+
+   i2c1_pins_default: i2c1_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3800, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c1_sda.sda */
+   DRA7XX_CORE_IOPAD(0x3804, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c1_scl.scl */
+   >;
+   };
+
+   i2c4_pins_default: i2c4_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x36ac, PIN_INPUT| MUX_MODE10)
/* mcasp1_acl.i2c4_sda */
+   DRA7XX_CORE_IOPAD(0x36b0, PIN_INPUT| MUX_MODE10)
/* mcasp1_fsr.i2c4_scl */
+   >;
+   };
+
+   tps659038_pins_default: tps659038_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3818, PIN_INPUT_PULLUP | 
MUX_MODE14) /* wakeu

[PATCH V3 15/19] ARM: dts: am57xx: sbc-am57x: add GPIO expander support

2015-12-01 Thread Dmitry Lifshitz
Add PCA9555 GPIO expander support (over I2C5 bus).

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v3:

   * No fuctional changes
   * Reformat subject

  v2:

   * Fixed patch subject/description

 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index a3588ba..edce6c6 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -89,4 +89,11 @@
reg = <0x50>;
pagesize = <16>;
};
+
+   pca9555: pca9555@20 {
+   compatible = "nxp,pca9555";
+   reg = <0x20>;
+   gpio-controller;
+   #gpio-cells = <2>;
+   };
 };
-- 
1.9.1

--
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 V2 09/19] ARM: dts: am57xx: cl-som-am57x: add touchscreen support

2015-12-01 Thread Dmitry Lifshitz
Add ADS7846 touchscreen support.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v2:

   * No fuctional changes
   * Reformat subject

 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 44 +++
 1 file changed, 44 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index c603136..a75c382 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -43,6 +43,13 @@
regulator-min-microvolt = <330>;
regulator-max-microvolt = <330>;
};
+
+   ads7846reg: fixedregulator-ads7846-reg {
+   compatible = "regulator-fixed";
+   regulator-name = "ads7846-reg";
+   regulator-min-microvolt = <330>;
+   regulator-max-microvolt = <330>;
+   };
 };
 
 _pmx_core {
@@ -183,6 +190,12 @@
DRA7XX_CORE_IOPAD(0x3594, PIN_INPUT | MUX_MODE15)
>;
};
+
+   ads7846_pins: pinmux_ads7846_pins {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3464, PIN_INPUT_PULLDOWN | 
MUX_MODE14) /* gpmc_a9.gpio1_31 */
+   >;
+   };
 };
 
  {
@@ -451,6 +464,37 @@
reg = <0x10 0x0>;
};
};
+
+   /* touch controller */
+   ads7846@0 {
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins>;
+
+   compatible = "ti,ads7846";
+   vcc-supply = <>;
+
+   reg = <1>;  /* CS1 */
+   spi-max-frequency = <150>;
+
+   interrupt-parent = <>;
+   interrupts = <31 0>;
+   pendown-gpio = < 31 0>;
+
+
+   ti,x-min = /bits/ 16 <0x0>;
+   ti,x-max = /bits/ 16 <0x0fff>;
+   ti,y-min = /bits/ 16 <0x0>;
+   ti,y-max = /bits/ 16 <0x0fff>;
+
+   ti,x-plate-ohms = /bits/ 16 <180>;
+   ti,pressure-max = /bits/ 16 <255>;
+
+   ti,debounce-max = /bits/ 16 <30>;
+   ti,debounce-tol = /bits/ 16 <10>;
+   ti,debounce-rep = /bits/ 16 <1>;
+
+   linux,wakeup;
+   };
 };
 
  {
-- 
1.9.1

--
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 V2 18/19] ARM: dts: am57xx: sbc-am57x: add HDMI support

2015-12-01 Thread Dmitry Lifshitz
Add HDMI video output support.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v2:

   * Fix HDMI lanes polarity
   * Reformat subject

 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 42 ++
 1 file changed, 42 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index 8e4c0fd..77bb8e1 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -18,6 +18,7 @@
 
aliases {
display0 = 
+   display1 = 
};
 };
 
@@ -60,6 +61,19 @@
DRA7XX_CORE_IOPAD(0x3564, PIN_OUTPUT | MUX_MODE14)  
/* vin2a_vsync0.gpio4_0 */
>;
};
+
+   hdmi_pins: pinmux_hdmi_pins {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3808, PIN_INPUT | MUX_MODE1)
/* i2c2_sda.hdmi1_ddc_scl */
+   DRA7XX_CORE_IOPAD(0x380c, PIN_INPUT | MUX_MODE1)
/* i2c2_scl.hdmi1_ddc_sda */
+   >;
+   };
+
+   hdmi_conn_pins: pinmux_hdmi_conn_pins {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x37b8, PIN_INPUT | MUX_MODE14)   
/* spi1_cs2.gpio7_12 */
+   >;
+   };
 };
 
  {
@@ -135,3 +149,31 @@
};
};
 };
+
+ {
+   status = "ok";
+   vdda-supply = <_reg>;
+
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins>;
+
+   port {
+   hdmi_out: endpoint {
+   remote-endpoint = <_connector_in>;
+   lanes = <1 0 3 2 5 4 7 6>;
+   };
+   };
+};
+
+_conn {
+   pinctrl-names = "default";
+   pinctrl-0 = <_conn_pins>;
+
+   hpd-gpios = < 12 GPIO_ACTIVE_HIGH>;
+
+   port {
+   hdmi_connector_in: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+};
-- 
1.9.1

--
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 V2 16/19] ARM: dts: am57xx: sbc-am57x: add LCD support

2015-12-01 Thread Dmitry Lifshitz
Startek-kd050c 800x480 LCD panel timings are described in
compulab-sb-som.dtsi.

Add appropriate DT endpoints to connect DPI output and LCD.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v2:

   * No fuctional changes
   * Reformat subject

 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 38 ++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index edce6c6..8e4c0fd 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -15,6 +15,10 @@
 / {
model = "CompuLab CL-SOM-AM57x on SB-SOM-AM57x";
compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", 
"ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
+
+   aliases {
+   display0 = 
+   };
 };
 
 _pmx_core {
@@ -50,6 +54,12 @@
DRA7XX_CORE_IOPAD(0x36b8, PIN_INPUT| MUX_MODE10)
/* mcasp1_axr1.i2c5_scl */
>;
};
+
+   lcd_pins_default: lcd_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3564, PIN_OUTPUT | MUX_MODE14)  
/* vin2a_vsync0.gpio4_0 */
+   >;
+   };
 };
 
  {
@@ -97,3 +107,31 @@
#gpio-cells = <2>;
};
 };
+
+ {
+   status = "ok";
+
+   vdda_video-supply = <_reg>;
+
+   port {
+   dpi_lcd_out: endpoint@0 {
+   remote-endpoint = <_in>;
+   data-lines = <24>;
+   };
+   };
+};
+
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+
+   enable-gpios = < 14 GPIO_ACTIVE_HIGH
+0 GPIO_ACTIVE_HIGH>;
+
+   port {
+   lcd_in: endpoint {
+   remote-endpoint = <_lcd_out>;
+   data-lines = <24>;
+   };
+   };
+};
-- 
1.9.1

--
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 V2 10/19] ARM: dts: am57xx: cl-som-am57x: add analog audio support

2015-12-01 Thread Dmitry Lifshitz
Add analog audio DT nodes:

1. simple-audio-card node
2. wm8731 codec node
3. MCASP3 pinmux

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v2:

   * No fuctional changes
   * Reformat subject

 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 67 +++
 1 file changed, 67 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index a75c382..b2c4451 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -50,6 +50,33 @@
regulator-min-microvolt = <330>;
regulator-max-microvolt = <330>;
};
+
+   sound0: sound@0 {
+   compatible = "simple-audio-card";
+   simple-audio-card,name = "CL-SOM-AM57x-Sound-Card";
+   simple-audio-card,format = "i2s";
+   simple-audio-card,bitclock-master = <_master>;
+   simple-audio-card,frame-master = <_master>;
+   simple-audio-card,widgets =
+   "Headphone", "Headphone Jack",
+   "Microphone", "Microphone Jack",
+   "Line", "Line Jack";
+   simple-audio-card,routing =
+   "Headphone Jack", "RHPOUT",
+   "Headphone Jack", "LHPOUT",
+   "LLINEIN", "Line Jack",
+   "MICIN", "Mic Bias",
+   "Mic Bias", "Microphone Jack";
+
+   dailink0_master: simple-audio-card,cpu {
+   sound-dai = <>;
+   };
+
+   simple-audio-card,codec {
+   sound-dai = <>;
+   system-clock-frequency = <1200>;
+   };
+   };
 };
 
 _pmx_core {
@@ -196,6 +223,24 @@
DRA7XX_CORE_IOPAD(0x3464, PIN_INPUT_PULLDOWN | 
MUX_MODE14) /* gpmc_a9.gpio1_31 */
>;
};
+
+   mcasp3_pins_default: mcasp3_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3724, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* mcasp3_aclkx.mcasp3_aclkx */
+   DRA7XX_CORE_IOPAD(0x3728, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* mcasp3_fsx.mcasp3_fsx */
+   DRA7XX_CORE_IOPAD(0x372c, PIN_OUTPUT_PULLDOWN | 
MUX_MODE0) /* mcasp3_axr0.mcasp3_axr0 */
+   DRA7XX_CORE_IOPAD(0x3730, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* mcasp3_axr1.mcasp3_axr1 */
+   >;
+   };
+
+   mcasp3_pins_sleep: mcasp3_pins_sleep {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3724, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3728, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x372c, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3730, PIN_INPUT | MUX_MODE15)
+   >;
+   };
 };
 
  {
@@ -392,6 +437,13 @@
reg = <0x50>;
pagesize = <16>;
};
+
+   wm8731: wm8731@1a {
+   #sound-dai-cells = <0>;
+   compatible = "wlf,wm8731";
+   reg = <0x1a>;
+   status = "okay";
+   };
 };
 
  {
@@ -538,3 +590,18 @@
  {
dr_mode = "peripheral";
 };
+
+ {
+   #sound-dai-cells = <0>;
+   pinctrl-names = "default", "sleep";
+   pinctrl-0 = <_pins_default>;
+   pinctrl-1 = <_pins_sleep>;
+   status = "okay";
+
+   op-mode = <0>;  /* MCASP_IIS_MODE */
+   tdm-slots = <2>;
+   /* 4 serializers */
+   serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
+   1 2 0 0
+   >;
+};
-- 
1.9.1

--
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 V3 04/19] ARM: dts: am57xx: cl-som-am57x: add EEPROM support

2015-12-01 Thread Dmitry Lifshitz
On-board EEPROM chip is used for storing a board production
info.

Add module EEPROM support (over I2C4 bus).

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
---

  v3: 
 
   * No fuctional changes 
   * Reformat subject 

  v2:

   * Fix EEPROM chip model

 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index 2074fd4..1badfa9 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -261,6 +261,12 @@
compatible = "emmicro,em3027";
reg = <0x56>;
};
+
+   eeprom_module: atmel@50 {
+   compatible = "atmel,24c08";
+   reg = <0x50>;
+   pagesize = <16>;
+   };
 };
 
  {
-- 
1.9.1

--
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 V3 06/19] ARM: dts: am57xx: cl-som-am57x: add spi-flash support

2015-12-01 Thread Dmitry Lifshitz
On-board spi-flash chip is used as a main boot device.
Add spi-flash chip support (over QSPI bus).

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---
  v3:

   * Modify "compatible" property to match a proper flash driver
   * Drop RX/TX bus with properties
   * Reformat subject

  v2: 

   * Add "spi-max-frequency" property for  node.

 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 42 +++
 1 file changed, 42 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index ef94845..f7e163a 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -93,6 +93,17 @@
DRA7XX_CORE_IOPAD(0x3498, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_a22.mmc2_dat7 */
>;
};
+
+   qspi1_pins: pinmux_qspi1_pins {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3474, PIN_INPUT | MUX_MODE1)
/* gpmc_a13.qspi1_rtclk */
+   DRA7XX_CORE_IOPAD(0x3480, PIN_INPUT | MUX_MODE1)
/* gpmc_a16.qspi1_d0 */
+   DRA7XX_CORE_IOPAD(0x3484, PIN_INPUT | MUX_MODE1)
/* gpmc_a17.qspi1_d1 */
+   DRA7XX_CORE_IOPAD(0x3488, PIN_INPUT | MUX_MODE1)
/* qpmc_a18.qspi1_sclk */
+   DRA7XX_CORE_IOPAD(0x34b8, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_cs2.qspi1_cs0 */
+   DRA7XX_CORE_IOPAD(0x34bc, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_cs3.qspi1_cs1 */
+   >;
+   };
 };
 
  {
@@ -331,3 +342,34 @@
ti,non-removable;
cap-mmc-dual-data-rate;
 };
+
+ {
+   status = "okay";
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins>;
+
+   spi-max-frequency = <2000>;
+
+   spi_flash: spi_flash@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   compatible = "spansion,m25p80", "jedec,spi-nor";
+   reg = <0>;  /* CS0 */
+   spi-max-frequency = <2000>;
+
+   partition@0 {
+   label = "uboot";
+   reg = <0x0 0xc>;
+   };
+
+   partition@c {
+   label = "uboot environment";
+   reg = <0xc 0x4>;
+   };
+
+   partition@10 {
+   label = "reserved";
+   reg = <0x10 0x0>;
+   };
+   };
+};
-- 
1.9.1

--
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 V2 08/19] ARM: dts: am57xx: cl-som-am57x: add USB support

2015-12-01 Thread Dmitry Lifshitz
Add USB support.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---
  v2:

   * No fuctional changes
   * Reformat subject

 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 16 
 1 file changed, 16 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index fe4baba..c603136 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -478,3 +478,19 @@
pinctrl-0 = <_mdio_pins_default>;
pinctrl-1 = <_mdio_pins_sleep>;
 };
+
+_phy1 {
+   phy-supply = <_reg>;
+};
+
+_phy2 {
+   phy-supply = <_reg>;
+};
+
+ {
+   dr_mode = "host";
+};
+
+ {
+   dr_mode = "peripheral";
+};
-- 
1.9.1

--
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 V2 00/19] Add support for CL-SOM-AM57X and SBC-AM57X

2015-12-01 Thread Dmitry Lifshitz
SBC-AM57X boards.

CL-SOM-AM57x is a miniature System-on-Module (SoM) based on
TI Sitara AM57x ARM Cortex-A15 System-on-Chip family.

SBC-AM57x is a single board computer, implemented with the
CL-SOM-AM57x computer-on-module providing most of the functions,
and SB-SOM-AM57x carrier board providing additional peripheral
functions and connectors.

The SBC-AM57x has the following features:


CPU:Texas Instruments Sitara AM5728 dual-core ARM Cortex-A15, 
1.5GHz or
Texas Instruments Sitara AM5718 single-core ARM Cortex-A15, 
1.5GHz

RAM:DDR3, 512MB – 4GB

Storage:NAND flash, 512MB - 1GB or eMMC flash, 4GB - 32GB
SPI-flash 2MB

Ethernet:   Up to 2x 10/100/1000Mbps Ethernet ports (MAC+PHY)

WiFi/BT:802.11b/g/n WiFi interface (TI WiLink 8 WL1801 chipset) or
Dual-band 2x2 802.11a/b/g/n WiFi interface (TI WiLink 8 WL1837 
chipset)

Analog Audio:   Audio codec with stereo output, stereo input and microphone 
support

More details can be found here:

https://www.compulab.co.il/products/computer-on-modules/cl-som-am57x-ti-am5728-am5718-system-on-module/

https://www.compulab.co.il/products/sbcs/sbc-am57x-ti-am5728-am5718-single-board-computer/

This series is based on the following patch set ("Add support for sbc-t43" 
Nikita Kiryanov):

https://www.mail-archive.com/linux-omap@vger.kernel.org/msg121905.html

Changes in V2:
- Removed unnecessary line breaks in end of file and elsewhere
- Changed subject lines to start with "ARM: dts:"
- PMIC moved from I2C1 to I2C4
- Fixed SPI flash compatible string
- Skipped resetting ETH PHYs
- Fixed HDMI lanes polarity

Dmitry Lifshitz (19):
  ARM: dts: am57xx: cl-som-am57x: add basic module support
  ARM: dts: am57xx: cl-som-am57x: dts: add RTC support
  ARM: dts: am57xx: cl-som-am57x: add I2C3 support
  ARM: dts: am57xx: cl-som-am57x: add EEPROM support
  ARM: dts: am57xx: cl-som-am57x: add eMMC support
  ARM: dts: am57xx: cl-som-am57x: add spi-flash support
  ARM: dts: am57xx: cl-som-am57x: add dual EMAC support
  ARM: dts: am57xx: cl-som-am57x: add USB support
  ARM: dts: am57xx: cl-som-am57x: add touchscreen support
  ARM: dts: am57xx: cl-som-am57x: add analog audio support
  ARM: dts: am57xx: sbc-am57x: add basic board support
  ARM: dts: am57xx: cl-som-am57x: add MMC1 support
  ARM: dts: am57xx: sbc-am57x: add usb vbus pinmux
  ARM: dts: am57xx: sbc-am57x: add EEPROM support
  ARM: dts: am57xx: sbc-am57x: add GPIO expander support
  ARM: dts: am57xx: sbc-am57x: add LCD support
  ARM: dts: am57xx: compulab-sb-som: add HDMI connector
  ARM: dts: am57xx: sbc-am57x: add HDMI support
  ARM: dts: am57xx: cl-som-am57x: skip resetting ETH PHYs

 .../devicetree/bindings/arm/omap/omap.txt  |   6 +
 arch/arm/boot/dts/Makefile |   4 +-
 arch/arm/boot/dts/am57xx-cl-som-am57x.dts  | 617 +
 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 179 ++
 arch/arm/boot/dts/compulab-sb-som.dtsi |   7 +
 5 files changed, 812 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/am57xx-cl-som-am57x.dts
 create mode 100644 arch/arm/boot/dts/am57xx-sbc-am57x.dts

-- 
1.9.1

--
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 V3 12/19] ARM: dts: am57xx: cl-som-am57x: add MMC1 support

2015-12-01 Thread Dmitry Lifshitz
Add MMC1 support, used for SD/MMC card.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v3:

   * No fuctional changes
   * Reformat subject

  v2:

   * Fix duplicate SD Card Detect pinmux

 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 25 +
 1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index 804ad72..93852e2 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -24,6 +24,19 @@
DRA7XX_CORE_IOPAD(0x37fc, PIN_INPUT_SLEW | MUX_MODE1)   
/* uart2_rtsn.uart3_txd */
>;
};
+
+   mmc1_pins_default: mmc1_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_MODE0) 
/* mmc1_clk.clk */
+   DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_MODE0) 
/* mmc1_cmd.cmd */
+   DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_MODE0) 
/* mmc1_dat0.dat0 */
+   DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_MODE0) 
/* mmc1_dat1.dat1 */
+   DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_MODE0) 
/* mmc1_dat2.dat2 */
+   DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_MODE0) 
/* mmc1_dat3.dat3 */
+   DRA7XX_CORE_IOPAD(0x376c, PIN_INPUT | MUX_MODE14)   
/* mmc1_sdcd.gpio6_27 */
+   DRA7XX_CORE_IOPAD(0x377c, PIN_INPUT | MUX_MODE14)   
/* mmc1_sdwp.gpio6_28 */
+   >;
+   };
 };
 
  {
@@ -34,3 +47,15 @@
pinctrl-names = "default";
pinctrl-0 = <_pins_default>;
 };
+
+ {
+   status = "okay";
+
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+
+   vmmc-supply = <_reg>;
+   bus-width = <4>;
+   cd-gpios = < 27 GPIO_ACTIVE_LOW>;
+   wp-gpios = < 28 GPIO_ACTIVE_HIGH>;
+};
-- 
1.9.1

--
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 V2 05/19] ARM: dts: am57xx: cl-som-am57x: add eMMC support

2015-12-01 Thread Dmitry Lifshitz
CM-SOM-AM57X has two options of main storage devices - eMMC or NAND.
Add eMMC chip support (over MMC2 bus).

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v2: 
 
   * No fuctional changes 
   * Reformat subject 

 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 34 +++
 1 file changed, 34 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index 1badfa9..ef94845 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -36,6 +36,13 @@
default-state = "off";
};
};
+
+   vdd_3v3: fixedregulator-vdd_3v3 {
+   compatible = "regulator-fixed";
+   regulator-name = "vdd_3v3";
+   regulator-min-microvolt = <330>;
+   regulator-max-microvolt = <330>;
+   };
 };
 
 _pmx_core {
@@ -71,6 +78,21 @@
DRA7XX_CORE_IOPAD(0x3818, PIN_INPUT_PULLUP | 
MUX_MODE14) /* wakeup0.gpio1_0 */
>;
};
+
+   mmc2_pins_default: mmc2_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x349c, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_a23.mmc2_clk */
+   DRA7XX_CORE_IOPAD(0x34b0, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_cs1.mmc2_cmd */
+   DRA7XX_CORE_IOPAD(0x34a0, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_a24.mmc2_dat0 */
+   DRA7XX_CORE_IOPAD(0x34a4, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_a25.mmc2_dat1 */
+   DRA7XX_CORE_IOPAD(0x34a8, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_a26.mmc2_dat2 */
+   DRA7XX_CORE_IOPAD(0x34ac, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_a27.mmc2_dat3 */
+   DRA7XX_CORE_IOPAD(0x348c, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_a19.mmc2_dat4 */
+   DRA7XX_CORE_IOPAD(0x3490, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_a20.mmc2_dat5 */
+   DRA7XX_CORE_IOPAD(0x3494, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_a21.mmc2_dat6 */
+   DRA7XX_CORE_IOPAD(0x3498, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_a22.mmc2_dat7 */
+   >;
+   };
 };
 
  {
@@ -297,3 +319,15 @@
status = "okay";
};
 };
+
+ {
+   status = "okay";
+
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+
+   vmmc-supply = <_3v3>;
+   bus-width = <8>;
+   ti,non-removable;
+   cap-mmc-dual-data-rate;
+};
-- 
1.9.1

--
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 V2 13/19] ARM: dts: am57xx: sbc-am57x: add usb vbus pinmux

2015-12-01 Thread Dmitry Lifshitz
usb1_drvvbus pin is used to Drive-VBUS enable to external charge
pump/power switch.

Add a pinmux for that pin.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v2:

   * No fuctional changes
   * Reformat subject

 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 11 +++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index 93852e2..17a1972 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -37,6 +37,12 @@
DRA7XX_CORE_IOPAD(0x377c, PIN_INPUT | MUX_MODE14)   
/* mmc1_sdwp.gpio6_28 */
>;
};
+
+   usb1_pins: pinmux_usb1_pins {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3680, PIN_INPUT_SLEW | MUX_MODE0) 
/* usb1_drvvbus */
+   >;
+   };
 };
 
  {
@@ -59,3 +65,8 @@
cd-gpios = < 27 GPIO_ACTIVE_LOW>;
wp-gpios = < 28 GPIO_ACTIVE_HIGH>;
 };
+
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins>;
+};
-- 
1.9.1

--
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 V2 02/19] ARM: dts: am57xx: cl-som-am57x: dts: add RTC support

2015-12-01 Thread Dmitry Lifshitz
Add EM3027 RTC chip support (over I2C4 bus).

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---
  v2:

   * No fuctional changes.
   * Refactor patch with respect to the previous changes in I2C4 node structure.
   * Reformat subject

 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 5 +
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index 087d62e..58156a9 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -242,6 +242,11 @@
#gpio-cells = <2>;
};
};
+
+   rtc0: rtc@56 {
+   compatible = "emmicro,em3027";
+   reg = <0x56>;
+   };
 };
 
  {
-- 
1.9.1

--
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 V2 11/19] ARM: dts: am57xx: sbc-am57x: add basic board support

2015-12-01 Thread Dmitry Lifshitz
SBC-AM57x is a single board computer designed for industrial and
embedded applications. It is based on the Texas Instruments Sitara AM57x
system-on-chip family. SBC-AM57x is implemented with the CL-SOM-AM57x
computer-on-module providing most of the functions, and SB-SOM-AM57x
carrier board providing additional peripheral functions and connectors.

https://www.compulab.co.il/products/sbcs/sbc-am57x-ti-am5728-am5718-single-board-computer/

https://www.compulab.co.il/products/computer-on-modules/cl-som-am57x-ti-am5728-am5718-system-on-module/

Add basic board support, including UART3, used as a serial console.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v2:

   * No fuctional changes
   * Reformat subject

 .../devicetree/bindings/arm/omap/omap.txt  |  3 ++
 arch/arm/boot/dts/Makefile |  1 +
 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 36 ++
 3 files changed, 40 insertions(+)
 create mode 100644 arch/arm/boot/dts/am57xx-sbc-am57x.dts

diff --git a/Documentation/devicetree/bindings/arm/omap/omap.txt 
b/Documentation/devicetree/bindings/arm/omap/omap.txt
index dd53c90..42cdad1 100644
--- a/Documentation/devicetree/bindings/arm/omap/omap.txt
+++ b/Documentation/devicetree/bindings/arm/omap/omap.txt
@@ -159,6 +159,9 @@ Boards:
 - AM57XX CL-SOM-AM57x
   compatible = "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", 
"ti,dra7"
 
+- AM57XX SBC-AM57x
+  compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", "ti,am5728", 
"ti,dra742", "ti,dra74", "ti,dra7"
+
 - DRA742 EVM:  Software Development Board for DRA742
   compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7"
 
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 803a020..4c73ab9 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -479,6 +479,7 @@ dtb-$(CONFIG_SOC_OMAP5) += \
 dtb-$(CONFIG_SOC_DRA7XX) += \
am57xx-beagle-x15.dtb \
am57xx-cl-som-am57x.dtb \
+   am57xx-sbc-am57x.dtb \
dra7-evm.dtb \
dra72-evm.dtb
 dtb-$(CONFIG_ARCH_ORION5X) += \
diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
new file mode 100644
index 000..804ad72
--- /dev/null
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -0,0 +1,36 @@
+/*
+ * Support for CompuLab SBC-AM57x single board computer
+ *
+ * Copyright (C) 2015 CompuLab Ltd. - http://www.compulab.co.il/
+ * Author: Dmitry Lifshitz <lifsh...@compulab.co.il>
+ *
+ * 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.
+ */
+
+#include "am57xx-cl-som-am57x.dts"
+#include "compulab-sb-som.dtsi"
+
+/ {
+   model = "CompuLab CL-SOM-AM57x on SB-SOM-AM57x";
+   compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", 
"ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
+};
+
+_pmx_core {
+   uart3_pins_default: uart3_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x37f8, PIN_INPUT_SLEW | MUX_MODE2)   
/* uart2_ctsn.uart3_rxd */
+   DRA7XX_CORE_IOPAD(0x37fc, PIN_INPUT_SLEW | MUX_MODE1)   
/* uart2_rtsn.uart3_txd */
+   >;
+   };
+};
+
+ {
+   status = "okay";
+   interrupts-extended = <_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
+ <_pmx_core 0x3f8>;
+
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+};
-- 
1.9.1

--
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 V2 17/19] ARM: dts: am57xx: compulab-sb-som: add HDMI connector

2015-12-01 Thread Dmitry Lifshitz
Add HDMI connector node without a valid input endpoint.

CompuLab SB-SOM is a carrier board, hence the endpoint
should be added in the board DT with a valid HDMI output.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v2:

   * No fuctional changes
   * Reformat subject

 arch/arm/boot/dts/compulab-sb-som.dtsi | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/compulab-sb-som.dtsi 
b/arch/arm/boot/dts/compulab-sb-som.dtsi
index 402a143..93d7e23 100644
--- a/arch/arm/boot/dts/compulab-sb-som.dtsi
+++ b/arch/arm/boot/dts/compulab-sb-som.dtsi
@@ -39,4 +39,11 @@
pixelclk-active = <1>;
};
};
+
+   hdmi_conn: connector@0 {
+   compatible = "hdmi-connector";
+   label = "hdmi";
+
+   type = "a";
+   };
 };
-- 
1.9.1

--
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 V2 03/19] ARM: dts: am57xx: cl-som-am57x: add I2C3 support

2015-12-01 Thread Dmitry Lifshitz
Enable I2C3 bus and add appropriate pinmux.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---

  v2:

   * No fuctional changes
   * Refactor patch with respect to the previous changes in I2C4 node structure
   * Reformat subject

 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 14 ++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index 58156a9..2074fd4 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -52,6 +52,13 @@
>;
};
 
+   i2c3_pins_default: i2c3_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x36a4, PIN_INPUT| MUX_MODE10)
/* mcasp1_aclkx.i2c3_sda */
+   DRA7XX_CORE_IOPAD(0x36a8, PIN_INPUT| MUX_MODE10)
/* mcasp1_fsx.i2c3_scl */
+   >;
+   };
+
i2c4_pins_default: i2c4_pins_default {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x36ac, PIN_INPUT| MUX_MODE10)
/* mcasp1_acl.i2c4_sda */
@@ -73,6 +80,13 @@
clock-frequency = <40>;
 };
 
+ {
+   status = "okay";
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+   clock-frequency = <40>;
+};
+
  {
status = "okay";
pinctrl-names = "default";
-- 
1.9.1

--
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 V2 14/19] ARM: dts: am57xx: sbc-am57x: add EEPROM support

2015-12-01 Thread Dmitry Lifshitz
On-board EEPROM chip is used for storing a board production info.

Add carrier board EEPROM support (over I2C5 bus).

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
---

  v2:

   * No fuctional changes
   * Reformat subject

 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 20 
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index 17a1972..a3588ba 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -43,6 +43,13 @@
DRA7XX_CORE_IOPAD(0x3680, PIN_INPUT_SLEW | MUX_MODE0) 
/* usb1_drvvbus */
>;
};
+
+   i2c5_pins_default: i2c5_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x36b4, PIN_INPUT| MUX_MODE10)
/* mcasp1_axr0.i2c5_sda */
+   DRA7XX_CORE_IOPAD(0x36b8, PIN_INPUT| MUX_MODE10)
/* mcasp1_axr1.i2c5_scl */
+   >;
+   };
 };
 
  {
@@ -70,3 +77,16 @@
pinctrl-names = "default";
pinctrl-0 = <_pins>;
 };
+
+ {
+   status = "okay";
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+   clock-frequency = <40>;
+
+   eeprom_base: atmel@50 {
+   compatible = "atmel,24c08";
+   reg = <0x50>;
+   pagesize = <16>;
+   };
+};
-- 
1.9.1

--
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 V3 07/19] ARM: dts: am57xx: cl-som-am57x: add dual EMAC support

2015-12-01 Thread Dmitry Lifshitz
Add dual EMAC support.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---
  v3: 
 
   * No fuctional changes 
   * Reformat subject 

  v2: 

   * Fix pinmux comments for RGMII0/1 clock/data lines
   * Fix pinmux for MDIO bus clock/data lines
   * Fix PHYs addresses

 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 105 ++
 1 file changed, 105 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index f7e163a..fe4baba 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -104,6 +104,85 @@
DRA7XX_CORE_IOPAD(0x34bc, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_cs3.qspi1_cs1 */
>;
};
+
+   cpsw_pins_default: cpsw_pins_default {
+   pinctrl-single,pins = <
+   /* Slave at addr 0x0 */
+   DRA7XX_CORE_IOPAD(0x3650, PIN_OUTPUT | MUX_MODE0)   
/* rgmii0_tclk */
+   DRA7XX_CORE_IOPAD(0x3654, PIN_OUTPUT | MUX_MODE0)   
/* rgmii0_tctl */
+   DRA7XX_CORE_IOPAD(0x3658, PIN_OUTPUT | MUX_MODE0)   
/* rgmii0_td3 */
+   DRA7XX_CORE_IOPAD(0x365c, PIN_OUTPUT | MUX_MODE0)   
/* rgmii0_td2 */
+   DRA7XX_CORE_IOPAD(0x3660, PIN_OUTPUT | MUX_MODE0)   
/* rgmii0_td1 */
+   DRA7XX_CORE_IOPAD(0x3664, PIN_OUTPUT | MUX_MODE0)   
/* rgmii0_td0 */
+   DRA7XX_CORE_IOPAD(0x3668, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rgmii0_rclk */
+   DRA7XX_CORE_IOPAD(0x366c, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rgmii0_rctl */
+   DRA7XX_CORE_IOPAD(0x3670, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rgmii0_rd3 */
+   DRA7XX_CORE_IOPAD(0x3674, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rgmii0_rd2 */
+   DRA7XX_CORE_IOPAD(0x3678, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rgmii0_rd1 */
+   DRA7XX_CORE_IOPAD(0x367c, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rgmii0_rd0 */
+
+   /* Slave at addr 0x1 */
+   DRA7XX_CORE_IOPAD(0x3598, PIN_OUTPUT | MUX_MODE3)   
/* vin2a_d12.rgmii1_tclk */
+   DRA7XX_CORE_IOPAD(0x359c, PIN_OUTPUT | MUX_MODE3)   
/* vin2a_d13.rgmii1_tctl */
+   DRA7XX_CORE_IOPAD(0x35a0, PIN_OUTPUT | MUX_MODE3)   
/* vin2a_d14.rgmii1_td3 */
+   DRA7XX_CORE_IOPAD(0x35a4, PIN_OUTPUT | MUX_MODE3)   
/* vin2a_d15.rgmii1_td2 */
+   DRA7XX_CORE_IOPAD(0x35a8, PIN_OUTPUT | MUX_MODE3)   
/* vin2a_d16.rgmii1_td1 */
+   DRA7XX_CORE_IOPAD(0x35ac, PIN_OUTPUT | MUX_MODE3)   
/* vin2a_d17.rgmii1_td0 */
+   DRA7XX_CORE_IOPAD(0x35b0, PIN_INPUT_PULLDOWN | 
MUX_MODE3) /* vin2a_d18.rgmii1_rclk */
+   DRA7XX_CORE_IOPAD(0x35b4, PIN_INPUT_PULLDOWN | 
MUX_MODE3) /* vin2a_d19.rgmii1_rctl */
+   DRA7XX_CORE_IOPAD(0x35b8, PIN_INPUT_PULLDOWN | 
MUX_MODE3) /* vin2a_d20.rgmii1_rd3 */
+   DRA7XX_CORE_IOPAD(0x35bc, PIN_INPUT_PULLDOWN | 
MUX_MODE3) /* vin2a_d21.rgmii1_rd2 */
+   DRA7XX_CORE_IOPAD(0x35c0, PIN_INPUT_PULLDOWN | 
MUX_MODE3) /* vin2a_d22.rgmii1_rd1 */
+   DRA7XX_CORE_IOPAD(0x35c4, PIN_INPUT_PULLUP | MUX_MODE3) 
/* vin2a_d23.rgmii1_rd0 */
+   >;
+   };
+
+   cpsw_pins_sleep: cpsw_pins_sleep {
+   pinctrl-single,pins = <
+   /* Slave 1 */
+   DRA7XX_CORE_IOPAD(0x3650, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3654, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3658, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x365c, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3660, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3664, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3668, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x366c, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3670, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3674, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3678, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x367c, PIN_INPUT | MUX_MODE15)
+
+   /* Slave 2 */
+   DRA7XX_CORE_IOPAD(0x3598, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x359c, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35a0, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35a4, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35a8

[PATCH 19/19] ARM: dts: am57xx: cl-som-am57x: skip resetting ETH PHYs

2015-12-01 Thread Dmitry Lifshitz
ETH PHYs setup on CL-SOM-AM57X is established in U-Boot along with
bringing them out of reset. This is done by toggling GPIOs belonging
to GPIO2/3 controllers on AM57xx.

Skip resetting ETH PHYs, by adding "ti,no-reset-on-init" to GPIO2/3
controllers DT nodes.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index b2c4451..c538826 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -605,3 +605,13 @@
1 2 0 0
>;
 };
+
+ {
+   status = "okay";
+   ti,no-reset-on-init;
+};
+
+ {
+   status = "okay";
+   ti,no-reset-on-init;
+};
-- 
1.9.1

--
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 5/6] ARM: dts: am57xx: cl-som-am57x: fix CPSW EMAC pinmux

2015-12-30 Thread Dmitry Lifshitz
Fix CPSW EMAC pinmux

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index cb9a518..9e0153a 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -167,7 +167,7 @@
DRA7XX_CORE_IOPAD(0x35b8, PIN_INPUT_PULLDOWN | 
MUX_MODE3) /* vin2a_d20.rgmii1_rd3 */
DRA7XX_CORE_IOPAD(0x35bc, PIN_INPUT_PULLDOWN | 
MUX_MODE3) /* vin2a_d21.rgmii1_rd2 */
DRA7XX_CORE_IOPAD(0x35c0, PIN_INPUT_PULLDOWN | 
MUX_MODE3) /* vin2a_d22.rgmii1_rd1 */
-   DRA7XX_CORE_IOPAD(0x35c4, PIN_INPUT_PULLUP | MUX_MODE3) 
/* vin2a_d23.rgmii1_rd0 */
+   DRA7XX_CORE_IOPAD(0x35c4, PIN_INPUT_PULLDOWN | 
MUX_MODE3) /* vin2a_d23.rgmii1_rd0 */
>;
};
 
-- 
1.9.1

--
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 0/6] ARM: dts: am57xx: cl-som-am57x: set of non critical DT fixes

2015-12-30 Thread Dmitry Lifshitz
This pacth set apply a set of non critical DT fixes for CompuLab CL-SOM-AM57x 
SoM

* Improve Eth functionality
* Pinmux fix for several devices
* Improve SPI flash access
* Set USB2 in HOST mode to enable connection of keyboard/mouse on eval board

Dmitry Lifshitz (6):
  ARM: dts: am57xx: sbc-am57x: fix SB-SOM EEPROM I2C address
  ARM: dts: am57xx: cl-som-am57x: set HOST mode for USB2
  ARM: dts: am57xx: cl-som-am57x: update SPI Flash frequency
  ARM: dts: am57xx: sbc-am57x: fix UART3 pinmux
  ARM: dts: am57xx: cl-som-am57x: fix CPSW EMAC pinmux
  ARM: dts: am57xx: sbc-am57x: correct Eth PHY settings

 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 12 ++--
 arch/arm/boot/dts/am57xx-sbc-am57x.dts|  8 
 2 files changed, 10 insertions(+), 10 deletions(-)

-- 
1.9.1

--
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 2/6] ARM: dts: am57xx: cl-som-am57x: set HOST mode for USB2

2015-12-30 Thread Dmitry Lifshitz
Setup USB2 to act in "HOST" mode by default.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index c538826..513ec62 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -588,7 +588,7 @@
 };
 
  {
-   dr_mode = "peripheral";
+   dr_mode = "host";
 };
 
  {
-- 
1.9.1

--
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 4/6] ARM: dts: am57xx: sbc-am57x: fix UART3 pinmux

2015-12-30 Thread Dmitry Lifshitz
Fix UART3 pinmux.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index 0f1d425..988e996 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -25,8 +25,8 @@
 _pmx_core {
uart3_pins_default: uart3_pins_default {
pinctrl-single,pins = <
-   DRA7XX_CORE_IOPAD(0x37f8, PIN_INPUT_SLEW | MUX_MODE2)   
/* uart2_ctsn.uart3_rxd */
-   DRA7XX_CORE_IOPAD(0x37fc, PIN_INPUT_SLEW | MUX_MODE1)   
/* uart2_rtsn.uart3_txd */
+   DRA7XX_CORE_IOPAD(0x3648, PIN_INPUT_SLEW | MUX_MODE0)   
/* uart3_rxd */
+   DRA7XX_CORE_IOPAD(0x364c, PIN_INPUT_SLEW | MUX_MODE0)   
/* uart3_txd */
>;
};
 
-- 
1.9.1

--
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 6/6] ARM: dts: am57xx: sbc-am57x: correct Eth PHY settings

2015-12-30 Thread Dmitry Lifshitz
Update Eth PHY settings to make it possible to run both phys at 1Gbps.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index 9e0153a..8d93882 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -559,13 +559,13 @@
 
 _emac0 {
phy_id = <_mdio>, <0>;
-   phy-mode = "rgmii";
+   phy-mode = "rgmii-txid";
dual_emac_res_vlan = <0>;
 };
 
 _emac1 {
phy_id = <_mdio>, <1>;
-   phy-mode = "rgmii";
+   phy-mode = "rgmii-txid";
dual_emac_res_vlan = <1>;
 };
 
-- 
1.9.1

--
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 1/6] ARM: dts: am57xx: sbc-am57x: fix SB-SOM EEPROM I2C address

2015-12-30 Thread Dmitry Lifshitz
Fix SB-SOM EEPROM I2C address

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index 77bb8e1..0f1d425 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -108,9 +108,9 @@
pinctrl-0 = <_pins_default>;
clock-frequency = <40>;
 
-   eeprom_base: atmel@50 {
+   eeprom_base: atmel@54 {
compatible = "atmel,24c08";
-   reg = <0x50>;
+   reg = <0x54>;
pagesize = <16>;
};
 
-- 
1.9.1

--
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 3/6] ARM: dts: am57xx: cl-som-am57x: update SPI Flash frequency

2015-12-30 Thread Dmitry Lifshitz
On-board SPI flash cat act at 48Mhz SPI bus frequency.
Update the DT frequency property.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index 513ec62..cb9a518 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -492,14 +492,14 @@
pinctrl-names = "default";
pinctrl-0 = <_pins>;
 
-   spi-max-frequency = <2000>;
+   spi-max-frequency = <4800>;
 
spi_flash: spi_flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "spansion,m25p80", "jedec,spi-nor";
reg = <0>;  /* CS0 */
-   spi-max-frequency = <2000>;
+   spi-max-frequency = <4800>;
 
partition@0 {
label = "uboot";
-- 
1.9.1

--
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


Re: [PATCH 01/18] ARM: am57xx: cl-som-am57x: dts: add basic module support

2015-11-29 Thread Dmitry Lifshitz

Hi Nishanth,

Thank you for the provided feedback.

On 11/25/2015 11:36 PM, Nishanth Menon wrote:

On 11/25/2015 12:39 AM, Dmitry Lifshitz wrote:
[...]


diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
new file mode 100644
index 000..b11d7da
--- /dev/null
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts

[...]


+/ {
+   model = "CompuLab CL-SOM-AM57x";
+   compatible = "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", 
"ti,dra7";
+
+   memory {
+   device_type = "memory";
+   reg = <0x8000 0x2000>; /* 512 MB - minimal 
configuration */


I think if you like to enable LPAE, the format might look a little
different..



We would like to have a basic HW support in the mainline. It might be 
enhanced later, once we get to work on LPAE stuff.



+   };
+
+   leds {
+   compatible = "gpio-leds";
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+
+   led@0 {
+   label = "cl-som-am57x:green";
+   gpios = < 5 GPIO_ACTIVE_HIGH>;
+   linux,default-trigger = "heartbeat";
+   default-state = "off";
+   };
+   };
+};
+
+_pmx_core {
+   leds_pins_default: leds_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x347c, PIN_OUTPUT | MUX_MODE14)  
/* gpmc_a15.gpio2_5 */
+   >;
+   };
+
+   i2c1_pins_default: i2c1_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3800, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c1_sda.sda */
+   DRA7XX_CORE_IOPAD(0x3804, PIN_INPUT_PULLUP | MUX_MODE0) 
/* i2c1_scl.scl */
+   >;
+   };
+
+   tps659038_pins_default: tps659038_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3818, PIN_INPUT_PULLUP | 
MUX_MODE14) /* wakeup0.gpio1_0 */
+   >;
+   };


Generic comment: As per requirements of the SoC -> all pinctrl must be
done in bootloader. this was a recommendation that came in too late
for TI platforms that got introduced in upstream, but that cleanup
should eventually take place as well.



Please, could you provide a reference to those recommendations.
Do you mean pinctrl for PMIC pins only?


+};
+
+ {
+   status = "okay";
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+   clock-frequency = <40>;
+
+   tps659038: tps659038@58 {
+   compatible = "ti,tps659038";
+   reg = <0x58>;
+   interrupt-parent = <>;
+   interrupts = <0 IRQ_TYPE_LEVEL_LOW>;


Also See: https://patchwork.kernel.org/patch/7596541/ ->
Documentation/devicetree/bindings/i2c/i2c.txt -> since you seem to
have a PMIC with power button, you might be able to get wakeup source
also there.



Do you mean just adding "wakeup-source" property?

According to Documentation/devicetree/bindings/i2c/i2c.txt the primary 
interrupt will be used as wakeup interrupt.



+
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+
+   #interrupt-cells = <2>;
+   interrupt-controller;
+
+   ti,system-power-controller;


Assuming powerhold signal and BOOT0,1 is proper here, else poweroff
will never work.



Please, could you provide more details regarding this issue.


+
+   tps659038_pmic {
+   compatible = "ti,tps659038-pmic";
+
+   regulators {
+   smps12_reg: smps12 {
+   /* VDD_MPU */
+   regulator-name = "smps12";
+   regulator-min-microvolt = < 85>;
+   regulator-max-microvolt = <125>;
+   regulator-always-on;
+   regulator-boot-on;
+   };
+
+   smps3_reg: smps3 {
+   /* VDD_DDR */
+   regulator-name = "smps3";
+   regulator-min-microvolt = <150>;
+   regulator-max-microvolt = <150>;
+   regulator-always-on;
+   regulator-boot-on;
+   };
+
+   smps45_

[PATCH 15/18] ARM: am57xx: sbc-am57x: dts: add GPIO extender support

2015-11-24 Thread Dmitry Lifshitz
Add PCA9555 GPIO extender support (over I2C5 bus).

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index 7b65efb..8b7c0b5 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -90,4 +90,11 @@
reg = <0x50>;
pagesize = <16>;
};
+
+   pca9555: pca9555@20 {
+   compatible = "nxp,pca9555";
+   reg = <0x20>;
+   gpio-controller;
+   #gpio-cells = <2>;
+   };
 };
-- 
1.9.1

--
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 18/18] ARM: am57xx: sbc-am57x: dts: add HDMI support

2015-11-24 Thread Dmitry Lifshitz
Add HDMI video output support.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 41 ++
 1 file changed, 41 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index 13555aa..4b29223 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -18,6 +18,7 @@
 
aliases {
display0 = 
+   display1 = 
};
 };
 
@@ -61,6 +62,19 @@
DRA7XX_CORE_IOPAD(0x3564, PIN_OUTPUT | MUX_MODE14)  
/* vin2a_vsync0.gpio4_0 */
>;
};
+
+   hdmi_pins: pinmux_hdmi_pins {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3808, PIN_INPUT | MUX_MODE1)
/* i2c2_sda.hdmi1_ddc_scl */
+   DRA7XX_CORE_IOPAD(0x380c, PIN_INPUT | MUX_MODE1)
/* i2c2_scl.hdmi1_ddc_sda */
+   >;
+   };
+
+   hdmi_conn_pins: pinmux_hdmi_conn_pins {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x37b8, PIN_INPUT | MUX_MODE14)   
/* spi1_cs2.gpio7_12 */
+   >;
+   };
 };
 
  {
@@ -136,3 +150,30 @@
};
};
 };
+
+ {
+   status = "ok";
+   vdda-supply = <_reg>;
+
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins>;
+
+   port {
+   hdmi_out: endpoint {
+   remote-endpoint = <_connector_in>;
+   };
+   };
+};
+
+_conn {
+   pinctrl-names = "default";
+   pinctrl-0 = <_conn_pins>;
+
+   hpd-gpios = < 12 GPIO_ACTIVE_HIGH>;
+
+   port {
+   hdmi_connector_in: endpoint {
+   remote-endpoint = <_out>;
+   };
+   };
+};
-- 
1.9.1

--
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 16/18] ARM: am57xx: sbc-am57x: dts: add LCD support

2015-11-24 Thread Dmitry Lifshitz
Startek-kd050c 800x480 LCD panel timings are described in
compulab-sb-som.dtsi.

Add appropriate DT endpoints to connect DPI output and LCD.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-sbc-am57x.dts | 38 ++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-sbc-am57x.dts 
b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
index 8b7c0b5..13555aa 100644
--- a/arch/arm/boot/dts/am57xx-sbc-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-sbc-am57x.dts
@@ -15,6 +15,10 @@
 / {
model = "CompuLab CL-SOM-AM57x on SB-SOM-AM57x";
compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", 
"ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
+
+   aliases {
+   display0 = 
+   };
 };
 
 _pmx_core {
@@ -51,6 +55,12 @@
DRA7XX_CORE_IOPAD(0x36b8, PIN_INPUT| MUX_MODE10)
/* mcasp1_axr1.i2c5_scl */
>;
};
+
+   lcd_pins_default: lcd_pins_default {
+   pinctrl-single,pins = <
+   DRA7XX_CORE_IOPAD(0x3564, PIN_OUTPUT | MUX_MODE14)  
/* vin2a_vsync0.gpio4_0 */
+   >;
+   };
 };
 
  {
@@ -98,3 +108,31 @@
#gpio-cells = <2>;
};
 };
+
+ {
+   status = "ok";
+
+   vdda_video-supply = <_reg>;
+
+   port {
+   dpi_lcd_out: endpoint@0 {
+   remote-endpoint = <_in>;
+   data-lines = <24>;
+   };
+   };
+};
+
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_default>;
+
+   enable-gpios = < 14 GPIO_ACTIVE_HIGH
+0 GPIO_ACTIVE_HIGH>;
+
+   port {
+   lcd_in: endpoint {
+   remote-endpoint = <_lcd_out>;
+   data-lines = <24>;
+   };
+   };
+};
-- 
1.9.1

--
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 07/18] ARM: am57xx: cl-som-am57x: dts: add dual EMAC support

2015-11-24 Thread Dmitry Lifshitz
Add dual EMAC support.

Signed-off-by: Dmitry Lifshitz <lifsh...@compulab.co.il>
Acked-by: Igor Grinberg <grinb...@compulab.co.il>
---
 arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 105 ++
 1 file changed, 105 insertions(+)

diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
index cf2328d..a838ea4 100644
--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
@@ -104,6 +104,85 @@
DRA7XX_CORE_IOPAD(0x34bc, PIN_INPUT_PULLUP | MUX_MODE1) 
/* gpmc_cs3.qspi1_cs1 */
>;
};
+
+   cpsw_pins_default: cpsw_pins_default {
+   pinctrl-single,pins = <
+   /* Slave 1 */
+   DRA7XX_CORE_IOPAD(0x3650, PIN_OUTPUT | MUX_MODE0)   
/* rgmii1_tclk */
+   DRA7XX_CORE_IOPAD(0x3654, PIN_OUTPUT | MUX_MODE0)   
/* rgmii1_tctl */
+   DRA7XX_CORE_IOPAD(0x3658, PIN_OUTPUT | MUX_MODE0)   
/* rgmii1_td3 */
+   DRA7XX_CORE_IOPAD(0x365c, PIN_OUTPUT | MUX_MODE0)   
/* rgmii1_td2 */
+   DRA7XX_CORE_IOPAD(0x3660, PIN_OUTPUT | MUX_MODE0)   
/* rgmii1_td1 */
+   DRA7XX_CORE_IOPAD(0x3664, PIN_OUTPUT | MUX_MODE0)   
/* rgmii1_td0 */
+   DRA7XX_CORE_IOPAD(0x3668, PIN_INPUT | MUX_MODE0)
/* rgmii1_rclk */
+   DRA7XX_CORE_IOPAD(0x366c, PIN_INPUT | MUX_MODE0)
/* rgmii1_rctl */
+   DRA7XX_CORE_IOPAD(0x3670, PIN_INPUT | MUX_MODE0)
/* rgmii1_rd3 */
+   DRA7XX_CORE_IOPAD(0x3674, PIN_INPUT | MUX_MODE0)
/* rgmii1_rd2 */
+   DRA7XX_CORE_IOPAD(0x3678, PIN_INPUT | MUX_MODE0)
/* rgmii1_rd1 */
+   DRA7XX_CORE_IOPAD(0x367c, PIN_INPUT | MUX_MODE0)
/* rgmii1_rd0 */
+
+   /* Slave 2 */
+   DRA7XX_CORE_IOPAD(0x3598, PIN_OUTPUT | MUX_MODE3)   
/* rgmii2_tclk */
+   DRA7XX_CORE_IOPAD(0x359c, PIN_OUTPUT | MUX_MODE3)   
/* rgmii2_tctl */
+   DRA7XX_CORE_IOPAD(0x35a0, PIN_OUTPUT | MUX_MODE3)   
/* rgmii2_td3 */
+   DRA7XX_CORE_IOPAD(0x35a4, PIN_OUTPUT | MUX_MODE3)   
/* rgmii2_td2 */
+   DRA7XX_CORE_IOPAD(0x35a8, PIN_OUTPUT | MUX_MODE3)   
/* rgmii2_td1 */
+   DRA7XX_CORE_IOPAD(0x35ac, PIN_OUTPUT | MUX_MODE3)   
/* rgmii2_td0 */
+   DRA7XX_CORE_IOPAD(0x35b0, PIN_INPUT | MUX_MODE3)
/* rgmii2_rclk */
+   DRA7XX_CORE_IOPAD(0x35b4, PIN_INPUT | MUX_MODE3)
/* rgmii2_rctl */
+   DRA7XX_CORE_IOPAD(0x35b8, PIN_INPUT | MUX_MODE3)
/* rgmii2_rd3 */
+   DRA7XX_CORE_IOPAD(0x35bc, PIN_INPUT | MUX_MODE3)
/* rgmii2_rd2 */
+   DRA7XX_CORE_IOPAD(0x35c0, PIN_INPUT | MUX_MODE3)
/* rgmii2_rd1 */
+   DRA7XX_CORE_IOPAD(0x35c4, PIN_INPUT | MUX_MODE3)
/* rgmii2_rd0 */
+   >;
+   };
+
+   cpsw_pins_sleep: cpsw_pins_sleep {
+   pinctrl-single,pins = <
+   /* Slave 1 */
+   DRA7XX_CORE_IOPAD(0x3650, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3654, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3658, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x365c, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3660, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3664, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3668, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x366c, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3670, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3674, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x3678, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x367c, PIN_INPUT | MUX_MODE15)
+
+   /* Slave 2 */
+   DRA7XX_CORE_IOPAD(0x3598, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x359c, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35a0, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35a4, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35a8, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35ac, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35b0, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35b4, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35b8, PIN_INPUT | MUX_MODE15)
+   DRA7XX_CORE_IOPAD(0x35bc

  1   2   >