arm64: dts: allwinner: Add basic Allwinner A523 support
Subsystems (6)
v3 cover arm64: dts: allwinner: Add basic Allwinner A523 support
Hi,
this in an update to the series introducing the basic DT support for the Allwinner A523 SoC. It now comes with DTs for three boards, using slightly different packages of that SoC.[1] Functionality-wise it relies on the pinctrl[2] and clock[3] support series, though there are no direct code dependency series between the series. Two binding patches from there are required to pass dtbs_check, git put their patch IDs in the footer below.
Compared to v2 only small fixes in the NMI controller driver: renaming the struct to better reflect its new usage, add adding the DS pin to the eMMC pingroup list. Adding accrued tags on the way, many thanks to the diligent reviewers! More detailed changelog below.
The first patches add DT binding documentation for the most basic peripherals, most of them actually being already supported, courtesy of identical IP being used. This includes MMC and USB 2.0, so with the above mentioned clock and pinctrl support this gives an already somewhat usable mainline support for this new SoC family.
The watchdog is not completely compatible, but is an easy addition, so this bit is included in here as well, the same is true for the NMI controller, required for delivering PMIC interrupts.
The A523 features 8 Arm Cortex-A55 cores, organised in two clusters, clocked separately, with different OPP limits, in some kind of little/LITTLE configuration. The GPU is a Arm Mali G57 MC01, and the chip also features a single PCIe 2.1 lane, sharing a PHY with some USB 3.1 controller - which means only one of the two can be used.
The rest of the SoC is the usual soup of multimedia SoC IP, with eDP support and two Gigabit Ethernet MACs among the highlights.
The main feature is patch 08/15, which adds the SoC .dtsi. This for now is limited to the parts that are supported and could be tested. Compared to v1 we now have some basic TF-A support, so the PSCI nodes are in now.
The final patches add basic support for the Avaota-A1 router board, the X96QPro+ TV box, and the Radxa A5E development board.
The mainline firmware side in general is coming together now: we have basic U-Boot support working (including MMC and USB), most importantly with proper DRAM support, so no more binary blobs, and some basic TF-A support.
Please have a look at those DT bits here, ideally compare them to the available user manual, and test them if you have access to hardware.
Based on v6.14-rc1.
I pushed a branch with all the three series combined here:
https://github.com/apritzel/linux/commits/a523-v3/
Cheers,
Andre
Changelog v2 .. v3:
- split NMI controller register offset into sub-struct
- properly align NMI controller data definition
- adding ACKs from Rob and Jernej (with thanks!)
Changelog v1 .. v2:
- drop USB, I2C, RTC binding patches: already merged
- add tags from reviewers (with thanks!)
- drop unrelated deprecation comment from MMC binding patch
- drop fallback compatible for NMI controller, stands on its own now
- adjust PHY binding to merged A100 binding (dropping tag)
- .dtsi: add secondary cores
- .dtsi: enable PSCI
- .dtsi: move 32K oscillator to board .dts files
- .dtsi: adjust CCU source clocks
- .dtsi: add MMC1 node (typcially for SDIO WiFi)
- .dtsi: add remaining UARTs
- .dtsi: add remaing I2C devices
- add two new board .dts files
- add DT bindings for those two new board names
- avaota.dts: drop reserved memory from (TF-A now in SRAM)
- avaota.dts: drop SD card dummy supply node
- avaota.dts: add eMMC node (shipped on most boards)
- avaota.dts: fix OTG mode, explain situation
- add Chameleon .dts file (depends on YuzukiHD vendor name patch)
[1] https://linux-sunxi.org/A523#Family_of_sun55iw3
[2] https://lore.kernel.org/linux-sunxi/[email protected]/T/#u
[3] https://lore.kernel.org/linux-sunxi/[email protected]/T/#u
Andre Przywara (15):
dt-bindings: mmc: sunxi: Simplify compatible string listing
dt-bindings: mmc: sunxi: add compatible strings for Allwinner A523
dt-bindings: watchdog: sunxi: add Allwinner A523 compatible string
watchdog: sunxi_wdt: Add support for Allwinner A523
dt-bindings: irq: sun7i-nmi: document the Allwinner A523 NMI
controller
irqchip/sunxi-nmi: Support Allwinner A523 NMI controller
dt-bindings: phy: document Allwinner A523 USB-2.0 PHY
arm64: dts: allwinner: Add Allwinner A523 .dtsi file
dt-bindings: vendor-prefixes: Add YuzukiHD name
dt-bindings: arm: sunxi: Add new board names for A523 generation
arm64: dts: allwinner: a523: add Avaota-A1 router support
arm64: dts: allwinner: a523: add X96Q-Pro+ support
arm64: dts: allwinner: a523: add Radxa A5E support
dt-bindings: arm: sunxi: Add YuzukiHD Chameleon board name
arm64: dts: allwinner: h616: add YuzukiHD Chameleon support
.../devicetree/bindings/arm/sunxi.yaml | 20 + .../allwinner,sun7i-a20-sc-nmi.yaml | 1 + .../bindings/mmc/allwinner,sun4i-a10-mmc.yaml | 38 +- .../phy/allwinner,sun50i-a64-usb-phy.yaml | 4 +- .../devicetree/bindings/vendor-prefixes.yaml | 2 + .../watchdog/allwinner,sun4i-a10-wdt.yaml | 2 + arch/arm64/boot/dts/allwinner/Makefile | 4 + .../sun50i-h618-yuzukihd-chameleon.dts | 222 +++++++ .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 598 ++++++++++++++++++ .../dts/allwinner/sun55i-a527-radxa-a5e.dts | 299 +++++++++ .../dts/allwinner/sun55i-h728-x96qpro+.dts | 287 +++++++++ .../dts/allwinner/sun55i-t527-avaota-a1.dts | 308 +++++++++ drivers/irqchip/irq-sunxi-nmi.c | 76 ++- drivers/watchdog/sunxi_wdt.c | 11 + 14 files changed, 1821 insertions(+), 51 deletions(-) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-yuzukihd-chameleon.dts create mode 100644 arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi create mode 100644 arch/arm64/boot/dts/allwinner/sun55i-a527-radxa-a5e.dts create mode 100644 arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts create mode 100644 arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
prerequisite-patch-id: 5b8a883819d2f3dfc975735a855291cb8b02dd39
prerequisite-patch-id: 26d4fd19d9e9cf345261bbad4b8c3697fe773e7c
Signature · 1 line
2.46.3
PATCH v3 1/15 dt-bindings: mmc: sunxi: Simplify compatible string listing
New Allwinner SoCs only occasionally update their MMC IP, leading to many pairs of compatible strings, though there are sometimes a number of them being compatible with one particular SoC.
Collate the compatible string listing in the binding, to group those being compatible together. This makes the list more readable, and allows for easier addition of new SoC's MMC devices.
--- .../bindings/mmc/allwinner,sun4i-a10-mmc.yaml | 36 ++++++++----------- 1 file changed, 14 insertions(+), 22 deletions(-)
Documentation/devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml +14 -22
@@ -30,38 +30,30 @@ properties: - const: allwinner,sun50i-a100-emmc - const: allwinner,sun50i-a100-mmc - items: - - const: allwinner,sun8i-a83t-mmc + - enum: + - allwinner,sun8i-a83t-mmc + - allwinner,suniv-f1c100s-mmc - const: allwinner,sun7i-a20-mmc - items: - - const: allwinner,sun8i-r40-emmc + - enum: + - allwinner,sun8i-r40-emmc + - allwinner,sun50i-h5-emmc + - allwinner,sun50i-h6-emmc - const: allwinner,sun50i-a64-emmc - items: - - const: allwinner,sun8i-r40-mmc + - enum: + - allwinner,sun8i-r40-mmc + - allwinner,sun50i-h5-mmc + - allwinner,sun50i-h6-mmc - const: allwinner,sun50i-a64-mmc - items: - - const: allwinner,sun50i-h5-emmc - - const: allwinner,sun50i-a64-emmc - - items: - - const: allwinner,sun50i-h5-mmc - - const: allwinner,sun50i-a64-mmc - - items: - - const: allwinner,sun50i-h6-emmc - - const: allwinner,sun50i-a64-emmc - - items: - - const: allwinner,sun50i-h6-mmc - - const: allwinner,sun50i-a64-mmc - - items: - - const: allwinner,sun20i-d1-emmc - - const: allwinner,sun50i-a100-emmc - - items: - - const: allwinner,sun50i-h616-emmc + - enum: + - allwinner,sun20i-d1-emmc + - allwinner,sun50i-h616-emmc - const: allwinner,sun50i-a100-emmc - items: - const: allwinner,sun50i-h616-mmc - const: allwinner,sun50i-a100-mmc - - items: - - const: allwinner,suniv-f1c100s-mmc - - const: allwinner,sun7i-a20-mmc reg: maxItems: 1
Signature · 1 line
2.46.3
Re: [PATCH v3 01/15] dt-bindings: mmc: sunxi: Simplify compatible string listing
Quoted 11 lines · Andre Przywara
New Allwinner SoCs only occasionally update their MMC IP, leading to many pairs of compatible strings, though there are sometimes a number of them being compatible with one particular SoC.
Collate the compatible string listing in the binding, to group those being compatible together. This makes the list more readable, and allows for easier addition of new SoC's MMC devices.
Signed-off-by Andre Przywara <[email protected]>Acked-by Conor Dooley <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 64 lines
--- .../bindings/mmc/allwinner,sun4i-a10-mmc.yaml | 36 ++++++++----------- 1 file changed, 14 insertions(+), 22 deletions(-)Documentation/devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml +14
-23@@ -30,38 +30,30 @@ properties: - const: allwinner,sun50i-a100-emmc - const: allwinner,sun50i-a100-mmc - items: - - const: allwinner,sun8i-a83t-mmc + - enum: + - allwinner,sun8i-a83t-mmc + - allwinner,suniv-f1c100s-mmc - const: allwinner,sun7i-a20-mmc - items: - - const: allwinner,sun8i-r40-emmc + - enum: + - allwinner,sun8i-r40-emmc + - allwinner,sun50i-h5-emmc + - allwinner,sun50i-h6-emmc - const: allwinner,sun50i-a64-emmc - items: - - const: allwinner,sun8i-r40-mmc + - enum: + - allwinner,sun8i-r40-mmc + - allwinner,sun50i-h5-mmc + - allwinner,sun50i-h6-mmc - const: allwinner,sun50i-a64-mmc - items: - - const: allwinner,sun50i-h5-emmc - - const: allwinner,sun50i-a64-emmc - - items: - - const: allwinner,sun50i-h5-mmc - - const: allwinner,sun50i-a64-mmc - - items: - - const: allwinner,sun50i-h6-emmc - - const: allwinner,sun50i-a64-emmc - - items: - - const: allwinner,sun50i-h6-mmc - - const: allwinner,sun50i-a64-mmc - - items: - - const: allwinner,sun20i-d1-emmc - - const: allwinner,sun50i-a100-emmc - - items: - - const: allwinner,sun50i-h616-emmc + - enum: + - allwinner,sun20i-d1-emmc + - allwinner,sun50i-h616-emmc - const: allwinner,sun50i-a100-emmc - items: - const: allwinner,sun50i-h616-mmc - const: allwinner,sun50i-a100-mmc - - items: - - const: allwinner,suniv-f1c100s-mmc - - const: allwinner,sun7i-a20-mmc reg: maxItems: 1 --2.46.3
PATCH v3 2/15 dt-bindings: mmc: sunxi: add compatible strings for Allwinner A523
In reply to Andre PrzywaraThe Allwinner A523 uses the same MMC IP as the D1.
Introduce the new specific compatible strings, and use them with fallbacks to the D1 strings.
--- .../devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml +4 -0
@@ -50,10 +50,14 @@ properties: - enum: - allwinner,sun20i-d1-emmc - allwinner,sun50i-h616-emmc + - allwinner,sun55i-a523-emmc - const: allwinner,sun50i-a100-emmc - items: - const: allwinner,sun50i-h616-mmc - const: allwinner,sun50i-a100-mmc + - items: + - const: allwinner,sun55i-a523-mmc + - const: allwinner,sun20i-d1-mmc reg: maxItems: 1
Signature · 1 line
2.46.3
Re: [PATCH v3 02/15] dt-bindings: mmc: sunxi: add compatible strings for Allwinner A523
Quoted 8 lines · Andre Przywara
The Allwinner A523 uses the same MMC IP as the D1.
Introduce the new specific compatible strings, and use them with fallbacks to the D1 strings.
Signed-off-by Andre Przywara <[email protected]>Acked-by Conor Dooley <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 26 lines
--- .../devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml | 4 ++++ 1 file changed, 4 insertions(+)Documentation/devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml +4
-1@@ -50,10 +50,14 @@ properties: - enum: - allwinner,sun20i-d1-emmc - allwinner,sun50i-h616-emmc + - allwinner,sun55i-a523-emmc - const: allwinner,sun50i-a100-emmc - items: - const: allwinner,sun50i-h616-mmc - const: allwinner,sun50i-a100-mmc + - items: + - const: allwinner,sun55i-a523-mmc + - const: allwinner,sun20i-d1-mmc reg: maxItems: 1 --2.46.3
PATCH v3 3/15 dt-bindings: watchdog: sunxi: add Allwinner A523 compatible string
In reply to Andre PrzywaraThe Allwinner A523 SoC features a watchdog similar to the one used in previous SoCs, but moves some registers around (by just one word), making it incompatible to existing IPs.
Add the new name to the list of compatible string, and also to the list of IP requiring two clock inputs.
--- .../devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml +2 -0
@@ -32,6 +32,7 @@ properties: - items: - const: allwinner,sun20i-d1-wdt-reset - const: allwinner,sun20i-d1-wdt + - const: allwinner,sun55i-a523-wdt reg: maxItems: 1
@@ -60,6 +61,7 @@ if: - allwinner,sun20i-d1-wdt-reset - allwinner,sun50i-r329-wdt - allwinner,sun50i-r329-wdt-reset + - allwinner,sun55i-a523-wdt then: properties:
Signature · 1 line
2.46.3
Re: [PATCH v3 03/15] dt-bindings: watchdog: sunxi: add Allwinner A523 compatible string
On Fri, 7 Mar 2025 00:57:00 +0000
Andre Przywara <[email protected]> wrote:
Hi Wim, Guenter,
Quoted 10 lines
The Allwinner A523 SoC features a watchdog similar to the one used in previous SoCs, but moves some registers around (by just one word), making it incompatible to existing IPs.
Add the new name to the list of compatible string, and also to the list of IP requiring two clock inputs.
Signed-off-by Andre Przywara <[email protected]>Acked-by Jernej Skrabec <[email protected]>Acked-by Conor Dooley <[email protected]>
is there any chance that this DT binding patch (and patch 04/15, touching the actual driver) would make it into -next any time soon, and hopefully into v6.15? From what I can see it's the only binding left before the sunxi maintainers can merge the devicetree patches for this new SoC (most others are in, pinctrl and NMI should show up in the next days).
Let me know if I can help with anything or if you need more information!
Thanks,
Andre
Quoted 24 lines
--- .../devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/watchdog/allwinner,sun4i-a10-wdt.yaml +2
-0@@ -32,6 +32,7 @@ properties: - items: - const: allwinner,sun20i-d1-wdt-reset - const: allwinner,sun20i-d1-wdt + - const: allwinner,sun55i-a523-wdt reg: maxItems: 1@@ -60,6 +61,7 @@ if: - allwinner,sun20i-d1-wdt-reset - allwinner,sun50i-r329-wdt - allwinner,sun50i-r329-wdt-reset + - allwinner,sun55i-a523-wdt then: properties:
PATCH v3 4/15 watchdog: sunxi_wdt: Add support for Allwinner A523
In reply to Andre PrzywaraThe Allwinner A523 SoC comes with a watchdog very similar to the ones in the previous Allwinner SoCs, but oddly enough moves the first half of its registers up by one word. Since we have different offsets for these registers across the other SoCs as well, this can simply be modelled by just stating the new offsets in our per-SoC struct.
The rest of the IP is the same as in the D1, although the A523 moves its watchdog to a separate MMIO frame, so it's not embedded in the timer anymore. The driver can be ignorant of this, because the DT will take care of this.
Add a new struct for the A523, specifying the SoC-specific details, and tie the new DT compatible string to it.
--- drivers/watchdog/sunxi_wdt.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/watchdog/sunxi_wdt.c +11 -0
@@ -236,10 +236,21 @@ static const struct sunxi_wdt_reg sun20i_wdt_reg = { .wdt_key_val = 0x16aa0000, }; +static const struct sunxi_wdt_reg sun55i_wdt_reg = { + .wdt_ctrl =0x0c , + .wdt_cfg =0x10 , + .wdt_mode =0x14 , + .wdt_timeout_shift =4 , + .wdt_reset_mask =0x03 , + .wdt_reset_val =0x01 , + .wdt_key_val =0x16aa0000 , +}; +static const struct of_device_id sunxi_wdt_dt_ids[] = { { .compatible ="allwinner,sun4i-a10-wdt" , .data = &sun4i_wdt_reg }, { .compatible ="allwinner,sun6i-a31-wdt" , .data = &sun6i_wdt_reg }, { .compatible ="allwinner,sun20i-d1-wdt" , .data = &sun20i_wdt_reg }, + { .compatible ="allwinner,sun55i-a523-wdt" , .data = &sun55i_wdt_reg }, {/* sentinel */ } };MODULE_DEVICE_TABLE (of, sunxi_wdt_dt_ids);
Signature · 1 line
2.46.3
PATCH v3 5/15 dt-bindings: irq: sun7i-nmi: document the Allwinner A523 NMI controller
In reply to Andre PrzywaraThe Allwinner A523 SoC contains an NMI controller very close to the one used in the recent Allwinner SoCs, but it adds another bit that needs to be toggled to actually deliver the IRQs. Sigh.
Add the A523 specific name to the list of allowed compatible strings.
--- .../interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml +1 -0
@@ -26,6 +26,7 @@ properties: deprecated: true - const: allwinner,sun7i-a20-sc-nmi - const: allwinner,sun9i-a80-nmi + - const: allwinner,sun55i-a523-nmi - items: - enum: - allwinner,sun8i-v3s-nmi
Signature · 1 line
2.46.3
[tip: irq/drivers] dt-bindings: irq: sun7i-nmi: Document the Allwinner A523 NMI controller
The following commit has been merged into the irq/drivers branch of tip:
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: be494a35683e1cbba58395eacb00d4b5cd4e23a3 Gitweb: https://git.kernel.org/tip/be494a35683e1cbba58395eacb00d4b5cd4e23a3 Author: Andre Przywara <[email protected]> AuthorDate: Fri, 07 Mar 2025 00:57:02 Committer: Thomas Gleixner <[email protected]> CommitterDate: Fri, 07 Mar 2025 08:39:02 +01:00
dt-bindings: irq: sun7i-nmi: Document the Allwinner A523 NMI controller
The Allwinner A523 SoC contains an NMI controller very close to the one used in the recent Allwinner SoCs, but it adds another bit that needs to be toggled to actually deliver the IRQs. Sigh.
Add the A523 specific name to the list of allowed compatible strings.
--- Documentation/devicetree/bindings/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/allwinner,sun7i-a20-sc-nmi.yaml +1 -0
@@ -26,6 +26,7 @@ properties: deprecated: true - const: allwinner,sun7i-a20-sc-nmi - const: allwinner,sun9i-a80-nmi + - const: allwinner,sun55i-a523-nmi - items: - enum: - allwinner,sun8i-v3s-nmi
PATCH v3 6/15 irqchip/sunxi-nmi: Support Allwinner A523 NMI controller
In reply to Andre PrzywaraThe NMI controller in the Allwinner A523 is almost compatible to the previous versions of this IP, but requires the extra bit 31 to be set in the enable register to actually report the NMI.
Add a mask to allow such an enable bit to be specified, and add this to the per-SoC data structure. As this struct was just for different register offsets so far, it was consequently named "reg_offs", which is now no longer applicable, so rename this to the more generic "data" on the way, and move the existing offsets into a struct of its own.
Also add the respective Allwinner A523 compatible string, and set bit 31 in its enable mask, to add support for this SoC.
--- drivers/irqchip/irq-sunxi-nmi.c | 76 ++++++++++++++++++++------------- 1 file changed, 47 insertions(+), 29 deletions(-)
drivers/irqchip/irq-sunxi-nmi.c +47 -29
@@ -48,28 +48,38 @@ enum { SUNXI_SRC_TYPE_EDGE_RISING, }; -struct sunxi_sc_nmi_reg_offs { -u32 ctrl; -u32 pend; -u32 enable; +struct sunxi_sc_nmi_data { +struct { +u32 ctrl; +u32 pend; +u32 enable; + } reg_offs; +u32 enable_val; }; -static const struct sunxi_sc_nmi_reg_offs sun6i_reg_offs__initconst = { - .ctrl =SUN6I_NMI_CTRL , - .pend =SUN6I_NMI_PENDING , - .enable =SUN6I_NMI_ENABLE , +static const struct sunxi_sc_nmi_data sun6i_data__initconst = { + .reg_offs.ctrl =SUN6I_NMI_CTRL , + .reg_offs.pend =SUN6I_NMI_PENDING , + .reg_offs.enable =SUN6I_NMI_ENABLE , }; -static const struct sunxi_sc_nmi_reg_offs sun7i_reg_offs__initconst = { - .ctrl =SUN7I_NMI_CTRL , - .pend =SUN7I_NMI_PENDING , - .enable =SUN7I_NMI_ENABLE , +static const struct sunxi_sc_nmi_data sun7i_data__initconst = { + .reg_offs.ctrl =SUN7I_NMI_CTRL , + .reg_offs.pend =SUN7I_NMI_PENDING , + .reg_offs.enable =SUN7I_NMI_ENABLE , }; -static const struct sunxi_sc_nmi_reg_offs sun9i_reg_offs__initconst = { - .ctrl =SUN9I_NMI_CTRL , - .pend =SUN9I_NMI_PENDING , - .enable =SUN9I_NMI_ENABLE , +static const struct sunxi_sc_nmi_data sun9i_data__initconst = { + .reg_offs.ctrl =SUN9I_NMI_CTRL , + .reg_offs.pend =SUN9I_NMI_PENDING , + .reg_offs.enable =SUN9I_NMI_ENABLE , +}; + +static const struct sunxi_sc_nmi_data sun55i_a523_data__initconst = { + .reg_offs.ctrl =SUN9I_NMI_CTRL , + .reg_offs.pend =SUN9I_NMI_PENDING , + .reg_offs.enable =SUN9I_NMI_ENABLE , + .enable_val =BIT (31 ), }; static inline void sunxi_sc_nmi_write(struct irq_chip_generic *gc, u32 off,
@@ -143,7 +153,7 @@ static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) }static int __init sunxi_sc_nmi_irq_init (struct device_node *node, -const struct sunxi_sc_nmi_reg_offs *reg_offs) +const struct sunxi_sc_nmi_data *data) {struct irq_domain *domain;struct irq_chip_generic *gc;
@@ -186,27 +196,28 @@ static int __init sunxi_sc_nmi_irq_init(struct device_node *node, gc->chip_types[0 ].chip.irq_unmask = irq_gc_mask_set_bit; gc->chip_types[0 ].chip.irq_eoi = irq_gc_ack_set_bit; gc->chip_types[0 ].chip.irq_set_type = sunxi_sc_nmi_set_type; - gc->chip_types[0 ].chip.flags =IRQCHIP_EOI_THREADED |IRQCHIP_EOI_IF_HANDLED | + gc->chip_types[0 ].chip.flags =IRQCHIP_EOI_THREADED | +IRQCHIP_EOI_IF_HANDLED |IRQCHIP_SKIP_SET_WAKE ; - gc->chip_types[0 ].regs.ack = reg_offs->pend; - gc->chip_types[0 ].regs.mask = reg_offs->enable; - gc->chip_types[0 ].regs.type = reg_offs->ctrl; + gc->chip_types[0 ].regs.ack = data->reg_offs.pend; + gc->chip_types[0 ].regs.mask = data->reg_offs.enable; + gc->chip_types[0 ].regs.type = data->reg_offs.ctrl; gc->chip_types[1 ].type =IRQ_TYPE_EDGE_BOTH ; gc->chip_types[1 ].chip.irq_ack = irq_gc_ack_set_bit; gc->chip_types[1 ].chip.irq_mask = irq_gc_mask_clr_bit; gc->chip_types[1 ].chip.irq_unmask = irq_gc_mask_set_bit; gc->chip_types[1 ].chip.irq_set_type = sunxi_sc_nmi_set_type; - gc->chip_types[1 ].regs.ack = reg_offs->pend; - gc->chip_types[1 ].regs.mask = reg_offs->enable; - gc->chip_types[1 ].regs.type = reg_offs->ctrl; + gc->chip_types[1 ].regs.ack = data->reg_offs.pend; + gc->chip_types[1 ].regs.mask = data->reg_offs.enable; + gc->chip_types[1 ].regs.type = data->reg_offs.ctrl; gc->chip_types[1 ].handler = handle_edge_irq;/* Disable any active interrupts */ -sunxi_sc_nmi_write (gc, reg_offs->enable,0 ); +sunxi_sc_nmi_write (gc, data->reg_offs.enable, data->enable_val);/* Clear any pending NMI interrupts */ -sunxi_sc_nmi_write (gc, reg_offs->pend,SUNXI_NMI_IRQ_BIT ); +sunxi_sc_nmi_write (gc, data->reg_offs.pend,SUNXI_NMI_IRQ_BIT );irq_set_chained_handler_and_data (irq, sunxi_sc_nmi_handle_irq, domain);
@@ -221,20 +232,27 @@ static int __init sunxi_sc_nmi_irq_init(struct device_node *node,static int __init sun6i_sc_nmi_irq_init (struct device_node *node,struct device_node *parent) { -return sunxi_sc_nmi_irq_init (node, &sun6i_reg_offs); +return sunxi_sc_nmi_irq_init (node, &sun6i_data); }IRQCHIP_DECLARE (sun6i_sc_nmi,"allwinner,sun6i-a31-sc-nmi" , sun6i_sc_nmi_irq_init);static int __init sun7i_sc_nmi_irq_init (struct device_node *node,struct device_node *parent) { -return sunxi_sc_nmi_irq_init (node, &sun7i_reg_offs); +return sunxi_sc_nmi_irq_init (node, &sun7i_data); }IRQCHIP_DECLARE (sun7i_sc_nmi,"allwinner,sun7i-a20-sc-nmi" , sun7i_sc_nmi_irq_init);static int __init sun9i_nmi_irq_init (struct device_node *node,struct device_node *parent) { -return sunxi_sc_nmi_irq_init (node, &sun9i_reg_offs); +return sunxi_sc_nmi_irq_init (node, &sun9i_data); }IRQCHIP_DECLARE (sun9i_nmi,"allwinner,sun9i-a80-nmi" , sun9i_nmi_irq_init); + +static int __init sun55i_nmi_irq_init (struct device_node *node, +struct device_node *parent) +{ +return sunxi_sc_nmi_irq_init (node, &sun55i_a523_data); +} +IRQCHIP_DECLARE (sun55i_nmi,"allwinner,sun55i-a523-nmi" , sun55i_nmi_irq_init);
Signature · 1 line
2.46.3
[tip: irq/drivers] irqchip/sunxi-nmi: Support Allwinner A523 NMI controller
The following commit has been merged into the irq/drivers branch of tip:
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: 922ac17c7b47fd0345690046a396f7e324dc733e Gitweb: https://git.kernel.org/tip/922ac17c7b47fd0345690046a396f7e324dc733e Author: Andre Przywara <[email protected]> AuthorDate: Fri, 07 Mar 2025 00:57:03 Committer: Thomas Gleixner <[email protected]> CommitterDate: Fri, 07 Mar 2025 08:39:03 +01:00
irqchip/sunxi-nmi: Support Allwinner A523 NMI controller
The NMI controller in the Allwinner A523 is almost compatible to the previous versions of this IP, but requires the extra bit 31 to be set in the enable register to actually report the NMI.
Add a mask to allow such an enable bit to be specified, and add this to the per-SoC data structure. As this struct was just for different register offsets so far, it was consequently named "reg_offs", which is now no longer applicable, so rename this to the more generic "data" on the way, and move the existing offsets into a struct of its own.
Also add the respective Allwinner A523 compatible string, and set bit 31 in its enable mask, to add support for this SoC.
[ tglx: Mop up some coding style along with it ]
--- drivers/irqchip/irq-sunxi-nmi.c | 85 ++++++++++++++++++-------------- 1 file changed, 50 insertions(+), 35 deletions(-)
drivers/irqchip/irq-sunxi-nmi.c +50 -35
@@ -48,32 +48,41 @@ enum { SUNXI_SRC_TYPE_EDGE_RISING, }; -struct sunxi_sc_nmi_reg_offs { -u32 ctrl; -u32 pend; -u32 enable; +struct sunxi_sc_nmi_data { +struct { +u32 ctrl; +u32 pend; +u32 enable; + } reg_offs; +u32 enable_val; }; -static const struct sunxi_sc_nmi_reg_offs sun6i_reg_offs__initconst = { - .ctrl =SUN6I_NMI_CTRL , - .pend =SUN6I_NMI_PENDING , - .enable =SUN6I_NMI_ENABLE , +static const struct sunxi_sc_nmi_data sun6i_data__initconst = { + .reg_offs.ctrl =SUN6I_NMI_CTRL , + .reg_offs.pend =SUN6I_NMI_PENDING , + .reg_offs.enable =SUN6I_NMI_ENABLE , }; -static const struct sunxi_sc_nmi_reg_offs sun7i_reg_offs__initconst = { - .ctrl =SUN7I_NMI_CTRL , - .pend =SUN7I_NMI_PENDING , - .enable =SUN7I_NMI_ENABLE , +static const struct sunxi_sc_nmi_data sun7i_data__initconst = { + .reg_offs.ctrl =SUN7I_NMI_CTRL , + .reg_offs.pend =SUN7I_NMI_PENDING , + .reg_offs.enable =SUN7I_NMI_ENABLE , }; -static const struct sunxi_sc_nmi_reg_offs sun9i_reg_offs__initconst = { - .ctrl =SUN9I_NMI_CTRL , - .pend =SUN9I_NMI_PENDING , - .enable =SUN9I_NMI_ENABLE , +static const struct sunxi_sc_nmi_data sun9i_data__initconst = { + .reg_offs.ctrl =SUN9I_NMI_CTRL , + .reg_offs.pend =SUN9I_NMI_PENDING , + .reg_offs.enable =SUN9I_NMI_ENABLE , }; -static inline void sunxi_sc_nmi_write (struct irq_chip_generic *gc,u32 off, -u32 val) +static const struct sunxi_sc_nmi_data sun55i_a523_data__initconst = { + .reg_offs.ctrl =SUN9I_NMI_CTRL , + .reg_offs.pend =SUN9I_NMI_PENDING , + .reg_offs.enable =SUN9I_NMI_ENABLE , + .enable_val =BIT (31 ), +}; + +static inline void sunxi_sc_nmi_write (struct irq_chip_generic *gc,u32 off,u32 val) {irq_reg_writel (gc, val, off); }
@@ -143,15 +152,13 @@ static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) }static int __init sunxi_sc_nmi_irq_init (struct device_node *node, -const struct sunxi_sc_nmi_reg_offs *reg_offs) +const struct sunxi_sc_nmi_data *data) { -struct irq_domain *domain; +unsigned int irq, clr =IRQ_NOREQUEST |IRQ_NOPROBE |IRQ_NOAUTOEN ;struct irq_chip_generic *gc; -unsigned int irq; -unsigned int clr =IRQ_NOREQUEST |IRQ_NOPROBE |IRQ_NOAUTOEN ; +struct irq_domain *domain;int ret; - domain =irq_domain_add_linear (node,1 , &irq_generic_chip_ops,NULL );if (!domain) {pr_err ("Could not register interrupt domain.\n" );
@@ -186,27 +193,28 @@ static int __init sunxi_sc_nmi_irq_init(struct device_node *node, gc->chip_types[0 ].chip.irq_unmask = irq_gc_mask_set_bit; gc->chip_types[0 ].chip.irq_eoi = irq_gc_ack_set_bit; gc->chip_types[0 ].chip.irq_set_type = sunxi_sc_nmi_set_type; - gc->chip_types[0 ].chip.flags =IRQCHIP_EOI_THREADED |IRQCHIP_EOI_IF_HANDLED | + gc->chip_types[0 ].chip.flags =IRQCHIP_EOI_THREADED | +IRQCHIP_EOI_IF_HANDLED |IRQCHIP_SKIP_SET_WAKE ; - gc->chip_types[0 ].regs.ack = reg_offs->pend; - gc->chip_types[0 ].regs.mask = reg_offs->enable; - gc->chip_types[0 ].regs.type = reg_offs->ctrl; + gc->chip_types[0 ].regs.ack = data->reg_offs.pend; + gc->chip_types[0 ].regs.mask = data->reg_offs.enable; + gc->chip_types[0 ].regs.type = data->reg_offs.ctrl; gc->chip_types[1 ].type =IRQ_TYPE_EDGE_BOTH ; gc->chip_types[1 ].chip.irq_ack = irq_gc_ack_set_bit; gc->chip_types[1 ].chip.irq_mask = irq_gc_mask_clr_bit; gc->chip_types[1 ].chip.irq_unmask = irq_gc_mask_set_bit; gc->chip_types[1 ].chip.irq_set_type = sunxi_sc_nmi_set_type; - gc->chip_types[1 ].regs.ack = reg_offs->pend; - gc->chip_types[1 ].regs.mask = reg_offs->enable; - gc->chip_types[1 ].regs.type = reg_offs->ctrl; + gc->chip_types[1 ].regs.ack = data->reg_offs.pend; + gc->chip_types[1 ].regs.mask = data->reg_offs.enable; + gc->chip_types[1 ].regs.type = data->reg_offs.ctrl; gc->chip_types[1 ].handler = handle_edge_irq;/* Disable any active interrupts */ -sunxi_sc_nmi_write (gc, reg_offs->enable,0 ); +sunxi_sc_nmi_write (gc, data->reg_offs.enable, data->enable_val);/* Clear any pending NMI interrupts */ -sunxi_sc_nmi_write (gc, reg_offs->pend,SUNXI_NMI_IRQ_BIT ); +sunxi_sc_nmi_write (gc, data->reg_offs.pend,SUNXI_NMI_IRQ_BIT );irq_set_chained_handler_and_data (irq, sunxi_sc_nmi_handle_irq, domain);
@@ -221,20 +229,27 @@ fail_irqd_remove:static int __init sun6i_sc_nmi_irq_init (struct device_node *node,struct device_node *parent) { -return sunxi_sc_nmi_irq_init (node, &sun6i_reg_offs); +return sunxi_sc_nmi_irq_init (node, &sun6i_data); }IRQCHIP_DECLARE (sun6i_sc_nmi,"allwinner,sun6i-a31-sc-nmi" , sun6i_sc_nmi_irq_init);static int __init sun7i_sc_nmi_irq_init (struct device_node *node,struct device_node *parent) { -return sunxi_sc_nmi_irq_init (node, &sun7i_reg_offs); +return sunxi_sc_nmi_irq_init (node, &sun7i_data); }IRQCHIP_DECLARE (sun7i_sc_nmi,"allwinner,sun7i-a20-sc-nmi" , sun7i_sc_nmi_irq_init);static int __init sun9i_nmi_irq_init (struct device_node *node,struct device_node *parent) { -return sunxi_sc_nmi_irq_init (node, &sun9i_reg_offs); +return sunxi_sc_nmi_irq_init (node, &sun9i_data); }IRQCHIP_DECLARE (sun9i_nmi,"allwinner,sun9i-a80-nmi" , sun9i_nmi_irq_init); + +static int __init sun55i_nmi_irq_init (struct device_node *node, +struct device_node *parent) +{ +return sunxi_sc_nmi_irq_init (node, &sun55i_a523_data); +} +IRQCHIP_DECLARE (sun55i_nmi,"allwinner,sun55i-a523-nmi" , sun55i_nmi_irq_init);
PATCH v3 7/15 dt-bindings: phy: document Allwinner A523 USB-2.0 PHY
In reply to Andre PrzywaraThe Allwinner A523 SoC contains a USB-2.0 PHY fully compatible to the one used in the D1/T113s SoCs. This PHY controls the two USB-2.0 ports, there is a separate and quite different PHY for the USB-3.0 port.
Add the new compatible string, with a fallback to the D1 version.
--- .../devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/phy/allwinner,sun50i-a64-usb-phy.yaml +3 -1
@@ -20,7 +20,9 @@ properties: - allwinner,sun20i-d1-usb-phy - allwinner,sun50i-a64-usb-phy - items: - - const: allwinner,sun50i-a100-usb-phy + - enum: + - allwinner,sun50i-a100-usb-phy + - allwinner,sun55i-a523-usb-phy - const: allwinner,sun20i-d1-usb-phy reg:
Signature · 1 line
2.46.3
PATCH v3 8/15 arm64: dts: allwinner: Add Allwinner A523 .dtsi file
In reply to Andre PrzywaraThe Allwinner A523, and its siblings A527 and T527, which share the same die, are a new family of SoCs introduced in 2023. They features eight Arm Cortex-A55 cores, and, among the other usual peripherals, a PCIe and USB 3.0 controller.
Add the basic SoC devicetree .dtsi for the chip, describing the fundamental peripherals: the cores, GIC, timer, RTC, CCU and pinctrl. Also some other peripherals are fully compatible with previous IP, so add the USB and MMC nodes as well.
The other peripherals will be added in the future, once we understand their compatibility and DT requirements.
--- .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 598 ++++++++++++++++++ 1 file changed, 598 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi new file +598 -0
@@ -0,0 +1,598 @@ +// SPDX-License-Identifier: (GPL-2.0-only OR MIT) +// Copyright (C) 2023-2024 Arm Ltd. + +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/sun6i-rtc.h> +#include <dt-bindings/clock/sun55i-a523-ccu.h> +#include <dt-bindings/clock/sun55i-a523-r-ccu.h> +#include <dt-bindings/reset/sun55i-a523-ccu.h> +#include <dt-bindings/reset/sun55i-a523-r-ccu.h> + +/ { + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "arm,cortex-a55"; + device_type = "cpu"; + reg = <0x000>; + enable-method = "psci"; + }; + + cpu1: cpu@100 { + compatible = "arm,cortex-a55"; + device_type = "cpu"; + reg = <0x100>; + enable-method = "psci"; + }; + + cpu2: cpu@200 { + compatible = "arm,cortex-a55"; + device_type = "cpu"; + reg = <0x200>; + enable-method = "psci"; + }; + + cpu3: cpu@300 { + compatible = "arm,cortex-a55"; + device_type = "cpu"; + reg = <0x300>; + enable-method = "psci"; + }; + + cpu4: cpu@400 { + compatible = "arm,cortex-a55"; + device_type = "cpu"; + reg = <0x400>; + enable-method = "psci"; + }; + + cpu5: cpu@500 { + compatible = "arm,cortex-a55"; + device_type = "cpu"; + reg = <0x500>; + enable-method = "psci"; + }; + + cpu6: cpu@600 { + compatible = "arm,cortex-a55"; + device_type = "cpu"; + reg = <0x600>; + enable-method = "psci"; + }; + + cpu7: cpu@700 { + compatible = "arm,cortex-a55"; + device_type = "cpu"; + reg = <0x700>; + enable-method = "psci"; + }; + }; + + osc24M: osc24M-clk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <24000000>; + clock-output-names = "osc24M"; + }; + + pmu { + compatible = "arm,cortex-a55-pmu"; + interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; + }; + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; + + timer { + compatible = "arm,armv8-timer"; + arm,no-tick-in-suspend; + interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, + <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, + <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, + <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x0 0x40000000>; + + pio: pinctrl@2000000 { + compatible = "allwinner,sun55i-a523-pinctrl"; + reg = <0x2000000 0x800>; + interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_APB1>, <&osc24M>, <&rtc CLK_OSC32K>; + clock-names = "apb", "hosc", "losc"; + gpio-controller; + #gpio-cells = <3>; + interrupt-controller; + #interrupt-cells = <3>; + + mmc0_pins: mmc0-pins { + pins = "PF0" ,"PF1", "PF2", "PF3", "PF4", "PF5"; + allwinner,pinmux = <2>; + function = "mmc0"; + drive-strength = <30>; + bias-pull-up; + }; + + /omit-if-no-ref/ + mmc1_pins: mmc1-pins { + pins = "PG0" ,"PG1", "PG2", "PG3", "PG4", "PG5"; + allwinner,pinmux = <2>; + function = "mmc1"; + drive-strength = <30>; + bias-pull-up; + }; + + mmc2_pins: mmc2-pins { + pins = "PC0", "PC1" ,"PC5", "PC6", "PC8", + "PC9", "PC10", "PC11", "PC13", "PC14", + "PC15", "PC16"; + allwinner,pinmux = <3>; + function = "mmc2"; + drive-strength = <30>; + bias-pull-up; + }; + + uart0_pb_pins: uart0-pb-pins { + pins = "PB9", "PB10"; + allwinner,pinmux = <2>; + function = "uart0"; + }; + }; + + ccu: clock-controller@2001000 { + compatible = "allwinner,sun55i-a523-ccu"; + reg = <0x02001000 0x1000>; + clocks = <&osc24M>, <&rtc CLK_OSC32K>, + <&rtc CLK_IOSC>, <&rtc CLK_OSC32K_FANOUT>; + clock-names = "hosc", "losc", + "iosc", "losc-fanout"; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + mmc0: mmc@4020000 { + compatible = "allwinner,sun55i-a523-mmc", + "allwinner,sun20i-d1-mmc"; + reg = <0x04020000 0x1000>; + clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>; + clock-names = "ahb", "mmc"; + resets = <&ccu RST_BUS_MMC0>; + reset-names = "ahb"; + interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + status = "disabled"; + + max-frequency = <150000000>; + cap-sd-highspeed; + cap-mmc-highspeed; + cap-sdio-irq; + #address-cells = <1>; + #size-cells = <0>; + }; + + mmc1: mmc@4021000 { + compatible = "allwinner,sun55i-a523-mmc", + "allwinner,sun20i-d1-mmc"; + reg = <0x04021000 0x1000>; + clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>; + clock-names = "ahb", "mmc"; + resets = <&ccu RST_BUS_MMC1>; + reset-names = "ahb"; + interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + status = "disabled"; + + max-frequency = <150000000>; + cap-sd-highspeed; + cap-mmc-highspeed; + cap-sdio-irq; + #address-cells = <1>; + #size-cells = <0>; + }; + + mmc2: mmc@4022000 { + compatible = "allwinner,sun55i-a523-mmc", + "allwinner,sun20i-d1-mmc"; + reg = <0x04022000 0x1000>; + clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>; + clock-names = "ahb", "mmc"; + resets = <&ccu RST_BUS_MMC2>; + reset-names = "ahb"; + interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_pins>; + status = "disabled"; + + max-frequency = <150000000>; + cap-sd-highspeed; + cap-mmc-highspeed; + cap-sdio-irq; + #address-cells = <1>; + #size-cells = <0>; + }; + + wdt: watchdog@2050000 { + compatible = "allwinner,sun55i-a523-wdt"; + reg = <0x2050000 0x20>; + interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&osc24M>, <&rtc CLK_OSC32K>; + clock-names = "hosc", "losc"; + status = "okay"; + }; + + uart0: serial@2500000 { + compatible = "snps,dw-apb-uart"; + reg = <0x02500000 0x400>; + interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART0>; + resets = <&ccu RST_BUS_UART0>; + status = "disabled"; + }; + + uart1: serial@2500400 { + compatible = "snps,dw-apb-uart"; + reg = <0x02500400 0x400>; + interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART1>; + resets = <&ccu RST_BUS_UART1>; + status = "disabled"; + }; + + uart2: serial@2500800 { + compatible = "snps,dw-apb-uart"; + reg = <0x02500800 0x400>; + interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART2>; + resets = <&ccu RST_BUS_UART2>; + status = "disabled"; + }; + + uart3: serial@2500c00 { + compatible = "snps,dw-apb-uart"; + reg = <0x02500c00 0x400>; + interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART3>; + resets = <&ccu RST_BUS_UART3>; + status = "disabled"; + }; + + uart4: serial@2501000 { + compatible = "snps,dw-apb-uart"; + reg = <0x02501000 0x400>; + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART4>; + resets = <&ccu RST_BUS_UART4>; + status = "disabled"; + }; + + uart5: serial@2501400 { + compatible = "snps,dw-apb-uart"; + reg = <0x02501400 0x400>; + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART5>; + resets = <&ccu RST_BUS_UART5>; + status = "disabled"; + }; + + uart6: serial@2501800 { + compatible = "snps,dw-apb-uart"; + reg = <0x02501800 0x400>; + interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART6>; + resets = <&ccu RST_BUS_UART6>; + status = "disabled"; + }; + + uart7: serial@2501c00 { + compatible = "snps,dw-apb-uart"; + reg = <0x02501c00 0x400>; + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; + reg-shift = <2>; + reg-io-width = <4>; + clocks = <&ccu CLK_BUS_UART7>; + resets = <&ccu RST_BUS_UART7>; + status = "disabled"; + }; + + i2c0: i2c@2502000 { + compatible = "allwinner,sun55i-a523-i2c", + "allwinner,sun8i-v536-i2c", + "allwinner,sun6i-a31-i2c"; + reg = <0x2502000 0x400>; + interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_I2C0>; + resets = <&ccu RST_BUS_I2C0>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c1: i2c@2502400 { + compatible = "allwinner,sun55i-a523-i2c", + "allwinner,sun8i-v536-i2c", + "allwinner,sun6i-a31-i2c"; + reg = <0x2502400 0x400>; + interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_I2C1>; + resets = <&ccu RST_BUS_I2C1>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c2: i2c@2502800 { + compatible = "allwinner,sun55i-a523-i2c", + "allwinner,sun8i-v536-i2c", + "allwinner,sun6i-a31-i2c"; + reg = <0x2502800 0x400>; + interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_I2C2>; + resets = <&ccu RST_BUS_I2C2>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c3: i2c@2502c00 { + compatible = "allwinner,sun55i-a523-i2c", + "allwinner,sun8i-v536-i2c", + "allwinner,sun6i-a31-i2c"; + reg = <0x2502c00 0x400>; + interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_I2C3>; + resets = <&ccu RST_BUS_I2C3>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c4: i2c@2503000 { + compatible = "allwinner,sun55i-a523-i2c", + "allwinner,sun8i-v536-i2c", + "allwinner,sun6i-a31-i2c"; + reg = <0x2503000 0x400>; + interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_I2C4>; + resets = <&ccu RST_BUS_I2C4>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c5: i2c@2503400 { + compatible = "allwinner,sun55i-a523-i2c", + "allwinner,sun8i-v536-i2c", + "allwinner,sun6i-a31-i2c"; + reg = <0x2503400 0x400>; + interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_I2C5>; + resets = <&ccu RST_BUS_I2C5>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + gic: interrupt-controller@3400000 { + compatible = "arm,gic-v3"; + #address-cells = <1>; + #interrupt-cells = <3>; + #size-cells = <1>; + ranges; + interrupt-controller; + reg = <0x3400000 0x10000>, + <0x3460000 0x100000>; + interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; + dma-noncoherent; + + its: msi-controller@3440000 { + compatible = "arm,gic-v3-its"; + reg = <0x3440000 0x20000>; + msi-controller; + #msi-cells = <1>; + dma-noncoherent; + }; + }; + + usb_otg: usb@4100000 { + compatible = "allwinner,sun55i-a523-musb", + "allwinner,sun8i-a33-musb"; + reg = <0x4100000 0x400>; + interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "mc"; + clocks = <&ccu CLK_BUS_OTG>; + resets = <&ccu RST_BUS_OTG>; + extcon = <&usbphy 0>; + phys = <&usbphy 0>; + phy-names = "usb"; + status = "disabled"; + }; + + usbphy: phy@4100400 { + compatible = "allwinner,sun55i-a523-usb-phy", + "allwinner,sun20i-d1-usb-phy"; + reg = <0x4100400 0x100>, + <0x4101800 0x100>, + <0x4200800 0x100>; + reg-names = "phy_ctrl", + "pmu0", + "pmu1"; + clocks = <&osc24M>, + <&osc24M>; + clock-names = "usb0_phy", + "usb1_phy"; + resets = <&ccu RST_USB_PHY0>, + <&ccu RST_USB_PHY1>; + reset-names = "usb0_reset", + "usb1_reset"; + status = "disabled"; + #phy-cells = <1>; + }; + + ehci0: usb@4101000 { + compatible = "allwinner,sun55i-a523-ehci", + "generic-ehci"; + reg = <0x4101000 0x100>; + interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_OHCI0>, + <&ccu CLK_BUS_EHCI0>, + <&ccu CLK_USB_OHCI0>; + resets = <&ccu RST_BUS_OHCI0>, + <&ccu RST_BUS_EHCI0>; + phys = <&usbphy 0>; + phy-names = "usb"; + status = "disabled"; + }; + + ohci0: usb@4101400 { + compatible = "allwinner,sun55i-a523-ohci", + "generic-ohci"; + reg = <0x4101400 0x100>; + interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_OHCI0>, + <&ccu CLK_USB_OHCI0>; + resets = <&ccu RST_BUS_OHCI0>; + phys = <&usbphy 0>; + phy-names = "usb"; + status = "disabled"; + }; + + ehci1: usb@4200000 { + compatible = "allwinner,sun55i-a523-ehci", + "generic-ehci"; + reg = <0x4200000 0x100>; + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_OHCI1>, + <&ccu CLK_BUS_EHCI1>, + <&ccu CLK_USB_OHCI1>; + resets = <&ccu RST_BUS_OHCI1>, + <&ccu RST_BUS_EHCI1>; + phys = <&usbphy 1>; + phy-names = "usb"; + status = "disabled"; + }; + + ohci1: usb@4200400 { + compatible = "allwinner,sun55i-a523-ohci", + "generic-ohci"; + reg = <0x4200400 0x100>; + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_OHCI1>, + <&ccu CLK_USB_OHCI1>; + resets = <&ccu RST_BUS_OHCI1>; + phys = <&usbphy 1>; + phy-names = "usb"; + status = "disabled"; + }; + + r_ccu: clock-controller@7010000 { + compatible = "allwinner,sun55i-a523-r-ccu"; + reg = <0x7010000 0x250>; + clocks = <&osc24M>, + <&rtc CLK_OSC32K>, + <&rtc CLK_IOSC>, + <&ccu CLK_PLL_PERIPH0_200M>, + <&ccu CLK_PLL_AUDIO0_4X>; + clock-names = "hosc", + "losc", + "iosc", + "pll-periph", + "pll-audio"; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + nmi_intc: interrupt-controller@7010320 { + compatible = "allwinner,sun55i-a523-nmi"; + reg = <0x07010320 0xc>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; + }; + + r_pio: pinctrl@7022000 { + compatible = "allwinner,sun55i-a523-r-pinctrl"; + reg = <0x7022000 0x800>; + interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&r_ccu CLK_R_APB0>, + <&osc24M>, + <&rtc CLK_OSC32K>; + clock-names = "apb", "hosc", "losc"; + gpio-controller; + #gpio-cells = <3>; + interrupt-controller; + #interrupt-cells = <3>; + + r_i2c_pins: r-i2c-pins { + pins = "PL0" ,"PL1"; + allwinner,pinmux = <2>; + function = "r_i2c0"; + }; + }; + + r_i2c0: i2c@7081400 { + compatible = "allwinner,sun55i-a523-i2c", + "allwinner,sun8i-v536-i2c", + "allwinner,sun6i-a31-i2c"; + reg = <0x07081400 0x400>; + interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&r_ccu CLK_BUS_R_I2C0>; + resets = <&r_ccu RST_BUS_R_I2C0>; + pinctrl-names = "default"; + pinctrl-0 = <&r_i2c_pins>; + status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + }; + + rtc: rtc@7090000 { + compatible = "allwinner,sun55i-a523-rtc", + "allwinner,sun50i-r329-rtc"; + reg = <0x7090000 0x400>; + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&r_ccu CLK_BUS_R_RTC>, + <&osc24M>, + <&r_ccu CLK_R_AHB>; + clock-names = "bus", "hosc", "ahb"; + #clock-cells = <1>; + }; + }; +};
Signature · 1 line
2.46.3
PATCH v3 9/15 dt-bindings: vendor-prefixes: Add YuzukiHD name
In reply to Andre PrzywaraYuzukiHD provides Open Source Hardware designs, and also offers ready-made builds of them: https://github.com/YuzukiHD
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -1737,6 +1737,8 @@ patternProperties: description: Shenzhen Yashi Changhua Intelligent Technology Co., Ltd. "^ysoft,.*": description: Y Soft Corporation a.s. + "^yuzukihd,.*": + description: YuzukiHD Open Source Hardware "^zarlink,.*": description: Zarlink Semiconductor "^zealz,.*":
Signature · 1 line
2.46.3
PATCH v3 10/15 dt-bindings: arm: sunxi: Add new board names for A523 generation
In reply to Andre PrzywaraThe new Allwinner A523 SoC family comes in different packages, though they all share the same die, and so the devicetree bindings.
Add three board names that use a version from this SoC family:
- The Avaota A1: an Open Source hardware router board.
- The Radxa Cubie A5E: a typical development board
- The X96QPro+: a TV box
Add their compatible name to the list.
--- Documentation/devicetree/bindings/arm/sunxi.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
Documentation/devicetree/bindings/arm/sunxi.yaml +15 -0
@@ -840,6 +840,11 @@ properties: - const: allwinner,r7-tv-dongle - const: allwinner,sun5i-a10s + - description: Radxa Cubie A5E + items: + - const: radxa,cubie-a5e + - const: allwinner,sun55i-a527 + - description: Remix Mini PC items: - const: jide,remix-mini-pc
@@ -961,6 +966,11 @@ properties: - const: hechuang,x96-mate - const: allwinner,sun50i-h616 + - description: X96Q Pro+ + items: + - const: amediatech,x96q-pro-plus + - const: allwinner,sun55i-h728 + - description: Xunlong OrangePi items: - const: xunlong,orangepi
@@ -1076,4 +1086,9 @@ properties: - const: xunlong,orangepi-zero3 - const: allwinner,sun50i-h618 + - description: YuzukiHD Avaota A1 + items: + - const: yuzukihd,avaota-a1 + - const: allwinner,sun55i-t527 + additionalProperties: true
Signature · 1 line
2.46.3
PATCH v3 11/15 arm64: dts: allwinner: a523: add Avaota-A1 router support
In reply to Andre PrzywaraThe Avaota A1 router board is an Open Source hardware board, designed by YuzukiHD. Pine64 produces some boards and sells them. It uses the Allwinner A527 or T527 SoC, and comes with the following features:
- Eight ARM Cortex-A55 cores, Mali-G57 MC1 GPU
- 1GiB/2GiB/4GiB LPDDR4 DRAM
- AXP717 + AXP323 PMIC
- Raspberry-Pi-2 compatible GPIO header
- 1 USB 2.0 type A host port, 1 USB 3.0 type A host post
- 1 USB 2.0 type C port (OTG + serial debug)
- MicroSD slot
- eMMC between 16 and 128 GiB
- on-board 16MiB bootable SPI NOR flash
- two 1Gbps Ethernet ports (via RTL8211F PHYs)
- HDMI port
- DP port
- camera and LCD connectors
- 3.5mm headphone jack
- (yet) unsupported WiFi/BT chip
- 1.3" LC display, connected via SPI
- 12 V barrel plug for power supply
Add the devicetree file describing the currently supported features.
--- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun55i-t527-avaota-a1.dts | 308 ++++++++++++++++++ 2 files changed, 309 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts
arch/arm64/boot/dts/allwinner/Makefile +1 -0
@@ -52,3 +52,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-2024.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-h.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-plus.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-sp.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-avaota-a1.dtb
arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts new file +308 -0
308 lines not on this page · raw message
Signature · 1 line
2.46.3
PATCH v3 12/15 arm64: dts: allwinner: a523: add X96Q-Pro+ support
In reply to Andre PrzywaraThe X96QPro+ is a TV box using the Allwinner H728 SoC. That SoC seems to be a package variant of the A523 family, at least it uses the same SoC ID and is compatible as far as we can assess.
It comes with the following specs:
- Allwinner H728 SoC: 8 Arm Cortex-A55 cores, Mali-G57 MC1 GPU
- 2 or 4GiB DDR3L DRAM
- 32, 64, or 128 GiB eMMC flash
- AXP717 + AXP323 PMICs
- Gigabit Ethernet (using MAXIO PHY)
- HDMI port
- 2 * USB 2.0 ports
- 1 * USB 3.0 port
- microSD card slot
- TOSLINK digital audio output
- 3.5mm A/V port
- infrared sensor
- 7-segment display
- 5V barrel plug power supply
- power button
The PCB provides holes for soldering a UART header or cable, this is connected to the debug UART0. There is another set of UART pins available. The board also features a FEL button (accessible through the 3.5mm socket) and a reset button (only accessible when case is open).
This .dts just describes the basic peripherals as far as we support them at the moment. The PMIC rail assignments are reverse engineered as far as possible, by dumping them from a running Android system, and correlating them to other boards using the same SoC.
--- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun55i-h728-x96qpro+.dts | 287 ++++++++++++++++++ 2 files changed, 288 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts
arch/arm64/boot/dts/allwinner/Makefile +1 -0
@@ -52,4 +52,5 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-2024.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-h.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-plus.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-sp.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun55i-h728-x96qpro+.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-avaota-a1.dtb
arch/arm64/boot/dts/allwinner/sun55i-h728-x96qpro+.dts new file +287 -0
287 lines not on this page · raw message
Signature · 1 line
2.46.3
PATCH v3 13/15 arm64: dts: allwinner: a523: add Radxa A5E support
In reply to Andre PrzywaraThe Radxa A5E is a development board using the Allwinner A527 SoC, which is using the same die as the A523 SoC, just exposing the pins of more peripherals (like HDMI or the 2nd MAC). The board features:
- Allwinner A527/T527 SoC: 8 ARM Cortex-A55 cores, Mali-G57 MC1 GPU
- 1GiB/2GiB/4GiB LPDDR4 DRAM
- AXP717 + AXP323 PMICs
- Raspberry-Pi-2 compatible 40pin GPIO header
- 1 USB 2.0 type C port (OTG), also power supply
- 1 USB 3.0 type A host port (multiplexed with M.2 slot)
- 1 M.2 M-key 2230 slot, with 1 PCIe2.1 lane connected (multiplexed with USB 3.0 port)
- MicroSD slot
- optional eMMC, 8, 16 or 32GB available
- optional on-board 16MiB bootable SPI NOR flash
- two 1Gbps Ethernet ports (via MAXIO MAE0621A PHYs)
- PoE header for optional supply circuit on one Ethernet port
- WiFi 802.11 a/b/g/n/ac/ax (LB-Link BL-M8800DS2 module using AIC8800)
- HDMI port
- camera and LCD connectors
- power supply via USB-C connector (but no PD) or GPIO header pins
This .dts describes the devices as far as we support them at the moment. The PMIC rails have been assigned as per the schematics.
--- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun55i-a527-radxa-a5e.dts | 299 ++++++++++++++++++ 2 files changed, 300 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun55i-a527-radxa-a5e.dts
arch/arm64/boot/dts/allwinner/Makefile +1 -0
@@ -52,5 +52,6 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-2024.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-h.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-plus.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-sp.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun55i-a527-radxa-a5e.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun55i-h728-x96qpro+.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-avaota-a1.dtb
arch/arm64/boot/dts/allwinner/sun55i-a527-radxa-a5e.dts new file +299 -0
299 lines not on this page · raw message
Signature · 1 line
2.46.3
PATCH v3 14/15 dt-bindings: arm: sunxi: Add YuzukiHD Chameleon board name
In reply to Andre PrzywaraThe Chameleon is an Open Source hardware board designed by YuzkuiHD, using the Allwinner H618 SoC: https://github.com/YuzukiHD/YuzukiChameleon
Add its compatible name to the list of valid board name.
--- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/sunxi.yaml +5 -0
@@ -1091,4 +1091,9 @@ properties: - const: yuzukihd,avaota-a1 - const: allwinner,sun55i-t527 + - description: YuzukiHD Chameleon + items: + - const: yuzukihd,chameleon + - const: allwinner,sun50i-h618 + additionalProperties: true
Signature · 1 line
2.46.3
PATCH v3 15/15 arm64: dts: allwinner: h616: add YuzukiHD Chameleon support
In reply to Andre PrzywaraThe Chameleon board is an OpenHardware devboard made by YuzukiTsuru. The form factor resembles the Raspberry Pi Model A boards, though it differs significantly in its features:
- Allwinner H618 SoC (4 * Arm Cortex-A53 cores, 1MB L2 cache, 1.4 GHz)
- between 512MiB and 2GiB DDR3 DRAM
- up to 128 GiB eMMC flash
- AXP313a PMIC
- 100 Mbit/s Ethernet pins on a header
- XR829 WIFI+Bluetooth chip
- 4 * USB 2.0 USB-C ports
- microSD card slot
- 3.5mm A/V port
Add the devicetree describing the board's peripherals and their connections.
--- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../sun50i-h618-yuzukihd-chameleon.dts | 222 ++++++++++++++++++ 2 files changed, 223 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h618-yuzukihd-chameleon.dts
arch/arm64/boot/dts/allwinner/Makefile +1 -0
@@ -48,6 +48,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-longanpi-3h.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero2w.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-transpeed-8k618-t.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-yuzukihd-chameleon.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-2024.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-h.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-plus.dtb
arch/arm64/boot/dts/allwinner/sun50i-h618-yuzukihd-chameleon.dts new file +222 -0
222 lines not on this page · raw message
Signature · 1 line
2.46.3
Re: (subset) [PATCH v3 00/15] arm64: dts: allwinner: Add basic Allwinner A523 support
In reply to Andre PrzywaraQuoted 12 lines · Andre Przywara
this in an update to the series introducing the basic DT support for the Allwinner A523 SoC. It now comes with DTs for three boards, using slightly different packages of that SoC.[1] Functionality-wise it relies on the pinctrl[2] and clock[3] support series, though there are no direct code dependency series between the series. Two binding patches from there are required to pass
dtbs_check, git put their patch IDs in the footer below.
Compared to v2 only small fixes in the NMI controller driver: renaming the struct to better reflect its new usage, add adding the DS pin to the eMMC pingroup list. Adding accrued tags on the way, many thanks to the diligent reviewers! More detailed changelog below.
Quoted 1 line
[...]
Applied, thanks!
[07/15] dt-bindings: phy: document Allwinner A523 USB-2.0 PHY
commit: 1f7af7f3c353ae3b384a66a82c5074ac28901160
Best regards,
Signature · 1 line
~Vinod
Chen-Yu Tsai
AppliedRe: (subset) [PATCH v3 00/15] arm64: dts: allwinner: Add basic Allwinner A523 support
In reply to Andre PrzywaraQuoted 12 lines · Andre Przywara
this in an update to the series introducing the basic DT support for the Allwinner A523 SoC. It now comes with DTs for three boards, using slightly different packages of that SoC.[1] Functionality-wise it relies on the pinctrl[2] and clock[3] support series, though there are no direct code dependency series between the series. Two binding patches from there are required to pass
dtbs_check, git put their patch IDs in the footer below.
Compared to v2 only small fixes in the NMI controller driver: renaming the struct to better reflect its new usage, add adding the DS pin to the eMMC pingroup list. Adding accrued tags on the way, many thanks to the diligent reviewers! More detailed changelog below.
Quoted 1 line
[...]
Applied to dt-for-6.16 in [email protected]:linux-sunxi/linux-sunxi.git, thanks!
[08/15] arm64: dts: allwinner: Add Allwinner A523 .dtsi file
commit: 35ac96f796649346c9b0440413dc6c5138249b3e
[09/15] dt-bindings: vendor-prefixes: Add YuzukiHD name
commit: acf5b947cff1b991ceb7fa53c66555242ff4c87b
[10/15] dt-bindings: arm: sunxi: Add new board names for A523 generation
commit: f9d55227839199e928a41574e41089288a43a2d6
[11/15] arm64: dts: allwinner: a523: add Avaota-A1 router support
commit: 3a1883f32b9b5083883624f9b39a3c6edfa6d490
[12/15] arm64: dts: allwinner: a523: add X96Q-Pro+ support
commit: 66611715c473a9820b65322c94401a367711acd7
[13/15] arm64: dts: allwinner: a523: add Radxa A5E support
commit: 80e0fb4e491b4994434e42c33c1387a46b7986bc
[14/15] dt-bindings: arm: sunxi: Add YuzukiHD Chameleon board name
commit: 7273c0e2e4229bca42c70e6f3c33f1756902301a
[15/15] arm64: dts: allwinner: h616: add YuzukiHD Chameleon support
commit: 6d1cb8de157382facedf50f1a80ee033243b8494Best regards,
Signature · 1 line
Chen-Yu Tsai <[email protected]>