Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp536701pxb; Fri, 29 Oct 2021 14:56:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1pp9daU9OujtXhBSbit0Tegv0lyWOh/Isqa3YIyN9wds5LmN0kc8Gy6Y7RUhKs/sPkhRf X-Received: by 2002:a6b:7e03:: with SMTP id i3mr1423784iom.3.1635544593282; Fri, 29 Oct 2021 14:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635544593; cv=none; d=google.com; s=arc-20160816; b=jfF96b+70PFpB5rCEIOrCfC2fvK3cIaQIKVg3IJIEQDKTHXU5Il5q92erSErNz6cJp n8LM38zlq8TZLs+xh2B6VCM2shNrN9ygDQr4BiTSI34fMqChRT7TWc+0MCO8bsANxYnq xUCDYIu89LFakdXGw9Erh6yAWWHi/W1u1LGtxOymvAKcQjhQCsIsR8tSx6eCy0nDvCxf gvg1XTcaZRs+OMKwIXA122jqtNUzaOuZNjIkvOhJ01cTfuqE8NVHyUmLDx6mNXMrBzgg J5w+NkRMbxH/fBVAzJ7UGWg9Ei/71zIPJi91EDw5TozVUiC772J02R15MfwsvPC9H3vC X0eA== 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=0y+js0xn4d9o0dcNrtOtPbAxb1UW1ZkQOz94yRpKQ10=; b=o9pcifm7n+u0Q6rP4ViW4tyCvCYGa4CsrApTm05lRoM/vkIyO9CHw8sGWlQ3B1s6UW /Yu7kMoTk6Qsq5eBmzdbQRBLo75iqLnlx4MoZbablK9sLMrLPa3PSI95UJW3OxxOTb38 Rcy51kF9NNohx6IVFQ65No6Iujjpm0mllVNL1dbOmqFhlQE3LrqZt1w9KXiaFQRMP2Fi hnl3QW7vmh0hxUjU5wY/MrUhLwTUO0udIfDop+bQbc0+IZ6aBkWVnGENjfXYCLvMs0yB odCdjboRZtEb8GRrkwrCLQMyxLxJ/5KuZISBEyvovI2fEXlK7JwYY3s5paf2blRdCwEU C0OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R4nsTKeC; 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 u9si2819791ill.20.2021.10.29.14.56.20; Fri, 29 Oct 2021 14:56:33 -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=R4nsTKeC; 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 S231546AbhJ2V5X (ORCPT + 99 others); Fri, 29 Oct 2021 17:57:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:43774 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231504AbhJ2V5W (ORCPT ); Fri, 29 Oct 2021 17:57:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635544493; 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=0y+js0xn4d9o0dcNrtOtPbAxb1UW1ZkQOz94yRpKQ10=; b=R4nsTKeCsVzLmZW5wI5jQ1vbc7HII3zknhWYalo+YtT1xtVcbcdB9VR1LEnL4hER5kQ6Cu YRs/QWGMhFzEi/GuL+y6tI1mjcRIUw+smrNVyXokDndeoZ5IRcgmNT8enmJbonRPLBWlnW EyfKieiHLV+J8v4FzjhJAY5e9fhZwzM= 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-31-7IRzyhJ8NwehXcWCwbuXTQ-1; Fri, 29 Oct 2021 17:54:50 -0400 X-MC-Unique: 7IRzyhJ8NwehXcWCwbuXTQ-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 AB13D8018AC; Fri, 29 Oct 2021 21:54:48 +0000 (UTC) Received: from cmirabil.remote.csb (unknown [10.22.8.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id A30FC18351; Fri, 29 Oct 2021 21:54:46 +0000 (UTC) From: Charles Mirabile To: linux-kernel@vger.kernel.org Cc: Charles Mirabile , Lee Jones , 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: [PATCH 4/5] Documentation: bindings/mfd: sensehat: Raspberry Pi Sense HAT device tree binding Date: Fri, 29 Oct 2021 17:55:15 -0400 Message-Id: <20211029215516.801593-5-cmirabil@redhat.com> In-Reply-To: <20211029215516.801593-1-cmirabil@redhat.com> References: <20211029215516.801593-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 adds the device tree binding for the Sense HAT in yaml form. Signed-off-by: Charles Mirabile Signed-off-by: Mwesigwa Guma Signed-off-by: Joel Savitz --- .../bindings/mfd/raspberrypi,sensehat.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/raspberrypi,sensehat.yaml diff --git a/Documentation/devicetree/bindings/mfd/raspberrypi,sensehat.yaml b/Documentation/devicetree/bindings/mfd/raspberrypi,sensehat.yaml new file mode 100644 index 000000000000..e00cd02a3752 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/raspberrypi,sensehat.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +$id: http://devicetree.org/schemas/mfd/raspberrypi,sensehat.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raspberry Pi Sensehat + +maintainers: + - Charles Mirabile + - Mwesigwa Guma + - Joel Savitz + +description: | + The Raspberry Pi Sensehat is an addon board originally developed + for the Raspberry Pi that has a joystick and an 8x8 RGB LED display + as well as several environmental sensors. It connects via i2c and + a gpio for irq. + +properties: + compatible: + oneOf: + - enum: + - raspberrypi,sensehat + - rpi,rpisense + + reg: + items: + - description: i2c bus address + + keys-int-gpios: + items: + - description: gpio pin for joystick interrupt + +required: + - compatible + - reg + - keys-int-gpios + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + sensehat@46 { + compatible = "raspberrypi,sensehat"; + reg = <0x46>; + keys-int-gpios = <&gpio 23 GPIO_ACTIVE_HIGH>; + }; + }; -- 2.31.1