USB host: Add USB ehci support for nuvoton npcm7xx
Subsystems (4)
[email protected]
maintainerv6 cover USB host: Add USB ehci support for nuvoton npcm7xx
From: Avi Fishman <[email protected]>
Changes since version 5:
- dt-bindings add 'reg' description according to Sergei Shtylyov comment
Changes since version 4:
- dt-bindings reviewed by Rob Herring
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 | 18 ++ MAINTAINERS | 3 + drivers/usb/host/Kconfig | 8 + drivers/usb/host/Makefile | 1 + drivers/usb/host/ehci-npcm7xx.c | 212 +++++++++++++++++++++ 5 files changed, 242 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 v6 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 v6 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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/npcm7xx-usb.txt
Documentation/devicetree/bindings/usb/npcm7xx-usb.txt new file +18 -0
@@ -0,0 +1,18 @@ +Nuvoton NPCM7XX SoC USB controllers: +----------------------------- + +EHCI: +----- + +Required properties: +- compatible: "nuvoton,npcm750-ehci" +- interrupts: Should contain the EHCI interrupt +- reg: Physical address and length of the register set for the device + +Example: + + ehci1: usb@f0806000 { + compatible = "nuvoton,npcm750-ehci"; + reg = <0xf0806000 0x1000>; + interrupts = <0 61 4>; + };
Signature · 1 line
2.14.1
[email protected]
maintainerPATCH v6 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
Re: [PATCH v6 1/3] USB host: Add USB ehci support for nuvoton npcm7xx platform
In reply to [email protected]Quoted 20 lines · On Tue, 19 Jun 2018 [email protected] wrote:
From: Avi Fishman <[email protected]>
This patch adds support for ehci controller for the Nuvoton npcm7xx platform.
Most of the code was taken fromehci-spear.c+ specific initialization codeSigned-off-by Avi Fishman <[email protected]>--- 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.cdrivers/usb/host/Kconfig +0
-0
drivers/usb/host/Kconfig config USB_EHCI_MXC · line 191
Quoted 7 lines
drivers/usb/host/Kconfig +4
-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
Are you sure this is what you want? The value defaults to Y whenever COMPILE_TEST is enabled? Will that annoy people doing compile tests?
Aside from that one issue,
Alan Stern
Avi Fishman
maintainerRe: [PATCH v6 1/3] USB host: Add USB ehci support for nuvoton npcm7xx platform
Quoted 26 lines · Alan Stern
Quoted 23 lines · On Tue, 19 Jun 2018 [email protected] wrote:
From: Avi Fishman <[email protected]>
This patch adds support for ehci controller for the Nuvoton npcm7xx platform.
Most of the code was taken fromehci-spear.c+ specific initialization codeSigned-off-by Avi Fishman <[email protected]>--- 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.cdrivers/usb/host/Kconfig +0
-0@@ -185,6 +185,14 @@ config USB_EHCI_MXC ---help--- Variation of ARC USB block used in some Freescale chips.
Quoted 8 lines
drivers/usb/host/Kconfig config USB_EHCI_MXC · line 191
Quoted 4 lines
drivers/usb/host/Kconfig +4
-0+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 yAre you sure this is what you want? The value defaults to Y whenever
COMPILE_TESTis enabled? Will that annoy people doing compile tests?
Do you recomment to change to:
default y if (USB_EHCI_HCD && ARCH_NPCM7XX)
Quoted 6 lines
Aside from that one issue,
Acked-by Alan Stern <[email protected]>Alan Stern