Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1680619pxb; Fri, 20 Aug 2021 11:10:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXqsIUWIi2JzUdfHJDoCuADSERIXPoo9ezrpVIFaTZ3JblEbkEr4DwqL8K+KMQCaGFre3D X-Received: by 2002:a6b:8f4e:: with SMTP id r75mr17281239iod.172.1629483022249; Fri, 20 Aug 2021 11:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629483022; cv=none; d=google.com; s=arc-20160816; b=PPGWzo5VVstMCrCqIeLKx25I3tUr/BCQP6ncMRWWt+Bbw24WmnDHOxkHFNR5PCbvBa wHqGQCoNFjXIgwnbMkRaaPKtq9YAYWfutyehD+MWgsd27mhPGjCdqoKK8+IAAiBHTNS+ WwU2gXJjc/q5mJDGEVEbmLd3J1070p+j9WpmB8fOVMKUgssfJnnq6McLtTvGcjjT3INK 9sKF8aT1VQQFLEN60IWmMAIL82jcIu3jeY1S6wuu70LD8t4uYeUsCe1DHqunX5j0Gzmt zbACivToEf0WbcU6xr/xh73AvyW0AOxVGeIkSiRIveyCtJeYlJrAm4A7Cb9FZfwUj9p4 X/pQ== 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=4OPGCf/bXJhFEwNiiTiwLH7EUHiCc1gHGIcxlKk1+ks=; b=WFA3ysrrpid2dfjK86bP+pOw0uBQi3OM9pGCcnW3VprL2ixgMEeO81sEXDni7mwHAl HPGZwdayJF2iV8ACEFIVHN5ybGAlXDRnfQ+5oM9CeTkS2o3t4WPYlL6N2oZKh7EjUDmR LN9w3A02SEH3Hb4uG7Zoqhxit0QKawo3WbqSM5vdus5I9foeDJFUn7JNqwU4BMiMAnx9 fbdC4s6IQdNK48GPtGmKb492ZUtFtaxu4V7TKBwrMplitE1Yl5GT46ZB7qz65Y5sHun+ SyA5O2s6eV3xiAIQhtOY/VoCSQo4IPPfqKR1VXNHU/zP7Me9cMdx8F84aS1P0ORB7Pk0 mfwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VqBcHrx2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o66si7546730iof.56.2021.08.20.11.10.06; Fri, 20 Aug 2021 11:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VqBcHrx2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235950AbhHTSJQ (ORCPT + 99 others); Fri, 20 Aug 2021 14:09:16 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:59482 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235964AbhHTSJJ (ORCPT ); Fri, 20 Aug 2021 14:09:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629482910; 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=4OPGCf/bXJhFEwNiiTiwLH7EUHiCc1gHGIcxlKk1+ks=; b=VqBcHrx2v3NQMtWMxnXKpztcdFh/6eo1QTRST2PO8j7L00kQZz9Dqbxm0mvlgeIx16xbvZ fMH3fSGhsgIrvZ7HTs/BoJHnJYf2sAM63nOXdL6p79rev2SAD92Ztc1uBXb+8hCIKtmxgq 5lsxpSd/Zf0JQRA1AckMQU2td3/TR6Y= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-507-op8t1VePPC6KaSsVdbvpqQ-1; Fri, 20 Aug 2021 14:08:29 -0400 X-MC-Unique: op8t1VePPC6KaSsVdbvpqQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1F643875048; Fri, 20 Aug 2021 18:08:28 +0000 (UTC) Received: from cmirabil.remote.csb (unknown [10.22.9.218]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8D0A65D9D5; Fri, 20 Aug 2021 18:08:26 +0000 (UTC) From: Charles Mirabile To: linux-kernel@vger.kernel.org Cc: Charles Mirabile , Rob Herring , devicetree@vger.kernel.org, Serge Schneider , Stefan Wahren , Nicolas Saenz Julienne , linux-rpi-kernel@lists.infradead.org, fedora-rpi@googlegroups.com, Mwesigwa Guma , Joel Savitz Subject: [RFC PATCH v2 4/4] sensehat: Add device tree overlay (do not merge) Date: Fri, 20 Aug 2021 14:08:01 -0400 Message-Id: <20210820180801.561119-5-cmirabil@redhat.com> In-Reply-To: <20210820180801.561119-1-cmirabil@redhat.com> References: <20210820180801.561119-1-cmirabil@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is an RFC. The overlay included here is suitable for the Sense HAT but we are not sure where overlays like this should go, or if we should even include it, because the Raspberry Pi kernel tree already includes that device tree blob that this was based on and most distributions for the Raspberry Pi include those blobs. The overlay is just in the root of the source tree since we did not know where to put it so this patch should not be merged in this state. Signed-off-by: Charles Mirabile Signed-off-by: Mwesigwa Guma Signed-off-by: Joel Savitz --- sensehat.dtbs | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 sensehat.dtbs diff --git a/sensehat.dtbs b/sensehat.dtbs new file mode 100644 index 000000000000..3f1c12c8f75f --- /dev/null +++ b/sensehat.dtbs @@ -0,0 +1,51 @@ +/dts-v1/; + +/ { + compatible = "brcm,bcm2835"; + + fragment@0 { + target = <0xffffffff>; + + __overlay__ { + #address-cells = <0x01>; + #size-cells = <0x00>; + status = "okay"; + + sensehat@46 { + compatible = "raspberrypi,sensehat"; + reg = <0x46>; + keys-int-gpios = <0xffffffff 0x17 0x01>; + status = "okay"; + }; + + lsm9ds1-magn@1c { + compatible = "st,lsm9ds1-magn"; + reg = <0x1c>; + status = "okay"; + }; + + lsm9ds1-accel6a { + 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"; + }; + }; + }; + + __fixups__ { + i2c1 = "/fragment@0:target:0"; + gpio = "/fragment@0/__overlay__/sensehat@46:keys-int-gpios:0"; + }; +}; -- 2.27.0