From patchwork Tue Dec 6 12:44:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edmund Berenson X-Patchwork-Id: 30268 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2801156wrr; Tue, 6 Dec 2022 04:53:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7B0o5doJwleAag5a9SrEZKAulaZvQZCV9d/RBw75cE1XGEihqiFnn6Zsjy26Nthg4wNixs X-Received: by 2002:a17:906:78b:b0:7c0:e813:e07e with SMTP id l11-20020a170906078b00b007c0e813e07emr8896502ejc.156.1670331205193; Tue, 06 Dec 2022 04:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670331205; cv=none; d=google.com; s=arc-20160816; b=YBgnzzQYtqYfUgDqQOwXJAl8rE8Xu+Xdq2pjAyZSnoptcyNjPaduATPiSN2gTQb3s6 B5Gfs4qmnb8eIAKZGbcA38GccMMIxaCIFSvlPGtLKk33r/zIr6yUk5R+etBeBcKOYjgE B9ZUhI95Ldy+GdncYx1CmwPblsaiJS6C/X0qsWl/9+835FW0pnlpAPNst+2eMpp/Z31Z nvqjhrtsU376rjdeYiVwkpxjWoWSyAbACrw6/UI7DFHlZmnQkeJPQoeTINLNxpMIO01g oPrcSG4fj6izmdg4tUNBMgWYP4vxUifG2pLEVnu7Rg5C13QyqAZexGGr50jTk7zkfMGQ j7Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=r7PYxuObWMqBZ8zea/C7QJJGYh59QmnbXobbHsZyHyE=; b=t3mfugK9Op5mkU2hBhzRsuqMQClKhhP7rDTKYUidUrj7TJKu+Zn9//VSvi260hUyDQ 5qIpNC+8HzV8IftV+usZmbsnHGpgRb4H1LiUPOZCinJhGQRdpiFjfBqq0O9XS8VKAHqn mlFnzX4ZjrlikduBNNA3AHYS+E7m38D7obmgXNATAWlTyJN8x8NOhKqrGbtBXC2McSYl bHb1XFqTHRNIr8TMkB4NXr9wD4Ys5EPgcd1SAk16ICdTOJ7YAgzziBL4AKZbgxtlISLO AFxKMwgrBeQHyw6as0Pv0+4nbU1Vtx1PCXBx349NakYeupn7t66PVLBRYk0NwYiSKyVr kyNw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d29-20020a50f69d000000b00453688643fasi1770944edn.260.2022.12.06.04.53.01; Tue, 06 Dec 2022 04:53:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234261AbiLFMwO (ORCPT + 99 others); Tue, 6 Dec 2022 07:52:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233978AbiLFMwJ (ORCPT ); Tue, 6 Dec 2022 07:52:09 -0500 X-Greylist: delayed 405 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 06 Dec 2022 04:52:07 PST Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A8EAE00D; Tue, 6 Dec 2022 04:52:07 -0800 (PST) Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 9689D60725; Tue, 6 Dec 2022 13:45:18 +0100 (CET) From: Edmund Berenson Cc: Edmund Berenson , Lukasz Zemla , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: gpio: max7317: add gpio driver bindings Date: Tue, 6 Dec 2022 13:44:55 +0100 Message-Id: <20221206124456.4159-1-edmund.berenson@emlix.com> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751469214130190449?= X-GMAIL-MSGID: =?utf-8?q?1751469214130190449?= Add driver bindings for the maxim max7317 spi gpio expander. Co-developed-by: Lukasz Zemla Signed-off-by: Lukasz Zemla Signed-off-by: Edmund Berenson --- .../bindings/gpio/gpio-max7317.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-max7317.yaml diff --git a/Documentation/devicetree/bindings/gpio/gpio-max7317.yaml b/Documentation/devicetree/bindings/gpio/gpio-max7317.yaml new file mode 100644 index 000000000000..88f1fe02a627 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-max7317.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/gpio-max7317.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX7317 SPI-Interfaced I/O Expander + +description: | + Bindings for 10-Port Maxim MAX7317 SPI GPIO expanders. + +properties: + compatible: + const: maxim,max7317 + + reg: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + const: 2 + + gpio-line-names: + minItems: 1 + maxItems: 10 + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + gpio5: gpio5@0 { + compatible = "maxim,max7317"; + reg = <0>; + gpio-controller; + #gpio-cells = <2>; + spi-max-frequency = <100000>; + }; + };