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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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,
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
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
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
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,
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
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
/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
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
--
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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:
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-
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
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 -
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
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/
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
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
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
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 ++
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
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/
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
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
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:
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
.
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.
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
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
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
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
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-
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 -
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
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
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/
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
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
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
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 ++
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
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
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
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
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:
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
.
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.
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
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
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
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
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-
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 -
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
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 - 100 of 160 matches
Mail list logo