xref: /linux/Documentation/devicetree/bindings/i2c/ti,davinci-i2c.yaml (revision bb0301f856bfc0ea8192b8d2bd5a79bdc6d3d3f1)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/i2c/ti,davinci-i2c.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments DaVinci/Keystone I2C
8
9maintainers:
10  - Chaitanya Sabnis <chaitanya.msabnis@gmail.com>
11
12allOf:
13  - $ref: /schemas/i2c/i2c-controller.yaml#
14  - if:
15      properties:
16        compatible:
17          contains:
18            const: ti,keystone-i2c
19    then:
20      required:
21        - power-domains
22
23properties:
24  compatible:
25    enum:
26      - ti,davinci-i2c
27      - ti,keystone-i2c
28
29  reg:
30    maxItems: 1
31
32  interrupts:
33    maxItems: 1
34
35  clocks:
36    maxItems: 1
37
38  power-domains:
39    maxItems: 1
40
41  ti,has-pfunc:
42    description:
43      Indicates that the SoC supports PFUNC registers, allowing I2C pins
44      to function as GPIOs for manual toggling.
45    type: boolean
46
47required:
48  - compatible
49  - reg
50  - interrupts
51  - clocks
52
53unevaluatedProperties: false
54
55examples:
56  - |
57    i2c@1c22000 {
58        compatible = "ti,davinci-i2c";
59        reg = <0x01c22000 0x1000>;
60        clocks = <&i2c_clk>;
61        clock-frequency = <100000>;
62        interrupts = <15>;
63        #address-cells = <1>;
64        #size-cells = <0>;
65
66        sensor@48 {
67            compatible = "national,lm75";
68            reg = <0x48>;
69        };
70    };
71