Add dts for usb module of Hikey960.
Signed-off-by: Yu Chen
Signed-off-by: Ning Fan
Signed-off-by: Di Yang
Signed-off-by: Rui Li
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 39 +++
1 file changed, 39 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon
The usb controller of Kirin960 is DesignWare Cores SuperSpeed USB 3.0
Controller.
The patch modifies dwc3 for support Kirin960 and adds codes for a USB Hub on
board Hikey960.
Signed-off-by: Yu Chen
Signed-off-by: Ning Fan
Signed-off-by: Di Yang
Signed-off-by: Rui Li
---
arch/arm64/configs
The HiKey960 development platform is based around the HiSilicon Kirin960.
The patch sets add support for usb of HiKey960.
Fan Ning (3):
Add document for usb of Hikey960
Modify dwc3 code for support usb of Hikey960
Modify device tree for support Hikey960
.../devicetree/bindings/usb/hisilico
DT bindings for usb of Hikey960.
Signed-off-by: Yu Chen
Signed-off-by: Ning Fan
Signed-off-by: Di Yang
Signed-off-by: Rui Li
---
.../devicetree/bindings/usb/hisilicon-usb.txt | 38 ++
1 file changed, 38 insertions(+)
create mode 100644 Documentation/devicetree
From: Yu Chen
Check vdev->real_port 0 to avoid panic
[9.261347] []
xhci_free_virt_devices_depth_first+0x58/0x108
[9.261352] [] xhci_mem_cleanup+0x1bc/0x570
[9.261355] [] xhci_stop+0x140/0x1c8
[9.261365] [] usb_remove_hcd+0xfc/0x1d0
[9.261369] [] xhci_plat_remove+0x6c/0
From: Yu Chen
Check vdev->real_port 0 to avoid panic
[9.261347] []
xhci_free_virt_devices_depth_first+0x58/0x108
[9.261352] [] xhci_mem_cleanup+0x1bc/0x570
[9.261355] [] xhci_stop+0x140/0x1c8
[9.261365] [] usb_remove_hcd+0xfc/0x1d0
[9.261369] [] xhci_plat_remove+0x6c/0
From: Yu Chen
Check vdev->real_port 0 to avoid panic
[9.261347] []
xhci_free_virt_devices_depth_first+0x58/0x108
[9.261352] [] xhci_mem_cleanup+0x1bc/0x570
[9.261355] [] xhci_stop+0x140/0x1c8
[9.261365] [] usb_remove_hcd+0xfc/0x1d0
[9.261369] [] xhci_plat_remove+0x6c/0
From: Yu Chen
Unable to handle kernel paging request at virtual address dead0108
pgd = fff7a3179000
[dead0108] *pgd=230e0003, *pud=230e0003,
*pmd=
Internal error: Oops: 9644 [#1] PREEMPT SMP
Modules linked in:
CPU: 2 PID: 1 Comm: init
From: Yu Chen
Unable to handle kernel paging request at virtual address dead0108
pgd = fff7a3179000
[dead0108] *pgd=230e0003, *pud=230e0003,
*pmd=
Internal error: Oops: 9644 [#1] PREEMPT SMP
Modules linked in:
CPU: 2 PID: 1 Comm: init
This patch add struct device_connection to rt1711h driver to support
find "usb-role-switch" in tcpm_register_port.
Cc: Heikki Krogerus
Cc: Greg Kroah-Hartman
Cc: Lucas Tsai
Cc: shufan_lee
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
drivers/usb/typec/tcpm/tcpci
ange the config of
"match_existing_only".
This patch adds a configfs attribuite for controling match_existing_only
which allow user to config "match_existing_only".
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
This patch adds support for usb on Hikey960.
Cc: Wei Xu
Cc: Rob Herring
Cc: Mark Rutland
Cc: linux-arm-ker...@lists.infradead.org
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 35 +++
arch/arm64/boot/dts
This driver handles the poweron and shutdown of dwc3 core
on Hisilicon Soc Platform.
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: "David S. Miller"
Cc: Mauro Carvalho Chehab
Cc: Andrew Morton
Cc: Arnd Bergmann
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
M
This patch adds binding documentation to support usb hub and usb
data role switch of Hisilicon HiKey&HiKey960 Board.
Cc: Rob Herring
Cc: Mark Rutland
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
.../bindings/misc/hisilicon-hikey-usb.txt | 24 +
Greg Kroah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
drivers/misc/Kconfig | 7 +
drivers/misc/Makefile | 1 +
drivers/misc/hisi_hikey_usb.c | 319 ++
3 files changed, 327 insertions(+)
create mode 100644 drivers/
The patchset adds support for usb functionality of Hikey960, includes:
- dwc3 driver for Hisilicon Kirin Soc hi3660
- usb driver for HiKey960 board
- some adjustment in dwc3, usb gadget and typec driver
- dts for support usb of HiKey960
Yu Chen (10):
dt-bindings: usb: add support for dwc3
This patch adds binding descriptions to support the dwc3 controller
on HiSilicon SoCs and boards like the HiKey960.
Cc: Greg Kroah-Hartman
Cc: Rob Herring
Cc: Mark Rutland
Cc: John Stultz
Signed-off-by: Yu Chen
---
.../devicetree/bindings/usb/dwc3-hisi.txt | 53
This patch adds binding documentation for supporting the hi3660 usb
phy on boards like the HiKey960.
Cc: Rob Herring
Cc: Mark Rutland
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
.../devicetree/bindings/phy/phy-hi3660-usb3.txt | 21 +
1 file changed
There are tow quirks for DesignWare USB3 DRD Core of Hisilicon Kirin Soc.
1)SPLIT_BOUNDARY_DISABLE should be set for Host mode
2)A GCTL soft reset should be executed when switch mode
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
drivers
Yamada
Cc: Jiancheng Xue
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
MAINTAINERS | 2 +
drivers/phy/hisilicon/Kconfig | 10 ++
drivers/phy/hisilicon/Makefile | 1 +
drivers/phy/hisilicon/phy-hi3660-us
Yamada
Cc: Jiancheng Xue
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
--
v1: Remove unused code and add comment for time delay as suggested by
Kishon Vijay Abraham I.
--
---
MAINTAINERS | 2 +
drivers/phy/hisilicon/Kconfig | 10 ++
drivers/phy
This driver handles the poweron and shutdown of dwc3 core
on Hisilicon Soc Platform.
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: "David S. Miller"
Cc: Mauro Carvalho Chehab
Cc: Andrew Morton
Cc: Arnd Bergmann
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
M
This patch adds notifier for drivers want to be informed of the usb role switch.
Cc: Greg Kroah-Hartman
Cc: Heikki Krogerus
Cc: Hans de Goede
Cc: Andy Shevchenko
Cc: John Stultz
Signed-off-by: Heikki Krogerus
Signed-off-by: Yu Chen
--
v0:
The patch is provided by Heikki Krogerus. I
Wang
Cc: Heikki Krogerus
Signed-off-by: Yu Chen
--
v1:
1) Using gpiod API with the gpios.
2) Removing registering usb role switch.
3) Registering usb role switch notifier.
--
---
drivers/misc/Kconfig | 7 ++
drivers/misc/Makefile | 1 +
drivers/misc/hisi_hikey_usb.c |
ange the config of
"match_existing_only".
This patch adds a configfs attribuite for controling match_existing_only
which allow user to config "match_existing_only".
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
The Type-C drivers use USB role switch API to inform the
system about the negotiated data role, so registering a role
switch in the DRD code in order to support platforms with
USB Type-C connectors.
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Signed-off-by: Yu Chen
Signed-off-by: Heikki Krogerus
This patch adds code for supporting find usb role switch by matching against
the device node described using of_graph.
Cc: Greg Kroah-Hartman
Cc: Heikki Krogerus
Cc: Hans de Goede
Cc: Andy Shevchenko
Cc: John Stultz
Signed-off-by: Yu Chen
---
drivers/usb/common/roles.c | 40
This patch adds support for usb on Hikey960.
Cc: Wei Xu
Cc: Rob Herring
Cc: Mark Rutland
Cc: linux-arm-ker...@lists.infradead.org
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 56 ++
arch/arm64/boot/dts
There are tow quirks for DesignWare USB3 DRD Core of Hisilicon Kirin Soc.
1)SPLIT_BOUNDARY_DISABLE should be set for Host mode
2)A GCTL soft reset should be executed when switch mode
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
drivers
This patch adds binding documentation to support usb hub and usb
data role switch of Hisilicon HiKey&HiKey960 Board.
Cc: Sergei Shtylyov
Cc: Rob Herring
Cc: Mark Rutland
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
--
v1:
1) Fix some format errors as suggested by Serge
The patchset adds support for usb functionality of Hikey960, includes:
- dwc3 driver for Hisilicon Kirin Soc hi3660
- usb driver for HiKey960 board
- some adjustment in dwc3, usb gadget and typec driver
- dts for support usb of HiKey960
Yu Chen (12):
dt-bindings: usb: add support for dwc3
This patch adds binding descriptions to support the dwc3 controller
on HiSilicon SoCs and boards like the HiKey960.
Cc: Greg Kroah-Hartman
Cc: Rob Herring
Cc: Mark Rutland
Cc: John Stultz
Signed-off-by: Yu Chen
---
.../devicetree/bindings/usb/dwc3-hisi.txt | 67
This patch adds binding documentation for supporting the hi3660 usb
phy on boards like the HiKey960.
Cc: Rob Herring
Cc: Mark Rutland
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
--
v1: Fix some format error as suggested by Rob.
--
---
.../devicetree/bindings/phy/phy-hi3660-usb3
/lkml/2019/1/25/344
of Heikki Krogerus
---
Yu Chen (10):
dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY
dt-bindings: misc: Add bindings for HiSilicon usb hub and data role
switch functionality on HiKey960
usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilico
This patch adds support for the poweron and shutdown of dwc3 core
on Hisilicon Soc Platform.
---
drivers/usb/dwc3/dwc3-of-simple.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/dwc3/dwc3-of-simple.c
b/drivers/usb/dwc3/dwc3-of-simple.c
index 4c2771c5e727..0ed09
: Heikki Krogerus
Signed-off-by: Yu Chen
---
v2:
* Assign fwnode in dwc3_role_switch.
---
---
drivers/usb/dwc3/core.h | 2 ++
drivers/usb/dwc3/drd.c | 45 +
2 files changed, 47 insertions(+)
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
uo Sun
Cc: Masahiro Yamada
Cc: Jiancheng Xue
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
v1:
* Remove unused code and add comment for time delay as suggested by
Kishon Vijay Abraham I.
v2:
* Fix license declaration.
* Remove redundant parens.
* Remove unused member variables
This patch adds support for usb on Hikey960.
Cc: Wei Xu
Cc: Rob Herring
Cc: Mark Rutland
Cc: linux-arm-ker...@lists.infradead.org
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
v2:
* Remove device_type property.
* Add property "usb-role-switch".
---
---
arch/arm6
ig "match_existing_only".
Cc: Andy Shevchenko
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
drivers/usb/gadget/configfs.c | 32
1 file changed, 32 insertions(+)
diff --git a/drivers/usb/gadg
This patch adds notifier for drivers want to be informed of the usb role switch.
Cc: Greg Kroah-Hartman
Cc: Heikki Krogerus
Cc: Hans de Goede
Cc: Andy Shevchenko
Cc: John Stultz
Suggested-by: Heikki Krogerus
Signed-off-by: Yu Chen
---
drivers/usb/roles/class.c | 20
: Yu Chen
---
v2:
* Fix data type of reg from int to u32.
---
---
drivers/usb/dwc3/core.c | 43 +++
drivers/usb/dwc3/core.h | 7 +++
drivers/usb/dwc3/gadget.c | 2 +-
3 files changed, 51 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/dwc3
This patch adds binding documentation for supporting the hi3660 usb
phy on boards like the HiKey960.
Cc: Rob Herring
Cc: Mark Rutland
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
v1:
* Fix some format error as suggested by Rob.
v2:
* Change hi3660 usb PHY to hi3660 USB PHY
John Stultz
Cc: Binghui Wang
Cc: Heikki Krogerus
Signed-off-by: Yu Chen
---
v1:
* Using gpiod API with the gpios.
* Removing registering usb role switch.
* Registering usb role switch notifier.
v2:
* Fix license declaration.
* Add configuration of gpio direction.
* Remove some log p
This patch adds binding documentation to support usb hub and usb
data role switch of Hisilicon HiKey960 Board.
Cc: Sergei Shtylyov
Cc: Rob Herring
Cc: Mark Rutland
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
v1:
* Fix some format errors as suggested by Sergei.
* Modify gpio
/25/344
of Heikki Krogerus
Yu Chen (12):
dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY
dt-bindings: misc: Add bindings for HiSilicon usb hub and data role
switch functionality on HiKey960
usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc
Platform
This patch adds support for usb on Hikey960.
Cc: Chunfeng Yun
Cc: Wei Xu
Cc: Rob Herring
Cc: Mark Rutland
Cc: linux-arm-ker...@lists.infradead.org
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
v2:
* Remove device_type property.
* Add property "usb-role-switch".
roah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Cc: Heikki Krogerus
Signed-off-by: Yu Chen
---
v1:
* Using gpiod API with the gpios.
* Removing registering usb role switch.
* Registering usb role switch notifier.
v2:
* Fix license declaration.
* Add configuration of gpio direction.
* Remove some log p
ig "match_existing_only".
Cc: Andy Shevchenko
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
drivers/usb/gadget/configfs.c | 32
1 file changed, 32 insertions(+)
diff --git a/drivers/usb/gadg
This patch adds binding documentation to support usb hub and usb
data role switch of Hisilicon HiKey960 Board.
Cc: Sergei Shtylyov
Cc: Rob Herring
Cc: Mark Rutland
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
v1:
* Fix some format errors as suggested by Sergei.
* Modify gpio
This patch adds notifier for drivers want to be informed of the usb role switch.
Cc: Greg Kroah-Hartman
Cc: Heikki Krogerus
Cc: Hans de Goede
Cc: Andy Shevchenko
Cc: John Stultz
Suggested-by: Heikki Krogerus
Signed-off-by: Yu Chen
---
drivers/usb/roles/class.c | 20
uo Sun
Cc: Masahiro Yamada
Cc: Jiancheng Xue
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
v1:
* Remove unused code and add comment for time delay as suggested by
Kishon Vijay Abraham I.
v2:
* Fix license declaration.
* Remove redundant parens.
* Remove unused member variables
: Heikki Krogerus
Suggested-by: Heikki Krogerus
Signed-off-by: Yu Chen
---
v2:
* Assign fwnode in dwc3_role_switch.
v3:
* Add default mode property for usb role switch.
* Add select USB_ROLE_SWITCH for USB_DWC3_DUAL_ROLE in Kconfig.
* Do usb_role_switch_register only if property "usb-role-s
A GCTL soft reset should be executed when switch mode for dwc3 core
of Hisilicon Kirin Soc.
Cc: Andy Shevchenko
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
drivers/usb/dwc3/core.c | 19 +++
drivers/usb/dwc3/core.h | 1
This patch adds binding documentation for supporting the hi3660 usb
phy on boards like the HiKey960.
Cc: Rob Herring
Cc: Mark Rutland
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
v1:
* Fix some format error as suggested by Rob.
v2:
* Change hi3660 usb PHY to hi3660 USB PHY
v3
It needs more time for the device controller to clear the CmdAct of
DEPCMD on Hisilicon Kirin Soc.
Cc: Andy Shevchenko
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
drivers/usb/dwc3/gadget.c | 2 +-
1 file changed, 1 insertion(+), 1
This patch adds support for the poweron and shutdown of dwc3 core
on Hisilicon Soc Platform.
---
drivers/usb/dwc3/dwc3-of-simple.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/dwc3/dwc3-of-simple.c
b/drivers/usb/dwc3/dwc3-of-simple.c
index 4c2771c5e727..0ed09
SPLIT_BOUNDARY_DISABLE should be set for DesignWare USB3 DRD Core
of Hisilicon Kirin Soc when dwc3 core act as host.
Cc: Andy Shevchenko
Cc: Felipe Balbi
Cc: Greg Kroah-Hartman
Cc: John Stultz
Cc: Binghui Wang
Signed-off-by: Yu Chen
---
drivers/usb/dwc3/core.c | 24
57 matches
Mail list logo