From patchwork Mon Mar 6 08:34:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 64516 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1731619wrd; Mon, 6 Mar 2023 01:01:08 -0800 (PST) X-Google-Smtp-Source: AK7set/yTom/M/5fNB79RHd1jIBfo+ufACfFS5+PsJykgqfFH1izM4fJgBjleh1Bx0N0rZkCGSta X-Received: by 2002:a17:906:e4d:b0:8b1:7b5d:fe9b with SMTP id q13-20020a1709060e4d00b008b17b5dfe9bmr10945148eji.28.1678093268656; Mon, 06 Mar 2023 01:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678093268; cv=none; d=google.com; s=arc-20160816; b=z2UYJRs/DVRPau4oERfv1NPkejCpsSjhSCD7OWBaNUiWJozn+e4u74KWqtGOG9yjE7 oqe2h+ZG9ss/d4TpnDpgaw3oaB7xjckwmoSJ7iLcjFBBs6N/6JBRdMymOenslSmKXTOp LPNKfZGwoq9bS7ghbMvz1L8zq+8faq6mmjidQ+HiOAJKK9vEHDGTphiff5k8Cbz94+Yh iWeYn3fY1OPHFfEA2wj2PGOBUPcV1+eoAGjhf0C7YNcHUb2ib1dEvK6JloOxCoO6vGzx OgU8bGxWbaSndm7bkcFM6ZrCywOxeMn3Zyd1bh3UkXtPoUBR4jaji5jfl/LHWbGmD1Zy Auxg== 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; bh=s8tEzPeHE9yCpcFKg4lMZXj79oif2DBoeesb7eM/EOo=; b=lHaWOqxgF8IGh9n4a6ZAvPkrK/m935ju3ZcN8TAN+4GhC9DN1OW2V8x98+DfGlM5FT AnNs+ZHN+rTgqse34bxBgy/ixL86Wl5onnBjn90hovcK0mcL0wnm1OpGe8YrqgpsxU7e ujL8gAAkKcLUvlmi35EwGa46mpBvjJgAytHb5ea1FfqFQQT/VWaI0UkoamwYIcHl2VlA TByW7k//tqRY2Xn4GzUVXgXKtxV5hUbsogE9MNXLAdmVw6xvmhYsiNEIz08CPkIh5vuY bwrwo1WU3WOm2NSJW6eoiRloMfxxSUOKG+h4YLWFkhC0ILCOAfhovCqdA3SazM4wmLb9 6prA== 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 b4-20020aa7c6c4000000b004ad745ab9cdsi9502006eds.530.2023.03.06.01.00.44; Mon, 06 Mar 2023 01:01:08 -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 S229700AbjCFIu0 (ORCPT + 99 others); Mon, 6 Mar 2023 03:50:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbjCFIuY (ORCPT ); Mon, 6 Mar 2023 03:50:24 -0500 X-Greylist: delayed 607 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 06 Mar 2023 00:50:21 PST Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 929DF113C4; Mon, 6 Mar 2023 00:50:21 -0800 (PST) Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id DE9B620BA7; Mon, 6 Mar 2023 09:34:50 +0100 (CET) From: Francesco Dolcini To: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Cc: Emanuele Ghidoli , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: gpio: add fcs,fxl6408-gpio binding document Date: Mon, 6 Mar 2023 09:34:45 +0100 Message-Id: <20230306083446.41082-2-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230306083446.41082-1-francesco@dolcini.it> References: <20230306083446.41082-1-francesco@dolcini.it> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 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?1759607535690829288?= X-GMAIL-MSGID: =?utf-8?q?1759608327183989985?= From: Emanuele Ghidoli Add binding document for Fairchild FXL6408 GPIO expander. Signed-off-by: Emanuele Ghidoli --- .../bindings/gpio/fcs,fxl6408-gpio.yaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/fcs,fxl6408-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/fcs,fxl6408-gpio.yaml b/Documentation/devicetree/bindings/gpio/fcs,fxl6408-gpio.yaml new file mode 100644 index 000000000000..ccf946040d00 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/fcs,fxl6408-gpio.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/fcs,fxl6408-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: FXL6408 GPIO driver + +maintainers: + - Emanuele Ghidoli + +description: | + Driver for Fairchild FXL6408 GPIO expander + +properties: + compatible: + enum: + - fcs,fxl6408 + + reg: + maxItems: 1 + + "#gpio-cells": + const: 2 + + gpio-controller: true + + gpio-line-names: + minItems: 1 + maxItems: 8 + +patternProperties: + "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": + type: object + properties: + gpio-hog: true + gpios: true + input: true + output-high: true + output-low: true + line-name: true + + required: + - gpio-hog + - gpios + + additionalProperties: false + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + gpio_expander_43: gpio-expander@43 { + compatible = "fcs,fxl6408"; + gpio-controller; + #gpio-cells = <2>; + reg = <0x43>; + gpio-line-names = "Wi-Fi_W_DISABLE", "Wi-Fi_WKUP_WLAN", + "PWR_EN_+V3.3_WiFi_N", "PCIe_REF_CLK_EN", + "USB_RESET_N", "USB_BYPASS_N", "Wi-Fi_PDn", + "Wi-Fi_WKUP_BT"; + }; + };