From: Enzo Adriano <enzo.adriano.code@gmail.com>
To: andre.przywara@arm.com
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
wens@kernel.org, jernej.skrabec@gmail.com, samuel@sholland.org,
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>
Subject: Re: [PATCH v4 3/3] arm64: dts: allwinner: add Radxa Cubie A7S board
Date: Mon, 23 Nov 2026 12:43:24 -0500 [thread overview]
Message-ID: <20261121-a733-dt-v4-3-reply@gmail.com> (raw)
In-Reply-To: <20261122003932.568c099c@ryzen.lan>
> Where does this limit come from? As it stands right now, at 3.3V you
> won't get faster anyway, so it's moot. Please remove if you agree.
I set it to match the nominal SD High Speed clock for the initial
3.3 V-only configuration. I dropped it in v5. SD High Speed still
requests 50 MHz (drivers/mmc/core/sd.c); sunxi-mmc's default ceiling
is 52 MHz, which an MMC High Speed card can use.
> Just leave that out (for now), the default is to revert to vmmc-supply,
> if vqmmc is not given anyway.
Dropped. The MMC core acquires vmmc and vqmmc separately. Without
vqmmc, sunxi_mmc_voltage_switch() assumes fixed 3.0/3.3 V
signalling and accepts MMC_SIGNAL_VOLTAGE_330. SWOUT2 still
supplies the card through vmmc (schematic sheets 4 and 13).
> Same here, comment about this being VCC-IO, at least for now.
I switched vcc-pf-supply to SWOUT2. Schematic v1.10 sheets 4 and 7
show VCC-IO feeding PB and the 3.3 V PF path, with CLDO5 feeding the
separate 1.8 V PF input. The v4 U-Boot preflight on a Cubie A7S
showed PF on the 3.3 V path. v5 relies on that firmware selection.
> We should have a voltage or a range for every regulator. Here it should
> be 0.8V.
On a Cubie A7S running Radxa's 5.15.147 BSP kernel, regulator sysfs
reports 0.800 V for DCDC2. I set it to 0.800 V in v5.
> Do we have some OPPs for the cores? The range should reflect the
> min/max used voltages in there.
Yes. The live BSP DT has separate A55 and A76 OPP tables.
The nonzero bins span 0.800-1.050 V on both DCDC5 and DCDC3.
BSP regulator sysfs reads 0.800 V on both, and v5 uses the
0.800-1.050 V range for both. The source is
configs/linux-5.15/sun60iw2p1-cpu-vf.dtsi in Radxa's allwinner-bsp,
with the supplies on sheet 4.
> Why is this always on? If I see this correctly, that's just supplying
> the GPU, which will have its own supply property.
> Voltages should be in the same range as for the CPUs.
I removed always-on for DCDC4. Sheet 4 shows VDD-GPU on that
output. BSP regulator sysfs reads 0.800 V. v5 uses 0.800-0.960 V,
the range of GPU OPPs in the live BSP DT.
> 0.6/0.5V I guess.
BSP regulator sysfs reads 0.560 V on DCDC6. I used 0.500-0.600 V,
covering the 0.500 V LPDDR5 and 0.600 V LPDDR4X VDDQ options on
sheet 5. Sheet 4 shows DCDC6 feeding the DRAM PHY and that VDDQ
path.
> Probably 1.1V.
BSP regulator sysfs reads 1.080 V on DCDC7. It feeds the DRAM PHY
and LPDDR5 VDD2H. I used 1.050-1.100 V to cover the 1.050 V VDD2H
option on sheet 5 and the 1.100 V DRAM rail shown on sheets 4 and 5.
The regulator core keeps an in-range selector at registration. The
handoff check reads the selectors in U-Boot before Linux starts,
so the new bounds can be checked against the trained DRAM settings.
Before booting v5 on a Cubie A7S, the selectors read from U-Boot were
within the bounds, and none changed when the kernel registered them.
> But there is no UFS on this board, right? All the UFS signals seem to
> be not-connected, so this power supply will be going nowhere. And DCDC8
> seems to be used exclusively for UFS, so I would just leave this whole
> node out.
Yes, sheet 6 marks the UFS signals NC. I dropped the UFS-only
DCDC8 and DLDO6 nodes shown on sheet 4.
> Again, why the always-on? This is referenced by eldoin-supply, so the
> kernel should keep this on.
> As for the voltage, the schematic doesn't seem to give a clue, so maybe
> you can look this up on a running BSP kernel.
The BSP regulator sysfs reads 1.240 V. I dropped always-on
from DCDC9. The always-on ELDO1 and ELDO6 children hold it
through eldoin-supply (the ELDO input on sheet 4). I left the
voltage at the firmware setting.
> Why always-on? Should be referenced by the pinctrl device.
I dropped it. The PJ26 LED requests a PJ pin and pinctrl holds
SWOUT1 for that bank (sheets 4, 7 and 16).
> Does this intentionally miss the voltage setting?
> The datasheets suggests that VCC-MCSI must be 1.8V.
The omission was unintentional. BLDO1 reads 1.800 V in BSP
regulator sysfs, consistent with VCC-MCSI in datasheet table 5-2.
I set it to 1.800 V in v5.
> And again, the voltage is missing. Per the datasheet, VCC_LVDS0 must be
> 1.8V, and the VCC18-LCD label connected to BLDO2 supports this.
I set BLDO2 to 1.8 V per datasheet table 5-2 and dropped always-on.
On the test board, U-Boot hands BLDO2 over at a 1.8 V selector. The
3.3 V selector was read on a second Cubie A7S running Radxa's 5.15.147
BSP kernel, whose DT uses BLDO2
as a PCIe 3.3 V supply. Schematic sheet 4
shows a nominal 2.4 V BLDO input, so the selector alone gives
no physical output measurement.
> Do we need this at all? I don't see this (VCC18-CODEC) connected
> anywhere?
Sheet 4 shows BLDO4 on VCC18-CODEC with no load drawn elsewhere.
The BSP sysfs also shows it disabled with zero users. I
dropped the node.
> Should not be needed.
> Voltage is missing, should be 1.8V, I think.
> Please try to double check on a system running with the BSP kernel.
The BSP regulator sysfs shows CLDO5 at 1.800 V, which is
also the existing v4 constraint. I removed always-on.
> Voltage is missing, should be 1.8V, I think.
> Please try to double check on a system running with the BSP kernel.
DLDO1 also reads 1.800 V in BSP regulator sysfs. Sheet 8 shows
the SoC eFuse supply. I set it to 1.800 V in v5 and kept it
always-on.
> Voltage should be 0.9V.
Sheet 4 labels ELDO1's output 0.9 V and sheet 5 shows it powering
LPDDR5 VDD2L. The BSP sysfs reads 1.075 V. I left it enabled
at the handoff setting to avoid retuning live DRAM.
> Schematics suggest 0.8V.
BSP regulator sysfs reads 0.800 V on ELDO6, in line with sheet 4.
I set it to 0.800 V in v5.
Enzo
prev parent reply other threads:[~2026-11-23 17:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 18:09 [PATCH v4 0/3] arm64: dts: allwinner: add A733/Cubie A7S support Enzo Adriano
2026-11-19 18:09 ` [PATCH v4 1/3] dt-bindings: arm: sunxi: document Radxa Cubie A7S Enzo Adriano
2026-11-21 23:40 ` Andre Przywara
2026-11-23 17:42 ` Enzo Adriano
2026-11-24 14:42 ` Andre Przywara
2026-11-25 12:41 ` Vinicius Pedrosa
2026-11-26 20:36 ` Enzo Adriano
2026-11-19 18:09 ` [PATCH v4 2/3] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
2026-11-19 18:30 ` sashiko-bot
2026-11-21 10:23 ` Andre Przywara
2026-11-23 17:42 ` Enzo Adriano
2026-11-24 15:15 ` Andre Przywara
2026-11-19 18:09 ` [PATCH v4 3/3] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
2026-11-19 18:26 ` sashiko-bot
2026-11-21 23:39 ` Andre Przywara
2026-11-23 17:43 ` Enzo Adriano [this message]
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=20261121-a733-dt-v4-3-reply@gmail.com \
--to=enzo.adriano.code@gmail.com \
--cc=alex@sverdlin.org \
--cc=andre.przywara@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.