Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /dts-v1/;
- /plugin/;
- / {
- compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5";
- /*
- * Aliases can be used to set the external RTC as rtc0
- * Needs supplying the correct path to the I2C controller RTC is connected to,
- * this example is for I2C1 on H3
- * NOTE: setting time at boot by the kernel
- * may not work in some cases if the external RTC module is loaded too late
- */
- fragment@0 {
- target-path = "/aliases";
- __overlay__ {
- rtc0 = "/soc/i2c@1c2ac00/ds1307@68";
- };
- };
- fragment@1 {
- target = <&i2c0>;
- __overlay__ {
- #address-cells = <1>;
- #size-cells = <0>;
- ds1307@68 {
- compatible = "dallas,ds1307";
- reg = <0x68>;
- status = "okay";
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement