From nobody Tue Dec 16 16:01:54 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 1F789C32772 for ; Tue, 23 Aug 2022 19:11:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbiHWTK7 (ORCPT ); Tue, 23 Aug 2022 15:10:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229865AbiHWTJh (ORCPT ); Tue, 23 Aug 2022 15:09:37 -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 ESMTPS id 25E8379636 for ; Tue, 23 Aug 2022 10:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661276772; 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=jbhMYli+PbpL5j/G83ITSKK3U1H2INgAMQzOK2lNHlQ=; b=N+Zryk9jVJtswiF9rQ03lmMnQ9P/c3IBxIvf0LN8i1V8MrE1xQk+oHsxKCbMG26oG/PC4+ rhgK1S1kpNj9fRhvYOFPP7MEhMjhMM4hkKfNvcYwTtju8fqQh6UaCH/On3D2g8Pv4A7yBk BiewZm9pkGQl5MnGRGPFDae29iMp3nY= 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-182--kuNe3SOMi6HTrJp48Ta4g-1; Tue, 23 Aug 2022 13:42:57 -0400 X-MC-Unique: -kuNe3SOMi6HTrJp48Ta4g-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 637463C0D1B4; Tue, 23 Aug 2022 17:42:57 +0000 (UTC) Received: from cmirabil.redhat.com (unknown [10.22.33.37]) by smtp.corp.redhat.com (Postfix) with ESMTP id EA62714152E0; Tue, 23 Aug 2022 17:42:56 +0000 (UTC) From: Charles Mirabile To: linux-kernel@vger.kernel.org Cc: Charles Mirabile , Peter Robinson , Serge Schneider , Stefan Wahren , Nicolas Saenz Julienne , Mattias Brugger , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, rh-kdlp@googlegroups.com, Joel Savitz Subject: [PATCH 5/5] DO NOT MERGE: full sensehat device tree overlay for raspberry pi 4 Date: Tue, 23 Aug 2022 13:41:58 -0400 Message-Id: <20220823174158.45579-6-cmirabil@redhat.com> In-Reply-To: <20220823174158.45579-1-cmirabil@redhat.com> References: <20220823174158.45579-1-cmirabil@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 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: Joel Savitz Signed-off-by: Joel Savitz Signed-off-by: Charles Mirabile --- sensehat.dtbs | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 sensehat.dtbs diff --git a/sensehat.dtbs b/sensehat.dtbs new file mode 100644 index 000000000000..9e5a6d9229b1 --- /dev/null +++ b/sensehat.dtbs @@ -0,0 +1,52 @@ +/dts-v1/; +/plugin/; + +/ { + compatible =3D "brcm,bcm2835"; +}; + +&i2c1 { + #address-cells =3D <0x01>; + #size-cells =3D <0x00>; + status =3D "okay"; + + sensehat@46 { + 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