From: Yixun Lan <dlan@kernel.org>
To: Conor Dooley <conor@kernel.org>
Cc: Iker Pedrosa <ikerpedrosam@gmail.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Yixun Lan <dlan@gentoo.org>,
Adrian Hunter <adrian.hunter@intel.com>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Michael Opdenacker <michael.opdenacker@rootcommit.com>,
Javier Martinez Canillas <javierm@redhat.com>,
linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
linux-riscv@lists.infradead.org, spacemit@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 01/10] dt-bindings: mmc: spacemit,sdhci: add AIB voltage switching registers
Date: Tue, 3 Mar 2026 06:38:03 +0800 [thread overview]
Message-ID: <20260302223803-GKB289813@kernel.org> (raw)
In-Reply-To: <20260302-crewman-faster-9fd00b62e30c@spud>
Hi Iker, Conor,
On 18:25 Mon 02 Mar , Conor Dooley wrote:
> On Mon, Mar 02, 2026 at 04:13:22PM +0100, Iker Pedrosa wrote:
> > Add SpacemiT K1 AIB register properties for UHS voltage switching
> > support:
> >
> > - spacemit,aib-mmc1-io-reg: AIB MMC1 IO register address for voltage
> > switching
> > - spacemit,apbc-asfar-reg: APBC ASFAR register address for AIB access
> > - spacemit,apbc-assar-reg: APBC ASSAR register address for AIB access
> >
> > These properties enable the driver to perform voltage switching between
> > 3.3V and 1.8V required for UHS SD card modes.
> >
> > Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com>
> > ---
> > Documentation/devicetree/bindings/mmc/spacemit,sdhci.yaml | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/mmc/spacemit,sdhci.yaml b/Documentation/devicetree/bindings/mmc/spacemit,sdhci.yaml
> > index 13d9382058fbc1c12be1024d1c550f04a825673c..4d6590aa8262009b6e5697a04b45cf3736c0fa42 100644
> > --- a/Documentation/devicetree/bindings/mmc/spacemit,sdhci.yaml
> > +++ b/Documentation/devicetree/bindings/mmc/spacemit,sdhci.yaml
> > @@ -32,6 +32,18 @@ properties:
> > - const: core
> > - const: io
> >
> > + spacemit,aib-mmc1-io-reg:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + description: AIB MMC1 IO register address for voltage switching
> > +
> > + spacemit,apbc-asfar-reg:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + description: APBC ASFAR register address for AIB access
> > +
> > + spacemit,apbc-assar-reg:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + description: APBC ASSAR register address for AIB access
> > +
> > required:
> > - compatible
> > - reg
> > @@ -50,4 +62,7 @@ examples:
> > interrupt-parent = <&plic>;
> > clocks = <&clk_apmu 10>, <&clk_apmu 13>;
> > clock-names = "core", "io";
> > + spacemit,aib-mmc1-io-reg = <0xd401e81c>;
>
> This looks very very wrong to me. This is part of the pinctrl
> reservation:
> pinctrl: pinctrl@d401e000 {
> compatible = "spacemit,k1-pinctrl";
> reg = <0x0 0xd401e000 0x0 0x1000>;
> clocks = <&syscon_apbc CLK_AIB>,
> <&syscon_apbc CLK_AIB_BUS>;
> clock-names = "func", "bus";
> spacemit,apbc = <&syscon_apbc>;
> };
> so if you need to change something here, you need to do it via pinctrl.
>
> > + spacemit,apbc-asfar-reg = <0xd4015050>;
> > + spacemit,apbc-assar-reg = <0xd4015054>;
>
> These two are the apbc syscon:
> syscon_apbc: system-controller@d4015000 {
> compatible = "spacemit,k1-syscon-apbc";
> reg = <0x0 0xd4015000 0x0 0x1000>;
> clocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>,
> <&vctcxo_24m>;
> clock-names = "osc", "vctcxo_1m", "vctcxo_3m",
> "vctcxo_24m";
> #clock-cells = <1>;
> #reset-cells = <1>;
> };
> so add a phandle to the syscon (like the pinctrl currently has) and
> access these via its regmap. What you've got here is a non-runner,
> sorry.
We've gained this support in pinctrl which already accepted in mainline,
it's done as Conor suggested here, so you can drop these properties along
with the patch [5/10], see
https://lore.kernel.org/all/20260108-kx-pinctrl-aib-io-pwr-domain-v2-0-6bcb46146e53@linux.spacemit.com/
> pw-bot: changes-requested
>
> Thanks,
> Conor.
--
Yixun Lan (dlan)
next prev parent reply other threads:[~2026-03-02 22:38 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 15:13 [PATCH 00/10] riscv: spacemit: enable SD card support with UHS modes for OrangePi RV2 Iker Pedrosa
2026-03-02 15:13 ` [PATCH 01/10] dt-bindings: mmc: spacemit,sdhci: add AIB voltage switching registers Iker Pedrosa
2026-03-02 18:25 ` Conor Dooley
2026-03-02 22:38 ` Yixun Lan [this message]
2026-03-03 13:51 ` Iker Pedrosa
2026-03-03 22:28 ` Yixun Lan
2026-03-04 8:10 ` Iker Pedrosa
2026-03-02 15:13 ` [PATCH 02/10] mmc: sdhci-of-k1: enable essential clock infrastructure for SD operation Iker Pedrosa
2026-03-07 2:29 ` Yixun Lan
2026-03-09 10:32 ` Iker Pedrosa
2026-03-02 15:13 ` [PATCH 03/10] mmc: sdhci-of-k1: add regulator framework support Iker Pedrosa
2026-03-03 4:11 ` Yao Zi
2026-03-03 13:58 ` Iker Pedrosa
2026-03-09 6:34 ` Yixun Lan
2026-03-02 15:13 ` [PATCH 04/10] mmc: sdhci-of-k1: add pinctrl state switching for voltage changes Iker Pedrosa
2026-03-02 15:13 ` [PATCH 05/10] mmc: sdhci-of-k1: add AIB register support for voltage switching Iker Pedrosa
2026-03-02 15:13 ` [PATCH 06/10] mmc: sdhci-of-k1: add SDR tuning infrastructure Iker Pedrosa
2026-03-02 15:13 ` [PATCH 07/10] mmc: sdhci-of-k1: add comprehensive SDR tuning support Iker Pedrosa
2026-03-02 15:13 ` [PATCH 08/10] riscv: dts: spacemit: k1: add SD card controller and pinctrl support Iker Pedrosa
2026-03-02 15:13 ` [PATCH 09/10] riscv: dts: spacemit: k1-orangepi-rv2: add PMIC and power infrastructure Iker Pedrosa
2026-03-02 15:13 ` [PATCH 10/10] riscv: dts: spacemit: k1-orangepi-rv2: add SD card support with UHS modes Iker Pedrosa
2026-03-04 14:06 ` [PATCH 00/10] riscv: spacemit: enable SD card support with UHS modes for OrangePi RV2 Michael Opdenacker
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=20260302223803-GKB289813@kernel.org \
--to=dlan@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=ikerpedrosam@gmail.com \
--cc=javierm@redhat.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=michael.opdenacker@rootcommit.com \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=spacemit@lists.linux.dev \
--cc=ulf.hansson@linaro.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