Devicetree
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: "Jernej Škrabec" <jernej.skrabec@gmail.com>,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	wens@kernel.org, samuel@sholland.org,
	"Enzo Adriano" <enzo.adriano.code@gmail.com>
Cc: Maxime Ripard <mripard@kernel.org>,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
	Junhui Liu <junhui.liu@pigmoral.tech>,
	Jerome Brunet <jbrunet@baylibre.com>,
	Pablo Mazzini <pmazzini@gmail.com>,
	Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>,
	Alexander Sverdlin <alex@sverdlin.org>,
	Jun Yan <jerrysteve1101@gmail.com>,
	Lukas Schmid <lukas.schmid@netcube.li>,
	Cristian Filipescu <filipescu.cristian@gmail.com>,
	Norman Herms <dockseed@proton.me>
Subject: Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
Date: Fri, 27 Nov 2026 10:57:16 +0000	[thread overview]
Message-ID: <9ab5f851-1b56-49ed-bfdd-46abdbdda1c0@arm.com> (raw)
In-Reply-To: <p3YaXlLJTguQBGnWyMpb1w@gmail.com>

Hi Jernej,

On 11/27/26 05:29, Jernej Škrabec wrote:
> Dne četrtek, 26. november 2026 ob 21:35:40 Srednjeevropski standardni čas je Enzo Adriano napisal(a):
>> The Allwinner A733 combines six Cortex-A55 and two Cortex-A76 cores.
>> Add the common device tree for the first Cubie A7A, A7S and A7Z board
>> DTS files. Describe the CPUs, PSCI, architectural timers, GIC, RTC,
>> main and always-on clock/reset and pin controllers, UART, I2C and
>> MMC. The preceding revision booted on the A7S and A7Z.
>>
>> The A7S schematic, sheets 7 and 16, shows the EEPROM wired to I2C0
>> on PG8/PG9. Use mux 6 as documented in the A733 Datasheet v1.00,
>> section 4.2.6, table 4-36. The A7A schematic shows the external RTC
>> on S_TWI1. Add its R-I2C1 pin group on PL12/PL13, mux 3.
>>
>> The GIC maintenance PPI 9 and ARMv8.2 EL2 virtual-timer PPI 12 follow
>> the A733 User Manual v1.00, section 12.2.3. The GICD/GICR/ITS windows
>> and noncoherent attributes follow Andre Przywara's A733 reference
>> and the A523 precedent. The CPUX interconnect diagram in section
>> 5.1.2 supports the noncoherency inference. Leave the ITS disabled
>> pending clock/reset and MSI integration.
>>
>> Describe the single DynamIQ unit and shared L3 shown in section
>> 5.1.2, figure 5-1. Partition PPI 7 (section 12.2.3, table 12-1)
>> between the Cortex-A55 and Cortex-A76 PMUs so each probes its own
>> core type. Defer capacity-dmips-mhz until it is measured on A733.
>>
>> Link: https://gist.githubusercontent.com/apritzel/60fd7379b9560a15b8b352986b69d39f/raw/efd9cdf8f26ba5b0c7e138f093af44a1cf322469/sun60i-a733.dts
>> Link: https://lore.kernel.org/r/20261126172253.1097838-2-andre.przywara@arm.com
>> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
>> Tested-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com> # Radxa Cubie A7Z V1.11
>> Tested-by: Norman Herms <dockseed@proton.me> # Radxa Cubie A7S (A733)
>> Co-developed-by: Andre Przywara <andre.przywara@arm.com>
>> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>> Signed-off-by: Enzo Adriano <enzo.adriano.code@gmail.com>
>> ---
>> Changes since v5:
>> - Mark the I2C0 PG8/PG9 group /omit-if-no-ref/, as requested. This
>>    satisfies Andre's review condition.
>> - Move the RTC clock include after the A733 clock headers and cite
>>    the A733 datasheet and A7S schematic for the I2C0 pins.
>> - Fold in Andre's R-I2C1 pin group for A7A. A7S and A7Z leave
>>    it unused. A7S still references the I2C0 group.
>> - Vinicius tested the v5 DTSI with his A7Z v1.11 board DT. Norman
>>    tested the v5 series on A7S. Their tags here cover the SoC DTSI.
>>
>>   .../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 671 ++++++++++++++++++
>>   1 file changed, 671 insertions(+)
>>   create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
>>
>> diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
>> new file mode 100644
>> index 000000000000..e062b08006da
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
>> @@ -0,0 +1,671 @@

[ ... ]

>> +
>> +		mmc0: mmc@4020000 {
>> +			compatible = "allwinner,sun60i-a733-mmc",
>> +				     "allwinner,sun20i-d1-mmc";
> 
> That's not really the case, is it? A733 emmc has support for voltage switching,
> so regulator should be added here for voltage switching.

But it's still compatible to the D1 MMC controller, isn't it? As in: a 
driver capable of supporting the D1 MMC IP can also drive the A733 MMC. 
I think the voltage regulator is a separate problem: it's external to 
the MMC IP. The vqmmc supply property is documented and usable, and the 
availability of the regulator it points to is a separate issue.
The same as the H616 and A523 have the voltage switch already, but are 
still compatible to the A100 and D1, respectively.

> I suggest that you drop this node until proper adjustment is made.

Do you have any code for the voltage switch already? Your comment in the 
UHS-1 prep series suggests so? Any chance you can post that separately, 
to get any DT compatibility problems out of the way early?

Cheers,
Andre

> Best regards,
> Jernej
> 
>> +			reg = <0x04020000 0x1000>;
>> +			interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH 0>;
>> +			clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
>> +			clock-names = "ahb", "mmc";
>> +			resets = <&ccu RST_BUS_MMC0>;
>> +			reset-names = "ahb";
>> +			pinctrl-names = "default";
>> +			pinctrl-0 = <&mmc0_pins>;
>> +			#address-cells = <1>;
>> +			#size-cells = <0>;
>> +			status = "disabled";
>> +		};
>> +

  reply	other threads:[~2026-11-27 10:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 20:35 [PATCH v6 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Enzo Adriano
2026-11-26 20:35 ` [PATCH v6 1/5] dt-bindings: arm: sunxi: document Radxa Cubie A7A, A7S and A7Z Enzo Adriano
2026-11-26 23:16   ` Andre Przywara
2026-11-26 20:35 ` [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
2026-11-26 20:52   ` sashiko-bot
2026-11-27  4:29   ` Jernej Škrabec
2026-11-27 10:57     ` Andre Przywara [this message]
2026-11-27 11:28     ` Jerome Brunet
2026-11-27 11:18   ` Jerome Brunet
2026-11-27 11:23     ` Andre Przywara
2026-11-27 11:26   ` Alastair D'Silva
2026-11-26 20:35 ` [PATCH v6 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
2026-11-26 20:55   ` sashiko-bot
2026-11-27  0:24   ` Andre Przywara
2026-11-26 20:35 ` [PATCH v6 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board Enzo Adriano
2026-11-26 20:53   ` sashiko-bot
2026-11-26 20:36 ` [PATCH v6 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board Enzo Adriano
2026-11-26 20:43   ` sashiko-bot
2026-11-27 11:33   ` Jerome Brunet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ab5f851-1b56-49ed-bfdd-46abdbdda1c0@arm.com \
    --to=andre.przywara@arm.com \
    --cc=alex@sverdlin.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dockseed@proton.me \
    --cc=enzo.adriano.code@gmail.com \
    --cc=filipescu.cristian@gmail.com \
    --cc=jbrunet@baylibre.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jerrysteve1101@gmail.com \
    --cc=junhui.liu@pigmoral.tech \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=lukas.schmid@netcube.li \
    --cc=mripard@kernel.org \
    --cc=pmazzini@gmail.com \
    --cc=robh@kernel.org \
    --cc=samuel@sholland.org \
    --cc=vinicius.eduardo.pedrosa@gmail.com \
    --cc=wens@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox