Re: [PATCH v2 2/3] w1: masters: omap_hdq: Add support for 1-wire mode

2015-03-18 Thread Vignesh R
Gentle Ping On Monday 02 March 2015 04:19 PM, Vignesh R wrote: This patches makes following changes to omap_hdq driver - Enable 1-wire mode. - Implement w1_triplet callback to facilitate search rom procedure and auto detection of 1-wire slaves. - Proper enabling and disabling of

Re: [PATCH] ARM: dts: dra7x-evm: beagle-x14: Fix USB Peripheral

2015-03-18 Thread Roger Quadros
On 17/03/15 20:02, Tony Lindgren wrote: * Felipe Balbi ba...@ti.com [150317 07:55]: Hi, On Tue, Mar 17, 2015 at 11:43:51AM +0200, Roger Quadros wrote: Now that we have EXTCON_USB_GPIO queued for v4.1, revert commit addfcde7c485 (ARM: dts: dra7x-evm: beagle-x15: Fix USB Host) On these EVMs,

Re: [PATCH v2] phy: Add a driver for dm816x USB PHY

2015-03-18 Thread Paul Bolle
Two trivialities I failed the spot the first time. On Tue, 2015-03-17 at 17:12 -0700, Tony Lindgren wrote: diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 2962de2..c858c2b 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig +config PHY_DM816X_USB + tristate TI

Re: [PATCH] ASoC: davinci-mcasp: Set rule constraints if implicit BCLK divider is used

2015-03-18 Thread Peter Ujfalusi
On 03/17/2015 04:56 PM, Jyri Sarha wrote: Set a rule constraints to allow only combinations of sample-rate and number of frame-bits that can be played/captured with a reasonable sample-rate accuracy. Also, takes the number of serializers into account when implicitly selecting the BLCK

RE: [PATCH 1/3] ARM: OMAP3: Remove legacy support for EMA-Tech Stalker board

2015-03-18 Thread Jason
Hi Tony, I think it's good to remove this legacy code. Will let u know once I got the booting dst. Best regards, Jason Lam Embedded Machine Technology Co., Ltd Tel: +86-020-87643879-830 Fax: +86-020-87245492 Mobile: +86-13828455425 Email: l...@ema-tech.com Website: http://www.ema-tech.com

[PATCH v3 6/7] ARM: dts: am335x-boneblack: Use new binding for HDMI

2015-03-18 Thread Jyri Sarha
Use new binding for the external tda19988 HDMI encoder. Signed-off-by: Jyri Sarha jsa...@ti.com --- arch/arm/boot/dts/am335x-boneblack.dts | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/am335x-boneblack.dts

[PATCH v3 1/7] drm/tilcdc: Fix module unloading

2015-03-18 Thread Jyri Sarha
Force crtc dpms off before destroying the crtc instead of just checking the dpms state. This fixes warning message and frozen picture after tilcdc module unloading. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v3 4/7] drm/tilcdc: Add DRM_TILCDC_SLAVE_COMPAT for ti,tilcdc,slave binding support

2015-03-18 Thread Jyri Sarha
Adds a CONFIG_DRM_TILCDC_SLAVE_COMPAT module for ti,tilcdc,slave node conversion. The implementation is in tilcdc_slave_compat.c and it uses tilcdc_slave_compat.dts as a basis for creating a DTS overlay. The DTS overlay adds an external tda998x encoder to tilcdc that corresponds to the old tda998x

[PATCH v3 2/7] drm/tilcdc: Remove tilcdc slave support for tda998x driver

2015-03-18 Thread Jyri Sarha
Remove tilcdc slave support for tda998x driver. The tilcdc slave support would conflicts with componentized use of tda998x. Signed-off-by: Jyri Sarha jsa...@ti.com --- .../devicetree/bindings/drm/tilcdc/slave.txt | 18 - drivers/gpu/drm/tilcdc/Makefile| 1 -

[PATCH v3 7/7] drm/tilcdc: Decrement refcount of ep-node from of_graph_get_next_endpoint

2015-03-18 Thread Jyri Sarha
This patch should be dropped/reverterd if/after of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint patch has been merged. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/gpu/drm/tilcdc/tilcdc_external.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 5/7] drm/tilcdc: Force building of DRM_TILCDC_SLAVE_COMPAT

2015-03-18 Thread Jyri Sarha
If I read Documentation/kbuild/makefiles.txt section 3.6 right, this patch should not be needed. However, without this patch the objects needed for DRM_TILCDC_SLAVE_COMPAT are not linked, if DRM_TILCDC is built as module. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/gpu/drm/Makefile | 2

[PATCH v3 3/7] drm/tilcdc: Add support for external tda998x encoder

2015-03-18 Thread Jyri Sarha
Add support for an external compontised DRM encoder. The external encoder can be connected to tilcdc trough device tree graph binding. The binding document for tilcdc has been updated. The current implementation supports only tda998x encoder. I got the idea and some lines of code from

[PATCH v3 0/7] Use DRM component API in tilcdc to connect to tda998x

2015-03-18 Thread Jyri Sarha
I think the patches 1-5 are ready for merging. See the details below. I moved the drm/tilcdc: Decrement refcount of ep-node from of_graph_get_next_endpoint to last in the set and I think it can be dropped. The of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint is eventually

Re: [PATCH 4/4] ARM: dts: Add minimal support for dm8168-evm

2015-03-18 Thread Matthijs van Duin
And we also need to populate the tables along the lines of 27b7d5f3cc49 (bus: omap_l3_noc: Add AM4372 interconnect error data). I think intercon data should be in DT rather than some hardcoded table. Do the below ranges match your JTAG results? Yup. Based a memory dump I had done earlier,

Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2015-03-18 Thread Kishon Vijay Abraham I
Hi, On Wednesday 18 March 2015 05:51 PM, Linus Walleij wrote: On Mon, Mar 16, 2015 at 9:46 AM, Kishon Vijay Abraham I kis...@ti.com wrote: On Wednesday 14 January 2015 05:28 PM, Linus Walleij wrote: #include linux/reboot.h static int foo_reboot_handler(struct notifier_block *this,

Re: [PATCH] gpio: pcf857x: restore the initial line state of all pcf lines

2015-03-18 Thread Linus Walleij
On Mon, Mar 16, 2015 at 9:46 AM, Kishon Vijay Abraham I kis...@ti.com wrote: On Wednesday 14 January 2015 05:28 PM, Linus Walleij wrote: #include linux/reboot.h static int foo_reboot_handler(struct notifier_block *this, unsigned long code,

[PATCHv4 05/35] ARM: OMAP4+: PRM: move omap_prm_base_init under OMAP4 PRM driver

2015-03-18 Thread Tero Kristo
There is no need to call this separately from io.c, rather this can be done commonly under the PRM driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/io.c |4 arch/arm/mach-omap2/prm44xx.c |2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff

[PATCHv4 00/35] ARM: OMAP2+: PRCM / SCM cleanups against 4.0-rc1

2015-03-18 Thread Tero Kristo
Hi, Changes in this set compared to v3: - Changed the SCM module DT node layout based on comments from Tony; basically the wkup / core are split into their own nodes now. This applies for omap3, omap4, omap5 and dra7, rest of the SoCs have their control module integrated as one instance

Re: [PATCH v2] phy: Add a driver for dm816x USB PHY

2015-03-18 Thread Tony Lindgren
* Paul Bolle pebo...@tiscali.nl [150318 04:13]: Two trivialities I failed the spot the first time. On Tue, 2015-03-17 at 17:12 -0700, Tony Lindgren wrote: diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 2962de2..c858c2b 100644 --- a/drivers/phy/Kconfig +++

[RFC][PATCH 0/9] USB: OTG Core functionality

2015-03-18 Thread Roger Quadros
Hi, [NOTE: RFC only. Not for merge yet.] This is an attempt to centralize OTG functionality in the kernel. Still work in progress but I wanted to get an early feedback to avoid major rework. :) Why?: Most of the OTG drivers have been dealing with the OTG state machine themselves and

[RFC][PATCH 2/9] usb: gadget: add usb_gadget_start/stop()

2015-03-18 Thread Roger Quadros
The OTG state machine needs a mechanism to start and stop the gadget controller. Add usb_gadget_start() and usb_gadget_stop(). Signed-off-by: Roger Quadros rog...@ti.com --- drivers/usb/gadget/udc/udc-core.c | 166 +++--- include/linux/usb/gadget.h| 3 +

[RFC][PATCH 1/9] usb: hcd: Introduce usb_start/stop_hcd()

2015-03-18 Thread Roger Quadros
To support OTG we want a mechanism to start and stop the HCD from the OTG state machine. Add usb_start_hcd() and usb_stop_hcd(). Signed-off-by: Roger Quadros rog...@ti.com --- drivers/usb/core/hcd.c | 147 include/linux/usb/hcd.h | 2 + 2 files

[RFC][PATCH 4/9] usb: otg: hub: Notify OTG fsm when A device sets b_hnp_enable

2015-03-18 Thread Roger Quadros
This is the a_set_b_hnp_enable flag in the OTG state machine diagram and must be set when the A-Host has successfully set the b_hnp_enable feature of the OTG-B-Peripheral attached to it. When this bit changes we kick our OTG FSM to make note of the change and act accordingly. Signed-off-by:

[PATCHv4 04/35] ARM: OMAP3+: PRM: add common APIs for prm_vp_check/clear_txdone

2015-03-18 Thread Tero Kristo
PRM driver now only exports a generic API for clearing / checking VP txdone status. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prm.h | 14 ++ arch/arm/mach-omap2/prm3xxx.c |6 -- arch/arm/mach-omap2/prm3xxx.h |4

[PATCHv4 06/35] ARM: OMAP4+: CM: move omap_cm_base_init under OMAP4 CM driver

2015-03-18 Thread Tero Kristo
There is no need to call this separately from io.c, rather this can be done commonly under the CM driver. Also, this patch makes the API static, as it is no longer used outside the driver file. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/cm44xx.h |1 -

[PATCHv4 07/35] ARM: OMAP4: PRM: move omap4xxx_prm_init earlier in init order

2015-03-18 Thread Tero Kristo
OMAP4 has different ordering of PRM and CM init calls in the early init. Re-oder these accordingly for OMAP4 also. This is needed so that we can do some optimizations in the following patches for the PRCM init. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/io.c |2 +- 1

[PATCHv4 08/35] clk: ti: fix ti_clk_get_reg_addr error handling

2015-03-18 Thread Tero Kristo
There is a case where NULL can be a valid return value for ti_clk_get_reg_addr, specifically the case where both the provider index and register offsets are zero. In this case, the current error checking against a NULL pointer will fail. Thus, change the API to return a ERR_PTR value in an error

[PATCHv4 03/35] ARM: OMAP2+: PRM: add generic API for clear_mod_irqs

2015-03-18 Thread Tero Kristo
OMAP2/3 now use generic API for the prm_clear_mod_irqs, the SoC specific implementation details are provided through prm_ll_data. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm24xx.c | 24 +++- arch/arm/mach-omap2/pm34xx.c | 18

[PATCHv4 01/35] ARM: OMAP2+: PRCM: rename of_prcm_init to omap_prcm_init

2015-03-18 Thread Tero Kristo
This avoids conflicts in the global namespace, and is more descriptive of the purpose anyway. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/io.c |2 +- arch/arm/mach-omap2/prm.h|2 +- arch/arm/mach-omap2/prm_common.c |8 +++- 3 files changed,

[PATCHv4 02/35] ARM: OMAP3: PRM: invert the wkst_mask for the prm_clear_mod_irqs

2015-03-18 Thread Tero Kristo
This makes the API the same as used with OMAP2, and makes it possible to implement a generic driver API for the functionality. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 18 +- arch/arm/mach-omap2/prm3xxx.c |8

[RFC][PATCH 9/9] usb: otg-fsm: Add documentation for struct otg_fsm

2015-03-18 Thread Roger Quadros
struct otg_fsm is the interface to the OTG state machine. Document the input, output and internal state variables. Definations are taken from Table 7-2 and Table 7-4 of the USB OTG EH Specification Rev.2.0 Re-arrange some of the members as per use case for more clarity. Signed-off-by: Roger

[RFC][PATCH 5/9] usb: hcd: adapt to OTG

2015-03-18 Thread Roger Quadros
Register with OTG core as part of usb_add_hcd() and unregister from it in usb_remove_hcd(). For OTG device the HCD is actually started or stopped from the OTG FSM. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/usb/core/hcd.c | 14 ++ 1 file changed, 10 insertions(+), 4

[RFC][PATCH 3/9] usb: otg: add OTG core

2015-03-18 Thread Roger Quadros
The OTG core instantiates the OTG Finite State Machine per OTG controller and manages starting/stopping the host and gadget controllers based on the bus state. It provides APIs for the following tasks - Registering an OTG capable controller - Registering Host and Gadget controllers to OTG core -

[RFC][PATCH 7/9] usb: dwc3: adapt to OTG core

2015-03-18 Thread Roger Quadros
Register with the USB OTG core. Use extcon framework to get VBUS/ID cable events and kick the OTG state machine. TODO: - OTG driver ops to configure dwc3 otg core during role switches. Signed-off-by: Roger Quadros rog...@ti.com --- drivers/usb/dwc3/core.c | 101

[RFC][PATCH 6/9] usb: gadget: udc: adapt to OTG

2015-03-18 Thread Roger Quadros
Register with OTG core as part of usb_add_gadget_udc_release() and unregister from it in usb_del_gadget_udc(). In the OTG use case we may not yet be in b_peripheral state so we shouldn't allow starting the UDC till OTG core says so. Signed-off-by: Roger Quadros rog...@ti.com ---

[RFC][PATCH 8/9] usb: otg-fsm: Remove unused members in struct otg_fsm

2015-03-18 Thread Roger Quadros
These members are not used anywhere so remove them. Signed-off-by: Roger Quadros rog...@ti.com --- include/linux/usb/otg-fsm.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/linux/usb/otg-fsm.h b/include/linux/usb/otg-fsm.h index b6ba1bf..176c4fc 100644 ---

Re: [PATCH 3/4] ARM: dts: Add cppi41 support for dm816x MUSB

2015-03-18 Thread Felipe Balbi
On Tue, Mar 17, 2015 at 06:18:37PM -0700, Tony Lindgren wrote: * Felipe Balbi ba...@ti.com [150317 17:32]: Hi, On Tue, Mar 17, 2015 at 05:19:20PM -0700, Tony Lindgren wrote: Looks like we have cppi41 on dm816x just like on am335x. Cc: Bin Liu binml...@gmail.com Cc: Brian

Re: [PATCH] drm/omap: tiler: add hibernation callback

2015-03-18 Thread grygorii.stras...@linaro.org
Hi All, On 02/25/2015 08:08 PM, grygorii.stras...@linaro.org wrote: From: Grygorii Strashko grygorii.stras...@linaro.org Setting a dev_pm_ops resume callback but not a set of hibernation handler means that pm function will not be called upon hibernation. Fix this by using SIMPLE_DEV_PM_OPS,

Re: [PATCH 32/35 linux-next] clk: constify of_device_id array

2015-03-18 Thread Michael Turquette
Quoting Fabian Frederick (2015-03-16 12:59:06) of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by: Fabian Frederick f...@skynet.be Acked-by: Michael Turquette mturque...@linaro.org --- drivers/clk/clk-palmas.c | 2

[PATCHv4 22/35] ARM: OMAP2+: control: remove API for getting control module base address

2015-03-18 Thread Tero Kristo
This shall not be used anymore, as control module driver is converted into using regmap. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/control.c |5 - arch/arm/mach-omap2/control.h |2 -- 2 files changed, 7 deletions(-) diff --git a/arch/arm/mach-omap2/control.c

[PATCHv4 28/35] ARM: dts: am43xx-epos-evm: fix pinmux node layout

2015-03-18 Thread Tero Kristo
Pinmux node should be a reference to the base one, not a complete re-write of it. Having the node like this also prevents modifying the node layout in the base am4372.dtsi file, which is needed for control module changes. Signed-off-by: Tero Kristo t-kri...@ti.com ---

[PATCHv4 24/35] ARM: OMAP2+: control: add syscon support for register accesses

2015-03-18 Thread Tero Kristo
Control module driver needs to support syscon for register accesses, as the DT hierarchy for control module driver is going to be changed. All the control module related features will be moved under control module node, including clocks, pinctrl, and generic configuration register access.

[PATCHv4 32/35] ARM: OMAP4+: control: remove support for legacy pad read/write

2015-03-18 Thread Tero Kristo
omap4_ctrl_pad_readl/writel are no longer used by anybody, so remove these. Syscon / pinctrl should be used to access the padconf area instead. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/control.c | 24 +--- arch/arm/mach-omap2/control.h |5 +

[PATCHv4 19/35] ARM: OMAP4+: PRM: setup prm_features from the PRM init time flags

2015-03-18 Thread Tero Kristo
Currently some cpu_is_X checks are used to setup prm_features, however the same can be accomplished by just passing these flags from the PRM init data. This is done in preparation to make PRM a separate driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prm44xx.c|

[PATCHv4 17/35] ARM: OMAP4+: PRM: determine prm_device_inst based on DT compatibility

2015-03-18 Thread Tero Kristo
PRM device instance offset is now provided through the prm_init_data. This gets rid of some cpu_is_X / soc_is_X calls from PRM core code, preparing for PRM to be its own separate driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prcm-common.h |2 ++

[PATCHv4 20/35] ARM: OMAP4+: PRM: get rid of cpu_is_omap44xx calls from interrupt init

2015-03-18 Thread Tero Kristo
The compatible DT node is now passed with the prm init, so there is no need to do node matching here again. Added a new flag to the init data also, to detect default IRQ support for OMAP4. Also, any booting omap4 DT setup always has a PRM node, so there is no need to check against the special case

[PATCHv4 34/35] ARM: dts: dra7: add system control module node

2015-03-18 Thread Tero Kristo
Add node for system control module, and move all the existing system control IO space users under this new node as its children. A new node for scm_conf area is also added. Signed-off-by: Tero Kristo t-kri...@ti.com --- .../devicetree/bindings/arm/omap/ctrl.txt |2 +

[PATCHv4 25/35] ARM: dts: omap24xx: merge control module features under scrm node

2015-03-18 Thread Tero Kristo
This patch moves all the control module related features under scrm node. scm_conf area is changed to use syscon, and also the clocks are moved under scm_conf area. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/omap2420.dtsi| 33 +-

[PATCHv4 23/35] ARM: OMAP2+: id: cache omap_type value

2015-03-18 Thread Tero Kristo
There is no need to read the register with every invocation of the function, as the value is constant. Thus, cache the value in a static variable. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/id.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCHv4 33/35] ARM: dts: omap5: add system control module node

2015-03-18 Thread Tero Kristo
Add node for system control module, and move all the existing system control IO space users under this new node as its children. A new node for scm_conf area is also added. Signed-off-by: Tero Kristo t-kri...@ti.com --- .../devicetree/bindings/arm/omap/ctrl.txt |2 +

[PATCHv4 15/35] ARM: OMAP2+: control: determine control module base address from DT

2015-03-18 Thread Tero Kristo
There is no need to provide the control module base address through a low-level API from the low-level IO init, as this information is available through DT. This patch adds a new API to initialize the control module though, but mostly makes the old API obsolete. The old API can be completely

[PATCHv4 16/35] ARM: OMAP2+: PRM: move SoC specific init calls within a generic API

2015-03-18 Thread Tero Kristo
This gets rid of need for some exported driver APIs, and simplifies the initialization of the PRM driver. Done in preparation to make PRM a separate driver. The init data is now also passed to the SoC specific implementations, allowing future expansion to add feature flags etc. Signed-off-by:

[PATCHv4 12/35] ARM: OMAP2+: PRCM: split PRCM module init to their own driver files

2015-03-18 Thread Tero Kristo
Splits the clock related provider module inits under their own driver files. Previously this was done for all modules under the common PRM driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/cm.h |1 + arch/arm/mach-omap2/cm_common.c | 51

[PATCHv4 35/35] ARM: OMAP4+: control: add support for initializing control module via DT

2015-03-18 Thread Tero Kristo
OMAP4, OMAP5 and DRA7 now parse DT entries for control module address spaces, and set up syscon mappings appropriately. Low level IO init is updated to remove the legacy control module mappings for these devices also. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/control.c |

[PATCHv4 27/35] ARM: dts: am33xx: merge control module features under scrm node

2015-03-18 Thread Tero Kristo
This patch moves all the control module related features under scrm node. scm_conf area is changed to use syscon, and also the clocks are moved under scm_conf area. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 48 - 1

[PATCHv4 11/35] ARM: OMAP2+: clock: move clock provider infrastructure to clock driver

2015-03-18 Thread Tero Kristo
Splits the clock provider init out of the PRM driver and moves it to clock driver. This is needed so that once the PRCM drivers are separated, they can logically just access the clock driver not needing to go through common PRM code. This would be wrong in the case of control module for example.

[PATCHv4 31/35] ARM: OMAP4: display: convert display to use syscon for dsi muxing

2015-03-18 Thread Tero Kristo
The legacy control module APIs will be gone, thus convert the display driver to use syscon. This change should eventually be moved to display driver from the board directory. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Tomi Valkeinen tomi.valkei...@ti.com --- arch/arm/mach-omap2/display.c |

[PATCHv4 13/35] ARM: OMAP2+: CM: determine CM base address from device tree

2015-03-18 Thread Tero Kristo
There is no need to provide the CM base address through a low-level API from the low-level IO init, as this information is available through DT. Re-routed the parsing function to be called from the CM drivers also to simplify the implementation under io.c. Signed-off-by: Tero Kristo

[PATCHv4 14/35] ARM: OMAP2+: PRM: determine PRM base address from device tree

2015-03-18 Thread Tero Kristo
There is no need to provide the PRM base address through a low-level API from the low-level IO init, as this information is available through DT. Re-routed the parsing function to be called from the PRM drivers also to simplify the implementation under io.c. Signed-off-by: Tero Kristo

[PATCHv4 26/35] ARM: dts: omap3: merge control module features under scrm node

2015-03-18 Thread Tero Kristo
This patch moves all the control module related features under scrm node. scm_conf area is changed to use syscon, and also the clocks are moved under scm_conf area. Signed-off-by: Tero Kristo t-kri...@ti.com --- .../devicetree/bindings/arm/omap/prcm.txt |1 +

[PATCHv4 18/35] ARM: OMAP2+: CM: move SoC specific init calls within a generic API

2015-03-18 Thread Tero Kristo
This gets rid of need for some exported driver APIs, and simplifies the initialization of the CM driver. Done in preparation to make CM a separate driver. The init data is now also passed to the SoC specific implementations, allowing future expansion to add feature flags etc. Signed-off-by: Tero

[PATCHv4 29/35] ARM: dts: am4372: merge control module features under scrm node

2015-03-18 Thread Tero Kristo
This patch moves all the control module related features under scrm node. scm_conf area is provided to support syscon, and also the clocks are moved under scm_conf area. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/am4372.dtsi | 48 +++--

[PATCHv4 09/35] Documentation: DT: document PRCM compatible strings for dm81x SoCs

2015-03-18 Thread Tero Kristo
These PRCM nodes were earlier added in patch 7800064ba5 (ARM: dts: Add basic dm816x device tree configuration), but the documentation for the same wasn't added. Fix this by adding the missing compatible strings under the generic prcm.txt document. Signed-off-by: Tero Kristo t-kri...@ti.com ---

[PATCHv4 21/35] ARM: OMAP2+: clock: add low-level support for regmap

2015-03-18 Thread Tero Kristo
Some of the TI clock providers will be converted to use syscon, thus low-level regmap support is needed for the clock drivers also. This patch adds this support, which can be enabled for individual drivers in later patches. Signed-off-by: Tero Kristo t-kri...@ti.com ---

[PATCHv4 30/35] ARM: dts: omap4: add system control module node

2015-03-18 Thread Tero Kristo
Add node for system control module, and move all the existing system control IO space users under this new node as its children. A new node for scm_conf area is also added. DT documentation is also updated by this patch to reflect the existence of system control module nodes, separately of PRCM

[PATCHv4 10/35] ARM: OMAP2+: PRCM: add support for static clock memmap indices

2015-03-18 Thread Tero Kristo
All clock provider related drivers will now register their iomaps with a static index. This makes it easier to split up the individual drivers to their own files in subsequent patches. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prcm-common.h |8

Re: [PATCH v2] phy: Add a driver for dm816x USB PHY

2015-03-18 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 18 March 2015 05:42 AM, Tony Lindgren wrote: Add a minimal driver for dm816x USB. This makes USB work on dm816x without any other changes needed as it can use the existing musb_dsps glue layer for the USB controller. Note that this phy is different from dm814x and am335x.

Re: [PATCH v5 0/5] Add support for Fujitsu USB host controller

2015-03-18 Thread Sneeker Yeh
2015-03-11 5:30 GMT+08:00 Felipe Balbi ba...@ti.com: On Sun, Feb 22, 2015 at 12:25:35PM +0800, Sneeker Yeh wrote: These patches add support for XHCI compliant Host controller found on Fujitsu Socs, and are based on http://lwn.net/Articles/629162/ The first patch is to add Fujitsu glue layer of

Re: [PATCH] drm/omap: tiler: add hibernation callback

2015-03-18 Thread Rob Clark
On Wed, Feb 25, 2015 at 1:08 PM, grygorii.stras...@linaro.org wrote: From: Grygorii Strashko grygorii.stras...@linaro.org Setting a dev_pm_ops resume callback but not a set of hibernation handler means that pm function will not be called upon hibernation. Fix this by using

Re: [PATCH 3/4] ARM: dts: Add cppi41 support for dm816x MUSB

2015-03-18 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [150318 07:41]: On Tue, Mar 17, 2015 at 06:18:37PM -0700, Tony Lindgren wrote: * Felipe Balbi ba...@ti.com [150317 17:32]: Hi, On Tue, Mar 17, 2015 at 05:19:20PM -0700, Tony Lindgren wrote: Looks like we have cppi41 on dm816x just like on am335x.

Re: [PATCH 1/8] time: Add y2038 safe read_boot_clock64()

2015-03-18 Thread John Stultz
On Wed, Mar 18, 2015 at 5:48 AM, pang.xun...@zte.com.cn wrote: Ping ... Thanks for the reminder. Since there's not been any objections, I'm queuing this up. thanks -john -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org

[PATCH v7 2/6] wl12xx: use frequency instead of enumerations for pdata clocks

2015-03-18 Thread Eliad Peller
From: Luciano Coelho l...@coelho.fi Instead of defining an enumeration with the FW specific values for the different clock rates, use the actual frequency instead. Also add a boolean to specify whether the clock is XTAL or not. Change all board files to reflect this. Signed-off-by: Luciano

[PATCH v7 6/6] wlcore: remove wl12xx_platform_data

2015-03-18 Thread Eliad Peller
Now that we have wlcore device-tree bindings in place (for both wl12xx and wl18xx), remove the legacy wl12xx_platform_data struct, and move its members into the platform device data (that is passed to wlcore) Davinci 850 is the only platform that still set the platform data in the legacy way (and

[PATCH v7 0/6] wlcore: add device-tree support

2015-03-18 Thread Eliad Peller
Add device-tree support to the wlcore (wl12xx/wl18xx) driver. Update the current users to use the bindings instead of pdata-quirks. Finally, remove the deprecated wl12xx_platform_data struct (along with the da850 board file code that still uses it) v7: * rebase (v4.0-rc4) * fix wlcore_spi

[PATCH v7 3/6] dt: bindings: add TI's wilink wireless device

2015-03-18 Thread Eliad Peller
Add device tree binding documentation for TI's wilink (wl12xx and wl18xx) wlan chip. Signed-off-by: Eliad Peller el...@wizery.com --- .../devicetree/bindings/net/wireless/ti,wlcore.txt | 47 ++ 1 file changed, 47 insertions(+) create mode 100644

[PATCH v7 1/6] wlcore: set irq_trigger in board files instead of hiding behind a quirk

2015-03-18 Thread Eliad Peller
From: Luciano Coelho l...@coelho.fi The platform_quirk element in the platform data was used to change the way the IRQ is triggered. When set, the EDGE_IRQ quirk would change the irqflags used and treat edge trigger differently from the rest. Instead of hiding this irq flag setting behind the

[PATCH v7 5/6] ARM: dts: add wl12xx/wl18xx bindings

2015-03-18 Thread Eliad Peller
Replace all the pdata-quirks for setting wl12xx/wl18xx platform data with proper DT definitions. Signed-off-by: Eliad Peller el...@wizery.com Acked-by: Javier Martinez Canillas jav...@dowhile0.org Acked-by: Enric Balletbo i Serra eballe...@gmail.com Tested-by: Tony Lindgren t...@atomide.com ---

[PATCH v7 4/6] wlcore: add device-tree support

2015-03-18 Thread Eliad Peller
When running with device-tree, we no longer have a board file that can set up the platform data for wlcore. Allow this data to be passed from DT. Signed-off-by: Ido Yariv i...@wizery.com Signed-off-by: Eliad Peller el...@wizery.com Tested-by: Sébastien Szymanski sebastien.szyman...@armadeus.com

Re: [PATCH v2] phy: Add a driver for dm816x USB PHY

2015-03-18 Thread Tony Lindgren
* Kishon Vijay Abraham I kis...@ti.com [150318 08:09]: On Wednesday 18 March 2015 05:42 AM, Tony Lindgren wrote: + +/* + * We have phy-core.c handle pm_runtime calls for us. We implement + * these functions for phy-core.c to keep track of power_count. + * Note that we may want to remove

Re: [PATCH 4/4] ARM: dts: Add minimal support for dm8168-evm

2015-03-18 Thread Tony Lindgren
* Matthijs van Duin matthijsvand...@gmail.com [150318 01:33]: And we also need to populate the tables along the lines of 27b7d5f3cc49 (bus: omap_l3_noc: Add AM4372 interconnect error data). I think intercon data should be in DT rather than some hardcoded table. Yeah so it seems. Do the

Re: [PATCH 2/2] ARM: dts: dra7: remove ti,hwmod property from pcie phy

2015-03-18 Thread Grygorii Strashko
Hi Tony, As I can see Patch 1 from this series was merged in 4.0-rc4, but this patch wasn't. As result, I can see below warning all the time during boot now: [0.594591] platform 4a094000.pciephy: Cannot lookup hwmod 'pcie1-phy' On 02/20/2015 10:51 AM, Kishon Vijay Abraham I wrote: Now

Re: [PATCH 2/2] ARM: dts: dra7: remove ti,hwmod property from pcie phy

2015-03-18 Thread Tony Lindgren
* Grygorii Strashko grygorii.stras...@ti.com [150318 09:37]: Hi Tony, As I can see Patch 1 from this series was merged in 4.0-rc4, but this patch wasn't. As result, I can see below warning all the time during boot now: [0.594591] platform 4a094000.pciephy: Cannot lookup hwmod

Re: [PATCHv3 08/35] clk: ti: fix ti_clk_get_reg_addr error handling

2015-03-18 Thread Tony Lindgren
* Tero Kristo t-kri...@ti.com [150318 00:06]: On 03/17/2015 08:38 PM, Tony Lindgren wrote: * Mike Turquette mturque...@linaro.org [150306 11:18]: Quoting Tero Kristo (2015-02-25 11:04:18) There is a case where NULL can be a valid return value for ti_clk_get_reg_addr, specifically the case

Re: [PATCH 1/3] ARM: OMAP3: Remove legacy support for EMA-Tech Stalker board

2015-03-18 Thread Tony Lindgren
* Jason l...@ema-tech.com [150318 00:59]: Hi Tony, I think it's good to remove this legacy code. Will let u know once I got the booting dst. OK I'm planning to queue it for v4.1 merge window then unless we hear from people using it. Regards, Tony -- To unsubscribe from this list: send the

Re: [PATCHv4 23/35] ARM: OMAP2+: id: cache omap_type value

2015-03-18 Thread Sergei Shtylyov
Hello. On 03/18/2015 05:44 PM, Tero Kristo wrote: There is no need to read the register with every invocation of the function, as the value is constant. Thus, cache the value in a static variable. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/id.c |5 - 1

Re: [PATCH 2/2] ARM: dts: dra7: remove ti,hwmod property from pcie phy

2015-03-18 Thread Tony Lindgren
* grygorii.stras...@linaro.org grygorii.stras...@linaro.org [150318 12:36]: On 03/18/2015 06:57 PM, Tony Lindgren wrote: * Grygorii Strashko grygorii.stras...@ti.com [150318 09:37]: As I can see Patch 1 from this series was merged in 4.0-rc4, but this patch wasn't. As result, I can see

Re: Patch to parameterize DMA_MIN_BYTES for omap2-mcspi

2015-03-18 Thread Tony Lindgren
Hi Greg, * Greg Knight g.kni...@symetrica.com [150318 12:38]: Hi, linux-omap, I've attached a patch which adds a device-tree field ti,dma-min-bytes which replaces the macro DMA_MIN_BYTES. Adjusting this field addresses issues we've had where, in our particular use case, the usleep() in the

Re: [PATCH 2/2] ARM: dts: dra7: remove ti,hwmod property from pcie phy

2015-03-18 Thread grygorii.stras...@linaro.org
On 03/18/2015 06:57 PM, Tony Lindgren wrote: * Grygorii Strashko grygorii.stras...@ti.com [150318 09:37]: As I can see Patch 1 from this series was merged in 4.0-rc4, but this patch wasn't. As result, I can see below warning all the time during boot now: [0.594591] platform

Patch to parameterize DMA_MIN_BYTES for omap2-mcspi

2015-03-18 Thread Greg Knight
Hi, linux-omap, I've attached a patch which adds a device-tree field ti,dma-min-bytes which replaces the macro DMA_MIN_BYTES. Adjusting this field addresses issues we've had where, in our particular use case, the usleep() in the SPI worker thread eats a full 20% of our CPU (AM3359). I opted to

Patches to bind the SGTL5000 chip to AM33XX McASP

2015-03-18 Thread Greg Knight
Hi, linux-omap, I've attached a couple patches to provide support for the Freescale SGTL5000 chip when using the McASP on the AM3359. This adds an optional hack, clock-to-talk to the McASP subsystem which can start AHCLKX/AHCLKR prior to initializing the codec. This is needed on the SGTL5000,

Re: [PATCHv3 08/35] clk: ti: fix ti_clk_get_reg_addr error handling

2015-03-18 Thread Tero Kristo
On 03/17/2015 08:38 PM, Tony Lindgren wrote: * Mike Turquette mturque...@linaro.org [150306 11:18]: Quoting Tero Kristo (2015-02-25 11:04:18) There is a case where NULL can be a valid return value for ti_clk_get_reg_addr, specifically the case where both the provider index and register offsets

[PATCH] usb: musb: Fix fifo reads for dm816x with musb_dsps

2015-03-18 Thread Tony Lindgren
Looks like dm81xx can only do 32-bit fifo reads like am35x. Let's set up musb-dsps with a custom read_fifo function based on the compatible flag. Otherwise we can get the following errors when starting dhclient on a asix USB Ethernet adapter: asix 2-1:1.0 eth2: asix_rx_fixup() Bad Header Length

[PATCH v2 1/3] dt: bindings: Add bindings for omap3isp

2015-03-18 Thread Sakari Ailus
Signed-off-by: Sakari Ailus sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- .../devicetree/bindings/media/ti,omap3isp.txt | 71 MAINTAINERS|1 + include/dt-bindings/media/omap3-isp.h

[PATCH v2 2/3] arm: dts: omap3: Add DT entries for OMAP 3

2015-03-18 Thread Sakari Ailus
The resources the ISP needs are slightly different on 3[45]xx and 3[67]xx. Especially the phy-type property is different. Signed-off-by: Sakari Ailus sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- arch/arm/boot/dts/omap34xx.dtsi | 17 +

[PATCH v2 3/3] arm: dts: n950, n9: Add primary camera support

2015-03-18 Thread Sakari Ailus
Add support for the primary camera of the Nokia N950 and N9. Signed-off-by: Sakari Ailus sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- arch/arm/boot/dts/omap3-n9.dts | 37 + arch/arm/boot/dts/omap3-n950.dts | 37

[PATCH v2 0/3] OMAP 3 ISP (and N9/N950 primary camera support) dts changes

2015-03-18 Thread Sakari Ailus
Hi folks, Since v1, I've rebased the set on Tero Kristo's PRCM / SCM cleanup patchset here: URL:http://www.spinics.net/lists/linux-omap/msg116949.html v1 can be found here: URL:http://www.spinics.net/lists/linux-omap/msg116753.html Changes since v1: - Fixed phy reference (number to name) in

Re: [PATCHv4 00/35] ARM: OMAP2+: PRCM / SCM cleanups against 4.0-rc1

2015-03-18 Thread Sakari Ailus
Hi Tero, On Wed, Mar 18, 2015 at 04:43:45PM +0200, Tero Kristo wrote: Hi, Changes in this set compared to v3: - Changed the SCM module DT node layout based on comments from Tony; basically the wkup / core are split into their own nodes now. This applies for omap3, omap4, omap5 and

Re: [RFC][PATCH 1/9] usb: hcd: Introduce usb_start/stop_hcd()

2015-03-18 Thread Alan Stern
On Wed, 18 Mar 2015, Tony Lindgren wrote: If the host controller is started more than once, you will end up unregistering and re-registering the root hub. The device core does not allow this. Once a device has been unregistered, you must not try to register it again -- you have to

Re: [RFC][PATCH 1/9] usb: hcd: Introduce usb_start/stop_hcd()

2015-03-18 Thread Peter Chen
On Wed, Mar 18, 2015 at 03:55:55PM +0200, Roger Quadros wrote: To support OTG we want a mechanism to start and stop the HCD from the OTG state machine. Add usb_start_hcd() and usb_stop_hcd(). Hi Roger, You may not need to create another pair of hcd APIs for doing it, you can use

Re: [RFC][PATCH 1/9] usb: hcd: Introduce usb_start/stop_hcd()

2015-03-18 Thread Tony Lindgren
* Alan Stern st...@rowland.harvard.edu [150318 18:51]: On Wed, 18 Mar 2015, Tony Lindgren wrote: If the host controller is started more than once, you will end up unregistering and re-registering the root hub. The device core does not allow this. Once a device has been unregistered,

  1   2   >