Received: by 2002:a05:7208:13c3:b0:82:bbfa:f723 with SMTP id r3csp1536573rbe; Wed, 15 May 2024 06:19:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDtsq3P+kH5Y1sHkm0mbP24M8j0HTfq0pYBZjbPOgU5kbYRLlc2OAXIzzZBNnX0YLHP/+TGtrnyEwRnNNoTzFEcIgCy8nlgaE0Lv0GZw== X-Google-Smtp-Source: AGHT+IE3b870SVym+gI/FSmHAtnjmjMNRYeCHUxiFF7zGZEURlP62gSzEd1uHpn+yEQjUm6BK8xu X-Received: by 2002:a05:6a20:5a96:b0:1a9:c4ca:dc74 with SMTP id adf61e73a8af0-1afde0a9bf7mr15500373637.5.1715779171468; Wed, 15 May 2024 06:19:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715779171; cv=pass; d=google.com; s=arc-20160816; b=ImH9vFzeyCAxnFS62XyXou9gfSIktZKXkZIbG6xiRL5EfAmL28mKU4Y79MKA4+yr6J A4MrOp7wS8aHLszBAHOHn8urtilgqlx+WZdyGx+g54OIhFMGKEaPaomAgrinTQ3Z4A9S oqWL8mKrFEjzZGxjKCoalCiT++kB2//7u5jSP44aB22NWUocS0NSYGAkgfAfC9ho6kei qDRh0MpyGmbJbA0HMPq+eaYeiU95+F5m46ymDB6iXau2rdjmTV/OMi+a2EnY9O2UZlTM 1h8fJqNVbUxodrNKWJSTAlo3U+w9DJ2B2rTR3eJujGjCAerRm2vA85dv5Xuy9Wx9lkof Uobg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:in-reply-to:date:subject:cc:to:from:user-agent :references:dkim-signature; bh=Wkq99nuMEm3sK6ZhmvF3R71byoY0ssDC9KdU6I8CK5A=; fh=LqjNl6g61HnzFKXn3W7b1PDr6soOqVNRRodPrtghneg=; b=nyZx4tGi0c01fFShrgp9aOQ3OBFgLjG6K0eQFyg4u1Ighd7asostttcKqOIZK+JQgX k+35gIFpikjdMrEZ7M1slyqaT3tzDyYD0hAzXIo1poldUNYdyg3E5HgR7kmdBB9wZ6uL MywAlV2T2T8QIwk9MCkA/iE2cecfZnQLiNKhaDMTgevmwqW46KgO+OZ70uVpeniArSic Mo9WG6aGI8pNjvSCFau9wUGgM+ic8bXwTSYfRTecz8g8owKowhMNpDt+Tz/RJeOae2OU noHqmCNhHwD1M8VqKHk0m1W+wwHldlQ2DaGW1FNZB4XL8NO1phYEvqvHI8co43VEZIx1 49nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=y8yWBySO; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-179905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179905-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4fcbc6ba9si7725166b3a.105.2024.05.15.06.19.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 06:19:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=y8yWBySO; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-179905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179905-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AE46AB21388 for ; Wed, 15 May 2024 13:19:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5258312AAE3; Wed, 15 May 2024 13:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="y8yWBySO" Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 8FC99127B69 for ; Wed, 15 May 2024 13:17:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715779056; cv=none; b=OPsDXgCDOJidhQdPulzt0pf5+ItBVVF2zEq9HkiUxx71EytuPzVLv0btKfntKTaFG13gJ67g39mcUGep7tCZJMtLBNu5GGJoE0AUnhRqFgbaTGIpxSmakExMeCdIpMPQQ0MEfVNUn7doykkuWspKnAX8q031PrzZrJbnENdnVXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715779056; c=relaxed/simple; bh=IKDt0+fluY20ds2F3whtuDQEpT+RYSV83TYvQF9ISsU=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: MIME-Version:Content-Type; b=T7f4QC7E+KzzJ5cb51V3q0IZ2xjEIFQofwPRq4arUY3Geg5UvFsc/nTuE4Ucl7pTtv2TX3s21QkI35rmyIaHJ2OIL4XdyMoFJsiCnSmho4E91S6xh0qBDz2l1+8T0xnVI0Xew8hGcPmItbZcvXs0HQK+hWe8OUeOstnY3YwHe14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=y8yWBySO; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-34db6a299b8so5096169f8f.3 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=vger.kernel.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=y8yWBySODzKOrXTocmOTOkT9K7sz8VjJJdJUqW00F6S01xgEYlhaTyZo9X8xDvXXx8 kmUHdEA058pmcFnGYYIWwXTGPCDP81V4y7MnENqq5xpyOOsH0lGB/hXyEmfN0PsggY82 +illVCzmjdLWurdwn4Dald6+B/lnJz+b9mTR0bHZX3ebRbVRCYHSpG0bBl70Ny/zGMvl PXslhgPemaDy1Xy/StcT3hYm8crnLeBSAKutFM88teBVqhlp9gqU+4ysnD/fCywXwrdP VROEnKBDHQ1tpE8cpGk1KxN9HG28Qc3p7rvwa7FyTCZ9zMBFe9b9J5RfbYkAa8/sOGH8 PkMw== 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=Wvht/xna8HANYuMIntaaVYFKeHeezOv9vmIpgJ9lVgZDXgV6EH2EVgr6HZekqC3KAL S35nyvxczu9k08JeDb8yCDdieTxEVjpQkqqzFVhVo2iy6zUgan6zDxovk1MtmM+mR1N0 tO2t5VqIHRnzzk6XQHiS8pLHFIvAlA+cQmq3JTLoP/F68cDi048tePA+gINEddlEB1CF +iIk9w+lql3oZDeVYCVlXuRj2ECAE3YhTxP9sLbJgkIWP8mI0b4VIHkjBDaSixtlUwU/ j+J/jV8ZQFEJ3BPm/iju4H2EEH1x594rOy9Ot7zOIRxvbYV6BwTiJ5O6DZD3+IPOiGji wIRQ== X-Forwarded-Encrypted: i=1; AJvYcCX5lj4rHSKcFa3Z+OMmG+EX+IoncvVrlkkzvGF69mk12Q5337nkUni99WibeCFcfZZEonkdlPmUn3KnQbq682aWBNSARwg5/FkkTFRK X-Gm-Message-State: AOJu0YyBASHzVU1B1OUdKrScDjG51AkH+rxbnDoQntDtnfH4q+eJqKw3 4a0Gq0ndeZl8pnmu6OyALctT2MFwDlZRy/y6SeKxtJtxWwOu3fd9AjQxIsQL++I= 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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