From patchwork Mon Jan 29 17:46:04 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: 13536132 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 56B0CC47DDB for ; Mon, 29 Jan 2024 17:47:39 +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=xUBQnC8fXKjsdf en9YfDhKBjmmcIghVjMvLOaUH6VOFxPo9s8ShcYtI/qRDKm9gp7TmFgYndCM5lN4rXg7Uiewf74tx GtzMjCeLoz3XH8pz767JWCVAfJZNQFccCDYBPTf6deLwC+q39Rl706pHE7ags5fHjSUNT5lxmyIN+ fvLI5JxIClVTI0l/MZPIeU6zQEFERU0OSorioUWm5CLt9qkuuyyr1lfXMedryB/2k1Y1uoQUo9axX t4QuQ2Q8IHrOJr91VmkkCxoM1DLCIJTEBytWyc+IwM2Uhk/XiHoB3EakczWfUBmNEQlySvP3A926N Yt3hOa0RuhIHu9BtJQfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUVjG-0000000DnWV-2dVg; Mon, 29 Jan 2024 17:47:30 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUVix-0000000DnMM-38yr for linux-arm-kernel@lists.infradead.org; Mon, 29 Jan 2024 17:47:13 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-55a9008c185so5228336a12.1 for ; Mon, 29 Jan 2024 09:47:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706550429; x=1707155229; 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=S16U3fm8gFW+dUdivPRx1Btc1lpS7vDyestw1VFVE9rQaf9bDAm4S/au/vQwOO3XkC s8EbDGyi4jk3aTbV6Mmw8HTL+HfHp+3a+IP2kIbb1z3naGrCcgm9AymZ9kpynJsKaawJ BEMLnxWHG7lyueE3kLL1tokpmETNwKTWB7VpYrtfDSbQYXiM8yGeoT2vy7Uy5Gkr8u8f nSVj4NttSl5Fdt8hfdpgtYfl3mCyxQkci/olrGjHKKGooBn4+QZRd1LiyblNZs/XTowz M7lw9r8ZCsH8o2NXvnqkTnikyB6kihZDNE6gTQue5VY94ls8x6yYFe+kE2lNbZ2hwHtq QEkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706550429; x=1707155229; 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=bUG+msbNZGMh6Aik8EEafQ1DYFP5Y64Bh6xvKy7J1KLWYXMGma1UZbzD8ta+/UuIQo 9OtwJtQEWWMLTrujj2Q+WGrqM6o/FII9lEg6Gu2mr38H2dLMBnWyrhn1jCl0y28WOieN YBypQQv/zshm0k/rxizLcNg1lv8Fd5dvNJgrriJBJqiJQ2YQSh6nV+dk3akxtO5qTNCX pcmrTcyGHOsWyki1haLSySQwueTh9gz1kXVTejsBK5gKKM5UazaYPRVgwb2XuUBe8Svb ciIx4SM79eyNaS7kjyPVqBbmVEPHQS+u39v1NLYTfoWxEtIl1wm/MDbch7QsACz9SL+k d7fA== X-Gm-Message-State: AOJu0YxvPIXTwg7GYWc+9wdOV8W0mP1sWE08XKYCaO0q03K+kyw4Hxrw tQghuA0nb3n8inl2lComUaP+/lP7Z4/XqcXqHWFDvALhBA0ASjkh80hoc3XUdSY= X-Google-Smtp-Source: AGHT+IGt2KTsJ4YXmvFPqTryS1s4+N4fhHWr0IqAevITSyWhnndE8QsGNTLb6yd3mrXG8aDB1ZBgaA== X-Received: by 2002:a05:6402:22cd:b0:55e:f980:4666 with SMTP id dm13-20020a05640222cd00b0055ef9804666mr2798706edb.9.1706550429315; Mon, 29 Jan 2024 09:47:09 -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 u10-20020a05640207ca00b0055f08fa9286sm1000999edy.23.2024.01.29.09.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 09:47:08 -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 Subject: [PATCH v3 5/7] arm64: dts: exynos: gs101: enable cmu-peric1 clock controller Date: Mon, 29 Jan 2024 17:46:04 +0000 Message-ID: <20240129174703.1175426-6-andre.draszik@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240129174703.1175426-1-andre.draszik@linaro.org> References: <20240129174703.1175426-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_094711_833952_A138BBA8 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 Reviewed-by: Tudor Ambarus --- 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 {