bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0402-overlays-mpu6050-Add-addr-parameter.patch
1 From 3e0ea72cab201faea51f8cdb490562151a3f01fd Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 15 Dec 2020 17:02:17 +0000
4 Subject: [PATCH] overlays: mpu6050: Add 'addr' parameter
5
6 The mpu6050 starts up at address 0x68 by default, but can be set to
7 0x69 if the ADO pin is pulled high. Give the overlay an addr parameter
8 to allow devices at the alternate address to be used.
9
10 See: https://github.com/Hexxeh/rpi-firmware/issues/252
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
13 ---
14 arch/arm/boot/dts/overlays/README | 1 +
15 arch/arm/boot/dts/overlays/mpu6050-overlay.dts | 1 +
16 2 files changed, 2 insertions(+)
17
18 --- a/arch/arm/boot/dts/overlays/README
19 +++ b/arch/arm/boot/dts/overlays/README
20 @@ -1920,6 +1920,7 @@ Name: mpu6050
21 Info: Overlay for i2c connected mpu6050 imu
22 Load: dtoverlay=mpu6050,<param>=<val>
23 Params: interrupt GPIO pin for interrupt (default 4)
24 + addr I2C address of the device (default 0x68)
25
26
27 Name: mz61581
28 --- a/arch/arm/boot/dts/overlays/mpu6050-overlay.dts
29 +++ b/arch/arm/boot/dts/overlays/mpu6050-overlay.dts
30 @@ -24,5 +24,6 @@
31
32 __overrides__ {
33 interrupt = <&mpu6050>,"interrupts:0";
34 + addr = <&mpu6050>,"reg:0";
35 };
36 };