SHOW:
|
|
- or go back to the newest paste.
1 | - | /* |
1 | + | |
2 | - | * Copyright (C) 2017 Robert Nelson <[email protected]> |
2 | + | |
3 | - | * |
3 | + | #if 0 |
4 | - | * This program is free software; you can redistribute it and/or modify |
4 | + | // this is what we want: |
5 | - | * it under the terms of the GNU General Public License version 2 as |
5 | + | rtc0 = &extrtc; |
6 | - | * published by the Free Software Foundation. |
6 | + | rtc1 = &rtc; |
7 | - | */ |
7 | + | // and this would work in a base dts, but path references are not |
8 | // supported in overlay properties. as workaround you need to hardcode | |
9 | - | /dts-v1/; |
9 | + | // the paths, which unfortunately are kernel version dependent: |
10 | - | /plugin/; |
10 | + | #elif 0 |
11 | // kernel 4.19 | |
12 | - | // Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/ |
12 | + | rtc0 = "/ocp/i2c@4819c000/pcf8523@68"; |
13 | - | &{/chosen} { |
13 | + | |
14 | - | overlays { |
14 | + | #elif 1 |
15 | - | BB-I2C2-PCF8523-00A0 = __TIMESTAMP__; |
15 | + | // kernel 5.10 |
16 | rtc0 = "/ocp/interconnect@48000000/segment@100000/target-module@9c000/i2c@0/pcf8523@68"; | |
17 | rtc1 = "/ocp/interconnect@44c00000/segment@200000/target-module@3e000/rtc@0"; | |
18 | #endif | |
19 | }; | |
20 | ||
21 | - | //rtc0 = &extrtc; // XXX path references not supported in overlays |
21 | + | |
22 | - | //rtc0 = "/ocp/i2c@4819c000/pcf8523@68"; // kernel 4.19 |
22 | + | |
23 | - | rtc0 = "/ocp/interconnect@48000000/segment@100000/target-module@9c000/i2c@0/pcf8523@68"; // kernel 5.10 |
23 | + | |
24 | reg = <0x68>; | |
25 | }; | |
26 | }; |