bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0660-overlays-Make-i2c-rtc-and-i2c-rtc-gpio-share-RTCs.patch
1 From 299e9ffda004d3f5f722ebbd04be0250a618203a Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Wed, 30 Jun 2021 17:03:00 +0100
4 Subject: [PATCH] overlays: Make i2c-rtc and i2c-rtc-gpio share RTCs
5
6 Lift the set of RTCs out of i2c-rtc and i2c-rtc-gpio to update
7 i2c-rtc-gpio and to reduce duplication.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
10 ---
11 arch/arm/boot/dts/overlays/README | 10 +
12 .../arm/boot/dts/overlays/i2c-rtc-common.dtsi | 290 ++++++++++++++++++
13 .../dts/overlays/i2c-rtc-gpio-overlay.dts | 249 +--------------
14 .../arm/boot/dts/overlays/i2c-rtc-overlay.dts | 287 +----------------
15 4 files changed, 309 insertions(+), 527 deletions(-)
16 create mode 100644 arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
17
18 --- a/arch/arm/boot/dts/overlays/README
19 +++ b/arch/arm/boot/dts/overlays/README
20 @@ -1445,6 +1445,8 @@ Params: abx80x Select o
21
22 ds1339 Select the DS1339 device
23
24 + ds1340 Select the DS1340 device
25 +
26 ds3231 Select the DS3231 device
27
28 m41t62 Select the M41T62 device
29 @@ -1457,14 +1459,22 @@ Params: abx80x Select o
30
31 pcf2129 Select the PCF2129 device
32
33 + pcf85063 Select the PCF85063 device
34 +
35 + pcf85063a Select the PCF85063A device
36 +
37 pcf8523 Select the PCF8523 device
38
39 + pcf85363 Select the PCF85363 device
40 +
41 pcf8563 Select the PCF8563 device
42
43 rv1805 Select the Micro Crystal RV1805 device
44
45 rv3028 Select the Micro Crystal RV3028 device
46
47 + sd3078 Select the ZXW Shenzhen whwave SD3078 device
48 +
49 addr Sets the address for the RTC. Note that the
50 device must be configured to use the specified
51 address.
52 --- /dev/null
53 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
54 @@ -0,0 +1,290 @@
55 +// Definitions for several I2C based Real Time Clocks
56 +
57 +/ {
58 + compatible = "brcm,bcm2835";
59 +
60 + fragment@0 {
61 + target = <&i2cbus>;
62 + __dormant__ {
63 + #address-cells = <1>;
64 + #size-cells = <0>;
65 +
66 + abx80x: abx80x@69 {
67 + compatible = "abracon,abx80x";
68 + reg = <0x69>;
69 + abracon,tc-diode = "standard";
70 + abracon,tc-resistor = <0>;
71 + };
72 + };
73 + };
74 +
75 + fragment@1 {
76 + target = <&i2cbus>;
77 + __dormant__ {
78 + #address-cells = <1>;
79 + #size-cells = <0>;
80 +
81 + ds1307: ds1307@68 {
82 + compatible = "dallas,ds1307";
83 + reg = <0x68>;
84 + };
85 + };
86 + };
87 +
88 + fragment@2 {
89 + target = <&i2cbus>;
90 + __dormant__ {
91 + #address-cells = <1>;
92 + #size-cells = <0>;
93 +
94 + ds1339: ds1339@68 {
95 + compatible = "dallas,ds1339";
96 + trickle-resistor-ohms = <0>;
97 + reg = <0x68>;
98 + };
99 + };
100 + };
101 +
102 + fragment@3 {
103 + target = <&i2cbus>;
104 + __dormant__ {
105 + #address-cells = <1>;
106 + #size-cells = <0>;
107 +
108 + ds3231: ds3231@68 {
109 + compatible = "maxim,ds3231";
110 + reg = <0x68>;
111 + };
112 + };
113 + };
114 +
115 + fragment@4 {
116 + target = <&i2cbus>;
117 + __dormant__ {
118 + #address-cells = <1>;
119 + #size-cells = <0>;
120 +
121 + mcp7940x: mcp7940x@6f {
122 + compatible = "microchip,mcp7940x";
123 + reg = <0x6f>;
124 + };
125 + };
126 + };
127 +
128 + fragment@5 {
129 + target = <&i2cbus>;
130 + __dormant__ {
131 + #address-cells = <1>;
132 + #size-cells = <0>;
133 +
134 + mcp7941x: mcp7941x@6f {
135 + compatible = "microchip,mcp7941x";
136 + reg = <0x6f>;
137 + };
138 + };
139 + };
140 +
141 + fragment@6 {
142 + target = <&i2cbus>;
143 + __dormant__ {
144 + #address-cells = <1>;
145 + #size-cells = <0>;
146 +
147 + pcf2127@51 {
148 + compatible = "nxp,pcf2127";
149 + reg = <0x51>;
150 + };
151 + };
152 + };
153 +
154 + fragment@7 {
155 + target = <&i2cbus>;
156 + __dormant__ {
157 + #address-cells = <1>;
158 + #size-cells = <0>;
159 +
160 + pcf8523: pcf8523@68 {
161 + compatible = "nxp,pcf8523";
162 + reg = <0x68>;
163 + };
164 + };
165 + };
166 +
167 + fragment@8 {
168 + target = <&i2cbus>;
169 + __dormant__ {
170 + #address-cells = <1>;
171 + #size-cells = <0>;
172 +
173 + pcf8563: pcf8563@51 {
174 + compatible = "nxp,pcf8563";
175 + reg = <0x51>;
176 + };
177 + };
178 + };
179 +
180 + fragment@9 {
181 + target = <&i2cbus>;
182 + __dormant__ {
183 + #address-cells = <1>;
184 + #size-cells = <0>;
185 +
186 + m41t62: m41t62@68 {
187 + compatible = "st,m41t62";
188 + reg = <0x68>;
189 + };
190 + };
191 + };
192 +
193 + fragment@10 {
194 + target = <&i2cbus>;
195 + __dormant__ {
196 + #address-cells = <1>;
197 + #size-cells = <0>;
198 +
199 + rv3028: rv3028@52 {
200 + compatible = "microcrystal,rv3028";
201 + reg = <0x52>;
202 + };
203 + };
204 + };
205 +
206 + fragment@11 {
207 + target = <&i2cbus>;
208 + __dormant__ {
209 + #address-cells = <1>;
210 + #size-cells = <0>;
211 +
212 + pcf2129@51 {
213 + compatible = "nxp,pcf2129";
214 + reg = <0x51>;
215 + };
216 + };
217 + };
218 +
219 + fragment@12 {
220 + target = <&i2cbus>;
221 + __dormant__ {
222 + #address-cells = <1>;
223 + #size-cells = <0>;
224 +
225 + pcf85363@51 {
226 + compatible = "nxp,pcf85363";
227 + reg = <0x51>;
228 + };
229 + };
230 + };
231 +
232 + fragment@13 {
233 + target = <&i2cbus>;
234 + __dormant__ {
235 + #address-cells = <1>;
236 + #size-cells = <0>;
237 +
238 + rv1805: rv1805@69 {
239 + compatible = "microcrystal,rv1805";
240 + reg = <0x69>;
241 + abracon,tc-diode = "standard";
242 + abracon,tc-resistor = <0>;
243 + };
244 + };
245 + };
246 +
247 + fragment@14 {
248 + target = <&i2cbus>;
249 + __dormant__ {
250 + #address-cells = <1>;
251 + #size-cells = <0>;
252 +
253 + sd3078: sd3078@32 {
254 + compatible = "whwave,sd3078";
255 + reg = <0x32>;
256 + };
257 + };
258 + };
259 +
260 + fragment@15 {
261 + target = <&i2cbus>;
262 + __dormant__ {
263 + #address-cells = <1>;
264 + #size-cells = <0>;
265 +
266 + pcf85063@51 {
267 + compatible = "nxp,pcf85063";
268 + reg = <0x51>;
269 + };
270 + };
271 + };
272 +
273 + fragment@16 {
274 + target = <&i2cbus>;
275 + __dormant__ {
276 + #address-cells = <1>;
277 + #size-cells = <0>;
278 +
279 + pcf85063a@51 {
280 + compatible = "nxp,pcf85063a";
281 + reg = <0x51>;
282 + };
283 + };
284 + };
285 +
286 + fragment@17 {
287 + target = <&i2cbus>;
288 + __dormant__ {
289 + #address-cells = <1>;
290 + #size-cells = <0>;
291 +
292 + ds1340: ds1340@68 {
293 + compatible = "dallas,ds1340";
294 + trickle-resistor-ohms = <0>;
295 + reg = <0x68>;
296 + };
297 + };
298 + };
299 +
300 + __overrides__ {
301 + abx80x = <0>,"+0";
302 + ds1307 = <0>,"+1";
303 + ds1339 = <0>,"+2";
304 + ds1340 = <0>,"+17";
305 + ds3231 = <0>,"+3";
306 + mcp7940x = <0>,"+4";
307 + mcp7941x = <0>,"+5";
308 + pcf2127 = <0>,"+6";
309 + pcf8523 = <0>,"+7";
310 + pcf8563 = <0>,"+8";
311 + m41t62 = <0>,"+9";
312 + rv3028 = <0>,"+10";
313 + pcf2129 = <0>,"+11";
314 + pcf85363 = <0>,"+12";
315 + rv1805 = <0>,"+13";
316 + sd3078 = <0>,"+14";
317 + pcf85063 = <0>,"+15";
318 + pcf85063a = <0>,"+16";
319 +
320 + addr = <&abx80x>, "reg:0",
321 + <&ds1307>, "reg:0",
322 + <&ds1339>, "reg:0",
323 + <&ds3231>, "reg:0",
324 + <&mcp7940x>, "reg:0",
325 + <&mcp7941x>, "reg:0",
326 + <&pcf8523>, "reg:0",
327 + <&pcf8563>, "reg:0",
328 + <&m41t62>, "reg:0",
329 + <&rv1805>, "reg:0";
330 + trickle-diode-type = <&abx80x>,"abracon,tc-diode",
331 + <&rv1805>,"abracon,tc-diode";
332 + trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
333 + <&ds1340>,"trickle-resistor-ohms:0",
334 + <&abx80x>,"abracon,tc-resistor:0",
335 + <&rv3028>,"trickle-resistor-ohms:0",
336 + <&rv1805>,"abracon,tc-resistor:0";
337 + backup-switchover-mode = <&rv3028>,"backup-switchover-mode:0";
338 + wakeup-source = <&ds1339>,"wakeup-source?",
339 + <&ds3231>,"wakeup-source?",
340 + <&mcp7940x>,"wakeup-source?",
341 + <&mcp7941x>,"wakeup-source?",
342 + <&m41t62>,"wakeup-source?";
343 + };
344 +};
345 --- a/arch/arm/boot/dts/overlays/i2c-rtc-gpio-overlay.dts
346 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-gpio-overlay.dts
347 @@ -5,13 +5,13 @@
348
349 #include <dt-bindings/gpio/gpio.h>
350
351 -/ {
352 - compatible = "brcm,bcm2835";
353 +#include "i2c-rtc-common.dtsi"
354
355 - fragment@0 {
356 +/ {
357 + fragment@100 {
358 target-path = "/";
359 __overlay__ {
360 - i2c_gpio: i2c-gpio-rtc@0 {
361 + i2cbus: i2c-gpio-rtc@0 {
362 compatible = "i2c-gpio";
363 gpios = <&gpio 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* sda */
364 &gpio 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* scl */
365 @@ -23,244 +23,9 @@
366 };
367 };
368
369 - fragment@1 {
370 - target = <&i2c_gpio>;
371 - __dormant__ {
372 - #address-cells = <1>;
373 - #size-cells = <0>;
374 - status = "okay";
375 -
376 - abx80x: abx80x@69 {
377 - compatible = "abracon,abx80x";
378 - reg = <0x69>;
379 - abracon,tc-diode = "standard";
380 - abracon,tc-resistor = <0>;
381 - status = "okay";
382 - };
383 - };
384 - };
385 -
386 - fragment@2 {
387 - target = <&i2c_gpio>;
388 - __dormant__ {
389 - #address-cells = <1>;
390 - #size-cells = <0>;
391 - status = "okay";
392 -
393 - ds1307: ds1307@68 {
394 - compatible = "dallas,ds1307";
395 - reg = <0x68>;
396 - status = "okay";
397 - };
398 - };
399 - };
400 -
401 - fragment@3 {
402 - target = <&i2c_gpio>;
403 - __dormant__ {
404 - #address-cells = <1>;
405 - #size-cells = <0>;
406 - status = "okay";
407 -
408 - ds1339: ds1339@68 {
409 - compatible = "dallas,ds1339";
410 - trickle-resistor-ohms = <0>;
411 - reg = <0x68>;
412 - status = "okay";
413 - };
414 - };
415 - };
416 -
417 - fragment@4 {
418 - target = <&i2c_gpio>;
419 - __dormant__ {
420 - #address-cells = <1>;
421 - #size-cells = <0>;
422 - status = "okay";
423 -
424 - ds3231: ds3231@68 {
425 - compatible = "maxim,ds3231";
426 - reg = <0x68>;
427 - status = "okay";
428 - };
429 - };
430 - };
431 -
432 - fragment@5 {
433 - target = <&i2c_gpio>;
434 - __dormant__ {
435 - #address-cells = <1>;
436 - #size-cells = <0>;
437 - status = "okay";
438 -
439 - mcp7940x: mcp7940x@6f {
440 - compatible = "microchip,mcp7940x";
441 - reg = <0x6f>;
442 - status = "okay";
443 - };
444 - };
445 - };
446 -
447 - fragment@6 {
448 - target = <&i2c_gpio>;
449 - __dormant__ {
450 - #address-cells = <1>;
451 - #size-cells = <0>;
452 - status = "okay";
453 -
454 - mcp7941x: mcp7941x@6f {
455 - compatible = "microchip,mcp7941x";
456 - reg = <0x6f>;
457 - status = "okay";
458 - };
459 - };
460 - };
461 -
462 - fragment@7 {
463 - target = <&i2c_gpio>;
464 - __dormant__ {
465 - #address-cells = <1>;
466 - #size-cells = <0>;
467 - status = "okay";
468 -
469 - pcf2127@51 {
470 - compatible = "nxp,pcf2127";
471 - reg = <0x51>;
472 - status = "okay";
473 - };
474 - };
475 - };
476 -
477 - fragment@8 {
478 - target = <&i2c_gpio>;
479 - __dormant__ {
480 - #address-cells = <1>;
481 - #size-cells = <0>;
482 - status = "okay";
483 -
484 - pcf8523: pcf8523@68 {
485 - compatible = "nxp,pcf8523";
486 - reg = <0x68>;
487 - status = "okay";
488 - };
489 - };
490 - };
491 -
492 - fragment@9 {
493 - target = <&i2c_gpio>;
494 - __dormant__ {
495 - #address-cells = <1>;
496 - #size-cells = <0>;
497 - status = "okay";
498 -
499 - pcf8563: pcf8563@51 {
500 - compatible = "nxp,pcf8563";
501 - reg = <0x51>;
502 - status = "okay";
503 - };
504 - };
505 - };
506 -
507 - fragment@10 {
508 - target = <&i2c_arm>;
509 - __dormant__ {
510 - #address-cells = <1>;
511 - #size-cells = <0>;
512 - status = "okay";
513 -
514 - m41t62: m41t62@68 {
515 - compatible = "st,m41t62";
516 - reg = <0x68>;
517 - status = "okay";
518 - };
519 - };
520 - };
521 -
522 - fragment@11 {
523 - target = <&i2c_gpio>;
524 - __dormant__ {
525 - #address-cells = <1>;
526 - #size-cells = <0>;
527 - status = "okay";
528 -
529 - rv3028: rv3028@52 {
530 - compatible = "microcrystal,rv3028";
531 - reg = <0x52>;
532 - status = "okay";
533 - };
534 - };
535 - };
536 -
537 - fragment@12 {
538 - target = <&i2c_gpio>;
539 - __dormant__ {
540 - #address-cells = <1>;
541 - #size-cells = <0>;
542 - status = "okay";
543 -
544 - pcf2129@51 {
545 - compatible = "nxp,pcf2129";
546 - reg = <0x51>;
547 - status = "okay";
548 - };
549 - };
550 - };
551 -
552 - fragment@13 {
553 - target = <&i2c_gpio>;
554 - __dormant__ {
555 - #address-cells = <1>;
556 - #size-cells = <0>;
557 - status = "okay";
558 -
559 - rv1805: rv1805@69 {
560 - compatible = "microcrystal,rv1805";
561 - reg = <0x69>;
562 - abracon,tc-diode = "standard";
563 - abracon,tc-resistor = <0>;
564 - status = "okay";
565 - };
566 - };
567 - };
568 -
569 __overrides__ {
570 - abx80x = <0>,"+1";
571 - ds1307 = <0>,"+2";
572 - ds1339 = <0>,"+3";
573 - ds3231 = <0>,"+4";
574 - mcp7940x = <0>,"+5";
575 - mcp7941x = <0>,"+6";
576 - pcf2127 = <0>,"+7";
577 - pcf8523 = <0>,"+8";
578 - pcf8563 = <0>,"+9";
579 - m41t62 = <0>,"+10";
580 - rv3028 = <0>,"+11";
581 - pcf2129 = <0>,"+12";
582 - rv1805 = <0>,"+13";
583 -
584 - addr = <&abx80x>, "reg:0",
585 - <&ds1307>, "reg:0",
586 - <&ds1339>, "reg:0",
587 - <&ds3231>, "reg:0",
588 - <&mcp7940x>, "reg:0",
589 - <&mcp7941x>, "reg:0",
590 - <&pcf8523>, "reg:0",
591 - <&pcf8563>, "reg:0",
592 - <&m41t62>, "reg:0",
593 - <&rv1805>, "reg:0";
594 - trickle-diode-type = <&abx80x>,"abracon,tc-diode",
595 - <&rv1805>,"abracon,tc-diode";
596 - trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
597 - <&abx80x>,"abracon,tc-resistor:0",
598 - <&rv3028>,"trickle-resistor-ohms:0",
599 - <&rv1805>,"abracon,tc-resistor:0";
600 - backup-switchover-mode = <&rv3028>,"backup-switchover-mode:0";
601 - wakeup-source = <&ds1339>,"wakeup-source?",
602 - <&ds3231>,"wakeup-source?",
603 - <&mcp7940x>,"wakeup-source?",
604 - <&mcp7941x>,"wakeup-source?";
605 - i2c_gpio_sda = <&i2c_gpio>,"gpios:4";
606 - i2c_gpio_scl = <&i2c_gpio>,"gpios:16";
607 - i2c_gpio_delay_us = <&i2c_gpio>,"i2c-gpio,delay-us:0";
608 + i2c_gpio_sda = <&i2cbus>,"gpios:4";
609 + i2c_gpio_scl = <&i2cbus>,"gpios:16";
610 + i2c_gpio_delay_us = <&i2cbus>,"i2c-gpio,delay-us:0";
611 };
612 };
613 --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
614 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
615 @@ -2,249 +2,9 @@
616 /dts-v1/;
617 /plugin/;
618
619 -/ {
620 - compatible = "brcm,bcm2835";
621 -
622 - fragment@0 {
623 - target = <&i2cbus>;
624 - __dormant__ {
625 - #address-cells = <1>;
626 - #size-cells = <0>;
627 -
628 - abx80x: abx80x@69 {
629 - compatible = "abracon,abx80x";
630 - reg = <0x69>;
631 - abracon,tc-diode = "standard";
632 - abracon,tc-resistor = <0>;
633 - };
634 - };
635 - };
636 -
637 - fragment@1 {
638 - target = <&i2cbus>;
639 - __dormant__ {
640 - #address-cells = <1>;
641 - #size-cells = <0>;
642 -
643 - ds1307: ds1307@68 {
644 - compatible = "dallas,ds1307";
645 - reg = <0x68>;
646 - };
647 - };
648 - };
649 -
650 - fragment@2 {
651 - target = <&i2cbus>;
652 - __dormant__ {
653 - #address-cells = <1>;
654 - #size-cells = <0>;
655 -
656 - ds1339: ds1339@68 {
657 - compatible = "dallas,ds1339";
658 - trickle-resistor-ohms = <0>;
659 - reg = <0x68>;
660 - };
661 - };
662 - };
663 -
664 - fragment@3 {
665 - target = <&i2cbus>;
666 - __dormant__ {
667 - #address-cells = <1>;
668 - #size-cells = <0>;
669 -
670 - ds3231: ds3231@68 {
671 - compatible = "maxim,ds3231";
672 - reg = <0x68>;
673 - };
674 - };
675 - };
676 -
677 - fragment@4 {
678 - target = <&i2cbus>;
679 - __dormant__ {
680 - #address-cells = <1>;
681 - #size-cells = <0>;
682 -
683 - mcp7940x: mcp7940x@6f {
684 - compatible = "microchip,mcp7940x";
685 - reg = <0x6f>;
686 - };
687 - };
688 - };
689 -
690 - fragment@5 {
691 - target = <&i2cbus>;
692 - __dormant__ {
693 - #address-cells = <1>;
694 - #size-cells = <0>;
695 -
696 - mcp7941x: mcp7941x@6f {
697 - compatible = "microchip,mcp7941x";
698 - reg = <0x6f>;
699 - };
700 - };
701 - };
702 -
703 - fragment@6 {
704 - target = <&i2cbus>;
705 - __dormant__ {
706 - #address-cells = <1>;
707 - #size-cells = <0>;
708 -
709 - pcf2127@51 {
710 - compatible = "nxp,pcf2127";
711 - reg = <0x51>;
712 - };
713 - };
714 - };
715 -
716 - fragment@7 {
717 - target = <&i2cbus>;
718 - __dormant__ {
719 - #address-cells = <1>;
720 - #size-cells = <0>;
721 -
722 - pcf8523: pcf8523@68 {
723 - compatible = "nxp,pcf8523";
724 - reg = <0x68>;
725 - };
726 - };
727 - };
728 -
729 - fragment@8 {
730 - target = <&i2cbus>;
731 - __dormant__ {
732 - #address-cells = <1>;
733 - #size-cells = <0>;
734 -
735 - pcf8563: pcf8563@51 {
736 - compatible = "nxp,pcf8563";
737 - reg = <0x51>;
738 - };
739 - };
740 - };
741 -
742 - fragment@9 {
743 - target = <&i2cbus>;
744 - __dormant__ {
745 - #address-cells = <1>;
746 - #size-cells = <0>;
747 -
748 - m41t62: m41t62@68 {
749 - compatible = "st,m41t62";
750 - reg = <0x68>;
751 - };
752 - };
753 - };
754 -
755 - fragment@10 {
756 - target = <&i2cbus>;
757 - __dormant__ {
758 - #address-cells = <1>;
759 - #size-cells = <0>;
760 -
761 - rv3028: rv3028@52 {
762 - compatible = "microcrystal,rv3028";
763 - reg = <0x52>;
764 - };
765 - };
766 - };
767 -
768 - fragment@11 {
769 - target = <&i2cbus>;
770 - __dormant__ {
771 - #address-cells = <1>;
772 - #size-cells = <0>;
773 -
774 - pcf2129@51 {
775 - compatible = "nxp,pcf2129";
776 - reg = <0x51>;
777 - };
778 - };
779 - };
780 -
781 - fragment@12 {
782 - target = <&i2cbus>;
783 - __dormant__ {
784 - #address-cells = <1>;
785 - #size-cells = <0>;
786 -
787 - pcf85363@51 {
788 - compatible = "nxp,pcf85363";
789 - reg = <0x51>;
790 - };
791 - };
792 - };
793 -
794 - fragment@13 {
795 - target = <&i2cbus>;
796 - __dormant__ {
797 - #address-cells = <1>;
798 - #size-cells = <0>;
799 -
800 - rv1805: rv1805@69 {
801 - compatible = "microcrystal,rv1805";
802 - reg = <0x69>;
803 - abracon,tc-diode = "standard";
804 - abracon,tc-resistor = <0>;
805 - };
806 - };
807 - };
808 -
809 - fragment@14 {
810 - target = <&i2cbus>;
811 - __dormant__ {
812 - #address-cells = <1>;
813 - #size-cells = <0>;
814 -
815 - sd3078: sd3078@32 {
816 - compatible = "whwave,sd3078";
817 - reg = <0x32>;
818 - };
819 - };
820 - };
821 -
822 - fragment@15 {
823 - target = <&i2cbus>;
824 - __dormant__ {
825 - #address-cells = <1>;
826 - #size-cells = <0>;
827 -
828 - pcf85063@51 {
829 - compatible = "nxp,pcf85063";
830 - reg = <0x51>;
831 - };
832 - };
833 - };
834 -
835 - fragment@16 {
836 - target = <&i2cbus>;
837 - __dormant__ {
838 - #address-cells = <1>;
839 - #size-cells = <0>;
840 -
841 - pcf85063a@51 {
842 - compatible = "nxp,pcf85063a";
843 - reg = <0x51>;
844 - };
845 - };
846 - };
847 -
848 - fragment@17 {
849 - target = <&i2cbus>;
850 - __dormant__ {
851 - #address-cells = <1>;
852 - #size-cells = <0>;
853 -
854 - ds1340: ds1340@68 {
855 - compatible = "dallas,ds1340";
856 - trickle-resistor-ohms = <0>;
857 - reg = <0x68>;
858 - };
859 - };
860 - };
861 +#include "i2c-rtc-common.dtsi"
862
863 +/ {
864 frag100: fragment@100 {
865 target = <&i2c_arm>;
866 i2cbus: __overlay__ {
867 @@ -267,51 +27,8 @@
868 };
869
870 __overrides__ {
871 - abx80x = <0>,"+0";
872 - ds1307 = <0>,"+1";
873 - ds1339 = <0>,"+2";
874 - ds1340 = <0>,"+17";
875 - ds3231 = <0>,"+3";
876 - mcp7940x = <0>,"+4";
877 - mcp7941x = <0>,"+5";
878 - pcf2127 = <0>,"+6";
879 - pcf8523 = <0>,"+7";
880 - pcf8563 = <0>,"+8";
881 - m41t62 = <0>,"+9";
882 - rv3028 = <0>,"+10";
883 - pcf2129 = <0>,"+11";
884 - pcf85363 = <0>,"+12";
885 - rv1805 = <0>,"+13";
886 - sd3078 = <0>,"+14";
887 - pcf85063 = <0>,"+15";
888 - pcf85063a = <0>,"+16";
889 -
890 i2c0 = <&frag100>, "target:0=",<&i2c0>;
891 i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>,
892 <0>,"+101+102";
893 -
894 - addr = <&abx80x>, "reg:0",
895 - <&ds1307>, "reg:0",
896 - <&ds1339>, "reg:0",
897 - <&ds3231>, "reg:0",
898 - <&mcp7940x>, "reg:0",
899 - <&mcp7941x>, "reg:0",
900 - <&pcf8523>, "reg:0",
901 - <&pcf8563>, "reg:0",
902 - <&m41t62>, "reg:0",
903 - <&rv1805>, "reg:0";
904 - trickle-diode-type = <&abx80x>,"abracon,tc-diode",
905 - <&rv1805>,"abracon,tc-diode";
906 - trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
907 - <&ds1340>,"trickle-resistor-ohms:0",
908 - <&abx80x>,"abracon,tc-resistor:0",
909 - <&rv3028>,"trickle-resistor-ohms:0",
910 - <&rv1805>,"abracon,tc-resistor:0";
911 - backup-switchover-mode = <&rv3028>,"backup-switchover-mode:0";
912 - wakeup-source = <&ds1339>,"wakeup-source?",
913 - <&ds3231>,"wakeup-source?",
914 - <&mcp7940x>,"wakeup-source?",
915 - <&mcp7941x>,"wakeup-source?",
916 - <&m41t62>,"wakeup-source?";
917 };
918 };