Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7599772rdb; Thu, 4 Jan 2024 01:21:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoCv9nNvn3kZ7VEZtu5drnFStPxnLSc/ajXUFxWqi0nwPeSZtbucg0TUzkfy9uK+kR4NrP X-Received: by 2002:a05:6e02:1aa8:b0:35f:bfba:580a with SMTP id l8-20020a056e021aa800b0035fbfba580amr282966ilv.46.1704360079138; Thu, 04 Jan 2024 01:21:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704360079; cv=none; d=google.com; s=arc-20160816; b=fvmTRUUfywpiPRHC/9HZPuria9o+Jf+5cWdfLIniiHR7kETNoYpGw1NgQUdMNSyHKw dof+P9mEHS/zTCAcp53MeCLAWqwEhhtPvTZJjZiTy43BgTlmBDlTamUMz0e2DpX/GxaO jziXTzWiPJTM98IxnAbifDdCObqtxnxyfxTU9GIhRCnQev6RhdaQ72cBHkM2wgqjZnQg Qa/zfuWuZgCfCS674rRbh4oH426hS4kyKmyQ84UBZKuuRSlccof3R/BQbd0SE/7+FmiB hs9CPRlgc2QicOUPrpY6MSIlcGpVv+XtgoX4LnCjAA9RDBgGJMuvTACiDlR4niDWojyd 7RXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=+XEANleywHF7ij0aJmeMmRVUrjKcFO/lSqViFXf/Gds=; fh=lt9Q7z+fMbjHr6GF3g5Fy6V/w9prpOpLmj4zpvuA2uI=; b=L6KUgFaK3G1J3AHZ2bK46O4Q6XfRvYMoyuGzVat/sk7TwJkooLxxkgmR7oMwNRA9R0 qdP/4CUW6+nfpwls2qbkgcFsnlLSsDPsRq9yv1+ynNQ82oMgx2G7Ewo8Rwz/y1RHtcyw 5S8BumwyIlSkGWnkzpKChLpy7sK0CGaTP+UdS8XRNYCtgrbytCOkrM22/bXmGvy4P7v2 0BxiNq6gZHWnfxFiFckh9XBgDygwBjxqpxojUK/7X5I2oJKBYH8CLoGLDP7AJfkfmo5C CkMSxAWGCs604jUx3w2TXX6I0NOHd9cbJcMBmrtQMT4p1DMxaT5Pn+lJe7eBgeDSE7xP XIYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qt9KogoX; spf=pass (google.com: domain of linux-kernel+bounces-16431-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16431-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i185-20020a6387c2000000b005cdfb7fd7fesi20102581pge.369.2024.01.04.01.21.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 01:21:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16431-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qt9KogoX; spf=pass (google.com: domain of linux-kernel+bounces-16431-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16431-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BF8B92873B9 for ; Thu, 4 Jan 2024 09:21:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 689902032A; Thu, 4 Jan 2024 09:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Qt9KogoX" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAE6B2031E for ; Thu, 4 Jan 2024 09:21:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-555144cd330so392549a12.2 for ; Thu, 04 Jan 2024 01:21:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704360067; x=1704964867; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=+XEANleywHF7ij0aJmeMmRVUrjKcFO/lSqViFXf/Gds=; b=Qt9KogoX6OoG41AatNB1ubNjrrjg+5Sg+mVk+vjEimhJLF+C1RA7PCIYB4LHcLwnIF cLQGYs+L10UnKzNyN3IHQc0ldabjtpSXVF2M5t7HqJ2fQa0v7p7jgD85RnrVdOSX3bz0 4TjpuZCcAtoMAZZ4WYysoDyAamk6nVzBfDk+Oev/pPP2DKuUwyAq2KvnHOwcqqJifjYY CWnaWCnN17/8iiMb3a/J6EAp3Ywc88RgHSfnzeXfO8QII93q8sWmwh+BFRBw6seA0Zad DxCOMUci85/O0SAn+mBZE6GbcxATRliXbXR+yJOxQzMWvvctWIZspxpRhWGd/DBtPhkY gAzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704360067; x=1704964867; h=content-transfer-encoding:in-reply-to:autocrypt: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=+XEANleywHF7ij0aJmeMmRVUrjKcFO/lSqViFXf/Gds=; b=PsSagayvKk9R/7FDjnMFoKl7kNbtqm9KnNNdQWD6AeO22XUgZ5hxEfYoUHT4v8nyFe 7Ni5mFZUik9tOUNGWOKNfnGZ2wcrg6WvwWxEpe2Fwjwr+Z3ezmcv0CoOsUen0JCLCfC1 71YRqrI9bysheVWkNkpTZVIXkgx/K0G5j8uo34elw7XGXJ6xahVa9+c6am4inCKmmjgd V/Sq7gH5F/AiYYgQvROE06+SiEfh/A7l3wQTk/nTE3iTgHLuNQ6VfJwLMccTjCqUEZ+y 0p68MTKvoWEQ5VqfHTauDPRU34K/HuqIhQrvvghuY3F1oar0E9C1AkYFVTqN4Rs8D5Ul ocXg== X-Gm-Message-State: AOJu0YxkrmjSsXplKZ4SrsRQYRvla/XPbnVJiiSKhOcFqusUBls6QPQF HqJXY39uuOui1zeHXcp249pokQ3/uLSKwA== X-Received: by 2002:a17:907:948e:b0:a26:9ec0:e35 with SMTP id dm14-20020a170907948e00b00a269ec00e35mr243732ejc.135.1704360067158; Thu, 04 Jan 2024 01:21:07 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id eb23-20020a170907281700b00a1f738318a5sm13598206ejc.155.2024.01.04.01.21.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jan 2024 01:21:06 -0800 (PST) Message-ID: Date: Thu, 4 Jan 2024 10:21:04 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] dt-bindings: clk: sprd: Add UMS9620 support Content-Language: en-US To: Chunyan Zhang Cc: Chunyan Zhang , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang References: <20231229085156.1490233-1-chunyan.zhang@unisoc.com> <20231229085156.1490233-2-chunyan.zhang@unisoc.com> <3a290bf9-928d-4d21-9c93-0d1db59d6fff@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrc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GRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 04/01/2024 10:09, Chunyan Zhang wrote: > Hi Krzysztof, > > On Thu, 4 Jan 2024 at 16:46, Krzysztof Kozlowski > wrote: >> >> On 29/12/2023 09:51, Chunyan Zhang wrote: >>> Add UMS9620's clock compatible strings and descriptions for clock >>> and clock-names for UMS9620. >>> >>> Signed-off-by: Chunyan Zhang >>> --- >>> .../bindings/clock/sprd,ums512-clk.yaml | 79 ++++++++++++++++--- >>> 1 file changed, 68 insertions(+), 11 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/clock/sprd,ums512-clk.yaml b/Documentation/devicetree/bindings/clock/sprd,ums512-clk.yaml >>> index 43d2b6c31357..dcad41a1fea7 100644 >>> --- a/Documentation/devicetree/bindings/clock/sprd,ums512-clk.yaml >>> +++ b/Documentation/devicetree/bindings/clock/sprd,ums512-clk.yaml >>> @@ -30,25 +30,38 @@ properties: >>> - sprd,ums512-mm-clk >>> - sprd,ums512-mm-gate-clk >>> - sprd,ums512-apapb-gate >>> + - sprd,ums9620-pmu-gate >>> + - sprd,ums9620-g1-pll >>> + - sprd,ums9620-g5l-pll >>> + - sprd,ums9620-g5r-pll >>> + - sprd,ums9620-g8-pll >>> + - sprd,ums9620-g9-pll >>> + - sprd,ums9620-g10-pll >>> + - sprd,ums9620-apapb-gate >>> + - sprd,ums9620-ap-clk >>> + - sprd,ums9620-apahb-gate >>> + - sprd,ums9620-aon-gate >>> + - sprd,ums9620-aonapb-clk >>> + - sprd,ums9620-topdvfs-clk >>> + - sprd,ums9620-ipaapb-gate >>> + - sprd,ums9620-ipa-clk >>> + - sprd,ums9620-ipaglb-gate >>> + - sprd,ums9620-ipadispc-gate >>> + - sprd,ums9620-pcieapb-gate >>> + - sprd,ums9620-pcie-clk >>> + - sprd,ums9620-mm-gate >>> + - sprd,ums9620-mm-clk >>> + - sprd,ums9620-dpu-vsp-gate >>> + - sprd,ums9620-dpu-vsp-clk >>> >>> "#clock-cells": >>> const: 1 >>> >>> clocks: >>> - minItems: 1 >>> - maxItems: 4 >> >> No, constraints stay here. >> >>> description: | >>> The input parent clock(s) phandle for the clock, only list >>> fixed clocks which are declared in devicetree. >>> >>> - clock-names: >> >> No, you cannot just drop properties. Widest constraints stay here. >> >>> - minItems: 1 >>> - items: >>> - - const: ext-26m >>> - - const: ext-32k >>> - - const: ext-4m >>> - - const: rco-100m >>> - >>> reg: >>> maxItems: 1 >>> >>> @@ -57,7 +70,43 @@ required: >>> - '#clock-cells' >>> - reg >>> >>> -additionalProperties: false >>> +allOf: >>> + - if: >>> + properties: >>> + compatible: >>> + contains: >>> + pattern: "^sprd,ums512-.*" >>> + >>> + then: >>> + properties: >>> + clocks: >>> + minItems: 1 >>> + maxItems: 4 >>> + >>> + clock-names: >>> + minItems: 1 >>> + items: >>> + - const: ext-26m >>> + - const: ext-32k >>> + - const: ext-4m >>> + - const: rco-100m >>> + >>> + - if: >>> + properties: >>> + compatible: >>> + contains: >>> + pattern: "^sprd,ums9620-.*" >>> + then: >>> + properties: >>> + clocks: >>> + minItems: 1 >>> + maxItems: 6 >>> + >>> + clock-names: >>> + minItems: 1 >>> + maxItems: 6 >> >> Missing names. > > The names are fixed, but the order are not. Order must be fixed. > > For example: > clk_a { > clocks = <&ext_26m>, <&ext_32k>; > clock-names = "ext-26m", "ext-32k"; > }; > > clk_b { > clocks = <&ext_26m>, <&ext_4m>; > clock-names = "ext-26m", "ext-4m"; And here the order is fixed... > }; > > How to list the names for this kind of case? (Please forgive me for > being lazy, didn't find a similar case after a fast search) The same ums512 lists them or mentioned other bindings. You somehow cut the quote... Best regards, Krzysztof