[PATCH 1/2] dt-bindings: pinctrl: add syscon property
Troy Mitchell
troy.mitchell at linux.spacemit.com
Tue Dec 23 01:11:11 PST 2025
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 is added to allow the pinctrl driver
to access this register.
Signed-off-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
---
.../devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml
index c5b0218ad6251f97b1f27089ffff724a7b0f69ae..4dc49c2cc1d52008ad89896ae0419091802cd2c4 100644
--- a/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml
@@ -32,6 +32,15 @@ properties:
resets:
maxItems: 1
+ spacemit,apbc:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ items:
+ - items:
+ - description: phandle to syscon that access the protected register
+ - description: offset of access secure registers
+ description:
+ A phandle to syscon with byte offset to access the protected register
+
patternProperties:
'-cfg$':
type: object
@@ -111,6 +120,7 @@ required:
- reg
- clocks
- clock-names
+ - spacemit,apbc
additionalProperties: false
@@ -128,6 +138,7 @@ examples:
clocks = <&syscon_apbc 42>,
<&syscon_apbc 94>;
clock-names = "func", "bus";
+ spacemit,apbc = <&syscon_apbc 0x50>;
uart0_2_cfg: uart0-2-cfg {
uart0-2-pins {
--
2.52.0
More information about the linux-riscv
mailing list