Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1245392rwd; Wed, 7 Jun 2023 13:19:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ot1L5hQLw4mQ0WaVp4m9SrhfZROwB88FAczyfeyzS5AAxAW3AH0DR725l4WgOS8FdbbNF X-Received: by 2002:a17:902:aa05:b0:1af:a2a4:8386 with SMTP id be5-20020a170902aa0500b001afa2a48386mr3416479plb.38.1686169170621; Wed, 07 Jun 2023 13:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686169170; cv=none; d=google.com; s=arc-20160816; b=d5nx3HVhbE1yeLvyqWoqhFvy7R1JneYbGh3rDNF+wHMOnRneC70ZSep0dCljn18V41 AQCPo6MXCn9RmmOY55gNc4jU1Hwd9tudMf8g2kUmIe9Qkssw2d1dpXfGJi2T/kKX54F8 Z1YTWfR5tKq7ivTLTxTaeNGxjm1ILhxYQmqLE6FGLPSEHwLo3xjWsJ9qyPn135kYt4Qj GM6viWSbiy6jHPaRl6pUyM7cpO8X1/WAuuR7LR1dDG1uj1QEU9JGtfVH+GNlsbQK/Kc3 EeTX/dBNL8JBcMfFbBnZS0e0HcaD6byuJbKLFsnCi3qC4KpGv+bc2wjXQMlQ9GOv+i5x I3uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RNbIjESD+IyeiwtGHiouI+gIk7LwD56yfGxWD9gzuYY=; b=nh+vsE2TjlIa9Ir6kOD8KcBI4Z2l5ozNOdDsmBqt7BUIAmN/nMR4O6oD0LLstxYepI YN3qilqrG2o/Sppis0Y/Z1IzoZYrFH1VabRPuRXrQ2N7+fMKl3QpUTZlysX4lx9dLAv+ c262K4kSQFiRKmrMP4bHJiSDeIzQylO8zZRw4u7764Eg0yD0ZheAld86w+NTOig4g7PD h0jIl78s3jTtdXLYqd4LBAWybjosdXsvUa9JITXsuHUG9T4PsXbMxXnZorW7Fr1GkJoQ om7zFwyT/bS+61hZSuD3WSYjiuZ0ZA+TpGalo1Vwpiq+BM4gxjNe4HSfc7uiYa/ltW97 JZxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=ety0yB4L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a170902dc8100b001add3e4ee84si9286245pld.132.2023.06.07.13.19.15; Wed, 07 Jun 2023 13:19:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=ety0yB4L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232243AbjFGURE (ORCPT + 99 others); Wed, 7 Jun 2023 16:17:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbjFGUQ5 (ORCPT ); Wed, 7 Jun 2023 16:16:57 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACE741BD6; Wed, 7 Jun 2023 13:16:53 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 521065FD6E; Wed, 7 Jun 2023 23:16:51 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1686169011; bh=RNbIjESD+IyeiwtGHiouI+gIk7LwD56yfGxWD9gzuYY=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ety0yB4LR209Ia4Tpu08KUqoQQDhbQZ+t2TyoGNxGor2mgGlh5hOLVskd/puVaQKA ItakKRYwyFkzq5qGb6H3nTb02RtnQmbRZzRcLmFaSt9hMznVqEz/6LGOBKct7xvofk 8/XlN9HqYakI2nqi49c0GsYg8hGwiHU4y0dfxYOsjt1Dl13YZKi9cf5r7dqzrte9XL KSi3VXTGXfG662hLgeYiF8N0u4iIXx7mAdKRe1GGcoxMwaSx3zt+PwKoFd2CUUavar XRsaLv5zTQZaw+O4Q2knvowWPxZ3lgio6xQbC8R8Dpk/vz68+lH4+bWu/Ol3+JWRH+ fFQ72fbQsvg1Q== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Wed, 7 Jun 2023 23:16:51 +0300 (MSK) From: Dmitry Rokosov To: , , , , , , , , CC: , , , , , , , , Dmitry Rokosov Subject: [PATCH v1 1/6] arm64: dts: meson: a1: introduce PLL and Peripherals clk controllers Date: Wed, 7 Jun 2023 23:16:36 +0300 Message-ID: <20230607201641.20982-2-ddrokosov@sberdevices.ru> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20230607201641.20982-1-ddrokosov@sberdevices.ru> References: <20230607201641.20982-1-ddrokosov@sberdevices.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/06/07 16:55:00 #21454472 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds clkc and clkc_pll dts nodes to A1 SoC main dtsi. The first one clk controller is responsible for all SoC peripherals clocks excluding audio clocks. The second one clk controller is used by A1 SoC PLLs. Actually, there are two different APB heads, so we have two different drivers. Signed-off-by: Dmitry Rokosov --- arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi index eed96f262844..a24228808c9c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi @@ -6,6 +6,8 @@ #include #include #include +#include +#include / { compatible = "amlogic,a1"; @@ -126,6 +128,30 @@ uart_AO_B: serial@2000 { status = "disabled"; }; + clkc_periphs: clock-controller@800 { + compatible = "amlogic,a1-peripherals-clkc"; + reg = <0 0x800 0 0x104>; + #clock-cells = <1>; + clocks = <&clkc_pll CLKID_FCLK_DIV2>, + <&clkc_pll CLKID_FCLK_DIV3>, + <&clkc_pll CLKID_FCLK_DIV5>, + <&clkc_pll CLKID_FCLK_DIV7>, + <&clkc_pll CLKID_HIFI_PLL>, + <&xtal>; + clock-names = "fclk_div2", "fclk_div3", + "fclk_div5", "fclk_div7", + "hifi_pll", "xtal"; + }; + + clkc_pll: pll-clock-controller@7c80 { + compatible = "amlogic,a1-pll-clkc"; + reg = <0 0x7c80 0 0x18c>; + #clock-cells = <1>; + clocks = <&clkc_periphs CLKID_FIXPLL_IN>, + <&clkc_periphs CLKID_HIFIPLL_IN>; + clock-names = "fixpll_in", "hifipll_in"; + }; + gpio_intc: interrupt-controller@0440 { compatible = "amlogic,meson-a1-gpio-intc", "amlogic,meson-gpio-intc"; -- 2.36.0