* [PATCH v2 00/13] sunxi: A100/A133 second stage support
@ 2024-10-31 7:02 Cody Eksal
2024-10-31 7:02 ` [PATCH v2 03/13] dt-bindings: phy: sun50i-a64: add a100 compatible Cody Eksal
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Cody Eksal @ 2024-10-31 7:02 UTC (permalink / raw)
To: linux-arm-kernel, linux-clk, linux-kernel, linux-phy, linux-pm,
linux-sunxi, linux-usb, devicetree
Cc: Chen-Yu Tsai, Conor Dooley, Greg Kroah-Hartman, Jernej Skrabec,
Kishon Vijay Abraham I, Krzysztof Kozlowski, Maxime Ripard,
Michael Turquette, Nishanth Menon, Rafael J. Wysocki, Rob Herring,
Samuel Holland, Stephen Boyd, Vinod Koul, Viresh Kumar,
Viresh Kumar, Yangtao Li, Parthiban, Andre Przywara
Hello again!
This is V2 of this series [5], with some changes that were requested and
others that were made after testing on more devices. Thank you for all of
your feedback! A changelog is available below.
==================
Back in 2020, two Allwinner employees, Yangtao Li and Shuosheng Huang, each
submitted a patch series for the A100 series of SoCs; [1] intended to add
support for the watchdog, ARM PMU, DMA, USB, and (e)MMC controller, and [2]
implemented DVFS support. Some patches from the first series landed, but
the rest were seemingly abandoned.
Although references to the A100 have been removed by Allwinner, it is
believed that the A133 and A133 Plus, which are still available, are simply
better binned variants of the A100; no other differences have been noted
thus far, and the drivers for the A100 work on the A133 without any
additional modifications. There has been a resurgence of interest in the
A133; patches to allow mainline U-Boot to run on these devices are
currently in progress.
I have rebased the patches that failed to land, applying the feedback
provided by maintainers at the time. Some DT binding patches were added, as
there were a few cases where compatibles were used without being
documented. Minor reworks were necessary to apply certain patches, as the
drivers they modified have matured over time.
Patches 1 and 2 add PMU and watchdog nodes to the device tree. This is
followed by patches 3-7, which implement support for the USB host and OTG
peripherals. Patches 8-10 add MMC nodes, rounding out what originally
made up the first patch series; support for these already exists from
earlier patches, though patch 7 fixes an issue with the clock definitions
preventing the MMC controller from initializing. Patches 11-13 finish the
job of the second original series and this series, implementing OPP and
enabling DVFS on these SoCs.
This series is also available on GitHub [3].
A sincere thanks to Andre for encouraging me to submit these patches,
Parthiban for testing this tree on his board, and to the linux-sunxi
community and its resources for pointing me to these abandoned series in
the first place [4].
[1] https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=380887&archive=both&state=*
[2] https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=396055&archive=both&state=*
[3] https://github.com/BrokenR3C0RD/linux-a100/compare/c2ee9f59..allwinner-a100
[4] https://linux-sunxi.org/Linux_mainlining_effort#Work_In_Progress
[5] https://lore.kernel.org/all/20241024170540.2721307-1-masterr3c0rd@epochal.quest/
Changelog - V2:
- Change name of opp table to match bindings and pass CHECK_DTBS
- Drop "phy: sun4i-usb: add support for A100 USB PHY" in favor of
falling back to "allwinner,sun20i-d1-usb-phy".
- Add "allwinner,sun50i-a100" to the cpufreq-dt-platform blacklist
- Update dt-bindings changes to keep intended ordering of compatibles
- Update regs that were too small in the usbphy bindings
- Add patch to remove CLK_SET_RATE_NO_REPARENT from the MMC drivers.
- Fix error in the description of "arm64: dts: allwinner: a100: add usb
related nodes"
- Add acks and reviews from Andre and Rob
Cody Eksal (5):
dt-bindings: phy: sun50i-a64: add a100 compatible
dt-bindings: usb: Add A100 compatible string
dt-bindings: usb: sunxi-musb: Add A100 compatible string
clk: sunxi-ng: a100: enable MMC clock reparenting
dt-bindings: opp: h6: Add A100 operating points
Shuosheng Huang (2):
cpufreq: sun50i: add a100 cpufreq support
arm64: dts: allwinner: a100: Add CPU Operating Performance Points
table
Yangtao Li (6):
arm64: dts: allwinner: A100: Add PMU mode
arm64: dts: allwinner: a100: add watchdog node
arm64: dts: allwinner: a100: add usb related nodes
arm64: allwinner: A100: enable EHCI, OHCI and USB PHY nodes in Perf1
arm64: allwinner: a100: Add MMC related nodes
arm64: dts: allwinner: a100: perf1: Add eMMC and MMC node
.../allwinner,sun50i-h6-operating-points.yaml | 1 +
.../phy/allwinner,sun50i-a64-usb-phy.yaml | 10 +-
.../usb/allwinner,sun4i-a10-musb.yaml | 1 +
.../devicetree/bindings/usb/generic-ehci.yaml | 1 +
.../devicetree/bindings/usb/generic-ohci.yaml | 1 +
.../allwinner/sun50i-a100-allwinner-perf1.dts | 60 ++++++
.../dts/allwinner/sun50i-a100-cpu-opp.dtsi | 90 ++++++++
.../arm64/boot/dts/allwinner/sun50i-a100.dtsi | 193 +++++++++++++++++-
drivers/clk/sunxi-ng/ccu-sun50i-a100.c | 6 +-
drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
drivers/cpufreq/sun50i-cpufreq-nvmem.c | 28 +++
11 files changed, 383 insertions(+), 9 deletions(-)
create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-a100-cpu-opp.dtsi
base-commit: 0fc810ae3ae110f9e2fcccce80fc8c8d62f97907
--
2.47.0
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 03/13] dt-bindings: phy: sun50i-a64: add a100 compatible
2024-10-31 7:02 [PATCH v2 00/13] sunxi: A100/A133 second stage support Cody Eksal
@ 2024-10-31 7:02 ` Cody Eksal
2024-10-31 11:36 ` Andre Przywara
2024-11-02 11:46 ` (subset) [PATCH v2 00/13] sunxi: A100/A133 second stage support Chen-Yu Tsai
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Cody Eksal @ 2024-10-31 7:02 UTC (permalink / raw)
To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Maxime Ripard
Cc: Greg Kroah-Hartman, Michael Turquette, Nishanth Menon,
Rafael J. Wysocki, Stephen Boyd, Viresh Kumar, Viresh Kumar,
Yangtao Li, Parthiban, Andre Przywara, Cody Eksal, linux-phy,
devicetree, linux-arm-kernel, linux-sunxi, linux-kernel
The USB PHY found in the A100 is similar to that found in the D1. Add a
compatible for the A100.
Signed-off-by: Cody Eksal <masterr3c0rd@epochal.quest>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
---
Changes in V2:
- Update binding to allow using the D1 as a compatible.
.../bindings/phy/allwinner,sun50i-a64-usb-phy.yaml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
index f557feca9763..21209126ed00 100644
--- a/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
@@ -15,9 +15,13 @@ properties:
const: 1
compatible:
- enum:
- - allwinner,sun20i-d1-usb-phy
- - allwinner,sun50i-a64-usb-phy
+ oneOf:
+ - enum:
+ - allwinner,sun20i-d1-usb-phy
+ - allwinner,sun50i-a64-usb-phy
+ - items:
+ - const: allwinner,sun50i-a100-usb-phy
+ - const: allwinner,sun20i-d1-usb-phy
reg:
items:
--
2.47.0
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 03/13] dt-bindings: phy: sun50i-a64: add a100 compatible
2024-10-31 7:02 ` [PATCH v2 03/13] dt-bindings: phy: sun50i-a64: add a100 compatible Cody Eksal
@ 2024-10-31 11:36 ` Andre Przywara
2024-10-31 14:35 ` Cody Eksal
0 siblings, 1 reply; 7+ messages in thread
From: Andre Przywara @ 2024-10-31 11:36 UTC (permalink / raw)
To: Cody Eksal
Cc: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Maxime Ripard, Greg Kroah-Hartman,
Michael Turquette, Nishanth Menon, Rafael J. Wysocki,
Stephen Boyd, Viresh Kumar, Viresh Kumar, Yangtao Li, Parthiban,
linux-phy, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel
On Thu, 31 Oct 2024 04:02:16 -0300
Cody Eksal <masterr3c0rd@epochal.quest> wrote:
> The USB PHY found in the A100 is similar to that found in the D1. Add a
> compatible for the A100.
>
> Signed-off-by: Cody Eksal <masterr3c0rd@epochal.quest>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
> Acked-by: Rob Herring (Arm) <robh@kernel.org>
Careful with that: you made quite some changes compared to v1, which Rob
ACKed, so I wouldn't carry over his tag here.
Cheers,
Andre
> ---
> Changes in V2:
> - Update binding to allow using the D1 as a compatible.
>
> .../bindings/phy/allwinner,sun50i-a64-usb-phy.yaml | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
> index f557feca9763..21209126ed00 100644
> --- a/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
> +++ b/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
> @@ -15,9 +15,13 @@ properties:
> const: 1
>
> compatible:
> - enum:
> - - allwinner,sun20i-d1-usb-phy
> - - allwinner,sun50i-a64-usb-phy
> + oneOf:
> + - enum:
> + - allwinner,sun20i-d1-usb-phy
> + - allwinner,sun50i-a64-usb-phy
> + - items:
> + - const: allwinner,sun50i-a100-usb-phy
> + - const: allwinner,sun20i-d1-usb-phy
>
> reg:
> items:
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 03/13] dt-bindings: phy: sun50i-a64: add a100 compatible
2024-10-31 11:36 ` Andre Przywara
@ 2024-10-31 14:35 ` Cody Eksal
0 siblings, 0 replies; 7+ messages in thread
From: Cody Eksal @ 2024-10-31 14:35 UTC (permalink / raw)
To: Andre Przywara, Rob Herring
Cc: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland, Maxime Ripard, Greg Kroah-Hartman,
Michael Turquette, Nishanth Menon, Rafael J. Wysocki,
Stephen Boyd, Viresh Kumar, Viresh Kumar, Yangtao Li, Parthiban,
linux-phy, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel
On 2024/10/31 8:36 am, Andre Przywara wrote:
> On Thu, 31 Oct 2024 04:02:16 -0300
> Cody Eksal <masterr3c0rd@epochal.quest> wrote:
>
>> The USB PHY found in the A100 is similar to that found in the D1. Add
>> a
>> compatible for the A100.
>>
>> Signed-off-by: Cody Eksal <masterr3c0rd@epochal.quest>
>
> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
>
>> Acked-by: Rob Herring (Arm) <robh@kernel.org>
>
> Careful with that: you made quite some changes compared to v1, which
> Rob
> ACKed, so I wouldn't carry over his tag here.
I had made a note of this a few days ago, but it slipped through my
pre-submission review. I'm terribly sorry; won't make this mistake in
the future.
- Cody
> Cheers,
> Andre
>
>> ---
>> Changes in V2:
>> - Update binding to allow using the D1 as a compatible.
>>
>> .../bindings/phy/allwinner,sun50i-a64-usb-phy.yaml | 10
>> +++++++---
>> 1 file changed, 7 insertions(+), 3 deletions(-)
>>
>> diff --git
>> a/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
>> b/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
>> index f557feca9763..21209126ed00 100644
>> ---
>> a/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
>> +++
>> b/Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml
>> @@ -15,9 +15,13 @@ properties:
>> const: 1
>>
>> compatible:
>> - enum:
>> - - allwinner,sun20i-d1-usb-phy
>> - - allwinner,sun50i-a64-usb-phy
>> + oneOf:
>> + - enum:
>> + - allwinner,sun20i-d1-usb-phy
>> + - allwinner,sun50i-a64-usb-phy
>> + - items:
>> + - const: allwinner,sun50i-a100-usb-phy
>> + - const: allwinner,sun20i-d1-usb-phy
>>
>> reg:
>> items:
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (subset) [PATCH v2 00/13] sunxi: A100/A133 second stage support
2024-10-31 7:02 [PATCH v2 00/13] sunxi: A100/A133 second stage support Cody Eksal
2024-10-31 7:02 ` [PATCH v2 03/13] dt-bindings: phy: sun50i-a64: add a100 compatible Cody Eksal
@ 2024-11-02 11:46 ` Chen-Yu Tsai
2024-11-10 9:25 ` Chen-Yu Tsai
2025-02-22 13:25 ` Chen-Yu Tsai
3 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2024-11-02 11:46 UTC (permalink / raw)
To: linux-arm-kernel, linux-clk, linux-kernel, linux-phy, linux-pm,
linux-sunxi, linux-usb, devicetree, Cody Eksal
Cc: Conor Dooley, Greg Kroah-Hartman, Jernej Skrabec,
Kishon Vijay Abraham I, Krzysztof Kozlowski, Maxime Ripard,
Michael Turquette, Nishanth Menon, Rafael J. Wysocki, Rob Herring,
Samuel Holland, Stephen Boyd, Vinod Koul, Viresh Kumar,
Viresh Kumar, Yangtao Li, Parthiban, Andre Przywara
On Thu, 31 Oct 2024 04:02:13 -0300, Cody Eksal wrote:
> This is V2 of this series [5], with some changes that were requested and
> others that were made after testing on more devices. Thank you for all of
> your feedback! A changelog is available below.
>
> ==================
> Back in 2020, two Allwinner employees, Yangtao Li and Shuosheng Huang, each
> submitted a patch series for the A100 series of SoCs; [1] intended to add
> support for the watchdog, ARM PMU, DMA, USB, and (e)MMC controller, and [2]
> implemented DVFS support. Some patches from the first series landed, but
> the rest were seemingly abandoned.
>
> [...]
Applied to dt-for-6.13 in git@github.com:linux-sunxi/linux-sunxi.git, thanks!
[01/13] arm64: dts: allwinner: A100: Add PMU mode
commit: 248b20ed03545656bd1775ed115369854f58f55c
[02/13] arm64: dts: allwinner: a100: add watchdog node
commit: f84a3aa7782687ca0fa54f768fc6bb825575f91a
[03/13] dt-bindings: phy: sun50i-a64: add a100 compatible
commit: 4402ef303d4b90748646568cf48f52eea035057a
[04/13] dt-bindings: usb: Add A100 compatible string
commit: 1e7d0e2a53e6bf4b43f78858b1fb10aa38259375
[05/13] dt-bindings: usb: sunxi-musb: Add A100 compatible string
commit: e144e89de0e491ea191847b0dc15a5aeb27951eb
[06/13] arm64: dts: allwinner: a100: add usb related nodes
commit: c3cc9b02f7490d93635692cf58b0a4e517a60ab2
[09/13] arm64: allwinner: a100: Add MMC related nodes
commit: fcfbb8d9ec584c256c0a6e1ae3174a21b007f399
Best regards,
--
Chen-Yu Tsai <wens@csie.org>
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (subset) [PATCH v2 00/13] sunxi: A100/A133 second stage support
2024-10-31 7:02 [PATCH v2 00/13] sunxi: A100/A133 second stage support Cody Eksal
2024-10-31 7:02 ` [PATCH v2 03/13] dt-bindings: phy: sun50i-a64: add a100 compatible Cody Eksal
2024-11-02 11:46 ` (subset) [PATCH v2 00/13] sunxi: A100/A133 second stage support Chen-Yu Tsai
@ 2024-11-10 9:25 ` Chen-Yu Tsai
2025-02-22 13:25 ` Chen-Yu Tsai
3 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2024-11-10 9:25 UTC (permalink / raw)
To: linux-arm-kernel, linux-clk, linux-kernel, linux-phy, linux-pm,
linux-sunxi, linux-usb, devicetree, Cody Eksal
Cc: Conor Dooley, Greg Kroah-Hartman, Jernej Skrabec,
Kishon Vijay Abraham I, Krzysztof Kozlowski, Maxime Ripard,
Michael Turquette, Nishanth Menon, Rafael J. Wysocki, Rob Herring,
Samuel Holland, Stephen Boyd, Vinod Koul, Viresh Kumar,
Viresh Kumar, Yangtao Li, Parthiban, Andre Przywara
On Thu, 31 Oct 2024 04:02:13 -0300, Cody Eksal wrote:
> This is V2 of this series [5], with some changes that were requested and
> others that were made after testing on more devices. Thank you for all of
> your feedback! A changelog is available below.
>
> ==================
> Back in 2020, two Allwinner employees, Yangtao Li and Shuosheng Huang, each
> submitted a patch series for the A100 series of SoCs; [1] intended to add
> support for the watchdog, ARM PMU, DMA, USB, and (e)MMC controller, and [2]
> implemented DVFS support. Some patches from the first series landed, but
> the rest were seemingly abandoned.
>
> [...]
Applied to dt-for-6.13 in git@github.com:linux-sunxi/linux-sunxi.git, thanks!
[10/13] arm64: dts: allwinner: a100: perf1: Add eMMC and MMC node
commit: af1ad5675a2b5feebb49df0e0ac7dab1aeabfaa8
Best regards,
--
Chen-Yu Tsai <wens@csie.org>
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: (subset) [PATCH v2 00/13] sunxi: A100/A133 second stage support
2024-10-31 7:02 [PATCH v2 00/13] sunxi: A100/A133 second stage support Cody Eksal
` (2 preceding siblings ...)
2024-11-10 9:25 ` Chen-Yu Tsai
@ 2025-02-22 13:25 ` Chen-Yu Tsai
3 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2025-02-22 13:25 UTC (permalink / raw)
To: linux-arm-kernel, linux-clk, linux-kernel, linux-phy, linux-pm,
linux-sunxi, linux-usb, devicetree, Cody Eksal
Cc: Conor Dooley, Greg Kroah-Hartman, Jernej Skrabec,
Kishon Vijay Abraham I, Krzysztof Kozlowski, Maxime Ripard,
Michael Turquette, Nishanth Menon, Rafael J. Wysocki, Rob Herring,
Samuel Holland, Stephen Boyd, Vinod Koul, Viresh Kumar,
Viresh Kumar, Yangtao Li, Parthiban, Andre Przywara
On Thu, 31 Oct 2024 04:02:13 -0300, Cody Eksal wrote:
> This is V2 of this series [5], with some changes that were requested and
> others that were made after testing on more devices. Thank you for all of
> your feedback! A changelog is available below.
>
> ==================
> Back in 2020, two Allwinner employees, Yangtao Li and Shuosheng Huang, each
> submitted a patch series for the A100 series of SoCs; [1] intended to add
> support for the watchdog, ARM PMU, DMA, USB, and (e)MMC controller, and [2]
> implemented DVFS support. Some patches from the first series landed, but
> the rest were seemingly abandoned.
>
> [...]
Applied to dt-for-6.15 in git@github.com:linux-sunxi/linux-sunxi.git, thanks!
[13/13] arm64: dts: allwinner: a100: Add CPU Operating Performance Points table
commit: a8181e6861fec3068f393d77ff81b2aaf4ea4203
Best regards,
--
Chen-Yu Tsai <wens@csie.org>
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-02-22 13:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 7:02 [PATCH v2 00/13] sunxi: A100/A133 second stage support Cody Eksal
2024-10-31 7:02 ` [PATCH v2 03/13] dt-bindings: phy: sun50i-a64: add a100 compatible Cody Eksal
2024-10-31 11:36 ` Andre Przywara
2024-10-31 14:35 ` Cody Eksal
2024-11-02 11:46 ` (subset) [PATCH v2 00/13] sunxi: A100/A133 second stage support Chen-Yu Tsai
2024-11-10 9:25 ` Chen-Yu Tsai
2025-02-22 13:25 ` Chen-Yu Tsai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox