Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp252891pxb; Wed, 20 Apr 2022 21:48:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq1kqnUI22bltOkkPEZxgYk41KWm70HQQnY1oLwyi276Vy61xYcTbNfx38FbALWijRBjMZ X-Received: by 2002:a63:e245:0:b0:3a7:dce1:64b1 with SMTP id y5-20020a63e245000000b003a7dce164b1mr20475866pgj.67.1650516524416; Wed, 20 Apr 2022 21:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650516524; cv=none; d=google.com; s=arc-20160816; b=D257XkeHv82Hj1M49sCr4uOSvs/+j0x+FpwSHRBRrTLdoOuWKmdPskAmP/G7UdTgNw 8FGOgT27rinvcxpYJEMqCn6V/Od3XBdgL2N96e33QKgYILh0gJ1aecwiyVQ/MrWE6fYR jB3pqy/ccilxxRa7hHseazNXaqEiLOBnjkFf1ezeuOpRGnjfXkzYb5cRMtXQZ1YbdhwV 8uC6ldnMCXlostbU+fn3pgB5iKoanR8CqcfTHD6nU0Ca9GrDsgR8WnHj+GyIsD+eHiRR +l69Y0f4n6kvTrQopgNr8LM9X35z1vttdBaOIs8TRGdvlyGRJF2R8oOil5XSKVslhbPD pbHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+22hDYu2wEuHGd4AY54ocAOL5u0kABhClqX/TcY/LTY=; b=lECeCwuTIa5nOmM5voI0JT1nqmlrVR7fJKX2HjWeYO1zdUOV55jg0hwWPm+xR7HrGc 0h3w+xezNiaCiuEv1hvyYE10sfyr/LOobhFLowMOWg9BZYZ8NpX6L0utMt8LtCWentPy aa3mwuTBE1tHVAAgNttbdxOXgz5l8dqigepP1umnDfd3t2rfidKAOZyaNwayCLIj93kG fW8m2esJLXEwn6CYibDeg262GL1ccg8gEM4xn82dwF3Q/+wyF3KJBkOzEUvm1c+J5yjd At6vCKA8s3gWvkRfa5GI3aAOSNkbUq/uycrLHJM38V0qdL58bzkrdS0PBEmFFX2Whsg+ XkvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="H3QC9C/R"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nu4-20020a17090b1b0400b001d242c15065si7698643pjb.123.2022.04.20.21.48.28; Wed, 20 Apr 2022 21:48:44 -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=@linaro.org header.s=google header.b="H3QC9C/R"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351945AbiDSLxI (ORCPT + 99 others); Tue, 19 Apr 2022 07:53:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351971AbiDSLwq (ORCPT ); Tue, 19 Apr 2022 07:52:46 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A06A222514 for ; Tue, 19 Apr 2022 04:50:03 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id b24so20877598edu.10 for ; Tue, 19 Apr 2022 04:50:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=+22hDYu2wEuHGd4AY54ocAOL5u0kABhClqX/TcY/LTY=; b=H3QC9C/R5KWMtDxmmpBzxTkk9M+RZW5ws2177KxkG0PkyXHubfD11/YNIFepjAaqQu 9+5v0HiMVHwAEvOPUvTi9UDmYHW3xR73dcLKI5bdDYfJqzl4zX/rW3LjuPOdkv/IjfuW RO8C4nY2FIdSgWflqcH4AHm2ZTd0cC78GfBOPEuRQN6r6yC5UsouIiMGT/rG1KE8HLw0 mHRLBtBEK+MC/KnFfs6MmL8kjPtnQxJXkQDeFoEWVzYW8BlzRZJ1NR8dHAaoMki7/Xgg Gng8p+TLfSD6TdDyiXnJu3BCw8+2dclVFf+tTe1WLjrGUfdAcWlBGdgPo4B3/JV26MSK Vnlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=+22hDYu2wEuHGd4AY54ocAOL5u0kABhClqX/TcY/LTY=; b=l+TlymZMNmbHn8drwzyr9wmjbaNEiS9pMokav+J+g1C9+ETNFqES7wzU3W39PdPj/4 N1UttGrHFo0EnpoGqvsL0FZdGs/XZ1TEFnuTOdhs/bvCqr7xSgGOQQGHcVPWqVLHRhno SthuBFdGqoNtG73OdkTwrsSJ0CK6xis2bKUjI+JnNwFcJkHbkmHt3wBih3WatRVzQDxj 8bp1Xvz6cvbX2dVGTrOgQ1wgVgMpFHLQX0eql9xH8Z74hbLIjRGPMRA0brlLS0lo3ExR Mhq4NI17vOivkbqKccWU+9Xz2IYtbR1iQf9wG1XPeRQVYfI2ij+CEXr8eYiVWkW+pA2a 9E2g== X-Gm-Message-State: AOAM533zEA6W3ki4kb9TbBdP0OoRYPf4Qcm9n9L29Xp2iRATKVLO9aOd Hq8CcwcUjTVNCkqC9ZPZsh7knA== X-Received: by 2002:a05:6402:430c:b0:419:4660:e261 with SMTP id m12-20020a056402430c00b004194660e261mr16895758edc.324.1650369002202; Tue, 19 Apr 2022 04:50:02 -0700 (PDT) Received: from [192.168.0.217] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id 10-20020a170906310a00b006e834953b55sm5547719ejx.27.2022.04.19.04.50.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 04:50:01 -0700 (PDT) Message-ID: Date: Tue, 19 Apr 2022 13:50:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 1/2] dt-binding: Add cypress,cy8c95x0 binding Content-Language: en-US To: Patrick Rudolph , Linus Walleij Cc: Rob Herring , Krzysztof Kozlowski , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220419071503.1596423-1-patrick.rudolph@9elements.com> <20220419071503.1596423-2-patrick.rudolph@9elements.com> From: Krzysztof Kozlowski In-Reply-To: <20220419071503.1596423-2-patrick.rudolph@9elements.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 19/04/2022 09:15, Patrick Rudolph wrote: > Added device tree binding documentation for > Cypress CY8C95x0 I2C pin-controller. > Thank you for your patch. There is something to discuss/improve. (...) > + reg: > + maxItems: 1 > + > + gpio-controller: true > + > + '#gpio-cells': > + description: > + The first cell is the pin number and the second cell is used > + to specify optional parameters. > + const: 2 > + > + gpio-reserved-ranges: true > + > + interrupts: > + maxItems: 1 > + > + interrupt-controller: true > + > + '#interrupt-cells': > + description: > + Specifies the pin number and flags, as defined in > + include/dt-bindings/interrupt-controller/irq.h Skip description, it's obvious. > + const: 2 > + > + ngpios: > + minimum: 1 > + maximum: 60 > + > + gpio-line-names: > + minItems: 1 > + maxItems: 60 > + > + 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: > + oneOf: Why do you need oneOf here? > + - pattern: "^gp([0-7][0-7])$" > + minItems: 1 > + maxItems: 60 > + > + function: > + enum: [ gpio, pwm ] > + No need for blank line. In other cases you put description before the property constraints, so do it consistently here as well. > + description: > + Specify the alternative function to be configured for the specified > + pins. > + > + 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' no allOf referencing pinctrl.yaml? Include it unless there is some reason not to. Best regards, Krzysztof