From patchwork Tue Oct 29 10:39:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854851 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 B1CA9D2AB33 for ; Tue, 29 Oct 2024 12:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nAG53wtz8oKYi+8ALTcdS4fgknUjRs99/WlbWTdaX44=; b=u8T5+b1Zvk+eYG11Mup1sxIhX7 e9nVXESxKBBIikl4kkm0hHIucKhx5W/nOSt5n7mBPeXXTwhqchJFzv8ty52bDfiqwEsB0m7vsa7jp hOsSDMDs13IvjFaGCMZelQADUs8SRksD7bqPBL+VXgs2J5FlwlsrHMh9KldzTSG1uKWQqUp/02n3Y 2iMyeFXwym0ksgdn+6ZK60qh71WX3PyNJjMnCZIFeBJ1SRQvoplAr0j/dY0vff34m4nZbnPD41lz+ PxVUU9fnNLV8mxnFqCq6/neR9ntU33IRQKtXkESiLe9i8G8SGNgXyBVdN9AQwg/MoOBJGmU+cf3hA MmEzC7dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5l7u-0000000EN6g-0K8i; Tue, 29 Oct 2024 12:15:10 +0000 Received: from mxout2.routing.net ([2a03:2900:1:a::b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdb-0000000E46a-45jQ; Tue, 29 Oct 2024 10:39:51 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id E4F226021B; Tue, 29 Oct 2024 10:39:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198384; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nAG53wtz8oKYi+8ALTcdS4fgknUjRs99/WlbWTdaX44=; b=HgHT8SI09081mzFVgeTV1W1ugGCj+0n4BbNumhT3MdzQKQ4LDcRecnUcaWn1q7o2IIo4kB VhVmP7ThXSu53Ra5zNkM9CkqvzGxeUN2KSvzYx/PZ1iClattoa0jnfnkWTe+yITDmPH1Zg 1UnjUyB5SLIDpH/3vNImObPZS3MmAbc= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 4D6C936037C; Tue, 29 Oct 2024 10:39:43 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 01/14] arm64: dts: mediatek: mt7988: add missing label for apmixedsys Date: Tue, 29 Oct 2024 11:39:20 +0100 Message-ID: <20241029103937.45852-2-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 08f7d28b-29f0-426f-acbe-c3b9b6e7ff85 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033948_330085_04DC6F82 X-CRM114-Status: GOOD ( 10.06 ) 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 From: Frank Wunderlich Add Label to allow easier referencing in dtsi and board dts. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 46969577c87a..5b93c2c843e0 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -100,7 +100,7 @@ watchdog: watchdog@1001c000 { #reset-cells = <1>; }; - clock-controller@1001e000 { + apmixedsys: clock-controller@1001e000 { compatible = "mediatek,mt7988-apmixedsys"; reg = <0 0x1001e000 0 0x1000>; #clock-cells = <1>; From patchwork Tue Oct 29 10:39:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854716 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 436E6D2AB1C for ; Tue, 29 Oct 2024 10:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=siS4Ij/9KFfzlVXtrs88d9k+J5svJ3v1XrN4lg+fWhM=; b=XtK2oieqtfX+8IaZo06boLYV0x MCueTvH7waAMLLG25X5kaxtkqroebaDUmv32nFCmyu7Nx+NAhwDCdsqHbO39WskQ0MIcUvY4V8eQz 4ehIHdAIQ/RMIEkF6PRk/Kvj1PuV0+DOjht7nQuLlWAcRI99+M2Nk2lKVxeGZ9wFg8wCHLKDPwGyx RkP53dC3iuPv+9PBhWY6PEMh5kx/mbB0vFVS+yoHA9hKNM8cEvflwZxbw/fzmgMZonhUuB3zejNMh o6///DPpdRClnnPC0GghAaPdsHOZuGv1KOvo7t4SLGhLpmPMXuj3ioQ+cDAxmGxyTBd6xwKeFxeab 0h8XTIKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5jnU-0000000E6Oa-3818; Tue, 29 Oct 2024 10:50:01 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdb-0000000E46X-3g6M; Tue, 29 Oct 2024 10:39:50 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id 840354045F; Tue, 29 Oct 2024 10:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198384; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=siS4Ij/9KFfzlVXtrs88d9k+J5svJ3v1XrN4lg+fWhM=; b=u0XgfU04tzoXWArG3S64Qjmpqi8GKyM3rJkkQvzk74md7Em82v7uynqJFWeBo1YGdA8GCy /PvY7aKFVl5rDTeB38du3nEDfqBpAOkkfNk5l2AoSBiHEIPm+rLHsp2yoSijzZoc6hiP4Z uoZtw6QMiPXhnKHKx5c95dwn85Ryzt4= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id E22293603D0; Tue, 29 Oct 2024 10:39:43 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 02/14] arm64: dts: mediatek: mt7988: add labels for i2c nodes Date: Tue, 29 Oct 2024 11:39:21 +0100 Message-ID: <20241029103937.45852-3-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 4603ef82-d7cf-4f9f-9a19-43186a268245 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033948_126559_E76443C1 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add Labels to allow easier referencing in dtsi and board dts. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 5b93c2c843e0..0aa789da5592 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -211,7 +211,7 @@ serial@11000200 { status = "disabled"; }; - i2c@11003000 { + i2c0: i2c@11003000 { compatible = "mediatek,mt7981-i2c"; reg = <0 0x11003000 0 0x1000>, <0 0x10217080 0 0x80>; @@ -224,7 +224,7 @@ i2c@11003000 { status = "disabled"; }; - i2c@11004000 { + i2c1: i2c@11004000 { compatible = "mediatek,mt7981-i2c"; reg = <0 0x11004000 0 0x1000>, <0 0x10217100 0 0x80>; @@ -237,7 +237,7 @@ i2c@11004000 { status = "disabled"; }; - i2c@11005000 { + i2c2: i2c@11005000 { compatible = "mediatek,mt7981-i2c"; reg = <0 0x11005000 0 0x1000>, <0 0x10217180 0 0x80>; From patchwork Tue Oct 29 10:39:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854855 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 75E78D2AB33 for ; Tue, 29 Oct 2024 12:18: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9/KolqS0YYWQP0oixitj94Pxcm9KCNLC3CIXSUPwlb4=; b=eDxhsMHEBUZUYrnwH9I6pY5nxB +VFNEzwUvw79+Y40+h0uLcZ7ryX8wnvD3WwRA/gspKHQnDCQ3YLjAqudD/Y8mhexqXQpO3frtzVW1 QzvGo1tjcW9iI19qoaHdeISxmw/1TI5aWw5HqL0Tcx6es9adosmRfX8bfV/jezE00P7hBJCxDCcBs 2FGXdwCGfOGnu2jvRXDhp/Crhp/+FZ90Xk36kwQLpmlpUmYTPu1ITwaA/JKvjxoHUjsxqaErqT4tv tadPIWkB4TcksDQ0MjkxgZX0KsTpdjtxMhaq32smjpKRu/nUybKNhppCnGB4+QhR58zoDYzmKb6OZ Qif0Cf+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5lB6-0000000ENlf-30r3; Tue, 29 Oct 2024 12:18:28 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdc-0000000E46Y-21m3; Tue, 29 Oct 2024 10:39:51 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 1F899100947; Tue, 29 Oct 2024 10:39:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9/KolqS0YYWQP0oixitj94Pxcm9KCNLC3CIXSUPwlb4=; b=wxhqG3QsBQclIRalcvgxZPfIZNd/HWojdWrKBZkxleWOwndX59kkgdiGg8ilZKyChTGlwd CUU+65n493IfSzS5XSYBOiYJA5AK18ttW2xIEbx1kzkRNCmKBW+hzPUfYOzw8eipST/Qeh 2pYhUx41BJJlkaHfvWhG9aFsUqX03So= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 7FA053600D8; Tue, 29 Oct 2024 10:39:44 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 03/14] arm64: dts: mediatek: mt7988: add labels for usb nodes Date: Tue, 29 Oct 2024 11:39:22 +0100 Message-ID: <20241029103937.45852-4-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: e21543fd-2459-4976-ab15-093cffde658a X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033948_700895_F5234149 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add Labels to allow easier referencing in dtsi and board dts. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 0aa789da5592..6d2ea317f9b2 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -250,7 +250,7 @@ i2c2: i2c@11005000 { status = "disabled"; }; - usb@11190000 { + ssusb0: usb@11190000 { compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; reg = <0 0x11190000 0 0x2e00>, <0 0x11193e00 0 0x0100>; @@ -264,7 +264,7 @@ usb@11190000 { clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; }; - usb@11200000 { + ssusb1: usb@11200000 { compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; reg = <0 0x11200000 0 0x2e00>, <0 0x11203e00 0 0x0100>; From patchwork Tue Oct 29 10:39:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854717 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 80CC9D2AB1C for ; Tue, 29 Oct 2024 10:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6MnpLRRV6D0qYtjvT6N/RJ0yKKwRAeg0UPLRteadPcE=; b=F3vrYLcLaLULNkHTdlxcd0xlIc wfo66md+eTY0GHUVAWOUrjG97Y9p40R7zwF5FYJuFaW75TDFw6ADsmTaTnsFy9526Ha1Vv4UaPjKR 2UHG3XFE6lTkGrwJ/VKRUemvfMqvD5wPht1fOOxwsaUM5KLK+8/0FEALTYm1x+jfzdzZpqTYTJSmk YeWjyTFe5CvboxH6vM1MQ4+yv6bP/kLgMG0nbu0Wi9h36WdD9qqFqc+UHnb0PjwsrWL4yoU4d3KWV 01m12E4Dtj1iYEgqSUE/JtwJtMHiGqOpXtpgzv8zrJcKt4KhsYQyheIcrfoxfuWUFtT4GHdiOxBB7 A1yjf5RQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5jp5-0000000E6n5-1kaa; Tue, 29 Oct 2024 10:51:39 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdc-0000000E46Z-2oPY; Tue, 29 Oct 2024 10:39:50 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id B1765404FD; Tue, 29 Oct 2024 10:39:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6MnpLRRV6D0qYtjvT6N/RJ0yKKwRAeg0UPLRteadPcE=; b=V2Ag1/d+nJ1XUQFIviC60Y2T9ospo5AwymtxtY4KMs8gVFNhcBo2LCVJGfSsiF8/pNKtVa JpNag7NrLDI65v14QLPUoZxURi4U0ns/PLJiPz6xiVEC7jq/AzvYUT9mrVhKEz9zH/IcGv CFlUi/I1B1FNvRr52ehFfqNw7bsN+fE= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 1B0B036037C; Tue, 29 Oct 2024 10:39:45 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 04/14] arm64: dts: mediatek: mt7988: add serial labels Date: Tue, 29 Oct 2024 11:39:23 +0100 Message-ID: <20241029103937.45852-5-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 6858e22b-58d2-40a1-a28f-cb0b77144b8b X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033948_873779_719F7B97 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add Labels to allow easier referencing in dtsi and board dts. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 6d2ea317f9b2..e5e7951b24f8 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -178,7 +178,7 @@ pwm@10048000 { status = "disabled"; }; - serial@11000000 { + serial0: serial@11000000 { compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; reg = <0 0x11000000 0 0x100>; interrupts = ; @@ -189,7 +189,7 @@ serial@11000000 { status = "disabled"; }; - serial@11000100 { + serial1: serial@11000100 { compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; reg = <0 0x11000100 0 0x100>; interrupts = ; @@ -200,7 +200,7 @@ serial@11000100 { status = "disabled"; }; - serial@11000200 { + serial2: serial@11000200 { compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; reg = <0 0x11000200 0 0x100>; interrupts = ; From patchwork Tue Oct 29 10:39:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854656 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 55D8DD2AB1C for ; Tue, 29 Oct 2024 10:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dthOVvsNfRXr3q3blWKOOHKAo/CHNI++jDGd6dc/psE=; b=qXHvPZOyEpONmrWFrd4Q+6xL6t MqUsoZcEJ1LE9S1Q6RFA2qztBINZfIlfwzvCiGxZdSW3TkHuci56Jks0pihjRc9kRQ4FPGeNWxAXF 9Vzb9SUVfr2a8rqPOQ6uhWi99kWj8F+6RO0WCZSYuJEiRI4/LdDMjsK5v5PQ+TTbCeIsxMWvi9Ioo k4h8dH0IqHd+aVN90QpcG+RuW7Mlgip7VsU7kof3Df1JKk6XsrKAOsckQRulDH+Fj584nVmCp36Jy 5qP3oStaDPJAr2lzFynZUCEUSAoD+7z+mK3TxC7SwFuqlETs23uIkn5CCGrWHCZMfc5AoAMSHzVut FhFyzYBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5jkI-0000000E5dJ-2pEU; Tue, 29 Oct 2024 10:46:42 +0000 Received: from mxout3.routing.net ([2a03:2900:1:a::8]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdb-0000000E46b-2ysk; Tue, 29 Oct 2024 10:39:49 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id 5DDAD61645; Tue, 29 Oct 2024 10:39:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198386; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dthOVvsNfRXr3q3blWKOOHKAo/CHNI++jDGd6dc/psE=; b=ln4NT4jPhsriKEo6oFajE03/kX5+a1YyRQ055Tt5u/KzoncMfGcBi3QWu1pd4OSWaV2Zdz Q1NPtC+1CK4RN7BKYrk+G+2Tsz5jhxxPcRGn+8yvVdP6jOMlfgWsb7zU6hPWMcrbm8fTLV XijqEvCSy0z2QV1qIvMJ8lwEoqNL9K8= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id AEDE63600D8; Tue, 29 Oct 2024 10:39:45 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 05/14] arm64: dts: mediatek: mt7988: add label for pwm node Date: Tue, 29 Oct 2024 11:39:24 +0100 Message-ID: <20241029103937.45852-6-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 2f832f17-7fb7-415a-b55d-2c417a14bb51 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033948_016345_D2F5C08D X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add Label to allow easier referencing in dtsi and board dts. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index e5e7951b24f8..0425aec8dacb 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -159,7 +159,7 @@ mux { }; }; - pwm@10048000 { + pwm: pwm@10048000 { compatible = "mediatek,mt7988-pwm"; reg = <0 0x10048000 0 0x1000>; clocks = <&infracfg CLK_INFRA_66M_PWM_BCK>, From patchwork Tue Oct 29 10:39:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854852 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 1BC3CD2AB33 for ; Tue, 29 Oct 2024 12:17:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Rr/RtGMj3Fh0ffteWCfc3vtYrbzu7rRjjzNkbSx1+lc=; b=Bggtts4DUtvCuoKGE9Cvd6An0F uAIlTt4lz0XUTMD1ktB7DRav9NCMxPoUwPWXCrJFTuYojZSwCokOBrJ1OCK9AUszApth9bW/1IdvT Q/h/zKk6sL3GPlPSIc44K1R/fW1emRprirGvyqIUXvk0A6P8jiyG89E00Gr6FYS1rUaaiYf3OZx46 mRYDwPVCyx2aGiSZ7x/4WqlO5frpBX3emLW37DrGllP5G7u75c1sSbXqAAesnrxyblTR/KzHlTiSo EJXGu8MW+phHNx5GMpS2WJAKlnZ0/IGuWcpADA0FZGJbJENJlW32iwbesfjsJVGfdX27ljy1GnQ3G 994TY/Ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5l9W-0000000ENV8-2XXE; Tue, 29 Oct 2024 12:16:50 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdc-0000000E46e-20Wd; Tue, 29 Oct 2024 10:39:51 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id F0DB41012C7; Tue, 29 Oct 2024 10:39:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rr/RtGMj3Fh0ffteWCfc3vtYrbzu7rRjjzNkbSx1+lc=; b=DX7MikwG3UfzTaI+ImYeReqWJdNVaytkwMIlzU6VMC8g5XsXV86QM9VOrQPAfc2XfIyUEQ +8b+MvqqUYSzDOAR+Q0rJ8+V5kDi05P+ANMlETITcf5ybN4XQOt6ZqTXcUVyNUFYiA3RaV OLg0/32ts/XgmyUCDYPflW9fmZOadN8= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 5D87E36056E; Tue, 29 Oct 2024 10:39:46 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 06/14] arm64: dts: mediatek: mt7988: add label for efuse Date: Tue, 29 Oct 2024 11:39:25 +0100 Message-ID: <20241029103937.45852-7-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 99ba07da-9a11-4cff-ac8b-29daa2217353 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033948_689754_E142ADEA X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add Label to allow easier referencing in dtsi and board dts. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 0425aec8dacb..777067b326b2 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -285,7 +285,7 @@ clock-controller@11f40000 { #clock-cells = <1>; }; - efuse@11f50000 { + efuse: efuse@11f50000 { compatible = "mediatek,mt7988-efuse", "mediatek,efuse"; reg = <0 0x11f50000 0 0x1000>; #address-cells = <1>; From patchwork Tue Oct 29 10:39:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854726 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 B2368D2AB1D for ; Tue, 29 Oct 2024 11:02:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/I+n4zk0HprnXJxl1E8/AMoicAPVbZXERfZKvFjQfOo=; b=J4F0NTB3k4Rd6VxiE1W47RKKY1 llIwwCH0EGbbmHeF1cwgNB7v2/4TKHCaX316ncUjqzCwRfM1bJO9hYHBxHYmX+Qk86iRpqSWsK3hm r40JytPGeM9laKPfd0PATGDBgbyVshzZiAxWBgmXQr97L/FnXT0vZXOiD7Upx4KaxxlhjjwXd9spW Ekad0w6bHS0O2VbDXDlwXYi3YAGKZ2Ur+0/VQFSqk5Wi6diKmPI+irteIlRDf5FYR3lD9XdUX0jXN 6G+Wh8akCFlnCyDsRUEhUbNwG7XEY6EPK6II9vvw/ohiErKck1zKKqZDsqwqGiG7u5ACz+R9HmwGO Jbl45xmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5jyt-0000000E9Xo-3hzI; Tue, 29 Oct 2024 11:01:47 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdg-0000000E49m-2kHc; Tue, 29 Oct 2024 10:39:54 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 87C271014E7; Tue, 29 Oct 2024 10:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/I+n4zk0HprnXJxl1E8/AMoicAPVbZXERfZKvFjQfOo=; b=p8ODP3DhUBjIU4148EQGvGksboZwH87pbNhDCIoGrwDjRk/90VbNWMXSKltBFKYvxXGmWF ryzsf5j4SFqE8DYLaxHo0rbIIvTL1EZQBNo0ddg9qVTQ+KmWPG376+Y5Dtxml/I0/UEb+O FF9fyWPoAz2nuUsx326bR+w6eL9rkUA= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id F3F1B3600D8; Tue, 29 Oct 2024 10:39:46 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 07/14] arm64: dts: mediatek: mt7988: add mmc support Date: Tue, 29 Oct 2024 11:39:26 +0100 Message-ID: <20241029103937.45852-8-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: b606b4ef-e6a3-4657-86e5-a5b31fbcf146 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033952_869632_5869C2FD X-CRM114-Status: UNSURE ( 9.02 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add devicetree node for MMC controller. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 777067b326b2..639c307b9984 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -278,6 +278,28 @@ ssusb1: usb@11200000 { clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; }; + mmc0: mmc@11230000 { + compatible = "mediatek,mt7988-mmc"; + reg = <0 0x11230000 0 0x1000>, + <0 0x11D60000 0 0x1000>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_MSDC400>, + <&infracfg CLK_INFRA_MSDC2_HCK>, + <&infracfg CLK_INFRA_66M_MSDC_0_HCK>, + <&infracfg CLK_INFRA_133M_MSDC_0_HCK>; + assigned-clocks = <&topckgen CLK_TOP_EMMC_250M_SEL>, + <&topckgen CLK_TOP_EMMC_400M_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_NET1PLL_D5_D2>, + <&apmixedsys CLK_APMIXED_MSDCPLL>; + clock-names = "source", + "hclk", + "axi_cg", + "ahb_cg"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + clock-controller@11f40000 { compatible = "mediatek,mt7988-xfi-pll"; reg = <0 0x11f40000 0 0x1000>; From patchwork Tue Oct 29 10:39:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854785 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 C82DAD2AB24 for ; Tue, 29 Oct 2024 11:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7Zqi6Sl+Kx4Ji1QwakjgbRzaeDN7PqxTEdUVl3GZZf8=; b=XOmK6RiGx3oEHAmI1/x81ycJsw oz6aXDQrtqPevaXol/I1aYqMV2ZRdPiFztngbPEJsIVxDuHQAsp9oFyWY8fdtoHN9FPkUMWMlvmsI 9a7UcD98QUCuj451AlKl8L+E5tc3R9xo/5bqMEfwOyx6U47jW8v44kfR2a3tatLktcReCg7sTm8/f TLSk5YPAQ/XoTvtOLDaOO7l+jM6CnoV2GR0hsBsHzgcs+9FjPN54KQIoQS1B/0BsDqFv0eGhwgC8C VnQd8O3A9fTsCqDThQZIsi/q3sG1NCHBBaj03QQGim+hAEYFg38wW9BQ5/dN9/9KLa5rLK+FwGr9i ymchU9ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5klR-0000000EINx-080d; Tue, 29 Oct 2024 11:51:57 +0000 Received: from mxout3.routing.net ([2a03:2900:1:a::8]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jde-0000000E48X-2DVK; Tue, 29 Oct 2024 10:39:52 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id 23B966164E; Tue, 29 Oct 2024 10:39:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7Zqi6Sl+Kx4Ji1QwakjgbRzaeDN7PqxTEdUVl3GZZf8=; b=T4tW4Pjh43l3XljyaRqU9KlcGnR0fhiX2E9UWADtycYVAGuymEwDQK9AL5m4dyWr+zAOR2 jNpJMwSUvdbLtsp56XJyzF9xDuTJIOOqyI1Z+6xv8zmXV/X2Sw6fjO1MqPaHOv1FcyDPRq alwwm7A4KHF+3xfeMhtOiarqJjEjEfE= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 892EE36037C; Tue, 29 Oct 2024 10:39:47 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 08/14] arm64: dts: mediatek: mt7988: add fixed regulators for 1v8 and 3v3 Date: Tue, 29 Oct 2024 11:39:27 +0100 Message-ID: <20241029103937.45852-9-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 351e04a4-f535-41b6-80ef-f6eadcd15412 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033950_739401_C24DDF42 X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add regulator nodes used for mmc. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 639c307b9984..7371cd80a4ff 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -62,6 +62,24 @@ psci { method = "smc"; }; + reg_1p8v: regulator-1p8v { + compatible = "regulator-fixed"; + regulator-name = "fixed-1.8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + reg_3p3v: regulator-3p3v { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + soc { compatible = "simple-bus"; ranges; From patchwork Tue Oct 29 10:39:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854784 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 C1420D2AB20 for ; Tue, 29 Oct 2024 11:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JG70TegBMj/ibFZUxIkrxShKc87NYQy7WkHukok4xoE=; b=Nin0+hiF7nqRp6lU7SPvhnphv4 1sEqs3LlTCIkNaONaVDdhyWsfOxL0ya7xU9dPoncTXHshCG6nvVPkECWYhoWZ44jVXZ4cvylgK9G/ hjTS5Zn/Hh+wTpytU27URDdLPT0n4898yNHiQ1G+8+nOWvO6h50waYeRx+YSzxAi6PUffdhKsLrhq 1fCzgclmq8+XGECMSbzDT7c2u5XZVLfv/B2MpAh0E1728uyqzh3CpXJC+VzRcwjiatDp2osxKgBF1 eY4Huyu5f1iIPFzLVsphKVUUVC0DIG3qipD8TRLIo+DHr9d6cLuFmnaZz0KMJET6FJD0phG4GMPz/ +4mIYB6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5kjr-0000000EIBr-1e44; Tue, 29 Oct 2024 11:50:19 +0000 Received: from mxout2.routing.net ([2a03:2900:1:a::b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jde-0000000E48L-0eN3; Tue, 29 Oct 2024 10:39:51 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id BC3EE60644; Tue, 29 Oct 2024 10:39:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JG70TegBMj/ibFZUxIkrxShKc87NYQy7WkHukok4xoE=; b=O7new4Pb2Nq6S/vobN0VL74FAHFkpDjBzr9klQ48cO3crw0XnNIn0QXbRTpIJYLfOwmVvw YFUFVqyTMXHc0lm3SMYaHGAggtgH0gMjgu4HW0aLZ+u/0JGQDBzPkgJKsAmS6fh4kC/DmF KiIbm7wfOG71mCl7nfo12HGPcF77GN4= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 24BBF3600D8; Tue, 29 Oct 2024 10:39:48 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 09/14] arm64: dts: mediatek: mt7988: extend efuse node Date: Tue, 29 Oct 2024 11:39:28 +0100 Message-ID: <20241029103937.45852-10-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 8e66c03e-5b0a-4db8-be5a-f6e0180b4bd9 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033950_411269_30D12C87 X-CRM114-Status: UNSURE ( 7.18 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add subnodes for efuse containing calibration data for lvts and phys. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 7371cd80a4ff..ed8ce1e6f68b 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -330,6 +330,25 @@ efuse: efuse@11f50000 { reg = <0 0x11f50000 0 0x1000>; #address-cells = <1>; #size-cells = <1>; + + cpufreq_calibration: calib@278 { + reg = <0x278 0x1>; + }; + lvts_calibration: calib@918 { + reg = <0x918 0x28>; + }; + phy_calibration_p0: calib@940 { + reg = <0x940 0x10>; + }; + phy_calibration_p1: calib@954 { + reg = <0x954 0x10>; + }; + phy_calibration_p2: calib@968 { + reg = <0x968 0x10>; + }; + phy_calibration_p3: calib@97c { + reg = <0x97c 0x10>; + }; }; clock-controller@15000000 { From patchwork Tue Oct 29 10:39:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854723 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 55AC7D2AB1D for ; Tue, 29 Oct 2024 10:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jEn9e3Gmbg9qm+aCkqjz6Xik1WTOU1GWAXvr6sZyRfw=; b=2wJzGPkc/xGttDJ2m/K+l3awbK lWeWgad92sv/e8R2zEHru1g8pv04e3lWQppIRl6vr8GhX8tbWhRXf5dn0SbnjhacQV9wSK0O+1DHc SnBTBIrDYXLMYGFOh8tToto8fzx7BTuFQhNqwzvE9G4Gz/52Z3qPWUMTs5yyrEdBxA7Q11b5KT5t6 Xnlj/l0UlZImkQrId+dHrOjfX4cakuyWYnvqR5z3mxjiLN0VBGdpyUiKsNRbYnxSL4X+wclN/X+vI S05NqxAGBTJfLtP2jRThZ6JJhSmio+fmJTTsb04wL3BIKjiBaPFBQk3ZCHGPROszvkRWFCOLWxDjY s8UFTkhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5jtv-0000000E8DN-04fb; Tue, 29 Oct 2024 10:56:39 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdg-0000000E49O-0FAB; Tue, 29 Oct 2024 10:39:53 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id 6089E4051F; Tue, 29 Oct 2024 10:39:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jEn9e3Gmbg9qm+aCkqjz6Xik1WTOU1GWAXvr6sZyRfw=; b=rgXTN+tw5vVYbKuWd3PhDQ9ddTNeXR+wn/nFeZXjY1dUiOswiYa+quyZNCwJjJUkmdMLOP tPoZxDPErukR3B5bELwZW4DLxz/bddvxu+aJ2t4JUwGbVqguNQeFcLHVLEu+BsnIuuwMKq 3fvSxMQ0tOvpVB+GbGR3axQDl24wqPs= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id BE91636037C; Tue, 29 Oct 2024 10:39:48 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 10/14] arm64: dts: mediatek: mt7988: add lvts node Date: Tue, 29 Oct 2024 11:39:29 +0100 Message-ID: <20241029103937.45852-11-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 9cfe9d8b-db7c-4981-b57d-3a085ddbeb43 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033952_270451_DA645B42 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add Low Voltage Thermal Sensor (LVTS) node for mt7988 SoC. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index ed8ce1e6f68b..de9a9ff2edd8 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -4,6 +4,7 @@ #include #include #include +#include / { compatible = "mediatek,mt7988a"; @@ -103,6 +104,7 @@ infracfg: clock-controller@10001000 { compatible = "mediatek,mt7988-infracfg", "syscon"; reg = <0 0x10001000 0 0x1000>; #clock-cells = <1>; + #reset-cells = <1>; }; topckgen: clock-controller@1001b000 { @@ -268,6 +270,17 @@ i2c2: i2c@11005000 { status = "disabled"; }; + lvts: lvts@1100a000 { + compatible = "mediatek,mt7988-lvts-ap"; + #thermal-sensor-cells = <1>; + reg = <0 0x1100a000 0 0x1000>; + clocks = <&infracfg CLK_INFRA_26M_THERM_SYSTEM>; + interrupts = ; + resets = <&infracfg MT7988_INFRA_RST1_THERM_CTRL_SWRST>; + nvmem-cells = <&lvts_calibration>; + nvmem-cell-names = "lvts-calib-data-1"; + }; + ssusb0: usb@11190000 { compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; reg = <0 0x11190000 0 0x2e00>, From patchwork Tue Oct 29 10:39:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854724 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 493FCD2AB1F for ; Tue, 29 Oct 2024 10:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SBdI6EjJp8UowrmiaGoi2Fq0w1WX7yePH0/G5CJ86tg=; b=fuljzxMEJZYFi1GaXRxbaPCG7b EqEkH0QbJoKnZvC/glEMhT2PVf4TLzQ6pIQp9D5oNo8Uxs3x4I5LsfqPFCPFBTRkJNkC7+dox9/2h BSnMOd54agL3O4vr4SEpofsxjVdjN6Q4z4irIYuRSI/V+Pef0c6Q3twlfN8dDp6RmFSJajzNmGBQc nq5lxRO6NVCNWFgsY8CLDSTu7JXPkN7fygroVtaAaynt573eRTnqWdCbCjBfU0cIrUjAaJ2OwhyfM opHEhpnV7kRH8L7u/6mdag3L7q9gxmvj+0xL2cOY5ojCPTr0q37sPGygZpxxAytV7scy2y045i0S9 Kn/fQivA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5jvd-0000000E8cD-3fTd; Tue, 29 Oct 2024 10:58:25 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdg-0000000E49T-0pZQ; Tue, 29 Oct 2024 10:39:53 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id 002E84052B; Tue, 29 Oct 2024 10:39:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SBdI6EjJp8UowrmiaGoi2Fq0w1WX7yePH0/G5CJ86tg=; b=B6QRk4ddbj0ZZC/LxU5uFAqI8NGYdIVNDvDOSHpmeveadWs3FRdR3qg+kbeRhMb9kvZ04I /mxqhWvHivzZmgCZR5qRiMZoA2zq8B2uEdyGgLHC1D3VO0+nwnZrmlpdArbsdHn/isNvDJ R2rQ48EApPPYlIWnyS+mXv7w0ceO8mA= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 64F813600D8; Tue, 29 Oct 2024 10:39:49 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 11/14] arm64: dts: mediatek: mt7988: add thermal-zone Date: Tue, 29 Oct 2024 11:39:30 +0100 Message-ID: <20241029103937.45852-12-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: a237a3f0-1cac-4e47-a90d-bc7df7aaec54 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033952_422309_57D3A764 X-CRM114-Status: UNSURE ( 8.58 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add basic thermal-zone node. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index de9a9ff2edd8..a3a7deda35a5 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -379,6 +379,45 @@ clock-controller@15031000 { }; }; + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <1000>; + thermal-sensors = <&lvts 0>; + trips { + cpu_trip_crit: crit { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu_trip_hot: hot { + temperature = <120000>; + hysteresis = <2000>; + type = "hot"; + }; + + cpu_trip_active_high: active-high { + temperature = <115000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_active_med: active-med { + temperature = <85000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_active_low: active-low { + temperature = <40000>; + hysteresis = <2000>; + type = "active"; + }; + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupt-parent = <&gic>; From patchwork Tue Oct 29 10:39:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854729 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 A7414D2AB1D for ; Tue, 29 Oct 2024 11:03:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kA2523qYUhUEFCv+YtsYoSs5yMA+mmGNCd9m9PrUL0M=; b=vS8+ZCpvoCVjIQ/Li+zsnnAS/m VD+H5GNh7U3GBBKXtE1mbHFa6ApAN+a73aNqVLA8G9TAwycNWqCgTU9SyrT9GgJpi1Z5KZeetzOQD exJcDgZxBbDQrKh1cdAcldlHcAO559IYQPTYrTBOnxAEF/U3F9HnSU7d4duvmtWc7AT2FxDK/gctq Sq3GhqZXk4j21nD/efoMFNq66NmU+pszwQThnoLWcXVtHrLkNVcESeYRrLXf8gJP3TgCFxXuo3KYQ c3eBu5OyEByzp99U/hefUgmKAmbV5IhoExhcbxg6+N+kqbIGt5CWPin8xubKHcbIe00cSES1whk1y gaT6JS0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5k0V-0000000E9xi-1Tg5; Tue, 29 Oct 2024 11:03:27 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdh-0000000E49z-04AD; Tue, 29 Oct 2024 10:39:55 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 9752B101578; Tue, 29 Oct 2024 10:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kA2523qYUhUEFCv+YtsYoSs5yMA+mmGNCd9m9PrUL0M=; b=OYXEJ4mQ/JPue8n7aKICB4zAyGO2GX9YXOOe8gq7FUECVLqCt/BaMKGg1wMS0x+ArP0Ses tluatSuxlWqX6PlDa/qZ0VA/1W7F8lTlSllihDhaqfH8kJGUjxGv9lkYh1dV4x9xPNcJgS RN/QtOI9Qq9j0IWETYaEBjgns3VGT1s= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 0694C36037C; Tue, 29 Oct 2024 10:39:50 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 12/14] arm64: dts: mediatek: mt7988: add reserved memory Date: Tue, 29 Oct 2024 11:39:31 +0100 Message-ID: <20241029103937.45852-13-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: a95d1809-21ad-4521-bf01-ef6152e9e13d X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033953_411980_9B30E3CA X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add memory range handled by ATF to not be touched by linux kernel. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index a3a7deda35a5..7721d2ec06ee 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -81,6 +81,18 @@ reg_3p3v: regulator-3p3v { regulator-always-on; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* 320 KiB reserved for ARM Trusted Firmware (BL31 and BL32) */ + secmon_reserved: secmon@43000000 { + reg = <0 0x43000000 0 0x50000>; + no-map; + }; + }; + soc { compatible = "simple-bus"; ranges; From patchwork Tue Oct 29 10:39:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854725 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 E3D23D2AB1F for ; Tue, 29 Oct 2024 11:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=aj7eM8Vxd38nB8gdBiCUpncW4jumVYClCzr//il3Z6s=; b=rHgXCzqoFsnGG67SAKUmP2Hlc4 Q86E8xK/0Zq6F3gjFEY5VpkSeBIqfLvUJu7kROwhGNAKCCDYp9pKvaTAWgIP/ZhwUXAH0ItvIsn68 PJgF7bKL1Z2ctPSd6kYJpOXuHw7Qn2wMzrYp/LK+5amrKjuC697dWv9b4wpCx5MrKbq+0C+6u9zmw QCHhmw9v/M5UtvONedcksU0okswkhE1h04F5yM3W5LkUSA52TfiCWWsQ8DSFxCwPBr9H1Bwgd8TyJ gDJLk+I3BWvrCFta7WR6jzp9DxggZNAgmCgAlWoIDg/lQq5+1GHXpcRa+N5Be1dOugM3pmBHdLyWy cXenifpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5jxH-0000000E95J-22EC; Tue, 29 Oct 2024 11:00:07 +0000 Received: from mxout2.routing.net ([2a03:2900:1:a::b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdg-0000000E49h-2Zgr; Tue, 29 Oct 2024 10:39:54 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 388BA60654; Tue, 29 Oct 2024 10:39:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aj7eM8Vxd38nB8gdBiCUpncW4jumVYClCzr//il3Z6s=; b=JZR4PGidZvahbe0z6LVkkp9GrNSUQqT+yFOOveWLYYIAUwEswz0uY5C7RNxNp941CZKqI+ tsKEKsG5hwwvzssAqGGrHxKjpQEJu0MXJjXZvMS2G8m1D0zmhvKb8QrGO+/7G5955IEcbj 2I5YtCgjes/s5pVE5Kg/pSW1PM715z4= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 99D1C3600D8; Tue, 29 Oct 2024 10:39:50 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 13/14] arm64: dts: mediatek: mt7988: add mcu-sys node for cpu Date: Tue, 29 Oct 2024 11:39:32 +0100 Message-ID: <20241029103937.45852-14-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 0665e2ca-e3cb-4b98-9c67-28aac8f7ecb4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033952_845788_12CBFAD9 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add mcu-sys node which is used later as clock-controller for cpus. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index 7721d2ec06ee..e037854666c1 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -210,6 +210,12 @@ pwm: pwm@10048000 { status = "disabled"; }; + mcusys: mcusys@100e0000 { + compatible = "mediatek,mt7988-mcusys", "syscon"; + reg = <0 0x100e0000 0 0x1000>; + #clock-cells = <1>; + }; + serial0: serial@11000000 { compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; reg = <0 0x11000000 0 0x100>; From patchwork Tue Oct 29 10:39:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854730 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 2A29AD2AB1D for ; Tue, 29 Oct 2024 11:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CkpUh/XPSwiAqciWUfYgDTDUp1kYHTLS66y+Kq607kQ=; b=rTzayXLNtmjJAvEmppQiBvUOEO kUJ4ZhHMe3BRLqDt1bBY+wunqu9XlNA0/F7NSAB7rNI7OsmxvY7Ytfw88n5/todfwvc3dz5WfSKOp 8kOJhp9bVfNrGzMaocWSAWPWTNdSOb9e4abK+0uzpEaWBenIGJe/YpkgDz2YOh1biGmQaH4dneW1H y/Wntf3TYsBUbsRdwYuwhmmc117v3ECDum4jw73QxxNPqo/y6fwlVXvM5+ruC6MVyZpjvGFyRTPNI i5VaKXSUBJC5HbsSsWY+qB2Mb2L/uH7cRyZJN6egKlb/tg6Kv++MuRsTV1C/cLewqOLtb2tqeJKS8 fVI0LZyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5k27-0000000EAPz-3xGj; Tue, 29 Oct 2024 11:05:07 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdi-0000000E4BP-3Mkb; Tue, 29 Oct 2024 10:39:56 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id C62984070F; Tue, 29 Oct 2024 10:39:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CkpUh/XPSwiAqciWUfYgDTDUp1kYHTLS66y+Kq607kQ=; b=DdGus3Q3+7b7nRhcxiapQHFi9SiYsFuppqE5lcCPIJte2EFFmye6Kiuut6MfiYzJ/ew/iZ nQN2FCFfQOSENatE2fEZTsHmEQagyl2E/wq290kUOCiIt8YV+TgdqgFtg3MDeMar0RP469 RHOLWWLpcoH23Onh4hSkpopH0Z5PFE0= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 327F136037C; Tue, 29 Oct 2024 10:39:51 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 14/14] arm64: dts: mediatek: mt7988: add operating-points Date: Tue, 29 Oct 2024 11:39:33 +0100 Message-ID: <20241029103937.45852-15-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 72750c8e-3dcc-4bb0-bbdf-e9206e8bffeb X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033955_020102_A1634F84 X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. 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 From: Frank Wunderlich Add operating points defining frequency/voltages of cpu cores. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 45 +++++++++++++++++++++-- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index e037854666c1..25669d498617 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -16,32 +16,69 @@ cpus { #address-cells = <1>; #size-cells = <0>; - cpu@0 { + cpu0: cpu@0 { compatible = "arm,cortex-a73"; reg = <0x0>; device_type = "cpu"; enable-method = "psci"; + clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; }; - cpu@1 { + cpu1: cpu@1 { compatible = "arm,cortex-a73"; reg = <0x1>; device_type = "cpu"; enable-method = "psci"; + clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; }; - cpu@2 { + cpu2: cpu@2 { compatible = "arm,cortex-a73"; reg = <0x2>; device_type = "cpu"; enable-method = "psci"; + clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; }; - cpu@3 { + cpu3: cpu@3 { compatible = "arm,cortex-a73"; reg = <0x3>; device_type = "cpu"; enable-method = "psci"; + clocks = <&mcusys CLK_MCU_ARM_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; + }; + + cluster0_opp: opp-table-0 { + compatible = "operating-points-v2"; + opp-shared; + opp00 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <850000>; + }; + opp01 { + opp-hz = /bits/ 64 <1100000000>; + opp-microvolt = <850000>; + }; + opp02 { + opp-hz = /bits/ 64 <1500000000>; + opp-microvolt = <850000>; + }; + opp03 { + opp-hz = /bits/ 64 <1800000000>; + opp-microvolt = <900000>; + }; }; };