From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F68C606A31C for ; Sat, 28 Nov 2026 17:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=2rx/heLC; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=TcFw7YfM DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=YezWduZI3dCs3swwAq4frMtA1a30WOuo2X+jYwcZoAI=; b=2rx/heLCuwLPV2VvwdhP1KI6Bt AmEAu3ETnXaBizoP6ldbc8IM5ZjAKR325SBqprtx/a/Kqm6LLIVP3QST+40hHy0zAxcUpSNSHBGVB rSDQtJ/hG3CsApSudlhhflR0d+ILHpdeq6Zj4exb+NBg5nWiolPqvBFbFSTUy+3Joe9VG9z/Zso/p 4PyCJ7mv8Rdly+GT4iC65cZE4CaJZZ+W1RqcPxb+qet7D2Mrtc65IHve/3dNV6sUpqfSA8udiNAXn VZlTIu+xkgZemKiZzDRV/LyuAFXI7Sv8oFZdgQB3wMjIgoo4HKaKDgR0F0phJ7K3PTKbMsog3U8S4 pevBQvVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXMO2-000000014ES-3vTn; Sat, 28 Nov 2026 17:38:58 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXMNz-000000014DB-3Psn for linux-arm-kernel@lists.infradead.org; Sat, 28 Nov 2026 17:38:57 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4bb64c99d2fso82370035e9.3 for ; Sat, 28 Nov 2026 09:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795887534; x=1796492334; darn=lists.infradead.org; h=content-type:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=YezWduZI3dCs3swwAq4frMtA1a30WOuo2X+jYwcZoAI=; b=TcFw7YfMVBD0458qxgsKKBUFVuZkYEf5rU/XFh634wHJUOvVsCTz/yn7ypLJq1bIdk ljDATBv9TtJJhJqLCvTLN3/0wa97+bxoflQqQztDLxM3WQ9h2G5Mr9LL6vKeosQ0ygeE UhXPSoUilhNYa1t2GsNnV7zJ5LoaE/pxrieo3fY11Qm7DeaR3xh5UjT4VcaENfVFTw1N +JmzBOaVOUTgDu6c0pKGe1JP6A2XFfz85S3G6aD0TOo87cCEAvyM/KoMU3oQjJXuU6+A /pG6kHwA1ReRUY4KXGg2friWUpC7twBk/fZqz6uNfNCfuQ4oYN26p6XPYNg8dUXesw2z ibtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795887534; x=1796492334; h=content-type:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=YezWduZI3dCs3swwAq4frMtA1a30WOuo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ung7vWASIBe0RaGBHKI9lIN3ga9z6aq15N1QMpyo466U1E4A1Q8KlJRdmxdaNz 7fIXrFsOPTUxwPy72dOzlkOIFpkj50c7wll1/Py1FGQo99Tvm5BJwwNCr2it4yp1a1ACRPC5n2Q PN3FfQf1KL/UdFEQ0SV5UrneLbQZZJmTI13pUW4H2Gr7YF7vgmqpXbXLBq5gG70Dm4GmQyjVMO9 ToMz/ZfCJUo1ipLzE5oZe5OxSklRDueeM9yVg1RWLfj5lFm2qgx85YOD+OA4M7w2zo+8ij7y1MT opruytAdNgUnn37jS3BhCc0J04JLpbubs/26Vl1ZDc3wpl3q3k6NSqX4osijV9rXfOGkHPh1Lub +cEsoD3fLjZpK1EG3CUhhLg3rFqXlblihYuPcu0UoKH+tc= X-Received: by 2002:a05:600c:8b5c:b0:4bb:741d:ea0 with SMTP id 5b1f17b1804b1-4bb8880f621mr618917745e9.17.1795887533807; Sat, 28 Nov 2026 09:38:53 -0800 (PST) Received: from jernej-laptop.localnet ([2a00:ee2:6a02:9300:bb69:6bcf:1b11:e85b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8849247asm809329415e9.7.2026.11.28.09.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Nov 2026 09:38:53 -0800 (PST) From: Jernej =?UTF-8?B?xaBrcmFiZWM=?= To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, wens@kernel.org, samuel@sholland.org, Enzo Adriano , Andre Przywara Cc: Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Junhui Liu , Jerome Brunet , Pablo Mazzini , Vinicius Pedrosa , Alexander Sverdlin , Jun Yan , Lukas Schmid , Cristian Filipescu , Norman Herms Subject: Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description Date: Sat, 28 Nov 2026 18:38:51 +0100 Message-ID: In-Reply-To: <9ab5f851-1b56-49ed-bfdd-46abdbdda1c0@arm.com> References: <20261126-a733-cubie-a7s-dt-v6-0@gmail.com> <9ab5f851-1b56-49ed-bfdd-46abdbdda1c0@arm.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261128_093855_899344_1774292C X-CRM114-Status: GOOD ( 32.51 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Dne petek, 27. november 2026 ob 11:57:16 Srednjeevropski standardni =C4=8Da= s je Andre Przywara napisal(a): > Hi Jernej, >=20 > On 11/27/26 05:29, Jernej =C5=A0krabec wrote: > > Dne =C4=8Detrtek, 26. november 2026 ob 21:35:40 Srednjeevropski standar= dni =C4=8Das 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/60fd7379b9560a15b8b3= 52986b69d39f/raw/efd9cdf8f26ba5b0c7e138f093af44a1cf322469/sun60i-a733.dts > >> Link: https://lore.kernel.org/r/20261126172253.1097838-2-andre.przywar= a@arm.com > >> Reviewed-by: Andre Przywara > >> Tested-by: Vinicius Pedrosa # Rad= xa Cubie A7Z V1.11 > >> Tested-by: Norman Herms # Radxa Cubie A7S (A733) > >> Co-developed-by: Andre Przywara > >> Signed-off-by: Andre Przywara > >> Signed-off-by: Enzo Adriano > >> --- > >> 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/arm= 64/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 @@ >=20 > [ ... ] >=20 > >> + > >> + mmc0: mmc@4020000 { > >> + compatible =3D "allwinner,sun60i-a733-mmc", > >> + "allwinner,sun20i-d1-mmc"; > >=20 > > That's not really the case, is it? A733 emmc has support for voltage sw= itching, > > so regulator should be added here for voltage switching. >=20 > But it's still compatible to the D1 MMC controller, isn't it? As in: a=20 > driver capable of supporting the D1 MMC IP can also drive the A733 MMC.=20 > I think the voltage regulator is a separate problem: it's external to=20 > the MMC IP. The vqmmc supply property is documented and usable, and the=20 > 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=20 > still compatible to the A100 and D1, respectively. Ah, sorry, mmc0 node is ok. Power supply is the tricky part and that belongs to board dts. >=20 > > I suggest that you drop this node until proper adjustment is made. >=20 > Do you have any code for the voltage switch already? Your comment in the= =20 > UHS-1 prep series suggests so? Any chance you can post that separately,=20 > to get any DT compatibility problems out of the way early? As you may remember #linux-sunxi discussion a month or so ago, you had objections regarding broking forward compatibility. So now is the time to properly address this for A733. As discussed, proper way would be to introduce regulator child node in pinctrl and point vmmc-supply to it. Example is here: https://github.com/jernejsk/linux-1/commits/sunxi-mmc-uhs/ (just pretend that vmmc-supply is used instead of vqmmc-supply) Best regards, Jernej >=20 > Cheers, > Andre >=20 > > Best regards, > > Jernej > >=20 > >> + reg =3D <0x04020000 0x1000>; > >> + interrupts =3D ; > >> + clocks =3D <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>; > >> + clock-names =3D "ahb", "mmc"; > >> + resets =3D <&ccu RST_BUS_MMC0>; > >> + reset-names =3D "ahb"; > >> + pinctrl-names =3D "default"; > >> + pinctrl-0 =3D <&mmc0_pins>; > >> + #address-cells =3D <1>; > >> + #size-cells =3D <0>; > >> + status =3D "disabled"; > >> + }; > >> + >=20