Merge tag 'linux-kselftest-kunit-fixes-5.11-rc3' of git://git.kernel.org/pub/scm...
[linux/fpc-iii.git] / Documentation / devicetree / bindings / i2c / brcm,brcmstb-i2c.yaml
blobedbca2476128377b4aa3ff9caba404e0354d27f2
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/i2c/brcm,brcmstb-i2c.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Broadcom STB BSC IIC Master Controller
9 maintainers:
10   - Kamal Dasu <kdasu.kdev@gmail.com>
12 allOf:
13   - $ref: /schemas/i2c/i2c-controller.yaml#
15 properties:
16   compatible:
17     enum:
18       - brcm,bcm2711-hdmi-i2c
19       - brcm,brcmstb-i2c
20       - brcm,brcmper-i2c
22   reg:
23     minItems: 1
24     maxItems: 2
25     items:
26       - description: BSC register range
27       - description: Auto-I2C register range
29   reg-names:
30     items:
31       - const: bsc
32       - const: auto-i2c
34   interrupts:
35     maxItems: 1
37   interrupt-names:
38     maxItems: 1
40   clock-frequency:
41     enum:
42       - 46875
43       - 50000
44       - 93750
45       - 97500
46       - 187500
47       - 200000
48       - 375000
49       - 390000
51 required:
52   - compatible
53   - reg
54   - clock-frequency
56 unevaluatedProperties: false
58 if:
59   properties:
60     compatible:
61       contains:
62         enum:
63           - brcm,bcm2711-hdmi-i2c
65 then:
66   properties:
67     reg:
68       minItems: 2
70   required:
71     - reg-names
73 else:
74   properties:
75     reg:
76       maxItems: 1
78 examples:
79   - |
80       bsca: i2c@f0406200 {
81           clock-frequency = <390000>;
82           compatible = "brcm,brcmstb-i2c";
83           interrupt-parent = <&irq0_intc>;
84           reg = <0xf0406200 0x58>;
85           interrupts = <0x18>;
86           interrupt-names = "upg_bsca";
87       };
89   - |
90       ddc0: i2c@7ef04500 {
91           compatible = "brcm,bcm2711-hdmi-i2c";
92           reg = <0x7ef04500 0x100>, <0x7ef00b00 0x300>;
93           reg-names = "bsc", "auto-i2c";
94           clock-frequency = <390000>;
95       };
97 ...