From patchwork Mon Dec 23 12:55:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Wilczynski X-Patchwork-Id: 13918886 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 CE00EE77191 for ; Mon, 23 Dec 2024 14:06: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:References:MIME-Version: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=MO/UzB3ak//9YqaGdcptSzCwB6mg4syfUuAh+jspdx8=; b=3FSBLw+rdPsw0c G1jy2sUkU5mUvesV0pPje0cL/SBFwBAoZT+yuK+xAgXvnvyDIwK3PvgIzkAWKq8lz4XMCCzc5wu2p XBgOVEzTeuK60WzRKhDal8Q0UB6iVYlK0/631Nh7XfmlOXKXGngbHFYl6XBjyy3jByT57i9n6Xn9q NrobyraN+B1lyeVvnbVCh50aEm+CYCIVFbhW1gtRf7b/AxgQgKpRMfasZxxKktsZTQOKJhu5KfuWK O+t3YTzClfpwXrYyZgJrdtx3Q54bz3FZ/kBXcdYMyxsfMbSjTUwHMCnEtZIhuawksKuaWlSHX8aHQ FzGw72dZFqBESL1r1bxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tPj4X-0000000A7Hu-2ZPQ; Mon, 23 Dec 2024 14:06:13 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tPhyy-0000000A1Nj-18tR for linux-riscv@lists.infradead.org; Mon, 23 Dec 2024 12:56:25 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20241223125622euoutp01685bdb33a7257764df39c49b6823d717~Tz6OVrQ6U3222032220euoutp01F for ; Mon, 23 Dec 2024 12:56:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20241223125622euoutp01685bdb33a7257764df39c49b6823d717~Tz6OVrQ6U3222032220euoutp01F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1734958583; bh=TT5PYViS2FlrtkYrikHfHy0j9KFZRyYdlPXAvfagDlY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=egYVZrbFipoyRjd1IDqYXPgWKxwBmJjDzjz9W6trIFavsmH92IHUTF2KwiAahi90Y s/Kt3SwlfnJFYuxjCbGV9r3mCb2a6271bBd3EP3d1elql891X+ish0EHkZj41lGsyp x2OlYxDojcz/kXtDSHrn1DUCvrKoCFyqtgXe9v2g= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20241223125621eucas1p267c72a8ae7ee3f39044d785ff93048b3~Tz6NA5os91741317413eucas1p2T; Mon, 23 Dec 2024 12:56:21 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id CB.C6.20821.5FD59676; Mon, 23 Dec 2024 12:56:21 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20241223125621eucas1p17ecf251c74bc60e69323afe1ffc0c8fb~Tz6MpBcue1526215262eucas1p1n; Mon, 23 Dec 2024 12:56:21 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241223125621eusmtrp1f35668defb4e97d2d7e21ebcd9fdd466~Tz6MoA7fS2059320593eusmtrp1L; Mon, 23 Dec 2024 12:56:21 +0000 (GMT) X-AuditID: cbfec7f2-b09c370000005155-9e-67695df53a8b Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F9.83.19654.5FD59676; Mon, 23 Dec 2024 12:56:21 +0000 (GMT) Received: from AMDC4942.home (unknown [106.210.136.40]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241223125619eusmtip2ab38953511df3eb9315de3ee195d00a1~Tz6LRqXkh3149631496eusmtip2G; Mon, 23 Dec 2024 12:56:19 +0000 (GMT) From: Michal Wilczynski To: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, drew@pdp7.com, guoren@kernel.org, wefu@redhat.com, jassisinghbrar@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, frank.binns@imgtec.com, matt.coster@imgtec.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, ulf.hansson@linaro.org, jszhang@kernel.org, p.zabel@pengutronix.de, m.szyprowski@samsung.com Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-pm@vger.kernel.org, Michal Wilczynski Subject: [RFC PATCH v2 15/19] riscv: dts: thead: Extend device tree clk with VO reg Date: Mon, 23 Dec 2024 13:55:49 +0100 Message-Id: <20241223125553.3527812-16-m.wilczynski@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241223125553.3527812-1-m.wil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Vrz7qHWJk4mA8xCjBwawkwntIKDNdiDclsbIqtSg/vqg0J7X4 EKMp0N0TmaVEk/OBCS6vJN7QzMDU0MTM0sDU0sxYSZyX7cr5NCGB9MSS1OzU1ILUIpg+Jg5O qQYmd18xpVwV4fW7uabviiq6ft950fwHe6dcaJZOds81uL5kraXuhO92NnzH12fMPKFvP2Pt apE17G/EK5+H35P1sNl+ftkSrpK+d4+Z/W+s/6cmPr/Y+pbSTJWEgFVfn9q43fn74Lhe4jvV UOe91522Cgaz2JadYQ8V33njs9Nj4VVq+yte9PGvZtW4alX/f9d7s5IqB4cJ3q77Dl16u+FH wJ1Fyef38KblPj/EWyscuWfezETTn58mOrXkF/XfeDqhO6B2Rcr8e+3qq1hf/GScHF2TaG/+ dK/JzUvCnc9PnP//3vOXwg93W7mKh5ODL6/vDHZzKlb0YMnRfbir4ANzzpu2pzfrAuo37mZJ aNtmqcRSnJFoqMVcVJwIAJkrhoi4AwAA X-CMS-MailID: 20241223125621eucas1p17ecf251c74bc60e69323afe1ffc0c8fb X-Msg-Generator: CA X-RootMTR: 20241223125621eucas1p17ecf251c74bc60e69323afe1ffc0c8fb X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20241223125621eucas1p17ecf251c74bc60e69323afe1ffc0c8fb References: <20241223125553.3527812-1-m.wilczynski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241223_045624_584483_D9676AF1 X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org VO clocks reside in a different address space from the AP clocks on the T-HEAD SoC. Extend the device tree node of a clock-controller to handle VO address space as well. Signed-off-by: Michal Wilczynski --- arch/riscv/boot/dts/thead/th1520.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index acfe030e803a..d823b6da75df 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -484,7 +484,9 @@ uart2: serial@ffec010000 { clk: clock-controller@ffef010000 { compatible = "thead,th1520-clk-ap"; - reg = <0xff 0xef010000 0x0 0x1000>; + reg = <0xff 0xef010000 0x0 0x1000>, + <0xff 0xef528050 0x0 0xfb0>; + reg-names = "ap-clks", "vo-clks"; clocks = <&osc>; #clock-cells = <1>; };