From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64CB2C433E0 for ; Thu, 25 Jun 2020 08:00:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3F84520709 for ; Thu, 25 Jun 2020 08:00:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gorani.run header.i=@gorani.run header.b="kgJJLWN0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390370AbgFYIAl (ORCPT ); Thu, 25 Jun 2020 04:00:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726930AbgFYIAl (ORCPT ); Thu, 25 Jun 2020 04:00:41 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [IPv6:2001:67c:2050::465:102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30FB6C061573; Thu, 25 Jun 2020 01:00:41 -0700 (PDT) Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 49ssrl45D3zKmhM; Thu, 25 Jun 2020 10:00:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorani.run; s=MBO0001; t=1593072037; 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; bh=KsVtsKXWjb9tO8tIRJnY/G5IWD6O3/lf2qooOuvtG7M=; b=kgJJLWN0GF7S7PuFJlCVsbUEp5UJOogFD1jrJnB+i72/fjMBAsDbhrjpYBiCQZubR0wVXN xKIUEdWDdLdryqKCb/6yegwRCIaMXdN+crG4DIW1VcegRBsdx5MQkQAOw2atoWrXqwYb5N VvPWHu2U49YKCmm0aUo2AnQhC8yoA6qL/batu+hb6c/sKakLy6XFXkgg3HJNgh/1TCM5UF te8G4bGrLxSVQH+OxIXy0MghHpIDCZcgVWd0eCCgp7nAxiTJldJi0U1IlJOQ4nyrRm+gva jhExuwlN4xJcm5FpSaFFzrFAVPXJUQj/YqzvMUHwtZo3LlOscjR/JD10vs58rw== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id kSFI7Ov2nZua; Thu, 25 Jun 2020 10:00:35 +0200 (CEST) From: Sungbo Eo To: Linus Walleij , Bartosz Golaszewski , Rob Herring , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Cc: Sungbo Eo Subject: [PATCH v2 2/2] dt-bindings: gpio: Add bindings for NXP PCA9570 Date: Thu, 25 Jun 2020 16:59:57 +0900 Message-Id: <20200625075957.364273-1-mans0n@gorani.run> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: 6 X-Rspamd-Score: 1.00 / 15.00 / 15.00 X-Rspamd-Queue-Id: 241F21793 X-Rspamd-UID: a9cf0b Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This patch adds device tree bindings for the NXP PCA9570, a 4-bit I2C GPO expander. Signed-off-by: Sungbo Eo --- I don't feel I can really maintain this driver, but it seems all yaml docs have a maintainers field so I just added it... --- .../bindings/gpio/gpio-pca9570.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml new file mode 100644 index 000000000000..996b0ed2f58f --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/gpio-pca9570.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PCA9570 I2C GPO expander + +maintainers: + - Sungbo Eo + +properties: + compatible: + enum: + - nxp,pca9570 + + reg: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + const: 2 + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + gpio@24 { + compatible = "nxp,pca9570"; + reg = <0x24>; + gpio-controller; + #gpio-cells = <2>; + }; + +... -- 2.27.0