Advertisement
tabr

Untitled

Feb 28th, 2023
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. /dts-v1/;
  2. /plugin/;
  3.  
  4. / {
  5. compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5";
  6.  
  7. /*
  8. * Aliases can be used to set the external RTC as rtc0
  9. * Needs supplying the correct path to the I2C controller RTC is connected to,
  10. * this example is for I2C1 on H3
  11. * NOTE: setting time at boot by the kernel
  12. * may not work in some cases if the external RTC module is loaded too late
  13. */
  14. fragment@0 {
  15. target-path = "/aliases";
  16. __overlay__ {
  17. rtc0 = "/soc/i2c@1c2ac00/ds1307@68";
  18. };
  19. };
  20.  
  21. fragment@1 {
  22. target = <&i2c0>;
  23. __overlay__ {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. ds1307@68 {
  27. compatible = "dallas,ds1307";
  28. reg = <0x68>;
  29. status = "okay";
  30. };
  31. };
  32. };
  33. };
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement