From patchwork Thu Feb 1 16:11:41 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: 195378 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp266708dyb; Thu, 1 Feb 2024 08:16:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQpm0IjL/nTbyzhBpeAZD4qwp3FuB7KtckY1nj7rvR1Y/70kAMAUck5z7qwEB+Ib9+O9dB X-Received: by 2002:a0c:e003:0:b0:68c:7c52:684c with SMTP id j3-20020a0ce003000000b0068c7c52684cmr2725000qvk.24.1706804166293; Thu, 01 Feb 2024 08:16:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706804166; cv=pass; d=google.com; s=arc-20160816; b=MD45fN7DRdqDWo2mCVGd+ASsKNWIQBYtv3nNRsDCTmu2TjKSTPoIEzMbjMxOs2l6ki rpaQaXwkMuFWO9fPfhuZR1in05rFTEKFczyvGTinRXBZm3ABoDMgfq5+YIYqlg+cui1x rcNr2ld8vaDJ7+52NRlH8w47RXvVBHOnNUr/X621EVQxJkDlPhRK0VGStAdQffVcJvm1 I46F4r9PiXVxVXsgHYgabm+afQ3JrTCuQfwL66auVkAIYhrxvD6pgonneRheZaJt5T22 7fxePA0weDQeojnQaQjRjh+asOptk/7aswJoaZJcSKimUADvKpiosG+wIHL7unWlaN61 MVSg== 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; bh=R3e/ST4U2wBhhutsLLQy14BiuOoshMmvKqzzyJfq1nY=; fh=rEY+w7rAaN9Hk6eZsLmtfFeWSao24sNfc7lwORqJYFo=; b=Y5dZfEtNneLkEMfQyrS0EUFv9uh13xV6GS6dliJ/Dn0ksOmf8pj5jiMhvyujUXTBx+ zUdj4ZWX2ESdFUQIMUKEQO6QTaOczGKzMz2Hz0NmfGaG8nAV6v5A2IvrYQUJA/78BjG3 ZmE9hoxyv6xOu/SL8/pdwp25sYy8qI4E20vteafwWSQgdZ1WsLhIdTedFPa1poAqZ5t0 w96aUkjZtmVYLsWxLyhFwzbRFpNhCQTaaADMN6EDNhDqdgBwAtL8pPmAIp476TEuXCDN aUb0+NYKk3RqBzUt9nIEWWnTac7eaYGlHHLkXaeeaTphIHG82GXGvWbX58FEHDrvrkwf KGWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Eh6QzoSq; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-48484-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48484-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCVxsHW/SRo5VvoJo60TNIlacf15vzms5e1b/zSiQDr5lqPb49hOw3AmRpBz7i/Ue0sdI+P+l30xosXkFI51sgwNlKXcZw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u9-20020a05620a454900b007840529eb55si8474405qkp.773.2024.02.01.08.16.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:16:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48484-ouuuleilei=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=@linaro.org header.s=google header.b=Eh6QzoSq; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-48484-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48484-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 05E591C21815 for ; Thu, 1 Feb 2024 16:14:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB468161B42; Thu, 1 Feb 2024 16:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Eh6QzoSq" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4E5577A09 for ; Thu, 1 Feb 2024 16:13:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706803997; cv=none; b=MayVfuaeC85Sbi+1qMswENTgIWCRaS6agR1AowJR8j4tejbgR8r0hwP2syN2ayUHkijEUIBlkXXP1zZ95OX0J+J/KTCkEewrmqkfmrskzFjZ6yPcfRDjnmkZVe4sUCYSKvK3CG+4IYZuEcJ6cw1o07Aj177tI9WIyvUGO6rnNds= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706803997; c=relaxed/simple; bh=iB21JC633KeTBy+UMkMipOhAFPyI+D4BRVNQBmbMJTE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YXCfhNEJDQ3R4RNIQFenSfw1iJ1wjtWWuES+8mxZ8Wg4+F9IJSH0o/56S/m4FO5zzrpzgUY6B3oNtZA0V4YcbTO9Kv89E6xnArrVk6MxR2+/mXSpskKviNcJZKZaRqcVALszBpI6P+ENIZTRVLzb1hDRu9r4DnOaI6IxD7jxpiQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Eh6QzoSq; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-55f15762840so1306287a12.0 for ; Thu, 01 Feb 2024 08:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706803994; x=1707408794; darn=vger.kernel.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=R3e/ST4U2wBhhutsLLQy14BiuOoshMmvKqzzyJfq1nY=; b=Eh6QzoSq8y8AwGyBw/Yw0TPesO7rbcFI2Dy1Qb3W6u5BLhyQa/tdZf9PcAWRNxWSe4 5pVinZyBY/LoUoCbCjFD06WSDtITmv45ePM+B99HdogPNFjRM6w8lb5GCcW7QGoM6GF+ P8bbL0rJ+FpLiymyIjnEoB51dTX4YUV1m8kBxo99OyfrCqg43MYT/zYk3BcZ7jJwX+20 zB+s5lmgC2QnMWt6k+dUwG0aplEv649WBZNmI2X3kGgXrP76KYKPbJf0Y63cd/dQJyb9 xFCVGGSEzhloMEE728VZ1qhGIz+2voumBa2tKc5K5PzljF6+RHM1aq9rjOPayb3b6h7b bTbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706803994; x=1707408794; 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=R3e/ST4U2wBhhutsLLQy14BiuOoshMmvKqzzyJfq1nY=; b=iIyNU2pLhw2Q1NtfYRRlxpksKiixSTzhB6IZXf5OB4oJV8lNb34bWQv4BAW0uA7wBl 0Gi1Vw3BnSCI9R8ZXoQ/8pFlmXTieq3CIOL3wDFkDlan+gfSCkDsQXk72kYASjEKTnl+ VJUmD0dmnN+U1yCoI7l/O4oQhkVGdz4bCDP2VW5CzSQh8MPjNNS6+5uemc2loDEENteE txRUuwKx/2269dlPtbigGiIDxOdqfXMEVEWHcRlhMnTCgFbmgkTIddgwk6Q+JDRzuhsn F0C9XfHofWF1fIe4jCU9oZiNYJip9U7UnMNV/aoPKlxn2+oKJp/3eutFfVarBxr0uim7 FvfQ== X-Gm-Message-State: AOJu0YwnuH0FFcJyTaGNDkL82JS4jLiBIBz6zA48R5XJ51wkuGD4urkm ieEyxANv5GbIYQuvFmuzfh6DxhxsuuS5zKvehns3Hd4m7TwGTYiWFum/ZDUJh2aAWpIKlBmvgW7 V9TM= X-Received: by 2002:a17:906:a855:b0:a35:6299:a349 with SMTP id dx21-20020a170906a85500b00a356299a349mr3950503ejb.32.1706803994025; Thu, 01 Feb 2024 08:13:14 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWj6VTnS2OaBlc06Z1q6xX1ptZKAlwrtHkxd0h3rfrSSzzlLKxXZhuhytkML9UUr+cqKHmh0npqFP/xFaHPidYz2SgQ0D++wvkgyfgg8FVKoA4cZBgXQ18JxS3KpMbRBOy7n+b5oHXA+ysrPxieh+dwkBwgbYeG67eviiEeQZewqIEnEcq68bK5eDjiSNwItKFJZErreTc/4kS3pZHbVlJtwlq50kOpaCqfWCR+8Vayo7Ym5NTYvRBSql0OZbXMm9g3brBdi2N6gPC2Uj+D656Qanax+f8hBZqbvJeDE6jvC6vj4JZGjHNVwVUULsJ6Vqp4MdhfWJV/qD7MvAXoBw9tDwbzyfpjdDNGibbG4vnoAHkutxbBx0P4e5+OMtzjyaOes5Nx4CLHDHML7WO9xpjqta6zoGIy7+alN4dbGQQsuAMkwsyMs3yc/1l8Rv0p99qby22fj4HaZAAS+NiVkiRF5aRWsYO5D71hu8nS0T4gPZ2XTJ3ILqWE18kCnQCkiZ+4i3OxVt9D7a2Q9/Y+huVLhjF4Jnz8wZplWVobPs/4UXxayuOv822YeC8vbZ7fUJIA/7Il+tB4vUqBdCLgys7Pky3ZTPb6JsGuwEI+ain/1FzsUlFTAcTTYe2eSTa3GoFfwHMc8OnTfFASmot7NhDWpJkCkRtVs0y+L3liZh/fwoPCLITgYA== 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 hw18-20020a170907a0d200b00a3600d7c2fbsm3449288ejc.176.2024.02.01.08.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:13:13 -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, 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, =?utf-8?q?Andr=C3=A9?= =?utf-8?q?_Draszik?= Subject: [PATCH v3 5/7] arm64: dts: exynos: gs101: enable cmu-peric1 clock controller Date: Thu, 1 Feb 2024 16:11:41 +0000 Message-ID: <20240201161258.1013664-6-andre.draszik@linaro.org> X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog In-Reply-To: <20240201161258.1013664-1-andre.draszik@linaro.org> References: <20240201161258.1013664-1-andre.draszik@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789713885760051830 X-GMAIL-MSGID: 1789713885760051830 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 Reviewed-by: Tudor Ambarus --- v3: collect Reviewed-by: tags 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 {