[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240106101435.2927116-2-bhavin.sharma@siliconsignals.io>
Date: Sat, 6 Jan 2024 15:44:34 +0530
From: Bhavin Sharma <bhavin.sharma@...iconsignals.io>
To: sre@...nel.org
Cc: Bhavin Sharma <bhavin.sharma@...iconsignals.io>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
linux-pm@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] dt-bindings: power: supply: stc3117: Convert to DT schema format
Convert the binding to DT schema format.
Signed-off-by: Bhavin Sharma <bhavin.sharma@...iconsignals.io>
---
.../bindings/power/supply/stc3117-fg.yaml | 42 +++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/supply/stc3117-fg.yaml
diff --git a/Documentation/devicetree/bindings/power/supply/stc3117-fg.yaml b/Documentation/devicetree/bindings/power/supply/stc3117-fg.yaml
new file mode 100644
index 000000000000..2c33132ab785
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/supply/stc3117-fg.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: GPL-2.0-only
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: STMicroelectronics STC3117 Fuel Gauge Unit Power Supply Bindings
+
+maintainers:
+ - Bhavin Sharma <bhavin.sharma@...iconsignals.io>
+ - Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>
+
+allOf:
+ - $ref: power-supply.yaml#
+
+properties:
+ compatible:
+ enum:
+ - st,stc3117-fgu
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ &i2c6 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ st3117: stc3117@70 {
+ compatible = "st,stc3117-fgu";
+ reg = <0x70>;
+ status = "okay";
+ };
+ };
+
--
2.34.1
Powered by blists - more mailing lists