Skip to contentSkip to conversation

dt-bindings: i2c: tegra-bpmp: Convert to json-schema

PATCH Applied Thierry Reding 2 participants 3 messages Dec 8, 2021

Subsystems (3)

v3 of 4 Applied Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 dt-bindings: i2c: tegra-bpmp: Convert to json-schema

From: Thierry Reding <[email protected]>

Convert the NVIDIA Tegra186 (and later) BPMP I2C bindings from the free-form text format to json-schema.

---
Changes in v3:
- include i2c-controller.yaml and use unevaluatedProperties: false

Changes in v2:
- add missing additionalProperties: false

 .../bindings/i2c/nvidia,tegra186-bpmp-i2c.txt | 42 -----------------
 .../i2c/nvidia,tegra186-bpmp-i2c.yaml         | 45 +++++++++++++++++++
 2 files changed, 45 insertions(+), 42 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.txt
 create mode 100644 Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.yaml
Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.txt deleted +0 -42
deleted file mode 100644
index ab240e10debc..000000000000
@@ -1,42 +0,0 @@
-NVIDIA Tegra186 BPMP I2C controller
-
-In Tegra186, the BPMP (Boot and Power Management Processor) owns certain HW
-devices, such as the I2C controller for the power management I2C bus. Software
-running on other CPUs must perform IPC to the BPMP in order to execute
-transactions on that I2C bus. This binding describes an I2C bus that is
-accessed in such a fashion.
-
-The BPMP I2C node must be located directly inside the main BPMP node. See
-../firmware/nvidia,tegra186-bpmp.txt for details of the BPMP binding.
-
-This node represents an I2C controller. See ../i2c/i2c.txt for details of the
-core I2C binding.
-
-Required properties:
-- compatible:
-    Array of strings.
-    One of:
-    - "nvidia,tegra186-bpmp-i2c".
-- #address-cells: Address cells for I2C device address.
-    Single-cell integer.
-    Must be <1>.
-- #size-cells:
-    Single-cell integer.
-    Must be <0>.
-- nvidia,bpmp-bus-id:
-    Single-cell integer.
-    Indicates the I2C bus number this DT node represent, as defined by the
-    BPMP firmware.
-
-Example:
-
-bpmp {
-	...
-
-	i2c {
-		compatible = "nvidia,tegra186-bpmp-i2c";
-		#address-cells = <1>;
-		#size-cells = <0>;
-		nvidia,bpmp-bus-id = <5>;
-	};
-};
Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.yaml new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw
Quoted 10 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Convert the NVIDIA Tegra186 (and later) BPMP I2C bindings from the free-form text format to json-schema.

---
Changes in v3:
- include i2c-controller.yaml and use unevaluatedProperties: false

Quoted 8 lines

Changes in v2:
- add missing additionalProperties: false

 .../bindings/i2c/nvidia,tegra186-bpmp-i2c.txt | 42 -----------------
 .../i2c/nvidia,tegra186-bpmp-i2c.yaml         | 45 +++++++++++++++++++
 2 files changed, 45 insertions(+), 42 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.txt
 create mode 100644 Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.yaml

Rob, for context, I've split this one out of the 16-patch series since you had reviewed the other 15 already. This is the updated version that came out of the discussion we had regarding unevaluatedProperties not working correctly because of additionalProperties: true.

Thierry

maintainer Applied
#2 lore raw
In reply to Thierry Reding
Quoted 10 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Convert the NVIDIA Tegra186 (and later) BPMP I2C bindings from the free-form text format to json-schema.

---
Changes in v3:
- include i2c-controller.yaml and use unevaluatedProperties: false

Quoted 9 lines

Changes in v2:
- add missing additionalProperties: false

 .../bindings/i2c/nvidia,tegra186-bpmp-i2c.txt | 42 -----------------
 .../i2c/nvidia,tegra186-bpmp-i2c.yaml         | 45 +++++++++++++++++++
 2 files changed, 45 insertions(+), 42 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.txt
 create mode 100644 Documentation/devicetree/bindings/i2c/nvidia,tegra186-bpmp-i2c.yaml

Applied, thanks!