Files
openwrt-master/target/linux/bcm27xx/patches-6.6/950-0992-overlays-i2c-rtc-added-pcf2131-param.patch
domenico c06fb25d1f
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Initial commit
2025-06-24 14:35:53 +02:00

62 lines
1.7 KiB
Diff

From 9d121e3d71d65de434d72cff3db1f6d7252bc648 Mon Sep 17 00:00:00 2001
From: Giampiero Baggiani <giampiero7@users.noreply.github.com>
Date: Wed, 27 Mar 2024 10:42:59 +0100
Subject: [PATCH 0992/1085] overlays: i2c-rtc: added pcf2131 param
Add support for the PCF2131 RTC to the i2c-rtc and i2c-rtc-gpio
overlays.
---
arch/arm/boot/dts/overlays/README | 4 ++++
arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi | 13 +++++++++++++
2 files changed, 17 insertions(+)
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -2151,6 +2151,8 @@ Params: abx80x Select o
pcf2129 Select the PCF2129 device
+ pcf2131 Select the PCF2131 device
+
pcf85063 Select the PCF85063 device
pcf85063a Select the PCF85063A device
@@ -2245,6 +2247,8 @@ Params: abx80x Select o
pcf2129 Select the PCF2129 device
+ pcf2131 Select the PCF2131 device
+
pcf85063 Select the PCF85063 device
pcf85063a Select the PCF85063A device
--- a/arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
+++ b/arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
@@ -296,6 +296,18 @@
};
};
+ fragment@22 {
+ target = <&i2cbus>;
+ __dormant__ {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ pcf2131@53 {
+ compatible = "nxp,pcf2131";
+ reg = <0x53>;
+ };
+ };
+ };
__overrides__ {
abx80x = <0>,"+0";
@@ -320,6 +332,7 @@
bq32000 = <0>,"+19";
rv8803 = <0>,"+20";
rv3032 = <0>,"+21";
+ pcf2131 = <0>,"+22";
addr = <&abx80x>, "reg:0",
<&ds1307>, "reg:0",