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 3A093C25B79 for ; Wed, 15 May 2024 13:17:54 +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:Message-ID:In-reply-to: Date:Subject:Cc:To:From:References:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jsZrkWAJKDyPU+bPdszXiRZ6CWxRKPi3tsnSWphiwpQ=; b=Pj3sxe8Y4JNH/q 6Y46aQ1oMLF5QiqzF/v2xZmbLHY6B8YdunlACL9bQkdxld1fOxCRitbrGHUL4Jj6rjOgsLzPQTNHw JaMR6WfjjHqUsoIoI82lq1Mz5S9MsbBqU3dVecLDvro+2R8yK3yKipNQyQfJnzkkDRegDOh8cKJXZ NPOdDX2dk4T37NenEMcKOU8V8kO9JeZPUxxkSbXMHGHWn6++59F9aWS7h3KjEPypJCHBJnmtZE5A6 et3GkU42cnUmc3IzXFUKWs8d7OaPfBRxNYaPb6u5KH7JNIVZYVcd/9YDLohSzWgqYm6hof1REOOxQ am0+u9czZaZwFoHJO1SQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s7EVm-00000001cqL-1hHd; Wed, 15 May 2024 13:17:38 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s7EVi-00000001cns-3RBa for linux-arm-kernel@lists.infradead.org; Wed, 15 May 2024 13:17:37 +0000 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-34d7a32bdd3so4045889f8f.0 for ; Wed, 15 May 2024 06:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1715779053; x=1716383853; darn=lists.infradead.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=Wkq99nuMEm3sK6ZhmvF3R71byoY0ssDC9KdU6I8CK5A=; b=WfbgRmUmuujG6XmuOtgUqOgNoIoT1WqO6bAhYHp+FfA9oFdJq6L8EmYdqfo3oLeCgN WTrDkXC150pFgiU5xQjq7EK+b8EkxC1kYcsYNIMy82Aa3wSbrmw9ix3wHcPV5TniuvWb 9/FTZwZuSA2UwMzLreHzeJikGPdvuQO7LJJU4u601yjKHyxksCen80UsIes2dKem/4J1 b0FzUhFOfY4HzWb3c8GcPjpoScn0s1FzmI9q2jXnFOMZ2JYs1UQ2A1jq8Fv8/oXGrG3V /dHlt64v+eQSUgl9AJSAMmtAi/sGqRDK1ELcvqpVG5F6UcP2ix9g8UZqYhPRASojQ8EQ 7w6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715779053; x=1716383853; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Wkq99nuMEm3sK6ZhmvF3R71byoY0ssDC9KdU6I8CK5A=; b=iEnEREre3+3POLNy4ItmXQOv2l1lCwu4Wq3b/D0baFCtaq+vinH6/OTtDmxqB6x3ZN obQl3etqgche6BB63Nuy+jdqQ4kCgCVo6ajnoWfpr9mSLDHGzi4AQpU9Avk7gDP1UrVE y8ZPJNrLXO2py1jcoOb2+i1vYNX+PrBhvXJxTkLH+QsU35YU0J92XLhT0My+etQswb7T nZj2Ytcs8Z5cNynHraRHoRw8FUqaFLWZuLJso+0c/BsMYYG37Yf80ePE/h8OBpr7hrbT sP4yfW7OFmZ0FxJD6jg22d+m3Gt9KHfmHg49LKRK1MJkXmVidAPEg0zhoDnEW2xdI/wV KiDw== X-Forwarded-Encrypted: i=1; AJvYcCUYRVTmuCNfjpvE8RzaFPw5ryfjRCezMNPvIgjS+Yjfh/Fhz/0X/h9xV5VPoROOnqmwnV56NOJnRXaZRo1AGpcpAVA9LE6pm1E7Krn5nM17FcL5VQc= X-Gm-Message-State: AOJu0Yy1jt5p8rq+ymIPmB0bx+HZ1U40mpPft32Zw9T+85Y0xClxLd6/ BDM31GdrR627UMQcmNCju6mdpz+SL7q15h8Nzx89YtjxfcVOLnxy+dG4OFE6QZY= X-Google-Smtp-Source: AGHT+IE4YYUxY5plTBCwY46ojRAymJdS+bbjFNA9B11hQIBGI59XYOMg6b3oSsFO4BCii/+Aekb4iA== X-Received: by 2002:adf:fe8c:0:b0:351:c7c7:985f with SMTP id ffacd0b85a97d-351c7c79963mr3745116f8f.53.1715779052826; Wed, 15 May 2024 06:17:32 -0700 (PDT) Received: from localhost ([2a01:e0a:3c5:5fb1:2893:1a8f:5988:776a]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502bbbbefdsm16424209f8f.94.2024.05.15.06.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 06:17:32 -0700 (PDT) References: <20240510090933.19464-1-ddrokosov@salutedevices.com> <20240510090933.19464-3-ddrokosov@salutedevices.com> <20240511-secret-barcode-e25c722ddf1d@spud> <20240513091735.l3uewwzfrdd6qwbl@CAB-WSD-L081021> <20240513-epic-magnifier-8dd83db81c4c@spud> <20240513183012.652mwhivasqihiqc@CAB-WSD-L081021> User-agent: mu4e 1.10.8; emacs 29.2 From: Jerome Brunet To: Dmitry Rokosov Cc: Conor Dooley , neil.armstrong@linaro.org, jbrunet@baylibre.com, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, khilman@baylibre.com, martin.blumenstingl@googlemail.com, jian.hu@amlogic.com, kernel@sberdevices.ru, rockosov@gmail.com, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/7] dt-bindings: clock: meson: a1: pll: introduce new syspll bindings Date: Wed, 15 May 2024 15:15:35 +0200 In-reply-to: <20240513183012.652mwhivasqihiqc@CAB-WSD-L081021> Message-ID: <1jh6ezxlhw.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240515_061734_903165_04E53465 X-CRM114-Status: GOOD ( 24.70 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon 13 May 2024 at 21:30, Dmitry Rokosov wrote: > On Mon, May 13, 2024 at 04:48:33PM +0100, Conor Dooley wrote: >> On Mon, May 13, 2024 at 12:18:02PM +0300, Dmitry Rokosov wrote: >> > Hello Conor, >> > >> > Thank you for quick review! >> > >> > On Sat, May 11, 2024 at 02:08:03PM +0100, Conor Dooley wrote: >> > > On Fri, May 10, 2024 at 12:08:54PM +0300, Dmitry Rokosov wrote: >> > > > The 'syspll' PLL is a general-purpose PLL designed specifically for the >> > > > CPU clock. It is capable of producing output frequencies within the >> > > > range of 768MHz to 1536MHz. >> > > > >> > > > The clock source sys_pll_div16, being one of the GEN clock parents, >> > > > plays a crucial role and cannot be tagged as "optional". Unfortunately, >> > > > it was not implemented earlier due to the cpu clock ctrl driver's >> > > > pending status on the TODO list. >> > > >> > > It's fine to not mark it optional in the binding, but it should be >> > > optional in the driver as otherwise backwards compatibility will be >> > > broken. Given this is an integral clock driver, sounds like it would >> > > quite likely break booting on these devices if the driver doesn't treat >> > > syspll_in as optional. >> > > A lesson perhaps in describing the hardware entirely, even if the >> > > drivers don't make use of all the information yet? >> > >> > Yes, it's definitely the right lesson for me. However, without syspll or >> > syspll_in, we cannot utilize CPU power management at all. >> >> That's the status-quo, right? The incorrect dts would continue to not >> support CPU power management and the new one with the correct description >> would? > > Hmmm, correct. Okay, I see, I will support sys_pll as optional > connection :) Again, the way controller is written, all inputs are actually optional. The controller does not error out if an input is missing, it behave as if the input is disconnected -- Jerome _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel