aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.10/950-0725-overlays-Add-Ablic-S35390A-to-i2c-rtc-and-gpio.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-0725-overlays-Add-Ablic-S35390A-to-i2c-rtc-and-gpio.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-0725-overlays-Add-Ablic-S35390A-to-i2c-rtc-and-gpio.patch')
-rw-r--r--target/linux/bcm27xx/patches-5.10/950-0725-overlays-Add-Ablic-S35390A-to-i2c-rtc-and-gpio.patch73
1 files changed, 73 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0725-overlays-Add-Ablic-S35390A-to-i2c-rtc-and-gpio.patch b/target/linux/bcm27xx/patches-5.10/950-0725-overlays-Add-Ablic-S35390A-to-i2c-rtc-and-gpio.patch
new file mode 100644
index 0000000000..5f7c6f16a3
--- /dev/null
+++ b/target/linux/bcm27xx/patches-5.10/950-0725-overlays-Add-Ablic-S35390A-to-i2c-rtc-and-gpio.patch
@@ -0,0 +1,73 @@
+From 886c341229589e7d46cbdb8194c23faee0e2a6f9 Mon Sep 17 00:00:00 2001
+From: WoodenNautilus <86767647+WoodenNautilus@users.noreply.github.com>
+Date: Tue, 3 Aug 2021 11:13:06 +0200
+Subject: [PATCH] overlays: Add Ablic S35390A to i2c-rtc and -gpio
+
+See: https://github.com/raspberrypi/linux/pull/4492
+
+Signed-off-by: Maxime Torrelli <maxime.torrelli@gmail.com>
+---
+ arch/arm/boot/dts/overlays/README | 4 ++++
+ arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi | 17 ++++++++++++++++-
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+
+--- a/arch/arm/boot/dts/overlays/README
++++ b/arch/arm/boot/dts/overlays/README
+@@ -1424,6 +1424,8 @@ Params: abx80x Select o
+
+ sd3078 Select the ZXW Shenzhen whwave SD3078 device
+
++ s35390a Select the ABLIC S35390A device
++
+ i2c0 Choose the I2C0 bus on GPIOs 0&1
+
+ i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
+@@ -1487,6 +1489,8 @@ Params: abx80x Select o
+
+ sd3078 Select the ZXW Shenzhen whwave SD3078 device
+
++ s35390a Select the ABLIC S35390A device
++
+ addr Sets the address for the RTC. Note that the
+ device must be configured to use the specified
+ address.
+--- a/arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
++++ b/arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
+@@ -243,6 +243,19 @@
+ };
+ };
+
++ fragment@18 {
++ target = <&i2cbus>;
++ __dormant__ {
++ #address-cells = <1>;
++ #size-cells = <0>;
++
++ s35390a: s35390a@30 {
++ compatible = "ablic,s35390a";
++ reg = <0x30>;
++ };
++ };
++ };
++
+ __overrides__ {
+ abx80x = <0>,"+0";
+ ds1307 = <0>,"+1";
+@@ -262,6 +275,7 @@
+ sd3078 = <0>,"+14";
+ pcf85063 = <0>,"+15";
+ pcf85063a = <0>,"+16";
++ s35390a = <0>,"+18";
+
+ addr = <&abx80x>, "reg:0",
+ <&ds1307>, "reg:0",
+@@ -272,7 +286,8 @@
+ <&pcf8523>, "reg:0",
+ <&pcf8563>, "reg:0",
+ <&m41t62>, "reg:0",
+- <&rv1805>, "reg:0";
++ <&rv1805>, "reg:0",
++ <&s35390a>, "reg:0";
+ trickle-diode-type = <&abx80x>,"abracon,tc-diode",
+ <&rv1805>,"abracon,tc-diode";
+ trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",