From patchwork Mon May 24 18:27:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 12277407 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9689FC2B9F7 for ; Tue, 25 May 2021 00:51:11 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4CB6C613BF for ; Tue, 25 May 2021 00:51:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4CB6C613BF Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=svenpeter.dev Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=wshz38v13Y+KteEguIgIoGZBhwd6jo9lFrLOx5gmI0k=; b=KAYDj762r6Th06 qDvKBzymtVYaglULh8dpMOnfi1/fsD5xhDNWKJUAxdcl5NotMnherfly9fviI6n/YrgBAayTC03uZ EsfWTsSbtz244cMaY3HZl66TX2TMqYJCfodEDs77u/n7a3nHxOuL7EI0oynDdWyVwnS09V2pjyDTi r1NstUHbdUbe3uSmBL0Qxq+bcogh8NcgFRoEz9u+2ZyD22W21Pjzi9tSbO5TNpeubpuY/TDarTM1N +LUd5mqeAy7NbXvuwpftLhPUiWoVZavTJIn0DLG/wi1Q6pqFJbR4IV1gIhQIeeJdTWA+B6ZbQoRFc RLRodCmsx4QWjbBxeGfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1llLFn-002dS1-C3; Tue, 25 May 2021 00:49:06 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1llFJ8-001SKV-1D for linux-arm-kernel@lists.infradead.org; Mon, 24 May 2021 18:28:09 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 4765F581E77; Mon, 24 May 2021 14:28:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 24 May 2021 14:28:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=2fewIY8SSeOIN MWuX04BZLhEUB7cqd8i9hwPLOWHdeY=; b=r4g5LIrUfm4HTwFGDPybjTlZaIJoC u0g4bgplBwxMKrR0W2ts+TzDqCGMiBjPHqGMkcLgkZocztyJfERxVKTJsIusONe3 LrZoCtN5gEwc3yoLDBelZOjGAeHyAFrstz9k7sn1Hcj6MTKkgM/TRIhTSiD32C3I ACDYN/lQCEz3DGEb1rgGrcBoqWSfeR7DHL3QBUnkQ3PJV8brIRL7lmOuQPIaZn9M /eVWRWDanRwrms6hKKWIQLfDhXkjVEKxLgy9Nm2IBex3SlV18MRfhOAUPyZVTALK W6xQartIELHA+dgGKYf2g8GrJ74JbtvgwtaJjcvJG/Ao0TvS2mBh3BRgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=2fewIY8SSeOINMWuX04BZLhEUB7cqd8i9hwPLOWHdeY=; b=Bdh4cKCJ 6B/+t4L2ERzwEv/DNZle7PnXB5ogDZA2XAkZQ94VvVJIgni1HmtzXyEEwnWj5t7/ mO1vuJEmRYnVxx7TW/27y6gG0gkrvAQKxKg1auxUmrEBcT0X/XcREFj7E1g8w+nP YpK0ZI+gdwXANayau9Ku4aMw55+94tIw0BD0jQmRLE5//HGWYwypTQ2MQ91vR4+f tkb8E9miSwjhtyA02JA8EsuhbhMDS5rt3bLMc+nHlNG76oYTebDOMOYFQFq31/LY 3v3QlN1KQniM9Ks0fGAzfpItStX0Bt98I2hwv4QoEBdNzHaGRcappmPCDH1O4+Mn 254fyMc821sEDw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejledguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhvvghn ucfrvghtvghruceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrghtth gvrhhnpeetvdekteeluefffffhkeetteffgefggfevheeileeufedvtdeuffevveelhfef jeenucfkphepudejiedrudelledrvdduuddruddvgeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsvhgvnhesshhvvghnphgvthgvrhdruggv vh X-ME-Proxy: Received: from photon.s7r42.com (ip-176-199-211-124.hsi06.unitymediagroup.de [176.199.211.124]) by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 May 2021 14:28:02 -0400 (EDT) From: Sven Peter To: devicetree@vger.kernel.org, linux-clk@vger.kernel.org Cc: Sven Peter , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hector Martin , Michael Turquette , Rob Herring , Stephen Boyd , Mark Kettenis , Arnd Bergmann Subject: [PATCH 3/3] arm64: apple: add uart gate clocks Date: Mon, 24 May 2021 20:27:45 +0200 Message-Id: <20210524182745.22923-4-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20210524182745.22923-1-sven@svenpeter.dev> References: <20210524182745.22923-1-sven@svenpeter.dev> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210524_112806_184600_DEAC30FA X-CRM114-Status: GOOD ( 11.20 ) 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 Now that we have a driver for gate clocks add the proper topology for the UART. These are already enabled by the bootloader but are part of the clock topology used by devices yet to be implemented. Signed-off-by: Sven Peter --- arch/arm64/boot/dts/apple/t8103.dtsi | 36 +++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/apple/t8103.dtsi b/arch/arm64/boot/dts/apple/t8103.dtsi index a1e22a2ea2e5..b7c85b800efd 100644 --- a/arch/arm64/boot/dts/apple/t8103.dtsi +++ b/arch/arm64/boot/dts/apple/t8103.dtsi @@ -120,7 +120,7 @@ serial0: serial@235200000 { * TODO: figure out the clocking properly, there may * be a third selectable clock. */ - clocks = <&clk24>, <&clk24>; + clocks = <&clock_uart0>, <&clk24>; clock-names = "uart", "clk_uart_baud0"; status = "disabled"; }; @@ -131,5 +131,39 @@ aic: interrupt-controller@23b100000 { interrupt-controller; reg = <0x2 0x3b100000 0x0 0x8000>; }; + + clock_sio_busif: clock-sio-busif@23b7001c0 { + compatible = "apple,t8103-gate-clock"; + #clock-cells = <0>; + reg = <0x2 0x3b7001c0 0x0 0x4>; + clock-output-names = "clock_sio_busif"; + }; + + clock_sio: clock-sio@23b7001c8 { + compatible = "apple,t8103-gate-clock"; + #clock-cells = <0>; + reg = <0x2 0x3b7001c8 0x0 0x4>; + clocks = <&clock_sio_busif>; + clock-names = "clock_sio_busif"; + clock-output-names = "clock_sio"; + }; + + clock_uart_p: clock-uart-p@23b700220 { + reg = <0x2 0x3b700220 0 4>; + compatible = "apple,t8103-gate-clock"; + #clock-cells = <0>; + clock-output-names = "clock_uart_p"; + clocks = <&clock_sio>; + clock-names = "clock_sio"; + }; + + clock_uart0: clock-uart0@23b700270 { + reg = <0x2 0x3b700270 0 4>; + compatible = "apple,t8103-gate-clock"; + #clock-cells = <0>; + clock-output-names = "clock_uart0"; + clocks = <&clock_uart_p>; + clock-names = "clock_uart_p"; + }; }; };