USB host: Add USB ehci support for nuvoton npcm7xx
Subsystems (4)
[email protected]
maintainerv2 cover USB host: Add USB ehci support for nuvoton npcm7xx
From: Avi Fishman <[email protected]>
Changes since version 1:
- Follow Rob 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
USB: DT probing support to ehci-npcm7xx
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 v2 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 v2 2/3 USB: DT probing support to ehci-npcm7xx
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: + + ehci@e1800000 { + compatible = "nuvoton,npcm750-ehci"; + reg = <0xf0806000 0x1000>; + interrupts = <0 61 4>; + };
Signature · 1 line
2.14.1
[email protected]
maintainerPATCH v2 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 v2 2/3] USB: DT probing support to ehci-npcm7xx
In reply to [email protected]Hello!
Quoted 19 lines · On 05/31/2018 04:40 PM, [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.txtDocumentation/devicetree/bindings/usb/npcm7xx-usb.txt new file +3
-0@@ -0,0 +1,17 @@ +Nuvoton NPCM7XX SoC USB controllers: +----------------------------- +
Documentation/devicetree/bindings/usb/npcm7xx-usb.txt line 13
Quoted 10 lines
Documentation/devicetree/bindings/usb/npcm7xx-usb.txt new file +10
-0+EHCI: +----- + +Required properties: +- compatible: "nuvoton,npcm750-ehci" +- interrupts: Should contain the EHCI interrupt + +Example: + + ehci@e1800000 {
The node should be named "usb@e1800000" as the DT spec. requires the generic
node names.
[...]
MBR, Sergei