From nobody Tue Dec 16 06:07:50 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 630EDC433EF for ; Tue, 12 Apr 2022 20:26:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229665AbiDLU2u (ORCPT ); Tue, 12 Apr 2022 16:28:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232218AbiDLU1k (ORCPT ); Tue, 12 Apr 2022 16:27:40 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E2599DD975 for ; Tue, 12 Apr 2022 13:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649794458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wKeEjLPVCQWQYsPyoUlmVTqyS0GcmUXtUuQ8I/MM+9k=; b=d1APatTUtJgTTmLWKehB8mbBAuQPeaXhE7p9YFm+MmGo4ja/FFno4+FEofGTvyeX5gNU3P IOpT9zp0uU5PlCfeJBiFyaiIPlnbEP0e27O0YpzjcRS3YTqnLXVI9Z3lIISYYRMsYGZCy1 kKNK9DnhbhWryN9x3jlwQG+Mm0IzsN0= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-460-9r7wI2JXNEKUjGeycyMjeA-1; Tue, 12 Apr 2022 16:14:14 -0400 X-MC-Unique: 9r7wI2JXNEKUjGeycyMjeA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 68A721C05155; Tue, 12 Apr 2022 20:14:14 +0000 (UTC) Received: from cmirabil.remote.csb (unknown [10.22.32.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id F3397416363; Tue, 12 Apr 2022 20:14:13 +0000 (UTC) From: Charles Mirabile To: linux-kernel@vger.kernel.org Cc: Charles Mirabile , Serge Schneider , Stefan Wahren , Nicolas Saenz Julienne , Mattias Brugger , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, fedora-rpi@googlegroups.com, Mwesigwa Guma , Joel Savitz Subject: [PATCH v8 6/6] DO NOT MERGE: full sensehat device tree overlay for raspberry pi 4 Date: Tue, 12 Apr 2022 16:13:43 -0400 Message-Id: <20220412201343.8074-7-cmirabil@redhat.com> In-Reply-To: <20220412201343.8074-1-cmirabil@redhat.com> References: <20220412201343.8074-1-cmirabil@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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=3D #suppress loading of default overlay for HAT dtoverlay=3Dsensehat #load custom overlay at the beginning before any other lines in config.txt Co-developed-by: Mwesigwa Guma Signed-off-by: Mwesigwa Guma Co-developed-by: Joel Savitz Signed-off-by: Joel Savitz Signed-off-by: Charles Mirabile --- sensehat.dtbs | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 sensehat.dtbs diff --git a/sensehat.dtbs b/sensehat.dtbs new file mode 100644 index 000000000000..82d129c847fb --- /dev/null +++ b/sensehat.dtbs @@ -0,0 +1,54 @@ +/dts-v1/; +/plugin/; + +/ { + compatible =3D "brcm,bcm2835"; +}; + +&i2c1 { + #address-cells =3D <0x01>; + #size-cells =3D <0x00>; + status =3D "okay"; + + sensehat@46 { + #address-cells =3D <0x01>; + #size-cells =3D <0x00>; + compatible =3D "raspberrypi,sensehat"; + reg =3D <0x46>; + interrupt-parent =3D <&gpio>; + status =3D "okay"; + display { + compatible =3D "raspberrypi,sensehat-display"; + status =3D "okay"; + }; + joystick { + compatible =3D "raspberrypi,sensehat-joystick"; + interrupts =3D <23 1>; + status =3D "okay"; + }; + }; + + lsm9ds1-magn@1c { + compatible =3D "st,lsm9ds1-magn"; + reg =3D <0x1c>; + status =3D "okay"; + }; + + lsm9ds1-accel@6a { + compatible =3D "st,lsm9ds1-accel"; + reg =3D <0x6a>; + status =3D "okay"; + }; + + lps25h-press@5c { + compatible =3D "st,lps25h-press"; + reg =3D <0x5c>; + status =3D "okay"; + }; + + hts221-humid@5f { + compatible =3D "st,hts221-humid\0st,hts221"; + reg =3D <0x5f>; + status =3D "okay"; + }; +}; --=20 2.31.1