USB host: Add USB ehci support for nuvoton npcm7xx
Subsystems (4)
[email protected]
maintainerv4 cover USB host: Add USB ehci support for nuvoton npcm7xx
From: Avi Fishman <[email protected]>
Changes since version 3:
- Follow Rob Herring comments to change dt-bindings commit subject
Changes since version 2:
- Follow Sergei Shtylyov comments to rename the node name in in device tree documentation
Changes since version 1:
- Follow Rob Herring comments in device tree documentation
- minor log error fix in ehci-npcm7xx.c
This patch adds support for ehci controller for the Nuvoton npcm7xx platform. Most of the code was taken from ehci-spear.c + specific initialization code
Avi Fishman (3):
USB host: Add USB ehci support for nuvoton npcm7xx platform
dt-bindings: usb: new ehci-npcm7xx dt
MAINTAINERS: add subfolders for nuvoton *npcm*
.../devicetree/bindings/usb/npcm7xx-usb.txt | 17 ++ MAINTAINERS | 3 + drivers/usb/host/Kconfig | 8 + drivers/usb/host/Makefile | 1 + drivers/usb/host/ehci-npcm7xx.c | 212 +++++++++++++++++++++ 5 files changed, 241 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/npcm7xx-usb.txt create mode 100644 drivers/usb/host/ehci-npcm7xx.c
Signature · 1 line
2.14.1
[email protected]
maintainerPATCH v4 1/3 USB host: Add USB ehci support for nuvoton npcm7xx platform
From: Avi Fishman <[email protected]>
This patch adds support for ehci controller for the Nuvoton npcm7xx platform.
Most of the code was taken from ehci-spear.c + specific initialization code
--- drivers/usb/host/Kconfig | 8 ++ drivers/usb/host/Makefile | 1 + drivers/usb/host/ehci-npcm7xx.c | 212 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 221 insertions(+) create mode 100644 drivers/usb/host/ehci-npcm7xx.c
drivers/usb/host/Kconfig +8 -0
@@ -185,6 +185,14 @@ config USB_EHCI_MXC ---help--- Variation of ARC USB block used in some Freescale chips. +config USB_EHCI_HCD_NPCM7XX + tristate "Support for Nuvoton NPCM7XX on-chip EHCI USB controller" + depends on (USB_EHCI_HCD && ARCH_NPCM7XX) || COMPILE_TEST + default y + help + Enables support for the on-chip EHCI controller on + Nuvoton NPCM7XX chips. + config USB_EHCI_HCD_OMAP tristate "EHCI support for OMAP3 and later chips" depends on ARCH_OMAP
drivers/usb/host/Makefile +1 -0
@@ -43,6 +43,7 @@ obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o obj-$(CONFIG_USB_EHCI_PCI) += ehci-pci.o obj-$(CONFIG_USB_EHCI_HCD_PLATFORM) += ehci-platform.o obj-$(CONFIG_USB_EHCI_MXC) += ehci-mxc.o +obj-$(CONFIG_USB_EHCI_HCD_NPCM7XX) += ehci-npcm7xx.o obj-$(CONFIG_USB_EHCI_HCD_OMAP) += ehci-omap.o obj-$(CONFIG_USB_EHCI_HCD_ORION) += ehci-orion.o obj-$(CONFIG_USB_EHCI_HCD_SPEAR) += ehci-spear.o
drivers/usb/host/ehci-npcm7xx.c new file +212 -0
212 lines not on this page · raw message
Signature · 1 line
2.14.1
[email protected]
maintainerPATCH v4 2/3 dt-bindings: usb: new ehci-npcm7xx dt
In reply to [email protected]From: Avi Fishman <[email protected]>
Device Tree documentation for Nuvoton npcm7xx EHCI.
--- Documentation/devicetree/bindings/usb/npcm7xx-usb.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/npcm7xx-usb.txt
Documentation/devicetree/bindings/usb/npcm7xx-usb.txt new file +17 -0
@@ -0,0 +1,17 @@ +Nuvoton NPCM7XX SoC USB controllers: +----------------------------- + +EHCI: +----- + +Required properties: +- compatible: "nuvoton,npcm750-ehci" +- interrupts: Should contain the EHCI interrupt + +Example: + + ehci1: usb@f0806000 { + compatible = "nuvoton,npcm750-ehci"; + reg = <0xf0806000 0x1000>; + interrupts = <0 61 4>; + };
Signature · 1 line
2.14.1
Rob Herring
maintainerRe: [PATCH v4 2/3] dt-bindings: usb: new ehci-npcm7xx dt
Quoted 9 lines · On Thu, Jun 07, 2018 at 05:58:20PM +0300, [email protected] wrote:
From: Avi Fishman <[email protected]>
Device Tree documentation for Nuvoton npcm7xx EHCI.
Signed-off-by Avi Fishman <[email protected]>--- Documentation/devicetree/bindings/usb/npcm7xx-usb.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/npcm7xx-usb.txt
Please add acks/reviewed-bys when posting new versions.
Rob
Re: [PATCH v4 2/3] dt-bindings: usb: new ehci-npcm7xx dt
Quoted 6 lines · Rob Herring
Quoted 5 lines · On Thu, Jun 07, 2018 at 05:58:20PM +0300, [email protected] wrote:
From: Avi Fishman <[email protected]>
Device Tree documentation for Nuvoton npcm7xx EHCI.
Signed-off-by Avi Fishman <[email protected]>
Rob, if I understand you want me to add another version (v5) with the above line (only on the dt)?
Quoted 8 lines
Quoted 4 lines
--- Documentation/devicetree/bindings/usb/npcm7xx-usb.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/npcm7xx-usb.txtPlease add acks/reviewed-bys when posting new versions.
Rob
Rob Herring
maintainerRe: [PATCH v4 2/3] dt-bindings: usb: new ehci-npcm7xx dt
Quoted 11 lines · Avi Fishman
Quoted 6 lines · Rob Herring
Quoted 5 lines · On Thu, Jun 07, 2018 at 05:58:20PM +0300, [email protected] wrote:
From: Avi Fishman <[email protected]>
Device Tree documentation for Nuvoton npcm7xx EHCI.
Signed-off-by Avi Fishman <[email protected]>Reviewed-by Rob Herring <[email protected]>Rob, if I understand you want me to add another version (v5) with the above line (only on the dt)?
No need to *only* do that. Maintainers will collect them on the last version when they apply patches. You just can't expect that maintainers will go look at prior versions and collect them.
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
--- Documentation/devicetree/bindings/usb/npcm7xx-usb.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/npcm7xx-usb.txtPlease add acks/reviewed-bys when posting new versions.
Rob
[email protected]
maintainerPATCH v4 3/3 MAINTAINERS: add subfolders for nuvoton *npcm*
In reply to [email protected]From: Avi Fishman <[email protected]>
--- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+)
MAINTAINERS +3 -0
@@ -1727,7 +1727,10 @@ F: arch/arm/mach-npcm/ F: arch/arm/boot/dts/nuvoton-npcm* F: include/dt-bindings/clock/nuvoton,npcm7xx-clks.h F: drivers/*/*npcm* +F: drivers/*/*/*npcm* F: Documentation/*/*npcm* +F: Documentation/*/*/*npcm* +F: Documentation/*/*/*/*npcm* ARM/NUVOTON W90X900 ARM ARCHITECTURE M: Wan ZongShun <[email protected]>
Signature · 1 line
2.14.1