Re: [RESEND PATCH V2 1/2] ARM: dts: AM33xx: Add RNG node

2013-10-16 Thread Lokesh Vutla
Hi Benoit, On Tuesday 15 October 2013 12:19 PM, Benoit Cousson wrote: Hi Lokesh, On 12/10/2013 15:26, Lokesh Vutla wrote: Hi Benoit, On Thursday 29 August 2013 06:22 PM, Lokesh Vutla wrote: Add the AM33xx RNG module's device tree data. Also add Documentation file describing the data for

Re: [PATCH 1/1] gpio/omap: use gpiolib API to mark a GPIO used as an IRQ

2013-10-16 Thread Linus Walleij
On Wed, Oct 16, 2013 at 2:47 AM, Javier Martinez Canillas javier.marti...@collabora.co.uk wrote: The OMAP GPIO driver keeps track about GPIO pins that are used as IRQ lines for two reasons: 1) To prevent GPIO banks to be disabled while one of their GPIO pins are only used as an interrupt

Re: [PATCH 1/1] gpio/omap: use gpiolib API to mark a GPIO used as an IRQ

2013-10-16 Thread Javier Martinez Canillas
On 10/16/2013 10:06 AM, Linus Walleij wrote: On Wed, Oct 16, 2013 at 2:47 AM, Javier Martinez Canillas javier.marti...@collabora.co.uk wrote: The OMAP GPIO driver keeps track about GPIO pins that are used as IRQ lines for two reasons: 1) To prevent GPIO banks to be disabled while one of

Re: [RESEND PATCH V2 1/2] ARM: dts: AM33xx: Add RNG node

2013-10-16 Thread Lokesh Vutla
+ Rob and Mark On Tuesday 15 October 2013 12:19 PM, Benoit Cousson wrote: Hi Lokesh, On 12/10/2013 15:26, Lokesh Vutla wrote: Hi Benoit, On Thursday 29 August 2013 06:22 PM, Lokesh Vutla wrote: Add the AM33xx RNG module's device tree data. Also add Documentation file describing the data

Re: [PATCH] ARM: dts: OMAP5: Add i2c aliases

2013-10-16 Thread Rajendra Nayak
On Tuesday 15 October 2013 10:30 PM, Nishanth Menon wrote: Currently, i2c1 and i2c5 defer probe due to pinctrl dependencies. This changes the i2c ID each bus is registered with in i2c-dev interface. As a result of this, many userspace tools break and there is no consistent manner to fix the

Re: [PATCH v2 2/3] hwrng: OMAP3 ROM Random Number Generator support

2013-10-16 Thread Herbert Xu
On Tue, Oct 08, 2013 at 12:04:09PM -0700, Tony Lindgren wrote: * Pali Rohár pali.ro...@gmail.com [130920 06:33]: This driver provides kernel-side support for the Random Number Generator hardware found on OMAP34xx processors. This driver comes from Maemo 2.6.28 kernel and was tested on

Re: [PATCH] ARM: dts: OMAP5: Add i2c aliases

2013-10-16 Thread Nishanth Menon
On 10/16/2013 06:37 AM, Rajendra Nayak wrote: On Tuesday 15 October 2013 10:30 PM, Nishanth Menon wrote: Currently, i2c1 and i2c5 defer probe due to pinctrl dependencies. This changes the i2c ID each bus is registered with in i2c-dev interface. As a result of this, many userspace tools break

Re: [PATCH v2 1/7] usb: dwc3: get usb_phy only if the platform indicates the presence of PHY's

2013-10-16 Thread Roger Quadros
Hi Kishon, On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: There can be systems which does not have a external usb_phy, so get usb_phy only if dt data indicates the presence of PHY in the case of dt boot or if platform_data indicates the presence of PHY. Also remove checking if return

Re: [PATCH v2 1/7] usb: dwc3: get usb_phy only if the platform indicates the presence of PHY's

2013-10-16 Thread Kishon Vijay Abraham I
Hi roger, On Wednesday 16 October 2013 06:33 PM, Roger Quadros wrote: Hi Kishon, On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: There can be systems which does not have a external usb_phy, so get usb_phy only if dt data indicates the presence of PHY in the case of dt boot or if

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

2013-10-16 Thread Kishon Vijay Abraham I
Benoit, On Tuesday 15 October 2013 11:19 AM, 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. Currently dwc3 driver doesn't have support for OTG mode. So explicitly setting to peripheral even dwc3 is

Re: [PATCH 1/2] ARM: dts: omap5-uevm: remove always_on, boot_on from smps10_out1

2013-10-16 Thread Kishon Vijay Abraham I
Benoit, On Thursday 10 October 2013 04:19 PM, Kishon Vijay Abraham I wrote: smps10 should be enabled only in the case of host mode. So stop doing always_on, boot_on from smps10_out1. The driver will enable it in host mode. Can you take this patch too? Thanks Kishon Signed-off-by: Kishon

Re: [PATCH v2 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-10-16 Thread Roger Quadros
Hi, On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, power_on and power_off the following APIs are used phy_init(), phy_exit(), phy_power_on() and phy_power_off(). However using the old USB phy library wont be

Re: [PATCH] PM/AVS: SmartReflex: fix fake probe success on debugfs fail

2013-10-16 Thread Nishanth Menon
On 10/16/2013 06:40 AM, Vishwanathrao Badarkhe, Manish wrote: From: Vishwanathrao Badarkhe, Manish manish...@ti.com Currently, probe returns success(0) on debugfs_create_dir function call failed. Return proper error on debugfs_create_dir call failed. Signed-off-by: Vishwanathrao Badarkhe,

Re: [PATCH 1/2] ARM: dts: omap5-uevm: remove always_on, boot_on from smps10_out1

2013-10-16 Thread Nishanth Menon
On 10/16/2013 08:17 AM, Kishon Vijay Abraham I wrote: Benoit, On Thursday 10 October 2013 04:19 PM, Kishon Vijay Abraham I wrote: smps10 should be enabled only in the case of host mode. So stop doing always_on, boot_on from smps10_out1. The driver will enable it in host mode. Can you

Re: [PATCH v2 1/7] usb: dwc3: get usb_phy only if the platform indicates the presence of PHY's

2013-10-16 Thread Roger Quadros
On 10/16/2013 04:10 PM, Kishon Vijay Abraham I wrote: Hi roger, On Wednesday 16 October 2013 06:33 PM, Roger Quadros wrote: Hi Kishon, On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: There can be systems which does not have a external usb_phy, so get usb_phy only if dt data

Re: [PATCH v2 4/7] drivers: phy: usb3/pipe3: Adapt pipe3 driver to Generic PHY Framework

2013-10-16 Thread Roger Quadros
Hi, On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: Adapted omap-usb3 PHY driver to Generic PHY Framework and moved phy-omap-usb3 driver in drivers/usb/phy to drivers/phy and also renamed the file to phy-ti-pipe3 since this same driver will be used for SATA PHY and PCIE PHY.

Re: [PATCH v2 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-10-16 Thread Kishon Vijay Abraham I
Hi, On Wednesday 16 October 2013 06:48 PM, Roger Quadros wrote: Hi, On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, power_on and power_off the following APIs are used phy_init(), phy_exit(), phy_power_on() and

Re: [PATCH v2 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-10-16 Thread Roger Quadros
On 10/16/2013 04:52 PM, Kishon Vijay Abraham I wrote: Hi, On Wednesday 16 October 2013 06:48 PM, Roger Quadros wrote: Hi, On 10/15/2013 10:54 PM, Kishon Vijay Abraham I wrote: Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, power_on and power_off the following APIs

Re: [PATCH] PM/AVS: SmartReflex: fix fake probe success on debugfs fail

2013-10-16 Thread Manish Badarkhe
Hi Nishanth On Wed, Oct 16, 2013 at 6:54 PM, Nishanth Menon n...@ti.com wrote: On 10/16/2013 06:40 AM, Vishwanathrao Badarkhe, Manish wrote: From: Vishwanathrao Badarkhe, Manish manish...@ti.com Currently, probe returns success(0) on debugfs_create_dir function call failed. Return proper

Re: [PATCH] PM/AVS: SmartReflex: fix fake probe success on debugfs fail

2013-10-16 Thread Nishanth Menon
On Wed, Oct 16, 2013 at 9:24 AM, Manish Badarkhe badarkhe.man...@gmail.com wrote: IMHO, fail of creation of debugfs is not reason enough to fail the probe - further, this code needs a major revamp to work with device tree. Yes, fail of debugfs creation should not be enough reason to fail

Re: [RESEND PATCH v3 03/11] ASoC: davinci-mcasp: Add DMA register locations to DT

2013-10-16 Thread Mark Rutland
On Thu, Oct 10, 2013 at 06:29:59PM +0100, Peter Ujfalusi wrote: On 10/10/2013 07:59 PM, Mark Rutland wrote: No, they're not actually of much practical use to us at the minute but it was generally felt better to include the information and not use it so that if someone does come up with a

[PATCH 3/6] ARM: dts: am335x-boneblack: mark eMMC as non removable

2013-10-16 Thread Balaji T K
From: Sekhar Nori nsek...@ti.com Mark the eMMC module on BeagleBone black as non removable. Signed-off-by: Sekhar Nori nsek...@ti.com Signed-off-by: Balaji T K balaj...@ti.com --- arch/arm/boot/dts/am335x-boneblack.dts |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[PATCH 4/6] ARM: dts: dra7-evm: mark eMMC as non removable

2013-10-16 Thread Balaji T K
Mark the eMMC on dra7-evm as non removable. Signed-off-by: Balaji T K balaj...@ti.com --- arch/arm/boot/dts/dra7-evm.dts |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index 3abf5f4..799890f 100644 ---

[PATCH 5/6] ARM: dts: am335x-boneblack: remove unused ti,vcc-aux-disable-is-sleep

2013-10-16 Thread Balaji T K
ti,vcc-aux-disable-is-sleep property does not exist, so remove it. Signed-off-by: Balaji T K balaj...@ti.com --- arch/arm/boot/dts/am335x-boneblack.dts |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/boot/dts/am335x-boneblack.dts

[PATCH 1/6] mmc: omap_hsmmc: start using generic non-removable DT binding

2013-10-16 Thread Balaji T K
From: Sekhar Nori nsek...@ti.com add generic non-removable binding support for omap_hsmmc Signed-off-by: Sekhar Nori nsek...@ti.com Signed-off-by: Balaji T K balaj...@ti.com --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt |2 +- drivers/mmc/host/omap_hsmmc.c |

[PATCH 2/6] ARM: dts: OMAP4/5: start using generic binding for non-removable mmc cards

2013-10-16 Thread Balaji T K
From: Sekhar Nori nsek...@ti.com start using generic non-removable dt binding Signed-off-by: Sekhar Nori nsek...@ti.com Signed-off-by: Balaji T K balaj...@ti.com --- arch/arm/boot/dts/omap4-var-som.dts |2 +- arch/arm/boot/dts/omap5-uevm.dts|4 ++-- 2 files changed, 3 insertions(+),

[PATCH 0/6] mmc: omap_hsmmc: start using generic non-removable DT binding

2013-10-16 Thread Balaji T K
start using generic non-removable DT binding and few cleanups for am335x-boneblack.dts and omap4-var-som.dts. Dropped changes for omap4-sdp and omap4-panda-common.dtsi from Sekhar Nori's series [1] as non-removable already exist for mmc5 on omap4-sdp and omap4-panda-common.dtsi and

[PATCH 6/6] ARM: dts: omap4-var-some: fix bus-width

2013-10-16 Thread Balaji T K
ti,bus-width does not exist, use generic bus-width binding Signed-off-by: Balaji T K balaj...@ti.com --- arch/arm/boot/dts/omap4-var-som.dts |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/boot/dts/omap4-var-som.dts b/arch/arm/boot/dts/omap4-var-som.dts index

[PATCH V7 8/8] ARM: dts: OMAP3: add clock nodes for CPU

2013-10-16 Thread Nishanth Menon
OMAP34xx and OMAP36xx platforms use dpll1 clock. Add same to common definition. AM33XX, OMAP443x, OMAP446x and OMAP447x platforms use dpll_mpu clock Add same to common definition. OMAP5, DRA7 platforms use dpll_mpu_ck clock for CPU. Add same to common definition. Cc: Benoit Cousson

[PATCH V7 4/8] ARM: dts: omap5-uevm: add smps123 supply for CPU

2013-10-16 Thread Nishanth Menon
regulator smps123 supply from Palmas PMIC powers CPU0 on OMAP5uEVM. Based on a patch by J Keerthy j-keer...@ti.com Signed-off-by: Nishanth Menon n...@ti.com --- arch/arm/boot/dts/omap5-uevm.dts |4 arch/arm/boot/dts/omap5.dtsi |2 +- 2 files changed, 5 insertions(+), 1

[PATCH V7 0/8] ARM: OMAP3+: support cpufreq-cpu0 for device tree boot

2013-10-16 Thread Nishanth Menon
Hi, This series enables the use of cpufreq-cpu0 generic driver for all OMAP and related derivatives. Only patch#8 in the series, which introduces CPU clock nodes, depends on Tero's V8 patch series for clock nodes[1] I will stop copy pasting the series complete history and point at [2]. Main

[PATCH V7 6/8] ARM: dts: OMAP5: Add CPU OPP table

2013-10-16 Thread Nishanth Menon
From: J Keerthy j-keer...@ti.com Add DT OPP table for OMAP54xx family of devices. This data is decoded by OF with of_init_opp_table() helper function. The data is based on OMAP543x ES2.0 DM Operating Condition Addendum Version 0.6(April 2013) NOTE: The voltage and frequency values work well

[PATCH V7 2/8] ARM: OMAP2+: add missing lateinit hook for calling pm late init

2013-10-16 Thread Nishanth Menon
AM335x, AM43xx, OMAP5 and DRA7 have missing late init hook. Introduce SoC specific hook with a call to OMAP2+ generic lateinit hook. This allows the generic late initializations such as cpufreq hooks to be active. Based on out-of-tree patches that need to be introduced in mainline, this

[PATCH V7 3/8] ARM: OMAP3+: use cpu0-cpufreq driver in device tree supported boot

2013-10-16 Thread Nishanth Menon
With OMAP3+ and AM33xx supported SoC having defined CPU device tree entries with operating-points and clock nodes defined, we can now use the SoC generic cpufreq-cpu0 driver by registering appropriate device. Cc: Benoit Cousson bcous...@baylibre.com Cc: Kevin Hilman khil...@deeprootsystems.com

[PATCH V7 5/8] ARM: dts: dra7-evm: add smps123 supply for CPU

2013-10-16 Thread Nishanth Menon
From: J Keerthy j-keer...@ti.com regulator smps123 supply from Palmas PMIC powers CPU0 on DRA7 EVM. [n...@ti.com: rebase to latest] Signed-off-by: Nishanth Menon n...@ti.com Signed-off-by: J Keerthy j-keer...@ti.com --- arch/arm/boot/dts/dra7-evm.dts |4 arch/arm/boot/dts/dra7.dtsi

[PATCH V7 1/8] ARM: OMAP3+: do not register non-dt OPP tables for device tree boot

2013-10-16 Thread Nishanth Menon
OMAP3+ supports both device tree and non-device tree boot. Device tree bindings for OMAP3+ is supposed to be added via dts following: Documentation/devicetree/bindings/power/opp.txt Since we now have device tree entries for OMAP3+ cpu OPPs, The current code wrongly adds duplicate OPPs. So, dont

[PATCH V7 7/8] ARM: dts: DRA7: Add CPU OPP table

2013-10-16 Thread Nishanth Menon
From: J Keerthy j-keer...@ti.com Add DT OPP table for DRA7xx family of devices. This data is decoded by OF with of_init_opp_table() helper function. The data is based on DRA75x, DRA74x Data Manual revision F (Sept 2013). TODO: add OPP_HIGH after AVS-Class0 is functional NOTE: The voltage and

Re: [RESEND PATCH v3 03/11] ASoC: davinci-mcasp: Add DMA register locations to DT

2013-10-16 Thread Jyri Sarha
On 10/16/2013 06:04 PM, Mark Rutland wrote: On Thu, Oct 10, 2013 at 06:29:59PM +0100, Peter Ujfalusi wrote: On 10/10/2013 07:59 PM, Mark Rutland wrote: No, they're not actually of much practical use to us at the minute but it was generally felt better to include the information and not use it

RE: [PATCH v9 0/9] mtd:nand:omap2: clean-up of supported ECC schemes

2013-10-16 Thread Gupta, Pekon
Hi Brian, *changes v8 - v9* [PATCH 1/9] no update from [PATCH v8 1/6] [PATCH 2/9] only commit log updated from [PATCH v8 2/6] As per feedbacks from Brian Norris computersforpe...@gmail.com previous revision [PATCH v8 3/6] and [PATCH 4/6] are split into following sub-patches: - [PATCH

[PATCH V2 0/2] ARM: dts: OMAP2+: add i2c aliases

2013-10-16 Thread Nishanth Menon
Add i2c aliases for OMAP and AM processor dts nodes to ensure proper i2c ordering. Based on Benoit's for_13/dts branch[1] Changes in V2: - Following Rajendra's suggestion, done for all OMAP and AM series SoCs, where i2c is defined. V1:

[PATCH V2 1/2] ARM: dts: OMAP3+: Add i2c aliases

2013-10-16 Thread Nishanth Menon
Currently, on OMAP5, i2c1 and i2c5 defer probe due to pinctrl dependencies. This changes the i2c ID each bus is registered with in i2c-dev interface. As a result of this, many userspace tools break and there is no consistent manner to fix the same if the i2c dev interface have no consistent

[PATCH V2 2/2] ARM: dts: AM33xx+: Add i2c aliases

2013-10-16 Thread Nishanth Menon
Provide alias to allow ordering the i2c devices correctly. Signed-off-by: Nishanth Menon n...@ti.com --- arch/arm/boot/dts/am33xx.dtsi |3 +++ arch/arm/boot/dts/am4372.dtsi |3 +++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi

Re: [PATCH v9 3/9] mtd: nand: omap: cleanup: replace local references with generic framework names

2013-10-16 Thread Brian Norris
Hi Pekon, On Tue, Oct 15, 2013 at 11:19:51AM +0530, Pekon Gupta wrote: This patch updates following in omap_nand_probe() and omap_nand_remove() - replaces info-nand with nand_chip (struct nand_chip *nand_chip) - replaces info-mtd with mtd (struct mtd_info *mtd) - white-space and formatting

[GIT PULL] ARM: OMAP2: add AM43xx hwmod and PRCM support

2013-10-16 Thread Paul Walmsley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Tony, The following changes since commit ace1e3ec4a2540c783e65884bb7be9cd45a0a295: ARM: AM33xx: hwmod: Add RNG module data (2013-10-09 09:02:51 -0600) are available in the git repository at:

Re: [PATCH v9 4/9] mtd: nand: omap: enable auto-detection of bus-width for omap-nand drivers

2013-10-16 Thread Brian Norris
On Tue, Oct 15, 2013 at 11:19:52AM +0530, Pekon Gupta wrote: Autodetection of NAND device bus-width was added in generic NAND driver as part of following commit commit 64b37b2a63eb2f80b65c7185f0013f8ffc637ae3 Author: Matthieu CASTET matthieu.cas...@parrot.com AuthorDate:

Re: [PATCH v9 5/9] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-10-16 Thread Brian Norris
On Tue, Oct 15, 2013 at 11:19:53AM +0530, Pekon Gupta wrote: current implementation in omap3_init_bch() has some redundant code like: (1) omap3_init_bch() re-probes the DT-binding to detect presence of ELM h/w engine on SoC. And based on that it selects implemetation of ecc-scheme.

Re: [PATCH v9 6/9] mtd: nand: omap: clean-up ecc layout for BCH ecc schemes

2013-10-16 Thread Brian Norris
On Tue, Oct 15, 2013 at 11:19:54AM +0530, Pekon Gupta wrote: In current implementation omap3_init_bch_tail() is a common function to define ecc layout for different BCHx ecc schemes.This patch: (1) removes omap3_init_bch_tail() and defines ecc layout for individual ecc-schemes along with

Re: [PATCH v9 7/9] mtd: nand: omap: use drivers/mtd/nand/nand_bch.c wrapper for BCH ECC instead of lib/bch.c

2013-10-16 Thread Brian Norris
+ Ivan, as he has touched this stuff before On Tue, Oct 15, 2013 at 11:19:55AM +0530, Pekon Gupta wrote: generic frame-work in mtd/nand/nand_bch.c is a wrapper above lib/bch.h which encapsulates all control information specific to BCH ecc algorithm in software. Thus this patch: (1) replace

Re: [PATCH v9 9/9] mtd: nand: omap: updated devm_xx for all resource allocation and free calls

2013-10-16 Thread Brian Norris
On Tue, Oct 15, 2013 at 11:19:57AM +0530, Pekon Gupta wrote: Managed Device Resource or devm_xx calls takes care of automatic freeing of the resource in case of: - failure during driver probe - failure during resource allocation - detaching or unloading of driver module (rmmod) Reference:

Re: [PATCH v9 0/9] mtd:nand:omap2: clean-up of supported ECC schemes

2013-10-16 Thread Brian Norris
Hi, On Tue, Oct 15, 2013 at 11:19:48AM +0530, Pekon Gupta wrote: *changes v8 - v9* [PATCH 1/9] no update from [PATCH v8 1/6] [PATCH 2/9] only commit log updated from [PATCH v8 2/6] As per feedbacks from Brian Norris computersforpe...@gmail.com previous revision [PATCH v8 3/6] and [PATCH

RE: [PATCH v9 4/9] mtd: nand: omap: enable auto-detection of bus-width for omap-nand drivers

2013-10-16 Thread Gupta, Pekon
Hi Brian, From: Brian Norris [mailto:computersforpe...@gmail.com] On Tue, Oct 15, 2013 at 11:19:52AM +0530, Pekon Gupta wrote: Autodetection of NAND device bus-width was added in generic NAND driver as [...] @@ -1904,6 +1903,21 @@ static int omap_nand_probe(struct platform_device *pdev)