Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2307826lqt; Mon, 22 Apr 2024 07:25:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2alFfsyLBThud0oBadWW3rMvp5v21HqmPWvt61j+jUEtPaDiYIVI16vdQYJDvbsM+4089/VsFUYBNmeS7V+WiodhNc3HrWns/Byg+6A== X-Google-Smtp-Source: AGHT+IEiONpKAHEY/HL+J8vOfhJx87Ozb0f6xRB2uzBB/2IZYGeGrtW1Zb95JnllAMrPGVGydLIS X-Received: by 2002:a05:6122:4592:b0:4ca:615e:1b61 with SMTP id de18-20020a056122459200b004ca615e1b61mr12210502vkb.10.1713795900421; Mon, 22 Apr 2024 07:25:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713795900; cv=pass; d=google.com; s=arc-20160816; b=R/pJ3ms1UYpZAh7ijiAp4QqtYddDIF2KCQ50yK8zORmCdBm40Y192HZt0eNjL3yqKo Q0+1PyidNmgVh/1ZeGnehrqjyb20GbNZWwyN6xI/g7kDphGYuc/2kw2UiuU+sespJRdd K6IYfkj7RUzS58QAx8jIjzi6R1qYezVGBVEH6s4uuLpwm/4ZKRQofaADEOvnscy9R6Bg uUNi/FAU6yIEtHb3kq07Qgtw2iBu3p8JNKE4/j5TwInfcmC5BPzRuYHJ9xrUF/9fW1W7 RHTIq/oXI4LKHwa/KjsTA1VRjimHluwJxOkqrzaTh3qvxLd3pY9RNm4cNxn3T04575R2 d0Aw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kjHBA1IQFde0+7tcPOrhDyy2TQUhqcNwhDIVsM1Qhz8=; fh=zr/mZ88jeGufV6Zaf5oqW6EdIijG444ExjYZwUWYV7k=; b=VK4PQbobbIiYJG8HJE8F0HYhskq4b5++Hl/AD6R4Os2ZhycJj+uzEguvWg//pThTkp 878XMF5X3mOMrHv78RgSsUsiVNleXr35/stXY2tg+vtEj38ni6lfGaQwbEa/JWnWEjPa Nhhpwg0ZlioJueF3pTgZU/+XPBc+xQdeixWCXitVtjWNo2A3HJoeCDzyBkS2jEQevpg3 orNsdB0EzBskjIkl3lUNao4I8WmGciqKlyKpWSytw5JefX6TavOnN/hozWeGzvjok3Eh mMUbtIslYjeNwpu+fxJtmapuuQpfYXlorlp8H57l2xVncsuLEJnqESW3wo3lPZOkFekC nonw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E9iRwFZc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y3-20020ac5c803000000b004db04e03466si1532082vkl.217.2024.04.22.07.25.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 07:25:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E9iRwFZc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 255E41C2160D for ; Mon, 22 Apr 2024 14:25:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C3F5F1514CA; Mon, 22 Apr 2024 14:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E9iRwFZc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E331E136988; Mon, 22 Apr 2024 14:24:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713795892; cv=none; b=pDOaQXyvMQ61NF7JHsqTJEBSEC12pdmQiSi58REh0jBWu6VEnh1BlzkTIkAfJZn/r/uZY8cUC8x91YBTiC5n4rzwPXZGsKRlUEITmar6kewVKpNwEkh8vvPZLEXaP6JI7i3I+DF8JiCGsaxpgQzDfb9vo6spjZoyg6oE6WWjxv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713795892; c=relaxed/simple; bh=UixV5EidYwsxFua1xIDYV6JAjWIOm875jhs6D2+QN/I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CAfjdDpaX1649SiRedq8Ho5zcZ43YPmQHWnsEW5MA/kZMQM5GbQxENGWLJaolMHouNGa30/iT1pw/aW6knCgX/gXME0pKnlYaFvFrAHBKV4C91Q6b7SCNnzn/DoIGyvvGgOH3c6v7VbVzsuYKRCk/JBGuibh9Cs0UQQ3mYuaND8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E9iRwFZc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EB09C113CC; Mon, 22 Apr 2024 14:24:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713795891; bh=UixV5EidYwsxFua1xIDYV6JAjWIOm875jhs6D2+QN/I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E9iRwFZc4nm5fJqxtHjuvWOp6mjRA8LzvnLCX1H5Kv+Qys2M5FqKiFeGJBRuIWJBS JPAr1jWogxMWhbaJhjVRyXWysKBnVc2PQYw9tW9hqh98DfKqEcEH8FWqvabhGp2FZ5 /M4PtM6QNLFmw9wjM3qV+yCuVjLHejweLDgrA3++au6lThe/KEFSRGi226PQxOyElm G8j1FH8MEy0zpK9l9HfXilWaGxLEpnuX/Pwj5dMvpEO5rJpy0ccwwHnqQvf0WW/oAV qL08LZxijyPSQ+fLwJIUSai2pzR0CoX+eYEz+e/WT4Vi1HgtR9tM0B9YdwWHXYZgev yVZpdDmrNACsA== Date: Mon, 22 Apr 2024 09:24:49 -0500 From: Rob Herring To: Frank Li Cc: Laurentiu Mihalcea , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Liu Ying , Laurentiu Mihalcea , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/3] dt-bindings: dsp: support imx8ulp dsp clocks Message-ID: <20240422142449.GA1186917-robh@kernel.org> References: <20240418203720.8492-1-laurentiumihalcea111@gmail.com> <20240418203720.8492-2-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Apr 18, 2024 at 05:08:20PM -0400, Frank Li wrote: > On Thu, Apr 18, 2024 at 11:37:18PM +0300, Laurentiu Mihalcea wrote: > > From: Laurentiu Mihalcea > > > > i.MX8ULP DSP node needs a MU clock, but doesn't need > > a debug clock. Change "clocks" and "clock-names" properties > > to allow for this case. > > > > Signed-off-by: Laurentiu Mihalcea > > --- > > .../devicetree/bindings/dsp/fsl,dsp.yaml | 51 ++++++++++++++----- > > 1 file changed, 39 insertions(+), 12 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml > > index 9af40da5688e..4a39d57b1cc6 100644 > > --- a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml > > +++ b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml > > @@ -30,22 +30,12 @@ properties: > > maxItems: 1 > > > > clocks: > > - items: > > - - description: ipg clock > > - - description: ocram clock > > - - description: core clock > > - - description: debug interface clock > > - - description: message unit clock > > minItems: 3 > > + maxItems: 5 > > > > clock-names: > > - items: > > - - const: ipg > > - - const: ocram > > - - const: core > > - - const: debug > > - - const: mu > > minItems: 3 > > + maxItems: 5 > > > > power-domains: > > description: > > @@ -93,6 +83,43 @@ required: > > - memory-region > > > > allOf: > > + - if: > > + properties: > > + compatible: > > + contains: > > + const: fsl,imx8ulp-hifi4 > > + then: > > + properties: > > + clocks: > > + items: > > + - description: ipg clock > > + - description: ocram clock > > + - description: core clock > > + - description: message unit clock > > + clock-names: > > + items: > > + - const: ipg > > + - const: ocram > > + - const: core > > + - const: mu > > + else: > > + properties: > > + clocks: > > + items: > > + - description: ipg clock > > + - description: ocram clock > > + - description: core clock > > + - description: debug interface clock > > + - description: message unit clock > > + minItems: 3 > > + clock-names: > > + items: > > + - const: ipg > > + - const: ocram > > + - const: core > > + - const: debug > > + - const: mu > > + minItems: 3 > > According to your descript, look like only clk "debug" is difference. > > How about > > clocks: > items: > - description: ipg clock > - description: ocram clock > - description: core clock > - description: message unit clock > - description: debug interface clock > > clock-names: > items: > - const: ipg > - const: ocram > - const: core > - const: mu > - const: debug You can't change the existing order, so this does not work. Rob