Last active
April 21, 2025 12:23
-
-
Save ignisf/946a449eba1a3ca1a83eca785f171aff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "allwinner,sun50i-a64", | |
"olimex,a64-olinuxino"; | |
description = "Enable DS3231 on UEXT as rtc0 with alarm (SQW) on GPIO PB0"; | |
fragment@0 { | |
target-path = "/aliases"; | |
__overlay__ { | |
rtc0 = "/soc/i2c@1c2b000/ds3231@68"; | |
rtc1 = "/soc/rtc@1f00000"; | |
}; | |
}; | |
fragment@1 { | |
target = <&pio>; | |
__overlay__ { | |
alrm_pins: alrm_pins { | |
pins = "PB0"; | |
function = "irq"; | |
bias-pull-up; | |
}; | |
}; | |
}; | |
fragment@2 { | |
target = <&i2c1>; | |
__overlay__ { | |
status = "okay"; | |
ds3231: ds3231@68 { | |
compatible = "maxim,ds3231"; | |
reg = <0x68>; | |
#clock-cells = <1>; | |
interrupt-parent = <&pio>; | |
interrupts = <1 0 8>; /* PB0 IRQ_TYPE_LEVEL_LOW */ | |
gpios = <&pio 1 0 1>; /* PB0 GPIO_ACTIVE_LOW */ | |
pinctrl-names = "default"; | |
pinctrl-0 = <&alrm_pins>; | |
status = "okay"; | |
}; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment