Skip to content

Commit

Permalink
DO NOT MERGE: full sensehat device tree overlay for raspberry pi 4
Browse files Browse the repository at this point in the history
This patch shold not be merged - dtbs files are not stored in the
kernel tree. We just provide this file so the code can be tested.

This overlay is suitable for testing the driver, it can be compiled with
dtc and put in the /boot/overlays/ folder then specified in config.txt
by putting the lines:

dtoverlay=		#suppress loading of default overlay for HAT
dtoverlay=sensehat	#load custom overlay

at the beginning before any other lines in config.txt

Co-developed-by: Mwesigwa Guma <[email protected]>
Signed-off-by: Mwesigwa Guma <[email protected]>
Co-developed-by: Joel Savitz <[email protected]>
Signed-off-by: Joel Savitz <[email protected]>
Signed-off-by: Charles Mirabile <[email protected]>
  • Loading branch information
Charles Mirabile authored and 6by9 committed Sep 17, 2024
1 parent 01c08ba commit 16db26b
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions sensehat.dtbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835";
};

&i2c1 {
#address-cells = <0x01>;
#size-cells = <0x00>;
status = "okay";

sensehat@46 {
compatible = "raspberrypi,sensehat";
reg = <0x46>;
interrupt-parent = <&gpio>;
status = "okay";
display {
compatible = "raspberrypi,sensehat-display";
status = "okay";
};
joystick {
compatible = "raspberrypi,sensehat-joystick";
interrupts = <23 1>;
status = "okay";
};
};

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

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

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

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

0 comments on commit 16db26b

Please sign in to comment.