Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp364567pxb; Thu, 21 Apr 2022 01:04:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzOkad7YVbmoTALXeKhz7jpEI4voM6IJfgfOm1+q7wOZOglpJ4qcEVMnqUaIDj7Y+mZ26/ X-Received: by 2002:a17:903:240f:b0:156:8e81:a0a3 with SMTP id e15-20020a170903240f00b001568e81a0a3mr24131832plo.13.1650528286501; Thu, 21 Apr 2022 01:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650528286; cv=none; d=google.com; s=arc-20160816; b=VheSI/imlsg/qVG7GLOvF/nfCkfQ/4iDPmVY0uvBdUtExjeSBYqmJYMaFtRMfQ5kSx zPgoR59tcsiFpX/v1cFhHqyprQFsVSLgSARMeD6lkwNnKRoqvVDMvTaj0hCTLpe/5Wep F8tyodxSnNcqVVAyD3rhYyTz1Itks3bOB6RlL79Hb2+tpjUSeecRQDXc6brJ3X9qTf3h FVYjsijBTOeHujeSWX+QtVUXvIuKMh143km/4nIZL1ZaadFLHGK841qp320aFclOqOpT 34E+cetyMkbNz4dYmpzTdoFIt+tZ8WIfHbkNvjW2ENIRL7ojo1MDdkovQ3m9vhZDn/nK 04zg== 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=KgA7zSB1zNWvUvJKxcp0EzQuBRkn4DNTsRgtCcCk8xE=; b=Ea58ZRFCkdcls4QrT6J8kge2qgHSovvrHPZMyGenPA6fARQITs4PndDA6W9+ofumN1 SlPl1noU65aWm8I3Ew6Q/EDaJcJxu5Oy4zevolmPtT/UdPxVLpOzhkAif7BfoS6NOQf5 gj5N+DUStz3Am9Af3L6jFQNK1Q8L7ozmT+esTRXgnhsD96vkR5amuoOAo5bs+iKuk9IG xLe9SVO+MILEtYWrIsnQuZRghvasBSVpVzDTVGiTwU5t1tdy3zlQdGcPo/WOE4xTXa+c cFu7MY7i26no6l5YBYKnTBSC0VXBkCxsk9iiGztjXvoZrn/yG2K98zorWRHlc2cFO8Ve X+fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bQKogjup; 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 e12-20020a17090a804c00b001c9c607ee7asi7033312pjw.112.2022.04.21.01.04.32; Thu, 21 Apr 2022 01:04:46 -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=bQKogjup; 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 S1357779AbiDSUzi (ORCPT + 99 others); Tue, 19 Apr 2022 16:55:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357758AbiDSUz0 (ORCPT ); Tue, 19 Apr 2022 16:55:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 18F993F8B6 for ; Tue, 19 Apr 2022 13:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650401562; 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=KgA7zSB1zNWvUvJKxcp0EzQuBRkn4DNTsRgtCcCk8xE=; b=bQKogjupc2BElg0LGjdt3eSwEw1i9dUKy0hmgef4Hc+YuKquCB9UMAmFqxCBNhsWoZRrg2 mieGJxvGx/fPQS+YK8VAbn5SRKX9l741lj2x3qMIblbkXCJfFqPHrHoxJvSLbYJfnYBBcy Y6E/rcilL+3DMkQuXKDVXlxRFSqOGBI= 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-355-F4qAxMfrMmGVT2tnHmpVBg-1; Tue, 19 Apr 2022 16:52:39 -0400 X-MC-Unique: F4qAxMfrMmGVT2tnHmpVBg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D09BC3C23FD4; Tue, 19 Apr 2022 20:52:35 +0000 (UTC) Received: from cmirabil.remote.csb (unknown [10.22.8.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id A9B6C2166B4F; Tue, 19 Apr 2022 20:52:31 +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 v9 6/6] DO NOT MERGE: full sensehat device tree overlay for raspberry pi 4 Date: Tue, 19 Apr 2022 16:51:58 -0400 Message-Id: <20220419205158.28088-7-cmirabil@redhat.com> In-Reply-To: <20220419205158.28088-1-cmirabil@redhat.com> References: <20220419205158.28088-1-cmirabil@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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: Mwesigwa Guma Signed-off-by: Mwesigwa Guma 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