Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3931352rwa; Tue, 23 Aug 2022 12:47:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR4/CV/FpPlIqIFW/lKJn9NHQ8aGqmdru/00mGMLZC1+bZIW3/dSudMRzgpwJ7CIGABDxAqD X-Received: by 2002:a62:52d6:0:b0:536:288d:a7f7 with SMTP id g205-20020a6252d6000000b00536288da7f7mr20209720pfb.7.1661284029904; Tue, 23 Aug 2022 12:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661284029; cv=none; d=google.com; s=arc-20160816; b=gt3kMh/qRPrCw5iTJErBTU60V2cBt1FdJu4O2S1rOApYTMIxuyswM9cnODMG/vJTv1 3jlPi978W4lyMZUC2X2kHnU+SpUgv6ttw2G1pbXn0DVD1fiNh+QrvzcJA/FBvLOb6jCl p+2qAYjjbNSQ3k0Ex63Qcm34EDKnvvxIW87ROgWhIyBXjrVlT9lEtYqNqAIYQwBp679N vCOWgjC01YjfGbsJd96QOkWwjMjfaalVAnhpJqDuVRjV5tUY5aYQC8uRIjlgCzGK5Wsp gb77rKJQ3rRHVym/+NZyF6O6MN/OFKQyqUqA/8tFURMDqCfD+A4raOzMLdu/R5y1+XuZ ZSCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jbhMYli+PbpL5j/G83ITSKK3U1H2INgAMQzOK2lNHlQ=; b=lv7Q49ucI2Nm+E0Svy/h9jjdHqT3Sv8J0pJLqivZ0kM5KFt6dJVEJqxzaNIw8oavJO vPsvHu3ULf5s5v/63YNoMRFzgOK1JoIVPjj8bzMNnEWMELfGFABNNfU7IS+aEkS3jIMd K9B4QRmHedHFkDu3Fwru9v3LOhdmoplyq+wIMZnULRQeX/QEUcyLJJHbgp9OSoof78ze +8L2lgtV8Ks4U/cTa2cO4t0rxiRQhiq3qVkRO9RJfH6DMOx2Dri17vUGSFqGm4pUnwyN wnuJ05ylYoMP1p8DH+AhRmx2Z8Rgcj7GLIO7Z7//adJhnFhliDbsBi2Ne3FeF9iGk/FG 0zWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N+Zryk9j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr8-20020a17090b4b8800b001fb4def1fdcsi4659065pjb.182.2022.08.23.12.46.57; Tue, 23 Aug 2022 12:47:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N+Zryk9j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229641AbiHWTK6 (ORCPT + 99 others); Tue, 23 Aug 2022 15:10:58 -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: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 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 = "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"; + }; +}; -- 2.31.1