Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7586524rdb; Thu, 4 Jan 2024 00:47:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDt3w7aR5JZ5i0r7r9GOhcbugr++VWiT1/Ko5Plvr6U7uBqLAEpSjDMtWcZ3jcMPDQeoC6 X-Received: by 2002:a50:ab10:0:b0:556:8cce:831c with SMTP id s16-20020a50ab10000000b005568cce831cmr180892edc.68.1704358029277; Thu, 04 Jan 2024 00:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704358029; cv=none; d=google.com; s=arc-20160816; b=IuLcVHVQssczdt93Dil7Fm3HCAM5ZO5ncZBsqE/xVqF0f+IZ9kDR4rbWhVbeSbZJpX LYUECCWYWWt9GwL8Ir0Ovehxj6ijeoKDN1b5pNzPnNI4t26Ad6ikVjI0bs/+P2lbeqNO bL0k+XTFTVGXKs5BLczL3hwYRGPsFyMKtA7OsKJHzpTJMGeetciUduYgys9gzCTYpnUl 7JWLCUDhSnbCo6gx74yFizWdYWUhFrlaUhCbXtb27M2ZKLwVJqcCnMlE/dvW8vT9i8xf QaDeJ3AcAQofqjqbrzZd8gWzk2IMLT8cys4l5mTj4PqwAVOzBvOdFqp68BURpbLvtxsE SrVw== 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=dxxff/ErUIZVKvL74Mkxu99RYlOp8uSYyZc1MOwQOvU=; fh=YAiduR87P1cu9+sRmBrmG8gF6MNs4hckYUvtZRr61fI=; b=vwffBT2Z/ngiMA2vKgHTu0u+8cJ/4WWyxjd7IIOk+gTDiaeVBCaGPzqfGqhwG85P5V DRbDOueAL/vJTLa1i5PjH+Pbtz3WqblnUW4TMoFhOD7oqBWkaNp9blyWQz1F746vxEqy h69Mj+hWxAH0Fupz39LlpypmmZDW1HVz6q12EfgLM5I3T6Mt0tjyAtSnZLgVByRBWJXz hyB88WaGJL7qGnwSj4ORkSfSZ1be8WKIPo4y8cD6dF3JzWV6wZn60SzGCr6vIwR44SU6 zibaaEQcoc+Sz7YTHTwtT5t09KIaV/6OAldE74pZQshgQ4xsSw+xGz/xNloZIIaUzbVl BhDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qBmw/LTR"; spf=pass (google.com: domain of linux-kernel+bounces-16393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e10-20020a50d4ca000000b005550495a65bsi8458125edj.339.2024.01.04.00.47.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 00:47:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qBmw/LTR"; spf=pass (google.com: domain of linux-kernel+bounces-16393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16393-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A9AE51F21AB5 for ; Thu, 4 Jan 2024 08:47:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 853421E535; Thu, 4 Jan 2024 08:46:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qBmw/LTR" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 277FF1E500 for ; Thu, 4 Jan 2024 08:46:55 +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-ej1-f43.google.com with SMTP id a640c23a62f3a-a271a28aeb4so25935666b.2 for ; Thu, 04 Jan 2024 00:46:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704358014; x=1704962814; 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=dxxff/ErUIZVKvL74Mkxu99RYlOp8uSYyZc1MOwQOvU=; b=qBmw/LTR0k6S3qJV3gm8fXzIBYDmV4fUyX2REyOj4a3PccxOzqw8ZJgseKhkJ1I9hq BYWPpicXz+HJGdrauwZ4i7mcJyYNElWXJxh09VHw/h1TDIBUOp3O+FOxn82vh4fjtE8V Hh/4gsQ8SGx/+HX+v48AHBGJMgpFtn7K7L6V/J2FzB9IuGXjuP6keKcWZGMytYlykei9 y/kSQC2Z4AuwVG707bYWnR09NgFOAjL/JrIIVBGOuBl3E8zIGq+AYDtW58ARvwGKfcjO WsXUfxXAI9LxXkNMZYVeUA8yID1OCovfsPIgqwenxmQK1aSFgb++iOqYegd9LEiWWyXX Hs2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704358014; x=1704962814; 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=dxxff/ErUIZVKvL74Mkxu99RYlOp8uSYyZc1MOwQOvU=; b=YymE5uiV83mFzMAROSMiZOkx+Ap7TnfE7CyH4NYhiy5tZ1lATRVRFoex6hkSomvrEF oIExSPnhsy2e63821qlku9O9rHqc/pgjR6Q3gv6st3ajbbwAHkvaQ+cZL0bpsnj3Am1H 2SNPFtritIFTB681pu+qSRvMZ5T9y8D8SwSyIfQrQMByiAZE8zws+hJrgsJ3sHhxIY1C crLindI5PHd/CakravocOIdpAaiPIIsTG1wEtRZm1dutKD2FxQf/ZzoeB9G0fGIVAaA8 idkNDnjxDmXnmLishcJBmnYhy9dW2HAR7qdV4mlnH7KnRFZvMdh/z1F8iKmNSTqWosC/ TN7g== X-Gm-Message-State: AOJu0YxR9vT9xhvp1l+0fMLXx0QVnhvh5ec7hYFOku7usrXA3EJWqNSR HelxCtdyy0nHSmFgQFr+pGNyiUNWP9rAMQ== X-Received: by 2002:a17:906:ad8a:b0:a27:f950:4576 with SMTP id la10-20020a170906ad8a00b00a27f9504576mr122278ejb.151.1704358014442; Thu, 04 Jan 2024 00:46:54 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id ka24-20020a170907921800b00a26a80a58fcsm13126060ejb.196.2024.01.04.00.46.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jan 2024 00:46:54 -0800 (PST) Message-ID: <3a290bf9-928d-4d21-9c93-0d1db59d6fff@linaro.org> Date: Thu, 4 Jan 2024 09:46:52 +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 , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Chunyan Zhang References: <20231229085156.1490233-1-chunyan.zhang@unisoc.com> <20231229085156.1490233-2-chunyan.zhang@unisoc.com> 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 S296bG93c2tpIDxrcnp5c3p0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ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231229085156.1490233-2-chunyan.zhang@unisoc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. Most likely you are trying to stuff too many devices into one binding. I suggest split, could be with some shared/common schema (see Qualcomm GCC bindings). > + > +unevaluatedProperties: false > > examples: > - | > @@ -68,4 +117,12 @@ examples: > clock-names = "ext-26m"; > #clock-cells = <1>; > }; > + > + aonapb_gate: clock-controller@0 { > + compatible = "sprd,ums9620-aon-gate"; Drop entire example, no need for new example for every new compatible. Best regards, Krzysztof