@@ -14,31 +14,30 @@ description: The Nomadik I2C host controller began its life in the ST
14
14
maintainers :
15
15
- Linus Walleij <linus.walleij@linaro.org>
16
16
17
- allOf :
18
- - $ref : /schemas/i2c/i2c-controller.yaml#
19
-
20
17
# Need a custom select here or 'arm,primecell' will match on lots of nodes
21
18
select :
22
19
properties :
23
20
compatible :
24
21
contains :
25
22
enum :
26
23
- st,nomadik-i2c
24
+ - mobileye,eyeq5-i2c
27
25
required :
28
26
- compatible
29
27
30
28
properties :
31
29
compatible :
32
30
oneOf :
33
- # The variant found in STn8815
34
31
- items :
35
32
- const : st,nomadik-i2c
36
33
- const : arm,primecell
37
- # The variant found in DB8500
38
34
- items :
39
35
- const : stericsson,db8500-i2c
40
36
- const : st,nomadik-i2c
41
37
- const : arm,primecell
38
+ - items :
39
+ - const : mobileye,eyeq5-i2c
40
+ - const : arm,primecell
42
41
43
42
reg :
44
43
maxItems : 1
@@ -55,7 +54,7 @@ properties:
55
54
- items :
56
55
- const : mclk
57
56
- const : apb_pclk
58
- # Clock name in DB8500
57
+ # Clock name in DB8500 or EyeQ5
59
58
- items :
60
59
- const : i2cclk
61
60
- const : apb_pclk
@@ -70,6 +69,16 @@ properties:
70
69
minimum : 1
71
70
maximum : 400000
72
71
72
+ mobileye,olb :
73
+ $ref : /schemas/types.yaml#/definitions/phandle-array
74
+ items :
75
+ - items :
76
+ - description : Phandle to OLB system controller node.
77
+ - description : Platform-wide controller ID (integer starting from zero).
78
+ description :
79
+ The phandle pointing to OLB system controller node, with the I2C
80
+ controller index.
81
+
73
82
required :
74
83
- compatible
75
84
- reg
@@ -79,6 +88,20 @@ required:
79
88
80
89
unevaluatedProperties : false
81
90
91
+ allOf :
92
+ - $ref : /schemas/i2c/i2c-controller.yaml#
93
+ - if :
94
+ properties :
95
+ compatible :
96
+ contains :
97
+ const : mobileye,eyeq5-i2c
98
+ then :
99
+ required :
100
+ - mobileye,olb
101
+ else :
102
+ properties :
103
+ mobileye,olb : false
104
+
82
105
examples :
83
106
- |
84
107
#include <dt-bindings/interrupt-controller/irq.h>
@@ -111,5 +134,19 @@ examples:
111
134
clocks = <&i2c0clk>, <&pclki2c0>;
112
135
clock-names = "mclk", "apb_pclk";
113
136
};
137
+ - |
138
+ #include <dt-bindings/interrupt-controller/mips-gic.h>
139
+ i2c@300000 {
140
+ compatible = "mobileye,eyeq5-i2c", "arm,primecell";
141
+ reg = <0x300000 0x1000>;
142
+ interrupt-parent = <&gic>;
143
+ interrupts = <GIC_SHARED 1 IRQ_TYPE_LEVEL_HIGH>;
144
+ clock-frequency = <400000>;
145
+ #address-cells = <1>;
146
+ #size-cells = <0>;
147
+ clocks = <&i2c_ser_clk>, <&i2c_clk>;
148
+ clock-names = "i2cclk", "apb_pclk";
149
+ mobileye,olb = <&olb 0>;
150
+ };
114
151
115
152
...
0 commit comments