Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp207570lqo; Wed, 15 May 2024 11:53:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYV2ohaxuFzYUGeS19YN01yWtjwyDvxhpLrOGyTChY51CUJV15ufoOK6h4Q8+ntl2fmKIKofKaSCZSpHNusAcIQ+NyneG6fF2FYmJgCg== X-Google-Smtp-Source: AGHT+IH3UeVpJApqM8Mn18D5sYjLD4W3QicFEep3EXXDdrDLseNSEgTGFx0WSR87vstMeGb2f7yl X-Received: by 2002:a50:9b06:0:b0:572:a1fe:7d0b with SMTP id 4fb4d7f45d1cf-5734d5d0603mr15191303a12.7.1715799186386; Wed, 15 May 2024 11:53:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715799186; cv=pass; d=google.com; s=arc-20160816; b=hugiBxiAPHwcOErOx7CAxIpJM7TBVa23DeUcht4gii6IzROYIsM6ibroiMba2trVqY LhF8IoKemmfsen5ZEeDtELpQSWN5TSmTrSVIdQbZsP8dI8hEkdKcmXI0L3e5GToZqhNy GdR4E56O3wEgfggFu2ujIzmzaKvJxbkMX9xOuJgAMwAUGyrpPsiAT7Y4A2cG8lOrSde+ R+LR5fRsuuG428k1sGaj82sGHPTCLKQDSgNPsQ0Hgr0Nb29STII/icsWUlORcc82GLio TRrA0L6sAJDtaI2eZbGx/9MVmsT3gN4UzZy9fPgt4F+LZUdZ1R20FIKm/0YXyAEWSIxF I/Xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=dEkOR3f8tGPYQ9pEgBWJ395ioI8MCRgvyk2IP9Ogv6k=; fh=WDsf9wjWz9HQKG+kuWYAX0F8tp1S/OZY3frRudDBDkI=; b=nwe4bzkaIwfVZWjgrpMhZu7StNnMI/+1BIMYGMq4kUCLeB97VIXGvbbD56loyFrGqa YrQxJB5mEmQr1rag75WVX8yMh+gMc0rWYopSp0fryP5Gg/xU/eNmunN4uOxo2V8qHNN5 OOTPCrHbuar75O9xtopsl1qTFygYQYGDrlqdDKCPvMHAw2rHKI73sWB+u6E1JVZRPoQ6 CoCmnbASrNZ0ndeNjZhKuvMWIsXiu6BVXYOC0y1CvRnLNLwctt4+XN/Wn5T65LlmaaEC KScJTC7q3RPFijQMbwAVuxQBAXr6eLyYz0FG8CfENIx3z8Df43adHfRJAr/Rio7r+q6u 2IhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=RXjyFHzT; 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-180285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180285-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d4565si8036417a12.214.2024.05.15.11.53.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 11:53:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=RXjyFHzT; 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-180285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180285-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E48D01F22139 for ; Wed, 15 May 2024 18:53:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9D8015B966; Wed, 15 May 2024 18:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="RXjyFHzT" 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 15C9C158DD8; Wed, 15 May 2024 18:51:23 +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=1715799085; cv=none; b=epuZR8A6VZEWhFrXfn45FjDsV9SBIZKEmJvqxYuB9vZ9XCy2k+d49PUd5FsAqi75xbU3PUBbNTr2F+721LTxvFkgsnEn3IGY+js5emsFSduVDvS6TP3Ix3bdDiKLcWbg+8dVk+pR13WLIcyRaU1/EJscIkiRURmXO+6VGRgLMUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715799085; c=relaxed/simple; bh=s1gSRTRN8RC4DZJ7091W97G4Pt7G5bXFCayo/4ya2FM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WH3jJZe/1Yn2/vlsYC3ymDojRu4hVM4GKwuBIHhiZdKsOAMI/PM+ldv8vIiRz9RmO7Vdk3u8VEgiZJjMBqaWD7g+OuHnaBe9cWhIItYOTvuglW//IKN1t0UBx9HJ0elGZEkqm9cnE+kg6ye2vkWmN6pDhDrG79IZPGNQtkRecs0= 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=RXjyFHzT; 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 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 96E08120030; Wed, 15 May 2024 21:51:16 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 96E08120030 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1715799076; bh=dEkOR3f8tGPYQ9pEgBWJ395ioI8MCRgvyk2IP9Ogv6k=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=RXjyFHzTbckKM6eioFbwBi+dkvI8zzjRh5n0lZKoMCKx0wfvitHJ8SLENG2MqUwnv f7unpOmr297gQfsWh3Uwza9iO8aAsCKBY/4jahkQIKNtGX3y092BYJW9D6YH5exM5i mhQU3KADmUwO9zhxK5ZpZfMd0AIoKFv4uNpK4dma/onHrohBbLdFyHaRS8u6euxJK/ LLZ7zAEIqAlcY4WuebGqysB9z4T9Biup3uuvIFlocwfZmOVfj9JfO2o2Rv0E4wqGPJ tGPha1bdh6fdv8AKwo10Yz2koOI4Xzd2wHWn74WtwCZckVNN73OuT93feYfyiP4bDg ZQc4p+kofBWSw== 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; Wed, 15 May 2024 21:51:16 +0300 (MSK) Received: from CAB-WSD-L081021.sberdevices.ru (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; Wed, 15 May 2024 21:51:16 +0300 From: Dmitry Rokosov To: , , , , , , , CC: , , , , , , , , Dmitry Rokosov , Rob Herring Subject: [PATCH v3 6/7] dt-bindings: clock: meson: add A1 CPU clock controller bindings Date: Wed, 15 May 2024 21:47:29 +0300 Message-ID: <20240515185103.20256-7-ddrokosov@salutedevices.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240515185103.20256-1-ddrokosov@salutedevices.com> References: <20240515185103.20256-1-ddrokosov@salutedevices.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: 185260 [May 15 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}, {Tracking_from_domain_doesnt_match_to}, 127.0.0.199:7.1.2;100.64.160.123:7.1.2;devicetree.org:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;smtp.sberdevices.ru:5.0.1,7.1.1;salutedevices.com:7.1.1, 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/05/15 12:35:00 X-KSMG-LinksScanning: Clean, bases: 2024/05/15 12:57:00 X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/05/15 13:12:00 #25231738 X-KSMG-AntiVirus-Status: Clean, skipped 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) + + clock-names: + items: + - const: fclk_div2 + - const: fclk_div3 + - const: sys_pll + - const: xtal + +required: + - compatible + - '#clock-cells' + - reg + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + apb { + #address-cells = <2>; + #size-cells = <2>; + + clock-controller@fd000000 { + compatible = "amlogic,a1-cpu-clkc"; + reg = <0 0xfd000080 0 0x8>; + #clock-cells = <1>; + clocks = <&clkc_pll CLKID_FCLK_DIV2>, + <&clkc_pll CLKID_FCLK_DIV3>, + <&clkc_pll CLKID_SYS_PLL>, + <&xtal>; + clock-names = "fclk_div2", "fclk_div3", "sys_pll", "xtal"; + }; + }; diff --git a/include/dt-bindings/clock/amlogic,a1-cpu-clkc.h b/include/dt-bindings/clock/amlogic,a1-cpu-clkc.h new file mode 100644 index 000000000000..1d321c6eddb7 --- /dev/null +++ b/include/dt-bindings/clock/amlogic,a1-cpu-clkc.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ +/* + * Copyright (c) 2024, SaluteDevices. All Rights Reserved. + * Author: Dmitry Rokosov + */ + +#ifndef __A1_CPU_CLKC_H +#define __A1_CPU_CLKC_H + +#define CLKID_CPU_FSOURCE_SEL0 0 +#define CLKID_CPU_FSOURCE_DIV0 1 +#define CLKID_CPU_FSEL0 2 +#define CLKID_CPU_FSOURCE_SEL1 3 +#define CLKID_CPU_FSOURCE_DIV1 4 +#define CLKID_CPU_FSEL1 5 +#define CLKID_CPU_FCLK 6 +#define CLKID_CPU_CLK 7 + +#endif /* __A1_CPU_CLKC_H */ -- 2.43.0