mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
Create generic i2c-rtc overlay for supporting ds1307, ds3231, pcf2127 and pcf8523.
Signed-off-by: Jon Burgess <jburgess777@gmail.com>
This commit is contained in:
@@ -14,6 +14,7 @@ endif
|
||||
|
||||
dtb-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor-overlay.dtb
|
||||
dtb-$(RPI_DT_OVERLAYS) += ds1307-rtc-overlay.dtb
|
||||
dtb-$(RPI_DT_OVERLAYS) += i2c-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
|
||||
|
||||
43
arch/arm/boot/dts/i2c-rtc-overlay.dts
Normal file
43
arch/arm/boot/dts/i2c-rtc-overlay.dts
Normal file
@@ -0,0 +1,43 @@
|
||||
// Definitions for several I2C based Real Time Clocks
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "brcm,bcm2708";
|
||||
|
||||
fragment@0 {
|
||||
target = <&i2c1>;
|
||||
__overlay__ {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "okay";
|
||||
|
||||
ds1307: ds1307@68 {
|
||||
compatible = "maxim,ds1307";
|
||||
reg = <0x68>;
|
||||
status = "disable";
|
||||
};
|
||||
ds3231: ds3231@68 {
|
||||
compatible = "maxim,ds3231";
|
||||
reg = <0x68>;
|
||||
status = "disable";
|
||||
};
|
||||
pcf2127: pcf2127@51 {
|
||||
compatible = "nxp,pcf2127";
|
||||
reg = <0x51>;
|
||||
status = "disable";
|
||||
};
|
||||
pcf8523: pcf8523@68 {
|
||||
compatible = "nxp,pcf8523";
|
||||
reg = <0x68>;
|
||||
status = "disable";
|
||||
};
|
||||
};
|
||||
};
|
||||
__overrides__ {
|
||||
ds1307 = <&ds1307>,"status";
|
||||
ds3231 = <&ds3231>,"status";
|
||||
pcf2127 = <&pcf2127>,"status";
|
||||
pcf8523 = <&pcf8523>,"status";
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user