Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-12 Thread Purna Chandra Mandal
On 04/11/2016 08:40 PM, Rob Herring wrote:

> On Thu, Apr 07, 2016 at 06:02:59PM +0530, Purna Chandra Mandal wrote:
>> Document devicetree binding for the USB controller
>> and USB Phy found on Microchip PIC32 class devices.
>>
>> Signed-off-by: Purna Chandra Mandal 
>>
>> ---
>>
>> Changes in v2: None
>>
>>  .../bindings/usb/microchip,pic32-musb.txt  | 67 
>> ++
>>  1 file changed, 67 insertions(+)
>>  create mode 100644 
>> Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>>
>> diff --git a/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt 
>> b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>> new file mode 100644
>> index 000..e1cec9d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>> @@ -0,0 +1,67 @@
>> +Microchip PIC32 MUSB DRC/OTG controller
>> +---
>> +
>> +Required properties:
>> + - compatible   : should be "microchip,pic32mzda-usb".
>> + - reg  : offset and length of "MUSB Core Registers" and
>> +  "USB Clock & Reset Registers".
>> + - reg-names: should be "mc", and "usbcr" in order
>> + - clocks   : clock specifier for the musb controller clock
>> + - clock-names  : should be "usb_clk"
>> + - interrupts   : interrupt number for MUSB Core General interrupt
>> +  and DMA interrupt
>> + - interrupt-names  : must be "mc" and "dma" in order.
>> + - phys : phy specifier for the otg phy.
>> + - dr_mode  : should be one of "host", "peripheral" or "otg".
>> + - mentor,multipoint: Should be "1" indicating the musb controller supports
>> +  multipoint. This is MUSB configuration-specific 
>> setting.
>> + - mentor,num-eps   : Specifies the number of endpoints. This is also a
>> +  MUSB configuration-specific setting. Should be set to 
>> "8".
>> + - mentor,ram-bits  : Specifies the ram address size. Should be set to "11".
>> + - mentor,power : Should be "500". This signifies the controller can 
>> supply
>> +  up to 500mA when operating in host mode.
>> + - phys : phandle of the USB phy.
>> + - usb_overcurrent  : phandle to MUSB over-current note. It should have
>> +  interrupt number for over-current detection logic.
> This node is only an interrupt? Then you should use interrupts-extended 
> and make this interrupt the 3rd one. interrupts-extended will let you 
> have different interrupt parents for each irq.

Will use 'interrupts-extended' instead.

>> +
>> +Optional properties:
>> + - microchip,fifo-mode: Specifies layout of internal SRAM for end-point 
>> fifos.
>> +Should be 0 (default) or 1.
> Make this a boolean.

ack.

>> +
>> +Example:
>> +aliases {
>> +usb1 = 
>> +phy1 = _phy;
>> +};
>> +
>> +usb1: hsusb1_core@1f8e3000 {
>> +compatible = "microchip,pic32mzda-usb";
>> +reg = <0x1f8e3000 0x1000>,
>> +  <0x1f884000 0x1000>;
>> +reg-names = "mc", "usbcr";
>> +interrupts = <132 IRQ_TYPE_EDGE_RISING>,
>> + <133 IRQ_TYPE_LEVEL_HIGH>;
>> +interrupt-names = "mc", "dma";
>> +dr_mode = "host";
>> +mentor,multipoint = <1>;
>> +mentor,num-eps = <8>;
>> +mentor,ram-bits = <11>;
>> +mentor,power = <500>;
>> +phys = <_phy>;
>> +clocks = < PB5CLK>;
>> +clock-names = "usb_clk";
>> +usb_overcurrent = <_overcurrent>;
>> +};
>> +
>> +usb1_phy: hsusb1_phy@1f8e4000 {
>> +compatible = "usb-nop-xceiv";
>> +reg = <0x1f8e4000 0x1000>;
>> +clocks = < UPLLCLK>;
>> +clock-names = "main_clk";
>> +clock-frequency = <2400>;
>> +};
>> +
>> +usb1_overcurrent: hsusb1_oc@0 {
>> +interrupt-parent = <>;
>> +interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
>> +};
>> -- 
>> 1.8.3.1
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe devicetree" in
>> the body of a message to majord...@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html



Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-12 Thread Purna Chandra Mandal
On 04/11/2016 08:40 PM, Rob Herring wrote:

> On Thu, Apr 07, 2016 at 06:02:59PM +0530, Purna Chandra Mandal wrote:
>> Document devicetree binding for the USB controller
>> and USB Phy found on Microchip PIC32 class devices.
>>
>> Signed-off-by: Purna Chandra Mandal 
>>
>> ---
>>
>> Changes in v2: None
>>
>>  .../bindings/usb/microchip,pic32-musb.txt  | 67 
>> ++
>>  1 file changed, 67 insertions(+)
>>  create mode 100644 
>> Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>>
>> diff --git a/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt 
>> b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>> new file mode 100644
>> index 000..e1cec9d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>> @@ -0,0 +1,67 @@
>> +Microchip PIC32 MUSB DRC/OTG controller
>> +---
>> +
>> +Required properties:
>> + - compatible   : should be "microchip,pic32mzda-usb".
>> + - reg  : offset and length of "MUSB Core Registers" and
>> +  "USB Clock & Reset Registers".
>> + - reg-names: should be "mc", and "usbcr" in order
>> + - clocks   : clock specifier for the musb controller clock
>> + - clock-names  : should be "usb_clk"
>> + - interrupts   : interrupt number for MUSB Core General interrupt
>> +  and DMA interrupt
>> + - interrupt-names  : must be "mc" and "dma" in order.
>> + - phys : phy specifier for the otg phy.
>> + - dr_mode  : should be one of "host", "peripheral" or "otg".
>> + - mentor,multipoint: Should be "1" indicating the musb controller supports
>> +  multipoint. This is MUSB configuration-specific 
>> setting.
>> + - mentor,num-eps   : Specifies the number of endpoints. This is also a
>> +  MUSB configuration-specific setting. Should be set to 
>> "8".
>> + - mentor,ram-bits  : Specifies the ram address size. Should be set to "11".
>> + - mentor,power : Should be "500". This signifies the controller can 
>> supply
>> +  up to 500mA when operating in host mode.
>> + - phys : phandle of the USB phy.
>> + - usb_overcurrent  : phandle to MUSB over-current note. It should have
>> +  interrupt number for over-current detection logic.
> This node is only an interrupt? Then you should use interrupts-extended 
> and make this interrupt the 3rd one. interrupts-extended will let you 
> have different interrupt parents for each irq.

Will use 'interrupts-extended' instead.

>> +
>> +Optional properties:
>> + - microchip,fifo-mode: Specifies layout of internal SRAM for end-point 
>> fifos.
>> +Should be 0 (default) or 1.
> Make this a boolean.

ack.

>> +
>> +Example:
>> +aliases {
>> +usb1 = 
>> +phy1 = _phy;
>> +};
>> +
>> +usb1: hsusb1_core@1f8e3000 {
>> +compatible = "microchip,pic32mzda-usb";
>> +reg = <0x1f8e3000 0x1000>,
>> +  <0x1f884000 0x1000>;
>> +reg-names = "mc", "usbcr";
>> +interrupts = <132 IRQ_TYPE_EDGE_RISING>,
>> + <133 IRQ_TYPE_LEVEL_HIGH>;
>> +interrupt-names = "mc", "dma";
>> +dr_mode = "host";
>> +mentor,multipoint = <1>;
>> +mentor,num-eps = <8>;
>> +mentor,ram-bits = <11>;
>> +mentor,power = <500>;
>> +phys = <_phy>;
>> +clocks = < PB5CLK>;
>> +clock-names = "usb_clk";
>> +usb_overcurrent = <_overcurrent>;
>> +};
>> +
>> +usb1_phy: hsusb1_phy@1f8e4000 {
>> +compatible = "usb-nop-xceiv";
>> +reg = <0x1f8e4000 0x1000>;
>> +clocks = < UPLLCLK>;
>> +clock-names = "main_clk";
>> +clock-frequency = <2400>;
>> +};
>> +
>> +usb1_overcurrent: hsusb1_oc@0 {
>> +interrupt-parent = <>;
>> +interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
>> +};
>> -- 
>> 1.8.3.1
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe devicetree" in
>> the body of a message to majord...@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html



Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-11 Thread Rob Herring
On Thu, Apr 07, 2016 at 06:02:59PM +0530, Purna Chandra Mandal wrote:
> Document devicetree binding for the USB controller
> and USB Phy found on Microchip PIC32 class devices.
> 
> Signed-off-by: Purna Chandra Mandal 
> 
> ---
> 
> Changes in v2: None
> 
>  .../bindings/usb/microchip,pic32-musb.txt  | 67 
> ++
>  1 file changed, 67 insertions(+)
>  create mode 100644 
> Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
> 
> diff --git a/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt 
> b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
> new file mode 100644
> index 000..e1cec9d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
> @@ -0,0 +1,67 @@
> +Microchip PIC32 MUSB DRC/OTG controller
> +---
> +
> +Required properties:
> + - compatible   : should be "microchip,pic32mzda-usb".
> + - reg  : offset and length of "MUSB Core Registers" and
> +  "USB Clock & Reset Registers".
> + - reg-names: should be "mc", and "usbcr" in order
> + - clocks   : clock specifier for the musb controller clock
> + - clock-names  : should be "usb_clk"
> + - interrupts   : interrupt number for MUSB Core General interrupt
> +  and DMA interrupt
> + - interrupt-names  : must be "mc" and "dma" in order.
> + - phys : phy specifier for the otg phy.
> + - dr_mode  : should be one of "host", "peripheral" or "otg".
> + - mentor,multipoint: Should be "1" indicating the musb controller supports
> +  multipoint. This is MUSB configuration-specific 
> setting.
> + - mentor,num-eps   : Specifies the number of endpoints. This is also a
> +  MUSB configuration-specific setting. Should be set to 
> "8".
> + - mentor,ram-bits  : Specifies the ram address size. Should be set to "11".
> + - mentor,power : Should be "500". This signifies the controller can 
> supply
> +  up to 500mA when operating in host mode.
> + - phys : phandle of the USB phy.
> + - usb_overcurrent  : phandle to MUSB over-current note. It should have
> +  interrupt number for over-current detection logic.

This node is only an interrupt? Then you should use interrupts-extended 
and make this interrupt the 3rd one. interrupts-extended will let you 
have different interrupt parents for each irq.

> +
> +Optional properties:
> + - microchip,fifo-mode: Specifies layout of internal SRAM for end-point 
> fifos.
> +Should be 0 (default) or 1.

Make this a boolean.

> +
> +Example:
> + aliases {
> + usb1 = 
> + phy1 = _phy;
> + };
> +
> + usb1: hsusb1_core@1f8e3000 {
> + compatible = "microchip,pic32mzda-usb";
> + reg = <0x1f8e3000 0x1000>,
> +   <0x1f884000 0x1000>;
> + reg-names = "mc", "usbcr";
> + interrupts = <132 IRQ_TYPE_EDGE_RISING>,
> +  <133 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "mc", "dma";
> + dr_mode = "host";
> + mentor,multipoint = <1>;
> + mentor,num-eps = <8>;
> + mentor,ram-bits = <11>;
> + mentor,power = <500>;
> + phys = <_phy>;
> + clocks = < PB5CLK>;
> + clock-names = "usb_clk";
> + usb_overcurrent = <_overcurrent>;
> + };
> +
> + usb1_phy: hsusb1_phy@1f8e4000 {
> + compatible = "usb-nop-xceiv";
> + reg = <0x1f8e4000 0x1000>;
> + clocks = < UPLLCLK>;
> + clock-names = "main_clk";
> + clock-frequency = <2400>;
> + };
> +
> + usb1_overcurrent: hsusb1_oc@0 {
> + interrupt-parent = <>;
> + interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
> + };
> -- 
> 1.8.3.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-11 Thread Rob Herring
On Thu, Apr 07, 2016 at 06:02:59PM +0530, Purna Chandra Mandal wrote:
> Document devicetree binding for the USB controller
> and USB Phy found on Microchip PIC32 class devices.
> 
> Signed-off-by: Purna Chandra Mandal 
> 
> ---
> 
> Changes in v2: None
> 
>  .../bindings/usb/microchip,pic32-musb.txt  | 67 
> ++
>  1 file changed, 67 insertions(+)
>  create mode 100644 
> Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
> 
> diff --git a/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt 
> b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
> new file mode 100644
> index 000..e1cec9d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
> @@ -0,0 +1,67 @@
> +Microchip PIC32 MUSB DRC/OTG controller
> +---
> +
> +Required properties:
> + - compatible   : should be "microchip,pic32mzda-usb".
> + - reg  : offset and length of "MUSB Core Registers" and
> +  "USB Clock & Reset Registers".
> + - reg-names: should be "mc", and "usbcr" in order
> + - clocks   : clock specifier for the musb controller clock
> + - clock-names  : should be "usb_clk"
> + - interrupts   : interrupt number for MUSB Core General interrupt
> +  and DMA interrupt
> + - interrupt-names  : must be "mc" and "dma" in order.
> + - phys : phy specifier for the otg phy.
> + - dr_mode  : should be one of "host", "peripheral" or "otg".
> + - mentor,multipoint: Should be "1" indicating the musb controller supports
> +  multipoint. This is MUSB configuration-specific 
> setting.
> + - mentor,num-eps   : Specifies the number of endpoints. This is also a
> +  MUSB configuration-specific setting. Should be set to 
> "8".
> + - mentor,ram-bits  : Specifies the ram address size. Should be set to "11".
> + - mentor,power : Should be "500". This signifies the controller can 
> supply
> +  up to 500mA when operating in host mode.
> + - phys : phandle of the USB phy.
> + - usb_overcurrent  : phandle to MUSB over-current note. It should have
> +  interrupt number for over-current detection logic.

This node is only an interrupt? Then you should use interrupts-extended 
and make this interrupt the 3rd one. interrupts-extended will let you 
have different interrupt parents for each irq.

> +
> +Optional properties:
> + - microchip,fifo-mode: Specifies layout of internal SRAM for end-point 
> fifos.
> +Should be 0 (default) or 1.

Make this a boolean.

> +
> +Example:
> + aliases {
> + usb1 = 
> + phy1 = _phy;
> + };
> +
> + usb1: hsusb1_core@1f8e3000 {
> + compatible = "microchip,pic32mzda-usb";
> + reg = <0x1f8e3000 0x1000>,
> +   <0x1f884000 0x1000>;
> + reg-names = "mc", "usbcr";
> + interrupts = <132 IRQ_TYPE_EDGE_RISING>,
> +  <133 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "mc", "dma";
> + dr_mode = "host";
> + mentor,multipoint = <1>;
> + mentor,num-eps = <8>;
> + mentor,ram-bits = <11>;
> + mentor,power = <500>;
> + phys = <_phy>;
> + clocks = < PB5CLK>;
> + clock-names = "usb_clk";
> + usb_overcurrent = <_overcurrent>;
> + };
> +
> + usb1_phy: hsusb1_phy@1f8e4000 {
> + compatible = "usb-nop-xceiv";
> + reg = <0x1f8e4000 0x1000>;
> + clocks = < UPLLCLK>;
> + clock-names = "main_clk";
> + clock-frequency = <2400>;
> + };
> +
> + usb1_overcurrent: hsusb1_oc@0 {
> + interrupt-parent = <>;
> + interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
> + };
> -- 
> 1.8.3.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
On 04/07/2016 07:04 PM, Sergei Shtylyov wrote:

> On 4/7/2016 3:32 PM, Purna Chandra Mandal wrote:
>
>> Document devicetree binding for the USB controller
>> and USB Phy found on Microchip PIC32 class devices.
>>
>> Signed-off-by: Purna Chandra Mandal 
>>
>> ---
>>
>> Changes in v2: None
>>
>>   .../bindings/usb/microchip,pic32-musb.txt  | 67 
>> ++
>>   1 file changed, 67 insertions(+)
>>   create mode 100644 
>> Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>>
>> diff --git a/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt 
>> b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>> new file mode 100644
>> index 000..e1cec9d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>> @@ -0,0 +1,67 @@
>> +Microchip PIC32 MUSB DRC/OTG controller
>> +---
>> +
>> +Required properties:
>> + - compatible   : should be "microchip,pic32mzda-usb".
>> + - reg  : offset and length of "MUSB Core Registers" and
>> +  "USB Clock & Reset Registers".
>> + - reg-names: should be "mc", and "usbcr" in order
>> + - clocks   : clock specifier for the musb controller clock
>> + - clock-names  : should be "usb_clk"
>> + - interrupts   : interrupt number for MUSB Core General interrupt
>> +  and DMA interrupt
>> + - interrupt-names  : must be "mc" and "dma" in order.
>> + - phys : phy specifier for the otg phy.
>> + - dr_mode  : should be one of "host", "peripheral" or "otg".
>> + - mentor,multipoint: Should be "1" indicating the musb controller supports
>> +  multipoint. This is MUSB configuration-specific 
>> setting.
>> + - mentor,num-eps   : Specifies the number of endpoints. This is also a
>> +  MUSB configuration-specific setting. Should be set to 
>> "8".
>> + - mentor,ram-bits  : Specifies the ram address size. Should be set to "11".
>> + - mentor,power : Should be "500". This signifies the controller can 
>> supply
>> +  up to 500mA when operating in host mode.
>> + - phys : phandle of the USB phy.
>
>Just noticed that "phys" is described twice. :-/
>
Noted. Thanks. :) 

> MBR, Sergei
>



Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Purna Chandra Mandal
On 04/07/2016 07:04 PM, Sergei Shtylyov wrote:

> On 4/7/2016 3:32 PM, Purna Chandra Mandal wrote:
>
>> Document devicetree binding for the USB controller
>> and USB Phy found on Microchip PIC32 class devices.
>>
>> Signed-off-by: Purna Chandra Mandal 
>>
>> ---
>>
>> Changes in v2: None
>>
>>   .../bindings/usb/microchip,pic32-musb.txt  | 67 
>> ++
>>   1 file changed, 67 insertions(+)
>>   create mode 100644 
>> Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>>
>> diff --git a/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt 
>> b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>> new file mode 100644
>> index 000..e1cec9d
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
>> @@ -0,0 +1,67 @@
>> +Microchip PIC32 MUSB DRC/OTG controller
>> +---
>> +
>> +Required properties:
>> + - compatible   : should be "microchip,pic32mzda-usb".
>> + - reg  : offset and length of "MUSB Core Registers" and
>> +  "USB Clock & Reset Registers".
>> + - reg-names: should be "mc", and "usbcr" in order
>> + - clocks   : clock specifier for the musb controller clock
>> + - clock-names  : should be "usb_clk"
>> + - interrupts   : interrupt number for MUSB Core General interrupt
>> +  and DMA interrupt
>> + - interrupt-names  : must be "mc" and "dma" in order.
>> + - phys : phy specifier for the otg phy.
>> + - dr_mode  : should be one of "host", "peripheral" or "otg".
>> + - mentor,multipoint: Should be "1" indicating the musb controller supports
>> +  multipoint. This is MUSB configuration-specific 
>> setting.
>> + - mentor,num-eps   : Specifies the number of endpoints. This is also a
>> +  MUSB configuration-specific setting. Should be set to 
>> "8".
>> + - mentor,ram-bits  : Specifies the ram address size. Should be set to "11".
>> + - mentor,power : Should be "500". This signifies the controller can 
>> supply
>> +  up to 500mA when operating in host mode.
>> + - phys : phandle of the USB phy.
>
>Just noticed that "phys" is described twice. :-/
>
Noted. Thanks. :) 

> MBR, Sergei
>



Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Sergei Shtylyov

On 4/7/2016 3:32 PM, Purna Chandra Mandal wrote:


Document devicetree binding for the USB controller
and USB Phy found on Microchip PIC32 class devices.

Signed-off-by: Purna Chandra Mandal 

---

Changes in v2: None

  .../bindings/usb/microchip,pic32-musb.txt  | 67 ++
  1 file changed, 67 insertions(+)
  create mode 100644 
Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt

diff --git a/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt 
b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
new file mode 100644
index 000..e1cec9d
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
@@ -0,0 +1,67 @@
+Microchip PIC32 MUSB DRC/OTG controller
+---
+
+Required properties:
+ - compatible   : should be "microchip,pic32mzda-usb".
+ - reg  : offset and length of "MUSB Core Registers" and
+  "USB Clock & Reset Registers".
+ - reg-names: should be "mc", and "usbcr" in order
+ - clocks   : clock specifier for the musb controller clock
+ - clock-names  : should be "usb_clk"
+ - interrupts   : interrupt number for MUSB Core General interrupt
+  and DMA interrupt
+ - interrupt-names  : must be "mc" and "dma" in order.
+ - phys : phy specifier for the otg phy.
+ - dr_mode  : should be one of "host", "peripheral" or "otg".
+ - mentor,multipoint: Should be "1" indicating the musb controller supports
+  multipoint. This is MUSB configuration-specific setting.
+ - mentor,num-eps   : Specifies the number of endpoints. This is also a
+  MUSB configuration-specific setting. Should be set to 
"8".
+ - mentor,ram-bits  : Specifies the ram address size. Should be set to "11".
+ - mentor,power : Should be "500". This signifies the controller can supply
+  up to 500mA when operating in host mode.
+ - phys : phandle of the USB phy.


   Just noticed that "phys" is described twice. :-/

MBR, Sergei



Re: [PATCH v2 1/2] dt/bindings/usb: Add bindings for PIC32 MUSB driver.

2016-04-07 Thread Sergei Shtylyov

On 4/7/2016 3:32 PM, Purna Chandra Mandal wrote:


Document devicetree binding for the USB controller
and USB Phy found on Microchip PIC32 class devices.

Signed-off-by: Purna Chandra Mandal 

---

Changes in v2: None

  .../bindings/usb/microchip,pic32-musb.txt  | 67 ++
  1 file changed, 67 insertions(+)
  create mode 100644 
Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt

diff --git a/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt 
b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
new file mode 100644
index 000..e1cec9d
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/microchip,pic32-musb.txt
@@ -0,0 +1,67 @@
+Microchip PIC32 MUSB DRC/OTG controller
+---
+
+Required properties:
+ - compatible   : should be "microchip,pic32mzda-usb".
+ - reg  : offset and length of "MUSB Core Registers" and
+  "USB Clock & Reset Registers".
+ - reg-names: should be "mc", and "usbcr" in order
+ - clocks   : clock specifier for the musb controller clock
+ - clock-names  : should be "usb_clk"
+ - interrupts   : interrupt number for MUSB Core General interrupt
+  and DMA interrupt
+ - interrupt-names  : must be "mc" and "dma" in order.
+ - phys : phy specifier for the otg phy.
+ - dr_mode  : should be one of "host", "peripheral" or "otg".
+ - mentor,multipoint: Should be "1" indicating the musb controller supports
+  multipoint. This is MUSB configuration-specific setting.
+ - mentor,num-eps   : Specifies the number of endpoints. This is also a
+  MUSB configuration-specific setting. Should be set to 
"8".
+ - mentor,ram-bits  : Specifies the ram address size. Should be set to "11".
+ - mentor,power : Should be "500". This signifies the controller can supply
+  up to 500mA when operating in host mode.
+ - phys : phandle of the USB phy.


   Just noticed that "phys" is described twice. :-/

MBR, Sergei