Thread (34 messages) 34 messages, 6 authors, 2014-07-25

[PATCH v3 08/12] Documentation: bindings: add doc for the USB2 ChipIdea USB driver

From: arnd@arndb.de (Arnd Bergmann)
Date: 2014-07-16 08:40:29
Also in: linux-devicetree, lkml

On Wednesday 16 July 2014 10:26:02 Antoine T?nart wrote:
quoted hunk ↗ jump to hunk
+
+Required properties:
+- compatible: should be "chipidea,usb2"
+- reg: base address and length of the registers
+- interrupts: interrupt for the USB controller
+
+Optional properties:
+- clocks: reference to the USB clock
+- usb-phy: reference to the USB PHY
I think the phy reference should use the standard phy binding, using
"phys" property to refer to a node that has a "#phy-cells" property.

It seems the code gets this right, but just the documentation is wrong.
+- vbus-supply: reference to the VBUS regulator
+- dma-mask: DMA bit mask
No. Do not use "dma-mask" as a property, that is a pure Linux specific
concept. The DT way to express this is to use the 'dma-ranges' property
in the device's parent to describe any bus-related restrictions, and
for the driver to ask for a mask that matches what the hardware is
capable of (which may be smaller or larger than what the bus supports).

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help