From patchwork Mon Sep 9 11:14:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796967 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 C7085ECE579 for ; Mon, 9 Sep 2024 12:46:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=inMWF7mAc4RQp01FZVAzZYJjZGIEnM27V9mYFjLFKXM=; b=Hzlrz2aBXistk7 qEGeQ53abVfofoQO9j+YR2xOjXx/fnfX/ZJGdVmXSIytHz467JXYiCEdoF0uRpJTeoVu7t9GOWOYa 6trS2bBkgjeiKTmSfETtqRv9hKfzrgvOSHihn1BBk8tDpUoFvi+T8LODkimO+T6F0uce69zJfoZYI DEWUjcAct07ccK0zYWIOaQLkeAdwNMMILbg/b4wdiBXmX4x/bIifWKOsueMTmEqsyp39Xu48eSL0f njhpozkm8LsTn8R3GyjW8wq5rjBbjA/WKPpCQNATripLvYv3+X1xNPdOaaxQ9UCwjGrC169poZgZY AOtd6Gbi/kmcqo8iXeDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sndmm-00000001tYG-11AT; Mon, 09 Sep 2024 12:46:28 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncP2-00000001d8z-0b8j for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:17:53 +0000 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-7c691c8f8dcso2841694a12.1 for ; Mon, 09 Sep 2024 04:17:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880671; x=1726485471; 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=inMWF7mAc4RQp01FZVAzZYJjZGIEnM27V9mYFjLFKXM=; b=UWWWcHSt+wGabcTfVs1yQSKrqZYdmSOYvvZLJNhaRmjJiUIhBXfVxJhraF+Xbe6FQT lUcJ2bqsOArBxDXuiILzv9QCkq7b6EW7vadinZSWEPaKIafinDcSpG1dYEYgRNPMfUAr WbZit/JXAcNDHhYvFk+tVGyBpgVf7BuGo6CoM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880671; x=1726485471; 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=inMWF7mAc4RQp01FZVAzZYJjZGIEnM27V9mYFjLFKXM=; b=Lv/BH2B00eZJ9eXxD5sf1StZuy0jeR8G8di2A7nxNCuWlFWCh9S3yFdytZ0jBaaiGD 0ljd/t0sbbuCUyZRFGqR6TPH/hlyhVMEM6SZ2Wy86HJ3hhRLJb6pTw8/xocfgRZowYm0 723TUsWWHkjzY1cMFfVd+9BPe5b4in+urSLqKKg2mc8EDZznzkkTeTuf221/mIRtOwLi vIoiBPMH4Zc299DrrgofXpE4ekcBl5bP2tFWoQesG5cB8TP3kGVNM5IRPqxLxBpVqQsd /lPd02m6pI0rZSEbXAYgCE9kEZfvWsdXvtIUyVYfVJmZFLKaorL917ZoMF+lTo+61ebW 4EWw== X-Forwarded-Encrypted: i=1; AJvYcCXQXOkl6lQG49SOSQFpgwOq3kfFl8mXa7h95ZtjLb5QnSt1p8Jq8DgGPlOhAbbONCMQGOFWrNTUgYbZWx5Oqg==@lists.infradead.org X-Gm-Message-State: AOJu0Yye3L9oLQVnmwGUP8+CJujJ1YgEMu82n8iDavw0xwGz6hmt6ZUn xKSXwEzNY9uFk1umRm40ode2D/nPaOd5+OKLoF58c/37cIyaRpQqeLG+ojk0qg== X-Google-Smtp-Source: AGHT+IGEoXdjMPDfBAFuOqotyznZjRHcP++k8TLwSTP8JbDeKXsv6apEUH19HjF6RrX+uRkTQqMG/A== X-Received: by 2002:a17:902:f549:b0:202:5af:47fc with SMTP id d9443c01a7336-206f0511f66mr171192305ad.13.1725880670880; Mon, 09 Sep 2024 04:17:50 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:17:50 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 01/13] arm64: dts: mediatek: mt8188: Add CPU performance controller for CPUFreq Date: Mon, 9 Sep 2024 19:14:14 +0800 Message-ID: <20240909111535.528624-2-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041752_209206_03B19968 X-CRM114-Status: UNSURE ( 8.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add performance controller node and performance-domains properties for CPUFreq support on MT8188 SoC. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index cd27966d2e3c..cdd2fe14effa 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -41,6 +41,7 @@ cpu0: cpu@0 { d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; #cooling-cells = <2>; }; @@ -59,6 +60,7 @@ cpu1: cpu@100 { d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; #cooling-cells = <2>; }; @@ -77,6 +79,7 @@ cpu2: cpu@200 { d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; #cooling-cells = <2>; }; @@ -95,6 +98,7 @@ cpu3: cpu@300 { d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; #cooling-cells = <2>; }; @@ -113,6 +117,7 @@ cpu4: cpu@400 { d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; #cooling-cells = <2>; }; @@ -131,6 +136,7 @@ cpu5: cpu@500 { d-cache-line-size = <64>; d-cache-sets = <128>; next-level-cache = <&l2_0>; + performance-domains = <&performance 0>; #cooling-cells = <2>; }; @@ -149,6 +155,7 @@ cpu6: cpu@600 { d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 1>; #cooling-cells = <2>; }; @@ -167,6 +174,7 @@ cpu7: cpu@700 { d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2_1>; + performance-domains = <&performance 1>; #cooling-cells = <2>; }; @@ -880,6 +888,12 @@ soc { compatible = "simple-bus"; ranges; + performance: performance-controller@11bc10 { + compatible = "mediatek,cpufreq-hw"; + reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>; + #performance-domain-cells = <1>; + }; + gic: interrupt-controller@c000000 { compatible = "arm,gic-v3"; #interrupt-cells = <4>; From patchwork Mon Sep 9 11:14:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796968 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 ED512ECE57A for ; Mon, 9 Sep 2024 12:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=KFcYjNN1qXzDlnBkl6i0qfOJ7Ms9qe82BWNfSpUlHsY=; b=dn4UgJ6uRRAb+8 DUmInZGgKU/zBaO5IH+Nazn0cAcYiIKYbr0XqKKJxqv2FQ6yv9kPRWwaMngZwUVjks4PZNviM1/J4 o3+U4L2kBjLSL2rHKT5NCh9IVN402C491kh8oh0l6hf+3wFAsj/dRx2qBk4X/5UDnxxslV09zOhRR se3kY6JayiU+ptsZwai9RtQdXbsCqt7jqRgaeh8Ue5GHHgpTNaEc8+zSHePyScOohcwoANNeBBT6Y 6QToXaKuSKBK32BBacNOABa4n4KuQIldLSs+i8jtjQRv27S0CqFIvTdnsIs8MgCbjwjELwp3KRqe6 teQ1Mov8yOS/wbQfCmvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sndn2-00000001to1-1KVx; Mon, 09 Sep 2024 12:46:44 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncP4-00000001d9y-0j4A for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:17:55 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2053616fa36so43979985ad.0 for ; Mon, 09 Sep 2024 04:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880673; x=1726485473; 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=KFcYjNN1qXzDlnBkl6i0qfOJ7Ms9qe82BWNfSpUlHsY=; b=iovYQ/B/0Sx9WIRkU05JPr3GgiBpwkW7pdEaOrzwHa+PMpS2vRGCqRclazyYoMTJ3o LSmxqaZDrfbo+J995ugwJauvBRMMyL3DZBYbdyCJS2R+Aq5N8B/E8s3Ovk4ZqtW1XK0B 0NxS1jIqJLzuhPzhVxpfYVZS/pDXyzatlxuLY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880673; x=1726485473; 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=KFcYjNN1qXzDlnBkl6i0qfOJ7Ms9qe82BWNfSpUlHsY=; b=kCQnXsP+WXFsOXLpjrIcq0WiYYndvrP93+5bzHR7EUmN3obJeoWXr6nuY4fDsnDMIt Jd7K6oAu3DI9+b1SB2kLpbMzYj6JnckXRP8sF147edkxfvSoHZ+eEUQp4wNkitpBrguX +9/Eo+hiMvaBpe7KC4Vxh1A7/I5+vK1grsBTaxWC5n2HPbgdsbEBw5QqDu77uJgcMIKs msOEbVfVzESvQOMKq/TJrOF1emaKovUv59apsrOdyH/geMPgYxbHH98kQh9xPhCH5bQo y08X8+9vFf/6iQH/K3CHHX3MgoycY+xOC8NvXekGQasx8c4+4T7vh2KaiWdbBS1a5pSy lP2Q== X-Forwarded-Encrypted: i=1; AJvYcCVRtXRzFI7imJgC80lX6RONA54W0qKxnqXYDV6wfDacxeQUFzWYRjFQ0ygVgKr+gA/HlSHVPybdPQOpQL0PJg==@lists.infradead.org X-Gm-Message-State: AOJu0Yy3JoABAXs5YjX5cMy/xFNr7a9U4ynoEWuY/UFVb3IbOAi2nGAy OE0vc8YsrXIcmgtxesD/jzaNMgzCb5A7bcIkHvJh0drMxO4ZKFTI4tiA3IZRZQ== X-Google-Smtp-Source: AGHT+IGW/m/QWYy+K8SbOWl6PqefCafd3OQvK1UrzaePRrUeDkDzlOR+CjxwO5NOu5/gsy/3FH/PBw== X-Received: by 2002:a17:903:22c4:b0:206:adc8:2dcb with SMTP id d9443c01a7336-2070a537840mr96366815ad.25.1725880673325; Mon, 09 Sep 2024 04:17:53 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.17.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:17:52 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 02/13] arm64: dts: mediatek: mt8188: Specify CPU big core cluster Date: Mon, 9 Sep 2024 19:14:15 +0800 Message-ID: <20240909111535.528624-3-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041754_229501_3324C76B X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The MT8188 SoC features two CPU clusters: one with 6 little A55 cores, and the other with 2 big A78 cores. Update the CPU topology to reflect the actual hardware configurations. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index cdd2fe14effa..788dfb5484bd 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -203,12 +203,14 @@ core4 { core5 { cpu = <&cpu5>; }; + }; - core6 { + cluster1 { + core0 { cpu = <&cpu6>; }; - core7 { + core1 { cpu = <&cpu7>; }; }; From patchwork Mon Sep 9 11:14:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796969 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 08021ECE57A for ; Mon, 9 Sep 2024 12:47:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=q1Ttr2z+4sVDsV8+3XUKUGFQBqd5IhKsFwImuWWsKWQ=; b=skL3R7nQlH/mF1 udaj50zkEMaXZLgH/nOhLuJLp+qd5vM8iB4GrC8hzE1qdJG34hqR14qAt8/wYUNOdpuH4/4cmjvxc ZOZNDWOuSgroYTHT92S0OcGlNOipboiUNFkfTJikK8MxWwI+7XsIRagDWACgtKkrC4sUSRPglAYWo oy/wMNjU3udoaxpq3eF6QQCPGhYtwlxWJV9tmqyk5Gk3bvZg7o1vNk9WRFi+oCmfSlXkEeB8yLtyK fAuWXmJmjEqoo65mXgOif0S8uyLwHNQ6ACYSx/gX16CMLSVmr3I7ukAQ81ruP+5Pc9g6OJe3zz/PT fsxUdpF/Bl4GlQQZZCuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sndnJ-00000001u4Q-3PuJ; Mon, 09 Sep 2024 12:47:01 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncP6-00000001dAv-42Pv for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:17:58 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-2068a7c9286so37672175ad.1 for ; Mon, 09 Sep 2024 04:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880676; x=1726485476; 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=q1Ttr2z+4sVDsV8+3XUKUGFQBqd5IhKsFwImuWWsKWQ=; b=ToQkp3ke6C6QWRK7oW2YXOCk6MxaMUz5GEKg0hfyeK5NUW/1o5Cb31jswdAyDNk4VF 6eKDKrFgQzQKHzpLqypb12B5dMJlagn8BguUNykRGcypYqwkduG3u0TaWCtQCj2QhLma ohJFOsM5Gj5dopIN4Hx0bE3WORx3/NXW/2hkQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880676; x=1726485476; 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=q1Ttr2z+4sVDsV8+3XUKUGFQBqd5IhKsFwImuWWsKWQ=; b=ax9Sd8/OeLqTslKBMBNyP4CdJoC7CoKHLVREi/KILpW9n13QIXPilInViiu0KxKDGv 3uLSzG07o2N8tcu8J2zRMG1jS+J//QcMsttsajMxXz7Mj7V1i2/TQdbO5ziGEwy+1M6o B2xUNnaXYU3sOL0u1QFxSb2jyoayA0ptIC2cFN4qKoZQwLIlIjI1CCrjzpPMhkUtJa7K +enjOHwZVVIn6W/iIkPklGCkEXhUPy9e+KvvsX9V8v299/vJI5gvim//GGIx8DDmaFOb 1iLVWp9aM857/RktZxRaXd0Vh+NVG1sa8q4SmhE/wZOE5sxB95v143z7X5sywzwrRhnz rx3w== X-Forwarded-Encrypted: i=1; AJvYcCWVdUyP8qfWRHLDF+J7W0FPHuSY0V41hFHWpP36mXIYKN0gC0IwH9j/3Vs5j44kyykkpuvV3vX58nAXuLOZyA==@lists.infradead.org X-Gm-Message-State: AOJu0YxCFtsfSz6kSeqqEeMx6w/UIiy49dgjYwIdxuw2oOIXOsbEWBL/ BFU6FZo3X6SrIkq8yMh1iJNzavVTYDuYFRwfN2PQYNg2h9exlY25+OosspEZvw== X-Google-Smtp-Source: AGHT+IEjDpYo7XNu9Z1/fDj+e+7JTbEWp4nu6rsFIS8qHBK0NlIS+dKadP5GapUDsdnDfnQtg1bSHQ== X-Received: by 2002:a17:903:2292:b0:205:5410:5738 with SMTP id d9443c01a7336-206f051ee5bmr125183735ad.27.1725880675836; Mon, 09 Sep 2024 04:17:55 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.17.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:17:55 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 03/13] arm64: dts: mediatek: mt8188: Add missing dma-ranges to soc node Date: Mon, 9 Sep 2024 19:14:16 +0800 Message-ID: <20240909111535.528624-4-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041757_025322_CEB966D4 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add the missing dma-ranges property to the soc node, similar to how it was done for MT8195 and MT8192. This allows the entire 16GB of iova range to be used and enables multimedia processing usages, like vcodec and MIPI camera. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 788dfb5484bd..dfbc50c878c4 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -888,6 +888,7 @@ soc { #address-cells = <2>; #size-cells = <2>; compatible = "simple-bus"; + dma-ranges = <0x0 0x0 0x0 0x0 0x4 0x0>; ranges; performance: performance-controller@11bc10 { From patchwork Mon Sep 9 11:14:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13797127 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 01BF8ECE579 for ; Mon, 9 Sep 2024 14:00: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:Cc: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: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=k98xHcx8LIPGVP0kPjUAh1AHHL+3f8QtEI3GBp8SnEs=; b=O3QPfFBPNfvCfV FFWBX/3IKe2MDNchku3S64RY5IoC/TqDUo9AotovL873xH+MvgJrJJ40+m6BUueGEN74XEGXUqX+x g6IM8E1FdUOShgaxS9sXWvOnq14rfCd8JGBtv8n+ZrPUkneXPc0M4aCkAFiDLnuuE+EDeJ9RLHmAX UhNYLn6VLdVR9Xcwu3J+D4AcwfZxv9+34zAUJ9Ul4x50/8r6HPYt98LbpdyyMjP+5VSf1qfcOoRXo +rrwAzRjpiGisClXAzY+SxXTI3h/aLcf7N4L7GdBdhQWTsa15vAhagp47Qd35Flq9GeoytjCtkXoq cZfy+fEdt3+HT4mBFgbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snewH-00000002B43-2OJH; Mon, 09 Sep 2024 14:00:21 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncP9-00000001dBr-0yTB for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:18:00 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-2055f630934so31437135ad.1 for ; Mon, 09 Sep 2024 04:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880678; x=1726485478; 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=k98xHcx8LIPGVP0kPjUAh1AHHL+3f8QtEI3GBp8SnEs=; b=C2N0VW4ShhCja0IO3UiXmwEjJUhKQUesvo0NaJaZ2uv2Hu4+CmhQg1oEm/O33s4Fu1 neqa7ykS0K+V4I522+B+ju2JWru56i+gf0TzDc+4/vKAu/xe6pamfMTE5O6V09Tt+Rf1 CWWvLQUYHP3REimZFulGcETgjny1kmsbYEjd8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880678; x=1726485478; 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=k98xHcx8LIPGVP0kPjUAh1AHHL+3f8QtEI3GBp8SnEs=; b=BvM9sCkH84T8UcF/gBMuTT6bNHypGBH8RpXR62TVCIQkltjhSUoZGXrTM6xbhzdeQV f01Fm8uPa0nVtsEu+aYTKxPmkATXvDS6MtzUM1pjXCk9iZ3FX9RTTXOWJ2iwfN8vwXS3 cVG/u6bQ1FTKjhbWpV+mAYr9bd3kriZ17csydFb4jDPqpf3whetduuRRADlTjr148iv+ Hb2pADvotJ1hwbgh58hHeYJhzoELFNccT4yPRi9ypIG1wicMYfwdA6sw90+63cM/FCHQ pbpa94d7qIlvJXB5MtppZ01USWI7gRVY7tJYRm3eMshc1fWUA65WKNohOpEKv3z4TPP2 c8Xw== X-Forwarded-Encrypted: i=1; AJvYcCWjzXHtJbaRhMVKz+h5NaDYKDY55zX/e/zAGvt+iFaKrNHnzLDvkphHGyksTuI4Q/qF4oxKFz1nKjOTiWYQig==@lists.infradead.org X-Gm-Message-State: AOJu0Yw5RfWsoX9/hLpGZhPpVR8aJ7y2YSnX5cO5plZkf10qVNAidIw/ S3jpJgVF0YL3pjIkPZxN/6VXkDHZ+Ph0754OL7VyKPUVcjiXKv3/dgTPiCAPLasXileMJwByddc = X-Google-Smtp-Source: AGHT+IGoS/wNfT96ErEpO6j2A4iVl+SSYkCw9fl18EPKIdICyKbSqkOSzDP41poSrNFHrcako0/RMQ== X-Received: by 2002:a17:903:22cb:b0:206:bbaa:84e9 with SMTP id d9443c01a7336-2070a7e5982mr90617095ad.47.1725880678168; Mon, 09 Sep 2024 04:17:58 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:17:57 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 04/13] arm64: dts: mediatek: mt8188: Move vdec1 power domain under vdec0 Date: Mon, 9 Sep 2024 19:14:17 +0800 Message-ID: <20240909111535.528624-5-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041759_287844_47C97ABC X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org There are two hardware IP blocks in MT8188 video decoder pipeline: vdec-lat and vdec-core, which are powered by vdec0 and vdec1 power domains respectively. We noticed that vdec-core needs to be powered down before vdec-lat during suspend to prevent failures. It's unclear if it's an intended hardware design or due to power isolation glitch. But in any case, we observed a power-off sequence here, and it can be considered as an indirect dependency implication between the vdec0 and vdec1 domains. Given that, update vdec1 as a sub-domain of vdec0 to enforce the sequence. Also, use more specific clock names for both power domains. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index dfbc50c878c4..445d30eee2a1 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1078,20 +1078,22 @@ power-domain@MT8188_POWER_DOMAIN_VPPSYS1 { #power-domain-cells = <0>; }; - power-domain@MT8188_POWER_DOMAIN_VDEC1 { - reg = ; - clocks = <&vdecsys CLK_VDEC2_LARB1>; - clock-names = "ss-vdec"; - mediatek,infracfg = <&infracfg_ao>; - #power-domain-cells = <0>; - }; - power-domain@MT8188_POWER_DOMAIN_VDEC0 { reg = ; clocks = <&vdecsys_soc CLK_VDEC1_SOC_LARB1>; - clock-names = "ss-vdec"; + clock-names = "ss-vdec1-soc-l1"; mediatek,infracfg = <&infracfg_ao>; - #power-domain-cells = <0>; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <1>; + + power-domain@MT8188_POWER_DOMAIN_VDEC1 { + reg = ; + clocks = <&vdecsys CLK_VDEC2_LARB1>; + clock-names = "ss-vdec2-l1"; + mediatek,infracfg = <&infracfg_ao>; + #power-domain-cells = <0>; + }; }; cam_vcore: power-domain@MT8188_POWER_DOMAIN_CAM_VCORE { From patchwork Mon Sep 9 11:14:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796680 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 A79FDECE57A for ; Mon, 9 Sep 2024 11:38:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=eSPMDqXmxOOBZ2+bT3H0bytGBe/kVJSeEJXvBbWjwBM=; b=4N0shEdCSzsVry +r7fJ/Ku2s2CqQKvdR61NPm2/Yx3r8Q5LZF0iHZrk9BgMh+SVAf3PE2WHQVdcEQE6SE0UJP+0tK43 xaZPLdKFDh5LSbjIG2hPaEmdYXPgiJ63zmEQ6H9dFbtX0ApiZWB25M7r/s7+zKEWaAy9iRHOq7VKx MmOBdpeDG5VcRQ0UGboGWYxUkgMqGgVB6TNMXOC0OTtmqKQlxh688Q8BqtPYNdng3EP/BevwaGUDR 2ReK21Bg4HUwcOC2Ody2ekZs2WwXmjY4YTK71YIVU22mukwbX++9QMgYDLO0OR0sGuw5jQJwOE6Kw fFeBLUNCRMet/1vutleA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncj1-00000001hOo-3vbF; Mon, 09 Sep 2024 11:38:31 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPB-00000001dDM-2vFH for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:18:03 +0000 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-205659dc63aso40368825ad.1 for ; Mon, 09 Sep 2024 04:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880681; x=1726485481; 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=eSPMDqXmxOOBZ2+bT3H0bytGBe/kVJSeEJXvBbWjwBM=; b=MxjfHqfYpJ/nxvN8xsV1HVQa2+6Inf5HilziRzjlH5wNj4EYmrlZ1UEUFsjbOaE+j6 1b47nANhMw6CPzpiq9Kk5XYTwjNsUmLah7sRt+WQjLrvAURaNLqu0lMgz2LNkq0gG0VL XxVh4e5FkgbmCq5Go3H636Hb8UqB9URJ+IMAw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880681; x=1726485481; 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=eSPMDqXmxOOBZ2+bT3H0bytGBe/kVJSeEJXvBbWjwBM=; b=W1VnhZAn0yVVYEWHBQxoe7UP1KuCdMoctR5P9U6q/NtvkyF1m3kaSlsuBv8oH3R8k4 jJZABHLp0jfeLK2XfyjJHd75q36CPRBol4GRRZLLg3NH5G6M/qms86/xE34GNYljTrEl lbnvvH0PhrPBPyqPbMZ62fpHkC7M9isqKrfgTUMtf1JmrRPMDkA6CXX6uKr0kOD1/h/d Pc6YmAqe9RhsuP/w/bSDxwxXhaMOUcpZJGOvsOzRUrYnUq+Q64PDUdQ3Hp/0pHG2fTrz VwzwqhpbEHrfEAXcvrYh5SgB0r4MBOXZQt9af34tUb306liQIj9hBRef1GKit56B5KnG iF3g== X-Forwarded-Encrypted: i=1; AJvYcCXx5o3jIJ4HNiChmWt9ayolyW4OPwhXUkFYK8onuHpNXrLtPmGZwZevE4Pb/w9VfLtZ0eYVYz9Y2K93piviZA==@lists.infradead.org X-Gm-Message-State: AOJu0YzTag1Fu95atzENdZ99mazk3QU3JJxfLE+IZ6jXIw3uDQ5n85Nw OBgtstMwLEOHIl7IlyJthUVbI5fcfyzslNckr0zVoy2ewjWN0vVJMvnuofkrNw== X-Google-Smtp-Source: AGHT+IGHVTuEQzGi8BTEcqf2mCRiL5XS1yhXsk1hu/kaz1W0RCb0r+W6kSM7h0W7qrtU4wtKiSxLSw== X-Received: by 2002:a17:903:22c1:b0:1fd:5eab:8c76 with SMTP id d9443c01a7336-206f05e7881mr97040825ad.41.1725880680731; Mon, 09 Sep 2024 04:18:00 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:00 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 05/13] arm64: dts: mediatek: mt8188: Add missing GCE clock names Date: Mon, 9 Sep 2024 19:14:18 +0800 Message-ID: <20240909111535.528624-6-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041801_816323_722A7EE7 X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add the missing clock-names property for GCE nodes to fix errors from `make CHECK_DTBS=y mediatek/mt8188-evb.dtb`. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 445d30eee2a1..2900d78b7ceb 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1316,6 +1316,7 @@ gce0: mailbox@10320000 { interrupts = ; #mbox-cells = <2>; clocks = <&infracfg_ao CLK_INFRA_AO_GCE>; + clock-names = "gce"; }; gce1: mailbox@10330000 { @@ -1324,6 +1325,7 @@ gce1: mailbox@10330000 { interrupts = ; #mbox-cells = <2>; clocks = <&infracfg_ao CLK_INFRA_AO_GCE2>; + clock-names = "gce"; }; scp: scp@10500000 { From patchwork Mon Sep 9 11:14:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796681 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 356DBECE57A for ; Mon, 9 Sep 2024 11:38:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=QUOItIdN4CuqJ3bySYoQipdxuI7Z/Vcroiw20gsxaUE=; b=QX7EB2rs1w5Mws zifIwTsKxHg8Kv9z9tLR41lwDSSaauzEu17K40V13jdMxkssKOnJeZ7SvEdmBVC//+/jtSuau3KjX 3T4YqM9PBOnTIx8t5+Eek/GRmCS4pmcdDqFZk+Nx3IreRUDkcl8jvRxBq0qTCU4cS36zuof+us9Df TIx556bX+muUWFkb3UIW5hkChgD0jox3/8K8thMao/eUqy8Ef1Mwk6H0DE/ryRUgViMR/+j5/OabD UaOcF5u9pYV8MTTI7knm4HaFF5+D6LWFwdPw/ymApKiEjuJgrcIBBEYlZgMptkUxeTYbe0N13XZyx ZNJnajPLUO4f3fKNCt6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncj5-00000001hR8-30Vl; Mon, 09 Sep 2024 11:38:35 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPD-00000001dEf-3pPT for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:18:05 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-206aee40676so34288925ad.0 for ; Mon, 09 Sep 2024 04:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880683; x=1726485483; 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=QUOItIdN4CuqJ3bySYoQipdxuI7Z/Vcroiw20gsxaUE=; b=QwlGRKORKmCrsWY1xsnI8uuxYl5Ih5wdNOqzPpNukyT4w3zmsGY+fuaUenWkJO1uKD MHOZmua25W+lSBBzGCmVb2Htsp8lXFLoO0POkxhW8zGzghquRqGuYhcWlrKphuuRc5Yg raVNwJCG0bV/hCNONaRhaVzdq1jgUgOSOdWe8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880683; x=1726485483; 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=QUOItIdN4CuqJ3bySYoQipdxuI7Z/Vcroiw20gsxaUE=; b=FAQyP61zH7kb/YIN3Z9wHIh4OgagyjFjDy/Id9xCqXIWPoIMcWtDHUE8xPwE7H9usJ lZozNVWCS/qg6F7ojzM4GUlNejXJy/a6+JYDUnGngW11sGDXZ4nozZvcsYIXeLDPFuPE xU3kWne8J4wrnMVk7KnQhnMIkJHDb4Obx4gLmeJMKbuUzNyg050xCipt/ezHO9JHygD9 eou06jqLmSAPITk9owwLM2xe4YkOB3vpp20o3TD/O00/iL1BbrsQzlmNaRCMm+yKHHFV xYan9npqILJrtRiHLho9L6vfT8iezBsAgdLELzG++ya0Xx2HIc3E9h50TCuKjA/+gIK7 0MtQ== X-Forwarded-Encrypted: i=1; AJvYcCUrBWX6ZBtoWIkurfWbIuPBJC8cQ74hW18X+yYiS2JE1Zlg3Brkn4kPOmjfY3lcOkdbzRJHMgxn4eHWoAa2EA==@lists.infradead.org X-Gm-Message-State: AOJu0Yx+3IiV7u9xn5BVqZW5AsKRJe/Lteaeqc7Q9104DHD8+bMk9LH0 boqBGBPVZF92x6LXL6HMx6vCGyD8Y8+7oIvkgruEyEZSNY6dx+pAIHofWfGCsg== X-Google-Smtp-Source: AGHT+IG2C9XNJ4DI2nFoNmA76+SiA1/BQlCYF1MYXDlROT/zJMV16eihIHNxUAdcFdrNF1d3RzLl+w== X-Received: by 2002:a17:902:d489:b0:206:9399:5dd7 with SMTP id d9443c01a7336-2070701f2dfmr72449825ad.56.1725880683061; Mon, 09 Sep 2024 04:18:03 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:02 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 06/13] arm64: dts: mediatek: mt8188: Update VPPSYS node name and compatible Date: Mon, 9 Sep 2024 19:14:19 +0800 Message-ID: <20240909111535.528624-7-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041803_976925_5F6EAC08 X-CRM114-Status: GOOD ( 10.32 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Use and add "syscon" in VPPSYS node names and compatible to fix errors from `make CHECK_DTBS=y mediatek/mt8188-evb.dtb`. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 2900d78b7ceb..14e51a11f688 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1799,8 +1799,8 @@ mfgcfg: clock-controller@13fbf000 { #clock-cells = <1>; }; - vppsys0: clock-controller@14000000 { - compatible = "mediatek,mt8188-vppsys0"; + vppsys0: syscon@14000000 { + compatible = "mediatek,mt8188-vppsys0", "syscon"; reg = <0 0x14000000 0 0x1000>; #clock-cells = <1>; }; @@ -1817,8 +1817,8 @@ wpesys_vpp0: clock-controller@14e02000 { #clock-cells = <1>; }; - vppsys1: clock-controller@14f00000 { - compatible = "mediatek,mt8188-vppsys1"; + vppsys1: syscon@14f00000 { + compatible = "mediatek,mt8188-vppsys1", "syscon"; reg = <0 0x14f00000 0 0x1000>; #clock-cells = <1>; }; From patchwork Mon Sep 9 11:14:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796682 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 B45CAECE586 for ; Mon, 9 Sep 2024 11:38: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:Cc: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: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=e6ySKWEzCsAiAa/TsjxPZ6peBrSGtqkTqiQKSlr9U20=; b=XKuRHYKaNfI9K9 RA+ci3pFXrvCmg6lh4Ho3f8HSX7c0DCGmJOFSVMdrfyqk0UQJ1PdTYnefqFZ2U1Vq7JmVIfeoVmVU 7+w4HADYUHv1rjev+rBxaY6EmTGVW9oMjL9wSOJKGyC/cpXpOPKVrysNMrzz9FhZdMIyLbeCxJDK3 wShsngPv0NGBviwzoAkCh5HKZf+Tn7fqTqm6ljm71UgxWbEAsKw+ncQeTi9zjt0TKtoND1WG8uikx 4tdEE/nv4KYOTrwPlYGCdf6BKub1q5mHmgWmd9JB4KjbQvhTedAJPLt+5EUIbqyBfHVDCJqipoO0U FmPJfAAVlrv0hdnPTQIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncj7-00000001hSe-1ZyL; Mon, 09 Sep 2024 11:38:37 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPH-00000001dGc-18TJ for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:18:09 +0000 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-2054feabfc3so36354805ad.1 for ; Mon, 09 Sep 2024 04:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880686; x=1726485486; 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=e6ySKWEzCsAiAa/TsjxPZ6peBrSGtqkTqiQKSlr9U20=; b=dsmnqSMhIioBl37SFTq/MxgAb8JBC6JFNpLtTWjvsAt2ET6+lqxFlNGz6xcrK4kjSy BYSxCHe7LvhxyG3Yl9rsX1Y2nLkrwNo9SArS5MYhtrelGB8Or+744Z1KTP3xQ5v2kkA3 XQ4b0XKrnLICpAxcWkxm/0zGpGT/IFK/QLmUg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880686; x=1726485486; 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=e6ySKWEzCsAiAa/TsjxPZ6peBrSGtqkTqiQKSlr9U20=; b=XbGqPRkvW9O6PIT7XG6L95DPYOFyTMi7DLzZBQb3Sznvaif4BeAp7GvUByB4FBJX0z 4T9k92+8W859lBtA9ncg0VBAOoBMfakbyPnxeg3wonjZaA74Ng5Q3O4JIakSZf3p5JQ7 JvUnBdnB8bZlvWxeSEotY3RZf3Gt3phCKxEL9tALiPX6BOtuRqxBfIDcEU1VT0hr8DTD CyfGnDGamP83aR+mqsdtLwvQuuyCixv5RdUP1uyLkI3awIwsyrbpcsPaUGQf781YEMiD mDbyNnd4fP0atfgt5WTmvldcq362ZgY8/GX3iFBOjSPj5LaO5yfrhgOySpdgUkDcQxI1 FUTA== X-Forwarded-Encrypted: i=1; AJvYcCWVEy6VnhvsIb95IvNg1qwPgVh312RAw4i/M9piOmxWpBysthzKRXHnwfaP8B1y7PRxx+pQuYxa44gwRtNJlw==@lists.infradead.org X-Gm-Message-State: AOJu0YwupFNrykUEtDzanfaqzRtVGWUkhRMOLs7+uxBddF/ymCjxVkvW jw2T3oBdMs6nZcR6pqoFEq1woS1zDMKjie8KtB4Ulc61Ks2l1s29HB1vrjtq/g== X-Google-Smtp-Source: AGHT+IEtPOD3nWUNQpY+7PlvHwLnD7f1Wes3G0ale4Gg3bhBQDbwb+Q3fTCcQ8bAAZ8Ozw65h4c4OQ== X-Received: by 2002:a17:903:1c5:b0:205:8b9e:964b with SMTP id d9443c01a7336-206f0612c09mr132152285ad.39.1725880686059; Mon, 09 Sep 2024 04:18:06 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:05 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 07/13] dt-bindings: power: mediatek: Add another nested power-domain layer Date: Mon, 9 Sep 2024 19:14:20 +0800 Message-ID: <20240909111535.528624-8-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041807_335385_8EE73F93 X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , Alexandre Mergnat , linux-kernel@vger.kernel.org, Ulf Hansson , Markus Schneider-Pargmann , Fabien Parent , devicetree@vger.kernel.org, MandyJH Liu , linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The MT8188 SoC has a more in-depth power-domain tree, and the CHECK_DTBS=y check could fail because the current MediaTek power dt-binding is insufficient to cover its CAM_SUBA and CAM_SUBB sub-domains. Add one more nested power-domain layer to pass the check. Signed-off-by: Fei Shao Acked-by: Rob Herring (Arm) --- .../devicetree/bindings/power/mediatek,power-controller.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml index 8985e2df8a56..a7df4041b745 100644 --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml @@ -54,6 +54,10 @@ patternProperties: patternProperties: "^power-domain@[0-9a-f]+$": $ref: "#/$defs/power-domain-node" + patternProperties: + "^power-domain@[0-9a-f]+$": + $ref: "#/$defs/power-domain-node" + unevaluatedProperties: false unevaluatedProperties: false unevaluatedProperties: false unevaluatedProperties: false From patchwork Mon Sep 9 11:14:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796683 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 7C2BDECE579 for ; Mon, 9 Sep 2024 11:38: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:Cc: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: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=PYgAVySTOtFl/MrFCMmK+Fl5uF1KDDdSmV7dSnMl93g=; b=PJtPZ4rbrzoDQm DRmBnzLiRXSR5ATaysMmoVTK12qkPzexv7IoANL2fiSA3DOmP2aLbBsG08VlJHqqniD8dc1AyawFS 54frl2++RzS0gN0sfyQRQuW3ZI2d8VFsxhoc0KaK/fCN3MvkpU5syXKz9zVrPDSPbcbSs1lkWTbg9 933ZjXN1IftD/92cySDz+C4JhNwekAVU71VV3wKQ/+ipfxgwynXZ+anEsl+cj6dE/t2rAeXSobMDp hJOhx5YyzK58wKVO/X5BHt8feAyjOoKyYjh8GtKIEHEFtBefdm0uJhetLikDzRdy+hySVzmo3u8Ks iZiJcgFGPPvW0+DsJNvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncj9-00000001hTf-0Jrn; Mon, 09 Sep 2024 11:38:39 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPJ-00000001dHx-2Zuz for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:18:11 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2068a7c9286so37674055ad.1 for ; Mon, 09 Sep 2024 04:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880689; x=1726485489; 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=PYgAVySTOtFl/MrFCMmK+Fl5uF1KDDdSmV7dSnMl93g=; b=IRlfjhAnHGbDtgmUvp6DPWlxNkm8z2jZqJ8UKs6PySySy+QUwd7mrSGlanBM3DA9mM qYPIsKCCke6L9BEC1b7FPXl80JGPsC6yz0Wc441QCOIWJYMeNy5Krf2ZS1rweyGR6hFL cB1MhE3awliEPvvjpX0Wi2Noj3kPB9jgLsaUs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880689; x=1726485489; 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=PYgAVySTOtFl/MrFCMmK+Fl5uF1KDDdSmV7dSnMl93g=; b=O1eZamixsJIWHod3K4U0FS0YtIrM0mn8LkHQgrNdDI5oacTMIePs2AvLBf+ktsds02 4WXEv3yqp+zNM6wV/gq5K2Gg94AZPEUiFdJAzLDoUjwxM2cRMmjyx503C5oPvG44zfy1 2jjjLEcs6Ge/GeOD2yAjh/kXUspm2QyxU+hnn+B0xWTG0rBopf5qKFwrwqB4WD6OndIM eCVroS8S+6xXGUjuPmYSZosnws0ZbCrLNCD4WnMkQ0GNDMf2gl6ojJNUmXqwOQ5wkqxO B83muJX9Up9fDClOSPRU0ulFw65G/xM02uwNPMCsG41AbxbZUuCIeQLHPQkiXAtWbref fFGg== X-Forwarded-Encrypted: i=1; AJvYcCW+N/ssyyFRi0gsYShg8AAqneb+Y78nLj8z9D1UAJllxc2EBjG75BT0uMxzkaf1NYq+bEafYnX79G27x17p+A==@lists.infradead.org X-Gm-Message-State: AOJu0Yyhw0Y9OCq1S1wYkiFwlgEl6yTXR/32x2zPLn7/6Ebzv3z4/+Ip 0tQx0jpdJGjexvLSmSqCjA+PwndVHxJZYHmVqYp++Lb4Ihgo3keD6YP6WlXaEw== X-Google-Smtp-Source: AGHT+IHdpdCmpZMYGzYffSQ63aRQugqmqnkmvvFcvB6KeCQXoITSbuvEd9XZmdPY2B49U196YUSIow== X-Received: by 2002:a17:903:1211:b0:207:3a4a:de43 with SMTP id d9443c01a7336-2073a4ae70dmr11101175ad.34.1725880688967; Mon, 09 Sep 2024 04:18:08 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:08 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 08/13] arm64: dts: mediatek: mt8188: Add SMI/LARB/IOMMU support Date: Mon, 9 Sep 2024 19:14:21 +0800 Message-ID: <20240909111535.528624-9-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041809_685424_46871880 X-CRM114-Status: GOOD ( 11.02 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Local Arbiter (LARB) is a component of Smart Multimedia Interface (SMI) that supports IOMMU on the MediaTek SoCs. Add the following nodes for memory management support on MT8188 SoC: - one Infra IOMMU - two Multimedia (MM) IOMMUs of VDO and VPP - corresponding SMI common and LARB nodes of the MM IOMMUs Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 169 +++++++++++++++++++++++ 1 file changed, 169 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 14e51a11f688..7e3a90c1a173 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -1310,6 +1311,13 @@ pwrap: pwrap@10024000 { clock-names = "spi", "wrap"; }; + infra_iommu: iommu@10315000 { + compatible = "mediatek,mt8188-iommu-infra"; + reg = <0 0x10315000 0 0x1000>; + interrupts = ; + #iommu-cells = <1>; + }; + gce0: mailbox@10320000 { compatible = "mediatek,mt8188-gce"; reg = <0 0x10320000 0 0x4000>; @@ -1805,6 +1813,37 @@ vppsys0: syscon@14000000 { #clock-cells = <1>; }; + vpp_smi_common: smi@14012000 { + compatible = "mediatek,mt8188-smi-common-vpp"; + reg = <0 0x14012000 0 0x1000>; + clocks = <&vppsys0 CLK_VPP0_SMI_COMMON_LARB4>, + <&vppsys0 CLK_VPP0_SMI_SUB_COMMON_REORDER>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VPPSYS0>; + }; + + larb4: smi@14013000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x14013000 0 0x1000>; + clocks = <&vppsys0 CLK_VPP0_SMI_COMMON_LARB4>, + <&vppsys0 CLK_VPP0_SMI_COMMON_LARB4>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VPPSYS0>; + mediatek,larb-id = ; + mediatek,smi = <&vpp_smi_common>; + }; + + vpp_iommu: iommu@14018000 { + compatible = "mediatek,mt8188-iommu-vpp"; + reg = <0 0x14018000 0 0x5000>; + clocks = <&vppsys0 CLK_VPP0_SMI_IOMMU>; + clock-names = "bclk"; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VPPSYS0>; + #iommu-cells = <1>; + mediatek,larbs = <&larb1 &larb3 &larb4 &larb6 &larb7 &larb23>; + }; + wpesys: clock-controller@14e00000 { compatible = "mediatek,mt8188-wpesys"; reg = <0 0x14e00000 0 0x1000>; @@ -1817,12 +1856,45 @@ wpesys_vpp0: clock-controller@14e02000 { #clock-cells = <1>; }; + larb7: smi@14e04000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x14e04000 0 0x1000>; + clocks = <&wpesys CLK_WPE_TOP_SMI_LARB7>, + <&wpesys CLK_WPE_TOP_SMI_LARB7>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_WPE>; + mediatek,larb-id = ; + mediatek,smi = <&vpp_smi_common>; + }; + vppsys1: syscon@14f00000 { compatible = "mediatek,mt8188-vppsys1", "syscon"; reg = <0 0x14f00000 0 0x1000>; #clock-cells = <1>; }; + larb5: smi@14f02000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x14f02000 0 0x1000>; + clocks = <&vppsys1 CLK_VPP1_GALS5>, + <&vppsys1 CLK_VPP1_LARB5>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VPPSYS1>; + mediatek,larb-id = ; + mediatek,smi = <&vdo_smi_common>; + }; + + larb6: smi@14f03000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x14f03000 0 0x1000>; + clocks = <&vppsys1 CLK_VPP1_GALS6>, + <&vppsys1 CLK_VPP1_LARB6>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VPPSYS1>; + mediatek,larb-id = ; + mediatek,smi = <&vpp_smi_common>; + }; + imgsys: clock-controller@15000000 { compatible = "mediatek,mt8188-imgsys"; reg = <0 0x15000000 0 0x1000>; @@ -1901,12 +1973,34 @@ ccusys: clock-controller@17200000 { #clock-cells = <1>; }; + larb23: smi@1800d000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x1800d000 0 0x1000>; + clocks = <&vdecsys_soc CLK_VDEC1_SOC_LARB1>, + <&vdecsys_soc CLK_VDEC1_SOC_LARB1>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VDEC0>; + mediatek,larb-id = ; + mediatek,smi = <&vpp_smi_common>; + }; + vdecsys_soc: clock-controller@1800f000 { compatible = "mediatek,mt8188-vdecsys-soc"; reg = <0 0x1800f000 0 0x1000>; #clock-cells = <1>; }; + larb21: smi@1802e000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x1802e000 0 0x1000>; + clocks = <&vdecsys CLK_VDEC2_LARB1>, + <&vdecsys CLK_VDEC2_LARB1>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VDEC1>; + mediatek,larb-id = ; + mediatek,smi = <&vdo_smi_common>; + }; + vdecsys: clock-controller@1802f000 { compatible = "mediatek,mt8188-vdecsys"; reg = <0 0x1802f000 0 0x1000>; @@ -1919,6 +2013,17 @@ vencsys: clock-controller@1a000000 { #clock-cells = <1>; }; + larb19: smi@1a010000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x1a010000 0 0x1000>; + clocks = <&vencsys CLK_VENC1_VENC>, + <&vencsys CLK_VENC1_VENC>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VENC>; + mediatek,larb-id = ; + mediatek,smi = <&vdo_smi_common>; + }; + vdosys0: syscon@1c01d000 { compatible = "mediatek,mt8188-vdosys0", "syscon"; reg = <0 0x1c01d000 0 0x1000>; @@ -1927,6 +2032,48 @@ vdosys0: syscon@1c01d000 { mediatek,gce-client-reg = <&gce0 SUBSYS_1c01XXXX 0xd000 0x1000>; }; + larb0: smi@1c022000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x1c022000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_SMI_LARB>, + <&vdosys0 CLK_VDO0_SMI_LARB>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,larb-id = ; + mediatek,smi = <&vdo_smi_common>; + }; + + larb1: smi@1c023000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x1c023000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_SMI_LARB>, + <&vdosys0 CLK_VDO0_SMI_LARB>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + mediatek,larb-id = ; + mediatek,smi = <&vpp_smi_common>; + }; + + vdo_smi_common: smi@1c024000 { + compatible = "mediatek,mt8188-smi-common-vdo"; + reg = <0 0x1c024000 0 0x1000>; + clocks = <&vdosys0 CLK_VDO0_SMI_COMMON>, + <&vdosys0 CLK_VDO0_SMI_GALS>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + }; + + vdo_iommu: iommu@1c028000 { + compatible = "mediatek,mt8188-iommu-vdo"; + reg = <0 0x1c028000 0 0x5000>; + clocks = <&vdosys0 CLK_VDO0_SMI_IOMMU>; + clock-names = "bclk"; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS0>; + #iommu-cells = <1>; + mediatek,larbs = <&larb0 &larb2 &larb5 &larb19 &larb21>; + }; + vdosys1: syscon@1c100000 { compatible = "mediatek,mt8188-vdosys1", "syscon"; reg = <0 0x1c100000 0 0x1000>; @@ -1935,5 +2082,27 @@ vdosys1: syscon@1c100000 { mboxes = <&gce0 1 CMDQ_THR_PRIO_4>; mediatek,gce-client-reg = <&gce0 SUBSYS_1c10XXXX 0 0x1000>; }; + + larb2: smi@1c102000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x1c102000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_SMI_LARB2>, + <&vdosys1 CLK_VDO1_SMI_LARB2>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,larb-id = ; + mediatek,smi = <&vdo_smi_common>; + }; + + larb3: smi@1c103000 { + compatible = "mediatek,mt8188-smi-larb"; + reg = <0 0x1c103000 0 0x1000>; + clocks = <&vdosys1 CLK_VDO1_SMI_LARB3>, + <&vdosys1 CLK_VDO1_SMI_LARB3>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>; + mediatek,larb-id = ; + mediatek,smi = <&vpp_smi_common>; + }; }; }; From patchwork Mon Sep 9 11:14:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796684 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 256F8ECE585 for ; Mon, 9 Sep 2024 11:38:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=t8SnkEIUaJgzB4YgotT7EsNuRM1+AXvDniyzdMxhF5A=; b=kYH7sRvjJGSUuw cHW7Yh49CDPq3jdFpPa5m2ygMQK8cDteHP80+8Fh/bS+hAl2KLY1/iaZpxAVQQmzEQjiPH04nluIM zb8imtheFwB6/N+dpxjZrVzR/tJVI3XDBeXGFIGH5OzruzPLaqHN3dPGjSEi0unbkS5TRtUiaPmXI C3XkqsDzGO1fAAjUxMhp7H58H1vb7soJjZZA7lI0vxT+mtt0CeTNSlMUlqCUZswhHhapelPX1IHna GJXQOtUfpYUIzUJdb507yb8aXa8XG16C2euy/SjAhwCL/isOy2o5ANSTkcEg+h0hq+z3FUcA9JKiA LI/UlET7xeqKzbmBs0HA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncjA-00000001hUe-36w5; Mon, 09 Sep 2024 11:38:41 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPM-00000001dJI-0SNU for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:18:13 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-2053616fa36so43982285ad.0 for ; Mon, 09 Sep 2024 04:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880691; x=1726485491; 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=t8SnkEIUaJgzB4YgotT7EsNuRM1+AXvDniyzdMxhF5A=; b=JNVXSCTmx3q7DsEZbs2Y0KM+18PLSrQ76QzUzZUvz8skCT87onf9pGahvm9QqNNYhM k6d6ouhv/9lPl4yc5AVS4gFNOm8NwDgB26vwDBNwGJ8KjyEeXxOG/3TjW4ibfVXTs84P IluMumfJjTPkg2/NPbcj7EX4tbzlcohZbN4zQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880691; x=1726485491; 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=t8SnkEIUaJgzB4YgotT7EsNuRM1+AXvDniyzdMxhF5A=; b=GNoXzupY+Rclfy4w6RIH12La/CRrLuW+MOVpDQuZCmwV02qz3qK6i7mECSMvA421Oz 3jqwJDGe5k+e9b1Re9BGEqNgMxqpiS9BG9JRY5/XeTVpjhP/i7x5Sz/XCtj8Fzpvqr8W e6pJ3Xhe6AESLiDclCAg3nfQlHA8yQozmq/wGkbss5yGzWxTUKoqc1FGvteyguRyNrmK iE8Y0yo46XrbXW4RO1tLOXD2cCKYxLpVTHnpg1PnIk8A9sy90jhAHJdjfhjuUaqgmZn7 0f21dTL7v/ol+bf91JVR8+0CIjWuDlQ1SjwFtLi309zIAZrRW1vOra+Ha2rc+5lwtuI2 BqDg== X-Forwarded-Encrypted: i=1; AJvYcCUET6XAq1iUjP1hfdgwsmgZmSMGIIA5npkyCszoMeT+1WSda3Bl1XU1OfwX04ZSiLVSTn8PmvlwAmT3G/VRqQ==@lists.infradead.org X-Gm-Message-State: AOJu0Yxao598AD50Lg1az9c//4fsTQLxqqzQ0W2q9RuQ4WiTzMCygZeX 5QyRVSzXg0eDCQ7Ct7UpMgS9uw+WbAQm9Iu9vcRUHvpOTjRWsC8Ed13YclxfRg== X-Google-Smtp-Source: AGHT+IHyDTzsdvKTYHYCRsjLXJj55VMYefAZZ1kao3wEu5P8Vpo/msMT/FaZZWK8Pig44zwKxNmXAQ== X-Received: by 2002:a17:903:244d:b0:203:a20d:5857 with SMTP id d9443c01a7336-2070a3c3a13mr73134925ad.5.1725880691452; Mon, 09 Sep 2024 04:18:11 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.18.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:10 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 09/13] arm64: dts: mediatek: mt8188: Add PWM nodes for display backlight Date: Mon, 9 Sep 2024 19:14:22 +0800 Message-ID: <20240909111535.528624-10-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041812_172222_77FA6582 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add two hardware PWM nodes for display backlight usage on MT8188 SoC, and mark them as disabled by default. Boards can enable the necessary PWM node as needed. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 7e3a90c1a173..4593bc1fb5b7 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1425,6 +1425,28 @@ lvts_ap: thermal-sensor@1100b000 { #thermal-sensor-cells = <1>; }; + disp_pwm0: pwm@1100e000 { + compatible = "mediatek,mt8188-disp-pwm", "mediatek,mt8183-disp-pwm"; + reg = <0 0x1100e000 0 0x1000>; + clocks = <&topckgen CLK_TOP_DISP_PWM0>, + <&infracfg_ao CLK_INFRA_AO_DISP_PWM>; + clock-names = "main", "mm"; + interrupts = ; + #pwm-cells = <2>; + status = "disabled"; + }; + + disp_pwm1: pwm@1100f000 { + compatible = "mediatek,mt8188-disp-pwm", "mediatek,mt8183-disp-pwm"; + reg = <0 0x1100f000 0 0x1000>; + clocks = <&topckgen CLK_TOP_DISP_PWM1>, + <&infracfg_ao CLK_INFRA_AO_DISP_PWM1>; + clock-names = "main", "mm"; + interrupts = ; + #pwm-cells = <2>; + status = "disabled"; + }; + spi1: spi@11010000 { compatible = "mediatek,mt8188-spi-ipm", "mediatek,spi-ipm"; #address-cells = <1>; From patchwork Mon Sep 9 11:14:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13797128 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 45240ECE579 for ; Mon, 9 Sep 2024 14:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=oNqbufpN5FCsVdK8ndQFqiXUCnbD9u84sO+9Of5lLKM=; b=Erdt3AvnMddLJg e5WGGHJwV2l5NBwvqXux4utlLCcHsU0469CuUQ3D524rPpqn2cfWVYKpQ6mh58UmfWg6T4cqbyXhG HnM/FonHr4Hf8YRDlu+jAtbRtJOfHF5kDouVJXVCWfM0xAfYECdzC2l7HoZ5u87JCcY++fsjmlLx6 qIqDsRVmVwTFVPgcMs9GxvdJkow3UUSQ4Gwn2c3bQY+goeP9eb3oOjthQjEppQVm3UJl/tiap/R04 UnbAVt2LE2SaZIhAlLYMVbNr3CImt/LIiCFQcPI22Jq9Xf1hbfc8wKjuzbtfdxsO/phxnGkOh79xL ld21WrbY5uhffjDZK9qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snewK-00000002B65-30Z3; Mon, 09 Sep 2024 14:00:24 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPO-00000001dKc-2ynJ for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:18:16 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-2054feabfc3so36356135ad.1 for ; Mon, 09 Sep 2024 04:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880694; x=1726485494; 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=oNqbufpN5FCsVdK8ndQFqiXUCnbD9u84sO+9Of5lLKM=; b=RKF81GibY2oxdlSlA03x5z0LHRFMZni4at8Bc5cNQJ34uZJgujIFeVfsoCe/Dx+DLZ 7Irw+BmNXx+vj6szb1IEREzCfhK5eyD1EKKC51Hgt+q+GmOWh2EbnIuTr9QVVay8rZkh srcVw1RuSXOnJvLqroWjAnaR47vALQgUwgpMg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880694; x=1726485494; 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=oNqbufpN5FCsVdK8ndQFqiXUCnbD9u84sO+9Of5lLKM=; b=YuXcu4wWKa0DK10yFv0bvcQx/Nx3zcjlJgd9lDeWKj/h1LqJvB+6815esXCmmOI4xJ SB9leJmXVwxt3oHzQBTF1k+BnDUiQu4nKJQflLAMBff2J7KlndIC8RpWQRxQ5vixjxWk 6S5ypMLPnKmjaWtGWn7ClXLTpEAPRpvvEJeLiYnghHbasimPD7JXj64NnLeOdALOfE1e kfBJg+EW8oUsf9IK9IN4p4XF8NY70Z+jcghRqLQIh322rMEeBaFvv/O6f1RNfvQm15zX O4Bc2U4eVZLrmVccPrHow5eSgkUVn1KMt/MZ8h1dnG4nOooeI7b7Wh+U5cFjbxtg1VHV 9b/A== X-Forwarded-Encrypted: i=1; AJvYcCXBxnjCYwFMjjEFLUkqVsUxcLblP1w4JCJdKBlrIBinoDFYfyC/z715bX5xKOhFGMopExfHxIA/q5VX4xZ5iw==@lists.infradead.org X-Gm-Message-State: AOJu0YxgDHTrrG2dk+EVV3g7FUMOyv9cjGQltw64yUnQKuxA7U1p/fPI n5FCrXF9fF7DzbGRHnzkfIjFxoRqi9opWIFm3eMWC4Uda4nylhJeHFGWbaTOag== X-Google-Smtp-Source: AGHT+IGiL0uiJ3/UtmaNB/VuKJWcQ4ITc3x9BGi+tHsy7sGnjDVOgP5vjRA7jI/WSNOATWmtN91Reg== X-Received: by 2002:a17:902:f606:b0:205:76f3:fc2c with SMTP id d9443c01a7336-206f05157bamr190100235ad.16.1725880694082; Mon, 09 Sep 2024 04:18:14 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.18.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:13 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 10/13] dt-bindings: spmi: spmi-mtk-pmif: Add compatible for MT8188 Date: Mon, 9 Sep 2024 19:14:23 +0800 Message-ID: <20240909111535.528624-11-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041814_786910_13F9447F X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , Stephen Boyd , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Hsin-Hsiung Wang Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add compatible string for the SPMI block on MT8188 SoC, which is compatible with the one used on MT8195. Signed-off-by: Fei Shao Acked-by: Rob Herring (Arm) Acked-by: Stephen Boyd --- Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml b/Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml index ac99883a3f29..7f0be0ac644a 100644 --- a/Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml +++ b/Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml @@ -25,6 +25,7 @@ properties: - items: - enum: - mediatek,mt8186-spmi + - mediatek,mt8188-spmi - const: mediatek,mt8195-spmi reg: From patchwork Mon Sep 9 11:14:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796970 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 9CE6FECE579 for ; Mon, 9 Sep 2024 12:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=ckgyamt9fIAy8TE1Yk1YBjU42OpcFXF6RxP0WQ2W6QI=; b=4I/M1i0mCYbQra cLrN7IAjvsgxDNtmOhdyuFujSeMr32RBNv+8l+Qpxrh7CWAqijBRvnS8NzmOuCa/pYOO/H+fdfDRw 09N+SlWHacgg/rwtsruZ6JlnBiCtpCgy67kWIQOTcOAzA9aYEeYUFGTlCxaxglF7ojYzJ0bO3VvgO IbcVmUtS4C3VPt/BkzmKWZOaXypNXIgaboYYQiHju4qPnZvEsj+dfBkkaAwEiiAOzaC/WtHe9qRbJ tF0A3klvrzXh+YrRNECZ32gAnngjZublGgYvAmbY6v/VicmB0LN9IfAjbNXN1YoXDsBGWxmhBSinF IpvmvKqUgpbUcHR5uMTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sndnS-00000001uCg-0emS; Mon, 09 Sep 2024 12:47:10 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPR-00000001dLu-0osZ for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:18:19 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-207115e3056so12089515ad.2 for ; Mon, 09 Sep 2024 04:18:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880696; x=1726485496; 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=ckgyamt9fIAy8TE1Yk1YBjU42OpcFXF6RxP0WQ2W6QI=; b=hJZCjfL2kJUJcPylSi3eazOxXJnzBtFnaN8vpP4lGDAMCsy5L7h/AAh5t3JCMWGaUV XUsbHzSySwZ9SFBJwGTKwK2DbbefbvK8vkl1307uko2RRzG5ubKx4DaN45mGwUfHgOWO pxzNQtsxDgjOlaEMzho/Lh+Elo05quJGKa4T0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880696; x=1726485496; 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=ckgyamt9fIAy8TE1Yk1YBjU42OpcFXF6RxP0WQ2W6QI=; b=fU0eC+VMX4QOdxbLlXMED6yxpN9E/TbyG+kNO856l3O9frteTJUGrs8Qd3iaZomFNH jxvQxJUZ971sO6Fmjp2iVRPlMY0qGM18m91nQJPL3TeIP4rKOgnCVYPf1fcf+LLLic7T GRpxeRjHW/XtqDryFv/jLQjs56dq43t5q1c4xx2doZLlH3IIvQxkHtl5TXH34FD7xRhN j/VhZFuz/JtzsgCI4iN0j2wNPKnt6Px+qEtwWwSYOAC+IZYksvEsRUM9C/7Dr15p2Yus 24X7BWeLZFyXPiJIiOLs/TVEH//MzBz3KxUuD71/1ugJWCTkigjOorAb8Y4FKA9mKkOJ 9cPg== X-Forwarded-Encrypted: i=1; AJvYcCVEWLruAP46KHE3i6K5ShEuUoGaG6KQJfB/en8ikd3PavqQiuyv6aEnHVRKRa8DPGz+a1NuqKrG8I2x082GnA==@lists.infradead.org X-Gm-Message-State: AOJu0YwVLNN+ZVP79TtMKYEEO80//f9a76089oZTvSzqYTMFrLIsDtMm 3lyVxN7SGcMPcR3FiiQcvnd21/IBTrWB7ac0jQze+1lrkQZG4KThYbWU9XUZRw== X-Google-Smtp-Source: AGHT+IFRpkGOOqIZHwaCAgwZfgwkno7RZN67aHUXn/a4/ib3Hspbmk92vpL01CBwnX4m3qWy82ITrg== X-Received: by 2002:a17:902:ea12:b0:207:1826:2f0d with SMTP id d9443c01a7336-20718262f70mr43516725ad.59.1725880696573; Mon, 09 Sep 2024 04:18:16 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.18.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:16 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 11/13] arm64: dts: mediatek: mt8188: Add SPMI support for PMIC control Date: Mon, 9 Sep 2024 19:14:24 +0800 Message-ID: <20240909111535.528624-12-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041817_297423_8843F63A X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add SPMI node for PMIC control on MT8188 SoC. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 4593bc1fb5b7..08f13ccefcfc 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1311,6 +1311,18 @@ pwrap: pwrap@10024000 { clock-names = "spi", "wrap"; }; + spmi: spmi@10027000 { + compatible = "mediatek,mt8188-spmi", "mediatek,mt8195-spmi"; + reg = <0 0x10027000 0 0x000e00>, <0 0x10029000 0 0x000100>; + reg-names = "pmif", "spmimst"; + assigned-clocks = <&topckgen CLK_TOP_SPMI_M_MST>; + assigned-clock-parents = <&topckgen CLK_TOP_ULPOSC1_D10>; + clocks = <&infracfg_ao CLK_INFRA_AO_PMIC_AP>, + <&infracfg_ao CLK_INFRA_AO_PMIC_TMR>, + <&topckgen CLK_TOP_SPMI_M_MST>; + clock-names = "pmif_sys_ck", "pmif_tmr_ck", "spmimst_clk_mux"; + }; + infra_iommu: iommu@10315000 { compatible = "mediatek,mt8188-iommu-infra"; reg = <0 0x10315000 0 0x1000>; From patchwork Mon Sep 9 11:14:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796685 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 693F9ECE57A for ; Mon, 9 Sep 2024 11:38:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=/PJpXROupFzpexVoTGiiVagAL/RrrwaZ7jH85Py7k9E=; b=2zuTcX7C/Am4kF KVp0vUuHPeJpmD0YO58hFkQUaReMMmZ3w8OUw4QGN812moI/+fmOMjYSuRCPH7if5RLWf/81KkW+R oNRPAML/r2T210N2nwWj/GS9CwI+b9waG806Ri22R+QE5tusREzFTISBDQ7ZusKL/OCfUE7QyEi90 mtFfTBjzVoCcn07Ik1uIZr2Snopm+48Fibbpxm5InBFpakKGywpX39vgqEaGXzv/kgB5vbTxi0+lX AINpIEaUDijXqAkkCJ/LCFex3JMsmAiKYU+oTfDV5klVHKQQqio17BeskMHQlgW1afziZoy4RZ0uv BtHH6CaoeG7k40X8C1Dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncjG-00000001hZV-0e76; Mon, 09 Sep 2024 11:38:46 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPU-00000001dN2-2CsD for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:18:22 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-206e614953aso31933065ad.1 for ; Mon, 09 Sep 2024 04:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880699; x=1726485499; 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=/PJpXROupFzpexVoTGiiVagAL/RrrwaZ7jH85Py7k9E=; b=ZC74DPb1XaEFqT3bBZayX/QHaxGx/yzcMG+9a24wT0M86wDPPgoggsLsjlO0Ofxr/c OuPM+AESqbARe6iBSTkZDBW4CWEJ2GNdRTy0RrOCbICU5LQtK4LyvQYpUVRvH7jy6mCn OwkfETbkuJ5gyDP0jEEToutODT+M4+JrMrnjE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880699; x=1726485499; 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=/PJpXROupFzpexVoTGiiVagAL/RrrwaZ7jH85Py7k9E=; b=WDdIi/fxZt45MHPa92jN7dNsRHSPrsyy5TT7/9FNOIpo2ECDtU2gVHtPJKbxwjP2E1 fvSHXjZkIjoWa09JF9wnod50GTFZWz009BOlzLY5VXm3QVSMANmjQzmarnz/QYLPLOvj xQlVUNMze0y9HAHupDXvzTC2rO5qZLmWBtz04JDZ2V5HKXdsmfjCvdPIW35Yud7vzrLR sESPwL9Tvk4Vv5Vn2W/lWNHYsM+UTieaEKigCFJofG3NB6B4KN+7lY39EUL5bRSGfZ+8 bPO0ytsS1JeUGaWuziGrwo098ScD0nk/Jd56lWvMIxm2Uogn75jbi99CCPNW2l6tWaVU Z0mw== X-Forwarded-Encrypted: i=1; AJvYcCVY4bSFVSsWNZEi4CnkMmFME5uyuU6L82UBl5/hMsexHNkt8YqVMrw0I3YxsDhyPjtqc7uKY3h2dK3d5CdU2g==@lists.infradead.org X-Gm-Message-State: AOJu0YxK0SY39PajJlYMl1AC1fx0wjdjghce22DqHKfoRTLguNrAE+Vx 3r4bgzvQ/pALMzpL4oKmklMkGqyCYY3mYH4qLSNz94YWMkIXLh0IQAQURbW72A== X-Google-Smtp-Source: AGHT+IFb5WZHwqHsufJH6qAL0gHUxmqndWyboWWJlOq6FZ3jgewZxyJSYDmEy6wDlOwb6HBwJFmDYA== X-Received: by 2002:a17:902:c949:b0:206:ae0b:bfb6 with SMTP id d9443c01a7336-2070c1967d2mr79655945ad.40.1725880699360; Mon, 09 Sep 2024 04:18:19 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:18 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 12/13] dt-bindings: mailbox: mtk,adsp-mbox: Add compatible for MT8188 Date: Mon, 9 Sep 2024 19:14:25 +0800 Message-ID: <20240909111535.528624-13-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041820_585522_E49E5E39 X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , Allen-KH Cheng , Jassi Brar , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add compatible string for ADSP mailbox on MT8188 SoC, which is compatible with the one used on MT8186. Signed-off-by: Fei Shao Acked-by: Rob Herring (Arm) --- .../devicetree/bindings/mailbox/mtk,adsp-mbox.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/mtk,adsp-mbox.yaml b/Documentation/devicetree/bindings/mailbox/mtk,adsp-mbox.yaml index 72c1d9e82c89..8a1369df4ecb 100644 --- a/Documentation/devicetree/bindings/mailbox/mtk,adsp-mbox.yaml +++ b/Documentation/devicetree/bindings/mailbox/mtk,adsp-mbox.yaml @@ -17,9 +17,15 @@ description: | properties: compatible: - enum: - - mediatek,mt8195-adsp-mbox - - mediatek,mt8186-adsp-mbox + oneOf: + - enum: + - mediatek,mt8186-adsp-mbox + - mediatek,mt8195-adsp-mbox + - items: + - enum: + - mediatek,mt8188-adsp-mbox + - const: mediatek,mt8186-adsp-mbox + "#mbox-cells": const: 0 From patchwork Mon Sep 9 11:14:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13796686 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 B5064ECE58A for ; Mon, 9 Sep 2024 11:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc: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: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=2E0O8WG9qwHR9JUYmxw/yuHs3HNYdoAdYl7RzElF3KM=; b=e/wzvZL+92zmgU f4Ar8SjgXpCOS2auwrPF37JuOqwUviANQXpza9j51AXCFcmEVHMbkAZJt7CuJnOEcl05gvzSGbjxe gc1V4m50ouPgMi/PITZKHXKX1PceU8DjH/Yqk/kh02YtIbJArRsWQrywva4DjpEBNmaC3NZYCVs4d 1eZVn7V8HRgyWkCetMocN+tpgSSqc3fYm2BX6OXUdvS9FcqvWiWpEBEkUH0LyXLnFaA6kF6/htUGA x1W/Ci9h9qJrDGz+wHJMrH4cbM46vupVOvMBB3fOX6qoXDhh0qaOqoJ1wiPUGCvVoQEntNFxZv2im TquJ3StyRZMDUbN7p16g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncjI-00000001hbp-3QEb; Mon, 09 Sep 2024 11:38:48 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPW-00000001dOP-2f1D for linux-mediatek@lists.infradead.org; Mon, 09 Sep 2024 11:18:24 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-2068a7c9286so37676635ad.1 for ; Mon, 09 Sep 2024 04:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725880702; x=1726485502; 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=2E0O8WG9qwHR9JUYmxw/yuHs3HNYdoAdYl7RzElF3KM=; b=gy5Q7L/bBoU+UNxNkFzU4HUMYThFIy3tBeP69+lB1hofFY1MVAe/d3WTNx7vhBWEPG y7D/zuzdA63BDPTIN05ljIZFUaOJsruCzSc6++blMGi88+ENOy/J32mtkqN0vWRwh4GP Y9NiFBZWM4JcaDJUv9GJE1EhiV/+bgo5sjmoc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725880702; x=1726485502; 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=2E0O8WG9qwHR9JUYmxw/yuHs3HNYdoAdYl7RzElF3KM=; b=QtYhDlmnQxgaNBrZtTyfa9phdkesljdtBMetTdd7jB+4FujZ5bDO0ZSpQYULTHcKiP p2D/89F4+Pp/Tsx3D+KFghA2RvS0PNnYZCBQIqmpRXh3n08glrz4kgSdzsFlRpKzj3dv AMmG+gRj1DsQm3zg6RBOtCi/seQYPYqBMsg73CSY0ZjG/7pgTg2OIBY7/HNfxMjVXLQ3 mH+mPORme3p7SDUgEJwPyBsKlb++3tpHyRViAFD6akLxTs/CLMakulagCnkIoQ4zdWxm rUlpCe5gVA1vwpCICUy5iDqT9PUIT/VimOxbQj9dnCVi6HnlzY4gebiZG6LRvXEmlaGu 6MGA== X-Forwarded-Encrypted: i=1; AJvYcCVcPYZHUrXqsj7mP0wa0miFtcRgL01DhTKip91VErcFFktlC05WWOsKmcNPNS+C9aIRi4Cfm67BvHdNu0aN6A==@lists.infradead.org X-Gm-Message-State: AOJu0YxYj4UPIGiqYOxfiddrnvuDZiOJaxk/fQiji4b8g3qXnUHJaZvP bLqyVzdwLo+QpFRn9dv0fQ9bnYxsxjw/mkdnbWc8noyiU5ZodFT8PLs/z7tf/w== X-Google-Smtp-Source: AGHT+IGmr6w0YJFJy21E98ud0odKV33bYvulxcOeJu7Zcyxoe1V9M007M6uliWys5/1acdhBj/f9wQ== X-Received: by 2002:a17:903:230a:b0:206:c486:4c33 with SMTP id d9443c01a7336-206f0522330mr138456765ad.30.1725880702085; Mon, 09 Sep 2024 04:18:22 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:6647:6d5f:dd48:8f5c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f1dc55sm32039745ad.186.2024.09.09.04.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:18:21 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH 13/13] arm64: dts: mediatek: mt8188: Add audio support Date: Mon, 9 Sep 2024 19:14:26 +0800 Message-ID: <20240909111535.528624-14-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.469.g59c65b2a67-goog In-Reply-To: <20240909111535.528624-1-fshao@chromium.org> References: <20240909111535.528624-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240909_041822_718855_75D87FBA X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add following nodes to support audio enablement on MT8188 SoC: - sound card - audio controller (AFE) - audio DSP and its associated mailboxes Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 96 ++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 08f13ccefcfc..d99447a01a60 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -431,6 +431,11 @@ psci { method = "smc"; }; + sound: sound { + mediatek,platform = <&afe>; + status = "disabled"; + }; + thermal_zones: thermal-zones { cpu-little0-thermal { polling-delay = <1000>; @@ -1356,6 +1361,97 @@ scp: scp@10500000 { interrupts = ; }; + afe: audio-controller@10b10000 { + compatible = "mediatek,mt8188-afe"; + reg = <0 0x10b10000 0 0x10000>; + assigned-clocks = <&topckgen CLK_TOP_A1SYS_HP>; + assigned-clock-parents = <&clk26m>; + clocks = <&clk26m>, + <&apmixedsys CLK_APMIXED_APLL1>, + <&apmixedsys CLK_APMIXED_APLL2>, + <&topckgen CLK_TOP_APLL12_CK_DIV0>, + <&topckgen CLK_TOP_APLL12_CK_DIV1>, + <&topckgen CLK_TOP_APLL12_CK_DIV2>, + <&topckgen CLK_TOP_APLL12_CK_DIV3>, + <&topckgen CLK_TOP_APLL12_CK_DIV9>, + <&topckgen CLK_TOP_A1SYS_HP>, + <&topckgen CLK_TOP_AUD_INTBUS>, + <&topckgen CLK_TOP_AUDIO_H>, + <&topckgen CLK_TOP_AUDIO_LOCAL_BUS>, + <&topckgen CLK_TOP_DPTX>, + <&topckgen CLK_TOP_I2SO1>, + <&topckgen CLK_TOP_I2SO2>, + <&topckgen CLK_TOP_I2SI1>, + <&topckgen CLK_TOP_I2SI2>, + <&adsp_audio26m CLK_AUDIODSP_AUDIO26M>, + <&topckgen CLK_TOP_APLL1_D4>, + <&topckgen CLK_TOP_APLL2_D4>, + <&topckgen CLK_TOP_APLL12_CK_DIV4>, + <&topckgen CLK_TOP_A2SYS>, + <&topckgen CLK_TOP_AUD_IEC>; + clock-names = "clk26m", + "apll1", + "apll2", + "apll12_div0", + "apll12_div1", + "apll12_div2", + "apll12_div3", + "apll12_div9", + "top_a1sys_hp", + "top_aud_intbus", + "top_audio_h", + "top_audio_local_bus", + "top_dptx", + "top_i2so1", + "top_i2so2", + "top_i2si1", + "top_i2si2", + "adsp_audio_26m", + "apll1_d4", + "apll2_d4", + "apll12_div4", + "top_a2sys", + "top_aud_iec"; + interrupts = ; + power-domains = <&spm MT8188_POWER_DOMAIN_AUDIO>; + resets = <&watchdog 14>; + reset-names = "audiosys"; + mediatek,infracfg = <&infracfg_ao>; + mediatek,topckgen = <&topckgen>; + status = "disabled"; + }; + + adsp: adsp@10b80000 { + compatible = "mediatek,mt8188-dsp"; + reg = <0 0x10b80000 0 0x2000>, + <0 0x10d00000 0 0x80000>, + <0 0x10b8b000 0 0x100>, + <0 0x10b8f000 0 0x1000>; + reg-names = "cfg", "sram", "sec", "bus"; + assigned-clocks = <&topckgen CLK_TOP_ADSP>; + clocks = <&topckgen CLK_TOP_ADSP>, + <&topckgen CLK_TOP_AUDIO_LOCAL_BUS>; + clock-names = "audiodsp", "adsp_bus"; + mboxes = <&adsp_mailbox0>, <&adsp_mailbox1>; + mbox-names = "rx", "tx"; + power-domains = <&spm MT8188_POWER_DOMAIN_ADSP>; + status = "disabled"; + }; + + adsp_mailbox0: mailbox@10b86000 { + compatible = "mediatek,mt8188-adsp-mbox", "mediatek,mt8186-adsp-mbox"; + reg = <0 0x10b86100 0 0x1000>; + interrupts = ; + #mbox-cells = <0>; + }; + + adsp_mailbox1: mailbox@10b87000 { + compatible = "mediatek,mt8188-adsp-mbox", "mediatek,mt8186-adsp-mbox"; + reg = <0 0x10b87100 0 0x1000>; + interrupts = ; + #mbox-cells = <0>; + }; + adsp_audio26m: clock-controller@10b91100 { compatible = "mediatek,mt8188-adsp-audio26m"; reg = <0 0x10b91100 0 0x100>;