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
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.
10 See: https://github.com/Hexxeh/rpi-firmware/issues/252
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
14 arch/arm/boot/dts/overlays/README | 1 +
15 arch/arm/boot/dts/overlays/mpu6050-overlay.dts | 1 +
16 2 files changed, 2 insertions(+)
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)
28 --- a/arch/arm/boot/dts/overlays/mpu6050-overlay.dts
29 +++ b/arch/arm/boot/dts/overlays/mpu6050-overlay.dts
33 interrupt = <&mpu6050>,"interrupts:0";
34 + addr = <&mpu6050>,"reg:0";