From: Yao Zi <me@ziyao.cc>
To: Conor Dooley <conor@kernel.org>, Raymond Mao <raymondmaoca@gmail.com>
Cc: u-boot@lists.denx.de, uboot@riscstar.com,
u-boot-spacemit@groups.io, raymond.mao@riscstar.com,
rick@andestech.com, ycliang@andestech.com, trini@konsulko.com,
lukma@denx.de, hs@nabladev.com, jh80.chung@samsung.com,
peng.fan@nxp.com, xypron.glpk@gmx.de, randolph@andestech.com,
dlan@gentoo.org, junhui.liu@pigmoral.tech,
neil.armstrong@linaro.org, quentin.schulz@cherry.de,
samuel@sholland.org
Subject: Re: [PATCH 04/16] dts: k1: import pinctrl dts file from upstream folder
Date: Thu, 30 Apr 2026 01:26:38 +0000 [thread overview]
Message-ID: <afKvzj0yoJ85-5VI@pie> (raw)
In-Reply-To: <20260429-glare-anybody-16c98d01184e@spud>
On Wed, Apr 29, 2026 at 08:48:39PM +0100, Conor Dooley wrote:
> On Wed, Apr 22, 2026 at 10:31:00AM -0400, Raymond Mao wrote:
> > From: Raymond Mao <raymond.mao@riscstar.com>
> >
> > Import k1-pinctrl.dtsi from upstream folder.
>
> Why doesn't the platform just use the upstream dts directly?
AFAIK, U-Boot's reset driver for SpacemiT K1 predates land of the
kernel side driver, and follows a complete different (and to me,
broken since it combines completely unrelated MMIO regions) ABI.
U-Boot's version,
reset: reset-controller@d4050000 {
compatible = "spacemit,k1-reset";
reg = <0x0 0xd4050000 0x0 0x209c>,
<0x0 0xd4282800 0x0 0x400>,
<0x0 0xd4015000 0x0 0x1000>,
<0x0 0xd4090000 0x0 0x1000>,
<0x0 0xd4282c00 0x0 0x400>,
<0x0 0xd8440000 0x0 0x98>,
<0x0 0xc0000000 0x0 0x4280>,
<0x0 0xf0610000 0x0 0x20>;
reg-names = "mpmu", "apmu", "apbc", "apbs", "ciu", "dciu", "ddrc", "apbc2";
#reset-cells = <1>;
status = "disabled";
};
Kernel's version,
syscon_apmu: system-controller@d4282800 {
compatible = "spacemit,k1-syscon-apmu";
reg = <0x0 0xd4282800 0x0 0x400>;
clocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>,
<&vctcxo_24m>;
clock-names = "osc", "vctcxo_1m", "vctcxo_3m",
"vctcxo_24m";
#clock-cells = <1>;
#power-domain-cells = <1>;
#reset-cells = <1>;
};
(and many other independent system-controller nodes, each for a
distinct MMIO region)
I suspect we have to deal with the difference before switching to
upstream devicetree, since I2C controllers introduced in this series
do depend on resets.
Regards,
Yao Zi
next prev parent reply other threads:[~2026-04-30 1:27 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-22 14:30 [PATCH 00/16] Add PIN and SPI support for Spacemit K1 Raymond Mao
2026-04-22 14:30 ` [PATCH 01/16] gpio: add gpio driver for Spacemit K1 SoC Raymond Mao
2026-04-22 14:30 ` [PATCH 02/16] pinctrl: add pinctrl " Raymond Mao
2026-04-22 14:30 ` [PATCH 03/16] dts: k1: fix gpio ranges Raymond Mao
2026-04-22 14:31 ` [PATCH 04/16] dts: k1: import pinctrl dts file from upstream folder Raymond Mao
2026-04-29 19:48 ` Conor Dooley
2026-04-30 1:26 ` Yao Zi [this message]
2026-04-30 5:21 ` Heinrich Schuchardt
2026-04-30 14:33 ` Tom Rini
2026-05-07 11:59 ` Guodong Xu
2026-05-07 14:05 ` Tom Rini
2026-04-22 14:31 ` [PATCH 05/16] dts: k1: remove embedded subnode in pin configs Raymond Mao
2026-04-22 14:31 ` [PATCH 06/16] configs: k1: enable pinctrl and gpio Raymond Mao
2026-04-22 14:31 ` [PATCH 07/16] mtd: spi: select SPL_SPI_FLASH_TINY in SPL stage Raymond Mao
2026-04-22 14:31 ` [PATCH 08/16] mtd: spi: enable spi_nor_remove() in soft reset config Raymond Mao
2026-04-22 14:31 ` [PATCH 09/16] spi: fsl: add support for Spacemit K1 SoC Raymond Mao
2026-04-22 14:31 ` [PATCH 10/16] dts: k1: add QSPI controller support Raymond Mao
2026-04-22 14:31 ` [PATCH 11/16] board: k1: enable SPI NOR flash in SPL Raymond Mao
2026-04-22 14:31 ` [PATCH 12/16] riscv: binman: Always set default configuration in FIT image Raymond Mao
2026-04-22 14:31 ` [PATCH 13/16] spacemit: k1: append RISCV_MMODE_TIMERBASE Raymond Mao
2026-04-22 14:31 ` [PATCH 14/16] spacemit: k1: Add multiple device tree support Raymond Mao
2026-04-22 14:31 ` [PATCH 15/16] spacemit: k1: Add support for mmc regulator initialization Raymond Mao
2026-04-22 14:31 ` [PATCH 16/16] spacemit: k1: rename device tree prefix from "k1-" to "k1_" Raymond Mao
2026-04-29 19:42 ` Conor Dooley
2026-04-29 19:51 ` Heinrich Schuchardt
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=afKvzj0yoJ85-5VI@pie \
--to=me@ziyao.cc \
--cc=conor@kernel.org \
--cc=dlan@gentoo.org \
--cc=hs@nabladev.com \
--cc=jh80.chung@samsung.com \
--cc=junhui.liu@pigmoral.tech \
--cc=lukma@denx.de \
--cc=neil.armstrong@linaro.org \
--cc=peng.fan@nxp.com \
--cc=quentin.schulz@cherry.de \
--cc=randolph@andestech.com \
--cc=raymond.mao@riscstar.com \
--cc=raymondmaoca@gmail.com \
--cc=rick@andestech.com \
--cc=samuel@sholland.org \
--cc=trini@konsulko.com \
--cc=u-boot-spacemit@groups.io \
--cc=u-boot@lists.denx.de \
--cc=uboot@riscstar.com \
--cc=xypron.glpk@gmx.de \
--cc=ycliang@andestech.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 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.