Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp209889rwb; Thu, 1 Dec 2022 00:57:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf57U4ZUbr2qWKozrZ93o+dL/eFrQB0ss3W6/rmB/c2zSuwPhSgQml3UzrK+ZyJTHHVe3pUD X-Received: by 2002:a17:906:8156:b0:7c0:8fe9:cd0a with SMTP id z22-20020a170906815600b007c08fe9cd0amr8604161ejw.348.1669885055238; Thu, 01 Dec 2022 00:57:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669885055; cv=none; d=google.com; s=arc-20160816; b=tVBU9gPSoQwNYmzYld/X67a2fgM9g2b6/eqtPH+R5JursMMpfZMWLEhgpbyOZk8dXH fSejJeuWPwajG5EvuyLOdVhrmpnDkblRpLmhfglWJMbZdx7HHPrGya/GoSd+7XrYf1uX 7caZoaLI6/c5DnQ1J4oZQr/Bhb8VZZpHW8UMhc/FfiXotNn6W4C7yM3B8hzj10U3BrZG lpsMQMl4rAFlYqgfstWnIIQexk0wjNsKyTI0WXBtz65lat5mEF02Xn+IvrCgpM42L9tM nu1pkXu2LMG7h0IWtafe4bJbb4p0+ONWJxOC58at5hWQ4b2BzYvB0bHZ9YXST3DQsezX 6nMw== 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; bh=dXP+8d79JNx/uBiPoQpzg91UJl9ceIuQu3Qs8FyQFjY=; b=xImxoUbyuaYsLNtnt9Sdt1rdt4WlMSxKIs2w+akIPHMUnksBqHjr6Frp3MKoNqV7ZH 7ichteUet2Yq6iFqM+miO67hW/lkKKdRBbwJhljckKYS7f3n2+qa4JZ3njhVH4wQkJCb 5x7+lDq5R3BaD+JnMS0KFOQ3X6IjsqmUqawU9MyK3G1mH4/rvFUTkB6hwSTV8J+IAZ17 45EM7+DxrDbrzRUAjUHRXdN9rPOf5RiV7+z8x5uk7/fi8Yuk1gYDfJjoK8yDNATkT0mj m5n/ZpRjwkDh0+c10qJEKreqmuTx0rjaAomL5qCiWFYPU5Dx+mkVi6ALy8MmE6ta/P7+ d4pg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a056402280900b0045a1dbedd92si3450074ede.35.2022.12.01.00.57.13; Thu, 01 Dec 2022 00:57:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229709AbiLAIaD (ORCPT + 82 others); Thu, 1 Dec 2022 03:30:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbiLAIaB (ORCPT ); Thu, 1 Dec 2022 03:30:01 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 48B02111F; Thu, 1 Dec 2022 00:29:59 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 01 Dec 2022 17:29:59 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 82BD72059054; Thu, 1 Dec 2022 17:29:59 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Thu, 1 Dec 2022 17:29:59 +0900 Received: from [10.212.157.157] (unknown [10.212.157.157]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 26B31A855D; Thu, 1 Dec 2022 17:29:59 +0900 (JST) Message-ID: <411af198-d4ef-52a7-b3fd-15e9c35021b4@socionext.com> Date: Thu, 1 Dec 2022 17:29:58 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 2/8] dt-bindings: soc: socionext: Add UniPhier SoC-glue logic Content-Language: en-US To: Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20221129103509.9958-1-hayashi.kunihiko@socionext.com> <20221129103509.9958-3-hayashi.kunihiko@socionext.com> <4e90944a-1200-4619-f977-590fe2919017@linaro.org> <24add13e-5339-cc79-525a-098c2d61e8c1@linaro.org> From: Kunihiko Hayashi In-Reply-To: <24add13e-5339-cc79-525a-098c2d61e8c1@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 2022/12/01 0:27, Krzysztof Kozlowski wrote: > On 30/11/2022 09:59, Kunihiko Hayashi wrote: >> Hi Krzysztof, >> >> On 2022/11/29 23:43, Krzysztof Kozlowski wrote: >>> On 29/11/2022 11:35, Kunihiko Hayashi wrote: >>>> Add devicetree binding schema for the SoC-glue logic implemented on >>>> Socionext Uniphier SoCs. >>>> >>>> This SoC-glue logic is a set of miscellaneous function registers >>>> handling signals for specific devices outside system components, >>>> and also has multiple functions such as I/O pinmux, usb-phy, debug, >>>> clock-mux for a specific SoC, and so on. >>>> >>>> Signed-off-by: Kunihiko Hayashi >>>> --- >>>> .../socionext,uniphier-soc-glue.yaml | 94 +++++++++++++++++++ >>>> 1 file changed, 94 insertions(+) >>>> create mode 100644 >>>> Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-soc-glue.yaml >>>> >>>> diff --git >>>> a/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-soc-glue.yaml >>>> b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-soc-glue.yaml >>>> new file mode 100644 >>>> index 000000000000..3f571e3e1339 >>>> --- /dev/null >>>> +++ >>>> b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-soc-glue.yaml >>>> @@ -0,0 +1,94 @@ >>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>>> +%YAML 1.2 >>>> +--- >>>> +$id: >>>> http://devicetree.org/schemas/soc/socionext/socionext,uniphier-soc-glue.yaml# >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>> + >>>> +title: Socionext UniPhier SoC-glue logic >>>> + >>>> +maintainers: >>>> + - Kunihiko Hayashi >>>> + >>>> +description: |+ >>>> + SoC-glue logic implemented on Socionext UniPhier SoCs is a collection >>>> of >>>> + miscellaneous function registers handling signals outside system >>>> components. >>>> + >>>> +properties: >>>> + compatible: >>>> + items: >>>> + - enum: >>>> + - socionext,uniphier-ld4-soc-glue >>>> + - socionext,uniphier-pro4-soc-glue >>>> + - socionext,uniphier-pro5-soc-glue >>>> + - socionext,uniphier-pxs2-soc-glue >>>> + - socionext,uniphier-ld6b-soc-glue >>>> + - socionext,uniphier-sld8-soc-glue >>>> + - socionext,uniphier-ld11-soc-glue >>>> + - socionext,uniphier-ld20-soc-glue >>>> + - socionext,uniphier-pxs3-soc-glue >>>> + - socionext,uniphier-nx1-soc-glue >>>> + - socionext,uniphier-soc-glue >>> >>> This one looks generic - why having it next to specific ones? >> >> SoC-glue has the same register set, but different implementations >> for each SoC. > > Sure, but you did not model it as a compatible fallback, but like one of > variants. It is not tied to specific SoC, thus too generic. I understand. It should be placed in parallel with enum. item: - enum: - ... - ... - const: socionext,uniphier-soc-glue >> I thought of defining the same register set as a common specs, >> but each compatibles are sufficient. I'll remove it. So currently drop it. >> >>> Same question for your previous patch - socionext,uniphier-sysctrl. >>> >>> And similarly to previous patch, do you expect child nodes everywhere? >> >> In case of this SoC-glue logic, all SoCs has pinctrl, however, >> only SoCs with USB2 host has usb-controller (phy-hub). >> And only legacy SoCs implement clock-controller (clk-mux) here. >> >> Should child nodes that exist only in a specific "compatible" be defined >> conditionally? > > No, rather define them in top level but disallow for specific compatibles: > > allOf: > - if: > .... > then: > patternProperties: > ...: false > > Assuming that this does not over-complicate schema. OK. Some properties are applied for a few compatibles, so I think it is available to use "else:". allOf: - if: ... else: patternProperties: ...: false Thank you, --- Best Regards Kunihiko Hayashi