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 in

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

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

2020-09-10 Thread Alexandre Bailon
e way 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

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
ually, to initialize data 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

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

2020-07-13 Thread Alexandre Bailon
at way, 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/m

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

[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. I

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

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

2019-03-13 Thread Alexandre Bailon
27; driver 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/interconnec

[RFC PATCH 0/3] Add support of busfreq

2019-03-13 Thread Alexandre Bailon
o do the frequency scaling, 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 b

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

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 c

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 bus

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 + > drivers/interconnect/qcom/Kconf

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 inte

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 buse

[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

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

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

[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
_mode() 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:

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

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

2016-11-07 Thread Alexandre Bailon
river. 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: Conf

[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 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
river. 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

[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, Alexandre

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 only as host

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 ca

[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 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 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 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 --- arch/arm/boot/dts/da850-lcdk.dts | 8 arch/arm/boot/dts/da850.dtsi

[PATCH v3 0/5] usb: musb: da8xx: Fix few issues

2016-11-03 Thread Alexandre Bailon
cific mode (host or device). * Only use dr_mode to configure the controller mode and let the phy in OTG mode. The main goal of this change is to prevent the phy to be set in host or device mode because these modes have some issues. Alexandre Bailon (5): usb: musb: da8xx: Call ea

[PATCH v3 4/5] phy: da8xx-usb: Use usb20_force_mode property to configure the phy mode

2016-11-03 Thread Alexandre Bailon
possible. Only force the PHY in a specific mode if usb20_force_mode is set in DT. Signed-off-by: Alexandre Bailon --- drivers/phy/phy-da8xx-usb.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/phy/phy-da8xx-usb.c b/drivers/phy/phy-da8xx-usb.c index fd39292..bf1b3af 10064

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

2016-11-03 Thread Alexandre Bailon
issues. The OTG mode work correctly but the host and peripheral don't. In host mode, the PHY stops to work after the first disconnect. In device mode, the PHY doesn't detect any disconnect. As the OTG mode is working properly, let the PHY in OTG mode, whatever is the controller mode. Signed

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

2016-11-03 Thread Alexandre Bailon
dr_mode should also be configured to host or peripheral. The controller uses dr_mode to configure itself, but the phy use it to get the mode to use to configure the PHY mode. Signed-off-by: Alexandre Bailon --- Documentation/devicetree/bindings/phy/phy-da8xx-usb.txt | 5 + 1 file change

[PATCH v3 1/5] usb: musb: da8xx: Call earlier clk_prepare_enable()

2016-11-03 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 v3 2/5] phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

2016-11-03 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 | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/phy/phy-da8xx-usb.c b

Re: [PATCH v2 3/3] usb: musb: da8xx: Only execute the OTG workaround when phy in OTG mode

2016-10-28 Thread Alexandre Bailon
On 10/28/2016 04:56 AM, David Lechner wrote: > On 10/26/2016 05:58 AM, Alexandre Bailon wrote: >> When the phy is forced in host mode, only the first hot plug and >> hot remove works. That is actually because the driver execute the >> OTG workaround, whereas it is not applica

Re: [PATCH v2 0/3] usb: musb: da8xx: Fix few issues

2016-10-28 Thread Alexandre Bailon
On 10/28/2016 11:31 AM, Alexandre Bailon wrote: > On 10/27/2016 08:44 PM, David Lechner wrote: >> On 10/27/2016 12:16 PM, David Lechner wrote: >>> On 10/26/2016 05:58 AM, Alexandre Bailon wrote: >>>> Currently, the USB OTG of the da8xx doesn't work.

Re: [PATCH v2 0/3] usb: musb: da8xx: Fix few issues

2016-10-28 Thread Alexandre Bailon
On 10/27/2016 08:44 PM, David Lechner wrote: > On 10/27/2016 12:16 PM, David Lechner wrote: >> On 10/26/2016 05:58 AM, Alexandre Bailon wrote: >>> Currently, the USB OTG of the da8xx doesn't work. >>> This series intend to fix them. >>> >>> Chan

[PATCH v4] ARM: davinci: da8xx: Remove duplicated defines

2016-10-27 Thread Alexandre Bailon
Some macro for DA8xx CFGCHIP are defined in usb-davinci.h, but da8xx-cfgchip.h intend to replace them. Remove duplicated defines between da8xx-cfgchip.h and usb-davinci.h Signed-off-by: Alexandre Bailon --- arch/arm/mach-davinci/board-da830-evm.c | 5 +++-- arch/arm/mach-davinci/board

[PATCH v4] Remove duplicated defines (was [PATCH v3] Fix some potential warnings)

2016-10-27 Thread Alexandre Bailon
hange the patch description to better respect what the patch fix. * Sorted new header sorted in alphabetical order. Alexandre Bailon (1): ARM: davinci: da8xx: Remove duplicated defines arch/arm/mach-davinci/board-da830-evm.c | 5 +++-- arch/arm/mach-davinci/board-omapl138-hawk.c | 3 ++-

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

2016-10-27 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 v3 0/4] Add DT support for DA8xx

2016-10-27 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 Alexandre Bailon (1): ARM: dts: da850: Add the usb otg device node Petr Kulhavy (3): dt/bindings

Re: [PATCH v3] ARM: davinci: da8xx: Fix some redefined symbol warnings

2016-10-27 Thread Alexandre Bailon
On 10/27/2016 01:54 PM, Sekhar Nori wrote: > On Thursday 27 October 2016 05:13 PM, Sekhar Nori wrote: >> On Wednesday 26 October 2016 06:09 PM, Alexandre Bailon wrote: >>> Some macro for DA8xx CFGCHIP are defined in usb-davinci.h, >>> but da8xx-cfgchip.h intend to replac

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

2016-10-27 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 --- drivers/usb/musb/musb_core.c | 19 +++ drivers/usb/musb/m

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

2016-10-27 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 --- .../devicetree/bindings/usb/da8xx-usb.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644

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

2016-10-27 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 --- arch/arm/boot/dts/da850-lcdk.dts | 8 arch/arm/boot/dts/da850.dtsi

Re: [PATCH v2 2/3] phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

2016-10-26 Thread Alexandre Bailon
On 10/26/2016 05:40 PM, David Lechner wrote: > On 10/26/2016 05:58 AM, Alexandre Bailon wrote: >> If we configure the da8xx OTG phy in OTG mode, neither device or host >> mode will work. That is because the PHY is not able to detect and notify >> the driver that value of ID pi

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

2016-10-26 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 --- drivers/usb/musb/musb_core.c | 19 +++ drivers/usb/musb/musb_core.h | 5

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

2016-10-26 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 --- arch/arm/boot/dts/da850-lcdk.dts | 8 arch/arm/boot/dts/da850.dtsi

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

2016-10-26 Thread Alexandre Bailon
: * Remove unrelated changes in patch 3 * Rename the device node in patch 4 Alexandre Bailon (1): ARM: dts: da850: Add the usb otg device node Petr Kulhavy (3): dt/bindings: Add binding for the DA8xx MUSB driver usb: musb: core: added helper function for parsing DT usb: musb: da8xx: Add

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

2016-10-26 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 --- drivers/usb/musb/da8xx.c | 47 +++ 1 file changed, 47 insertions(+) diff --git a/drivers/usb

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

2016-10-26 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 --- .../devicetree/bindings/usb/da8xx-usb.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644

Re: [PATCH v2] ARM: davinci: da8xx: Fix some redefined symbol warnings

2016-10-26 Thread Alexandre Bailon
On 10/26/2016 01:57 PM, Sekhar Nori wrote: > On Tuesday 25 October 2016 05:41 PM, Alexandre Bailon wrote: >> Some macro for DA8xx CFGCHIP are defined in usb-davinci.h, >> but da8xx-cfgchip.h intend to replace them. >> The usb-da8xx.c is using both headers, causing rede

[PATCH v3] ARM: davinci: da8xx: Fix some redefined symbol warnings

2016-10-26 Thread Alexandre Bailon
Some macro for DA8xx CFGCHIP are defined in usb-davinci.h, but da8xx-cfgchip.h intend to replace them. The usb-da8xx.c is using both headers, causing redefined symbol warnings. Remove the macro and update the board files to use da8xx-cfgchip.h Signed-off-by: Alexandre Bailon --- arch/arm/mach

[PATCH v3] Fix some potential warnings

2016-10-26 Thread Alexandre Bailon
upport for ohci-da8xx" Change in v3: Fix build issues happening in omapl138 hawk and da830 evm board files. Alexandre Bailon (1): ARM: davinci: da8xx: Fix some redefined symbol warnings arch/arm/mach-davinci/board-da830-evm.c | 5 +++-- arch/arm/mach-davinci/board-omapl138-hawk.c |

[PATCH v2 1/3] usb: musb: da8xx: Call earlier clk_prepare_enable()

2016-10-26 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 v2 3/3] usb: musb: da8xx: Only execute the OTG workaround when phy in OTG mode

2016-10-26 Thread Alexandre Bailon
possible when the phy is in OTG mode. Only execute the workaround if the phy is in OTG mode. Signed-off-by: Alexandre Bailon --- drivers/usb/musb/da8xx.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index 6749aa1..b8a6b65

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

2016-10-26 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 | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/phy/phy-da8xx-usb.c b

[PATCH v2 0/3] usb: musb: da8xx: Fix few issues

2016-10-26 Thread Alexandre Bailon
Currently, the USB OTG of the da8xx doesn't work. This series intend to fix them. Change in v2: * Fix the error path da8xx_musb_init() Alexandre Bailon (3): usb: musb: da8xx: Call earlier clk_prepare_enable() phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround usb: musb:

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

2016-10-26 Thread Alexandre Bailon
On 10/25/2016 07:38 PM, Sergei Shtylyov wrote: > Hello. > > On 10/25/2016 05:39 PM, Alexandre Bailon wrote: > >> From: Petr Kulhavy >> >> This adds DT support for TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver >> >> Signed-off-by: Petr K

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

2016-10-26 Thread Alexandre Bailon
On 10/25/2016 09:16 PM, David Lechner wrote: > On 10/25/2016 08:52 AM, Alexandre Bailon wrote: >> If we configure the da8xx OTG phy in OTG mode, neither device or host >> mode will work. That is because the PHY is not able to detect and notify >> the driver that value of ID pi

[PATCH 0/4] Add DT support for DA8xx

2016-10-25 Thread Alexandre Bailon
The purpose of this series is to add DT support to the da8xx USB OTG. This series should apply and build without any issues but it has some dependencies on "Add DT support for ohci-da8xx" series. Without it, the phy init will fail and then the da8xx driver will also fail. Alexandre

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

2016-10-25 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 --- .../devicetree/bindings/usb/da8xx-usb.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644

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

2016-10-25 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 --- drivers/usb/musb/musb_core.c | 19 +++ drivers/usb/musb/musb_core.h | 5

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

2016-10-25 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 --- drivers/usb/musb/da8xx.c | 76 ++-- 1 file changed, 67 insertions(+), 9 deletions(-) diff --git

  1   2   >