From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795887536; b=bqQa9Bg7FFraiG9t59NonbB0Le0cvkyIDF0ZMk0aiD4c1CXk702iItuSHXs3DpKAXpUT UXWc5du4tzV4qi4Hn77LSHWR84aij7sD69Cmj9YbKdzojojPUKzsQp3QvX+rsuypF4r8R G5gkOFCmS8lJGsnbk2giF6hUAqjm4YF2Ag4cHM+5VK8l3at29rJtAIDqDwS+hF7gKbbJt oCN2stivR6HsoIzG6/iHwRMppBJEuKEjJIHz+hYnOXK0an6Vp4gvLHElE4FVKbyIklmS/ Y5ahPtso2pESinNdxpnZiwNxtlUt22M0/rhcygEEJXXppBGesqizWzHNHXCrDWddhWg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795887536; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type; bh=YezWduZI3dCs3swwAq4frMtA1a30WOuo2X+jYwcZoAI=; b=yQa+GCRTK39AmLnoC/DdEHoUdbDIvxVP4cvZB9TyhVbTN2j0fS/Bp1ow12AeTm7vEMx+ 7HnG65VbFjSkjldF/2pgKPGXUbH7a2wRagLJsq3ARenJGbClSHKvXQxSmPG+OtF4KlACF UFOTFa2MctBml6fIKQs/aMHEBPnxlYx/2m93B9hUh8k68+4Uzy4Lw7qcVAWkdUa1b0i5E PFkT1ELPZeRce2tFJWosRn2JflZkZvqlB/N5nZDlIlzksopxy2SMxfRnwHAUo4DL678YS XEWJQNfxaDvAKw9PUntDeuMqiAufllOo+L8xqJ16/vNzs6zYVLzvFgWbfh33VtujIkQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=IpSIMlmk; arc=none smtp.remote-ip=209.85.128.43 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 870C3606A327 for ; Sat, 28 Nov 2026 17:38:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 870C3606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=IpSIMlmk Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4bb61185057so57944375e9.1 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.linux.dev; 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=IpSIMlmkIvrmpf1Kf2qmeMLxGSTIdATtZk3KWAcHhlcSSxYk4aL7PPX15gE+pVGQsG TNJpHhkod49VTKLlDzlMFLd+l3FMXQVnJ8eHiHDyvZ8T6fBqXWE6fwLhouk16CrKdO/u xioKe1fqbHSCFYTrypsRk5I7ezc/9a1HXytd39OPXAHN00AYVkg+4uPjf01w5uAWMQ+i 4ugxoLy+4Pi1vMkWKa6SZbiZYoNHLKRY0R7zGQ3L2MkM5tTZyuk+0LI2cr9MlkQhjCnq 4ZNb9We0JPSicjRPl+YAeslZ4+zS0IOYctM9zCUZzGMZ45VE/ndYBsCGxCVuIS48KCQA jGZw== 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=YezWduZI3dCs3swwAq4frMtA1a30WOuo2X+jYwcZoAI=; b=Ct7CKabHpu3paHgO4smoVNBiP5lEHvrHocE47FYHx7xY3CUazJzqwAbs+rkPAUq7tS NTaOjx13i4KosnxqQr79aIxvDSt5tlYO3GH4sstKIomZLgSPxuqFIl/qVN51JEkHwkSd BQi55oPLtvxs8Nq9HqOdWtvIJUSymYFZj54c1rxpzAD3e3KcA+cLIM4N38LLomqCKXv3 GjBVSP91BREhn0pRyN3vyaVVoSPhML3vPr+kgJx6pQZNNAGohpCCast3UunAAqN93nRa VaOxCUqArOAV1+MFJ+S0vgVlLa2iJbRRTld5PCZRICX1uS6kP30UQkql0xpJlhWTQLtB 1w/g== X-Forwarded-Encrypted: i=1; AL+hErGpqNlBS0KPb0xXS+K/S3v0R4HTXRUy6uzbp4HVPMuVtcBF8QJScsoGBkx499ZbQVp/Yyz0XTfyEhlwPQ==@lists.linux.dev X-Gm-Message-State: APuU4Z/g+t4pl42d/tN9aE6rMwcPQRyBttewedMxnpbKcALAPFUCt6f2 HGsbOhp/A562hQjzMVkZ4PlwsHzDJ41RF73m7c0ugrjtcAxO6E9JyQtop2AtxWhr X-Gm-Gg: AZFdTZeew7M30o/qgs4z35ONpwz5Fra15639SCcRLVHqjFaxTAs3j6BMC/0NtvrnUET T2S+123tSjvz4yL7vc+MTDByzsPh36blMmkMWm0zrX9SQP6noq2Z6/A88ayJe6w3juX3TmC65Ek CUZw7UG2PuZHsyLcwh/0P1ggojvVkrcGCPC0K8GRfLMoFsBenZKHWvSIFhd2KIQxBP8lhTlB/Cl RxjCE0dujZWuIuYXdCcSv+4BqkPTfJX5uRcYTwrlIpH6w3Q0CgU4BMa/smYbv+D/ar970fpD1V4 3sTX5QXHhsp1GiVc1NRJVLTerX99J1aZU7xcRZOOTM51MgZXtPMRwgjm4jJOj1mXDCmN02P2Mnj nxiLyYJvfDBi72bStZPVOxExCsEAFVoLEprxWmOFr4XNfWnGIHISN9V0PUnpgYWTlQsOfS+mUkS 3ZIvvTZHfseDWlPFV5vxCPM23P+CPPDSSFZGmBlnCsyl58fbz6u6T/wqVwoPfHPJygewbAxaZbD KLlcu98rDHboK8WrIbZ6FT2LTvd3fVqlTXNUbT+0ID2zppkbOs90dDtbNLxZFtGbXnhnOT6Dd+I C9NoTUYUhko2bdOUn5gRt7f3SJS9bECEM22rXzqci+aMsC1rB/ed9mvyhRSCxT+/QRLRTcOxeRS +m08R5dPgB7KYPeOjDoS71LqSzQHJd386NqeT2Gh0MG+GmpDWFvBPeokI2GneHgoux1HrjzU5Wi KYkCMxm9DO09fLtGiZ9gJArzEkxFAXlv43Q2YEbg4KAaQiT/bWSQdqa/3TUPx5M3jqV393Hiz2j kuJaOj3AQ2xb0mtkJPVsxNsusjDLFjJyrEg+BNi3jTs7HI= 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-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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