Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14471011rwb; Mon, 28 Nov 2022 01:05:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf55kW/CIMEqgSVFcCrdd5nDEoAQHmp94OrdiYr6EmrnfW9q+kNoz1a7MHExAKRAK9OHb7Aj X-Received: by 2002:a17:90a:5298:b0:217:e054:9ac8 with SMTP id w24-20020a17090a529800b00217e0549ac8mr59843302pjh.246.1669626352261; Mon, 28 Nov 2022 01:05:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669626352; cv=none; d=google.com; s=arc-20160816; b=QwMVTFLL4mmA4+XBfFTt+MGWvA3zV1WrNgXt3n1C113ySvgD/JOy1zAcTTeXD2thFo SQtqG0Jut2osEs+8UBee6PRCnjHT9snQNeCse5KB3lgonpc8ON1E1c4MKLKZwEKjcxVt ERyS2ceuCIVRkiGJxHnYeQDCU8tD0N2YP/SpT8j1eim5iQzgB5cozqGAR7Dx/KD0ncXq Pm3XSCzJXD/KAnLcU6FYBOwI1GIllcYkcDKadQ+F0cJ7mhWCJx+nxxnAjJjlc3JgVKzY 5KEryDfjCmct+C2lfoTMK3oL5C4Hak4oSDiE/kscCbTPpZXR6c+Y3kTJH1e6DQXAtMet kbDg== 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=983vZmfe7jg3PD5EB3eQ9LeCd23DV+eV1fr/DcjdUm8=; b=cJncHg2qKYRGCh4eO47iAgfXMdwXbQRIhxoYtiBPa4iYRSAK9c4xFP9i6xvLIC18wP 5LueaNct2n0TVun7oNwxMbmq/6RSN67M1/jCTn5SI4zqLbmwJut7jnm/YAH4zRzbfE4n Eurp2d82Cic+F6s+0/m7mzeOQX8BIW9Jp3zLCuae1OEh4Naxx+i1Vs0d9YXusAcZnxJ+ zxgXsMmNfVuSJaceQMOWHsOHtye5NE2Qpubdy3TJ04LWLmNElBAnXZ5eoTF7lDnDVxME vPVgBghOlhO5pesCkcPuBj3nJaefT+9i0/XZ75GRHNZC2yjdbgUuA8KeSfPimYrdfX3B PIFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CjVdRdlt; 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 j70-20020a638049000000b00477fbd59895si6506220pgd.852.2022.11.28.01.05.41; Mon, 28 Nov 2022 01:05:52 -0800 (PST) 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=CjVdRdlt; 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 S230072AbiK1Icv (ORCPT + 83 others); Mon, 28 Nov 2022 03:32:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbiK1Ict (ORCPT ); Mon, 28 Nov 2022 03:32:49 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 478665FC4 for ; Mon, 28 Nov 2022 00:32:48 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id c1so16185357lfi.7 for ; Mon, 28 Nov 2022 00:32:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=983vZmfe7jg3PD5EB3eQ9LeCd23DV+eV1fr/DcjdUm8=; b=CjVdRdltMTd1Id79iqrTL6Zur0PPWkP39IltMT39Kf03+T+sPoC+4iWi1M8cdJbUb9 Qh8nD2yt4fRd0gd9rH/GeAwFUb0P7Q7W83sHjOdHY8zVF3Q2G40GtKcnqCfaaLvTzBsd yRYt4immw2ZPDiRAiU26EqQCmoN3h6shyYUoVmIeC5mxNLiU1oSV0NDCiN/nkcQZ6AlW bd4a3nTuF7ivIZAFsVZcX/WZgMsPv0yp7GmZ0Sm/yU9nQMWPOy0eWXOXHF/lCF4bYsD4 DKXhrYglw6DNAm7DkBpeZXHJ9d9OT2C5HxFWqFb573XtMRpKcTvd2SYbhUMp5fZs109j DXXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=983vZmfe7jg3PD5EB3eQ9LeCd23DV+eV1fr/DcjdUm8=; b=VKZnv+Xf8SP6btaqG0tQxxawdzpaFd5zH0HleRshbZMxTFMTrm9Tau0uDRZ8ZFzbzX f2k3qTo+oDPMecXg5zPBZmLPqsr5/ELjDPf8144sZXA7eHlinAJKkNVzU5NXroSSuWLQ wOIRGHqTs7epOyg3uTiQkLWQTGjEJsoHzzUJiz9Qz+PVHKs3CIqt1ILJPX1yiMdfmgUg Bur5Sdu/OhwNtpR1I0naNKdRtRcXLL3MQEBY/ME3GfAk4knU7QJbUH1ClsKraXZtofIw IyybmT/DMsqKUgd/6bzFA0a+7CcFvJPj5V/VrCP0OromwK8jMkwwVfZeP21hezwHUCbv PRHg== X-Gm-Message-State: ANoB5plwHN+Oc+LTJWjwn3w4Opu4UIo/PUcmtlVLF0SUIAnhI6eQulsB BW816DPqjK8XSOlZZbfQs9l0Ag== X-Received: by 2002:ac2:430e:0:b0:4b4:9c0b:f4d3 with SMTP id l14-20020ac2430e000000b004b49c0bf4d3mr16235202lfh.349.1669624366437; Mon, 28 Nov 2022 00:32:46 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id bf37-20020a2eaa25000000b002793cf0e9e8sm1162098ljb.122.2022.11.28.00.32.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Nov 2022 00:32:46 -0800 (PST) Message-ID: <093ea507-4c42-1af9-4896-64c1a918432e@linaro.org> Date: Mon, 28 Nov 2022 09:32:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v2 1/5] dt-bindings: pinctrl: Add StarFive JH7110 pinctrl definitions Content-Language: en-US To: Jianlong Huang , Hal Feng , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Conor Dooley , Palmer Dabbelt , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Emil Renner Berthing , linux-kernel@vger.kernel.org References: <20221118011108.70715-1-hal.feng@starfivetech.com> <20221118011108.70715-2-hal.feng@starfivetech.com> <08db0f3b-5222-9460-26ba-0e6380d16583@linaro.org> <0ceba170-f844-e733-a49e-e67746f9f836@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <0ceba170-f844-e733-a49e-e67746f9f836@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.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 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 28/11/2022 01:48, Jianlong Huang wrote: >>>> +/* aon_iomux doen */ >>>> +#define GPOEN_AON_PTC0_OE_N_4 2 >>>> +#define GPOEN_AON_PTC0_OE_N_5 3 >>>> +#define GPOEN_AON_PTC0_OE_N_6 4 >>>> +#define GPOEN_AON_PTC0_OE_N_7 5 >>>> + >>> >>> It looks like you add register constants to the bindings. Why? The >>> bindings are not the place to represent hardware programming model. Not >>> mentioning that there is no benefit in this. >> >> Also: this entire file should be dropped, but if it stays, you have to >> name it matching bindings or compatible (vendor,device.h). > > Thanks your comments. > These macros are used to configure pinctrl in dts, so the file should stay, Why they should stay? What's the reason? If it is not a constant used by driver, then register values should not be placed in the bindings, so drop it. Best regards, Krzysztof