xref: /linux/Documentation/devicetree/bindings/i2c/hisilicon,hix5hd2-i2c.yaml (revision db4a3f0fbedb0398f77b9047e8b8bb2b49f355bb)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/i2c/hisilicon,hix5hd2-i2c.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6title: I2C for HiSilicon hix5hd2 chipset platform
7
8maintainers:
9  - Wei Yan <sledge.yanwei@huawei.com>
10
11allOf:
12  - $ref: /schemas/i2c/i2c-controller.yaml#
13
14properties:
15  compatible:
16    enum:
17      - hisilicon,hix5hd2-i2c
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  clocks:
26    maxItems: 1
27
28  clock-frequency:
29    description: Desired I2C bus frequency in Hz
30    default: 100000
31
32required:
33  - compatible
34  - reg
35  - interrupts
36  - clocks
37
38unevaluatedProperties: false
39
40examples:
41  - |
42    #include <dt-bindings/clock/hix5hd2-clock.h>
43
44    i2c@f8b10000 {
45        compatible = "hisilicon,hix5hd2-i2c";
46        reg = <0xf8b10000 0x1000>;
47        interrupts = <0 38 4>;
48        clocks = <&clock HIX5HD2_I2C0_RST>;
49        #address-cells = <1>;
50        #size-cells = <0>;
51    };
52