From patchwork Mon Mar 13 11:33:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 68775 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1135730wrd; Mon, 13 Mar 2023 04:52:43 -0700 (PDT) X-Google-Smtp-Source: AK7set9ETteg5fVzyvnz278DGUIhtMtg/sDlNJknDNsNaK6o80i3QEy/raRAST7+W4dWIF4ljVMl X-Received: by 2002:a17:90b:33c3:b0:237:b92f:39d1 with SMTP id lk3-20020a17090b33c300b00237b92f39d1mr35123209pjb.0.1678708362844; Mon, 13 Mar 2023 04:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678708362; cv=none; d=google.com; s=arc-20160816; b=Q4y+nGNn1KnEGPseoPa68vvLJcgu957HesvB4Tcre5eWRqmoTO4bWmB3ysiFGoMj/b TW35lSdgudAbV9GdPrOiHTsX5EeCyVP1oECGjL0xMgIu4gggQoFLX1itUcgiggcHT/VE pJyep+krwlCfBUoIUIse9dbw4QzNY0aTXWlcf6Wfxj5mpA0WN/JhPJX/dVYukaVvJfDF HgT73vf9Y4IYPoUNPVkgfdp4umktWN6can7a14kfs2BlK1RpgSfENvLtqpgE1M42Fyxw lKMfYFBcY9GpGXsftwI3PbZG6+tZqMSxHoglzbEkOwK/WVJlFkAfY7Py6Swv9my9y4h0 nqkg== 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=4TVvHPvVTZk67GCwQdOtLg3mUktFTvOj8BHJPzCVHcQ=; b=PrwCfsRfEN/NsYlQitHtjp4S/nYzcso+xDzRjBI4bnO8sUGarVchGBYvt0t1C0oPJC XuytnSulUONL5d3KR2djaggnuoTnhYx4c9E0zKz3MgU3JkYjW1uPXhwYjRfe6kxX9RHH BJLJmuYqRxwlByjK0dLZP3+CCkbWZ+ENaHn9J6/RoSDi8ue9bNTppzPExE3G/bSCLqCZ 5+2NORbaBj+E8tee+JC3wIHcoIPhkQMmzDxoQCqSB91tccoVcsCN7R2Tg96LlSdwyk39 K+L8qzpOG+S8VgYtbqrGYWA2iBW2Shwq7GiSlDMpkH+OOSZ1XHs/pdroACKnkPCerusn gFRg== 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 bw5-20020a17090af60500b002339ac5a127si6406237pjb.139.2023.03.13.04.52.27; Mon, 13 Mar 2023 04:52:42 -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; 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 S230261AbjCMLee (ORCPT + 99 others); Mon, 13 Mar 2023 07:34:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbjCMLe1 (ORCPT ); Mon, 13 Mar 2023 07:34:27 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E6581EBFD; Mon, 13 Mar 2023 04:34:01 -0700 (PDT) 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 CBE1921DF2; Mon, 13 Mar 2023 12:33:14 +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, Francesco Dolcini Subject: [PATCH v2 1/2] dt-bindings: gpio: add fcs,fxl6408 Date: Mon, 13 Mar 2023 12:33:07 +0100 Message-Id: <20230313113308.157930-2-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230313113308.157930-1-francesco@dolcini.it> References: <20230313113308.157930-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?1760253300272509446?= X-GMAIL-MSGID: =?utf-8?q?1760253300272509446?= From: Emanuele Ghidoli Add Fairchild FXL6408 8-bit I2C-controlled GPIO expander. Signed-off-by: Emanuele Ghidoli Signed-off-by: Francesco Dolcini Reviewed-by: Krzysztof Kozlowski --- v2: * remove "driver" word from yaml * simplify gpio-hog property definition * rename fcs,fxl6408-gpio.yaml to fcs,fxl6408.yaml * add missing SoB --- .../devicetree/bindings/gpio/fcs,fxl6408.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml diff --git a/Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml b/Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml new file mode 100644 index 000000000000..65b6970e42fb --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/fcs,fxl6408.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Fairchild FXL6408 I2C GPIO Expander + +maintainers: + - Emanuele Ghidoli + +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]+)?)$": + required: + - gpio-hog + +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"; + reg = <0x43>; + gpio-controller; + #gpio-cells = <2>; + 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"; + }; + };