Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3686152rdh; Tue, 28 Nov 2023 00:31:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSQ9/uAX74KNIu29HjGd8GU5o2KjNG3QRdrGQ2BH/+CXuBVcCn4Yb9YQeyaVuwzJazU3Nf X-Received: by 2002:a05:6808:14d0:b0:3ae:2b43:dd47 with SMTP id f16-20020a05680814d000b003ae2b43dd47mr17705734oiw.22.1701160265336; Tue, 28 Nov 2023 00:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701160265; cv=none; d=google.com; s=arc-20160816; b=ZwV+/MhWGJuNTNlme1hQOnhihyTbnfdC5WISWjIN9ZfYGyfWk+oVrjZwSVvqpxIu34 LvMuB6OLLw49TYlMwu2Sc/3FyQK0qaDy18emUAyQyxBX1xBMEo3euhVEuO3nIRp1F+NC EEpagWJXZiJIFnTetTquJ8dxyh6OKIgNTWmaM6DokUIeMSV39qu7kNW+Cgx/HmDkeQGh 0vlSKCuZVlWmdLc/+5tX6Gkk0Te6V1ZOmnqdrSowlfUTwNA/aEvM8+XWISMfUbq4be/R 4Y6uH5tmdfXeGUqdRMSTvivtJSiN8TrUCmL7u8q4buiVCdiM71icX/2uMKYi52+GBTs+ z6MA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Xf8O276TNiiPIupvpJ3W6Xn2X0DpWTNTXkKeNay5dJ0=; fh=vEtKs2mBL9Y886xqoVWFvo6zsOnM1laxK4dh4NYf4Mg=; b=dYXVdF9BSqlnspQ71NoBZFV95M4YcNJ7rYZlBt+c4tzcXiSLDSJySNyQyLOZlHnZSl cbXB9qsSsqG97fd0tMGO2Cngp2c6sz6PGQd8g30Cm7l+TdQqUB9bCBV4BcdisqL/YTii jjAV7t9gxwBzpVorQL2ZFdnpa9jADtpaSU6U/rP8k9LiOQvVE5UBrUkbuSuBJVNtqlmj L4ufjdbBB8S7YbtKg2ZlGxujKJGfH4HhDhf6ZVVQHaVi0LYjgiU5AGKyw/rSCfsiuXAF ACwAf9dcpr4IymKsSfBlNJD+nFYbAuoBY1lo6ZuAV6KP7IKk/kh4jjIUhScB5wG2CF8d MNFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=We5yqPd3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h2-20020a056a00230200b006cd8f0ed07csi4061949pfh.191.2023.11.28.00.31.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 00:31:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=We5yqPd3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 94882807F2BD; Tue, 28 Nov 2023 00:30:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344040AbjK1I35 (ORCPT + 99 others); Tue, 28 Nov 2023 03:29:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231414AbjK1I34 (ORCPT ); Tue, 28 Nov 2023 03:29:56 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83753138; Tue, 28 Nov 2023 00:29:58 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1cfc985c92dso17725915ad.0; Tue, 28 Nov 2023 00:29:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701160198; x=1701764998; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Xf8O276TNiiPIupvpJ3W6Xn2X0DpWTNTXkKeNay5dJ0=; b=We5yqPd32TInpZvSxWE2V6lAv8cDDWZrWJgOfTwdSW7TP+4Xkc8qteTr6tSdgXKK/Z Qa0uYs68Zy4dU29ZtqO/KrA+MhzJ/sX7BfEfSxFgaDGMp4XJn1pVr8DF+HigHG6XHKy6 hyYN2iAQKTy8a3r2CTd9CIfZv4zh0cknbBmQ27YszQaTS+bJdI5Zozxkx6RfoFMBtUR7 UvyYmHppA86lWM8GsZ74FE+sy+7Fyqd1VM5wSonPF+GsNOG3Q1xlBkzsLUvcka9auInr ATjNQWzvYnz4UsE14aVKS+LDtDfFWBtC781f3ocfHLeCDVCReOcs9bIq8X90M9vrD4BA 99gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701160198; x=1701764998; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Xf8O276TNiiPIupvpJ3W6Xn2X0DpWTNTXkKeNay5dJ0=; b=sTXrerD2Xpfg0zr7b/kTZXKmBOCHaOA1fRDGMAiJDc19DCYg3r0giw3DhleHBVpQdW kNkxYIaRmWSXBxqXDXUmfUc23A/m8X8gwTZ7nG4rpffH1GGmf//JxLtv2iL5YKvthFey kj4WUqy/1Uqi3THDaORCNC9RdX5Htz099BZdFN2tjuBcJqI+huXw9oIfQ0X/8fUewr2u O7zNOslxm7Cz2gXSrcwjRUvOwe0nkVE+NAJ1EB0HE9F9BXeS5cMbliDZQhYxdyWnk73v NVXl/lylTPSdqkRk2eLFTnm/Iyv77HvY9ksqr2u2IfGn9mGNTcZNh16ROIdKjGCVOsrN xv4g== X-Gm-Message-State: AOJu0YwMIJUoV43MY6vs1sGgqp+/imNq+4DF4ZHmo9cEKJ7Ctd/oxhND 5EouD10M9YEmFrygqr+tUzM= X-Received: by 2002:a17:903:244e:b0:1cf:dd41:dd4 with SMTP id l14-20020a170903244e00b001cfdd410dd4mr4840095pls.27.1701160197805; Tue, 28 Nov 2023 00:29:57 -0800 (PST) Received: from [172.19.1.47] (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id e12-20020a17090301cc00b001c737950e4dsm8605727plh.2.2023.11.28.00.29.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Nov 2023 00:29:57 -0800 (PST) Message-ID: Date: Tue, 28 Nov 2023 16:29:53 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/4] dt-bindings: pinctrl: Document nuvoton ma35d1 pin control To: Krzysztof Kozlowski , linus.walleij@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, j.neuschaefer@gmx.net Cc: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ychuang3@nuvoton.com, schung@nuvoton.com References: <20231128061118.575847-1-ychuang570808@gmail.com> <20231128061118.575847-3-ychuang570808@gmail.com> <7c24aaf8-8f93-4b93-b7e5-abc88e95682d@linaro.org> Content-Language: en-US From: Jacky Huang In-Reply-To: <7c24aaf8-8f93-4b93-b7e5-abc88e95682d@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 28 Nov 2023 00:30:14 -0800 (PST) Dear Krzysztof, Thanks for your review. On 2023/11/28 下午 03:34, Krzysztof Kozlowski wrote: > On 28/11/2023 07:11, Jacky Huang wrote: >> From: Jacky Huang >> >> Add documentation to describe nuvoton ma35d1 pin control and GPIO. >> >> Signed-off-by: Jacky Huang >> --- > Your changelog said: > >> - Remove ma35d1-pinfunc.h which is unused after update definition of > 'nuvoton,pins'. > > You forgot to add: > > " - Do not test the bindings before sending" > > I assume none of the driver changes compile either. It's my mistake. I forgot to remove 'ma35d1-pinfunc.h' from my local copy, and as a consequence, the 'dt_binding_check' did not catch this error. I will fix this. >> .../pinctrl/nuvoton,ma35d1-pinctrl.yaml | 189 ++++++++++++++++++ >> 1 file changed, 189 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml >> >> diff --git a/Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml >> new file mode 100644 >> index 000000000000..84287293a726 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/pinctrl/nuvoton,ma35d1-pinctrl.yaml >> @@ -0,0 +1,189 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/pinctrl/nuvoton,ma35d1-pinctrl.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Nuvoton MA35D1 pin control and GPIO >> + >> +maintainers: >> + - Shan-Chun Hung >> + >> +properties: >> + compatible: >> + enum: >> + - nuvoton,ma35d1-pinctrl >> + >> + '#address-cells': >> + const: 1 >> + >> + '#size-cells': >> + const: 1 >> + >> + nuvoton,sys: >> + $ref: /schemas/types.yaml#/definitions/phandle >> + description: >> + phandle of the system-management node. >> + >> + ranges: true >> + >> +allOf: >> + - $ref: pinctrl.yaml# > allOf goes before additionalProperties. > >> + >> +required: >> + - compatible >> + - nuvoton,sys > This goes after patternProperties I will fix the above two as: allOf:   - $ref: pinctrl.yaml# required:   - compatible   - nuvoton,sys additionalProperties: false examples: >> + >> +patternProperties: >> + "^gpio@[0-9a-f]+$": >> + type: object >> + additionalProperties: false >> + properties: >> + gpio-controller: true >> + >> + '#gpio-cells': >> + const: 2 >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + maxItems: 1 >> + >> + interrupt-controller: true >> + >> + '#interrupt-cells': >> + const: 2 >> + >> + interrupts: >> + description: >> + The interrupt outputs to sysirq. >> + maxItems: 1 >> + >> + required: >> + - gpio-controller >> + - '#gpio-cells' >> + - reg >> + - clocks >> + - interrupt-controller >> + - '#interrupt-cells' >> + - interrupts >> + >> + "^pin-[a-z0-9]+$": >> + type: object >> + description: >> + A pinctrl node should contain at least one subnodes representing the >> + pinctrl groups available on the machine. Each subnode will list the >> + pins it needs, and how they should be configured, with regard to muxer >> + configuration, pullups, drive strength, input enable/disable and input >> + schmitt. >> + >> + allOf: > Drop allOf, just $ref OK, I will fix it. >> + - $ref: pincfg-node.yaml# >> + >> + properties: >> + bias-disable: true > Drop this and other "true", why do you need them here? We are following the conventions used in other pinctrl documents, such as 'realtek,rtd1315e-pinctrl.yaml' and 'xlnx,zynqmp-pinctrl.yaml'. After comparing various pinctrl documents, I noticed that they all express it as 'bias-disable: true'. Therefore, may I keep the current format? >> + >> + bias-pull-down: true >> + >> + bias-pull-up: true >> + >> + power-source: >> + description: | >> + Valid arguments are described as below: >> + 0: power supply of 1.8V >> + 1: power supply of 3.3V >> + enum: [0, 1] >> + >> + drive-strength-microamp: >> + oneOf: >> + - enum: [ 2900, 4400, 5800, 7300, 8600, 10100, 11500, 13000 ] >> + description: 1.8V I/O driving strength >> + - enum: [ 17100, 25600, 34100, 42800, 48000, 56000, 77000, 82000 ] >> + description: 3.3V I/O driving strength >> + >> + input-enable: true >> + >> + input-schmitt-enable: true >> + >> + unevaluatedProperties: false > > > Best regards, > Krzysztof > Best Regards, Jacky Huang