AW: where to add imx-udc-mx27 in device tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello,

I pulled linux-next, but still can't figure out where to add my udc.
Can you please explain when fsl-udc is loaded?
Thanks a lot.

Greetings
Sebastian Priebe





==========================================
CADCON
Ingenieurgesellschaft mbH & Co. KG
Geschaeftsfuehrer: Robert Bauer, Andreas Gundel
Sitz der Gesellschaft: D-86368 Gersthofen
Registergericht: Amtsgericht Augsburg HRA 14521
==========================================

-----Ursprüngliche Nachricht-----
Von: Fabio Estevam [mailto:festevam@xxxxxxxxx]
Gesendet: Dienstag, 5. August 2014 14:21
An: Priebe, Sebastian
Cc: devicetree@xxxxxxxxxxxxxxx
Betreff: Re: where to add imx-udc-mx27 in device tree

On Tue, Aug 5, 2014 at 9:06 AM, Priebe, Sebastian <Sebastian.Priebe@xxxxxxxxx> wrote:
> Hello,
>
> I am trying to add an USB gadget to my device tree and I am using modules for my gadgets (serial and mass-storage).
> &usbotg {
>         pinctrl-names = "default";
>         pinctrl-0 = <&pinctrl_usbotg>;
>         dr_mode = "peripheral";
>         phy_type = "utmi_wide";
>         status = "okay";
> };

Take a look at arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi for an example.

The udc driver is CONFIG_USB_CHIPIDEA_UDC=y.

There is also the commit below in linux-next (not in 3.16) that select the gadget driver for imx_v4_v5_defconfig.

Author: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
Date:   Wed Jun 25 17:28:53 2014 -0300

    ARM: imx_v4_v5_defconfig: Add USB device options

    Allow USB device to work by default.

    Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
    Signed-off-by: Shawn Guo <shawn.guo@xxxxxxxxxxxxx>

diff --git a/arch/arm/configs/imx_v4_v5_defconfig b/arch/arm/configs/imx_v4_v5_d index 68abce9..090de01 100644
--- a/arch/arm/configs/imx_v4_v5_defconfig
+++ b/arch/arm/configs/imx_v4_v5_defconfig
@@ -159,6 +159,8 @@ CONFIG_USB_CHIPIDEA=y  CONFIG_USB_CHIPIDEA_UDC=y  CONFIG_USB_CHIPIDEA_HOST=y  CONFIG_NOP_USB_XCEIV=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_ETH=m
 CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_PLTFM=y

��.n��������+%������w��{.n����z�{��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux