xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/brcm,brcmstb-i2c.yaml (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/i2c/brcm,brcmstb-i2c.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: Broadcom STB BSC IIC Master Controller
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotmaintainers:
10*c66ec88fSEmmanuel Vadot  - Kamal Dasu <kdasu.kdev@gmail.com>
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel VadotallOf:
13*c66ec88fSEmmanuel Vadot  - $ref: /schemas/i2c/i2c-controller.yaml#
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadotproperties:
16*c66ec88fSEmmanuel Vadot  compatible:
17*c66ec88fSEmmanuel Vadot    enum:
18*c66ec88fSEmmanuel Vadot      - brcm,bcm2711-hdmi-i2c
19*c66ec88fSEmmanuel Vadot      - brcm,brcmstb-i2c
20*c66ec88fSEmmanuel Vadot      - brcm,brcmper-i2c
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot  reg:
23*c66ec88fSEmmanuel Vadot    minItems: 1
24*c66ec88fSEmmanuel Vadot    items:
25*c66ec88fSEmmanuel Vadot      - description: BSC register range
26*c66ec88fSEmmanuel Vadot      - description: Auto-I2C register range
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot  reg-names:
29*c66ec88fSEmmanuel Vadot    items:
30*c66ec88fSEmmanuel Vadot      - const: bsc
31*c66ec88fSEmmanuel Vadot      - const: auto-i2c
32*c66ec88fSEmmanuel Vadot
33*c66ec88fSEmmanuel Vadot  interrupts:
34*c66ec88fSEmmanuel Vadot    maxItems: 1
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot  interrupt-names:
37*c66ec88fSEmmanuel Vadot    maxItems: 1
38*c66ec88fSEmmanuel Vadot
39*c66ec88fSEmmanuel Vadot  clock-frequency:
40*c66ec88fSEmmanuel Vadot    enum:
41*c66ec88fSEmmanuel Vadot      - 46875
42*c66ec88fSEmmanuel Vadot      - 50000
43*c66ec88fSEmmanuel Vadot      - 93750
44*c66ec88fSEmmanuel Vadot      - 97500
45*c66ec88fSEmmanuel Vadot      - 187500
46*c66ec88fSEmmanuel Vadot      - 200000
47*c66ec88fSEmmanuel Vadot      - 375000
48*c66ec88fSEmmanuel Vadot      - 390000
49*c66ec88fSEmmanuel Vadot
50*c66ec88fSEmmanuel Vadotrequired:
51*c66ec88fSEmmanuel Vadot  - compatible
52*c66ec88fSEmmanuel Vadot  - reg
53*c66ec88fSEmmanuel Vadot  - clock-frequency
54*c66ec88fSEmmanuel Vadot
55*c66ec88fSEmmanuel VadotunevaluatedProperties: false
56*c66ec88fSEmmanuel Vadot
57*c66ec88fSEmmanuel Vadotif:
58*c66ec88fSEmmanuel Vadot  properties:
59*c66ec88fSEmmanuel Vadot    compatible:
60*c66ec88fSEmmanuel Vadot      contains:
61*c66ec88fSEmmanuel Vadot        enum:
62*c66ec88fSEmmanuel Vadot          - brcm,bcm2711-hdmi-i2c
63*c66ec88fSEmmanuel Vadot
64*c66ec88fSEmmanuel Vadotthen:
65*c66ec88fSEmmanuel Vadot  properties:
66*c66ec88fSEmmanuel Vadot    reg:
67*c66ec88fSEmmanuel Vadot      minItems: 2
68*c66ec88fSEmmanuel Vadot
69*c66ec88fSEmmanuel Vadot  required:
70*c66ec88fSEmmanuel Vadot    - reg-names
71*c66ec88fSEmmanuel Vadot
72*c66ec88fSEmmanuel Vadotelse:
73*c66ec88fSEmmanuel Vadot  properties:
74*c66ec88fSEmmanuel Vadot    reg:
75*c66ec88fSEmmanuel Vadot      maxItems: 1
76*c66ec88fSEmmanuel Vadot
77*c66ec88fSEmmanuel Vadotexamples:
78*c66ec88fSEmmanuel Vadot  - |
79*c66ec88fSEmmanuel Vadot      bsca: i2c@f0406200 {
80*c66ec88fSEmmanuel Vadot          clock-frequency = <390000>;
81*c66ec88fSEmmanuel Vadot          compatible = "brcm,brcmstb-i2c";
82*c66ec88fSEmmanuel Vadot          interrupt-parent = <&irq0_intc>;
83*c66ec88fSEmmanuel Vadot          reg = <0xf0406200 0x58>;
84*c66ec88fSEmmanuel Vadot          interrupts = <0x18>;
85*c66ec88fSEmmanuel Vadot          interrupt-names = "upg_bsca";
86*c66ec88fSEmmanuel Vadot      };
87*c66ec88fSEmmanuel Vadot
88*c66ec88fSEmmanuel Vadot  - |
89*c66ec88fSEmmanuel Vadot      ddc0: i2c@7ef04500 {
90*c66ec88fSEmmanuel Vadot          compatible = "brcm,bcm2711-hdmi-i2c";
91*c66ec88fSEmmanuel Vadot          reg = <0x7ef04500 0x100>, <0x7ef00b00 0x300>;
92*c66ec88fSEmmanuel Vadot          reg-names = "bsc", "auto-i2c";
93*c66ec88fSEmmanuel Vadot          clock-frequency = <390000>;
94*c66ec88fSEmmanuel Vadot      };
95*c66ec88fSEmmanuel Vadot
96*c66ec88fSEmmanuel Vadot...
97