# \[PATCH v3 1/3\] i2c: hix5hd2: add devicetree documentation

- Subsystems: OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, I2C SUBSYSTEM HOST DRIVERS, THE REST
- Maintainers: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Andi Shyti, Linus Torvalds
- List: linux-devicetree
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-devicetree/2014/09/8097787/t

## \[PATCH v3 1/3\] i2c: hix5hd2: add devicetree documentation

- From: Zhangfei Gao \<hidden\>
- Date: 2014-09-30 12:20:26 
- Message: https://ratatoskr.run/linux-devicetree/2014/09/8097787.md

```text
From: Wei Yan <redacted>

Signed-off-by: Wei Yan <redacted>
Signed-off-by: Zhangfei Gao <redacted>
---
 .../devicetree/bindings/i2c/i2c-hix5hd2.txt        |   25 ++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt

diff --git a/Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt b/Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt
new file mode 100644
index 0000000..660b7ba
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt
@@ -0,0 +1,25 @@
+I2C for Hisilicon hix5hd2 chipset platform
+
+Required properties:
+- compatible: Must be "hisilicon,hix5hd2-i2c"
+- reg: physical base address of the controller and length of memory mapped
+     region.
+- interrupts: interrupt number to the cpu.
+- #address-cells = <1>;
+- #size-cells = <0>;
+- clocks: phandles to input clocks.
+
+Optional properties:
+- clock-frequency: Desired I2C bus frequency in Hz, otherwise defaults to 100000
+- Child nodes conforming to i2c bus binding
+
+Examples:
+I2C0@f8b10000 {
+	compatible = "hisilicon,hix5hd2-i2c";
+	reg = <0xf8b10000 0x1000>;
+	interrupts = <0 38 4>;
+	clocks = <&clock HIX5HD2_I2C0_RST>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "disabled";
+}
-- 
1.7.9.5
```
