[PATCH V5 6/6] DO NOT MERGE: full sensehat device tree overlay for raspberry pi 4
Charles Mirabile
cmirabil at redhat.com
Fri Dec 10 14:10:33 PST 2021
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
Signed-off-by: Charles Mirabile <cmirabil at redhat.com>
Co-developed-by: Mwesigwa Guma <mguma at redhat.com>
Signed-off-by: Mwesigwa Guma <mguma at redhat.com>
Co-developed-by: Joel Savitz <jsavitz at redhat.com>
Signed-off-by: Joel Savitz <jsavitz at redhat.com>
---
sensehat.dtbs | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
create mode 100644 sensehat.dtbs
diff --git a/sensehat.dtbs b/sensehat.dtbs
new file mode 100644
index 000000000000..e087b7ba4a5a
--- /dev/null
+++ b/sensehat.dtbs
@@ -0,0 +1,44 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "brcm,bcm2835";
+};
+
+&i2c1 {
+ #address-cells = <0x01>;
+ #size-cells = <0x00>;
+ status = "okay";
+
+ sensehat at 46 {
+ compatible = "raspberrypi,sensehat";
+ reg = <0x46>;
+ interrupts = <23 1>;
+ interrupt-parent = <&gpio>;
+ status = "okay";
+ };
+
+ lsm9ds1-magn at 1c {
+ compatible = "st,lsm9ds1-magn";
+ reg = <0x1c>;
+ status = "okay";
+ };
+
+ lsm9ds1-accel at 6a {
+ compatible = "st,lsm9ds1-accel";
+ reg = <0x6a>;
+ status = "okay";
+ };
+
+ lps25h-press at 5c {
+ compatible = "st,lps25h-press";
+ reg = <0x5c>;
+ status = "okay";
+ };
+
+ hts221-humid at 5f {
+ compatible = "st,hts221-humid\0st,hts221";
+ reg = <0x5f>;
+ status = "okay";
+ };
+};
--
2.31.1
More information about the linux-arm-kernel
mailing list