mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chen-Yu Tsai <wens@kernel.org>
To: Enzo Adriano <enzo.adriano.code@gmail.com>
Cc: andre.przywara@arm.com, robh@kernel.org, krzk+dt@kernel.org,
	 conor+dt@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>,
	 Cristian Filipescu <filipescu.cristian@gmail.com>,
	Norman Herms <dockseed@proton.me>
Subject: Re: [PATCH v6 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board
Date: Fri, 4 Dec 2026 00:00:25 +0900	[thread overview]
Message-ID: <CAGb2v64Z4ScPVdZD-tpQLUaPHDXo0yYSAmQ76eeb9gfQ2B-1Jw@mail.gmail.com> (raw)
In-Reply-To: <20261126-a733-cubie-a7s-dt-v6-3@gmail.com>

On Fri, Nov 27, 2026 at 5:35 AM Enzo Adriano
<enzo.adriano.code@gmail.com> wrote:
>
> Enable the serial console, PMIC and microSD slot for initial Cubie A7S
> bring-up with vendor firmware, using the new common A733 description.
> Describe the oscillator inputs and power tree using the Radxa A7S
> v1.10 schematic, sheets 4, 7 and 8. Keep the boot-critical supplies
> enabled. Sheet 4 shows VCC5V0_SYS feeding DCIN and the PMIC PS output
> feeding the buck inputs and UP11. Set DCDC9 to 1.240 V, the boot
> firmware selector read back on the board for the ELDO input. Keep
> ELDO1 enabled at the firmware-selected voltage while the VDD2L range
> for the fitted memory is being confirmed.
>
> Use the Radxa 5.15 BSP CPU and GPU OPP envelopes for DCDC3/5 and
> DCDC4. Use its regulator readback for DCDC2, BLDO1, DLDO1 and ELDO6,
> consistent with sheets 4 and 8 and the VCC-MCSI entry in the A733
> datasheet.
>
> Allow 0.50-0.60 V on DCDC6, covering the 0.50 V LPDDR5 and 0.60 V
> LPDDR4X VDDQ options on sheet 5. Allow 1.05-1.10 V on DCDC7,
> covering LPDDR5 VDD2H at 1.05 V and the 1.10 V DRAM rail shown on
> sheets 4 and 5. The BSP readback was 0.56 V and 1.08 V, respectively.
> Both fall inside the bounds, so those selector values can be kept
> after DRAM training. Set the LVDS0 supply to 1.8 V per the A733
> Datasheet v1.00, table 5-2, and leave its enable under consumer control.
> Omit the unused UFS and codec regulator nodes (schematic sheets 4 and 6).
>
> Use SWOUT2 for the card and the Port F VCC-IO path (sheets 4, 7 and 13).
> Firmware must select the 3.3 V PF path for use with MMC0. CLDO5
> supplies the separate 1.8 V input. The controller uses fixed signalling
> with no VQMMC regulator and advertises no UHS modes. Describe the
> active-high card-detect line on PF6 and its pull-down.
>
> Add the PM2 power and PJ26 status LEDs, and the BL24C16F on I2C0 as
> shown on sheets 7 and 16. The EEPROM is at 0x50 in Radxa's 5.15 DT.
> PC7 drives an inverter that pulls the EEPROM's write-protect pin low.
>
> Keep ALDO1 always on for Port L, which powers the PMIC's own bus.
> Omit the Port L supply phandle, as on the Cubie A5E: requesting
> it would require the PMIC regulator before the PMIC can be reached.
> The A733 pinctrl voltage-mode fix is required for the bank supply
> connections.
>
> Link: https://dl.radxa.com/cubie/a7s/hw/radxa_cubie_a7s_schematic_v1.10.pdf
> Link: https://github.com/radxa/allwinner-device/blob/6d911d1582dcccdb5a4c38be8d3c1ee851019795/configs/cubie_a7s/linux-5.15/board.dts#L372-L384
> Signed-off-by: Enzo Adriano <enzo.adriano.code@gmail.com>
> ---
> Changes since v5:
> - Distinguish the 5 V DCIN supply from the PMIC PS output and rename
>   the fixed LDO input regulator. Rename and move the 32 kHz clock.
> - Order the regulator nodes, set DCDC9 to 1.240 V and omit blank
>   lines before status. Keep ELDO1 without voltage bounds.
> - Remove cap-sdio-irq since sunxi-mmc already sets MMC_CAP_SDIO_IRQ.
> - Norman's v5 hardware report is linked from the cover. The revised
>   supply graph and DCDC9 constraint still need a hardware run.
>
>  arch/arm64/boot/dts/allwinner/Makefile        |   1 +
>  .../dts/allwinner/sun60i-a733-cubie-a7s.dts   | 333 ++++++++++++++++++
>  2 files changed, 334 insertions(+)
>  create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
>
> diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
> index da39f02252d4..9d1e740ff19e 100644
> --- a/arch/arm64/boot/dts/allwinner/Makefile
> +++ b/arch/arm64/boot/dts/allwinner/Makefile
> @@ -69,3 +69,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun55i-a527-cubie-a5e.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun55i-h728-x96qpro+.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-avaota-a1.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-orangepi-4a.dtb
> +dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7s.dtb
> diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
> new file mode 100644
> index 000000000000..98a878a2d739
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
> @@ -0,0 +1,333 @@
> +// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
> +/dts-v1/;
> +
> +#include "sun60i-a733.dtsi"
> +
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/leds/common.h>
> +
> +/ {
> +       model = "Radxa Cubie A7S";
> +       compatible = "radxa,cubie-a7s", "allwinner,sun60i-a733";
> +
> +       aliases {
> +               serial0 = &uart0;
> +       };
> +
> +       osc32k: clock-osc32k {
> +               compatible = "fixed-clock";
> +               #clock-cells = <0>;
> +               clock-frequency = <32768>;
> +       };

Alphabetically, "clock-osc32k" should come after "chosen".

> +       chosen {
> +               stdout-path = "serial0:115200n8";
> +       };

[...]

> +       reg_ldo_input: regulator-ldo2v5-input {
> +               compatible = "regulator-fixed";
> +               regulator-name = "ldo2v5-input";
> +               regulator-min-microvolt = <2400000>;
> +               regulator-max-microvolt = <2400000>;
> +               regulator-always-on;

Apparently we do not need regulator-always-on on uncontrolled fixed
regulators. The OS should just notice. Linux does. So please drop it.

> +               vin-supply = <&reg_ps>;
> +       };
> +
> +       /* AXP318W PS output, routed back to the PMIC and to UP11. */
> +       reg_ps: regulator-ps-output {
> +               compatible = "regulator-fixed";
> +               regulator-name = "ps-output";
> +               regulator-always-on;

Same here.

> +               vin-supply = <&reg_vcc5v0_sys>;
> +       };
> +
> +       reg_vcc5v0_sys: regulator-vcc5v0-sys {
> +               compatible = "regulator-fixed";
> +               regulator-name = "vcc5v0-sys";
> +               regulator-min-microvolt = <5000000>;
> +               regulator-max-microvolt = <5000000>;
> +               regulator-always-on;

And here.

[...]

> +&pio {
> +       vcc-pb-supply = <&reg_swout2>;  /* via VCC-IO */
> +       vcc-pc-supply = <&reg_cldo5>;
> +       vcc-pd-supply = <&reg_swout1>;
> +       vcc-pe-supply = <&reg_bldo1>;
> +       /* PF uses VCC-IO at 3.3 V, with CLDO5 as the 1.8 V input. */
> +       vcc-pf-supply = <&reg_swout2>;
> +       vcc-pg-supply = <&reg_aldo1>;
> +       vcc-ph-supply = <&reg_swout2>;
> +       vcc-pj-supply = <&reg_swout1>;
> +       vcc-pk-supply = <&reg_bldo1>;
> +};
> +
> +&r_i2c0 {
> +       pinctrl-names = "default";
> +       pinctrl-0 = <&r_i2c0_pl_pins>;
> +       status = "okay";
> +
> +       axp318w: pmic@36 {
> +               compatible = "x-powers,axp318w";
> +               reg = <0x36>;

> +               interrupt-parent = <&nmi_intc>;
> +               interrupts = <0 IRQ_TYPE_LEVEL_LOW>;

Use interrupts-extended. One line vs two.

> +               interrupt-controller;
> +               #interrupt-cells = <1>;
> +

Drop the empty line.

> +               aldo156in-supply = <&reg_ps>;
> +               aldo234in-supply = <&reg_aldo1>;
> +               bldoin-supply = <&reg_ldo_input>;
> +               cldoin-supply = <&reg_ldo_input>;
> +               dldoin-supply = <&reg_ps>;
> +               eldoin-supply = <&reg_dcdc9>;
> +               ips-supply = <&reg_ps>;
> +               vin19-supply = <&reg_ps>;
> +               vin23-supply = <&reg_ps>;
> +               vin45-supply = <&reg_ps>;
> +               vin678-supply = <&reg_ps>;
> +
> +               regulators {

[...]

> +                       reg_swout2: swout2 {
> +                               /* VCC-IO to the console and microSD. */
> +                               regulator-name = "vcc-io-card";
> +                               regulator-always-on;

Shouldn't the pin supplies handle the dependency though?


Thanks
ChenYu

  parent reply	other threads:[~2026-12-03 15:00 UTC|newest]

Thread overview: 48+ 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-12-01  5:18   ` Krzysztof Kozlowski
2026-11-26 20:35 ` [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
2026-11-27  4:29   ` Jernej Škrabec
2026-11-27 10:57     ` Andre Przywara
2026-11-27 18:06       ` Enzo Adriano
2026-11-28 14:59         ` Daniel Golle
2026-11-28 20:01           ` Norman Herms
2026-11-30 23:55             ` Enzo Adriano
2026-11-28 20:18           ` Enzo Adriano
2026-11-28 17:38       ` Jernej Škrabec
2026-11-27 11:28     ` Jerome Brunet
2026-11-27 16:37       ` Norman Herms
2026-11-27 17:06         ` Andre Przywara
2026-11-27 17:54           ` Norman Herms
2026-11-27 11:18   ` Jerome Brunet
2026-11-27 11:23     ` Andre Przywara
2026-11-27 11:26   ` Alastair D'Silva
2026-12-03 14:32   ` Chen-Yu Tsai
2026-11-26 20:35 ` [PATCH v6 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
2026-11-27  0:24   ` Andre Przywara
2026-11-27 16:17     ` Norman Herms
2026-11-27 16:30       ` Andre Przywara
2026-11-27 17:00         ` Norman Herms
2026-11-28 20:18         ` Enzo Adriano
2026-11-27 18:07     ` Enzo Adriano
2026-12-03 15:21     ` Chen-Yu Tsai
2026-11-27 16:14   ` Norman Herms
2026-11-27 18:07     ` Enzo Adriano
2026-12-03 15:00   ` Chen-Yu Tsai [this message]
2026-12-03 16:25     ` Enzo Adriano
2026-11-26 20:35 ` [PATCH v6 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board Enzo Adriano
     [not found]   ` <sashiko-outbox-236169@kernel.org>
2026-11-27 18:07     ` Enzo Adriano
2026-11-30 11:07       ` Vinicius Pedrosa
2026-12-03 15:05   ` Chen-Yu Tsai
2026-12-03 15:13   ` Chen-Yu Tsai
2026-11-26 20:36 ` [PATCH v6 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board Enzo Adriano
2026-11-27 11:33   ` Jerome Brunet
2026-11-27 11:56     ` Andre Przywara
2026-11-27 18:07       ` Enzo Adriano
2026-11-27 18:36         ` Andre Przywara
2026-12-01 17:00         ` Andre Przywara
2026-12-01 21:35           ` Enzo Adriano
2026-12-03 15:30   ` Chen-Yu Tsai
2026-12-03 15:58     ` Andre Przywara
2026-12-03 10:44 ` [PATCH v6 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Andre Przywara

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=CAGb2v64Z4ScPVdZD-tpQLUaPHDXo0yYSAmQ76eeb9gfQ2B-1Jw@mail.gmail.com \
    --to=wens@kernel.org \
    --cc=alex@sverdlin.org \
    --cc=andre.przywara@arm.com \
    --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 \
    /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

all inboxes | Powered by JetHome®