Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp946421rbd; Thu, 13 Jun 2024 02:04:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDE5EW+rPVJDiYiCvoaCrJOTz20suYdVXpWIcxbzjKIV6I/Cj9BQ2ku6NHzXFPbqHwO1JTm8C1+GSaFxNk5wChA5llLO31Lp209NnpDQ== X-Google-Smtp-Source: AGHT+IEJ/L6A4+khV1iLCRCfGvCZEzadToGLwbSHrR4P66EXJ1ox6zTCKw4SEzDPtwXrCoZKyKAz X-Received: by 2002:a05:620a:28c2:b0:797:a96f:72c6 with SMTP id af79cd13be357-797f600c009mr416689485a.24.1718269485277; Thu, 13 Jun 2024 02:04:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718269484; cv=pass; d=google.com; s=arc-20160816; b=ifMMfZM+OfY7mFFBGCW1e2VkflQ9QMBBDSplbA0ROWKwLbB9v0qa+16JDOA5mOS7O4 KtlrWvRMkzw6Ks2jFKzGo9z4ah/HMAz6FrROz/Qgq0ibcnzjsTB2DgxBQ7Sb+K3T8h2O Q+S3lWIg2SJTLlfR2ee3DrQ2KzqXfQWAeWm4hWgH78CHB9LrgONHuhzzxNIUp7ntSH3d O1v1Xe0UtVRL8IxxvwRILRzEFQl+utqm5yJSvUhLtAMo4k+DRw/lzwb6d8m4UUKSpfhm 7W5zaEt3rAGtAEgVooIzy6thLrKMchnma7/x0JW4kQyYLDDDQlakxNQ4/7PQiQF/gQFb z5Lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=0eA1sXoPzlJDy1NTJKWN6Wp5FWbVIxxhC+wH9/qzD2Q=; fh=Pk3QtoFc24xJ3EpxryUDQ43c0vyjBYrJN4A1YI4lLKg=; b=iVJOtFXcNHir3RO434Ij/cR1KN97cC/xEBeESwIKAl0pkh0i9AHKDStFnxSwuBhB/M pDRDfAzhnw77yJkSw+gKGUA6018w9Gk2XsuOZq43D+Xpds2cSFnPruY3hqmle9XylG1o tKK7L2VAEERI3psA8PhuNb40TSDC6dA2kygaPQNaKnNYpxDB2pqXznoCWfQbJ8mv7ixu nzopxETKFjZo6ytcsyd21ZbS8Rv4SBy0AL5LRXlnsevtVM33Bdxqn0jxs12VDL+OMNg2 BpbjlFXRkUQckyUozA0fD8dX10FovJ64r3B1f1A7ryayxlcrmTEc17NuM0fP7AcN8Wim XBJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=cpo8W4V9; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-212910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-441f3129861si9743981cf.790.2024.06.13.02.04.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 02:04:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212910-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=@salutedevices.com header.s=mail header.b=cpo8W4V9; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-212910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com 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 054941C24313 for ; Thu, 13 Jun 2024 09:04:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99E7284D39; Thu, 13 Jun 2024 09:03:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="cpo8W4V9" Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) (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 0C21C3209; Thu, 13 Jun 2024 09:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.89.224.132 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718269426; cv=none; b=j6Nbu5+/CXPIXLqI+A7KO3aF4aR3ASqBT9KrLQbnDX9dT5mOv8JJrktK4oK+lXSVZES59j45iRmtQ/XAzipPyRBlXfCzxJf0RwBfJ5sho9R+Dvrdzw7cHiS/O+dbE+8l4QwiBiD37Ak34sHYn+1LBUe+4WfPeQkueCvrWdglU10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718269426; c=relaxed/simple; bh=nJx/IylAvAXPsNdrYNHuTbnSL6QhGxG2eIRgTDJNKLE=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PIywvmuJ6+NkWxgUrMrrMJACmxAdPGArGoJyvpfsRvvxyLQXdksYAajHD2lHnPliu7yomFzITUmc6IB5F50ZOyk+GLSk3xva2FrG21m2fN+r88bIeJI9RW6VRjhOdHXWmwSfmfqjv5W/LyUxqs2Fp356yEn6oDXLWaWfgB51cwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=salutedevices.com; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=cpo8W4V9; arc=none smtp.client-ip=45.89.224.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=salutedevices.com Received: from p-infra-ksmg-sc-msk02.sberdevices.ru (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id E9AB4120009; Thu, 13 Jun 2024 12:03:30 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru E9AB4120009 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1718269410; bh=0eA1sXoPzlJDy1NTJKWN6Wp5FWbVIxxhC+wH9/qzD2Q=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:From; b=cpo8W4V9eXHR1J54kiJTCFakcjoI/TafsZULXAXcMd0VmwTu1Hne/wsLpD/7yVkif LvKsDHvXeMr8r7rQ8MbEqnUkCGw6uzg031t8bDLuJuqEBSjt0hN7QyhDSJ+d0zK1RL tExrNFiZ79tlNrC3+DBg5MlZdR9sUpma/oxNA/o+euZqWHsQzzZjONoOpkryxgD6og er6btO9JCk8gvtU8QlX5z+lrQWZjiZtH3QoklomuEUMaHdiVaGqpcnppplsaX3HsiH ftq+iobNrEP/KnfNG26umtlD/FjWu1f+pBm2fFT68KGId4LnieUI1rxvSWGyAES59S PuocWvpneQf2A== Received: from smtp.sberdevices.ru (p-i-exch-sc-m02.sberdevices.ru [172.16.192.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Thu, 13 Jun 2024 12:03:30 +0300 (MSK) Received: from localhost (100.64.160.123) by p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 13 Jun 2024 12:03:30 +0300 Date: Thu, 13 Jun 2024 12:03:30 +0300 From: Dmitry Rokosov To: Jerome Brunet CC: , , , , , , , , , , , , , , , Rob Herring Subject: Re: [PATCH v3 6/7] dt-bindings: clock: meson: add A1 CPU clock controller bindings Message-ID: <20240611210007.bzm5vawqgdhh2g5s@CAB-WSD-L081021> References: <20240515185103.20256-1-ddrokosov@salutedevices.com> <20240515185103.20256-7-ddrokosov@salutedevices.com> <1jtti1p10m.fsf@starbuckisacylon.baylibre.com> <20240610111826.im3mz64hjfkxrxhr@CAB-WSD-L081021> <1j7cexow91.fsf@starbuckisacylon.baylibre.com> <20240610124842.mpy4rtlwtwasqf7h@CAB-WSD-L081021> 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: <20240610124842.mpy4rtlwtwasqf7h@CAB-WSD-L081021> User-Agent: NeoMutt/20220415 X-ClientProxiedBy: p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) To p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 185894 [Jun 13 2024] X-KSMG-AntiSpam-Version: 6.1.0.4 X-KSMG-AntiSpam-Envelope-From: ddrokosov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 20 0.3.20 743589a8af6ec90b529f2124c2bbfc3ce1d2f20f, {Tracking_uf_ne_domains}, {Track_E25351}, {Tracking_from_domain_doesnt_match_to}, salutedevices.com:7.1.1;devicetree.org:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;smtp.sberdevices.ru:5.0.1,7.1.1;127.0.0.199:7.1.2;100.64.160.123:7.1.2, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean, bases: 2024/06/13 08:11:00 X-KSMG-LinksScanning: Clean, bases: 2024/06/13 08:10:00 X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/06/13 06:22:00 #25590998 X-KSMG-AntiVirus-Status: Clean, skipped On Mon, Jun 10, 2024 at 03:48:42PM +0300, Dmitry Rokosov wrote: > On Mon, Jun 10, 2024 at 01:47:06PM +0200, Jerome Brunet wrote: > > On Mon 10 Jun 2024 at 14:18, Dmitry Rokosov wrote: > > > > > Hello Jerome, > > > > > > Thank you for the review! > > > > > > On Mon, Jun 10, 2024 at 12:04:09PM +0200, Jerome Brunet wrote: > > >> On Wed 15 May 2024 at 21:47, Dmitry Rokosov wrote: > > >> > > >> > Add the documentation and dt bindings for Amlogic A1 CPU clock > > >> > controller. > > >> > > > >> > This controller consists of the general 'cpu_clk' and two main parents: > > >> > 'cpu fixed clock' and 'syspll'. The 'cpu fixed clock' is an internal > > >> > fixed clock, while the 'syspll' serves as an external input from the A1 > > >> > PLL clock controller. > > >> > > > >> > Signed-off-by: Dmitry Rokosov > > >> > Reviewed-by: Rob Herring > > >> > --- > > >> > .../bindings/clock/amlogic,a1-cpu-clkc.yaml | 64 +++++++++++++++++++ > > >> > .../dt-bindings/clock/amlogic,a1-cpu-clkc.h | 19 ++++++ > > >> > 2 files changed, 83 insertions(+) > > >> > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-cpu-clkc.yaml > > >> > create mode 100644 include/dt-bindings/clock/amlogic,a1-cpu-clkc.h > > >> > > > >> > diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-cpu-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-cpu-clkc.yaml > > >> > new file mode 100644 > > >> > index 000000000000..f4958b315ed4 > > >> > --- /dev/null > > >> > +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-cpu-clkc.yaml > > >> > @@ -0,0 +1,64 @@ > > >> > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > >> > +%YAML 1.2 > > >> > +--- > > >> > +$id: http://devicetree.org/schemas/clock/amlogic,a1-cpu-clkc.yaml# > > >> > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > >> > + > > >> > +title: Amlogic A1 CPU Clock Control Unit > > >> > + > > >> > +maintainers: > > >> > + - Neil Armstrong > > >> > + - Jerome Brunet > > >> > + - Dmitry Rokosov > > >> > + > > >> > +properties: > > >> > + compatible: > > >> > + const: amlogic,a1-cpu-clkc > > >> > + > > >> > + '#clock-cells': > > >> > + const: 1 > > >> > + > > >> > + reg: > > >> > + maxItems: 1 > > >> > + > > >> > + clocks: > > >> > + items: > > >> > + - description: input fixed pll div2 > > >> > + - description: input fixed pll div3 > > >> > + - description: input sys pll > > >> > + - description: input oscillator (usually at 24MHz) > > >> > > >> According to the documentation, fdiv5 is also an input of the CPU clock > > >> tree. > > >> > > >> That is typically the kind of things we'd prefer to get right from the > > >> beginning to avoid modifying the bindings later. > > >> > > > > > > Could you please share which documentation you are referencing? I have > > > the A113L documentation, and there is no mention of the CPU clock IP. > > > > You should get in touch with Amlogic. > > > > Okay, I will double check with Amlogic and back with accurate > information. > According to a statement from an Amlogic FAE, there is an error in the datasheet's CPU clock controller figure. The FAE clarified the following: """ The d5/d7 clock source inside the A1 chip is not supplied to CPU_CLK and is instead used by other peripherals. Therefore, you can connect a fixed frequency divider (div5/div7) to peripherals in A1. The CPU control only supports fclk_div2/div3. """ [...] -- Thank you, Dmitry