Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2235706pxb; Thu, 3 Feb 2022 02:17:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeozmVmE5zPJOAQr1DIXYJqW8t0KSYaqXtiuYURgA6VeM6JYwZ83d7buiDa+fIiM5TYgO0 X-Received: by 2002:a17:907:c14:: with SMTP id ga20mr1015637ejc.243.1643883461198; Thu, 03 Feb 2022 02:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643883461; cv=none; d=google.com; s=arc-20160816; b=xXPR7zPo7Wj8ipvLsuL3AdUMShSwrHaTJOQ6le8EP+3OJfcQq7j+xCoEqbzA5j2N3y GHIReDwAsdzXcqdIQl/JP76sd/psH7Zhr+ZtRSz4Gb8paTa/GbqFI5ccGedlfZ81bm1k jhMqRGuucG5NY3vLDnEakkYiXUjhhf6cjS4mAbeGVSK4zqf2b2gz9aV5+CdMqmjpbNH6 rLA7mGVQ0oPUf+C3eVH1PjCzON0hQXngZtzookn0Zvqm1cRNvsWtw0E62aZ1t9w2qYV0 IB9TjzKTJiNBleIdgw0LoNiNl+jietLNkdO/edqwaYkPTtpfIcEf2UAjSrPbVNViyMSd CELQ== 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=ZNGL/w0+tirF2usaI8U9/uBI9LUpdeBs8wmNgjVnKDU=; b=neDURiYn3bZcmJgB58TrKfPRyga/Ws1XT7uK8saF0DJyxhbe8Qr//au7OgZ1DIQdzB pUK4Jkv6UcIDWvZ5BWqxBrMj3M1vqdBk2V/h8VjXFeFMO3tCuCUluVJtfRq8sVIu7cdK htMdkpoV9CMLAT2X/H60BpOyYPaGlzUwkEmx1U+RMxR23YhVBwzYSebQdlkiaGyz7LYL XGC1xr08Whx3nR/S8LOKDiP/BTmv5OaenKF5yQ+6qxsXmx7jAghPinvAMJEF4+C4yssc IAIzh5Y8uuiAjUwrI7L02ZknygQTbRwJMC9KVcN7UFb/qPq8+jxdnzpl1LK+wlBJQQPH cewg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RK9HCHHz; 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 gb30si3387050ejc.581.2022.02.03.02.17.16; Thu, 03 Feb 2022 02:17:41 -0800 (PST) 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=RK9HCHHz; 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 S1348583AbiBCA0R (ORCPT + 99 others); Wed, 2 Feb 2022 19:26:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:44210 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348575AbiBCA0O (ORCPT ); Wed, 2 Feb 2022 19:26:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643847973; 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=ZNGL/w0+tirF2usaI8U9/uBI9LUpdeBs8wmNgjVnKDU=; b=RK9HCHHzfKQMriXIaLxhGh7FJyzNcslY6yUL9K64jtDXeBol0veubUAewhdw5sMJdsxxsK FBGvYI9ceQgQlzEeoRCP/xncSR+Gyv7dhUxpmcltylCPCAre3KPlbb8jVadYXIbPP0wqKD 4LEhQKlInUl2VbF6XPO5CnnGG37p0hM= 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-201-4x8IU70dO2yLK2BuFDmMhQ-1; Wed, 02 Feb 2022 19:26:10 -0500 X-MC-Unique: 4x8IU70dO2yLK2BuFDmMhQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2C2621091DA1; Thu, 3 Feb 2022 00:26:09 +0000 (UTC) Received: from cmirabil.remote.csb (unknown [10.22.8.140]) by smtp.corp.redhat.com (Postfix) with ESMTP id 693694EC76; Thu, 3 Feb 2022 00:26:07 +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 6/6] DO NOT MERGE: full sensehat device tree overlay for raspberry pi 4 Date: Wed, 2 Feb 2022 19:25:21 -0500 Message-Id: <20220203002521.162878-7-cmirabil@redhat.com> In-Reply-To: <20220203002521.162878-1-cmirabil@redhat.com> References: <20220203002521.162878-1-cmirabil@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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 | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 sensehat.dtbs diff --git a/sensehat.dtbs b/sensehat.dtbs new file mode 100644 index 000000000000..5f1a9d62c9f4 --- /dev/null +++ b/sensehat.dtbs @@ -0,0 +1,56 @@ +/dts-v1/; +/plugin/; + +/ { + compatible = "brcm,bcm2835"; +}; + +&i2c1 { + #address-cells = <0x01>; + #size-cells = <0x00>; + status = "okay"; + + sensehat@46 { + #address-cells = <0x01>; + #size-cells = <0x00>; + compatible = "raspberrypi,sensehat"; + reg = <0x46>; + interrupt-parent = <&gpio>; + status = "okay"; + display@0 { + compatible = "raspberrypi,sensehat-display"; + reg = <0x0>; + status = "okay"; + }; + joystick@f2 { + compatible = "raspberrypi,sensehat-joystick"; + reg = <0xf2>; + 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