new file mode 100644
@@ -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@linaro.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>;
+ };
Signed-off-by: Alexey Klimov <alexey.klimov@linaro.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