@@ -49,93 +49,86 @@ properties:
4949 asserted during driver probe.
5050 maxItems : 1
5151
52- channel0 :
52+ channel@0 :
5353 description : Represents an external channel which are
5454 connected to the DAC. Channel 0 can act both as a current
5555 source and sink.
5656 type : object
5757
5858 properties :
59- num :
59+ reg :
6060 description : This represents the channel number.
61- items :
62- const : 0
61+ const : 0
6362
6463 adi,range-microamp :
6564 description : Output range of the channel.
6665 oneOf :
67- - $ref : /schemas/types.yaml#/definitions/int32-array
6866 - items :
69- - enum : [0 300000]
70- - enum : [-60000 0]
71- - enum : [-60000 300000]
67+ - const : 0
68+ - const : 300000
69+ - items :
70+ - const : -60000
71+ - const : 0
72+ - items :
73+ - const : -60000
74+ - const : 300000
7275
73- channel1 :
76+ channel@1 :
7477 description : Represents an external channel which are
7578 connected to the DAC.
7679 type : object
7780
7881 properties :
79- num :
82+ reg :
8083 description : This represents the channel number.
81- items :
82- const : 1
84+ const : 1
8385
8486 adi,range-microamp :
8587 description : Output range of the channel.
86- oneOf :
87- - $ref : /schemas/types.yaml#/definitions/uint32-array
88- - items :
89- - enum : [0 140000]
90- - enum : [0 250000]
88+ items :
89+ - const : 0
90+ - enum : [ 140000, 250000 ]
9191
92- channel2 :
92+ channel@2 :
9393 description : Represents an external channel which are
9494 connected to the DAC.
9595 type : object
9696
9797 properties :
98- num :
98+ reg :
9999 description : This represents the channel number.
100- items :
101- const : 2
100+ const : 2
102101
103102 adi,range-microamp :
104103 description : Output range of the channel.
105- oneOf :
106- - $ref : /schemas/types.yaml#/definitions/uint32-array
107- - items :
108- - enum : [0 140000]
109- - enum : [0 250000]
104+ items :
105+ - const : 0
106+ - enum : [ 55000, 150000 ]
110107
111108patternProperties :
112109 " ^channel@([3-5])$ " :
113110 type : object
114111 description : Represents the external channels which are connected to the DAC.
115112 properties :
116- num :
113+ reg :
117114 description : This represents the channel number.
118- items :
119- minimum : 3
120- maximum : 5
115+ minimum : 3
116+ maximum : 5
121117
122118 adi,range-microamp :
123119 description : Output range of the channel.
124- oneOf :
125- - $ref : /schemas/types.yaml#/definitions/uint32-array
126- - items :
127- - enum : [0 45000]
128- - enum : [0 100000]
120+ items :
121+ - const : 0
122+ - enum : [ 45000, 100000 ]
129123
130124required :
131125- reg
132- - diff-channels
133- - channel0
134- - channel1
135- - channel2
136- - channel3
137- - channel4
138- - channel5
126+ - channel@0
127+ - channel@1
128+ - channel@2
129+ - channel@3
130+ - channel@4
131+ - channel@5
139132
140133examples :
141134 - |
@@ -150,34 +143,36 @@ examples:
150143 vref-supply = <&vref>;
151144 adi,external-resistor;
152145 reset-gpios = <&gpio 22 0>;
146+ #address-cells = <1>;
147+ #size-cells = <0>;
153148
154149 channel@0 {
155- num = <0>;
156- adi,range-microamp = <(-60000) 300000>;
150+ reg = <0>;
151+ adi,range-microamp = <0 300000>;
157152 };
158153
159154 channel@1 {
160- num = <1>;
155+ reg = <1>;
161156 adi,range-microamp = <0 140000>;
162157 };
163158
164159 channel@2 {
165- num = <2>;
160+ reg = <2>;
166161 adi,range-microamp = <0 55000>;
167162 };
168163
169164 channel@3 {
170- num = <3>;
165+ reg = <3>;
171166 adi,range-microamp = <0 45000>;
172167 };
173168
174169 channel@4 {
175- num = <4>;
170+ reg = <4>;
176171 adi,range-microamp = <0 45000>;
177172 };
178173
179174 channel@5 {
180- num = <5>;
175+ reg = <5>;
181176 adi,range-microamp = <0 45000>;
182177 };
183178 };
0 commit comments