Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3929357rwa; Tue, 23 Aug 2022 12:44:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR5veZEHsIW8OfIihOQx/lCQt83+n9MNpeh48/Ab31J9FbRBIyFptRAT8OjW/dL6WnxkKUrH X-Received: by 2002:a17:902:ab98:b0:172:a566:d462 with SMTP id f24-20020a170902ab9800b00172a566d462mr25276421plr.53.1661283848031; Tue, 23 Aug 2022 12:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661283848; cv=none; d=google.com; s=arc-20160816; b=RWioCzx8SnGHF6HO6Sx/q2WenvQrT1pkriWE0Xg60WFy/Xwc3P9PvMhs7BtkH+i4kB 5rl8E43176o3XqD5isXfeZGNGPxGmX2ai6TavPVqBIWT0l3XGBIdaZU+HGLLnDm25fsd 5314+9WmOVGxu3jOcuyn54ty8yZHkxtNwF4SE9O9SnxKjCqhV/CfLlb4Y1V9E0CfBb6r C1NXcdD7uraYMaNU8G6hMRQE8ANt5jW6c/kEKlPXNHFx2QbbvnuQjuFadbSTlHepAIJh YFcnk27GXfXwf9mntcRQ6c3P4TbpqmAo/BsAbTsYlTHnDus8gHuHMswjeNRkgly/faVn 9RyQ== 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=+fFhfrqCii4T/WFPMsHfn5web5vqcTYDBOszx5C8k0E=; b=mbx5jK2TKOT7FDp0TPcZeaINWaHoNPu4nFS+E1eL+der/wGdMXXhs2mDqVYJ+j0TYM ju9zySy/piN7R+4K2l2yv42DDMCX88XA9BiwR37AO6o++HlZ8OHjK1e1psNu6aJZvurB 7Lr4NOYkNnfFcIweDgOKf0yhjqObhmmvKbQHRBYZ2wH94fuw3a4aLJLpugAHNXXa49Ay yGDja0g0eGbbWZdk5X1f5Lj3qDylnBcYk398sBOhiMgppUt7xFIewf6iZUDNrLXycarr fEmOvJj5nRJH9DQ/fW0yrJCuxRZrXGeXTDGdmcskqhX4vcI8RYTTmh6iISixFg+tw6vZ A2BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UUWQdJSr; 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 b11-20020a170902bd4b00b0016f168b4368si15016629plx.547.2022.08.23.12.43.56; Tue, 23 Aug 2022 12:44:08 -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=UUWQdJSr; 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 S229790AbiHWTHf (ORCPT + 99 others); Tue, 23 Aug 2022 15:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbiHWTHR (ORCPT ); Tue, 23 Aug 2022 15:07:17 -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 3C7421322FB for ; Tue, 23 Aug 2022 10:45:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661276574; 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=+fFhfrqCii4T/WFPMsHfn5web5vqcTYDBOszx5C8k0E=; b=UUWQdJSrIQ0skKoVgb9EeZ728YArSsqviAIl5roH2iS/yOJdn0nPLk3w9ityWCIrlLJsHp wwu3lbKr078jPf3rtaVyhTwPWRBCu8SG5Mvbm0FcV1+2eJEYkvMzFiyuNSlxAm6tuFd1fe CHEDN9u9oxz1WQKZkq0RCgXsq6R2sEE= 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-628-TRnmRCyRObuiGSH8jXgB_A-1; Tue, 23 Aug 2022 13:42:53 -0400 X-MC-Unique: TRnmRCyRObuiGSH8jXgB_A-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 74B1629DD9A2; Tue, 23 Aug 2022 17:42:52 +0000 (UTC) Received: from cmirabil.redhat.com (unknown [10.22.33.37]) by smtp.corp.redhat.com (Postfix) with ESMTP id A406514152E0; Tue, 23 Aug 2022 17:42:51 +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, Miguel Ojeda , Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Broadcom internal kernel review list , Dmitry Torokhov , Lee Jones , devicetree@vger.kernel.org, linux-input@vger.kernel.org, Joel Savitz , Krzysztof Kozlowski Subject: [PATCH 3/5] dt-bindings: mfd: sensehat: Add Raspberry Pi Sense HAT schema Date: Tue, 23 Aug 2022 13:41:56 -0400 Message-Id: <20220823174158.45579-4-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 adds the device tree bindings for the Sense HAT and each of its children devices in yaml form. Co-developed-by: Joel Savitz Signed-off-by: Joel Savitz Signed-off-by: Charles Mirabile Reviewed-by: Krzysztof Kozlowski --- .../raspberrypi,sensehat-display.yaml | 26 +++++++++ .../input/raspberrypi,sensehat-joystick.yaml | 31 ++++++++++ .../bindings/mfd/raspberrypi,sensehat.yaml | 57 +++++++++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 Documentation/devicetree/bindings/auxdisplay/raspberrypi,sensehat-display.yaml create mode 100644 Documentation/devicetree/bindings/input/raspberrypi,sensehat-joystick.yaml create mode 100644 Documentation/devicetree/bindings/mfd/raspberrypi,sensehat.yaml diff --git a/Documentation/devicetree/bindings/auxdisplay/raspberrypi,sensehat-display.yaml b/Documentation/devicetree/bindings/auxdisplay/raspberrypi,sensehat-display.yaml new file mode 100644 index 000000000000..0cf59b0a519c --- /dev/null +++ b/Documentation/devicetree/bindings/auxdisplay/raspberrypi,sensehat-display.yaml @@ -0,0 +1,26 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/auxdisplay/raspberrypi,sensehat-display.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raspberry Pi Sensehat Display + +maintainers: + - Charles Mirabile + - Joel Savitz + +description: + This device is part of the sensehat multi function device. + For more information see ../mfd/raspberrypi,sensehat.yaml. + + This device features a programmable 8x8 RGB LED matrix. + +properties: + compatible: + const: raspberrypi,sensehat-display + +required: + - compatible + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/input/raspberrypi,sensehat-joystick.yaml b/Documentation/devicetree/bindings/input/raspberrypi,sensehat-joystick.yaml new file mode 100644 index 000000000000..98b03878a570 --- /dev/null +++ b/Documentation/devicetree/bindings/input/raspberrypi,sensehat-joystick.yaml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/raspberrypi,sensehat-joystick.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raspberry Pi Sensehat Joystick + +maintainers: + - Charles Mirabile + - Joel Savitz + +description: + This device is part of the sensehat multi function device. + For more information see ../mfd/raspberrypi,sensehat.yaml. + + This device features a five button joystick (up, down,left, + right, click) + +properties: + compatible: + const: raspberrypi,sensehat-joystick + + interrupts: + maxItems: 1 + +required: + - compatible + - interrupts + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/mfd/raspberrypi,sensehat.yaml b/Documentation/devicetree/bindings/mfd/raspberrypi,sensehat.yaml new file mode 100644 index 000000000000..bc53834fbaa7 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/raspberrypi,sensehat.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/raspberrypi,sensehat.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raspberry Pi Sensehat + +maintainers: + - Charles Mirabile + - 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: + const: raspberrypi,sensehat + + reg: + maxItems: 1 + + joystick: + $ref: /schemas/input/raspberrypi,sensehat-joystick.yaml# + + display: + $ref: /schemas/auxdisplay/raspberrypi,sensehat-display.yaml# + +required: + - compatible + - reg + - joystick + - display + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + hat@46 { + compatible = "raspberrypi,sensehat"; + reg = <0x46>; + display { + compatible = "raspberrypi,sensehat-display"; + }; + joystick { + compatible = "raspberrypi,sensehat-joystick"; + interrupts = <23 IRQ_TYPE_EDGE_RISING>; + }; + }; + }; -- 2.31.1