Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp401441iog; Wed, 15 Jun 2022 04:48:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRzOXNx1OgYe+quz105IfQ2KLzLUcT79YQeYpto2Gd5+IfKJvHY4TB2qQWPVkIhUjG7neq X-Received: by 2002:a17:906:2da:b0:712:14b:62da with SMTP id 26-20020a17090602da00b00712014b62damr8520904ejk.351.1655293700682; Wed, 15 Jun 2022 04:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655293700; cv=none; d=google.com; s=arc-20160816; b=zN6nZ3JGlAo+wCmGpprDtAnaHspKhCEvOJYzqrsVHJF5ffDGlowRtmccBbKn+Zy4KY UB6QifoztM58I0/SyXVK/DyzUCM5ZTfBpxgjWuUHUlq45TAbPR76/XPGOPuo59bDDZDc tWRLIUQdLlOVVsdO9ysVugnTnCIu6MMeds9WPN+pb62/6vhuedGvWAMA+wt2V0JVLCa6 ASE4XIG+xf7Va3WgeOw8KKVCXpzHc/cQjbrNzGiwDLr9tS9pYkY0o7E765dDuJLXrKtK v0gMGEIy7zcZac2RpdKiYksJYFCo8lkNKSNvY6w8NRPprp6iCGYOpoQgiz+wZ3VnePWv HxOg== 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=C8DdTL5RDARIZZY0H5oOK+SeMZtSZumloEBA0qdIBL0=; b=pndzdrD6AtI14AMLjRlBzZHynKf+8/IkXGr4mFZ492RlW1XgHEmZbZhziUlArPzrAT Tx3aVjAudnmFB6U9yNEGlVGMnQXoMYKGqUS6hnuhxIDYoXfRid067K2Wpjl9iOnihh0e 5Np6CfBfICRJv5L+FMmhWvpuYyGh1pinWocRAvgwfYwFgbsNkFeXCtdrqg0HQnycPCqU CcwpvgVW/mfUEOMEiiUnmXCMf8UurH68zie++4uIIxIi5bRHOtptpZ2gxzvVnd6D5xTk hXotYHaNcsdHdgAcnS6UxMhUpxR8+jCntn8vLQk8tcRIyKPAEPwYsQ3Ux9acHMXI+0ke zb/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=SOOGO2gY; 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=9elements.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd36-20020a1709076e2400b00718c253a976si3117583ejc.698.2022.06.15.04.47.55; Wed, 15 Jun 2022 04:48:20 -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=@9elements.com header.s=google header.b=SOOGO2gY; 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=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346690AbiFOKux (ORCPT + 99 others); Wed, 15 Jun 2022 06:50:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345710AbiFOKus (ORCPT ); Wed, 15 Jun 2022 06:50:48 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 250604BBB8 for ; Wed, 15 Jun 2022 03:50:47 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id w27so15515511edl.7 for ; Wed, 15 Jun 2022 03:50:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=C8DdTL5RDARIZZY0H5oOK+SeMZtSZumloEBA0qdIBL0=; b=SOOGO2gYzm3cQCh9PTecYuNqEWPcfmtzafVfty5fV7feIVf7+Vq2InqmSij9aUQWBD MgpnhNc7STo4tPN/UpfYAJNl6OWhl3sj+dL9Em3XubhVLqqAWlEJS63dyqyBSUeenYQb A8XHAAXMeKSnZQbIwdTgbGMzXkCGwb94qJo+hVm8XKxeLxn1vIP64XFpv7JE+584URJY dWd6emNStzuxb6De20ZwjbRIBqutmHVQXHWAZq5rCvvu6QF/LtpMaBmJFQOIGD7hqWxj X6RCaXekBO+5hfFU0HgcoyjVDe6A45gS9IWPPyH3V1f+maq66FRpV9CQOaPhJsaaO9Wq nafw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=C8DdTL5RDARIZZY0H5oOK+SeMZtSZumloEBA0qdIBL0=; b=25q1/TGOYCAu3Pw7q9dCebt5wUEmUyL6g1SdXO/OwlI44XBX8y2FtlK6kE/m8/xy+P /YzyZ2FYGEyY8M4oHiONtopTzIdOkMnxgcKWFyuFG5GnNS9QBJ0VZJwFIwzrU7F8DITP P1RcWKu12I2vzLK46RvY/Ggf29EWQZpIWy0UhutCexTXClHrsd2l/vpPDtjkCQ7+1tAh XLazNRDpK+ala41AOhCC13olhoflRwzDxStYn8HcmOVye578+qqpkrLHfXFrS/drryLX zDSQKTGfnVYdLaCVns2P037gcodHte1Izv3ApzgVjktiyLiR2KjfyAdd47mZzCB7PHjL wNmg== X-Gm-Message-State: AJIora81unxoNERSiXnvBnwhxUea/uQLwpOvK1XPimZhlbTkZ/g3YTtk KZ+jo3Y46vA1Wn23h1CaYZKIew== X-Received: by 2002:a05:6402:149:b0:431:7dde:9b59 with SMTP id s9-20020a056402014900b004317dde9b59mr11808778edu.339.1655290245533; Wed, 15 Jun 2022 03:50:45 -0700 (PDT) Received: from fedora.sec.9e.network (ip-088-153-019-247.um27.pools.vodafone-ip.de. [88.153.19.247]) by smtp.gmail.com with ESMTPSA id t27-20020a1709060c5b00b006fec2097d53sm6098237ejf.118.2022.06.15.03.50.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 03:50:45 -0700 (PDT) From: Patrick Rudolph To: Linus Walleij , Patrick Rudolph Cc: Rob Herring , Krzysztof Kozlowski , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-binding: Add cypress,cy8c95x0 binding Date: Wed, 15 Jun 2022 12:49:19 +0200 Message-Id: <20220615104921.1390138-2-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220615104921.1390138-1-patrick.rudolph@9elements.com> References: <20220615104921.1390138-1-patrick.rudolph@9elements.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Added device tree binding documentation for Cypress CY8C95x0 I2C pin-controller. Signed-off-by: Patrick Rudolph --- .../bindings/pinctrl/cypress,cy8c95x0.yaml | 131 ++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml b/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml new file mode 100644 index 000000000000..765e8834d9dd --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml @@ -0,0 +1,131 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/cypress,cy8c95x0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cypress CY8C95X0 I2C GPIO expander + +maintainers: + - Patrick Rudolph + +description: | + This supports the 20/40/60 pin Cypress CYC95x0 GPIO I2C expanders. + Pin function configuration is performed on a per-pin basis. + +properties: + compatible: + enum: + - cypress,cy8c9520 + - cypress,cy8c9540 + - cypress,cy8c9560 + + reg: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + description: + The first cell is the GPIO number and the second cell specifies GPIO + flags, as defined in . + const: 2 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + gpio-line-names: true + + gpio-ranges: + maxItems: 1 + + gpio-reserved-ranges: + maxItems: 1 + + vdd-supply: + description: + Optional power supply. + +patternProperties: + '-pins$': + type: object + description: + Pinctrl node's client devices use subnodes for desired pin configuration. + Client device subnodes use below standard properties. + $ref: "/schemas/pinctrl/pincfg-node.yaml" + + properties: + pins: + description: + List of gpio pins affected by the properties specified in this + subnode. + items: + - pattern: "^gp([0-7][0-7])$" + function: + description: + Specify the alternative function to be configured for the specified + pins. + enum: [ gpio, pwm ] + + bias-pull-down: true + + bias-pull-up: true + + bias-disable: true + + output-high: true + + output-low: true + + drive-push-pull: true + + drive-open-drain: true + + drive-open-source: true + + required: + - pins + - function + + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - '#interrupt-cells' + - gpio-controller + - '#gpio-cells' + +additionalProperties: false + +allOf: + - $ref: "pinctrl.yaml#" + +examples: + - | + #include + #include + + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + pinctrl@20 { + compatible = "cypress,cy8c9520"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + #interrupt-cells = <2>; + interrupts = ; + interrupt-controller; + vdd-supply = <&p3v3>; + gpio-reserved-ranges = <5 1>; + }; + }; -- 2.35.3