]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: power: Add Support for Allwinner A733 PCK600 Power Domain Controller
authorYuanshen Cao <alex.caoys@gmail.com>
Thu, 5 Mar 2026 03:34:07 +0000 (03:34 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 18 Mar 2026 18:09:25 +0000 (19:09 +0100)
The A733 PCK600, similar to A523 PCK600, is likely a customized version
of ARM PCK-600 power controller. They share the same BSP drivers in the
package provided by Radxa, with the only difference being the lack of
resets.

Therefore, document A733 compatible and make resets required only for
the other models, as well as prepare the PD definitions for future
device trees.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Yuanshen Cao <alex.caoys@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Documentation/devicetree/bindings/power/allwinner,sun20i-d1-ppu.yaml
include/dt-bindings/power/allwinner,sun60i-a733-pck-600.h [new file with mode: 0644]

index a28e75a9cb6a575eadc0c3a3e6b024c186de3601..b97361ce2a0005244740c44d3875acee5d86239a 100644 (file)
@@ -20,6 +20,7 @@ properties:
       - allwinner,sun20i-d1-ppu
       - allwinner,sun55i-a523-pck-600
       - allwinner,sun55i-a523-ppu
+      - allwinner,sun60i-a733-pck-600
 
   reg:
     maxItems: 1
@@ -38,9 +39,23 @@ required:
   - compatible
   - reg
   - clocks
-  - resets
   - '#power-domain-cells'
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - allwinner,sun8i-v853-ppu
+              - allwinner,sun20i-d1-ppu
+              - allwinner,sun55i-a523-pck-600
+              - allwinner,sun55i-a523-ppu
+
+    then:
+      required:
+        - resets
+
 additionalProperties: false
 
 examples:
diff --git a/include/dt-bindings/power/allwinner,sun60i-a733-pck-600.h b/include/dt-bindings/power/allwinner,sun60i-a733-pck-600.h
new file mode 100644 (file)
index 0000000..cf476a0
--- /dev/null
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+
+#ifndef _DT_BINDINGS_POWER_SUN60I_A733_PCK600_H_
+#define _DT_BINDINGS_POWER_SUN60I_A733_PCK600_H_
+
+#define PD_VI                  0
+#define PD_DE_SYS              1
+#define PD_VE_DEC              2
+#define PD_VE_ENC              3
+#define PD_NPU                 4
+#define PD_GPU_TOP             5
+#define PD_GPU_CORE            6
+#define PD_PCIE                        7
+#define PD_USB2                        8
+#define PD_VO                  9
+#define PD_VO1                 10
+
+#endif /* _DT_BINDINGS_POWER_SUN60I_A733_PCK600_H_ */