<div dir="auto">The example uses "bus-frequency" while description says "clock-frequency" for bus speed.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 10, 2020, 12:27 Tali Perry <<a href="mailto:tali.perry1@gmail.com">tali.perry1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Added device tree binding documentation for Nuvoton BMC<br>
NPCM I2C controller.<br>
<br>
Signed-off-by: Tali Perry <<a href="mailto:tali.perry1@gmail.com" target="_blank" rel="noreferrer">tali.perry1@gmail.com</a>><br>
---<br>
 .../bindings/i2c/nuvoton,npcm7xx-i2c.yaml     | 62 +++++++++++++++++++<br>
 1 file changed, 62 insertions(+)<br>
 create mode 100644 Documentation/devicetree/bindings/i2c/nuvoton,npcm7xx-i2c.yaml<br>
<br>
diff --git a/Documentation/devicetree/bindings/i2c/nuvoton,npcm7xx-i2c.yaml b/Documentation/devicetree/bindings/i2c/nuvoton,npcm7xx-i2c.yaml<br>
new file mode 100644<br>
index 000000000000..d6f553154388<br>
--- /dev/null<br>
+++ b/Documentation/devicetree/bindings/i2c/nuvoton,npcm7xx-i2c.yaml<br>
@@ -0,0 +1,62 @@<br>
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause<br>
+%YAML 1.2<br>
+---<br>
+$id: <a href="http://devicetree.org/schemas/i2c/nuvoton,npcm7xx-i2c.yaml#" rel="noreferrer noreferrer" target="_blank">http://devicetree.org/schemas/i2c/nuvoton,npcm7xx-i2c.yaml#</a><br>
+$schema: <a href="http://devicetree.org/meta-schemas/core.yaml#" rel="noreferrer noreferrer" target="_blank">http://devicetree.org/meta-schemas/core.yaml#</a><br>
+<br>
+title: nuvoton NPCM7XX I2C Controller Device Tree Bindings<br>
+<br>
+description: |<br>
+  The NPCM750x includes sixteen I2C bus controllers. All Controllers support<br>
+  both master and slave mode. Each controller can switch between master and slave<br>
+  at run time (i.e. IPMB mode). Each controller has two 16 byte HW FIFO for TX and<br>
+  RX.<br>
+<br>
+maintainers:<br>
+  - Tali Perry <<a href="mailto:tali.perry1@gmail.com" target="_blank" rel="noreferrer">tali.perry1@gmail.com</a>><br>
+<br>
+properties:<br>
+  compatible:<br>
+      - const: nuvoton,npcm7xx-i2c<br>
+<br>
+  reg:<br>
+    maxItems: 1<br>
+<br>
+  interrupts:<br>
+    maxItems: 1<br>
+<br>
+  clocks:<br>
+    maxItems: 1<br>
+    items:<br>
+      - description: Reference clock for the I2C bus<br>
+<br>
+  clock-frequency:<br>
+    maxItems: 1<br>
+    default: 100000<br>
+    enum: [ 100000, 400000, 1000000 ]<br>
+    description:<br>
+      SCL frequency to use (in Hz). If omitted, 100kHz is used.<br>
+<br>
+required:<br>
+  - compatible<br>
+  - reg<br>
+  - interrupts<br>
+<br>
+allOf:<br>
+  - $ref: /schemas/i2c/i2c-controller.yaml#<br>
+<br>
+unevaluatedProperties: false<br>
+<br>
+examples:<br>
+  - |<br>
+    i2c0: i2c@80000 {<br>
+        compatible = "nuvoton,npcm750-i2c";<br>
+        reg = <0x80000 0x1000>;<br>
+        clocks = <&clk NPCM7XX_CLK_APB2>;<br>
+        bus-frequency = <100000>;<br>
+        interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;<br>
+        pinctrl-names = "default";<br>
+        pinctrl-0 = <&smb0_pins>;<br>
+    };<br>
+<br>
+...<br>
-- <br>
2.22.0<br>
<br>
</blockquote></div>