aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.10/950-0493-overlays-i2c-rtc-Add-the-Dallas-DS1340.patch
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2021-08-21 10:54:34 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2021-08-21 19:07:07 +0200
commit8299d1f057439f94c6a4412e2e5c5082b82a30c9 (patch)
tree1bf678d61f11f7394493be464c7876e496f7faed /target/linux/bcm27xx/patches-5.10/950-0493-overlays-i2c-rtc-Add-the-Dallas-DS1340.patch
parent33b6885975ce376ff075362b7f0890326043111b (diff)
downloadupstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.gz
upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.bz2
upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.zip
bcm27xx: add kernel 5.10 support
Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted patches, wireless patches and defconfig patches. bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 4B v1.1 4G bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.10/950-0493-overlays-i2c-rtc-Add-the-Dallas-DS1340.patch')
-rw-r--r--target/linux/bcm27xx/patches-5.10/950-0493-overlays-i2c-rtc-Add-the-Dallas-DS1340.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0493-overlays-i2c-rtc-Add-the-Dallas-DS1340.patch b/target/linux/bcm27xx/patches-5.10/950-0493-overlays-i2c-rtc-Add-the-Dallas-DS1340.patch
new file mode 100644
index 0000000000..08b1f4a1bc
--- /dev/null
+++ b/target/linux/bcm27xx/patches-5.10/950-0493-overlays-i2c-rtc-Add-the-Dallas-DS1340.patch
@@ -0,0 +1,63 @@
+From fd478b369992e56665de3aabf0e19e24b5fa5e43 Mon Sep 17 00:00:00 2001
+From: Phil Elwell <phil@raspberrypi.com>
+Date: Fri, 26 Feb 2021 14:19:00 +0000
+Subject: [PATCH] overlays: i2c-rtc: Add the Dallas DS1340
+
+See: https://github.com/raspberrypi/linux/issues/4180
+
+Signed-off-by: Phil Elwell <phil@raspberrypi.com>
+---
+ arch/arm/boot/dts/overlays/README | 2 ++
+ arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 16 ++++++++++++++++
+ 2 files changed, 18 insertions(+)
+
+--- a/arch/arm/boot/dts/overlays/README
++++ b/arch/arm/boot/dts/overlays/README
+@@ -1311,6 +1311,8 @@ Params: abx80x Select o
+
+ ds1339 Select the DS1339 device
+
++ ds1340 Select the DS1340 device
++
+ ds3231 Select the DS3231 device
+
+ m41t62 Select the M41T62 device
+--- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
++++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
+@@ -231,6 +231,20 @@
+ };
+ };
+
++ fragment@17 {
++ target = <&i2cbus>;
++ __dormant__ {
++ #address-cells = <1>;
++ #size-cells = <0>;
++
++ ds1340: ds1340@68 {
++ compatible = "dallas,ds1340";
++ trickle-resistor-ohms = <0>;
++ reg = <0x68>;
++ };
++ };
++ };
++
+ frag100: fragment@100 {
+ target = <&i2c_arm>;
+ i2cbus: __overlay__ {
+@@ -242,6 +256,7 @@
+ abx80x = <0>,"+0";
+ ds1307 = <0>,"+1";
+ ds1339 = <0>,"+2";
++ ds1340 = <0>,"+17";
+ ds3231 = <0>,"+3";
+ mcp7940x = <0>,"+4";
+ mcp7941x = <0>,"+5";
+@@ -273,6 +288,7 @@
+ trickle-diode-type = <&abx80x>,"abracon,tc-diode",
+ <&rv1805>,"abracon,tc-diode";
+ trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
++ <&ds1340>,"trickle-resistor-ohms:0",
+ <&abx80x>,"abracon,tc-resistor:0",
+ <&rv3028>,"trickle-resistor-ohms:0",
+ <&rv1805>,"abracon,tc-resistor:0";