mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
Add device-tree overlay for ds1307
Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@ ifeq ($(CONFIG_BCM2709_DT),y)
|
||||
RPI_DT_OVERLAYS=y
|
||||
endif
|
||||
|
||||
dtb-$(RPI_DT_OVERLAYS) += ds1307-rtc-overlay.dtb
|
||||
dtb-$(RPI_DT_OVERLAYS) += hifiberry-dac-overlay.dtb
|
||||
dtb-$(RPI_DT_OVERLAYS) += hifiberry-dacplus-overlay.dtb
|
||||
dtb-$(RPI_DT_OVERLAYS) += hifiberry-digi-overlay.dtb
|
||||
|
||||
22
arch/arm/boot/dts/ds1307-rtc-overlay.dts
Normal file
22
arch/arm/boot/dts/ds1307-rtc-overlay.dts
Normal file
@@ -0,0 +1,22 @@
|
||||
// Definitions for DS1307 Real Time Clock
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "brcm,bcm2708";
|
||||
|
||||
fragment@0 {
|
||||
target = <&i2c1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "okay";
|
||||
|
||||
ds1307@68 {
|
||||
compatible = "maxim,ds1307";
|
||||
reg = <0x68>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user