Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C504C4332F for ; Sun, 20 Nov 2022 10:40:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229491AbiKTKkO (ORCPT ); Sun, 20 Nov 2022 05:40:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbiKTKkN (ORCPT ); Sun, 20 Nov 2022 05:40:13 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DC2978B20 for ; Sun, 20 Nov 2022 02:40:10 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id j4so14978190lfk.0 for ; Sun, 20 Nov 2022 02:40:10 -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=6I/Z/D+bfI5rpoGK4pCb1Y+E9eMHCV51iKQUL8lPZc0=; b=bjf3d2XJA3mpzYV8yNz6tmkpXTOu9TbqM0pYlTCxxM4PDnrCnmbZGYEvbsd8SX9Lp+ sy7gko4NuhDtFiWM6jDQKHMVnSf3Kh8dJOPwGlUy3R/v0js1OZYNfGAQeWR8Apk/D5gu PmdTqSZqPneghE6OF6e0lJaT+jCDUCex2TqrN+S+uGkMV8/Gcn5UPNIkFJOgoIWUP56N j0S2pTdxvg1fE6rKaYzwJDqNqIuPujONqSXQNLSSQxrBurfYdBsi9hff9ThJHznwWb0O XMsKuTp2B+OYnHyvT1M3JYyFeubXw9AB/Nc3M5FU/8naBaDF9FXJCB6gSvOFZ2FBmUFc AAgw== 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=6I/Z/D+bfI5rpoGK4pCb1Y+E9eMHCV51iKQUL8lPZc0=; b=DGyZzgD6N2ZRvss5COA4cX9lq2M8wvk7mu+ndnR5nOA94gEHwQ3CYwWetUeLl3i5Ou NKuAAMqD8OcGe25xQc+YpfMuJYdbrJm4fETndfTm2dKjZQd1QSNda4rQ2/OALXaX0aMb yaAhFaWIplRJZqk4/Tc2sgDU5v2YU3AEHYmBdpYoHetcOKpQuPO3ai+oy0oqfoGszE4U GaENdC6nk0jFdb3OGedsbhGPiBne/OsFsZj0Q19THaiVQa74xU3ownE4IVTxaT0yVivD 0Q3kZxxY8lxN/ar0169DYfRAYtoZkkpkDKw8skHfyWKWhohf15wyavPKLui3rHgf/8nj bH8A== X-Gm-Message-State: ANoB5plYVB/6t775Mw1faJgjRom7gmlJhozhDiTMJuYXRwGCtYR/7d/J ddiQvMMfMdjnMMECuBHTmlBSZA== X-Google-Smtp-Source: AA0mqf4GJTVZ6oOy/tG1Y2xUN3IM+SCcLz2+qe3xY1TglkFbGHfu9W873n2qi+HObj1karKVyGKUUQ== X-Received: by 2002:ac2:43b0:0:b0:4a4:719a:19ed with SMTP id t16-20020ac243b0000000b004a4719a19edmr5135600lfl.356.1668940808593; Sun, 20 Nov 2022 02:40:08 -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 k21-20020a05651239d500b00494618889c0sm1488288lfu.42.2022.11.20.02.40.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Nov 2022 02:40:08 -0800 (PST) Message-ID: <76cae9bf-c81a-684a-c22b-9548dd82c8d4@linaro.org> Date: Sun, 20 Nov 2022 11:40:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v3 4/7] dt-bindings: pinctrl: add bindings for Mediatek MT8365 SoC Content-Language: en-US To: Kevin Hilman , =?UTF-8?Q?Bernhard_Rosenkr=c3=a4nzer?= , linux-mediatek@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, angelogiocchino.delregno@collabora.com References: <20221117210356.3178578-1-bero@baylibre.com> <20221117210356.3178578-5-bero@baylibre.com> <06e916b7-f8f2-6de5-f86e-7b020c052451@linaro.org> <7ha64o9h1d.fsf@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <7ha64o9h1d.fsf@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 18/11/2022 20:52, Kevin Hilman wrote: > Hi Krzysztof, > > Krzysztof Kozlowski writes: > >> On 17/11/2022 22:03, Bernhard Rosenkränzer wrote: >>> Add devicetree bindings for Mediatek MT8365 pinctrl driver. >>> >>> Signed-off-by: Bernhard Rosenkränzer >> >> Thank you for your patch. There is something to discuss/improve. >> >>> + >>> + pins-are-numbered: >>> + $ref: /schemas/types.yaml#/definitions/flag >>> + description: | >>> + Specify the subnodes are using numbered pinmux to specify pins. >> >> Why would you name pins differently per board? And why this different >> naming of the same pins is a property of hardware? >> >> This looks like something to drop. > > Yeah, having this as a flag kind of implies that this could be present > for some boards but not others. But in practice, the driver requires it > to be present or just fails[1]. What's the right way to describe that? > We're just trying to add a binding that reflects the existing driver. Uh, what an interesting property. What's the point of it then? Why failing to probe on a missing property which does nothing else? The solution is also to drop that property from the driver. > We also noticed that there's another documented binding with this > same flag[2] where similiarily, the driver simply requires it to be > present[2]. > > So is the way this flag is documented in the stm32 binding OK for the > mediatek one also? If not, what would you suggest? I would like to understand why do we need this property and what is described by it. Because if it's purpose is only to fail or not fail driver probe, then we should just drop it everywhere. > Best regards, Krzysztof