mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
8299d1f057
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>
64 lines
1.8 KiB
Diff
64 lines
1.8 KiB
Diff
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";
|