diff options
author | John Crispin <blogic@openwrt.org> | 2015-02-11 10:17:55 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-02-11 10:17:55 +0000 |
commit | c291f76d24a4190551a42b7b77a2cfeb3f4d36f9 (patch) | |
tree | 8f9211217d7e2cbaa78d10b596d81e646b3b9aad /target/linux/brcm2708/patches-3.18/0087-Add-device-tree-overlay-for-ds1307.patch | |
parent | 0e26998162921c65cbfe2814e500c81ca7b50dad (diff) | |
download | upstream-c291f76d24a4190551a42b7b77a2cfeb3f4d36f9.tar.gz upstream-c291f76d24a4190551a42b7b77a2cfeb3f4d36f9.tar.bz2 upstream-c291f76d24a4190551a42b7b77a2cfeb3f4d36f9.zip |
brcm2708: update to v3.18
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44392 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm2708/patches-3.18/0087-Add-device-tree-overlay-for-ds1307.patch')
-rwxr-xr-x | target/linux/brcm2708/patches-3.18/0087-Add-device-tree-overlay-for-ds1307.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-3.18/0087-Add-device-tree-overlay-for-ds1307.patch b/target/linux/brcm2708/patches-3.18/0087-Add-device-tree-overlay-for-ds1307.patch new file mode 100755 index 0000000000..b8494cf14b --- /dev/null +++ b/target/linux/brcm2708/patches-3.18/0087-Add-device-tree-overlay-for-ds1307.patch @@ -0,0 +1,55 @@ +From fe72f81ecb7578418207444186fa035262530946 Mon Sep 17 00:00:00 2001 +From: Ryan Coe <bluemrp9@gmail.com> +Date: Sat, 31 Jan 2015 18:26:03 -0700 +Subject: [PATCH 087/114] Add device-tree overlay for ds1307 + +Signed-off-by: Ryan Coe <bluemrp9@gmail.com> +--- + arch/arm/boot/dts/Makefile | 1 + + arch/arm/boot/dts/ds1307-rtc-overlay.dts | 22 ++++++++++++++++++++++ + 2 files changed, 23 insertions(+) + create mode 100644 arch/arm/boot/dts/ds1307-rtc-overlay.dts + +diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +index 86c6190..1b66478 100644 +--- a/arch/arm/boot/dts/Makefile ++++ b/arch/arm/boot/dts/Makefile +@@ -64,6 +64,7 @@ dtb-$(CONFIG_BCM2708_DT) += iqaudio-dacplus-overlay.dtb + dtb-$(CONFIG_BCM2708_DT) += lirc-rpi-overlay.dtb + dtb-$(CONFIG_BCM2708_DT) += pcf8523-rtc-overlay.dtb + dtb-$(CONFIG_BCM2708_DT) += pps-gpio-overlay.dtb ++dtb-$(CONFIG_BCM2708_DT) += ds1307-rtc-overlay.dtb + dtb-$(CONFIG_BCM2708_DT) += w1-gpio-overlay.dtb + dtb-$(CONFIG_BCM2708_DT) += w1-gpio-pullup-overlay.dtb + dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb +diff --git a/arch/arm/boot/dts/ds1307-rtc-overlay.dts b/arch/arm/boot/dts/ds1307-rtc-overlay.dts +new file mode 100644 +index 0000000..7d27044 +--- /dev/null ++++ b/arch/arm/boot/dts/ds1307-rtc-overlay.dts +@@ -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"; ++ }; ++ }; ++ }; ++}; +-- +1.8.3.2 + |