From patchwork Mon Jan 29 17:40:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13536102 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 41086C47DB3 for ; Mon, 29 Jan 2024 17:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ceVoYgEK+vLhjpYieoZ4m7lsbrx1pxbkZoUSJaQMD18=; b=SDV2DyXgXiv8DO LleF36+suNu91HbSKG/nhVFjS1v7LfzZmNPiXjBdGK+r+LGByB/mteniup/YE87CZaOL9bycF9fF+ 6HIuFkBtBH2Rv7YplZRrJ8nuRYKNX0pnoS/1TemYqniNRkzl3HL9oaF+tgMYXuEntRgSKiSU/3iA7 FIwul5FzRdBsfwCgZFFvHH0y1ZMoJHzm2/xQjSagU7hn3V00Q33CROpVmmjt3LmTPl4/b3Ddtrp51 LozIFpT3icneC6xqlWNqueFUpkV65OmGuHDWYoXkPc4yhdMESYTvbs7nAZaOZ89OwnRKxw53UTngK /udHnyDgcTiuXxBUwtZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUVe3-0000000DlWz-0goR; Mon, 29 Jan 2024 17:42:07 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUVdz-0000000DlTt-1YJ4 for linux-arm-kernel@lists.infradead.org; Mon, 29 Jan 2024 17:42:05 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a35c0ed672cso153358266b.1 for ; Mon, 29 Jan 2024 09:42:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706550122; x=1707154922; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dW6z0PXAWbDu11OK6iP//ej1RhU41xLpgjvot5fMaQE=; b=sVknqyRhQh8eH4iMy/4oNzoyuRQoizkfzidVdQwajb5m5AZBv9mcb3dlFMlfVwiIzF p4kncfZQPR5+dQrdWLNNCPs+8Csu7xKP+JqNvSXkxjT9AVe17VZOKJrpRzIqz/IAa4iA Agr4SIDAppII0+QTD0Boj5nAjL8VimU2opoOgLQFhN6/IEmTZdrnmqDqv/5Gl0z8Rl3r qIYq2ReeARK3NVjTkQZFHPoV2976OEjObKpNU3XAXKD9i6Syy7byzEKZJVihMdq+J/6F JsXD4/kgheF/wWixMnxAHM77TO6ylHbOP9DYp5Hd+VjSYwR8vrKNA9Xpd4yf/bzhSa7q TGmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706550122; x=1707154922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dW6z0PXAWbDu11OK6iP//ej1RhU41xLpgjvot5fMaQE=; b=WdjQUdQMnxIqjzjJA/0M4PhmYm+2FEGFrbpztq/1FJNX4Igau5h4v9H7zsQUyunXPk 7i5Ffrn6A7SxfvKAaSK4HRVr7CCHl3Q3te+AdSrhCXIHcFVCssIFFZPzOAxaEfc6loJO zj8rrPQj6cPy/RC9PmCDsZ8hhURRo7vZnraAvcdpEelJD0Sx0HLv/Ds8Px8aGSN4Dj0p yerBwV30xrKJV2lekR/4uQrQij3wyvwttQbAx0xXreOJm1/6Dm+ytCFCA13vV2MXpFGE kQZNkrI2bvrOvthoyflynoaAOMGVqwuwq3hloLnrl9gZELpHWDvFcQ3NQPKxb6aSWBA5 1DdQ== X-Gm-Message-State: AOJu0YwpfwmddH93cJa+7xnZR9BjBv0xMcqpZDbT4eVihdI+ixpHQmQE 2PtYCoSjFSNkZOkWub3JEciCN4RSLZUVJb7U2/0FOQ60LcE7tj+KZ4p5VdSRBUQ= X-Google-Smtp-Source: AGHT+IGQ8e2FWNHxELPwatwUT3bo8Bx6VSPbCMJYPKKibK6j01f58ONbLlB7UTfvvWYS8Z7nfN96mw== X-Received: by 2002:a17:906:4951:b0:a35:361f:f961 with SMTP id f17-20020a170906495100b00a35361ff961mr4292389ejt.54.1706550122068; Mon, 29 Jan 2024 09:42:02 -0800 (PST) Received: from puffmais.c.googlers.com.com (94.189.141.34.bc.googleusercontent.com. [34.141.189.94]) by smtp.gmail.com with ESMTPSA id qx25-20020a170906fcd900b00a311a360433sm4237765ejb.143.2024.01.29.09.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 09:42:01 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= To: peter.griffin@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, tudor.ambarus@linaro.org, willmcvicker@google.com, semen.protsenko@linaro.org, inux-kernel@vger.kernel.org, alim.akhtar@samsung.com, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 5/7] arm64: dts: exynos: gs101: enable cmu-peric1 clock controller Date: Mon, 29 Jan 2024 17:40:08 +0000 Message-ID: <20240129174151.1174248-6-andre.draszik@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240129174151.1174248-1-andre.draszik@linaro.org> References: <20240129174151.1174248-1-andre.draszik@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240129_094203_515092_A0CEA31F X-CRM114-Status: GOOD ( 11.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the cmu-peric1 clock controller. It feeds additional USI, I3C and PWM interfaces / busses. Note that &sysreg_peric1 needs a clock to be able to access its registers and now that Linux knows about this clock, we need to add it in this commit as well so as to keep &sysreg_peric1 working, so that the clock can be enabled as and when needed. Signed-off-by: André Draszik Reviewed-by: Sam Protsenko Reviewed-by: Peter Griffin --- v2: * merge patch #8 from original series version 1 into this patch, i.e. add the clock to &sysreg_peric1 in this commit & update commit message * collect Reviewed-by: tags --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index aaac04df5e65..e1bcf490309a 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -429,9 +429,20 @@ serial_0: serial@10a00000 { }; }; + cmu_peric1: clock-controller@10c00000 { + compatible = "google,gs101-cmu-peric1"; + reg = <0x10c00000 0x4000>; + #clock-cells = <1>; + clocks = <&ext_24_5m>, + <&cmu_top CLK_DOUT_CMU_PERIC1_BUS>, + <&cmu_top CLK_DOUT_CMU_PERIC1_IP>; + clock-names = "oscclk", "bus", "ip"; + }; + sysreg_peric1: syscon@10c20000 { compatible = "google,gs101-peric1-sysreg", "syscon"; reg = <0x10c20000 0x10000>; + clocks = <&cmu_peric1 CLK_GOUT_PERIC1_SYSREG_PERIC1_PCLK>; }; pinctrl_peric1: pinctrl@10c40000 {