[PATCH 1/2] dt-bindings: arm: airoha: Add the pbus-csr node for EN7581 SoC

Lorenzo Bianconi
2025-01-15T17:33:33Z

This patch adds the pbus-csr document bindings for EN7581 SoC.
The airoha pbus-csr block provides a configuration interface for the
PBUS controller used to detect if a given address is on PCIE0, PCIE1 or
PCIE2.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
.../bindings/arm/airoha,en7581-pbus-csr.yaml | 41 ++++++++++++++++++++++
1 file changed, 41 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/airoha,en7581-pbus-csr.yaml b/Documentation/devicetree/bindings/arm/airoha,en7581-pbus-csr.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..80b237e195cd3607645efe3fda1eb6152134481c
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/airoha,en7581-pbus-csr.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/airoha,en7581-pbus-csr.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Airoha Pbus CSR Controller for EN7581 SoC
+
+maintainers:
+ - Lorenzo Bianconi <lorenzo@kernel.org>
+
+description:
+ The airoha pbus-csr block provides a configuration interface for the PBUS
+ controller used to detect if a given address is on PCIE0, PCIE1 or PCIE2.
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - airoha,en7581-pbus-csr
+ - const: syscon
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ soc {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ syscon@1fbe3400 {
+ compatible = "airoha,en7581-pbus-csr", "syscon";
+ reg = <0x0 0x1fbe3400 0x0 0xff>;
+ };
+ };

--
2.48.0