bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0499-overlays-Improve-the-i2c-rtc-i2c_csi_dsi-option.patch
1 From 7792f64f6d4fbd67ed99e63ad7e828430adb6bac Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Thu, 11 Mar 2021 16:11:46 +0000
4 Subject: [PATCH] overlays: Improve the i2c-rtc,i2c_csi_dsi option
5
6 The i2c_csi_dsi parameter of the i2c-rtc overlay (added for the CM4IO
7 board) causes the RTC devices to be probed on the I2C0 bus appearing
8 on GPIOs 44 and 45. However, it didn't enable the other nodes necessary
9 for it to work - "dtparam=i2c_vc=on" was also required.
10
11 Fix that.
12
13 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
14 ---
15 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 17 ++++++++++++++++-
16 1 file changed, 16 insertions(+), 1 deletion(-)
17
18 --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
19 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
20 @@ -252,6 +252,20 @@
21 };
22 };
23
24 + fragment@101 {
25 + target = <&i2c0if>;
26 + __dormant__ {
27 + status = "okay";
28 + };
29 + };
30 +
31 + fragment@102 {
32 + target = <&i2c0mux>;
33 + __dormant__ {
34 + status = "okay";
35 + };
36 + };
37 +
38 __overrides__ {
39 abx80x = <0>,"+0";
40 ds1307 = <0>,"+1";
41 @@ -273,7 +287,8 @@
42 pcf85063a = <0>,"+16";
43
44 i2c0 = <&frag100>, "target:0=",<&i2c0>;
45 - i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>;
46 + i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>,
47 + <0>,"+101+102";
48
49 addr = <&abx80x>, "reg:0",
50 <&ds1307>, "reg:0",