Advertisement
zmatt

BB-I2C2-PCF8523-00A0.dts (fixed)

May 5th, 2023 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.88 KB | None | 0 0
  1. /*
  2.  * Copyright (C) 2017 Robert Nelson <robertcnelson@gmail.com>
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License version 2 as
  6.  * published by the Free Software Foundation.
  7.  */
  8.  
  9. /dts-v1/;
  10. /plugin/;
  11.  
  12. // Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
  13. &{/chosen} {
  14.     overlays {
  15.         BB-I2C2-PCF8523-00A0 = __TIMESTAMP__;
  16.     };
  17. };
  18.  
  19. // make the pcf8523 rtc0 (the primary rtc), renumber the internal rtc to rtc1
  20. &{/aliases} {
  21.     //rtc0 = &extrtc;   // XXX path references not supported in overlays
  22.     //rtc0 = "/ocp/i2c@4819c000/pcf8523@68";   // kernel 4.19
  23.     rtc0 = "/ocp/interconnect@48000000/segment@100000/target-module@9c000/i2c@0/pcf8523@68";  // kernel 5.10
  24.  
  25.     rtc1 = "/ocp/rtc@44e3e000";
  26. };
  27.  
  28. &i2c2 {
  29.     extrtc: pcf8523@68 {
  30.         compatible = "nxp,pcf8523";
  31.         reg = <0x68>;
  32.     };
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement