Skip to content

Commit 4083d8d

Browse files
TroyMitchell911Yixun Lan
authored andcommitted
riscv: dts: spacemit: pinctrl: update register and IO power
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> Link: https://lore.kernel.org/r/20260108-kx-pinctrl-aib-io-pwr-domain-v2-3-6bcb46146e53@linux.spacemit.com Signed-off-by: Yixun Lan <dlan@kernel.org>
1 parent 7a61318 commit 4083d8d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • arch/riscv/boot/dts/spacemit

arch/riscv/boot/dts/spacemit/k1.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,11 @@
628628

629629
pinctrl: pinctrl@d401e000 {
630630
compatible = "spacemit,k1-pinctrl";
631-
reg = <0x0 0xd401e000 0x0 0x400>;
631+
reg = <0x0 0xd401e000 0x0 0x1000>;
632632
clocks = <&syscon_apbc CLK_AIB>,
633633
<&syscon_apbc CLK_AIB_BUS>;
634634
clock-names = "func", "bus";
635+
spacemit,apbc = <&syscon_apbc>;
635636
};
636637

637638
pwm8: pwm@d4020000 {

0 commit comments

Comments
 (0)