[PATCH v3 3/3] usb: ohci-at91: Add USB PHY functionality

2023-01-04 Thread Sergiu Moga
Add the ability to enable/disable whatever USB PHY's are passed to the AT91 OHCI driver through DT. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v2: - use *_bulk API's v2 -> v3: - use if (CONFIG_IS_ENABLED(...)) drivers/usb/host/

[PATCH v3 2/3] usb: ohci-at91: Enable OHCI functionality and register into DM

2023-01-04 Thread Sergiu Moga
is called, the pinctrl is processed once again, undoing whatever changes have been made in our driver's probe method. Furthermore, enable CONFIG_DM_GPIO whenever this driver and CONFIG_DM_USB are selected. Signed-off-by: Sergiu Moga --- v1 -> v2: - squashed 3/4 into this patch - remo

[PATCH v3 1/3] phy: at91: Add support for the USB 2.0 PHY's of SAMA7

2023-01-04 Thread Sergiu Moga
unction with CCF and DT, the former driver will also act as a clock provider for the three phy's with the help of a custom hook into the driver's of_xlate method. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v2: - Nothing v2 -> v3: - fix memory leak in the

[PATCH v3 0/3] Register at91 OHCI into DM and add SAMA7 USB PHY's

2023-01-04 Thread Sergiu Moga
c - prefer using if (CONFIG_IS_ENABLED(...)) - add comment regarding why non-DM version must stay Sergiu Moga (3): phy: at91: Add support for the USB 2.0 PHY's of SAMA7 usb: ohci-at91: Enable OHCI functionality and register into DM usb: ohci-at91: Add USB PHY functionality drivers/phy/Kc

[PATCH v3 4/9] dt-bindings: reset: add sama7g5 definitions

2023-01-04 Thread Sergiu Moga
Upstream linux commit 5994f58977e0. Add reset bindings for SAMA7G5. At the moment only USB PHYs are included. The three reset USB phy's have their ID's mapped from 4 to 6. There are no USB phy's with ID's numbered from 0 to 3. Signed-off-by: Sergiu Moga --- v1 -> v

[PATCH v3 9/9] ARM: dts: sama5d27_wlsom1_ek: Add pinctrl nodes for USB DT nodes

2023-01-04 Thread Sergiu Moga
Add the pinctrl nodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v3: - nothing arch/arm/dts/at91-sama5d27_wlsom1_ek.dts | 25 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts b/arch/arm/dts/a

[PATCH v3 8/9] ARM: dts: sama5d2_icp: Add pinctrl nodes for USB related DT nodes

2023-01-04 Thread Sergiu Moga
Add the pinctrl subnodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v3: - nothing arch/arm/dts/at91-sama5d2_icp.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/a

[PATCH v3 7/9] ARM: dts: sama7g5ek: Add pinctrl, gpio and phy properties for USB

2023-01-04 Thread Sergiu Moga
Add the required pinctrl, gpio and phy properties required by the USB DT nodes of the sama7g5ek boards. Since these have not yet been defined in upstream Linux, place them in the U-Boot specific DT file. Signed-off-by: Sergiu Moga --- v1 -> v2: - this patch was not here, previously split f

[PATCH v3 6/9] ARM: dts: sama7g5: Add USB and UTMI DT nodes

2023-01-04 Thread Sergiu Moga
Define the USB and UTMI DT nodes for the sama7g5 SoC's. Since these have not yet been defined in upstream Linux, place them in the U-Boot specific DT file. Signed-off-by: Sergiu Moga --- v1 -> v2: - use usb@ v2 -> v3: - place definitions in the U-Boot specific file and mentio

[PATCH v3 3/9] ARM: dts: sam9x60ek: Add pinctrl and gpio properties for USB

2023-01-04 Thread Sergiu Moga
Add the required pinctrl and gpio properties required by the USB DT nodes of the sam9x60ek boards. Signed-off-by: Sergiu Moga --- v1 -> v2: - this patch was not here, previously split from 1/6 of v1 v2 -> v3: - nothing arch/arm/dts/sam9x60ek.dts | 21 + 1 file c

[PATCH v3 5/9] dt-bindings: clk: at91: Define additional UTMI related clocks

2023-01-04 Thread Sergiu Moga
Add definitions for an additional main UTMI clock as well as its respective subclocks. Signed-off-by: Sergiu Moga --- v1 -> v2: - nothing v2 -> v3: - added USB_ prefix include/dt-bindings/clk/at91.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/dt-bindings/clk/at

[PATCH v3 2/9] ARM: dts: sam9x60_curiosity: Add pinctrl and gpio properties for USB

2023-01-04 Thread Sergiu Moga
Add the required pinctrl and gpio properties needed by the USB DT nodes of the sam9x60_curiosity boards. Signed-off-by: Sergiu Moga --- v1 -> v2: - this patch was not here, previously split from 1/6 of v1 v2 -> v3: - nothing arch/arm/dts/at91-sam9x60_curiosity.dt

[PATCH v3 0/9] Add DT USB definitions for SAM9X60, SAMA5D2 and SAMA7

2023-01-04 Thread Sergiu Moga
ot specific file Sergiu Moga (9): ARM: dts: sam9x60: Add OHCI and EHCI DT nodes ARM: dts: sam9x60_curiosity: Add pinctrl and gpio properties for USB ARM: dts: sam9x60ek: Add pinctrl and gpio properties for USB dt-bindings: reset: add sama7g5 definitions dt-bindings: clk: at91: Define additio

[PATCH v3 1/9] ARM: dts: sam9x60: Add OHCI and EHCI DT nodes

2023-01-04 Thread Sergiu Moga
Add the OHCI and EHCI DT nodes for the sam9x60 SoC's. Signed-off-by: Sergiu Moga --- v1 -> v2: - use usb@ v2 -> v3: - Nothing arch/arm/dts/sam9x60.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60

[PATCH v2 2/2] reset: at91: Add reset driver for basic assert/deassert operations

2023-01-04 Thread Sergiu Moga
rmore, delete the no longer needed compatibles from the SYSRESET driver and rename it to make sure than any possible conflicts are avoided. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain Reviewed-by: Claudiu Beznea --- v1 -> v2: - rebase on u-boot next drivers/reset/Kconfig

[PATCH v2 1/2] ARM: at91: add sama7 SFR definitions

2023-01-04 Thread Sergiu Moga
From: Cristian Birsan Special Function Registers(SFR) definitions for SAMA7 product family. Signed-off-by: Cristian Birsan Signed-off-by: Sergiu Moga --- v1 -> v2: - nothing arch/arm/mach-at91/include/mach/sama7-sfr.h | 59 + 1 file changed, 59 insertions(+) cre

[PATCH v2 0/2] Add basic reset driver for assert/deassert operations

2023-01-04 Thread Sergiu Moga
This patch series originates from: https://lists.denx.de/pipermail/u-boot/2022-December/502865.html Implement a basic driver to enable assert/deassert operations. v1 -> v2: - rebase on u-boot next Cristian Birsan (1): ARM: at91: add sama7 SFR definitions Sergiu Moga (1): reset: at91:

[PATCH v2 8/9] ARM: dts: sama5d2_icp: Add pinctrl nodes for USB related DT nodes

2023-01-03 Thread Sergiu Moga
Add the pinctrl subnodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v2: - nothing arch/arm/dts/at91-sama5d2_icp.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/a

[PATCH v2 7/9] ARM: dts: sama7g5ek: Add pinctrl, gpio and phy properties for USB

2023-01-03 Thread Sergiu Moga
Add the required pinctrl, gpio and phy properties required by the USB DT nodes of the sama7g5ek boards. Signed-off-by: Sergiu Moga --- v1 -> v2: - this patch was not here, previously split from 4/6 of v1 arch/arm/dts/at91-sama7g5ek.dts | 34 + 1 file chan

[PATCH v2 5/9] dt-bindings: clk: at91: Define additional UTMI related clocks

2023-01-03 Thread Sergiu Moga
Add definitions for an additional main UTMI clock as well as its respective subclocks. Signed-off-by: Sergiu Moga --- v1 -> v2: - nothing include/dt-bindings/clk/at91.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/dt-bindings/clk/at91.h b/include/dt-bindings/clk/at9

[PATCH v2 9/9] ARM: dts: sama5d27_wlsom1_ek: Add pinctrl nodes for USB DT nodes

2023-01-03 Thread Sergiu Moga
Add the pinctrl nodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v2: - nothing arch/arm/dts/at91-sama5d27_wlsom1_ek.dts | 25 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts b/arch/arm/dts/a

[PATCH v2 6/9] ARM: dts: sama7g5: Add USB and UTMI DT nodes

2023-01-03 Thread Sergiu Moga
Define the USB and UTMI DT nodes for the sama7g5 SoC's. Signed-off-by: Sergiu Moga --- v1 -> v2: - use usb@ arch/arm/dts/sama7g5.dtsi | 73 +++ 1 file changed, 73 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dt

[PATCH v2 4/9] dt-bindings: reset: add sama7g5 definitions

2023-01-03 Thread Sergiu Moga
Upstream linux commit 5994f58977e0. Add reset bindings for SAMA7G5. At the moment only USB PHYs are included. Signed-off-by: Sergiu Moga --- v1 -> v2: - nothing include/dt-bindings/reset/sama7g5-reset.h | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 include

[PATCH v2 2/9] ARM: dts: sam9x60_curiosity: Add pinctrl and gpio properties for USB

2023-01-03 Thread Sergiu Moga
Add the required pinctrl and gpio properties needed by the USB DT nodes of the sam9x60_curiosity boards. Signed-off-by: Sergiu Moga --- v1 -> v2: - this patch was not here, previously split from 1/6 of v1 arch/arm/dts/at91-sam9x60_curiosity.dts | 21 + 1 file changed,

[PATCH v2 3/9] ARM: dts: sam9x60ek: Add pinctrl and gpio properties for USB

2023-01-03 Thread Sergiu Moga
Add the required pinctrl and gpio properties required by the USB DT nodes of the sam9x60ek boards. Signed-off-by: Sergiu Moga --- v1 -> v2: - this patch was not here, previously split from 1/6 of v1 arch/arm/dts/sam9x60ek.dts | 21 + 1 file changed, 21 insertions(+) d

[PATCH v2 1/9] ARM: dts: sam9x60: Add OHCI and EHCI DT nodes

2023-01-03 Thread Sergiu Moga
Add the OHCI and EHCI DT nodes for the sam9x60 SoC's. Signed-off-by: Sergiu Moga --- v1 -> v2: - use usb@ arch/arm/dts/sam9x60.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/dts/sam9x60.dtsi b/arch/arm/dts/sam9x60.dtsi index 17224ef771..4fcfb5c59

[PATCH v2 0/9] Add DT USB definitions for SAM9X60, SAMA5D2 and SAMA7

2023-01-03 Thread Sergiu Moga
clocks and their relationship with the Reset driver. v1 -> v2: - split patches for SoC/Board separately - use usb@ Sergiu Moga (9): ARM: dts: sam9x60: Add OHCI and EHCI DT nodes ARM: dts: sam9x60_curiosity: Add pinctrl and gpio properties for USB ARM: dts: sam9x60ek: Add pinctrl and g

[PATCH v2 3/3] usb: ohci-at91: Add USB PHY functionality

2023-01-03 Thread Sergiu Moga
Add the ability to enable/disable whatever USB PHY's are passed to the AT91 OHCI driver through DT. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v2: - use *_bulk API's drivers/usb/host/ohci-at91.c | 35 +++ 1 file changed,

[PATCH v2 2/3] usb: ohci-at91: Enable OHCI functionality and register into DM

2023-01-03 Thread Sergiu Moga
is called, the pinctrl is processed once again, undoing whatever changes have been made in our driver's probe method. Furthermore, enable CONFIG_DM_GPIO whenever this driver and CONFIG_DM_USB are selected. Signed-off-by: Sergiu Moga --- v1 -> v2: - squashed 3/4 into this patch - remo

[PATCH v2 1/3] phy: at91: Add support for the USB 2.0 PHY's of SAMA7

2023-01-03 Thread Sergiu Moga
unction with CCF and DT, the former driver will also act as a clock provider for the three phy's with the help of a custom hook into the driver's of_xlate method. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v2: - Nothing drivers/phy/Kconfig

[PATCH v2 0/3] Register at91 OHCI into DM and add SAMA7 USB PHY's

2023-01-03 Thread Sergiu Moga
/4 patch into 2/4 patch - used *_bulk API's - re-wrote at91_for_each_port - use dev_read_u32_default for pdata->ports Sergiu Moga (3): phy: at91: Add support for the USB 2.0 PHY's of SAMA7 usb: ohci-at91: Enable OHCI functionality and register into DM usb: ohci-at91: Add USB PHY fu

[PATCH 3/3] configs: at91: sama7: Enable USB and RESET functionality

2022-12-23 Thread Sergiu Moga
Enable USB and RESET functionality. In order for USB to work properly on SAMA7, the driver needs to be able to have access to PHY's, which, in turn, need to have access to the RSTC driver's assert/deassert functionalities. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --

[PATCH 2/3] configs: at91: sama5d2: Enable OHCI/EHCI related configs

2022-12-23 Thread Sergiu Moga
Enable the OHCI and EHCI related configs required in order to be able to use the USB command properly. Signed-off-by: Sergiu Moga --- configs/sama5d27_giantboard_defconfig | 4 configs/sama5d27_som1_ek_mmc1_defconfig| 4 configs/sama5d27_som1_ek_mmc_defconfig

[PATCH 1/3] configs: at91: sam9x60: Add required configs for the USB command

2022-12-23 Thread Sergiu Moga
Add the configs required to use the USB-related functionalities within the bootloader. Signed-off-by: Sergiu Moga --- configs/sam9x60_curiosity_mmc_defconfig | 7 +++ configs/sam9x60ek_mmc_defconfig | 8 configs/sam9x60ek_nandflash_defconfig | 8 configs

[PATCH 0/3] Enable USB on SAM9X60, SAMA5D2 and SAMA7 defconfigs

2022-12-23 Thread Sergiu Moga
series: https://lists.denx.de/pipermail/u-boot/2022-December/502966.html https://lists.denx.de/pipermail/u-boot/2022-December/502972.html https://lists.denx.de/pipermail/u-boot/2022-December/502979.html https://lists.denx.de/pipermail/u-boot/2022-December/502983.html Sergiu Moga (3): configs

[PATCH 4/4] usb: ohci-at91: Add USB PHY functionality

2022-12-23 Thread Sergiu Moga
Add the ability to enable/disable whatever USB PHY's are passed to the AT91 OHCI driver through DT. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- drivers/usb/host/ohci-at91.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/usb/host/ohci

[PATCH 3/4] usb: ohci-at91: Add `ohci_t` field in `ohci_at91_priv`

2022-12-23 Thread Sergiu Moga
I functionality and register into DM") Signed-off-by: Cristian Birsan Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- drivers/usb/host/ohci-at91.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 9ae55c6e5d..5cf

[PATCH 2/4] usb: ohci-at91: Enable OHCI functionality and register into DM

2022-12-23 Thread Sergiu Moga
is called, the pinctrl is processed once again, undoing whatever changes have been made in our driver's probe method. Signed-off-by: Sergiu Moga --- drivers/usb/host/ohci-at91.c | 183 +++ 1 file changed, 183 insertions(+) diff --git a/drivers/usb/host/ohci

[PATCH 0/4] Register at91 OHCI into DM and add SAMA7 USB PHY's

2022-12-23 Thread Sergiu Moga
: Add `ohci_t` field in `ohci_at91_priv` Sergiu Moga (3): phy: at91: Add support for the USB 2.0 PHY's of SAMA7 usb: ohci-at91: Enable OHCI functionality and register into DM usb: ohci-at91: Add USB PHY functionality drivers/phy/Kconfig | 10 ++ drivers/ph

[PATCH 1/4] phy: at91: Add support for the USB 2.0 PHY's of SAMA7

2022-12-23 Thread Sergiu Moga
unction with CCF and DT, the former driver will also act as a clock provider for the three phy's with the help of a custom hook into the driver's of_xlate method. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- drivers/phy/Kconfig | 10 ++ drivers/phy/Makefile

[PATCH 2/2] reset: at91: Add reset driver for basic assert/deassert operations

2022-12-23 Thread Sergiu Moga
rmore, delete the no longer needed compatibles from the SYSRESET driver and rename it to make sure than any possible conflicts are avoided. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain Reviewed-by: Claudiu Beznea --- drivers/reset/Kconfig| 8 ++ drivers/reset/Mak

[PATCH 1/2] ARM: at91: add sama7 SFR definitions

2022-12-23 Thread Sergiu Moga
From: Cristian Birsan Special Function Registers(SFR) definitions for SAMA7 product family. Signed-off-by: Cristian Birsan Signed-off-by: Sergiu Moga --- arch/arm/mach-at91/include/mach/sama7-sfr.h | 59 + 1 file changed, 59 insertions(+) create mode 100644 arch/arm/mach

[PATCH 0/2] Add basic reset driver for assert/deassert operations

2022-12-23 Thread Sergiu Moga
This patch series originates from: https://lists.denx.de/pipermail/u-boot/2022-December/502865.html Implement a basic driver to enable assert/deassert operations. Cristian Birsan (1): ARM: at91: add sama7 SFR definitions Sergiu Moga (1): reset: at91: Add reset driver for basic assert

[PATCH 5/6] ARM: dts: at91: sama5d2_icp: Add pinctrl nodes for USB related DT nodes

2022-12-23 Thread Sergiu Moga
Add the pinctrl subnodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- arch/arm/dts/at91-sama5d2_icp.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/at91-sama5d2_icp.dts index 2dffae9c5c

[PATCH 4/6] ARM: dts: at91: sama7: Add USB related DT nodes

2022-12-23 Thread Sergiu Moga
Add the USB related DT nodes for the sama7g5ek board. Signed-off-by: Sergiu Moga --- arch/arm/dts/at91-sama7g5ek.dts | 34 +++ arch/arm/dts/sama7g5.dtsi | 73 + 2 files changed, 107 insertions(+) diff --git a/arch/arm/dts/at91-sama7g5ek.dts b

[PATCH 6/6] ARM: dts: at91: sama5d27_wlsom1_ek: Add pinctrl nodes for USB DT nodes

2022-12-23 Thread Sergiu Moga
Add the pinctrl nodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- arch/arm/dts/at91-sama5d27_wlsom1_ek.dts | 25 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts b/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts

[PATCH 3/6] dt-bindings: clk: at91: Define additional UTMI related clocks

2022-12-23 Thread Sergiu Moga
Add definitions for an additional main UTMI clock as well as its respective subclocks. Signed-off-by: Sergiu Moga --- include/dt-bindings/clk/at91.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/dt-bindings/clk/at91.h b/include/dt-bindings/clk/at91.h index e30756b280

[PATCH 2/6] dt-bindings: reset: add sama7g5 definitions

2022-12-23 Thread Sergiu Moga
Upstream linux commit 5994f58977e0. Add reset bindings for SAMA7G5. At the moment only USB PHYs are included. Signed-off-by: Sergiu Moga --- include/dt-bindings/reset/sama7g5-reset.h | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 include/dt-bindings/reset/sama7g5-reset.h

[PATCH 1/6] ARM: dts: sam9x60: Add OHCI and EHCI DT nodes

2022-12-23 Thread Sergiu Moga
Add the OHCI and EHCI DT nodes for the sam9x60 boards. Signed-off-by: Sergiu Moga --- arch/arm/dts/at91-sam9x60_curiosity.dts | 21 + arch/arm/dts/sam9x60.dtsi | 18 ++ arch/arm/dts/sam9x60ek.dts | 21 + 3 files

[PATCH 0/6] Add DT USB definitions for SAM9X60, SAMA5D2 and SAMA7

2022-12-23 Thread Sergiu Moga
clocks and their relationship with the Reset driver. Sergiu Moga (6): ARM: dts: sam9x60: Add OHCI and EHCI DT nodes dt-bindings: reset: add sama7g5 definitions dt-bindings: clk: at91: Define additional UTMI related clocks ARM: dts: at91: sama7: Add USB related DT nodes ARM: dts: at91

[PATCH 5/5] configs: at91: sam9x60: Add required configs for the USB clock

2022-12-23 Thread Sergiu Moga
Add the configs required to use the SAM9X60's USB clock. Signed-off-by: Sergiu Moga --- configs/sam9x60_curiosity_mmc_defconfig | 1 + configs/sam9x60ek_mmc_defconfig | 1 + configs/sam9x60ek_nandflash_defconfig | 1 + configs/sam9x60ek_qspiflash_defconfig | 1 + 4 files chang

[PATCH 4/5] clk: at91: sam9x60: Add initial setup of UPLL and USBCK rates

2022-12-23 Thread Sergiu Moga
In order for some of the functionalities, such as the USB clocks, to work properly we need some clocks to be properly initialised at the very beginning of booting. Signed-off-by: Sergiu Moga --- drivers/clk/at91/sam9x60.c | 30 ++ 1 file changed, 30 insertions

[PATCH 3/5] clk: at91: pmc: export clock setup to pmc

2022-12-23 Thread Sergiu Moga
. Signed-off-by: Claudiu Beznea Signed-off-by: Sergiu Moga --- drivers/clk/at91/pmc.c | 42 + drivers/clk/at91/pmc.h | 16 + drivers/clk/at91/sama7g5.c | 48 +- 3 files changed, 64 insertions(+), 42 deletions

[PATCH 1/5] clk: at91: Add support for sam9x60 USB clock

2022-12-23 Thread Sergiu Moga
Implement sam9x60 USB clock driver. This clock has three parents: PLLA, UPLL and MAINXTAL. The driver is aware of the three possible parents with the help of the two mux tables provied to the driver during the registration of the clock. Signed-off-by: Sergiu Moga --- drivers/clk/at91/Kconfig

[PATCH 2/5] clk: at91: sam9x60: Register the required clocks for USB

2022-12-23 Thread Sergiu Moga
Register into DM the clocks required to properly enable USB functionality within the bootloader. Signed-off-by: Sergiu Moga --- drivers/clk/at91/sam9x60.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60

[PATCH 0/5] Support the required clocks to enable USB on SAM9X60

2022-12-23 Thread Sergiu Moga
itial frequency before probing the OHCI/EHCI driver. Furthermore enable this driver in the defconfigs. Claudiu Beznea (1): clk: at91: pmc: export clock setup to pmc Sergiu Moga (4): clk: at91: Add support for sam9x60 USB clock clk: at91: sam9x60: Register the required clocks for USB clk:

[PATCH v5 19/19] usb: ohci-at91: Add `ohci_t` field in `ohci_at91_priv`

2022-12-22 Thread Sergiu Moga
I functionality and register into DM") Signed-off-by: Cristian Birsan Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v5: - No change drivers/usb/host/ohci-at91.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-

[PATCH v5 17/19] configs: at91: sama5d2: Enable OHCI/EHCI related configs

2022-12-22 Thread Sergiu Moga
Enable the OHCI and EHCI related configs required in order to be able to use the USB command properly. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Also add CONFIG_RESET_AT91 to enable RSTC v3 -> v5: - No change configs/sama5d27_giantboard_defconfig

[PATCH v5 18/19] configs: at91: sama7: Enable USB and RESET functionality

2022-12-22 Thread Sergiu Moga
Enable USB and RESET functionality. In order for USB to work properly on SAMA7, the driver needs to be able to have access to PHY's, which, in turn, need to have access to the RSTC driver's assert/deassert functionalities. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -

[PATCH v5 16/19] configs: at91: sam9x60ek: Add required configs for the USB command

2022-12-22 Thread Sergiu Moga
Add the configs required to use the USB-related functionalities within the bootloader. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Also add USB Mass Storage on SAM9X60 Curiosity - Add CONFIG_RESET_AT91 to enable RSTC v3 -> v5: - No change

[PATCH v5 15/19] ARM: dts: at91: sama5d27_wlsom1_ek: Add pinctrl nodes for USB DT nodes

2022-12-22 Thread Sergiu Moga
Add the pinctrl nodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v5: - No change arch/arm/dts/at91-sama5d27_wlsom1_ek.dts | 25 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts b/arch/arm/

[PATCH v5 14/19] ARM: dts: at91: sama5d2_icp: Add pinctrl nodes for USB related DT nodes

2022-12-22 Thread Sergiu Moga
Add the pinctrl subnodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v5: - No change arch/arm/dts/at91-sama5d2_icp.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/a

[PATCH v5 13/19] usb: ohci-at91: Add USB PHY functionality

2022-12-22 Thread Sergiu Moga
Add the ability to enable/disable whatever USB PHY's are passed to the AT91 OHCI driver through DT. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v5: - No change drivers/usb/host/ohci-at91.c | 31 +++ 1 file changed, 31 insertions(+) diff

[PATCH v5 12/19] phy: at91: Add support for the USB 2.0 PHY's of SAMA7

2022-12-22 Thread Sergiu Moga
unction with CCF and DT, the former driver will also act as a clock provider for the three phy's with the help of a custom hook into the driver's of_xlate method. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v3: - No change v3 -> v4: - Remove unnecessary `sama

[PATCH v5 11/19] reset: at91: Add reset driver for basic assert/deassert operations

2022-12-22 Thread Sergiu Moga
rmore, delete the no longer needed compatibles from the SYSRESET driver and rename it to make sure than any possible conflicts are avoided. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain Reviewed-by: Claudiu Beznea --- v1 -> v5: - No change drivers/reset/Kconfig| 8 ++

[PATCH v5 10/19] ARM: at91: add sama7 SFR definitions

2022-12-22 Thread Sergiu Moga
From: Cristian Birsan Special Function Registers(SFR) definitions for SAMA7 product family. Signed-off-by: Cristian Birsan Signed-off-by: Sergiu Moga --- v1 -> v5: - No change arch/arm/mach-at91/include/mach/sama7-sfr.h | 59 + 1 file changed, 59 insertions(+) cre

[PATCH v5 09/19] ARM: dts: at91: sama7: Add USB related DT nodes

2022-12-22 Thread Sergiu Moga
Add the USB related DT nodes for the sama7g5ek board. Signed-off-by: Sergiu Moga --- v1 -> v5: - No change arch/arm/dts/at91-sama7g5ek.dts | 34 +++ arch/arm/dts/sama7g5.dtsi | 73 + 2 files changed, 107 insertions(+) diff --git a/arch/

[PATCH v5 08/19] dt-bindings: clk: at91: Define additional UTMI related clocks

2022-12-22 Thread Sergiu Moga
Add definitions for an additional main UTMI clock as well as its respective subclocks. Signed-off-by: Sergiu Moga --- v1 -> v5: - No change include/dt-bindings/clk/at91.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/dt-bindings/clk/at91.h b/include/dt-bindings/clk/at9

[PATCH v5 07/19] dt-bindings: reset: add sama7g5 definitions

2022-12-22 Thread Sergiu Moga
Upstream linux commit 5994f58977e0. Add reset bindings for SAMA7G5. At the moment only USB PHYs are included. Signed-off-by: Sergiu Moga --- v1 -> v5: - No change include/dt-bindings/reset/sama7g5-reset.h | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 include

[PATCH v5 06/19] usb: ohci-at91: Enable OHCI functionality and register into DM

2022-12-22 Thread Sergiu Moga
is called, the pinctrl is processed once again, undoing whatever changes have been made in our driver's probe method. Signed-off-by: Sergiu Moga --- v1 -> v2: - Move ` #include ` below `#if !(CONFIG_IS_ENABLED(DM_USB))` to avoid implicit declarations warnings/errors v2 -> v4:

[PATCH v5 05/19] clk: at91: sam9x60: Add initial setup of UPLL and USBCK rates

2022-12-22 Thread Sergiu Moga
In order for some of the functionalities, such as the USB clocks, to work properly we need some clocks to be properly initialised at the very beginning of booting. Signed-off-by: Sergiu Moga --- v1 -> v2: - Adapted according to the additional 04/19 PATCH, now making use of `at91_clk_se

[PATCH v5 04/19] clk: at91: pmc: export clock setup to pmc

2022-12-22 Thread Sergiu Moga
. Signed-off-by: Claudiu Beznea Signed-off-by: Sergiu Moga --- v1 -> v2: - Additional patch, this was not here in v1 v2 -> v5: - No change drivers/clk/at91/pmc.c | 42 + drivers/clk/at91/pmc.h | 16 + drivers/clk/at91/sama7g5.

[PATCH v5 03/19] clk: at91: sam9x60: Register the required clocks for USB

2022-12-22 Thread Sergiu Moga
Register into DM the clocks required to properly enable USB functionality within the bootloader. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Remove the no longer required #if CONFIG_IS_ENABLED(AT91_SAM9X60_USB) v3 -> v5: - No change drivers/clk/at91/sam9x

[PATCH v5 02/19] clk: at91: Add support for sam9x60 USB clock

2022-12-22 Thread Sergiu Moga
Implement sam9x60 USB clock driver. This clock has three parents: PLLA, UPLL and MAINXTAL. The driver is aware of the three possible parents with the help of the two mux tables provied to the driver during the registration of the clock. Signed-off-by: Sergiu Moga --- v1 -> v4: - No change

[PATCH v5 00/19] Add USB on SAM9X60, SAMA7G5 and SAMA5D2 boards

2022-12-22 Thread Sergiu Moga
phy probe method v4 -> v5: - Fixed some warnings Claudiu Beznea (1): clk: at91: pmc: export clock setup to pmc Cristian Birsan (2): ARM: at91: add sama7 SFR definitions usb: ohci-at91: Add `ohci_t` field in `ohci_at91_priv` Sergiu Moga (16): ARM: dts: sam9x60: Add OHCI and EHCI

[PATCH v5 01/19] ARM: dts: sam9x60: Add OHCI and EHCI DT nodes

2022-12-22 Thread Sergiu Moga
Add the OHCI and EHCI DT nodes for the sam9x60 boards. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Also add pinctrl nodes to sam9x60 curiosity v3 -> v5: - No change arch/arm/dts/at91-sam9x60_curiosity.dts | 21 + arch/arm/dts/sam

[PATCH v4 19/19] usb: ohci-at91: Add `ohci_t` field in `ohci_at91_priv`

2022-12-19 Thread Sergiu Moga
I functionality and register into DM") Signed-off-by: Cristian Birsan Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v4: - No change drivers/usb/host/ohci-at91.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-

[PATCH v4 18/19] configs: at91: sama7: Enable USB and RESET functionality

2022-12-19 Thread Sergiu Moga
Enable USB and RESET functionality. In order for USB to work properly on SAMA7, the driver needs to be able to have access to PHY's, which, in turn, need to have access to the RSTC driver's assert/deassert functionalities. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -

[PATCH v4 17/19] configs: at91: sama5d2: Enable OHCI/EHCI related configs

2022-12-19 Thread Sergiu Moga
Enable the OHCI and EHCI related configs required in order to be able to use the USB command properly. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Also add CONFIG_RESET_AT91 to enable RSTC v3 -> v4: - No change configs/sama5d27_giantboard_defconfig

[PATCH v4 16/19] configs: at91: sam9x60ek: Add required configs for the USB command

2022-12-19 Thread Sergiu Moga
Add the configs required to use the USB-related functionalities within the bootloader. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Also add USB Mass Storage on SAM9X60 Curiosity - Add CONFIG_RESET_AT91 to enable RSTC v3 -> v4: - No change

[PATCH v4 15/19] ARM: dts: at91: sama5d27_wlsom1_ek: Add pinctrl nodes for USB DT nodes

2022-12-19 Thread Sergiu Moga
Add the pinctrl nodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v4: - No change arch/arm/dts/at91-sama5d27_wlsom1_ek.dts | 25 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts b/arch/arm/

[PATCH v4 14/19] ARM: dts: at91: sama5d2_icp: Add pinctrl nodes for USB related DT nodes

2022-12-19 Thread Sergiu Moga
Add the pinctrl subnodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v4: - No change arch/arm/dts/at91-sama5d2_icp.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/a

[PATCH v4 13/19] usb: ohci-at91: Add USB PHY functionality

2022-12-19 Thread Sergiu Moga
Add the ability to enable/disable whatever USB PHY's are passed to the AT91 OHCI driver through DT. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v4: - No change drivers/usb/host/ohci-at91.c | 31 +++ 1 file changed, 31 insertions(+) diff

[PATCH v4 12/19] phy: at91: Add support for the USB 2.0 PHY's of SAMA7

2022-12-19 Thread Sergiu Moga
unction with CCF and DT, the former driver will also act as a clock provider for the three phy's with the help of a custom hook into the driver's of_xlate method. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v3: - No change v3 -> v4: - Remove unnecessary `sama

[PATCH v4 11/19] reset: at91: Add reset driver for basic assert/deassert operations

2022-12-19 Thread Sergiu Moga
rmore, delete the no longer needed compatibles from the SYSRESET driver and rename it to make sure than any possible conflicts are avoided. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain Reviewed-by: Claudiu Beznea --- v1 -> v4: - No change drivers/reset/Kconfig| 8 ++

[PATCH v4 10/19] ARM: at91: add sama7 SFR definitions

2022-12-19 Thread Sergiu Moga
From: Cristian Birsan Special Function Registers(SFR) definitions for SAMA7 product family. Signed-off-by: Cristian Birsan Signed-off-by: Sergiu Moga --- v1 -> v4: - No change arch/arm/mach-at91/include/mach/sama7-sfr.h | 59 + 1 file changed, 59 inserti

[PATCH v4 09/19] ARM: dts: at91: sama7: Add USB related DT nodes

2022-12-19 Thread Sergiu Moga
Add the USB related DT nodes for the sama7g5ek board. Signed-off-by: Sergiu Moga --- v1 -> v4: - No change arch/arm/dts/at91-sama7g5ek.dts | 34 +++ arch/arm/dts/sama7g5.dtsi | 73 + 2 files changed, 107 insertions(+) diff --git a/a

[PATCH v4 08/19] dt-bindings: clk: at91: Define additional UTMI related clocks

2022-12-19 Thread Sergiu Moga
Add definitions for an additional main UTMI clock as well as its respective subclocks. Signed-off-by: Sergiu Moga --- v1 -> v4: - No change include/dt-bindings/clk/at91.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/dt-bindings/clk/at91.h b/include/dt-bindings/clk/a

[PATCH v4 07/19] dt-bindings: reset: add sama7g5 definitions

2022-12-19 Thread Sergiu Moga
Upstream linux commit 5994f58977e0. Add reset bindings for SAMA7G5. At the moment only USB PHYs are included. Signed-off-by: Sergiu Moga --- v1 -> v4: - No change include/dt-bindings/reset/sama7g5-reset.h | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 include

[PATCH v4 06/19] usb: ohci-at91: Enable OHCI functionality and register into DM

2022-12-19 Thread Sergiu Moga
is called, the pinctrl is processed once again, undoing whatever changes have been made in our driver's probe method. Signed-off-by: Sergiu Moga --- v1 -> v2: - Move ` #include ` below `#if !(CONFIG_IS_ENABLED(DM_USB))` to avoid implicit declarations warnings/errors v2 -> v4:

[PATCH v4 05/19] clk: at91: sam9x60: Add initial setup of UPLL and USBCK rates

2022-12-19 Thread Sergiu Moga
In order for some of the functionalities, such as the USB clocks, to work properly we need some clocks to be properly initialised at the very beginning of booting. Signed-off-by: Sergiu Moga --- v1 -> v2: - Adapted according to the additional 04/19 PATCH, now making use of `at91_clk_se

[PATCH v4 04/19] clk: at91: pmc: export clock setup to pmc

2022-12-19 Thread Sergiu Moga
. Signed-off-by: Claudiu Beznea Signed-off-by: Sergiu Moga --- v1 -> v2: - Additional patch, this was not here in v1 v2 -> v4: - No change drivers/clk/at91/pmc.c | 42 + drivers/clk/at91/pmc.h | 16 + drivers/clk/at91/sama7g5.

[PATCH v4 03/19] clk: at91: sam9x60: Register the required clocks for USB

2022-12-19 Thread Sergiu Moga
Register into DM the clocks required to properly enable USB functionality within the bootloader. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Remove the no longer required #if CONFIG_IS_ENABLED(AT91_SAM9X60_USB) v3 -> v4: - No change drivers/clk/at91/sam9x

[PATCH v4 02/19] clk: at91: Add support for sam9x60 USB clock

2022-12-19 Thread Sergiu Moga
Implement sam9x60 USB clock driver. This clock has three parents: PLLA, UPLL and MAINXTAL. The driver is aware of the three possible parents with the help of the two mux tables provied to the driver during the registration of the clock. Signed-off-by: Sergiu Moga --- v1 -> v4: - No cha

[PATCH v4 01/19] ARM: dts: sam9x60: Add OHCI and EHCI DT nodes

2022-12-19 Thread Sergiu Moga
Add the OHCI and EHCI DT nodes for the sam9x60 boards. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Also add pinctrl nodes to sam9x60 curiosity v3 -> v4: - No change arch/arm/dts/at91-sam9x60_curiosity.dts | 21 + arch/arm/dts/sam

[PATCH v4 00/19] Add USB on SAM9X60, SAMA7G5 and SAMA5D2 boards

2022-12-19 Thread Sergiu Moga
7 usb phy probe method Claudiu Beznea (1): clk: at91: pmc: export clock setup to pmc Cristian Birsan (2): ARM: at91: add sama7 SFR definitions usb: ohci-at91: Add `ohci_t` field in `ohci_at91_priv` Sergiu Moga (16): ARM: dts: sam9x60: Add OHCI and EHCI DT nodes clk: at91: Add support for s

[PATCH v3 19/19] usb: ohci-at91: Add `ohci_t` field in `ohci_at91_priv`

2022-12-12 Thread Sergiu Moga
I functionality and register into DM") Signed-off-by: Cristian Birsan Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -> v3: - No change drivers/usb/host/ohci-at91.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-

[PATCH v3 18/19] configs: at91: sama7: Enable USB and RESET functionality

2022-12-12 Thread Sergiu Moga
Enable USB and RESET functionality. In order for USB to work properly on SAMA7, the driver needs to be able to have access to PHY's, which, in turn, need to have access to the RSTC driver's assert/deassert functionalities. Signed-off-by: Sergiu Moga Tested-by: Mihai Sain --- v1 -

[PATCH v3 16/19] configs: at91: sam9x60ek: Add required configs for the USB command

2022-12-12 Thread Sergiu Moga
Add the configs required to use the USB-related functionalities within the bootloader. Signed-off-by: Sergiu Moga --- v1 -> v2: - No change v2 -> v3: - Also add USB Mass Storage on SAM9X60 Curiosity - Add CONFIG_RESET_AT91 to enable RSTC configs/sam9x60_curiosity_mmc_defconf

[PATCH v3 14/19] ARM: dts: at91: sama5d2_icp: Add pinctrl nodes for USB related DT nodes

2022-12-12 Thread Sergiu Moga
Add the pinctrl subnodes required by the USB related DT nodes. Signed-off-by: Sergiu Moga --- v1 -> v3: - No change arch/arm/dts/at91-sama5d2_icp.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/at91-sama5d2_icp.dts b/arch/arm/dts/a

  1   2   >