Skip to contentSkip to conversation

dt-bindings: i2c: nxp,pnx-i2c: Convert to dtschema

PATCH Applied Animesh Agarwal 2 participants 3 messages Mar 20, 2024 – Mar 22, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 dt-bindings: i2c: nxp,pnx-i2c: Convert to dtschema

Convert the NXP PNX I2C Controller bindings to DT schema. Keep only one example in DT schema to remove redundancy.

---
Changes in v3:
- Added a missing whitespace character in maintainers.
- Added parent directory in subject prefix.

Changes in v2:
- Changed the file name from nxp,i2c-pnx.yaml to nxp,pnx-i2c.yaml.
- Dropped properties which were already defined in the top level $ref.
- Dropped unused labels in example.

---
 .../devicetree/bindings/i2c/i2c-pnx.txt       | 34 --------------
 .../devicetree/bindings/i2c/nxp,pnx-i2c.yaml  | 46 +++++++++++++++++++
 2 files changed, 46 insertions(+), 34 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-pnx.txt
 create mode 100644 Documentation/devicetree/bindings/i2c/nxp,pnx-i2c.yaml
Documentation/devicetree/bindings/i2c/i2c-pnx.txt deleted +0 -34
deleted file mode 100644
index 2a59006cf79e..000000000000
@@ -1,34 +0,0 @@
-* NXP PNX I2C Controller
-
-Required properties:
-
- - reg: Offset and length of the register set for the device
- - compatible: should be "nxp,pnx-i2c"
- - interrupts: configure one interrupt line
- - #address-cells: always 1 (for i2c addresses)
- - #size-cells: always 0
-
-Optional properties:
-
- - clock-frequency: desired I2C bus clock frequency in Hz, Default: 100000 Hz
-
-Examples:
-
-	i2c1: i2c@400a0000 {
-		compatible = "nxp,pnx-i2c";
-		reg = <0x400a0000 0x100>;
-		interrupt-parent = <&mic>;
-		interrupts = <51 0>;
-		#address-cells = <1>;
-		#size-cells = <0>;
-	};
-
-	i2c2: i2c@400a8000 {
-		compatible = "nxp,pnx-i2c";
-		reg = <0x400a8000 0x100>;
-		interrupt-parent = <&mic>;
-		interrupts = <50 0>;
-		#address-cells = <1>;
-		#size-cells = <0>;
-		clock-frequency = <100000>;
-	};
Documentation/devicetree/bindings/i2c/nxp,pnx-i2c.yaml new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
2.44.0
maintainer Applied
#1 lore raw

Hi

Quoted 4 lines · Animesh Agarwal

Convert the NXP PNX I2C Controller bindings to DT schema. Keep only one example in DT schema to remove redundancy.

Applied to i2c/i2c-host on

git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git

Thank you,
Andi

Patches applied
===============
[1/1] dt-bindings: i2c: nxp,pnx-i2c: Convert to dtschema

      commit: e73b7060deb7da42f4e887cb726d0c7019a84cd0

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw
Quoted 11 lines · Andi Shyti

Applied to i2c/i2c-host on

git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git

Thank you,
Andi

Patches applied
===============
[1/1] dt-bindings: i2c: nxp,pnx-i2c: Convert to dtschema

      commit: e73b7060deb7da42f4e887cb726d0c7019a84cd0

Thanks Andi.