Skip to content

Commit

Permalink
overlays: Add rpi-sense-v2
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Sep 27, 2022
1 parent 0b897a2 commit 3fb5ca8
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
rpi-poe.dtbo \
rpi-poe-plus.dtbo \
rpi-sense.dtbo \
rpi-sense-v2.dtbo \
rpi-tv.dtbo \
rra-digidac1-wm8741-audio.dtbo \
sainsmart18.dtbo \
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -3427,6 +3427,12 @@ Load: dtoverlay=rpi-sense
Params: <None>


Name: rpi-sense-v2
Info: Raspberry Pi Sense HAT v2
Load: dtoverlay=rpi-sense-v2
Params: <None>


Name: rpi-tv
Info: Raspberry Pi TV HAT
Load: dtoverlay=rpi-tv
Expand Down
47 changes: 47 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-sense-v2-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// rpi-sense HAT
/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835";

fragment@0 {
target = <&i2c1>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

rpi-sense@46 {
compatible = "rpi,rpi-sense";
reg = <0x46>;
keys-int-gpios = <&gpio 23 1>;
status = "okay";
};

lsm9ds1-magn@1c {
compatible = "st,lsm9ds1-magn";
reg = <0x1c>;
status = "okay";
};

lps25h-press@5c {
compatible = "st,lps25h-press";
reg = <0x5c>;
status = "okay";
};

hts221-humid@5f {
compatible = "st,hts221-humid", "st,hts221";
reg = <0x5f>;
status = "okay";
};

lsm9ds1-accel@6a {
compatible = "st,lsm9ds1-accel";
reg = <0x6a>;
status = "okay";
};
};
};
};

0 comments on commit 3fb5ca8

Please sign in to comment.