bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0404-overlays-Add-missing-addresses-to-ads1015-ads1115.patch
1 From f3f0143ace6866e7370e1cec6ff04f0e6ede11dd Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Wed, 16 Dec 2020 09:28:17 +0000
4 Subject: [PATCH] overlays: Add missing addresses to ads1015/ads1115
5
6 The overlays for the ads1015 and ads1115 I2C ADCs omitted the addresses
7 in the main device node names. As well as breaking the conventions for
8 I2C devices, this prevents the firmware from renaming them when the
9 "reg" property is modified, which in turn stops the overlays from being
10 instantiated multiple times.
11
12 See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=294465
13
14 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
15 ---
16 arch/arm/boot/dts/overlays/ads1015-overlay.dts | 2 +-
17 arch/arm/boot/dts/overlays/ads1115-overlay.dts | 2 +-
18 2 files changed, 2 insertions(+), 2 deletions(-)
19
20 --- a/arch/arm/boot/dts/overlays/ads1015-overlay.dts
21 +++ b/arch/arm/boot/dts/overlays/ads1015-overlay.dts
22 @@ -13,7 +13,7 @@
23 #address-cells = <1>;
24 #size-cells = <0>;
25 status = "okay";
26 - ads1015: ads1015 {
27 + ads1015: ads1015@48 {
28 compatible = "ti,ads1015";
29 status = "okay";
30 #address-cells = <1>;
31 --- a/arch/arm/boot/dts/overlays/ads1115-overlay.dts
32 +++ b/arch/arm/boot/dts/overlays/ads1115-overlay.dts
33 @@ -15,7 +15,7 @@
34 #size-cells = <0>;
35 status = "okay";
36
37 - ads1115: ads1115 {
38 + ads1115: ads1115@48 {
39 compatible = "ti,ads1115";
40 status = "okay";
41 #address-cells = <1>;