Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3614487rdg; Wed, 18 Oct 2023 00:01:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHa9paKMmtSUJAGdeP4LpdgjjVPIQH79FVEeIajpJaA80EgsWYhtJ/9jEFNVb6tuCKhhCVh X-Received: by 2002:a05:6a20:2450:b0:14c:c393:692 with SMTP id t16-20020a056a20245000b0014cc3930692mr5121136pzc.7.1697612497129; Wed, 18 Oct 2023 00:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697612497; cv=none; d=google.com; s=arc-20160816; b=NKz/jjwjkMiTI37/j3n2IgQO0g/TYj+Qk+v3n4gG4xw71hEJ00HcG9MKYS06HI3RHH 7nYppcLM4AvalxKzUi+JRkwrS/GV/j1P15ujRDJubq6hdPxLAPSCQJCN7DtE4xMMNwaK 9nZlGpSpiK3P3cCJkkM+1k9iJqviUt4Xxq6+YFkbIS3nqJFwn2glWcAc5nzbm8t6X3FR jLcTPQn2voS9FhoYe2N3GkyWUDzSljOkQ31HbVeP5jvS2qu/Zl19bhySKLqDcoWCuotm UeDsGbL/lkAKGnTsnfJEWf+WlqQWQzH0S3CeU+Q2qjVt4aTjy+/pohTryylUwWXNwH52 DuqQ== 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=tov+DeHbMDyFN68SZwsGVOS2MZy5FzMU6m+ne5E245U=; fh=splLyuXRargpeSW6ln3J792o7l1cicMOcXxUF5TSJ4U=; b=ep8G46EVaCqXfgAwQ7GgoAXhO/cGcqsLUdNMuF/u+h3glNVRBg8Hbqp6TJ2AK0hF7i +jeRlU9CKjJTOMwLdSxOy3sBN+OdTyn4BjdElReI0U6MDmTn2GMAp5RWi3nXmC4aHd19 lEFYUGEGRKdz0xGs4xXeiS12v0ldwSSfcOzQ1QNARrO4UEOXvwavE3+44Rpq/jtPsfWu +PbyRUT0wpyomV0j8nVJT8Pvw+ULV26TxM3AbS/07Sc/2HrWW5t6a+pa/OVAoGZENMIU cro+oylcZa6LJAlvvlqA31zoKNxtouxHaJuQLkxwhsdZEkuRo4QzskaWJSY5SmaRwwq+ ozfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Yi/XMZl9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id nv17-20020a17090b1b5100b0027b123fbe9dsi971968pjb.156.2023.10.18.00.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 00:01:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Yi/XMZl9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 54E488096B8C; Wed, 18 Oct 2023 00:01:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344505AbjJRHBQ (ORCPT + 99 others); Wed, 18 Oct 2023 03:01:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbjJRHBN (ORCPT ); Wed, 18 Oct 2023 03:01:13 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AA30EA; Wed, 18 Oct 2023 00:01:12 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3af64a4c97eso3541161b6e.2; Wed, 18 Oct 2023 00:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697612471; x=1698217271; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tov+DeHbMDyFN68SZwsGVOS2MZy5FzMU6m+ne5E245U=; b=Yi/XMZl99IiN5bZ2LcG4J1OEsY2viC3Oiyp+UldAl2t0A5eE6IeUZ6JPLM7xN030NA NwtUFMvM557yqUVtbcS4sW93HLtV6c9V1tOrbfhsMCj0zBJZGxtyEhw5VxQO5HhKLc1P bOtm5q3GX5MDJiRpLUWi/BWmzkk2bAYQ3AjF+G6/ixoqGyHne16QHRujJzdAOYt6WF91 D2GEJhgXK+PqU0ipNzvO3XoIVUFuoQzmSqaN8W1MLPzswpegVAJ0rBTowYXsAU3opO5C Gne1lOlLo3xnKAEK2MA7Gs9rMXj41qKm8jf92caLB/z8DXPMxLchFpUIj7A9RlVvJVmy L/nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697612471; x=1698217271; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tov+DeHbMDyFN68SZwsGVOS2MZy5FzMU6m+ne5E245U=; b=FHesfya3eGD84jB6U2wJ+Ke9GIbf+HpnNN36pm1WuWiAZwWFwkQH00AaUCwmRX9TGf JYAUQI57d5MpIvkS0Ddj6iKGG+TnHBbxSB6jIuQhj6jgIN8uTgSrihqnWpyO6Y+p6BYE A8//wZOkjH1NZ/4vCFsPKtYRYpNhO/+NZ1b2AXWR1g4QUJ50Uk5imOMsy1PoMOa62aww AXW49wnl6LVTXd8C490FWU3tAickiOnKYWoFjRj376ztMCYMT5FyGNEr8yQUIeyidc0j ZfTT23PFTQuyqf+6NDn3cQBydiRqNGEe3E7ZBk9LWyYNYyndIJCSAvisGJy46c77i/kU 9FQQ== X-Gm-Message-State: AOJu0YzIiB2JJHwJpji1RDiM4Re/ZoLCsAWO7wPM1iu+pF3smM7eEgxi dOUzq0nuAS8MzBsOvfwGp10= X-Received: by 2002:aca:1717:0:b0:3a7:4161:44ee with SMTP id j23-20020aca1717000000b003a7416144eemr4142855oii.6.1697612471317; Wed, 18 Oct 2023 00:01:11 -0700 (PDT) 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 n5-20020a654cc5000000b00565e96d9874sm850346pgt.89.2023.10.18.00.01.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Oct 2023 00:01:10 -0700 (PDT) Message-ID: Date: Wed, 18 Oct 2023 15:01:08 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] dt-bindings: pinctrl: Document nuvoton ma35d1 pin control Content-Language: en-US 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, schung@nuvoton.com, Jacky Huang References: <20231011090510.114476-1-ychuang570808@gmail.com> <20231011090510.114476-3-ychuang570808@gmail.com> <7800b2d6-33c4-4c4f-8d0c-c11ff0e47535@linaro.org> <17a80031-98bf-48bf-8cea-c0ca4400f142@gmail.com> <254837e5-a0fa-4796-8928-277db4b98bf1@linaro.org> <8e983479-709f-4ec8-85e2-c46a5256a2ec@gmail.com> <6c8a3ed2-879c-4423-b6e7-80f8b127a1c1@linaro.org> From: Jacky Huang In-Reply-To: <6c8a3ed2-879c-4423-b6e7-80f8b127a1c1@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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Wed, 18 Oct 2023 00:01:27 -0700 (PDT) Dear Krzysztof, Thank you for the review. On 2023/10/18 下午 01:58, Krzysztof Kozlowski wrote: > On 18/10/2023 05:26, Jacky Huang wrote: >> Dear Krzysztof, >> >> Thank you for the review. >> >> >> On 2023/10/17 上午 03:52, Krzysztof Kozlowski wrote: >>> On 16/10/2023 06:32, Jacky Huang wrote: >>>>>> + '#size-cells': >>>>>> + const: 1 >>>>>> + >>>>>> + nuvoton,sys: >>>>>> + description: >>>>>> + phandle to the syscon node >>>>> sys is quite generic. Description explains nothing except duplicating >>>>> known information. Drop duplicated info and instead explain to what this >>>>> phandle points and how it is going to be used. >>> Read comments carefully. >> >> I will update the description of 'nuvoton,sys'. > What is the full name of destination block? The full name is 'system-management'. From:         sys: system-management@40460000 {             compatible = "nuvoton,ma35d1-reset", "syscon";             reg = <0x0 0x40460000 0x0 0x200>;             #reset-cells = <1>;         }; >>>>>> + $ref: /schemas/types.yaml#/definitions/phandle-array >>>>>> + items: >>>>>> + maxItems: 1 >>>>> So just phandle, not phandle-array, unless it is defined like this in >>>>> some other binding. >>>> I would like to update this as: >>>> >>>>   nuvoton,sys: >>> Nothing improved. >> Here just fix  the 'phandle-array' to 'phandle' and remove 'maxItems'. >> >>>>     $ref: /schemas/types.yaml#/definitions/phandle >>>>     description: >>>>       Help pinctrl driver to access system registers by means of regmap. >>> Driver is not relevant here. Say which part of syscon are necessary for >>> pinctrl operation. >>> >> I will update description as: >> >>   nuvoton,sys: >>     $ref: /schemas/types.yaml#/definitions/phandle >>     description: >>       The pin function control registers are located in the system >>       control register space. This phandle provides pinctrl the >>       ability to access the pin function control registers through >>       the use of regmap. > regmap is unrelated to the bindings. So, I will just update the description as: phandle of the system-management node. >>>>>> + maximum: 7 >>>>>> + >>>>>> + input-enable: true >>>>>> + >>>>>> + input-schmitt-enable: true >>>>>> + >>>>>> + power-source: >>>>>> + description: >>>>>> + I/O voltage in millivolt. >>>>>> + enum: [ 1800, 3300 ] >>>>> Missing units in property name. power-source also does not really >>>>> describe the property. >>>> The output voltage level of GPIO can be configured as 1.8V or 3.3V, >>>> but I cannot find any suitable output properties in 'pincfg-node.yaml.' >>> There is actually power-source, but treated as actual choice of power >>> supplies. >>> >>>> I noticed that 'xlnx,zynq-pinctrl.yaml' and 'xlnx,zynq-pinctrl.yaml' use >>>> 'power source' to specify the output voltage.  Should I follow their >>>> approach or define a vendor-specific one? >>> Maybe Rob or Linus have here some recommendation, but I would suggest to >>> go either with rtd1319d-pinctrl.yaml approach or add a generic property >>> to pincfg-node expressed in real units like "io-microvolt". >> OK, I will update it as: >> >>       power-source: >>         description: | >>           Valid arguments are described as below: >>           0: power supply of 1.8V >>           1: power supply of 3.3V >>         enum: [0, 1] >> >> >>> Rob, Linus, any ideas for generic property replacing register-specific >>> power-source? > I proposed io-microvolt > > Best regards, > Krzysztof > I will use 'io-microvolt' once it is available. Best Regards, Jacky Huang