[linux,dev-4.13,v1,1/2] dt-binding: i2c: document NPCM7xx I2C bus DT bindings

Message ID 1515069094-4161-2-git-send-email-tmaimon77@gmail.com
State Not Applicable, archived
Headers show
Series
  • i2c: npcm: add NPCM7xx I2C bus
Related show

Commit Message

Tomer Maimon Jan. 4, 2018, 12:31 p.m.
Added device tree binding documentation for
Nuvoton NPCM7xx I2C bus.

Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
---
 .../devicetree/bindings/i2c/i2c-npcm7xx.txt        | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt

Patch

diff --git a/Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt b/Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt
new file mode 100644
index 000000000000..513584d33cab
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/i2c-npcm7xx.txt
@@ -0,0 +1,23 @@ 
+Nuvoton NPCM7XX I2C bus
+
+The NPCM750x includes sixteen I2C busses
+
+Required properties:
+- compatible      : "nuvoton,npcm750-i2c-bus" for Poleg NPCM750.
+- reg             : Offset and length of the register set for the device.
+- interrupts      : Contain the I2C interrupt with flags for falling edge.
+- clocks          : phandle of I2C reference clock.
+
+Optional:
+- bus-frequency   : Contain the I2C bus frequency,
+					the defualt I2C bus frequency is 100000.
+
+Example:
+
+i2c0: i2c-bus@f0080000 {
+	reg = <0xf0080000 0x1000>;
+	compatible = "nuvoton,npcm750-i2c-bus";
+	clocks = <&clk NPCM7XX_CLK_APB2>;
+	bus-frequency = <100000>;
+	interrupts = <0 64 4>;
+};