xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/brcm,brcmstb-i2c.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
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    maxItems: 2
25*c66ec88fSEmmanuel Vadot    items:
26*c66ec88fSEmmanuel Vadot      - description: BSC register range
27*c66ec88fSEmmanuel Vadot      - description: Auto-I2C register range
28*c66ec88fSEmmanuel Vadot
29*c66ec88fSEmmanuel Vadot  reg-names:
30*c66ec88fSEmmanuel Vadot    items:
31*c66ec88fSEmmanuel Vadot      - const: bsc
32*c66ec88fSEmmanuel Vadot      - const: auto-i2c
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel Vadot  interrupts:
35*c66ec88fSEmmanuel Vadot    maxItems: 1
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot  interrupt-names:
38*c66ec88fSEmmanuel Vadot    maxItems: 1
39*c66ec88fSEmmanuel Vadot
40*c66ec88fSEmmanuel Vadot  clock-frequency:
41*c66ec88fSEmmanuel Vadot    enum:
42*c66ec88fSEmmanuel Vadot      - 46875
43*c66ec88fSEmmanuel Vadot      - 50000
44*c66ec88fSEmmanuel Vadot      - 93750
45*c66ec88fSEmmanuel Vadot      - 97500
46*c66ec88fSEmmanuel Vadot      - 187500
47*c66ec88fSEmmanuel Vadot      - 200000
48*c66ec88fSEmmanuel Vadot      - 375000
49*c66ec88fSEmmanuel Vadot      - 390000
50*c66ec88fSEmmanuel Vadot
51*c66ec88fSEmmanuel Vadotrequired:
52*c66ec88fSEmmanuel Vadot  - compatible
53*c66ec88fSEmmanuel Vadot  - reg
54*c66ec88fSEmmanuel Vadot  - clock-frequency
55*c66ec88fSEmmanuel Vadot
56*c66ec88fSEmmanuel VadotunevaluatedProperties: false
57*c66ec88fSEmmanuel Vadot
58*c66ec88fSEmmanuel Vadotif:
59*c66ec88fSEmmanuel Vadot  properties:
60*c66ec88fSEmmanuel Vadot    compatible:
61*c66ec88fSEmmanuel Vadot      contains:
62*c66ec88fSEmmanuel Vadot        enum:
63*c66ec88fSEmmanuel Vadot          - brcm,bcm2711-hdmi-i2c
64*c66ec88fSEmmanuel Vadot
65*c66ec88fSEmmanuel Vadotthen:
66*c66ec88fSEmmanuel Vadot  properties:
67*c66ec88fSEmmanuel Vadot    reg:
68*c66ec88fSEmmanuel Vadot      minItems: 2
69*c66ec88fSEmmanuel Vadot
70*c66ec88fSEmmanuel Vadot  required:
71*c66ec88fSEmmanuel Vadot    - reg-names
72*c66ec88fSEmmanuel Vadot
73*c66ec88fSEmmanuel Vadotelse:
74*c66ec88fSEmmanuel Vadot  properties:
75*c66ec88fSEmmanuel Vadot    reg:
76*c66ec88fSEmmanuel Vadot      maxItems: 1
77*c66ec88fSEmmanuel Vadot
78*c66ec88fSEmmanuel Vadotexamples:
79*c66ec88fSEmmanuel Vadot  - |
80*c66ec88fSEmmanuel Vadot      bsca: i2c@f0406200 {
81*c66ec88fSEmmanuel Vadot          clock-frequency = <390000>;
82*c66ec88fSEmmanuel Vadot          compatible = "brcm,brcmstb-i2c";
83*c66ec88fSEmmanuel Vadot          interrupt-parent = <&irq0_intc>;
84*c66ec88fSEmmanuel Vadot          reg = <0xf0406200 0x58>;
85*c66ec88fSEmmanuel Vadot          interrupts = <0x18>;
86*c66ec88fSEmmanuel Vadot          interrupt-names = "upg_bsca";
87*c66ec88fSEmmanuel Vadot      };
88*c66ec88fSEmmanuel Vadot
89*c66ec88fSEmmanuel Vadot  - |
90*c66ec88fSEmmanuel Vadot      ddc0: i2c@7ef04500 {
91*c66ec88fSEmmanuel Vadot          compatible = "brcm,bcm2711-hdmi-i2c";
92*c66ec88fSEmmanuel Vadot          reg = <0x7ef04500 0x100>, <0x7ef00b00 0x300>;
93*c66ec88fSEmmanuel Vadot          reg-names = "bsc", "auto-i2c";
94*c66ec88fSEmmanuel Vadot          clock-frequency = <390000>;
95*c66ec88fSEmmanuel Vadot      };
96*c66ec88fSEmmanuel Vadot
97*c66ec88fSEmmanuel Vadot...
98