Re: [RFC PATCH 0/4] Add a RPMsg driver to support AI Processing Unit (APU)

2020-10-01 Thread Alexandre Bailon
Hi Daniel, On 10/1/20 10:48 AM, Daniel Vetter wrote: On Wed, Sep 30, 2020 at 01:53:46PM +0200, Alexandre Bailon wrote: This adds a RPMsg driver that implements communication between the CPU and an APU. This uses VirtIO buffer to exchange messages but for sharing data, this uses a dmabuf

[RFC PATCH 1/4] Add a RPMSG driver for the APU in the mt8183

2020-09-30 Thread Alexandre Bailon
This adds a driver to communicate with the APU available in the mt8183. The driver is generic and could be used for other APU. It mostly provides a userspace interface to send messages and and share big buffers with the APU. Signed-off-by: Alexandre Bailon --- drivers/rpmsg/Kconfig

[RFC PATCH 3/4] rpmsg: apu_rpmsg: update the way to store IOMMU mapping

2020-09-30 Thread Alexandre Bailon
In order to reduce the memory mapping operations we are going to add an IOCTL to request a mapping. To make easier to add this new operation, use 2 lists to store the mappings, one for the request and one for the device. Signed-off-by: Alexandre Bailon --- drivers/rpmsg/apu_rpmsg.c | 104

[RFC PATCH 4/4] rpmsg: apu_rpmsg: Add an IOCTL to request IOMMU mapping

2020-09-30 Thread Alexandre Bailon
. Signed-off-by: Alexandre Bailon --- drivers/rpmsg/apu_rpmsg.c | 52 ++ include/uapi/linux/apu_rpmsg.h | 7 + 2 files changed, 53 insertions(+), 6 deletions(-) diff --git a/drivers/rpmsg/apu_rpmsg.c b/drivers/rpmsg/apu_rpmsg.c index 343bd08a859a..4c064feddf5a

[RFC PATCH 2/4] rpmsg: apu_rpmsg: Add support for async apu request

2020-09-30 Thread Alexandre Bailon
From: Julien STEPHAN In order to improve performances and flexibility, add support of async request. Signed-off-by: Julien STEPHAN Signed-off-by: Alexandre Bailon --- drivers/rpmsg/apu_rpmsg.c | 208 ++--- include/uapi/linux/apu_rpmsg.h | 6 +- 2 files

[RFC PATCH 0/4] Add a RPMsg driver to support AI Processing Unit (APU)

2020-09-30 Thread Alexandre Bailon
hardware accelerator for AI if they use support remoteproc and VirtIO. For the people interested by the firmware or userspace library, the sources are available here: https://github.com/BayLibre/open-amp/tree/v2020.01-mtk/apps/examples/apu Alexandre Bailon (3): Add a RPMSG driver for the APU

[PATCH v2 3/4] remoteproc: mtk_vpu_rproc: Add support of JTAG

2020-09-10 Thread Alexandre Bailon
The DSP could be debugged using JTAG. The support of JTAG could enabled at build time and it could be enabled using debugfs. Signed-off-by: Alexandre Bailon --- drivers/remoteproc/Kconfig | 9 +++ drivers/remoteproc/mtk_apu.c | 151 ++- 2 files changed, 159

[PATCH v2 2/4] remoteproc: Add a remoteproc driver for the MT8183's APU

2020-09-10 Thread Alexandre Bailon
This adds a driver to control the APU present in the MT8183. This loads the firmware and start the DSP. Signed-off-by: Alexandre Bailon --- drivers/remoteproc/Kconfig | 10 ++ drivers/remoteproc/Makefile | 1 + drivers/remoteproc/mtk_apu.c | 288 +++ 3

[PATCH v2 4/4] ARM64: mt8183: Add support of APU to mt8183

2020-09-10 Thread Alexandre Bailon
This adds the support of APU to mt8183. Signed-off-by: Alexandre Bailon --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 39 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index

[PATCH v2 1/4] dt bindings: remoteproc: Add bindings for MT8183 APU

2020-09-10 Thread Alexandre Bailon
This adds dt bindings for the APU present in the MT8183. Signed-off-by: Alexandre Bailon --- .../bindings/remoteproc/mtk,apu.yaml | 107 ++ 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml diff --git

[PATCH v2 0/4] Add support of mt8183 APU

2020-09-10 Thread Alexandre Bailon
to use pinctl for JTAG - fix some minors issues - fix device tree bindings Alexandre Bailon (4): dt bindings: remoteproc: Add bindings for MT8183 APU remoteproc: Add a remoteproc driver for the MT8183's APU remoteproc: mtk_vpu_rproc: Add support of JTAG ARM64: mt8183: Add support of APU

Re: [PATCH 2/6] remoteproc: Add a remoteproc driver for the MT8183's APU

2020-08-06 Thread Alexandre Bailon
Hi Mathieu, On 7/21/20 12:17 AM, Mathieu Poirier wrote: On Mon, Jul 13, 2020 at 03:29:23PM +0200, Alexandre Bailon wrote: This adds a driver to control the APU present in the MT8183. This loads the firmware and start the DSP. Signed-off-by: Alexandre Bailon --- drivers/remoteproc/Kconfig

Re: [PATCH 3/6] remoteproc: mtk_vpu_rproc: Add support of JTAG

2020-08-06 Thread Alexandre Bailon
On 7/21/20 9:52 PM, Mathieu Poirier wrote: On Mon, Jul 13, 2020 at 03:29:24PM +0200, Alexandre Bailon wrote: The DSP could be debugged using JTAG. The support of JTAG could enabled at build time and it could be enabled using debugfs. Signed-off-by: Alexandre Bailon --- drivers/remoteproc

[PATCH 3/6] remoteproc: mtk_vpu_rproc: Add support of JTAG

2020-07-13 Thread Alexandre Bailon
The DSP could be debugged using JTAG. The support of JTAG could enabled at build time and it could be enabled using debugfs. Signed-off-by: Alexandre Bailon --- drivers/remoteproc/Kconfig | 9 ++ drivers/remoteproc/mtk_apu_rproc.c | 156 - 2 files changed

[PATCH 2/6] remoteproc: Add a remoteproc driver for the MT8183's APU

2020-07-13 Thread Alexandre Bailon
This adds a driver to control the APU present in the MT8183. This loads the firmware and start the DSP. Signed-off-by: Alexandre Bailon --- drivers/remoteproc/Kconfig | 10 + drivers/remoteproc/Makefile| 1 + drivers/remoteproc/mtk_apu_rproc.c | 308

[PATCH 0/6] Add support of mt8183 APU

2020-07-13 Thread Alexandre Bailon
section). Because of that issue, the current driver doesn't map the the local RAM. Alexandre Bailon (6): dt bindings: remoteproc: Add bindings for MT8183 APU remoteproc: Add a remoteproc driver for the MT8183's APU remoteproc: mtk_vpu_rproc: Add support of JTAG remoteproc: mtk_vpu_rproc

[PATCH 4/6] remoteproc: mtk_vpu_rproc: Don't try to load empty PT_LOAD segment

2020-07-13 Thread Alexandre Bailon
y, the elf load won't try to load the segment. Signed-off-by: Alexandre Bailon --- drivers/remoteproc/mtk_apu_rproc.c | 35 +++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/mtk_apu_rproc.c b/drivers/remoteproc/mtk_apu_rpr

[PATCH 6/6] ARM64: mt8183: Add support of APU to mt8183

2020-07-13 Thread Alexandre Bailon
This adds the support of APU to mt8183. Signed-off-by: Alexandre Bailon --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 42 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index

[PATCH 1/6] dt bindings: remoteproc: Add bindings for MT8183 APU

2020-07-13 Thread Alexandre Bailon
This adds dt bindings for the APU present in the MT8183. Signed-off-by: Alexandre Bailon --- .../bindings/remoteproc/mtk,apu.yaml | 121 ++ 1 file changed, 121 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml diff --git

[PATCH 5/6] remoteproc: mtk_apu: Don't try to use the APU local RAM

2020-07-13 Thread Alexandre Bailon
Currently, this local RAM is not accessible from the CPU. If the CPU tries to access it, then the CPU will hang. Remoteproc may try to use it when it load a firmware that has some sections in the local RAM. This workarounds the issue by skiping this section. Signed-off-by: Alexandre Bailon

Re: [RFC PATCH 0/3] Add support of busfreq

2019-03-15 Thread Alexandre Bailon
Hi Mike, On 3/15/19 5:17 PM, Michael Turquette wrote: Hi Alex, Some nitpick review comments below. On Wed, Mar 13, 2019 at 12:33 PM Alexandre Bailon wrote: This series implements busfreq, a framework used in MXP's s/MXP/NXP/ tree to scale the interconnect and dram frequencies

Re: [RFC PATCH 0/3] Add support of busfreq

2019-03-15 Thread Alexandre Bailon
Hi Aisheng On 3/15/19 3:39 AM, Aisheng Dong wrote: +Jacky and Leonard, Ranjani Hi Alexandre, From: Alexandre Bailon [mailto:abai...@baylibre.com] This series implements busfreq, a framework used in MXP's tree to scale the interconnect and dram frequencies. In the vendor tree, device's

[RFC PATCH 1/3] drivers: interconnect: Add a driver for i.MX SoC

2019-03-13 Thread Alexandre Bailon
request for bandwidth which is use by busfreq to determine a performance level, and then scale the frequency. Busfreq platform drivers just have to registers interconnect nodes, and OPPs. Signed-off-by: Alexandre Bailon --- drivers/interconnect/Kconfig | 1 + drivers/interconnect/Makefile

[RFC PATCH 0/3] Add support of busfreq

2019-03-13 Thread Alexandre Bailon
, it won't be hard make it work. As exemple, this series implements busfreq for Alexandre Bailon (3): drivers: interconnect: Add a driver for i.MX SoC drivers: interconnect: imx: Add support of i.MX8MM dt-bindings: interconnect: Document fsl,busfreq-imx8mm bindings .../bindings/interconnect

[RFC PATCH 3/3] dt-bindings: interconnect: Document fsl,busfreq-imx8mm bindings

2019-03-13 Thread Alexandre Bailon
Document the device-tree bindings interconnect driver for i.MX8MM SoC. Signed-off-by: Alexandre Bailon --- .../bindings/interconnect/imx8mm.txt | 24 +++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/imx8mm.txt diff

[RFC PATCH 2/3] drivers: interconnect: imx: Add support of i.MX8MM

2019-03-13 Thread Alexandre Bailon
This adds a platform driver for the i.MX8MM SoC. Signed-off-by: Alexandre Bailon --- drivers/interconnect/imx/Kconfig | 4 + drivers/interconnect/imx/Makefile | 1 + drivers/interconnect/imx/busfreq-imx8mm.c | 132 ++ include/dt-bindings/interconnect

Re: [RFC PATCH 1/2] Add support of imx7ulp to interconnect framework

2019-03-12 Thread Alexandre Bailon
Hi Georgi, Sorry for the late response, I have just seen today that you have reviewed my patch. On 1/21/19 6:41 PM, Georgi Djakov wrote: Thank you for working on this! I am expecting the next version. I'm going to send a new patchset soon. I have rewritten pretty much everything, to handle

Re: [PATCH V4 0/9] clk: add imx7ulp clk support

2018-08-08 Thread Alexandre Bailon
Hi Dong Aisheng, On 07/26/2018 03:50 AM, A.s. Dong wrote: > Hi Stephen, > > Do you have a chance to look at it? > This patch series has been pending for quite a long time without much > comments. I'm not a kernel maintainer but I would not review a series that has checkpatch errors. Please run

Re: [PATCH V4 0/9] clk: add imx7ulp clk support

2018-08-08 Thread Alexandre Bailon
Hi Dong Aisheng, On 07/26/2018 03:50 AM, A.s. Dong wrote: > Hi Stephen, > > Do you have a chance to look at it? > This patch series has been pending for quite a long time without much > comments. I'm not a kernel maintainer but I would not review a series that has checkpatch errors. Please run

Re: [PATCH v6 1/8] interconnect: Add generic on-chip interconnect API

2018-07-11 Thread Alexandre Bailon
On 07/09/2018 05:50 PM, Georgi Djakov wrote: > This patch introduces a new API to get requirements and configure the > interconnect buses across the entire chipset to fit with the current > demand. > > The API is using a consumer/provider-based model, where the providers are > the interconnect

Re: [PATCH v6 1/8] interconnect: Add generic on-chip interconnect API

2018-07-11 Thread Alexandre Bailon
On 07/09/2018 05:50 PM, Georgi Djakov wrote: > This patch introduces a new API to get requirements and configure the > interconnect buses across the entire chipset to fit with the current > demand. > > The API is using a consumer/provider-based model, where the providers are > the interconnect

Re: [PATCH v6 6/8] interconnect: qcom: Add msm8916 interconnect provider driver

2018-07-11 Thread Alexandre Bailon
On 07/09/2018 05:51 PM, Georgi Djakov wrote: > Add driver for the Qualcomm interconnect buses found in msm8916 based > platforms. > > Signed-off-by: Georgi Djakov > --- > drivers/interconnect/Kconfig| 5 + > drivers/interconnect/Makefile | 1 + >

Re: [PATCH v6 6/8] interconnect: qcom: Add msm8916 interconnect provider driver

2018-07-11 Thread Alexandre Bailon
On 07/09/2018 05:51 PM, Georgi Djakov wrote: > Add driver for the Qualcomm interconnect buses found in msm8916 based > platforms. > > Signed-off-by: Georgi Djakov > --- > drivers/interconnect/Kconfig| 5 + > drivers/interconnect/Makefile | 1 + >

Re: [PATCH v6 1/8] interconnect: Add generic on-chip interconnect API

2018-07-11 Thread Alexandre Bailon
Hi Georgi, On 07/09/2018 05:50 PM, Georgi Djakov wrote: > This patch introduces a new API to get requirements and configure the > interconnect buses across the entire chipset to fit with the current > demand. > > The API is using a consumer/provider-based model, where the providers are > the

Re: [PATCH v6 1/8] interconnect: Add generic on-chip interconnect API

2018-07-11 Thread Alexandre Bailon
Hi Georgi, On 07/09/2018 05:50 PM, Georgi Djakov wrote: > This patch introduces a new API to get requirements and configure the > interconnect buses across the entire chipset to fit with the current > demand. > > The API is using a consumer/provider-based model, where the providers are > the

Re: [PATCH v4 1/7] interconnect: Add generic on-chip interconnect API

2018-06-08 Thread Alexandre Bailon
On 03/09/2018 10:09 PM, Georgi Djakov wrote: > This patch introduce a new API to get requirements and configure the > interconnect buses across the entire chipset to fit with the current > demand. > > The API is using a consumer/provider-based model, where the providers are > the interconnect

Re: [PATCH v4 1/7] interconnect: Add generic on-chip interconnect API

2018-06-08 Thread Alexandre Bailon
On 03/09/2018 10:09 PM, Georgi Djakov wrote: > This patch introduce a new API to get requirements and configure the > interconnect buses across the entire chipset to fit with the current > demand. > > The API is using a consumer/provider-based model, where the providers are > the interconnect

[PATCH v5 1/2] ARM: dts: da850: Add the usb otg device node

2016-11-16 Thread Alexandre Bailon
This adds the device tree node for the usb otg controller present in the da850 family of SoC's. Signed-off-by: Alexandre Bailon <abai...@baylibre.com> --- arch/arm/boot/dts/da850.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/bo

[PATCH v5 1/2] ARM: dts: da850: Add the usb otg device node

2016-11-16 Thread Alexandre Bailon
This adds the device tree node for the usb otg controller present in the da850 family of SoC's. Signed-off-by: Alexandre Bailon --- arch/arm/boot/dts/da850.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index

[PATCH v5 2/2] ARM: dts: da850-lcdk: Enable the usb otg device node

2016-11-16 Thread Alexandre Bailon
This enables the usb otg controller for the lcdk board. Signed-off-by: Alexandre Bailon <abai...@baylibre.com> --- arch/arm/boot/dts/da850-lcdk.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index 7

[PATCH v5 2/2] ARM: dts: da850-lcdk: Enable the usb otg device node

2016-11-16 Thread Alexandre Bailon
This enables the usb otg controller for the lcdk board. Signed-off-by: Alexandre Bailon --- arch/arm/boot/dts/da850-lcdk.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index 7b8ab21..03f9bfd 100644 --- a/arch

[PATCH v5 0/2] platform: Add DT support for DA8xx

2016-11-16 Thread Alexandre Bailon
ted the patch in two: one for the board and one for the SoC. Alexandre Bailon (2): ARM: dts: da850: Add the usb otg device node ARM: dts: da850-lcdk: Enable the usb otg device node arch/arm/boot/dts/da850-lcdk.dts | 8 arch/arm/boot/dts/da850.dtsi | 10 ++ 2 files ch

[PATCH v5 0/2] platform: Add DT support for DA8xx

2016-11-16 Thread Alexandre Bailon
ted the patch in two: one for the board and one for the SoC. Alexandre Bailon (2): ARM: dts: da850: Add the usb otg device node ARM: dts: da850-lcdk: Enable the usb otg device node arch/arm/boot/dts/da850-lcdk.dts | 8 arch/arm/boot/dts/da850.dtsi | 10 ++ 2 files ch

[PATCH v5 1/3] dt/bindings: Add binding for the DA8xx MUSB driver

2016-11-16 Thread Alexandre Bailon
From: Petr Kulhavy <p...@barix.com> DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver. Signed-off-by: Petr Kulhavy <p...@barix.com> Signed-off-by: Alexandre Bailon <abai...@baylibre.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bi

[PATCH v5 2/3] usb: musb: core: added helper function for parsing DT

2016-11-16 Thread Alexandre Bailon
From: Petr Kulhavy <p...@barix.com> This adds the function musb_get_mode() to get the DT property "dr_mode" Signed-off-by: Petr Kulhavy <p...@barix.com> Acked-by: Sergei Shtylyov <sshtyl...@ru.mvista.com> Signed-off-by: Alexandre Bailon <abai...@baylibre.co

[PATCH v5 1/3] dt/bindings: Add binding for the DA8xx MUSB driver

2016-11-16 Thread Alexandre Bailon
From: Petr Kulhavy DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver. Signed-off-by: Petr Kulhavy Signed-off-by: Alexandre Bailon Acked-by: Rob Herring --- .../devicetree/bindings/usb/da8xx-usb.txt | 43 ++ 1 file changed, 43 insertions(+) create

[PATCH v5 2/3] usb: musb: core: added helper function for parsing DT

2016-11-16 Thread Alexandre Bailon
From: Petr Kulhavy This adds the function musb_get_mode() to get the DT property "dr_mode" Signed-off-by: Petr Kulhavy Acked-by: Sergei Shtylyov Signed-off-by: Alexandre Bailon Tested-by: David Lechner Reviewed-by: Kevin Hilman --- drivers/usb/musb/musb_c

[PATCH v5 3/3] usb: musb: da8xx: Add DT support for the DA8xx driver

2016-11-16 Thread Alexandre Bailon
From: Petr Kulhavy <p...@barix.com> This adds DT support for TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver Signed-off-by: Petr Kulhavy <p...@barix.com> Signed-off-by: Alexandre Bailon <abai...@baylibre.com> Tested-by: David Lechner <da...@lechnology.com> --- drive

[PATCH v5 0/3] driver: Add DT support for DA8xx

2016-11-16 Thread Alexandre Bailon
Changes in v2: * Remove unrelated changes in patch 3 * Rename the device node in patch 4 Changes in v3: * Fix few mistakes in DT binding sample * Only build the device table if DT is enabled Change in v4: * Fix a nit Changes in v5: * Nothing. Resent the v4 in two seppaated series: one for

[PATCH v5 3/3] usb: musb: da8xx: Add DT support for the DA8xx driver

2016-11-16 Thread Alexandre Bailon
From: Petr Kulhavy This adds DT support for TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver Signed-off-by: Petr Kulhavy Signed-off-by: Alexandre Bailon Tested-by: David Lechner --- drivers/usb/musb/da8xx.c | 46 ++ 1 file changed, 46 insertions

[PATCH v5 0/3] driver: Add DT support for DA8xx

2016-11-16 Thread Alexandre Bailon
Changes in v2: * Remove unrelated changes in patch 3 * Rename the device node in patch 4 Changes in v3: * Fix few mistakes in DT binding sample * Only build the device table if DT is enabled Change in v4: * Fix a nit Changes in v5: * Nothing. Resent the v4 in two seppaated series: one for

Re: [PATCH v4 4/4] ARM: dts: da850: Add the usb otg device node

2016-11-16 Thread Alexandre Bailon
On 11/16/2016 11:41 AM, Sekhar Nori wrote: > On Wednesday 16 November 2016 04:05 PM, Alexandre Bailon wrote: >> On 11/15/2016 11:46 AM, Sekhar Nori wrote: >>> On Thursday 03 November 2016 09:29 PM, Alexandre Bailon wrote: >>>> This adds the device tree node for the u

Re: [PATCH v4 4/4] ARM: dts: da850: Add the usb otg device node

2016-11-16 Thread Alexandre Bailon
On 11/16/2016 11:41 AM, Sekhar Nori wrote: > On Wednesday 16 November 2016 04:05 PM, Alexandre Bailon wrote: >> On 11/15/2016 11:46 AM, Sekhar Nori wrote: >>> On Thursday 03 November 2016 09:29 PM, Alexandre Bailon wrote: >>>> This adds the device tree node for the u

Re: [PATCH v4 4/4] ARM: dts: da850: Add the usb otg device node

2016-11-16 Thread Alexandre Bailon
On 11/15/2016 11:46 AM, Sekhar Nori wrote: > On Thursday 03 November 2016 09:29 PM, Alexandre Bailon wrote: >> This adds the device tree node for the usb otg >> controller present in the da850 family of SoC's. >> This also enables the otg usb controller for the lcdk bo

Re: [PATCH v4 4/4] ARM: dts: da850: Add the usb otg device node

2016-11-16 Thread Alexandre Bailon
On 11/15/2016 11:46 AM, Sekhar Nori wrote: > On Thursday 03 November 2016 09:29 PM, Alexandre Bailon wrote: >> This adds the device tree node for the usb otg >> controller present in the da850 family of SoC's. >> This also enables the otg usb controller for the lcdk bo

[PATCH v6 2/2] usb: musb: da8xx: Set phy in OTG mode by default

2016-11-15 Thread Alexandre Bailon
The DA8xx OTG PHY has some issues when it is forced in host or peripheral mode. Actually, most of the time, OTG is the best mode because host or peripheral mode are only required for hardware that miss some circuitry. Init the PHY mode OTG mode by default. Signed-off-by: Alexandre Bailon <a

[PATCH v6 2/2] usb: musb: da8xx: Set phy in OTG mode by default

2016-11-15 Thread Alexandre Bailon
The DA8xx OTG PHY has some issues when it is forced in host or peripheral mode. Actually, most of the time, OTG is the best mode because host or peripheral mode are only required for hardware that miss some circuitry. Init the PHY mode OTG mode by default. Signed-off-by: Alexandre Bailon

[PATCH v6 0/2] usb: musb: da8xx: Fix few issues

2016-11-15 Thread Alexandre Bailon
() is called from init. Changes in v6: * Remove the patch that was adding a new parametter to musb_platform_set_mode(). Instead, use the variable is_initialized. * The patch fixing the phy has been merged to phy-next, so I removed it from this series. Alexandre Bailon (2): usb: musb: da8xx

[PATCH v6 0/2] usb: musb: da8xx: Fix few issues

2016-11-15 Thread Alexandre Bailon
() is called from init. Changes in v6: * Remove the patch that was adding a new parametter to musb_platform_set_mode(). Instead, use the variable is_initialized. * The patch fixing the phy has been merged to phy-next, so I removed it from this series. Alexandre Bailon (2): usb: musb: da8xx

[PATCH v6 1/2] usb: musb: da8xx: Call earlier clk_prepare_enable()

2016-11-15 Thread Alexandre Bailon
The first attempt to read a register may fail because the clock may not be enabled, and then the probe of musb driver will fail. Call clk_prepare_enable() before the first register read. Signed-off-by: Alexandre Bailon <abai...@baylibre.com> --- drivers/usb/musb/da8xx.c | 17 --

[PATCH v6 1/2] usb: musb: da8xx: Call earlier clk_prepare_enable()

2016-11-15 Thread Alexandre Bailon
The first attempt to read a register may fail because the clock may not be enabled, and then the probe of musb driver will fail. Call clk_prepare_enable() before the first register read. Signed-off-by: Alexandre Bailon --- drivers/usb/musb/da8xx.c | 17 - 1 file changed, 8

Re: [PATCH v5 3/4] usb: musb: Add a new argument to musb_platform_set_mode()

2016-11-14 Thread Alexandre Bailon
On 11/14/2016 06:36 PM, Bin Liu wrote: > Hi, > > On Mon, Nov 07, 2016 at 02:05:07PM +0100, Alexandre Bailon wrote: >> During the init, the driver will use musb_platform_set_mode() >> to configure the controller mode and the PHY mode. >> The PHY of DA8xx has some is

Re: [PATCH v5 3/4] usb: musb: Add a new argument to musb_platform_set_mode()

2016-11-14 Thread Alexandre Bailon
On 11/14/2016 06:36 PM, Bin Liu wrote: > Hi, > > On Mon, Nov 07, 2016 at 02:05:07PM +0100, Alexandre Bailon wrote: >> During the init, the driver will use musb_platform_set_mode() >> to configure the controller mode and the PHY mode. >> The PHY of DA8xx has some is

[PATCH v5 0/4] usb: musb: da8xx: Fix few issues

2016-11-07 Thread Alexandre Bailon
. Changes in v5: * Add the init argument to musb_platform_set_mode() and set_mode() callback. * Remove the quirk * Configure the DA8xx phy in OTG mode if da8xx_musb_set_mode() is called from init. Alexandre Bailon (4): usb: musb: da8xx: Call earlier clk_prepare_enable() phy: da8xx-usb: Configure

[PATCH v5 0/4] usb: musb: da8xx: Fix few issues

2016-11-07 Thread Alexandre Bailon
. Changes in v5: * Add the init argument to musb_platform_set_mode() and set_mode() callback. * Remove the quirk * Configure the DA8xx phy in OTG mode if da8xx_musb_set_mode() is called from init. Alexandre Bailon (4): usb: musb: da8xx: Call earlier clk_prepare_enable() phy: da8xx-usb: Configure

[PATCH v5 3/4] usb: musb: Add a new argument to musb_platform_set_mode()

2016-11-07 Thread Alexandre Bailon
argument to musb_platform_set_mode() in order to let the callback change its behavior if it is called during the init. Signed-off-by: Alexandre Bailon <abai...@baylibre.com> --- drivers/usb/musb/am35x.c | 2 +- drivers/usb/musb/blackfin.c | 2 +- drivers/usb/musb/da8xx.c | 2 +- d

[PATCH v5 1/4] usb: musb: da8xx: Call earlier clk_prepare_enable()

2016-11-07 Thread Alexandre Bailon
The first attempt to read a register may fail because the clock may not be enabled, and then the probe of musb driver will fail. Call clk_prepare_enable() before the first register read. Signed-off-by: Alexandre Bailon <abai...@baylibre.com> --- drivers/usb/musb/da8xx.c | 17 --

[PATCH v5 3/4] usb: musb: Add a new argument to musb_platform_set_mode()

2016-11-07 Thread Alexandre Bailon
argument to musb_platform_set_mode() in order to let the callback change its behavior if it is called during the init. Signed-off-by: Alexandre Bailon --- drivers/usb/musb/am35x.c | 2 +- drivers/usb/musb/blackfin.c | 2 +- drivers/usb/musb/da8xx.c | 2 +- drivers/usb/musb/davinci.c

[PATCH v5 1/4] usb: musb: da8xx: Call earlier clk_prepare_enable()

2016-11-07 Thread Alexandre Bailon
The first attempt to read a register may fail because the clock may not be enabled, and then the probe of musb driver will fail. Call clk_prepare_enable() before the first register read. Signed-off-by: Alexandre Bailon --- drivers/usb/musb/da8xx.c | 17 - 1 file changed, 8

[PATCH v5 4/4] usb: musb: da8xx: Set phy in OTG mode by default

2016-11-07 Thread Alexandre Bailon
The DA8xx OTG PHY has some issues when it is forced in host or peripheral mode. Actually, most of the time, OTG is the best mode because host or peripheral mode are only required for hardware that miss some circuitry. Init the PHY mode OTG mode by default. Signed-off-by: Alexandre Bailon <a

[PATCH v5 2/4] phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

2016-11-07 Thread Alexandre Bailon
require the VBUS sense and the session end comparator to enabled. Enable them if the phy is configured in OTG mode. Signed-off-by: Alexandre Bailon <abai...@baylibre.com> --- drivers/phy/phy-da8xx-usb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/phy/phy-da8xx-usb.c b/drive

[PATCH v5 2/4] phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

2016-11-07 Thread Alexandre Bailon
require the VBUS sense and the session end comparator to enabled. Enable them if the phy is configured in OTG mode. Signed-off-by: Alexandre Bailon --- drivers/phy/phy-da8xx-usb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/phy/phy-da8xx-usb.c b/drivers/phy/phy-da8xx-usb.c index

[PATCH v5 4/4] usb: musb: da8xx: Set phy in OTG mode by default

2016-11-07 Thread Alexandre Bailon
The DA8xx OTG PHY has some issues when it is forced in host or peripheral mode. Actually, most of the time, OTG is the best mode because host or peripheral mode are only required for hardware that miss some circuitry. Init the PHY mode OTG mode by default. Signed-off-by: Alexandre Bailon

[PATCH v4 0/4] usb: musb: da8xx: Fix few issues

2016-11-04 Thread Alexandre Bailon
. Alexandre Bailon (4): usb: musb: da8xx: Call earlier clk_prepare_enable() phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround usb: musb: Add a quirk flag to skip the phy set mode usb: musb: da8xx: Set phy in OTG mode by default drivers/phy/phy-da8xx-usb.c | 20

[PATCH v4 0/4] usb: musb: da8xx: Fix few issues

2016-11-04 Thread Alexandre Bailon
. Alexandre Bailon (4): usb: musb: da8xx: Call earlier clk_prepare_enable() phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround usb: musb: Add a quirk flag to skip the phy set mode usb: musb: da8xx: Set phy in OTG mode by default drivers/phy/phy-da8xx-usb.c | 20

[PATCH v4 1/4] usb: musb: da8xx: Call earlier clk_prepare_enable()

2016-11-04 Thread Alexandre Bailon
The first attempt to read a register may fail because the clock may not be enabled, and then the probe of musb driver will fail. Call clk_prepare_enable() before the first register read. Signed-off-by: Alexandre Bailon <abai...@baylibre.com> --- drivers/usb/musb/da8xx.c | 17 --

[PATCH v4 3/4] usb: musb: Add a quirk flag to skip the phy set mode

2016-11-04 Thread Alexandre Bailon
During the init, the driver will use the mode to configure the controller mode and the phy mode. The PHY of DA8xx has some issues when the phy is forced in host or device. Add way to skip the set mode and let the da8xx glue manage the phy mode. Signed-off-by: Alexandre Bailon <a

[PATCH v4 2/4] phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

2016-11-04 Thread Alexandre Bailon
require the VBUS sense and the session end comparator to enabled. Enable them if the phy is configured in OTG mode. Signed-off-by: Alexandre Bailon <abai...@baylibre.com> --- drivers/phy/phy-da8xx-usb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/phy/phy-da8xx-usb.c b/drive

[PATCH v4 4/4] usb: musb: da8xx: Set phy in OTG mode by default

2016-11-04 Thread Alexandre Bailon
The DA8xx OTG PHY has some issues when it is forced in host or peripheral mode. Actually, most of the time, OTG is the best mode because host or peripheral mode are only required for hardware that miss some circuitry. Init the PHY mode OTG mode by default. Signed-off-by: Alexandre Bailon <a

[PATCH v4 1/4] usb: musb: da8xx: Call earlier clk_prepare_enable()

2016-11-04 Thread Alexandre Bailon
The first attempt to read a register may fail because the clock may not be enabled, and then the probe of musb driver will fail. Call clk_prepare_enable() before the first register read. Signed-off-by: Alexandre Bailon --- drivers/usb/musb/da8xx.c | 17 - 1 file changed, 8

[PATCH v4 3/4] usb: musb: Add a quirk flag to skip the phy set mode

2016-11-04 Thread Alexandre Bailon
During the init, the driver will use the mode to configure the controller mode and the phy mode. The PHY of DA8xx has some issues when the phy is forced in host or device. Add way to skip the set mode and let the da8xx glue manage the phy mode. Signed-off-by: Alexandre Bailon --- drivers/usb

[PATCH v4 2/4] phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

2016-11-04 Thread Alexandre Bailon
require the VBUS sense and the session end comparator to enabled. Enable them if the phy is configured in OTG mode. Signed-off-by: Alexandre Bailon --- drivers/phy/phy-da8xx-usb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/phy/phy-da8xx-usb.c b/drivers/phy/phy-da8xx-usb.c index

[PATCH v4 4/4] usb: musb: da8xx: Set phy in OTG mode by default

2016-11-04 Thread Alexandre Bailon
The DA8xx OTG PHY has some issues when it is forced in host or peripheral mode. Actually, most of the time, OTG is the best mode because host or peripheral mode are only required for hardware that miss some circuitry. Init the PHY mode OTG mode by default. Signed-off-by: Alexandre Bailon

Re: [PATCH v3 3/5] dt/bindings: Add a new property to DA8xx USB PHY

2016-11-04 Thread Alexandre Bailon
On 11/03/2016 06:50 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 03 November 2016 10:56 PM, Alexandre Bailon wrote: >> On 11/03/2016 05:34 PM, Kishon Vijay Abraham I wrote: >>> Hi, >>> >>> On Thursday 03 November 2016 08:56 PM, Alexan

Re: [PATCH v3 3/5] dt/bindings: Add a new property to DA8xx USB PHY

2016-11-04 Thread Alexandre Bailon
On 11/03/2016 06:50 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 03 November 2016 10:56 PM, Alexandre Bailon wrote: >> On 11/03/2016 05:34 PM, Kishon Vijay Abraham I wrote: >>> Hi, >>> >>> On Thursday 03 November 2016 08:56 PM, Alexan

Re: [PATCH v3 5/5] usb: musb: da8xx: Remove set_mode callback

2016-11-03 Thread Alexandre Bailon
On 11/03/2016 06:27 PM, Bin Liu wrote: > On Thu, Nov 03, 2016 at 12:18:53PM -0500, David Lechner wrote: >> On 11/03/2016 10:26 AM, Alexandre Bailon wrote: >>> The USB PHY is able to operate in OTG, host or peripheral. >>> Some board may be wired to work act

Re: [PATCH v3 5/5] usb: musb: da8xx: Remove set_mode callback

2016-11-03 Thread Alexandre Bailon
On 11/03/2016 06:27 PM, Bin Liu wrote: > On Thu, Nov 03, 2016 at 12:18:53PM -0500, David Lechner wrote: >> On 11/03/2016 10:26 AM, Alexandre Bailon wrote: >>> The USB PHY is able to operate in OTG, host or peripheral. >>> Some board may be wired to work act

Re: [PATCH v3 3/5] dt/bindings: Add a new property to DA8xx USB PHY

2016-11-03 Thread Alexandre Bailon
On 11/03/2016 05:53 PM, David Lechner wrote: > On 11/03/2016 10:26 AM, Alexandre Bailon wrote: >> The USB PHY is able to operate in OTG, host or peripheral. >> Some board may be wired to work act only as host or peripheral. >> In such case, the dr_mode property of controller m

Re: [PATCH v3 3/5] dt/bindings: Add a new property to DA8xx USB PHY

2016-11-03 Thread Alexandre Bailon
On 11/03/2016 05:53 PM, David Lechner wrote: > On 11/03/2016 10:26 AM, Alexandre Bailon wrote: >> The USB PHY is able to operate in OTG, host or peripheral. >> Some board may be wired to work act only as host or peripheral. >> In such case, the dr_mode property of controller m

Re: [PATCH v3 3/5] dt/bindings: Add a new property to DA8xx USB PHY

2016-11-03 Thread Alexandre Bailon
On 11/03/2016 05:34 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 03 November 2016 08:56 PM, Alexandre Bailon wrote: >> The USB PHY is able to operate in OTG, host or peripheral. >> Some board may be wired to work act only as host or peripheral. >> In such

Re: [PATCH v3 3/5] dt/bindings: Add a new property to DA8xx USB PHY

2016-11-03 Thread Alexandre Bailon
On 11/03/2016 05:34 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 03 November 2016 08:56 PM, Alexandre Bailon wrote: >> The USB PHY is able to operate in OTG, host or peripheral. >> Some board may be wired to work act only as host or peripheral. >> In such

[PATCH v4 0/4] Add DT support for DA8xx

2016-11-03 Thread Alexandre Bailon
Changes in v2: * Remove unrelated changes in patch 3 * Rename the device node in patch 4 Changes in v3: * Fix few mistakes in DT binding sample * Only build the device table if DT is enabled Change in v4: * Fix a nit Alexandre Bailon (1): ARM: dts: da850: Add the usb otg device node Petr

[PATCH v4 0/4] Add DT support for DA8xx

2016-11-03 Thread Alexandre Bailon
Changes in v2: * Remove unrelated changes in patch 3 * Rename the device node in patch 4 Changes in v3: * Fix few mistakes in DT binding sample * Only build the device table if DT is enabled Change in v4: * Fix a nit Alexandre Bailon (1): ARM: dts: da850: Add the usb otg device node Petr

[PATCH v4 3/4] usb: musb: da8xx: Add DT support for the DA8xx driver

2016-11-03 Thread Alexandre Bailon
From: Petr Kulhavy <p...@barix.com> This adds DT support for TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver Signed-off-by: Petr Kulhavy <p...@barix.com> Signed-off-by: Alexandre Bailon <abai...@baylibre.com> Tested-by: David Lechner <da...@lechnology.com> --- drive

[PATCH v4 3/4] usb: musb: da8xx: Add DT support for the DA8xx driver

2016-11-03 Thread Alexandre Bailon
From: Petr Kulhavy This adds DT support for TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver Signed-off-by: Petr Kulhavy Signed-off-by: Alexandre Bailon Tested-by: David Lechner --- drivers/usb/musb/da8xx.c | 46 ++ 1 file changed, 46 insertions

[PATCH v4 2/4] usb: musb: core: added helper function for parsing DT

2016-11-03 Thread Alexandre Bailon
From: Petr Kulhavy <p...@barix.com> This adds the function musb_get_mode() to get the DT property "dr_mode" Signed-off-by: Petr Kulhavy <p...@barix.com> Acked-by: Sergei Shtylyov <sshtyl...@ru.mvista.com> Signed-off-by: Alexandre Bailon <abai...@baylibre.co

[PATCH v4 2/4] usb: musb: core: added helper function for parsing DT

2016-11-03 Thread Alexandre Bailon
From: Petr Kulhavy This adds the function musb_get_mode() to get the DT property "dr_mode" Signed-off-by: Petr Kulhavy Acked-by: Sergei Shtylyov Signed-off-by: Alexandre Bailon Tested-by: David Lechner Reviewed-by: Kevin Hilman --- drivers/usb/musb/musb_c

[PATCH v4 1/4] dt/bindings: Add binding for the DA8xx MUSB driver

2016-11-03 Thread Alexandre Bailon
From: Petr Kulhavy <p...@barix.com> DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver. Signed-off-by: Petr Kulhavy <p...@barix.com> Signed-off-by: Alexandre Bailon <abai...@baylibre.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bi

[PATCH v4 1/4] dt/bindings: Add binding for the DA8xx MUSB driver

2016-11-03 Thread Alexandre Bailon
From: Petr Kulhavy DT binding for the TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver. Signed-off-by: Petr Kulhavy Signed-off-by: Alexandre Bailon Acked-by: Rob Herring --- .../devicetree/bindings/usb/da8xx-usb.txt | 43 ++ 1 file changed, 43 insertions(+) create

[PATCH v4 4/4] ARM: dts: da850: Add the usb otg device node

2016-11-03 Thread Alexandre Bailon
This adds the device tree node for the usb otg controller present in the da850 family of SoC's. This also enables the otg usb controller for the lcdk board. Signed-off-by: Alexandre Bailon <abai...@baylibre.com> --- arch/arm/boot/dts/da850-lcdk.dts | 8 arch/arm/boot/dts/da85

  1   2   >