Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright (C) 2017 Robert Nelson <robertcnelson@gmail.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
- /dts-v1/;
- /plugin/;
- // Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
- &{/chosen} {
- overlays {
- BB-I2C2-PCF8523-00A0 = __TIMESTAMP__;
- };
- };
- // make the pcf8523 rtc0 (the primary rtc), renumber the internal rtc to rtc1
- &{/aliases} {
- //rtc0 = &extrtc; // XXX path references not supported in overlays
- //rtc0 = "/ocp/i2c@4819c000/pcf8523@68"; // kernel 4.19
- rtc0 = "/ocp/interconnect@48000000/segment@100000/target-module@9c000/i2c@0/pcf8523@68"; // kernel 5.10
- rtc1 = "/ocp/rtc@44e3e000";
- };
- &i2c2 {
- extrtc: pcf8523@68 {
- compatible = "nxp,pcf8523";
- reg = <0x68>;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement