[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240320020549.71810-1-alexey.klimov@linaro.org>
Date: Wed, 20 Mar 2024 02:05:47 +0000
From: Alexey Klimov <alexey.klimov@...aro.org>
To: sre@...nel.org,
robh@...nel.org,
krzysztof.kozlowski+dt@...aro.org,
linux-pm@...r.kernel.org,
devicetree@...r.kernel.org,
peter.griffin@...aro.org,
robh+dt@...nel.org
Cc: conor+dt@...nel.org,
linux-samsung-soc@...r.kernel.org,
semen.protsenko@...aro.org,
linux-kernel@...r.kernel.org,
klimov.linux@...il.com,
kernel-team@...roid.com,
tudor.ambarus@...aro.org,
andre.draszik@...aro.org,
saravanak@...gle.com,
willmcvicker@...gle.com,
alexey.klimov@...aro.org,
alim.akhtar@...sung.com,
linux-arm-kernel@...ts.infradead.org,
elder@...aro.org
Subject: [PATCH 1/3] dt-bindings: power: reset: add gs101 poweroff bindings
Signed-off-by: Alexey Klimov <alexey.klimov@...aro.org>
---
.../power/reset/google,gs101-poweroff.yaml | 54 +++++++++++++++++++
1 file changed, 54 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml
diff --git a/Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml b/Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml
new file mode 100644
index 000000000000..d704bf28294a
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/reset/google,gs101-poweroff.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Google GS101 poweroff driver
+
+maintainers:
+ - Alexey Klimov <alexey.klimov@...aro.org>
+
+description: |+
+ This is a Google Tensor gs101 poweroff driver using custom regmap
+ to map the poweroff register. The poweroff itself is performed with
+ a write to the poweroff register from a privileged mode. Since generic
+ syscon does not support this, the specific one is required.
+ The write to the poweroff register is defined by the register map pointed
+ by syscon reference plus the offset with the value and mask defined
+ in the poweroff node.
+ Default will be little endian mode, 32 bit access only.
+
+properties:
+ compatible:
+ const: google,gs101-poweroff
+
+ mask:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: Update only the register bits defined by the mask (32 bit).
+
+ offset:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: Offset in the register map for the poweroff register (in bytes).
+
+ samsung,syscon-phandle:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ Phandle to the PMU system controller node.
+
+required:
+ - compatible
+ - offset
+ - mask
+ - samsung,syscon-phandle
+
+additionalProperties: false
+
+examples:
+ - |
+ poweroff {
+ compatible = "google,gs101-poweroff";
+ samsung,syscon-phandle = <&pmu_syscon>;
+ offset = <0x10>;
+ mask = <0x42>;
+ };
--
2.43.0
Powered by blists - more mailing lists