imx27: pinctrl: GPIO set output value failed

2014-01-13 Thread Chris Ruehl
Hi, some kind of weired problem: some GPIO's can modified via /sysfs others cannot Working OK [1.553601] imx27-pinctrl 10015000.iomuxc: imx1_pmx_enable, pin 0x9, function 0, gpio 1, direction 1, oconf 3, iconfa 0, iconfb 0 [1.553657] imx27-pinctrl 10015000.iomuxc: write: register

Re: [PATCH 1/3] usb: phy-generic: Add GPIO based ChipSelect

2013-12-08 Thread Chris Ruehl
On Saturday, December 07, 2013 04:24 AM, Felipe Balbi wrote: Hi, On Mon, Dec 02, 2013 at 03:05:17PM +0800, Chris Ruehl wrote: @@ -231,27 +249,40 @@ static int usb_phy_gen_xceiv_probe(struct platform_device *pdev) return -ENOMEM; nop-reset_active_low = true

Re: [PATCH 1/3] usb: phy-generic: Add GPIO based ChipSelect

2013-12-08 Thread Chris Ruehl
On Monday, December 09, 2013 12:07 PM, Felipe Balbi wrote: Hi, On Mon, Dec 09, 2013 at 09:45:30AM +0800, Chris Ruehl wrote: On Saturday, December 07, 2013 04:24 AM, Felipe Balbi wrote: Hi, On Mon, Dec 02, 2013 at 03:05:17PM +0800, Chris Ruehl wrote: @@ -231,27 +249,40 @@ static int

Re: [PATCH 3/3] usb: phy-generic: Add ULPI VBUS support

2013-12-04 Thread Chris Ruehl
On Wednesday, December 04, 2013 05:49 PM, Heikki Krogerus wrote: Hi Chris, On Wed, Dec 04, 2013 at 03:16:21PM +0800, Chris Ruehl wrote: On Tuesday, December 03, 2013 04:15 PM, Heikki Krogerus wrote: On Mon, Dec 02, 2013 at 03:05:19PM +0800, Chris Ruehl wrote: @@ -154,6 +164,27 @@ int

Re: [PATCH 3/3] usb: phy-generic: Add ULPI VBUS support

2013-12-03 Thread Chris Ruehl
On Tuesday, December 03, 2013 04:15 PM, Heikki Krogerus wrote: On Mon, Dec 02, 2013 at 03:05:19PM +0800, Chris Ruehl wrote: @@ -154,6 +164,27 @@ int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_gen_xceiv *nop, { int err; + if (nop-ulpi_vbus 0

Re: [PATCH 3/3] usb: phy-generic: Add ULPI VBUS support

2013-12-02 Thread Chris Ruehl
On Tuesday, December 03, 2013 02:22 AM, Mark Rutland wrote: On Mon, Dec 02, 2013 at 07:05:19AM +, Chris Ruehl wrote: usb: phy-generic: Add ULPI VBUS support Some platforms need to set the VBUS parameters of the ULPI like ISP1504 which interact with overcurrent protection and power switch

[PATCH 1/3] usb: phy-generic: Add GPIO based ChipSelect

2013-12-01 Thread Chris Ruehl
-by: Chris Ruehl chris.ru...@gtsys.com.hk --- drivers/usb/phy/phy-generic.c | 31 +++ drivers/usb/phy/phy-generic.h |2 ++ 2 files changed, 33 insertions(+) diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index fce3a9e..ff4d68c 100644

[PATCH 2/3] usb: phy-ulpi: Add EXTVBUSIND,CHRGVBUS flag support

2013-12-01 Thread Chris Ruehl
usb: phy-ulpi: Add EXTVBUSIND,CHRGVBUS flag support ULPI like ISP1504 support external vbus power indication used in combination with vbus switches mic2075. Signed-off-by: Chris Ruehl chris.ru...@gtsys.com.hk --- drivers/usb/phy/phy-ulpi.c | 11 ++- 1 file changed, 10 insertions(+), 1

[PATCH] usb: phy-generic, phy-ulpi patch set

2013-12-01 Thread Chris Ruehl
* EXTVBUSIND * CHRGVBUS of the ULPI. Signed-off-by: Chris Ruehl chris.ru...@gtsys.com.hk --- -- To unsubscribe from this list: send the line unsubscribe devicetree in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 3/3] usb: phy-generic: Add ULPI VBUS support

2013-12-01 Thread Chris Ruehl
= pinctrl_usbphy0 pinctrl_usbotg1; ulpi_set_vbus = 0x0f; }; Please refer to the phy-bindings.txt for the value of ulpi_set_vbus commit with this patch. Signed-off-by: Chris Ruehl chris.ru...@gtsys.com.hk --- .../devicetree/bindings/phy/phy-bindings.txt | 15 ++ drivers/usb/phy/phy

Re: [PATCH] pinctrl: imx1-core populate subdevices

2013-11-27 Thread Chris Ruehl
On Wednesday, November 27, 2013 03:31 PM, Markus Pargmann wrote: Hi, On Wed, Nov 27, 2013 at 11:33:15AM +0800, Chris Ruehl wrote: On Wednesday, November 20, 2013 04:01 AM, Linus Walleij wrote: On Mon, Nov 11, 2013 at 7:19 PM, Markus Pargmannm...@pengutronix.de wrote: Support gpio

DT imx27 I2C cannot detect

2013-11-27 Thread Chris Ruehl
Hi, sorry for the noise, but I stuck in a problem and not see whats the reason. (old 2.6.22 kernel works) I have a ov2640 patched for dt-support run on 0x30 at i2c1 with a power-enable gpio. Pinctrl setup: pinctrl_i2c1: i2c1-1 { fsl,pins =

Re: [PATCH] pinctrl: imx1-core populate subdevices

2013-11-26 Thread Chris Ruehl
On Wednesday, November 20, 2013 04:01 AM, Linus Walleij wrote: On Mon, Nov 11, 2013 at 7:19 PM, Markus Pargmannm...@pengutronix.de wrote: Support gpio devicetree subnodes to allow a more detailed DT hardware description. Signed-off-by: Markus Pargmannm...@pengutronix.de Looks good to me.

Re: [PATCH] pinctrl: imx1-core populate subdevices

2013-11-26 Thread Chris Ruehl
On Wednesday, November 27, 2013 11:33 AM, Chris Ruehl wrote: On Wednesday, November 20, 2013 04:01 AM, Linus Walleij wrote: On Mon, Nov 11, 2013 at 7:19 PM, Markus Pargmannm...@pengutronix.de wrote: Support gpio devicetree subnodes to allow a more detailed DT hardware description. Signed

Re: IMX27: How to do 22k pull-up with the pinctrl ?

2013-11-12 Thread Chris Ruehl
On Monday, November 11, 2013 08:03 PM, Mark Rutland wrote: On Mon, Nov 11, 2013 at 10:45:30AM +, Chris Ruehl wrote: Hi, Hi, While this does involve device tree, it's not strictly a device tree problem, and the people best placed to answer your question don't seem to be on Cc. You'd get

Re: IMX27: How to do 22k pull-up with the pinctrl ?

2013-11-12 Thread Chris Ruehl
On Monday, November 11, 2013 10:26 PM, Shawn Guo wrote: Copy Markus who is working on imx27 pinctrl driver. On Mon, Nov 11, 2013 at 12:03:57PM +, Mark Rutland wrote: On Mon, Nov 11, 2013 at 10:45:30AM +, Chris Ruehl wrote: Hi, Hi, While this does involve device tree, it's

Re: IMX27: How to do 22k pull-up with the pinctrl ?

2013-11-12 Thread Chris Ruehl
On Monday, November 11, 2013 10:29 PM, Linus Walleij wrote: On Mon, Nov 11, 2013 at 1:03 PM, Mark Rutlandmark.rutl...@arm.com wrote: On Mon, Nov 11, 2013 at 10:45:30AM +, Chris Ruehl wrote: while I port the static code to the DT I step into the problem to set the PSCR for the sdhc2

Re: IMX27: How to do 22k pull-up with the pinctrl ?

2013-11-12 Thread Chris Ruehl
On Tuesday, November 12, 2013 12:21 AM, Markus Pargmann wrote: On Mon, Nov 11, 2013 at 10:26:41PM +0800, Shawn Guo wrote: Copy Markus who is working on imx27 pinctrl driver. On Mon, Nov 11, 2013 at 12:03:57PM +, Mark Rutland wrote: On Mon, Nov 11, 2013 at 10:45:30AM +, Chris Ruehl

IMX27: How to do 22k pull-up with the pinctrl ?

2013-11-11 Thread Chris Ruehl
Hi, while I port the static code to the DT I step into the problem to set the PSCR for the sdhc2 ports to 22k pull-up I look for something like described in pinctrl/fsl,imx-pinctrl.txt the fsl,imx27-pinctrl only say 0/1 dis/enable pull up but not the strength. pinctrl_sdhc2_1: sdhc2-1 {

Re: I2C add ov2640 ?

2013-11-07 Thread Chris Ruehl
On Friday, November 08, 2013 02:08 AM, Fabio Estevam wrote: On Thu, Nov 7, 2013 at 4:28 AM, Chris Ruehlchris.ru...@gtsys.com.hk wrote: c) in the patch dev_err(adapter-dev, OV2640 Not probed mclk missing\n); give me the hint was wrong. from your conversation with Sascha Hauer

Re: I2C add ov2640 ?

2013-11-06 Thread Chris Ruehl
Hi Fabio On Tuesday, November 05, 2013 06:58 PM, Fabio Estevam wrote: Hi Chris, On Tue, Nov 5, 2013 at 8:04 AM, Chris Ruehlchris.ru...@gtsys.com.hk wrote: Seams I got it. Will try that patch tomorrow and send a proper patch-set when done. Don't you need to retrieve the regulators from dt

I2C add ov2640 ?

2013-11-04 Thread Chris Ruehl
Hi, we continuing moving our board (imx27) to the devicetree implementation, and find nothing howto deal with the ov2640 connect via i2c(0x30) and CSI interface to the Freescale SoC. Here is what I did: i2c1 { status = okay; clock-frequency = 40; cmos@30 {

imx27 bindings/pinctrl

2013-10-30 Thread Chris Ruehl
Hi I workout a port of our imx27 board to fdt, the current kernel I work with 3.12-rc7 didn't have yet the fsl,imx27-pinctrl.txt and other files needed to make the pinctrl work for me. Can someone be so kind to give me a git:// repository to work with or the patch that i can use to patch my