[U-Boot] [PATCH 0/4] ARM: dts: uniphier: add additional required properties for ethernet nodes

2018-05-11 Thread Kunihiko Hayashi
According to the modification of linux-next, add required clocks and their names, resets and their names, and system controller properties to fix the activation issues for the ethernet controllers implemented on some UniPhier SoCs. Kunihiko Hayashi (4): ARM: dts: uniphier: add syscon-phy-mode

[U-Boot] [PATCH 1/4] ARM: dts: uniphier: add syscon-phy-mode property to each ethernet node

2018-05-11 Thread Kunihiko Hayashi
Add syscon-phy-mode property specifying a phandle of system controller to each ethernet node. Signed-off-by: Kunihiko Hayashi <hayashi.kunih...@socionext.com> --- arch/arm/dts/uniphier-ld11.dtsi | 1 + arch/arm/dts/uniphier-ld20.dtsi | 1 + arch/arm/dts/uniphier-pro4.dtsi | 3 ++- arch/a

[U-Boot] [PATCH 2/4] ARM: dts: uniphier: add required clocks and resets to Pro4 ethernet node

2018-05-11 Thread Kunihiko Hayashi
The GIO clock/reset, another MAC clock, and the PHY clock are required for the ethernet of Pro4 SoC. Signed-off-by: Kunihiko Hayashi <hayashi.kunih...@socionext.com> --- arch/arm/dts/uniphier-pro4.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/un

[U-Boot] [PATCH 3/4] ARM: dts: uniphier: add clock-names and reset-names to ethernet node

2018-05-11 Thread Kunihiko Hayashi
Add clock-names and reset-names because this node recognizes multiple clocks and resets. ("ether", and so on, for each) Signed-off-by: Kunihiko Hayashi <hayashi.kunih...@socionext.com> --- arch/arm/dts/uniphier-ld11.dtsi | 2 ++ arch/arm/dts/uniphier-ld20.dtsi | 2 ++ arch/arm/d

[U-Boot] [PATCH] net: include/phy.h: add new mode for internal phy

2018-05-11 Thread Kunihiko Hayashi
Add the new mode to indicate a built-in PHY. This will be used by UniPhier AVE ethernet driver. Signed-off-by: Kunihiko Hayashi <hayashi.kunih...@socionext.com> --- include/phy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/phy.h b/include/phy.h index 0543ec1..d0f60d1

[U-Boot] [PATCH 4/4] ARM: dts: uniphier: change phy-mode to 'internal' for LD11

2018-05-11 Thread Kunihiko Hayashi
Change the phy-mode property to 'internal' that means to use a built-in PHY implemented on LD11 SoC. Signed-off-by: Kunihiko Hayashi <hayashi.kunih...@socionext.com> --- arch/arm/dts/uniphier-ld11.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/uniphie

[U-Boot] [PATCH] net: add Socionext AVE ethernet driver support

2018-05-24 Thread Kunihiko Hayashi
-by: Kunihiko Hayashi <hayashi.kunih...@socionext.com> Signed-off-by: Masahiro Yamada <yamada.masah...@socionext.com> --- drivers/net/Kconfig | 10 + drivers/net/Makefile | 1 + drivers/net/sni_ave.c | 995 ++ 3 files changed, 100

[U-Boot] [PATCH v2] net: include/phy.h: add new mode for internal phy

2018-05-17 Thread Kunihiko Hayashi
Add the new mode to indicate a built-in PHY. This will be used by UniPhier AVE ethernet driver. Signed-off-by: Kunihiko Hayashi <hayashi.kunih...@socionext.com> Reviewed-by: Marek Vasut <marek.va...@gmail.com> Acked-by: Joe Hershberger <joe.hershber...@ni.com> --- Chang

[U-Boot] [PATCH] clk: uniphier: add ethernet clock control support

2018-04-17 Thread Kunihiko Hayashi
Add clock control for ethernet controller on each SoC. Signed-off-by: Kunihiko Hayashi <hayashi.kunih...@socionext.com> --- drivers/clk/uniphier/clk-uniphier-sys.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphi

[U-Boot] [PATCH] reset: uniphier: add ethernet reset control support

2018-04-17 Thread Kunihiko Hayashi
Add reset lines for ethernet controller on each SoC. Signed-off-by: Kunihiko Hayashi <hayashi.kunih...@socionext.com> --- drivers/reset/reset-uniphier.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index a40cea5..e

[U-Boot] [PATCH 1/2] pinctrl: uniphier: Add SPI pin-mux settings

2019-06-10 Thread Kunihiko Hayashi
Add pin-mux settings for SPI controller. Signed-off-by: Kunihiko Hayashi --- drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c | 8 drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c | 16 drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c | 4 drivers/pinctrl

[U-Boot] [PATCH 2/2] spi: Add SPI controller driver for UniPhier SoCs

2019-06-10 Thread Kunihiko Hayashi
Add SPI controller driver implemented in Socionext UniPhier SoCs. This controller has the SPI master mode only. Signed-off-by: Kunihiko Hayashi --- drivers/spi/Kconfig| 8 + drivers/spi/Makefile | 1 + drivers/spi/uniphier_spi.c | 443

[U-Boot] [PATCH 0/2] Add support for UniPhier SPI controller

2019-06-10 Thread Kunihiko Hayashi
This series adds support for SPI controller and its pin-mux settings implemented in UniPhier SoCs. Kunihiko Hayashi (2): pinctrl: uniphier: Add SPI pin-mux settings spi: Add SPI controller driver for UniPhier SoCs drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c | 8 + drivers/pinctrl

[U-Boot] [PATCH v2] spi: Add SPI controller driver for UniPhier SoCs

2019-07-04 Thread Kunihiko Hayashi
Add SPI controller driver implemented in Socionext UniPhier SoCs. This controller has the SPI master mode only. Signed-off-by: Kunihiko Hayashi --- Changes since v1: - Replace with and sort headers in ascending order - Change register accesses from structure use to direct macro use - Remove

Re: [U-Boot] [PATCH 2/2] spi: Add SPI controller driver for UniPhier SoCs

2019-06-27 Thread Kunihiko Hayashi
Hi Yamada-san, Thank you for reviewing. On Tue, 25 Jun 2019 23:55:42 +0900 wrote: > Hi. > > On Tue, Jun 11, 2019 at 10:08 AM Kunihiko Hayashi > wrote: > > > > Add SPI controller driver implemented in Socionext UniPhier SoCs. > > This controller has the SPI ma

[U-Boot] [PATCH] cmd: pci: Adjust display of digits for 64bit address and size

2019-08-22 Thread Kunihiko Hayashi
o this patch adjusts them. Cc: Yehuda Yitschak Cc: Simon Glass Signed-off-by: Kunihiko Hayashi --- cmd/pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/pci.c b/cmd/pci.c index 2c5ee2a..0043471 100644 --- a/cmd/pci.c +++ b/cmd/pci.c @@ -148,7 +148,7 @@ int pc

Re: [U-Boot] [PATCH] cmd: pci: Adjust display of digits for 64bit address and size

2019-08-22 Thread Kunihiko Hayashi
Hi Bin, On Fri, 23 Aug 2019 11:43:55 +0800 wrote: > Hi Kunihiko, > > On Fri, Aug 23, 2019 at 9:57 AM Kunihiko Hayashi > wrote: > > > > The command "pci bar" and "pci region" display the address and size in > > 16 characters including "

[PATCH] arm64: Fix relocation of env_addr if POSITION_INDEPENDENT=y

2021-06-15 Thread Kunihiko Hayashi
e added to the offset to fix the address. gd->env_addr = (orig env) + ("run-vs-link" offset) + gd->reloc_off = (orig env) + (SYS_TEXT_BASE - _start) + (gd->relocaddr - SYS_TEXT_BASE) = (orig env) + (gd->relocaddr - _start) Cc: Marek Vasut Signed-off-by: Kunihiko Hayas

Re: [PATCH] env: Leave invalid env for nowhere location

2021-06-08 Thread Kunihiko Hayashi
Hi Marek, On 2021/06/08 2:33, Marek Vasut wrote: On 6/7/21 9:54 AM, Kunihiko Hayashi wrote: Hi, [...] I would expect that after relocation, if all you have is env_nowhere driver, the env_nowhere_init() is called again from the first for() loop of env_init() [1], which would set gd

Re: [PATCH] env: Leave invalid env for nowhere location

2021-06-10 Thread Kunihiko Hayashi
Hi Marek, On 2021/06/10 10:07, Marek Vasut wrote: On 6/8/21 9:54 AM, Kunihiko Hayashi wrote: Hi, [...] I would expect that after relocation, if all you have is env_nowhere driver, the env_nowhere_init() is called again from the first for() loop of env_init() [1], which would set gd

Re: [PATCH] serial: zynq: Add support for serial parameters

2021-06-23 Thread Kunihiko Hayashi
Hi Michal, On 2021/06/22 21:44, Michal Simek wrote: Hi, On 6/22/21 6:24 AM, Kunihiko Hayashi wrote: This adds serial parameters that include stop bit mode, parity mode, and character length. Mark parity and space parity modes are not supported. Signed-off-by: Kunihiko Hayashi --- drivers

[PATCH] serial: zynq: Add support for serial parameters

2021-06-21 Thread Kunihiko Hayashi
This adds serial parameters that include stop bit mode, parity mode, and character length. Mark parity and space parity modes are not supported. Signed-off-by: Kunihiko Hayashi --- drivers/serial/serial_zynq.c | 64 1 file changed, 64 insertions

[PATCH v2] serial: zynq: Add support for serial parameters

2021-06-25 Thread Kunihiko Hayashi
. Signed-off-by: Kunihiko Hayashi --- drivers/serial/serial_zynq.c | 68 1 file changed, 68 insertions(+) diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 799d524..2f49f59 100644 --- a/drivers/serial/serial_zynq.c +++ b

[PATCH] usb: dwc3-generic: Disable host driver definition if gadget only

2021-05-12 Thread Kunihiko Hayashi
Even if only USB gadget is defined, dwc3 generic driver enables a definition and probe/remove functions for host driver. This enables the definition if USB_HOST is enabled only. Signed-off-by: Kunihiko Hayashi --- drivers/usb/dwc3/dwc3-generic.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH] env: Leave invalid env for nowhere location

2021-05-12 Thread Kunihiko Hayashi
557eec01cbf ("env: Fix invalid env handling in env_init()") Signed-off-by: Kunihiko Hayashi --- env/env.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/env/env.c b/env/env.c index e534008..3233172 100644 --- a/env/env.c +++ b/env/env.c @@ -336,7 +336,8 @@

Re: [PATCH] env: Leave invalid env for nowhere location

2021-05-25 Thread Kunihiko Hayashi
Hi Tim, How about this fix? You already tested Marek's patch, and I'd like to hear your comment about this patch, or know whether it occurs the issue with CONFIG_ENV_IS_NOWHERE if possible. Thank you, On 2021/05/17 2:19, Marek Vasut wrote: On 5/12/21 4:09 PM, Kunihiko Hayashi wrote: When

Re: [PATCH] env: Leave invalid env for nowhere location

2021-06-07 Thread Kunihiko Hayashi
Hi Marek, On 2021/06/07 3:08, Marek Vasut wrote: On 6/3/21 6:15 PM, Kunihiko Hayashi wrote: Hi Marek, Hi, Sorry for rate reply. No worries, same here. On 2021/05/25 16:35, Marek Vasut wrote: On 5/12/21 4:09 PM, Kunihiko Hayashi wrote: When CONFIG_ENV_IS_NOWHERE is enabled

Re: [PATCH] env: Leave invalid env for nowhere location

2021-06-03 Thread Kunihiko Hayashi
Hi Marek, Sorry for rate reply. On 2021/05/25 16:35, Marek Vasut wrote: On 5/12/21 4:09 PM, Kunihiko Hayashi wrote: When CONFIG_ENV_IS_NOWHERE is enabled, env_nowhere_init() sets ENV_INVALID to gd->env_valid, and sets default_environment before relocation to gd->env_addr. After that, en

Re: [PATCH] serial: zynq: Add support for serial parameters

2021-06-24 Thread Kunihiko Hayashi
Hi Michal, On 2021/06/23 20:15, Michal Simek wrote: Hi Kunihiko, On 6/23/21 12:52 PM, Kunihiko Hayashi wrote: Hi Michal, On 2021/06/22 21:44, Michal Simek wrote: Hi, On 6/22/21 6:24 AM, Kunihiko Hayashi wrote: This adds serial parameters that include stop bit mode, parity mode

[PATCH 0/6] uniphier: Add PCIe host controller and Akebi96 board support

2021-07-06 Thread Kunihiko Hayashi
. And this series includes Akebi96 board (96boards) support that has UniPhier LD20 SoC and PCIe interface. The controller is available for LD20 and PXs3 SoCs, and the devicetree already supports it. Kunihiko Hayashi (6): clk: uniphier: Add PCIe clock entry reset: uniphier: Add PCIe reset entry

[PATCH 4/6] pci: uniphier: Add UniPhier PCIe controller driver

2021-07-06 Thread Kunihiko Hayashi
Add PCIe driver for UniPhier SoCs. This PCIe controller is based on Synopsys DesignWare Core IP. This version doesn't apply common DW functions because supported controller doesn't have unroll version of iATU. Signed-off-by: Kunihiko Hayashi --- drivers/pci/Kconfig | 10 ++ drivers

[PATCH 3/6] phy: socionext: Add UniPhier PCIe PHY driver

2021-07-06 Thread Kunihiko Hayashi
Add PCIe PHY driver support for Pro5, LD20 and PXs3 SoCs. Signed-off-by: Kunihiko Hayashi --- drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/phy/socionext/Kconfig | 12 +++ drivers/phy/socionext/Makefile

[PATCH 2/6] reset: uniphier: Add PCIe reset entry

2021-07-06 Thread Kunihiko Hayashi
Add reset control for PCIe controller on each SoC. Signed-off-by: Kunihiko Hayashi --- drivers/reset/reset-uniphier.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index 2694d13..c5af995 100644 --- a/drivers/reset/reset

[PATCH 5/6] configs: uniphier: Enable CONFIG_SYS_PCI_64BIT

2021-07-06 Thread Kunihiko Hayashi
Enable CONFIG_SYS_PCI_64BIT to allow 64bit access to PCI space. Signed-off-by: Kunihiko Hayashi --- include/configs/uniphier.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index bad4e41..12028e5 100644 --- a/include/configs

[PATCH 1/6] clk: uniphier: Add PCIe clock entry

2021-07-06 Thread Kunihiko Hayashi
Add clock control for PCIe controller on each SoC. Signed-off-by: Kunihiko Hayashi --- drivers/clk/uniphier/clk-uniphier-sys.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c index c627a4b..ff5d364 100644

[PATCH 6/6] ARM: dts: uniphier: Add support for Akebi96

2021-07-06 Thread Kunihiko Hayashi
Add the device tree for Akebi96. Akebi96 is a 96boards certified development board based on UniPhier LD20. ( https://www.96boards.org/product/akebi96/ ) Signed-off-by: Masami Hiramatsu Signed-off-by: Kunihiko Hayashi --- arch/arm/dts/Makefile | 1 + arch/arm/dts/uniphier

[PATCH] spi: dw: Use controller clock rate as maximum frequency

2023-10-25 Thread Kunihiko Hayashi
r clock. And this patch determines the maximum frequency based on the clock rate if the controller node property isn't specified. Signed-off-by: Kunihiko Hayashi --- drivers/spi/designware_spi.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/spi/designw

[PATCH] MAINTAINERS: Step up as maintainers of UniPhier SoC platform

2023-09-22 Thread Kunihiko Hayashi
Update maintainers for UniPhier SoC platform. Signed-off-by: Kunihiko Hayashi --- MAINTAINERS | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 0a10a436bcec..281a3f81f73a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -723,7 +723,10 @@ F

[PATCH] serial: zynq: Use DIV_ROUND_CLOSEST() to calcurate divider value

2022-07-12 Thread Kunihiko Hayashi
Since the calulation of "bgen" is rounded down, using a higher baudrate will result in a larger difference from the actual baudrate. Should use DIV_ROUND_CLOSEST() like the Linux driver. Signed-off-by: Kunihiko Hayashi --- drivers/serial/serial_zynq.c | 2 +- 1 file changed, 1 inser

[PATCH 1/2] net: ave: Add capability of rgmii-id mode

2022-07-12 Thread Kunihiko Hayashi
for LD11, the driver will abort with an error. Signed-off-by: Kunihiko Hayashi --- drivers/net/sni_ave.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/net/sni_ave.c b/drivers/net/sni_ave.c index 58276a40c774..014b070d9e52 100644 --- a/drivers/net

[PATCH 0/2] Add RGMII-ID phy-mode support for AVE ethernet controller

2022-07-12 Thread Kunihiko Hayashi
This series adds support for RGMII-ID phy-mode for the SoCs that implement AVE ethernet controller. Some SoCs need to enable delay pins as default. Kunihiko Hayashi (2): net: ave: Add capability of rgmii-id mode ARM: dts: uniphier: Change phy-mode to RGMII-ID to enable delay pins arch/arm

[PATCH 2/2] ARM: dts: uniphier: Change phy-mode to RGMII-ID to enable delay pins

2022-07-12 Thread Kunihiko Hayashi
UniPhier LD20, PXs2 and PXs3 boards have ethernet phy that has RX/TX delays of RGMII interface using pull-ups on the RXDLY and TXDLY pins. So should set the phy-mode to "rgmii-id" to show that RX/TX delays are enabled. Signed-off-by: Kunihiko Hayashi --- arch/arm/dts/uniphier-ld2

Re: [PATCH] serial: zynq: Use DIV_ROUND_CLOSEST() to calcurate divider value

2022-07-16 Thread Kunihiko Hayashi
Hi Michal, On 2022/07/15 19:48, Michal Simek wrote: On 7/13/22 03:38, Kunihiko Hayashi wrote: Since the calulation of "bgen" is rounded down, using a higher baudrate will result in a larger difference from the actual baudrate. Should use DIV_ROUND_CLOSEST() like the Linux driver.

[PATCH 2/2] mmc: f_sdh30: Add support for F_SDH30_E51

2022-09-05 Thread Kunihiko Hayashi
Add Socionext F_SDH30_E51 IP support. The features of this IP includes CMD/DAT line delay and force card insertion mode for non-removable cards. And the IP needs to add some quirks. Signed-off-by: Kunihiko Hayashi --- drivers/mmc/Kconfig | 4 +-- drivers/mmc/f_sdh30.c | 64

[PATCH 1/2] mmc: sdhci: Add new quirks for SUPPORT_SINGLE

2022-09-05 Thread Kunihiko Hayashi
This patch defines a quirk to disable the block count for single block transactions. This is similar to Linux kernel commit d3fc5d71ac4d ("mmc: sdhci: add a quirk for single block transactions"). Signed-off-by: Kunihiko Hayashi --- drivers/mmc/sdhci.c | 8 +--- include/sdhci.h

[PATCH 0/2] mmc: Add support for F_SDH30_E51

2022-09-05 Thread Kunihiko Hayashi
This series adds a new quirk "SUPPORT_SINGLE" for single transaction to sdhci framework and Socionext F_SDH30_E51 IP support to f_sdh30 driver. Kunihiko Hayashi (2): mmc: sdhci: Add new quirks for SUPPORT_SINGLE mmc: f_sdh30: Add support for F_SDH30_E51 drivers/mmc/Kcon

Re: [PATCH 2/2] mmc: f_sdh30: Add support for F_SDH30_E51

2022-09-09 Thread Kunihiko Hayashi
Hi Jaehoon, Thank you for checking. On 2022/09/08 20:35, Jaehoon Chung wrote: On 9/6/22 09:39, Kunihiko Hayashi wrote: Add Socionext F_SDH30_E51 IP support. The features of this IP includes CMD/DAT line delay and force card insertion mode for non-removable cards. And the IP needs to add some

[PATCH v2 1/2] mmc: sdhci: Add new quirks for SUPPORT_SINGLE

2022-09-09 Thread Kunihiko Hayashi
This patch defines a quirk to disable the block count for single block transactions. This is similar to Linux kernel commit d3fc5d71ac4d ("mmc: sdhci: add a quirk for single block transactions"). Signed-off-by: Kunihiko Hayashi Reviewed-by: Jaehoon Chung --- drivers/mmc/s

[PATCH v2 2/2] mmc: f_sdh30: Add support for F_SDH30_E51

2022-09-09 Thread Kunihiko Hayashi
Add Socionext F_SDH30_E51 IP support. The features of this IP includes CMD/DAT line delay and force card insertion mode for non-removable cards. And the IP needs to add some quirks. Signed-off-by: Kunihiko Hayashi --- drivers/mmc/Kconfig | 4 +-- drivers/mmc/f_sdh30.c | 66

[PATCH v2 0/2] mmc: Add support for F_SDH30_E51

2022-09-09 Thread Kunihiko Hayashi
Add Reviewed-by tag Kunihiko Hayashi (2): mmc: sdhci: Add new quirks for SUPPORT_SINGLE mmc: f_sdh30: Add support for F_SDH30_E51 drivers/mmc/Kconfig | 4 +-- drivers/mmc/f_sdh30.c | 66 +-- drivers/mmc/sdhci.c | 8 -- include/sdhci.h |

Re: [PATCH] i2c: uniphier-f: correct error recovery

2022-12-25 Thread Kunihiko Hayashi
quot;ret" comes from readl_poll_timeout() and is zero, so the error can't be detected. It should be fixed. Fixes: 238bd0b8ce52 ("i2c: UniPhier: add driver for UniPhier FIFO-builtin i2c controller") and, Acked-by: Kunihiko Hayashi Thank you, --- Best Regards Kunihiko Hayashi

[PATCH] spi: Add Socionext F_OSPI SPI flash controller driver

2022-11-28 Thread Kunihiko Hayashi
operate indirect access mode and single data rate mode. Signed-off-by: Kunihiko Hayashi --- drivers/spi/Kconfig | 8 + drivers/spi/Makefile| 1 + drivers/spi/spi-sn-f-ospi.c | 686 3 files changed, 695 insertions(+) create mode 100644 drivers

Re: [PATCH 3/5] usb: dwc3-generic: Add dependency on SIMPLE_BUS

2023-01-23 Thread Kunihiko Hayashi
Hi Marek, On 2023/01/24 0:49, Marek Vasut wrote: On 1/23/23 06:01, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, [...] On the other hand, the PXS2 controller for example is not a bus: arch/arm/dts/uniphier-pxs2.dtsi: 596 _usb0: usb@65a0 { 597 compatible = "soci

Re: [PATCH 3/5] usb: dwc3-generic: Add dependency on SIMPLE_BUS

2023-01-22 Thread Kunihiko Hayashi
Hi Marek, Thank you for reviewing. On 2023/01/23 10:42, Marek Vasut wrote: On 1/23/23 01:47, Kunihiko Hayashi wrote: The glue driver doesn't do or offer actively anything, SIMPLE_BUS is more preferable to represent the driver. Signed-off-by: Kunihiko Hayashi --- drivers/usb/dwc3/Kconfig

Re: [PATCH 3/5] usb: dwc3-generic: Add dependency on SIMPLE_BUS

2023-01-22 Thread Kunihiko Hayashi
Hi Marek, On 2023/01/23 12:37, Marek Vasut wrote: On 1/23/23 04:08, Kunihiko Hayashi wrote: Hello Hayashi-san, diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index f010291d02..dadaa083e7 100644 --- a/drivers/usb/dwc3/Kconfig +++ b/drivers/usb/dwc3/Kconfig @@ -25,14 +25,14

Re: [PATCH 3/5] usb: dwc3-generic: Add dependency on SIMPLE_BUS

2023-01-25 Thread Kunihiko Hayashi
Hi Marek, On 2023/01/25 10:38, Marek Vasut wrote: On 1/24/23 03:53, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, On 2023/01/24 0:49, Marek Vasut wrote: On 1/23/23 06:01, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, [...] On the other hand, the PXS2 controller

Re: [PATCH 3/5] usb: dwc3-generic: Add dependency on SIMPLE_BUS

2023-01-29 Thread Kunihiko Hayashi
Hi Marek, Sorry for late reply. I was stuck in some pitfalls. On 2023/01/25 22:03, Marek Vasut wrote: On 1/25/23 09:40, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, [...] The idea is that the dwc3-generic.c (or dwc3-uniphier.c , placement does not really matter) binds

Re: [PATCH 3/5] usb: dwc3-generic: Add dependency on SIMPLE_BUS

2023-01-30 Thread Kunihiko Hayashi
Hi Marek, On 2023/01/31 7:50, Marek Vasut wrote: On 1/30/23 06:52, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, Sorry for late reply. I was stuck in some pitfalls. No worries, the MW closed today, but rc2 should be still OK to land these patches. Thank you for caring

[PATCH 3/5] usb: dwc3-generic: Add dependency on SIMPLE_BUS

2023-01-22 Thread Kunihiko Hayashi
The glue driver doesn't do or offer actively anything, SIMPLE_BUS is more preferable to represent the driver. Signed-off-by: Kunihiko Hayashi --- drivers/usb/dwc3/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig

[PATCH 0/5] usb: dwc3-uniphier: Replace the driver to use dwc3-generic

2023-01-22 Thread Kunihiko Hayashi
This series exports the structures and functions from the driver source to the header, and replaces dwc3-uniphier driver to use them. This expects dwc3-generic to prevent more SoC-dependent codes. Kunihiko Hayashi (5): usb: dwc3-generic: Export glue structures and functions usb: dwc3-generic

[PATCH 4/5] usb: dwc3-uniphier: Use dwc3-generic instead of xhci-dwc3

2023-01-22 Thread Kunihiko Hayashi
dwc3-uniphier depends on xhci-dwc3 framework, however, it is preferable to use dwc3-generic. This driver calls the exported dwc3-generic functions and redefine the SoC-dependent operations to fit dwc3-generic. Signed-off-by: Kunihiko Hayashi --- drivers/usb/dwc3/Kconfig | 3

[PATCH 1/5] usb: dwc3-generic: Export glue structures and functions

2023-01-22 Thread Kunihiko Hayashi
() - dwc3_glue_remove() The SoC-dependent glue drivers can only define their own wrapper driver and specify these functions. The drivers can also add their own compatible strings and configure functions. Signed-off-by: Kunihiko Hayashi --- drivers/usb/dwc3/dwc3-generic.c | 17 - drivers/usb/dwc3

[PATCH 2/5] usb: dwc3-generic: Add the size of regs property to glue structure

2023-01-22 Thread Kunihiko Hayashi
Add the size of regs property to the glue structure to correctly specify the register region to map. Signed-off-by: Kunihiko Hayashi --- drivers/usb/dwc3/dwc3-generic.c | 2 +- drivers/usb/dwc3/dwc3-generic.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3

[PATCH 5/5] uniphier_defconfig: Disable USB_XHCI_DWC3

2023-01-22 Thread Kunihiko Hayashi
Replacing with dwc3-generic, no need USB_XHCI_DWC3 anymore. Signed-off-by: Kunihiko Hayashi --- configs/uniphier_v7_defconfig | 1 - configs/uniphier_v8_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/uniphier_v7_defconfig b/configs/uniphier_v7_defconfig index d626968c76

Re: [PATCH v2 07/12] reset: uniphier: Add USB glue reset support

2023-02-01 Thread Kunihiko Hayashi
Hi Marek, On 2023/02/02 6:51, Marek Vasut wrote: On 2/1/23 02:13, Kunihiko Hayashi wrote: Add reset control support in USB glue logic. This needs to control the external clocks and resets for the logic before accessing the glue logic. Signed-off-by: Kunihiko Hayashi With the very little

Re: [PATCH v2 09/12] phy: socionext: Add UniPhier USB3 PHY driver

2023-02-01 Thread Kunihiko Hayashi
Hi Marek, Thank you for reviewing. On 2023/02/02 6:54, Marek Vasut wrote: On 2/1/23 02:13, Kunihiko Hayashi wrote: Add USB3 PHY driver support to control clocks and resets for the phy. Signed-off-by: Kunihiko Hayashi --- configs/uniphier_v8_defconfig | 1 + drivers/phy

Re: [PATCH v2 10/12] ARM: dts: uniphier: Fix node names and missing reg property in USB glue node

2023-02-01 Thread Kunihiko Hayashi
Hi Marek, On 2023/02/02 6:55, Marek Vasut wrote: On 2/1/23 02:13, Kunihiko Hayashi wrote: The node name should follow the generic name list in DT specification. This moves "reset" to "reset-controller", "hs-phy" and "ss-phy" to "phy" in the USB

[PATCH] spi: f-ospi: Add missing spi_mem_default_supports_op() helper

2023-03-26 Thread Kunihiko Hayashi
I SPI flash controller driver") Signed-off-by: Kunihiko Hayashi --- drivers/spi/spi-sn-f-ospi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-sn-f-ospi.c b/drivers/spi/spi-sn-f-ospi.c index ebf2903d3e..e3633a5260 100644 --- a/drivers/spi/spi-sn-f-os

[PATCH v4 00/10] usb: dwc3: Refactor dwc3-generic and apply to dwc3-uniphier

2023-02-19 Thread Kunihiko Hayashi
device - Add a patch to support USB glue reset - Add a patch to add missing PHY clocks - Add a patch to enable the driver to enable PHY clocks and resets - Add a patch to fix node names and missing properties - Add a patch to switch to the original USB node in DT Kunihiko Hayashi (9): usb: dwc3

[PATCH v4 04/10] usb: dwc3-generic: Export glue structures and functions

2023-02-19 Thread Kunihiko Hayashi
() - dwc3_glue_remove() The SoC-dependent glue drivers can only define their own wrapper driver and specify these functions. The drivers can also add their own compatible strings and configure functions. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 18

[PATCH v4 01/10] usb: dwc3: Look up reference clock DT phandle in both controller DT nodes

2023-02-19 Thread Kunihiko Hayashi
level node (i.MX8MP) - in both top level node and generic subnode (Rockchip) Cover all the possibilities here by looking into both nodes, start with the top level node as that seems to be used in majority of DTs to reference the clock. Signed-off-by: Marek Vasut Acked-by: Kunihiko Hayashi

[PATCH v4 09/10] usb: dwc3-uniphier: Use dwc3-generic instead of xhci-dwc3

2023-02-19 Thread Kunihiko Hayashi
dwc3-uniphier depends on xhci-dwc3 framework, however, it is preferable to use dwc3-generic. This driver calls the exported dwc3-generic functions and redefine the SoC-dependent operations to fit dwc3-generic. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3

[PATCH v4 08/10] phy: socionext: Add UniPhier USB3 PHY driver

2023-02-19 Thread Kunihiko Hayashi
Add USB3 PHY driver support to control clocks and resets needed to enable PHY. The phy_ops->init() and exit() control PHY clocks and resets only, and clocks and resets for the controller and the parent logic are enabled in advance. Signed-off-by: Kunihiko Hayashi --- drivers/phy/socion

Re: [PATCH v3 08/10] phy: socionext: Add UniPhier USB3 PHY driver

2023-02-19 Thread Kunihiko Hayashi
Hi Marek, On 2023/02/18 4:58, Marek Vasut wrote: On 2/16/23 17:14, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, Sorry for late reply. On 2023/02/14 6:06, Marek Vasut wrote: On 2/13/23 04:08, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, [...] I think so, however

[PATCH v4 07/10] clk: uniphier: Add missing USB SS-PHY clocks

2023-02-19 Thread Kunihiko Hayashi
The USB SS-PHY needs its own clock, however, some clocks don't have clock gates. Define missing clock entries for the PHY as reference clock. Signed-off-by: Kunihiko Hayashi --- drivers/clk/uniphier/clk-uniphier-sys.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/uniphier

[PATCH v4 06/10] reset: uniphier: Add USB glue reset support

2023-02-19 Thread Kunihiko Hayashi
the controller-reset controls "syscon-reset" instead. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/reset/reset-uniphier.c | 78 +- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-uniphier.

[PATCH v4 02/10] usb: dwc3-generic: Allow different controller DT node pattern

2023-02-19 Thread Kunihiko Hayashi
such a controller node and binds the driver related to the node. If this callback isn't defined, dwc_glue_bind() looks for the controller nodes from the child nodes, as before. Suggested-by: Marek Vasut Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 93

[PATCH v4 05/10] usb: dwc3-generic: Add the size of regs property to glue structure

2023-02-19 Thread Kunihiko Hayashi
Add the size of regs property to the glue structure to correctly specify the register region to map. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 2 +- drivers/usb/dwc3/dwc3-generic.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v4 03/10] usb: dwc3-generic: Add clock initialization in child DT node

2023-02-19 Thread Kunihiko Hayashi
Same as the reset cotnrol, should add a clock initialization in child DT node, if the glue node doesn't have any clocks. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/dwc3

[PATCH v4 10/10] uniphier_defconfig: Disable USB_XHCI_DWC3

2023-02-19 Thread Kunihiko Hayashi
Replacing with dwc3-generic, no need USB_XHCI_DWC3 anymore. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- configs/uniphier_v7_defconfig | 1 - configs/uniphier_v8_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/uniphier_v7_defconfig b/configs

[PATCH 2/2] ARM: dts: uniphier: Sync DT with Linux v6.2

2023-02-27 Thread Kunihiko Hayashi
-by: Kunihiko Hayashi --- arch/arm/dts/uniphier-ld11-global.dts | 4 + arch/arm/dts/uniphier-ld11-ref.dts| 6 +- arch/arm/dts/uniphier-ld11.dtsi | 94 ++-- arch/arm/dts/uniphier-ld20.dtsi | 129 +--- arch/arm/dts/uniphier-ld4-ref.dts | 10 +- arch/arm

[PATCH 0/2] Update UniPhier devicetree

2023-02-27 Thread Kunihiko Hayashi
Migrate the USB node to the original node after updating dwc3-generic and dwc3-uniphier. https://lists.denx.de/pipermail/u-boot/2023-February/509635.html And synchronize UniPhier devicetree with Linux v6.2. Kunihiko Hayashi (2): ARM: dts: uniphier: Switch USB node to the original ARM: dts

[PATCH 1/2] ARM: dts: uniphier: Switch USB node to the original

2023-02-27 Thread Kunihiko Hayashi
UniPhier DT applies its own USB node for U-Boot due to the USB driver constrains. After solving this issue, u-boot allows the original USB node. After switching USB node, synchronization of USB node with Linux becomes possible. Signed-off-by: Kunihiko Hayashi --- arch/arm/dts/uniphier-ld20

Re: [PATCH v3 08/10] phy: socionext: Add UniPhier USB3 PHY driver

2023-02-16 Thread Kunihiko Hayashi
Hi Marek, Sorry for late reply. On 2023/02/14 6:06, Marek Vasut wrote: On 2/13/23 04:08, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, [...] I think so, however, when I added .exit() and executed "usb stop;usb start", unfortunately the command got stuck. Currently un

Re: [PATCH v4 00/10] usb: dwc3: Refactor dwc3-generic and apply to dwc3-uniphier

2023-02-21 Thread Kunihiko Hayashi
Hi Marek, On 2023/02/21 0:53, Marek Vasut wrote: On 2/20/23 06:50, Kunihiko Hayashi wrote: This series achieves refactoring of dwc3-generic. First, dwc3-generic allows DT controller nodes to be children of glue nodes, but outside of glue nodes. To achieve this goal, define a glue-specific

Re: [PATCH v2 5/8] usb: dwc3: Add dwc3 glue driver for am62

2023-04-23 Thread Kunihiko Hayashi
= UCLASS_SIMPLE_BUS, + .of_match = dwc3_am62_match, + .bind = dwc3_glue_bind, + .probe = dwc3_glue_probe, + .remove = dwc3_glue_remove, + .plat_auto = sizeof(struct dwc3_glue_data), + The pointless blank line. +}; Thank you, --- Best Regards Kunihiko Hayashi

[PATCH v3 01/10] usb: dwc3: Look up reference clock DT phandle in both controller DT nodes

2023-02-08 Thread Kunihiko Hayashi
level node (i.MX8MP) - in both top level node and generic subnode (Rockchip) Cover all the possibilities here by looking into both nodes, start with the top level node as that seems to be used in majority of DTs to reference the clock. Signed-off-by: Marek Vasut Acked-by: Kunihiko Hayashi

[PATCH v3 07/10] clk: uniphier: Add missing USB SS-PHY clocks

2023-02-08 Thread Kunihiko Hayashi
The USB SS-PHY needs its own clock, however, some clocks don't have clock gates. Define missing clock entries for the PHY as reference clock. Signed-off-by: Kunihiko Hayashi --- drivers/clk/uniphier/clk-uniphier-sys.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/uniphier

[PATCH v3 06/10] reset: uniphier: Add USB glue reset support

2023-02-08 Thread Kunihiko Hayashi
the controller-reset controls "syscon-reset" instead. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/reset/reset-uniphier.c | 78 +- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-uniphier.

[PATCH v3 03/10] usb: dwc3-generic: Add clock initialization in child DT node

2023-02-08 Thread Kunihiko Hayashi
Same as the reset cotnrol, should add a clock initialization in child DT node, if the glue node doesn't have any clocks. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/dwc3

[PATCH v3 04/10] usb: dwc3-generic: Export glue structures and functions

2023-02-08 Thread Kunihiko Hayashi
() - dwc3_glue_remove() The SoC-dependent glue drivers can only define their own wrapper driver and specify these functions. The drivers can also add their own compatible strings and configure functions. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 18

[PATCH v3 02/10] usb: dwc3-generic: Allow different controller DT node pattern

2023-02-08 Thread Kunihiko Hayashi
such a controller node and binds the driver related to the node. If this callback isn't defined, dwc_glue_bind() looks for the controller nodes from the child nodes, as before. Suggested-by: Marek Vasut Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 93

[PATCH v3 00/10] usb: dwc3: Refactor dwc3-generic and apply to dwc3-uniphier

2023-02-08 Thread Kunihiko Hayashi
- Add a patch to enable the driver to enable PHY clocks and resets - Add a patch to fix node names and missing properties - Add a patch to switch to the original USB node in DT Kunihiko Hayashi (9): usb: dwc3-generic: Allow different controller DT node pattern usb: dwc3-generic: Add clock

[PATCH v3 09/10] usb: dwc3-uniphier: Use dwc3-generic instead of xhci-dwc3

2023-02-08 Thread Kunihiko Hayashi
dwc3-uniphier depends on xhci-dwc3 framework, however, it is preferable to use dwc3-generic. This driver calls the exported dwc3-generic functions and redefine the SoC-dependent operations to fit dwc3-generic. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3

[PATCH v3 05/10] usb: dwc3-generic: Add the size of regs property to glue structure

2023-02-08 Thread Kunihiko Hayashi
Add the size of regs property to the glue structure to correctly specify the register region to map. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 2 +- drivers/usb/dwc3/dwc3-generic.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v3 08/10] phy: socionext: Add UniPhier USB3 PHY driver

2023-02-08 Thread Kunihiko Hayashi
Add USB3 PHY driver support to control clocks and resets for the phy. Signed-off-by: Kunihiko Hayashi --- drivers/phy/socionext/Kconfig | 8 ++ drivers/phy/socionext/Makefile| 1 + drivers/phy/socionext/phy-uniphier-usb3.c | 93 +++ 3 files changed

[PATCH v3 10/10] uniphier_defconfig: Disable USB_XHCI_DWC3

2023-02-08 Thread Kunihiko Hayashi
Replacing with dwc3-generic, no need USB_XHCI_DWC3 anymore. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- configs/uniphier_v7_defconfig | 1 - configs/uniphier_v8_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/uniphier_v7_defconfig b/configs

[PATCH v2 05/12] usb: dwc3-generic: Add the size of regs property to glue structure

2023-01-31 Thread Kunihiko Hayashi
Add the size of regs property to the glue structure to correctly specify the register region to map. Signed-off-by: Kunihiko Hayashi Reviewed-by: Marek Vasut --- drivers/usb/dwc3/dwc3-generic.c | 2 +- drivers/usb/dwc3/dwc3-generic.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v2 01/12] usb: dwc3: Look up reference clock DT phandle in both controller DT nodes

2023-01-31 Thread Kunihiko Hayashi
level node (i.MX8MP) - in both top level node and generic subnode (Rockchip) Cover all the possibilities here by looking into both nodes, start with the top level node as that seems to be used in majority of DTs to reference the clock. Signed-off-by: Marek Vasut Acked-by: Kunihiko Hayashi

[PATCH v2 02/12] usb: dwc3-generic: Allow different controller DT node pattern

2023-01-31 Thread Kunihiko Hayashi
such a controller node and binds the driver related to the node. If this callback isn't defined, dwc_glue_bind() looks for the controller nodes from the child nodes, as before. Suggested-by: Marek Vasut Signed-off-by: Kunihiko Hayashi --- drivers/usb/dwc3/dwc3-generic.c | 93

  1   2   >