Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp219110lqo; Wed, 15 May 2024 12:14:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVnj+NlQDqFV7KY3ALr2krykyHWwlhvZr81K0tU30Rqn7XM892BIPRJp2rGeDU9HidawrneBYaVuWiLcnJdQRgQCSK9IBTzq6D4RSgZw== X-Google-Smtp-Source: AGHT+IGTfV21ygrApVUSkK8kVFdiHtdsCwPUxPemy61Brmea51feaYJxIVgna3oovpuhQSA8TZ+4 X-Received: by 2002:a05:620a:3bd6:b0:792:8e98:d03a with SMTP id af79cd13be357-792c75f4c30mr1821203885a.48.1715800479875; Wed, 15 May 2024 12:14:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715800479; cv=pass; d=google.com; s=arc-20160816; b=g45SLr1fbP+hi0Mz9JSJ+uGPFhzi7oxbh3fb4F1UvNHX4zur5nBQldNMtjNboMwkFb 3/cLt/c13Zrm9XNA9Jz/3AQPfKq1us+wHiinwGU7fUF+zFMUdA/SBA38wiuPsWEd+aid ExuhFb73KoyG8cvesSUniGhhY5ezEAt/+JhLpA9XRDxXiwQbw0WkYzr1uKJ1D6o3TgKa 0JFBI/elBfWyO8v4g8eoIpSuoAKYct4jIYod318p3CPQLhuf0EA2HLPT21ndQN9omp4s i6LayR/TVZBX+Y7KubtT+0AAEyf3AFfQ7qNuUfcESgfBnM1sWq1K1v8GPQ3EhQsN4DoT Z7UA== 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=Qg4pXQQl5Lta582hsxBt1jkX2lzQKNXAMhqzfSLdzUI=; fh=KSEGIJxg/6OVy8p2IIO3wekU0WS6gL+n5pcGYZtS44U=; b=lHYqvnxj00RLS7cotXzlvQwKPnpEs6dBJBiZO35NRx7n8o9Hfj4apDRXnvR8fr3Bzr XslhkqP4n+5ARGXPcDXV6vFJSEI8d5R/22FIWWf+b46F3h2zvFpVZfIQVKnJPrYgClO2 ajqUg9h/FbXTRHlhLQnsspjHidd8+TZIB0XPn569uJCl5+3B3QefyFkubg5VJadWOaFi QbZ08HHgqexLKdXTxLhfEq4N4u7hsvsoYuBJxlSLoTlcBVkCrwdB30mNA03pDoEr/Qik BVQ1e3euV2IQF+l/k5Ydy4psrgHH9uFY9W+SadE2jjLNxbw8ytXwuS0XU0CsFELd2wZO gYnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=mi2ZikeU; 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-180303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180303-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. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf364f6asi1424497085a.628.2024.05.15.12.14.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 12:14:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=mi2ZikeU; 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-180303-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180303-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 987341C210AE for ; Wed, 15 May 2024 19:14:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D92015B0ED; Wed, 15 May 2024 19:14:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="mi2ZikeU" Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (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 AF2A91591EC; Wed, 15 May 2024 19:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.18.73.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715800457; cv=none; b=rHjgWIjFkTVNSfZks5rC8xUzIybogD9WvZ5uNxEpY4QL+NO9TTAcC/EBnbxd1pDi8Z7vtRTNoJ0M8tgUtJqAW6rBMe2bZK7G3r9XTsCawAn0Hs6wUt56uluxwGoUPlRioCGhmnc3UQbvzbEjovOq/DTH5Vm6B4N0MWkq3T+VYD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715800457; c=relaxed/simple; bh=uSjslWhdNNi2fGiyV9jejXP2u12pUMnKo3RJ0zTp1yA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rkPF2uLMGEYoOW9AFboP9AAusbeCSG9lBw1r1dezB7XDUg0VANoPoFO0Dmwzmzdnx74QL+yd3oiBKXvqeSqMYrzeS/v7ZveLuV0RKUAVYiRgg0ACdEs66p24Bw1XJLMlZxM3KMc2Vh1g6xi5enF1FUroIUakoo7NTB/vRPuf+Nc= 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=mi2ZikeU; arc=none smtp.client-ip=37.18.73.165 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-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id C59C710002F; Wed, 15 May 2024 22:14:13 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru C59C710002F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1715800453; bh=Qg4pXQQl5Lta582hsxBt1jkX2lzQKNXAMhqzfSLdzUI=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=mi2ZikeUjgQUCsFbc5niTeo1F3w8peifiOyzC2luRNDcUzO+qKAMgELfaogBvFLGZ //Z+ntr69Mi1dIie1tVpYeLtDuTTtPfqh0+wDDA3IjY9rDT1OtMgNtPdwMBaQqLy2R dPtzK0SMdZO8cdZb5cTpEhTvAnW4UtHeiedpLh6qEVwlpftPwHNpDsWeKqbZVOY066 5TJfM7YSyjq2dhfnWe1wKXfkmyASFtCmxvrQKRePMekya3ZfP6PocE3N7MKYdyprpl AZR04HhoHCYmFigFhBrgexgfDB9SJVFaQo70YhHC1OySGGgp+6pMdATV7wbkOBmn+a UWD5v3+2gw4BA== 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 22:14:13 +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 22:14:13 +0300 From: Dmitry Rokosov To: , , , , , , , CC: , , , , , , , Dmitry Rokosov Subject: [PATCH v3 2/4] arm64: dts: amlogic: a1: declare cpu clock controller Date: Wed, 15 May 2024 22:13:51 +0300 Message-ID: <20240515191405.25395-3-ddrokosov@salutedevices.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240515191405.25395-1-ddrokosov@salutedevices.com> References: <20240515191405.25395-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-m01.sberdevices.ru (172.16.192.107) 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_from_domain_doesnt_match_to}, smtp.sberdevices.ru:7.1.1,5.0.1;100.64.160.123:7.1.2;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com: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 X-KSMG-LinksScanning: Clean 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 The Amlogic A1 SoC family relies on the CPU clock controller to generate CPU clocks, serving a crucial function. It has 4 inputs: main oscillator, fixed clocks and system pll. Signed-off-by: Dmitry Rokosov --- arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi index feed2bd7ae48..afb5d7361177 100644 --- a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi @@ -3,6 +3,7 @@ * Copyright (c) 2019 Amlogic, Inc. All rights reserved. */ +#include #include #include #include @@ -94,6 +95,19 @@ soc { #size-cells = <2>; ranges; + clkc_cpu: 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"; + }; + spifc: spi@fd000400 { compatible = "amlogic,a1-spifc"; reg = <0x0 0xfd000400 0x0 0x290>; -- 2.43.0