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 61ECFC433EF for ; Fri, 10 Dec 2021 22:12:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344669AbhLJWPe (ORCPT ); Fri, 10 Dec 2021 17:15:34 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:34382 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344666AbhLJWP3 (ORCPT ); Fri, 10 Dec 2021 17:15:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639174312; 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=n11r23P5AfUvpOJpBHO4Cb1wZvdAwWeyn78z6GXJP5s=; b=MPLnkjxsBi+0VuHpIzm1uizzTdGKR2z0jUjAyYkGDNDRY8FqjiAx96KeEtirKLJ7Vj8c+A SdbJ7pD6NbMPHLWDKMapKpXLppFMGQ8mTkKZV7TK4Q4BXtDMLTDOE9BPX8ioR0JiK42R2a oAa8S9BP6DxQZ4tp6gSRh6JcsXWZx5s= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-574-xxh-eIcgOE6cZmxO5v4csg-1; Fri, 10 Dec 2021 17:11:50 -0500 X-MC-Unique: xxh-eIcgOE6cZmxO5v4csg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C4B9D2F24; Fri, 10 Dec 2021 22:11:48 +0000 (UTC) Received: from cmirabil.remote.csb (unknown [10.22.8.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id B2CE1779D2; Fri, 10 Dec 2021 22:11:47 +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 V5 6/6] DO NOT MERGE: full sensehat device tree overlay for raspberry pi 4 Date: Fri, 10 Dec 2021 17:10:33 -0500 Message-Id: <20211210221033.912430-7-cmirabil@redhat.com> In-Reply-To: <20211210221033.912430-1-cmirabil@redhat.com> References: <20211210221033.912430-1-cmirabil@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Co-developed-by: Mwesigwa Guma Signed-off-by: Mwesigwa Guma Co-developed-by: Joel Savitz Signed-off-by: Joel Savitz --- 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@46 { + compatible = "raspberrypi,sensehat"; + reg = <0x46>; + interrupts = <23 1>; + interrupt-parent = <&gpio>; + 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"; + }; +}; -- 2.31.1