Skip to content

Commit e1634d2

Browse files
6by9pelwell
authored andcommitted
dtoverlays: Add adxl345 to i2c-sensor
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 8fca281 commit e1634d2

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,6 +2419,9 @@ Params: addr Set the address for the ADT7410, AS73211,
24192419
temperature sensors
24202420
Valid address 0x48-0x4b, default 0x48
24212421

2422+
adxl345 Select the Analog Devices ADXL345 3-axis
2423+
accelerometer
2424+
24222425
aht10 Select the Aosong AHT10 temperature and humidity
24232426
sensor
24242427

arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,24 @@
648648
};
649649
};
650650

651+
fragment@42 {
652+
target = <&i2cbus>;
653+
__dormant__ {
654+
#address-cells = <1>;
655+
#size-cells = <0>;
656+
status = "okay";
657+
658+
adxl345: adxl345@53 {
659+
compatible = "adi,adxl345";
660+
reg = <0x53>;
661+
interrupt-parent = <&gpio>;
662+
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
663+
pinctrl-0 = <&int_pins>;
664+
pinctrl-names = "default";
665+
};
666+
};
667+
};
668+
651669
fragment@99 {
652670
target = <&gpio>;
653671
__dormant__ {
@@ -702,6 +720,7 @@
702720
hdc3020 = <0>,"+39+99";
703721
as73211 = <0>,"+40+99";
704722
as7331 = <0>,"+41+99";
723+
adxl345 = <0>,"+42+99";
705724

706725
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
707726
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -713,7 +732,7 @@
713732
<&bno055>,"reg:0", <&sht4x>,"reg:0",
714733
<&bmp380>,"reg:0", <&adt7410>,"reg:0", <&ina238>,"reg:0",
715734
<&hdc3020>,"reg:0", <&as73211>,"reg:0",
716-
<&as7331>,"reg:0";
735+
<&as7331>,"reg:0", <&adxl345>,"reg:0";
717736
int_pin = <&int_pins>, "brcm,pins:0",
718737
<&int_pins>, "reg:0",
719738
<&max30102>, "interrupts:0",
@@ -722,7 +741,8 @@
722741
<&hts221>, "interrupts:0",
723742
<&hdc3020>, "interrupts:0",
724743
<&as73211>, "interrupts:0",
725-
<&as7331>, "interrupts:0";
744+
<&as7331>, "interrupts:0",
745+
<&adxl345>, "interrupts:0";
726746
no_timeout = <&jc42>, "smbus-timeout-disable?";
727747
reset_pin = <&bno055>,"reset-gpios:4", <0>,"+30";
728748
shunt_resistor = <&ina238>,"shunt-resistor:0";

0 commit comments

Comments
 (0)