From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6C00C001E0 for ; Wed, 9 Aug 2023 18:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VK9y19Dz5BMna5b6ukrUyUl/aBpH0hUT+aFF9F29K9s=; b=WpxmypReGW+fNN nfe88doFymXVDbgWmOSRu4apV5mYuGvRsgmAczRNXZXdzZua6nsQtHnl0YMxbu6ptYLpXXioHItwB mm+iHWh/aRdXPFIHoEgmF9oyqPBCvZVTi+DbPHWJvmMLoBnLvbnuZ8ruNRfdL42i0C1uG7fcmHmb6 V7d8FHKXn8gy/3Dy1oxDcvelZAfdeWR3ci+sNOuwnUQZlMaNS3Q7lUBbrJW+geYCu6BRElp57a0iP SR/oV+KVOu0hfW39ZAjNTKI/jlRlEptFKqhf2xfZoMhxAV/JuNeDbFxHZEVmvDDFmZ3DNKQJ5PWOB VK1Nvi7FP0nCw53wjqBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qToAE-005diO-2G; Wed, 09 Aug 2023 18:44:10 +0000 Received: from mout-p-101.mailbox.org ([80.241.56.151]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qToAB-005dhx-0s for linux-amlogic@lists.infradead.org; Wed, 09 Aug 2023 18:44:08 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4RLf8y3x59z9ts9; Wed, 9 Aug 2023 20:44:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1691606642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OHztLns/SEAN/eWS1xJ1M1QeZedq2Q0tPuXS7nMFpiU=; b=SqBgB3qZoafG5hX/f1pj41bDcLd6yXlIByiI3kOZk6djecEosEMzBt1QsENNCIvCi7L/uC kVxXtTJkBny9323/FS3T0aXZwZbSRSwS+isCLMv5+r3ophqVCG1/nPrnLjkce7q7wOIlA6 kTnkD41DMbuTT6Fngsv9QBjsMGMvU0LBKWcouUAurm2pEfoHnbdvIljVVRj3CIH9MrcQmf 8YP3mOncx1o0Ru3PHAYEFy2rDX1MDIWq1h1lGfQl6nhcolUcQnD69hSjSMiu7sBEhCWbWa LzgkQBSZnQdarIQzSUB9eMXG1hM7djDB/cglwowgWrGWxSjDyWE3pfqki5wQTA== From: Alexander Stein To: Jerome Brunet , Neil Armstrong , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Rokosov , Krzysztof Kozlowski Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/1] dt-bindings: clock: meson: Convert axg-audio-clkc to YAML format Date: Wed, 09 Aug 2023 20:44:00 +0200 Message-ID: <8294548.NyiUUSuA9g@kongar> In-Reply-To: References: <20230808194811.113087-1-alexander.stein@mailbox.org> <1j5y5obt0u.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 X-MBO-RS-META: o741jirs9h84kpbx6socy3zifu3qzbyf X-MBO-RS-ID: de6b6dc4972feb208bc X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230809_114407_452413_6F8BBEFC X-CRM114-Status: GOOD ( 12.74 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Hi, Am Mittwoch, 9. August 2023, 15:02:23 CEST schrieb Krzysztof Kozlowski: > On 09/08/2023 08:58, Jerome Brunet wrote: > >>> + required: > >>> + - '#reset-cells' > >> > >> else: > >> properties: > >> '#reset-cells': false > >> ??? > >> > >> > >> You need to constrain the clocks per variant. Probably names are also > >> specific to each one, so the list of names can be moved here and you > >> keep just min/maxItems in the top level property. > >> > > > > input clock names and constraints are the same for all 3 variants. > > Then why do you have this huge, apparently unnecessary, oneOf? If it's > the same, then drop the oneOf and make number of clocks fixed. But as far as I understand the number of clocks is not fixed. As Jerome pointed out in the other post, it can have any combination of clocks and range from 1 up to 11, where 'pclk' is always 1st clock. I currently have no idea how to constraint that, despite limiting the number of clock-names. Best regards, Alexander _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic From mboxrd@z Thu Jan 1 00:00:00 1970 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 B9E5AC001B0 for ; Wed, 9 Aug 2023 18:44:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232673AbjHISoH (ORCPT ); Wed, 9 Aug 2023 14:44:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbjHISoG (ORCPT ); Wed, 9 Aug 2023 14:44:06 -0400 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D423AC9; Wed, 9 Aug 2023 11:44:05 -0700 (PDT) Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4RLf8y3x59z9ts9; Wed, 9 Aug 2023 20:44:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1691606642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OHztLns/SEAN/eWS1xJ1M1QeZedq2Q0tPuXS7nMFpiU=; b=SqBgB3qZoafG5hX/f1pj41bDcLd6yXlIByiI3kOZk6djecEosEMzBt1QsENNCIvCi7L/uC kVxXtTJkBny9323/FS3T0aXZwZbSRSwS+isCLMv5+r3ophqVCG1/nPrnLjkce7q7wOIlA6 kTnkD41DMbuTT6Fngsv9QBjsMGMvU0LBKWcouUAurm2pEfoHnbdvIljVVRj3CIH9MrcQmf 8YP3mOncx1o0Ru3PHAYEFy2rDX1MDIWq1h1lGfQl6nhcolUcQnD69hSjSMiu7sBEhCWbWa LzgkQBSZnQdarIQzSUB9eMXG1hM7djDB/cglwowgWrGWxSjDyWE3pfqki5wQTA== From: Alexander Stein To: Jerome Brunet , Neil Armstrong , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Rokosov , Krzysztof Kozlowski Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/1] dt-bindings: clock: meson: Convert axg-audio-clkc to YAML format Date: Wed, 09 Aug 2023 20:44:00 +0200 Message-ID: <8294548.NyiUUSuA9g@kongar> In-Reply-To: References: <20230808194811.113087-1-alexander.stein@mailbox.org> <1j5y5obt0u.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-MBO-RS-META: o741jirs9h84kpbx6socy3zifu3qzbyf X-MBO-RS-ID: de6b6dc4972feb208bc Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Hi, Am Mittwoch, 9. August 2023, 15:02:23 CEST schrieb Krzysztof Kozlowski: > On 09/08/2023 08:58, Jerome Brunet wrote: > >>> + required: > >>> + - '#reset-cells' > >> > >> else: > >> properties: > >> '#reset-cells': false > >> ??? > >> > >> > >> You need to constrain the clocks per variant. Probably names are also > >> specific to each one, so the list of names can be moved here and you > >> keep just min/maxItems in the top level property. > >> > > > > input clock names and constraints are the same for all 3 variants. > > Then why do you have this huge, apparently unnecessary, oneOf? If it's > the same, then drop the oneOf and make number of clocks fixed. But as far as I understand the number of clocks is not fixed. As Jerome pointed out in the other post, it can have any combination of clocks and range from 1 up to 11, where 'pclk' is always 1st clock. I currently have no idea how to constraint that, despite limiting the number of clock-names. Best regards, Alexander