1 From 886c341229589e7d46cbdb8194c23faee0e2a6f9 Mon Sep 17 00:00:00 2001
2 From: WoodenNautilus <86767647+WoodenNautilus@users.noreply.github.com>
3 Date: Tue, 3 Aug 2021 11:13:06 +0200
4 Subject: [PATCH] overlays: Add Ablic S35390A to i2c-rtc and -gpio
6 See: https://github.com/raspberrypi/linux/pull/4492
8 Signed-off-by: Maxime Torrelli <maxime.torrelli@gmail.com>
10 arch/arm/boot/dts/overlays/README | 4 ++++
11 arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi | 17 ++++++++++++++++-
12 2 files changed, 20 insertions(+), 1 deletion(-)
14 --- a/arch/arm/boot/dts/overlays/README
15 +++ b/arch/arm/boot/dts/overlays/README
16 @@ -1424,6 +1424,8 @@ Params: abx80x Select o
18 sd3078 Select the ZXW Shenzhen whwave SD3078 device
20 + s35390a Select the ABLIC S35390A device
22 i2c0 Choose the I2C0 bus on GPIOs 0&1
24 i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
25 @@ -1487,6 +1489,8 @@ Params: abx80x Select o
27 sd3078 Select the ZXW Shenzhen whwave SD3078 device
29 + s35390a Select the ABLIC S35390A device
31 addr Sets the address for the RTC. Note that the
32 device must be configured to use the specified
34 --- a/arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
35 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi
43 + #address-cells = <1>;
46 + s35390a: s35390a@30 {
47 + compatible = "ablic,s35390a";
59 pcf85063a = <0>,"+16";
60 + s35390a = <0>,"+18";
62 addr = <&abx80x>, "reg:0",
70 + <&s35390a>, "reg:0";
71 trickle-diode-type = <&abx80x>,"abracon,tc-diode",
72 <&rv1805>,"abracon,tc-diode";
73 trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",