Re: [PATCH 4/4] staging: dwc2: load parameters from the devicetree

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

 



On Thu, Apr 11, 2013 at 06:43:49PM +0200, Matthijs Kooijman wrote:
> Each of the parameters in the dwc2_core_params struct can now be changed
> using devicetree parameters.
> 
> Signed-off-by: Matthijs Kooijman <matthijs@xxxxxxxx>
> ---
>  Documentation/devicetree/bindings/staging/dwc2.txt |  36 ++++++++
>  drivers/staging/dwc2/platform.c                    | 100 +++++++++++++++++++++
>  2 files changed, 136 insertions(+)
> 
> This just adds all existing parameters to the devicetree for now. It's
> not unlikely that some of these parameters gets dropped later or turn
> out to be unsuitable for setting from the devicetree, but for now I've
> just added them all without closely looking at each.
> 
> diff --git a/Documentation/devicetree/bindings/staging/dwc2.txt b/Documentation/devicetree/bindings/staging/dwc2.txt
> index 3649c88..05d9c08 100644
> --- a/Documentation/devicetree/bindings/staging/dwc2.txt
> +++ b/Documentation/devicetree/bindings/staging/dwc2.txt
> @@ -5,6 +5,39 @@ Required properties:
>  - compatible : "snps,dwc2"
>  - reg : Should contain 1 register range (address and length)
>  - interrupts : Should contain 1 interrupt
> +Optional properties:
> + - dma-enable
> + - otg-cap
> + - otg-ver
> + - dma-enable
> + - dma-desc-enable
> + - speed
> + - enable-dynamic-fifo
> + - en-multiple-tx-fifo
> + - host-rx-fifo-size
> + - host-nperio-tx-fifo-size
> + - host-perio-tx-fifo-size
> + - max-transfer-size
> + - max-packet-count
> + - host-channels
> + - phy-type
> + - phy-utmi-width
> + - phy-ulpi-ddr
> + - phy-ulpi-ext-vbus
> + - i2c-enable
> + - ulpi-fs-ls
> + - host-support-fs-ls-low-power
> + - host-ls-low-power-phy-clk
> + - ts-dline
> + - reload-ctl
> + - ahb-single


Some of them already have available candidates in the DT. Look at
phy_type, dr_mode and others before adding new symbols.

Thanks,
Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux