[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250213020900.745551-4-inochiama@gmail.com>
Date: Thu, 13 Feb 2025 10:08:56 +0800
From: Inochi Amaoto <inochiama@...il.com>
To: Philipp Zabel <p.zabel@...gutronix.de>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Chen Wang <unicorn_wang@...look.com>,
Inochi Amaoto <inochiama@...il.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Guo Ren <guoren@...nel.org>,
Uwe Kleine-König <u.kleine-koenig@...libre.com>
Cc: devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
sophgo@...ts.linux.dev,
linux-riscv@...ts.infradead.org,
Yixun Lan <dlan@...too.org>,
Longbin Li <looong.bin@...il.com>
Subject: [PATCH 3/4] dt-bindings: reset: simple: migrate sophgo sg2042 reset controller
Migrate SG2042 reset controller to reuse the simple device binding.
Signed-off-by: Inochi Amaoto <inochiama@...il.com>
---
.../bindings/reset/reset-simple.yaml | 10 ++++--
.../bindings/reset/sophgo,sg2042-reset.yaml | 35 -------------------
2 files changed, 7 insertions(+), 38 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/reset/sophgo,sg2042-reset.yaml
diff --git a/Documentation/devicetree/bindings/reset/reset-simple.yaml b/Documentation/devicetree/bindings/reset/reset-simple.yaml
index 77584e23e8e8..1c86b67ae190 100644
--- a/Documentation/devicetree/bindings/reset/reset-simple.yaml
+++ b/Documentation/devicetree/bindings/reset/reset-simple.yaml
@@ -16,9 +16,13 @@ description:
properties:
compatible:
- enum:
- - reset-simple-high
- - reset-simple-low
+ oneOf:
+ - items:
+ - enum:
+ - sophgo,sg2042-reset
+ - const: reset-simple-low
+ - const: reset-simple-high
+ - const: reset-simple-low
reg:
maxItems: 1
diff --git a/Documentation/devicetree/bindings/reset/sophgo,sg2042-reset.yaml b/Documentation/devicetree/bindings/reset/sophgo,sg2042-reset.yaml
deleted file mode 100644
index 76e1931f0908..000000000000
--- a/Documentation/devicetree/bindings/reset/sophgo,sg2042-reset.yaml
+++ /dev/null
@@ -1,35 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/reset/sophgo,sg2042-reset.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: Sophgo SG2042 SoC Reset Controller
-
-maintainers:
- - Chen Wang <unicorn_wang@...look.com>
-
-properties:
- compatible:
- const: sophgo,sg2042-reset
-
- reg:
- maxItems: 1
-
- "#reset-cells":
- const: 1
-
-required:
- - compatible
- - reg
- - "#reset-cells"
-
-additionalProperties: false
-
-examples:
- - |
- rstgen: reset-controller@c00 {
- compatible = "sophgo,sg2042-reset";
- reg = <0xc00 0xc>;
- #reset-cells = <1>;
- };
--
2.48.1
Powered by blists - more mailing lists