Change the size of the reg register to 0x1000 to match the hardware.
This register range covers the IO power domain's register addresses.
The IO power domain registers are protected. In order to access the
protected IO power domain registers, a valid unlock sequence must be
performed by writing the required keys to the AIB Secure Access Register
(ASAR).
The ASAR register resides within the APBC register address space.
A corresponding syscon property `spacemit,apbc` is added to allow
the pinctrl driver to access this register.
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
---
arch/riscv/boot/dts/spacemit/k1.dtsi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi
index 7818ca4979b6a7755722919a5958512aa11950ab..f05429723d1bbbd718941549782461c49196ecef 100644
--- a/arch/riscv/boot/dts/spacemit/k1.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k1.dtsi
@@ -565,10 +565,11 @@ i2c8: i2c@d401d800 {
pinctrl: pinctrl@d401e000 {
compatible = "spacemit,k1-pinctrl";
- reg = <0x0 0xd401e000 0x0 0x400>;
+ reg = <0x0 0xd401e000 0x0 0x1000>;
clocks = <&syscon_apbc CLK_AIB>,
<&syscon_apbc CLK_AIB_BUS>;
clock-names = "func", "bus";
+ spacemit,apbc = <&syscon_apbc>;
};
pwm8: pwm@d4020000 {
--
2.52.0
On Thu, Jan 8, 2026 at 7:43 AM Troy Mitchell <troy.mitchell@linux.spacemit.com> wrote: > Change the size of the reg register to 0x1000 to match the hardware. > This register range covers the IO power domain's register addresses. > > The IO power domain registers are protected. In order to access the > protected IO power domain registers, a valid unlock sequence must be > performed by writing the required keys to the AIB Secure Access Register > (ASAR). > > The ASAR register resides within the APBC register address space. > A corresponding syscon property `spacemit,apbc` is added to allow > the pinctrl driver to access this register. > > Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Acked-by: Linus Walleij <linusw@kernel.org> I have applied patches 1 & 2 in the series. Yours, Linus Walleij
Hi Troy,
if there is one more iteration, I'd suggest to adjust the patch titile,
to make it slightly more specific
riscv: dts: spacemit: pinctrl: update register and IO power
On 14:42 Thu 08 Jan , Troy Mitchell wrote:
> Change the size of the reg register to 0x1000 to match the hardware.
> This register range covers the IO power domain's register addresses.
>
> The IO power domain registers are protected. In order to access the
> protected IO power domain registers, a valid unlock sequence must be
> performed by writing the required keys to the AIB Secure Access Register
> (ASAR).
>
> The ASAR register resides within the APBC register address space.
> A corresponding syscon property `spacemit,apbc` is added to allow
> the pinctrl driver to access this register.
>
> Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
> ---
> arch/riscv/boot/dts/spacemit/k1.dtsi | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi
> index 7818ca4979b6a7755722919a5958512aa11950ab..f05429723d1bbbd718941549782461c49196ecef 100644
> --- a/arch/riscv/boot/dts/spacemit/k1.dtsi
> +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi
> @@ -565,10 +565,11 @@ i2c8: i2c@d401d800 {
>
> pinctrl: pinctrl@d401e000 {
> compatible = "spacemit,k1-pinctrl";
> - reg = <0x0 0xd401e000 0x0 0x400>;
> + reg = <0x0 0xd401e000 0x0 0x1000>;
> clocks = <&syscon_apbc CLK_AIB>,
> <&syscon_apbc CLK_AIB_BUS>;
> clock-names = "func", "bus";
> + spacemit,apbc = <&syscon_apbc>;
> };
>
> pwm8: pwm@d4020000 {
>
> --
> 2.52.0
>
--
Yixun Lan (dlan)
On Thu, Jan 08, 2026 at 03:37:22PM +0800, Yixun Lan wrote:
> Hi Troy,
>
> if there is one more iteration, I'd suggest to adjust the patch titile,
> to make it slightly more specific
>
> riscv: dts: spacemit: pinctrl: update register and IO power
Thanks for you pointing it out.
I'll use it if there is one more interation.
But I just want to confirm, if there are no further iterations,
you will be making the title change before applying it to your tree, right?
- Troy
© 2016 - 2026 Red Hat, Inc.