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: 13796981 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 C775AECE579 for ; Mon, 9 Sep 2024 12:46: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: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=inMWF7mAc4RQp01FZVAzZYJjZGIEnM27V9mYFjLFKXM=; b=MAKixASPa29Z87sieKWv5quvjx gS0h6E46jk7c2uq5oLXM/cG+DA8KvFvQpNLnnKAacxd7F/fPByGt2IrpuhusK/z9rsWODmYTI5qAj dyk1b3tM8Sr1b10FzrHHh30KorDZaAztEtKJyE1lOb64wsKhuss7vdyk5o5N9rGa7ddFDzyC7Of6b F6fBiJC4FJebU9ebjyNoRYTCb2y6wfFTuN7Hg3BXom1GMPEn195DWNPLaSMQ19wBGwcksx3CB6r7n OGoFOX8u6xZwixr/l1KN296z3q8XcODLxYOPE+nzYadk3lWIiSTduKR4JWHsKf0xhk92BkenzLT9O VI5GmIqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sndmo-00000001tZd-087O; Mon, 09 Sep 2024 12:46:30 +0000 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncP2-00000001d90-0ayY for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:17:53 +0000 Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-6bce380eb96so2596537a12.0 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=xH1TiZOBK4ftnM0Fx/lI1NlyHGOu3qlDiNZaJ6k364Ov4kG0d0zCjwIXG747DT2jb3 FTUzhThdQPhadHKBRBWi1fTlS4z07+IcCwXhYxqEWu9UyA9OC4ZHUm75yUprAKtr7rXJ 83EM5tV9xnl5/GdC3q9/39sCXxZsBo8tdKjIqsQzN1jAFP8BiVTYw70Lo75ptBt0aFto Es6U3qE6FPkdujATmQsYCDcbaMTjCtpIlEIMiQEa1mFDFDqoGBJxBi9QKLseRMPyIJ0/ q2dDPrLYpRthIDxX0NGVuGFu+K6/SBiJJkeAhmr28xxAClOCqAJ1qxWdZEInve2YcoZm jS7g== X-Forwarded-Encrypted: i=1; AJvYcCVUvdYRzi4SJmsV3Sbg19YJjPVWmuw0ac7yO59Bwl5yFXEe8hHgK+d3Q3Gl7zR4jd4rKHCX5tllHZz6SziMPQuo@lists.infradead.org X-Gm-Message-State: AOJu0YwdQx+hnBrsB6+8DtmOqt5xQkxNk7lq3vqAvRXPDuJK1fWiTYEZ QttIcYRSj2l1XXZ53su6bhn2SiXGP2/QLWxsbeRO31A45jI7tKv5XWFNXbFmuw== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_208756_DEAEBE4A X-CRM114-Status: GOOD ( 10.24 ) 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 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: 13796982 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 8DE22ECE579 for ; Mon, 9 Sep 2024 12:46:55 +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=KFcYjNN1qXzDlnBkl6i0qfOJ7Ms9qe82BWNfSpUlHsY=; b=jI6QRldwMaWzUIa+gGqWC0Px7o fOtNFi2muUTR3Nq6zKCNn+e1cbWwmiT/asGdZGtwZRR5r6WZmGciSissERudbxZo8x5tCV6b2wuu9 2xKVWoV0JIkW1aYQB9p01D7HPnJq5+2YDxtIp+CDe2nVqDQj+R003Hn11uwtZaqR/ZhH/2bBy7fRA xpCE+nArHioKNlCiXPFjWVv/qfC8cvu33o1NfLpMzEBYppr20Uk6eB/pY4mnj2ihOQxwkEXRgXO6I ywcnxI9cw5ENS4KoFA4bIbNyWAOSOErGrSOZPQM/HNu11Orlrq7RQTej1Dj0yHL7knqyd+iaGVD75 2SwFq9bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sndn4-00000001tq4-3kiS; Mon, 09 Sep 2024 12:46:46 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncP4-00000001d9z-1R0T for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:17:55 +0000 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-2055f630934so31436715ad.1 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=XRQ01NrJVKHz/0jXU7XOAmoI5IKILX5Mio3sqHuIh3naGjEe4ggSmzdO1SI1ZMW9EI m9HYT80rvq6XxUhu1H7DswoTclTC9Ryzs+yWSYDOB51vSeE7rQnmwJsxwxP8sFqLE6dM IFd2x0Eg9rsvEf1MuwDGNK0T16IKd5v0r6e20DTbMDKU8iaUa9F5sNHpg3k0XqeLphCz 9QE0Gsv5fTjdamQiyj7nrMd+ZfXqPGEgWeQ5P44CTNBvGE1L+NrBPbD4gIG97VyAcdlt OWQnB6M68xQaA0+AlP7cst5PC7HZte3iWWsthcu1wjYYXfF6yTOkCDh8gf6k4PXKbh5S /BeQ== X-Forwarded-Encrypted: i=1; AJvYcCVO+//5uhtfpD4rKG4XQ2FvBhsUd/i6bG8Xe6x/wZ43PpLRqPqWLCk/tzkldm6M+1pYH2bb0BpCDgZBc7Kai1jC@lists.infradead.org X-Gm-Message-State: AOJu0YyI5k7TeZJXFsASn+N0fQvmnfqIIrtwg2cGGketN9hliOzRcnAp npt4yzdFgmK5DC8omfJuu6Ve1tqo7SLU2QPnOzUeBrOe6+aEuVCKyBxiqYEEqA== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_394229_C1C906C1 X-CRM114-Status: GOOD ( 11.91 ) 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 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: 13796983 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 E64D0ECE585 for ; Mon, 9 Sep 2024 12:47:05 +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=q1Ttr2z+4sVDsV8+3XUKUGFQBqd5IhKsFwImuWWsKWQ=; b=O/ThErIdJ5/3S2XRkYIXydGMJ7 OY0RkImSCXttVQWF/JzNO+ctthGjUIUwunvmB7L6NMXQwGrtiBRrtgsPI47Fe6KINt3HHoHbua1Wq 0f0NBv/35UHYaga6ymWQGmdrqU7jJrMChqT2/Q2d6h85GbHPjv8BzHRn6Ttgl6wNxuoXFpruds5QK cwmg7fQ7p2rFmtF/0cHwCAIpHG/RgDWAkoaG6xalTftT469eXo7DKyJhcM+Qll+CroxwFdq02MfhL wdJQ77gZ5pNhwEDf1zbwa79bhOI5x+Xv0ghr1eKr2rY7vNDJoXkM8rC20888Dknc64lVUpu+7rcCP 326vhlMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sndnD-00000001tyd-1uOe; Mon, 09 Sep 2024 12:46:55 +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-00000001dAu-42GU for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:17:58 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-20688fbaeafso40991595ad.0 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=bcypmlhuh+qvlOb8IGznNZ3U4ylS92xjAGTyygQLIlJa2LcAevkkvBNHIfOzqS/UXZ Giv2yt03+z6SQlZsCbQLLmiKGdWDJFzU5W0oET9Zm1vMayBr33k3R+yxYCLe01/WDnG4 YCgdlzPZsYbjlAwS4lUuE45En5JQIieoJt8MwSLdS68c88PYVPhDHrbCiOh1jWZtmn6p trQ1yT3ldmVncgMDPt2UfAvcMlv30n54wLa7+OXEjxOp2WxKZ4Tq2PbZjFCAFxIQyQFi Rukez+nNfgoSaNGWEpssV+PsuAEtpyx8OX4xaHWkiRaBN3gNPvgNfnSUUuU5+6qcXLS2 N4hg== X-Forwarded-Encrypted: i=1; AJvYcCVs9RnTnB0KjNnsEYo591Z2c2zpH4nSRRQugPLnejUUVg/sciuqj//4ERpaeioEeQo5QZN8JAkuGMf6No26n2Vc@lists.infradead.org X-Gm-Message-State: AOJu0YzZhxwKpQIGK1dpQglIJQi3BDfl7xrQtfIX4alyRKZvpkuP/U2H YL9sIA+/hF6huog0uLMSCLSBlfSEljHO+1btFWhqf43X0Su1s8T0y0jbXtqU3Q== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_024007_68ED1EA2 X-CRM114-Status: GOOD ( 10.96 ) 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 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: 13796985 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 98A13ECE57E for ; Mon, 9 Sep 2024 12:47:12 +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=k98xHcx8LIPGVP0kPjUAh1AHHL+3f8QtEI3GBp8SnEs=; b=WQ75egV3MQ/2Z1vSREXbrD2l15 zH7L+L4Z5fW94DmOtniZcPRBplzYw9b7Y1knmq515fF8mnV6XFlGJBXaUJETfF3sPoQtSjigO30X7 XU0cLXXcwSHfVkQbt1eEw5mt38fsWjHAACn2sDAmhNWUKb/5zx6dzUNnPTc/pb65SjohyMSek7QIT qctBXEc14R19cXZbk4F6sXYVzl5l9T1x6AEkOrL0faGljwNkiyBWDlFtZ0rvcCYZ92XXhXT4SMC09 boZD7cXQPoj48P3p/HD8qI8bWGPHLATSAWtOp5v/ufC6U7igOuS9+xLtOo70mYFpRZMAqq76Hd4X2 LkLDhSTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sndnM-00000001u6S-1gJg; Mon, 09 Sep 2024 12:47:04 +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 1sncP8-00000001dBs-35ti for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:00 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-205909afad3so41103065ad.2 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=AkSKenp80al9PexU0Ux452lYL8SpLd1cbxGHurwS+gEZ+0xPuxKqfR1XMJq3f1+qw5 NKutJu3ssKVmmQ6CB8Z7+YpclQUXj5+ypPX+f/BOM10c9/fpFtT8u7Ml9cHVALoopIdb NgywlENVoUJ8dCGSaRFmTUzrcKcRcCq5xmgpMACSc8VaSrb1eGLAdi5Jf+VHtVssGF6e w9i6axJeIn7sPI9DtId7rHhBUSAmYEjpdaefmDOgnaba+4yEs4gvmfxwKo0Vau0wgoi6 6+S5KY3VXLmYlBIkwiFl889XIlR5Dyy/mKQlNMboN28NRrxEhhhyDKI01Ks8/C0Gq58G DGTg== X-Forwarded-Encrypted: i=1; AJvYcCVKVyP3kuA8s9NB0KbjiVZVDFTUeKD0yR5cQNVhY1d4Cpf4ORytDAWHhU1KBHC6agU8SOxfG2PVNRdD4a7UUQRw@lists.infradead.org X-Gm-Message-State: AOJu0Yw3FseECFE9FpAPP3nQSMDzDx2gSWAuM2CLjKrpWF/UhuQfmVxx tqICWZS153mMVQnqYsBibJweCyYX5rUMphZ89GnV23HXHTaK0pMlljfx7p88yQ== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_041758_800482_31511A39 X-CRM114-Status: GOOD ( 12.62 ) 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 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: 13796777 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 1CBC7ECE57E 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: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=eSPMDqXmxOOBZ2+bT3H0bytGBe/kVJSeEJXvBbWjwBM=; b=wKlDeRjjScWElkhiifdslU4uHq ZIs5xGrLWES6Q9yxCVA660UYcQ8TqLyiYMDLe22bN8SDxdKQTCOXE2PlBWgKi3+tBUEwrppikkElR fDXUfVZDM+DQBqW1WHUIE1kZCfLCFw+r5ZcTAT1oiaHD5eB5ZeiVXX8CyEh5BSUs9HQBDPFu28Pva daH3tTMSoArwFmdTQuVlQYfL8GtQ7yLq3g3S1qKmL6cycxpDui1er51jg7x97gZ4VdZu46yv7R0rU 63dh3mJAb0+PWhbLeRPbD/pQD/ASGgppwDTtShGPeNQi/GwTgAG7FqA6wLS59apdI4R/gHP0ImpGY KJ+z0NWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncj2-00000001hPY-3JN4; Mon, 09 Sep 2024 11:38:32 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPB-00000001dDL-2w7N for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:03 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-205659dc63aso40368815ad.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=RKb8a/WgMjM9f+7jwNjY93MlYb7p+qU/ykjG2P3UvQTm1I1ntRxYDYEbl181X/wIwF 0JWTZOLF6k/oW9uoRprIeWFTIvMksvHQ0ky94wtxA62SyUxfY/vwSgEeftnPN3U78iVt PVlw4pqMfeG+fZ+iQLyz4tNXfeUU3sRE3qUfaSzo87K8G4ieMLLkowNV7V9oDr7uryg0 Kb2HE50D6+RtLGhXMDPfxE4oTyq4SV6N9ryjzYBkteoQaRULa2zRov2wkdQfim49VNeG ky0/GDtTzoJ6jRUBcJmb3RSJW99LZla/1rFaGjejut1PGRCuGACtHy/hjJ+w1CURbFxn dSAw== X-Forwarded-Encrypted: i=1; AJvYcCXwGL/x1lVdeDTm30gpQq/nM2UMvjquAGvLaaj/IUCP/m0PfxC2LH3Uen9B9T71cfSJdb6XICu2Ooxcpft1AqjV@lists.infradead.org X-Gm-Message-State: AOJu0YxOQSy/fqWY1y/CtPSF9XJ7EhORnA1pQfmjvTSBMSXmLRMWmDPw 0xJao5Kme14J/FWH/1GLakUM3kLfpPNAjwwUtOc/u2fsTBaMHzUJWZHPN9B/FA== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_857095_6ABDDAEF X-CRM114-Status: GOOD ( 10.51 ) 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 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: 13796776 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 2B216ECE585 for ; Mon, 9 Sep 2024 11:38:46 +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=QUOItIdN4CuqJ3bySYoQipdxuI7Z/Vcroiw20gsxaUE=; b=I5LEu1cvdNumXk3D2M542PL70B j10+/KzR+ddZwfGCEm0ECf6EzYZsJRJT4Idfd5AtuBV12pIhhZcEtMTBAaC5vKPnSyUW4sAmyg/CT am3oHIVe1A+PUrBywNNEOsfc09iVtqbKRaQery6xnMlPM2c6F6WHDyDac3GcCjgzhKWV2lVV2AOCI z9J225ZkPNuZJccvPVs0JoUpRspPcKNi+t65D+XdoVDWP1h6B+F3ubogejbntbofy6HsyXY4Wk5o4 x8r2KTdwe/3l2EzLKdYrzFRX9629aiYjpuN88M2Saa1f7eMb1vFPbClrSmkjcDxb6muBH23WuXnoN G4Yj6YjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncj4-00000001hQh-1IMY; Mon, 09 Sep 2024 11:38:34 +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 1sncPD-00000001dEe-30yi for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:05 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-20536dcc6e9so26711675ad.2 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=CWrpT0LbL+ChsYJVYz0tS/oadfzv8JSHzb3oUdSDdX5Ha0PmwMuKvDxHkHwZt9YSMA 9P/iYdvF18GKuQEzhIkS8wknBai+dT1DdpWD8+LGFUrSKmrUjGdOgEwzuO/aZVOL4Jeo pmUH1sZWs2lzdgRCQSw2hVku3pfgOrZHGEJ2YBHXxnml+G9HIo+WuZRgE/00HOe8yae2 IKuCC+DlY4fZuWeIFFoOSte8vxn+Z+vmcP46NJf0iDYnEd+rbaRa0/s95M7N1eGVJrG4 6IHwGzbPax39SjloREHd9Kv4Qj0C6k0nezgF6iLwiHegYU4ka/ec+iZrTLIqc9xI9ntn qK6Q== X-Forwarded-Encrypted: i=1; AJvYcCXqYkXym+ColkuNAmCIl3G6ShD+0AKDn8ESe2J3Nx/KT0iija+8tH25t4IYuhJJu+nlfZK1/hxV57euHSHqBKIo@lists.infradead.org X-Gm-Message-State: AOJu0YwgTH/L0xqlhdMAiCIHndx+bM3bMP7oM+SVj3PsjjmFPIn540Pc IiJKtpsLs7TYPAHELWH/+M/mM3+7/RgMtyEVI6bXuYzLEKRP6DH7aaCMfP9CtQ== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_840506_62BC9DCB X-CRM114-Status: GOOD ( 11.64 ) 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 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: 13796778 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 ADCF9ECE585 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: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=e6ySKWEzCsAiAa/TsjxPZ6peBrSGtqkTqiQKSlr9U20=; b=wM9FgpP9Any9bv366A7obQR5Fa 4dSetUd6bsTGt00OyRi+0fr3rM0OliDislEX1lC1cbFl67ifLGSKE9f2n/5zvg8GHlpOmV75iAPwa lZMt9NMHwzcjGNaeLHS2vjkbi0w/OyRVEnnr1RRw1xmVZIuzzvj8HE/Dq/i1vpdHjsfAulBIw+aeJ tQSgZqtjFcq+gZlwyD38KkHolpafZ5hxwufAP2GP3yrrsJlozIlIgEqgMCotRmqcdeKwZUU8Q1a5M f3b5LVI8UdtlwK/4JyPSp+nBH3XAWcNNJXRt+wSaeaxbKG3Hp+C9U7ZmNwB59gdtHB3Ol4YU0cJNR YYP9Co0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncj6-00000001hRb-1Ex1; Mon, 09 Sep 2024 11:38:36 +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 1sncPG-00000001dGb-38K8 for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:08 +0000 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-2054feabfc3so36354815ad.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=n6+6r1vbRmiGMkbLUssFnwmR1fDeRAaRh8ZpJj5y4gsFouP2j8wrabC2BL3MLZGWQD mdU//i2ZLSZVr65NFll8+pM8kSaoz/GoZaVwCAmELrKAIqWvWkz7eNKj2cthUJmO/9bQ VedFohIkwyYWkZnGvQ74CvMkdASE32Ulf6Qn/gFl2cJPC8MFjRDdwLVtTh6I8VnKOuwx BtRaDsTix/PZJWNsLw3zqWYzdlYnDiEqMdVjME9ZdgVerECBFcArSShu62LG4lS4tcVj dSBm79o4Fo1G3v4VpK/wFCKh/TFJT4id7oyCCLsT5//l4TJMHbs8svZtU94qGzVPsVy1 DLVA== X-Forwarded-Encrypted: i=1; AJvYcCUiBsgT2kwC3efWR8Ld0VqP/OJ2wkeBwJZbVBxibw4zviVOWqAopNBo8dkvMuUO52JUsbydk5dWnuEOPgG22OlS@lists.infradead.org X-Gm-Message-State: AOJu0Yw+ObHug318+z/e1BqsqGetKx99VLCFruc1NISzMMhof6XPDzPY BwDEDwLQVkj060iHaaDwJPFuKHI1haBjQLdlDs9bncX5eiKu99nvnFPlqV6OIQ== 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 Cc: Fei Shao , Alexandre Mergnat , Conor Dooley , Fabien Parent , Krzysztof Kozlowski , MandyJH Liu , Markus Schneider-Pargmann , Rob Herring , Ulf Hansson , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_041806_878489_383EF1CF X-CRM114-Status: GOOD ( 11.53 ) 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 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: 13796779 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 5A167ECE585 for ; Mon, 9 Sep 2024 11:38:53 +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=PYgAVySTOtFl/MrFCMmK+Fl5uF1KDDdSmV7dSnMl93g=; b=Fbehj3lKl01EkNpIrRxpFz2nEi KXMrWTXcMsOkBMCkvcpyzv2A07942R04XnKdtuSGIxUQbqkzTzfcePGM0mRUziX2O6QGALoVeYSe5 qWIKPZfkM4tj+c7sq4Ey9LvZi39kMFeTFc4cS4WsVmR4BjUmUs1H7/ceBH4GCMCSHJ4wVgz4sUwMM oxS7U63DOwy2G7nPr5YZhGDVI9b6a/FQuTgT+nx4uQjDlQ9qyTU77ByWYyDTByTeCIGiWEmB1H/L4 Vq8VGXp7FacFJapNX4Py5k72fn0M3avHItY+fOqFzaqDwKpxCNKnGhJW3gkcNVp9htYd+tfmgolma 6LLoO1Hg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncj8-00000001hSy-0USr; Mon, 09 Sep 2024 11:38:38 +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 1sncPJ-00000001dHy-2749 for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:10 +0000 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-20551e2f1f8so40622355ad.2 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=RuoTyFful2cEq8oEeHwHhd9UF1O7dQc1vxKg5Ctzo4YfT6cqSr4fQbzjDywzwoq0in h39cRME+yDxrqz2MBiRQH0oSU8WprUMrM/CCT6VjgkuN8/R9jIXA0bJd8ui7BPPrt7B8 C7FWBufXztKMHOELYHe7hRhepqrL/5keLT2mapAbW51hLbF4f2u0ks2ZFZjUAA4YdSL8 ycJkL7Qm/YHYi6iyx5KQoddADyPpg+XYG/Cm8v8qb0ijuIBgtJUu62HVccwdb1S9uXo6 mFji0OR11u3iterQK8Yqo2Zz/Ufxe0LBJjfpuUhdVlmHy17Cz57feHFhII/ZkNCbALX0 6tmA== X-Forwarded-Encrypted: i=1; AJvYcCWeTnVlRuCqXAEpWIoUiNxlkCZ/5f0/D5egxDgW843elk/VsBFF7wDSybuuYrY51a0EjnLabARnLCN3aebB/q9m@lists.infradead.org X-Gm-Message-State: AOJu0YxuuK5TyHj2NtrMxga9Po1qe8n77L2BAhc41AONa0QD/8tIjeTA 3odNMH6pZNinlaseQBh4qtF+ih6hffTVyIt8eFlQAx0UZHliwqWpCYGrNe5rVA== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_573494_0BCE7198 X-CRM114-Status: GOOD ( 12.33 ) 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 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: 13797135 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 A2C25ECE57A for ; Mon, 9 Sep 2024 14:00: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: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=t8SnkEIUaJgzB4YgotT7EsNuRM1+AXvDniyzdMxhF5A=; b=BqZogNJeZuPzleV3WMM0JnDOxG BdMESxgOpn4vayO0dofGwTNy2diOKe9jYwu/L9dfT8tDGKtwz8Pnl6ay2cV35v0Wdk/ysaAWYbcZd gg1NEqHwgtyP9lDcLx42/zWdSQ1NLq1LVPs/XjdYK8m9vPFmZ+8zdWT+sQKS0uPhMhfZC3z2PCnkI UfAKWj0f5fdhWMuaN2kNFT6d3vNlxHLl1OdJynsqFYyGtnNvRnv45VLFBn6DX22fzHYlVr+Ak9TtD qH/7dX2JTOPmDUPDt8CyAM1h+ZM38yqnSG2aebmaHgIc9Sen8/tbf4I4+1d/6Awwif75cHQtNIX3/ nppYijJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snewI-00000002B4a-1heq; Mon, 09 Sep 2024 14:00:22 +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 1sncPM-00000001dJJ-222V for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:13 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-205909afad3so41104545ad.2 for ; Mon, 09 Sep 2024 04:18:12 -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=vlO0a+X8V+tJ+2M75XBK4KXlUrDVrgrw5/ZwOYpQXJ6rIom6/Ad11JAED9yC9iNx3a LtU6KXUwfZD/S1nHCxw1XM8RmwIoiHhCxeWhlt5q96pjmihHXqcXK+mKAH/JXqABruus f8k+SwDEAcFYpkPzRhrUlPGl0G5Up7AarrE9PCLhIWycTTISHQPl1IY7p2SkLZamgmv/ K3fvzo1cPZK9CcBC4eAg1s0E4T5zdthDlK0n27OVoOrcc94RpYBc97nIMK9Tfr+X3IUM 9vE63dsG25kwW3jBCKUEcd1tu6P2DR2CrDWN0vNus1wD6zmA1UQmw0FSfxUeZg/Oi4B6 bAyw== X-Forwarded-Encrypted: i=1; AJvYcCUzW9QUkfzpcV+sCXF1BFP353rBCJqGnzKXCf5p1XyNSUaGwSmqhWtY7aBdfzhBipVZle8uMjIc2vRz5eNPckE6@lists.infradead.org X-Gm-Message-State: AOJu0Ywrgwtvsm/i8PQbA6mU1UUvdJunCiIJ6ifx6d8s+d7cV6kqU5TV 9mZisQa50jBR7ea+/+LCSVjDROOLoaqmBFsfR8fHZoXP3s/7d6Ld0naig8eRZg== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_606153_51F859D9 X-CRM114-Status: GOOD ( 10.83 ) 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 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: 13797136 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 504CBECE579 for ; Mon, 9 Sep 2024 14:00:34 +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=oNqbufpN5FCsVdK8ndQFqiXUCnbD9u84sO+9Of5lLKM=; b=lY2tVGEf3vEuy+vi16ISKsdLtY XRURuPnw9Slg7oJbK1q7txuCW2TGyUGCH+UL5ZW5zgXyQ6D36pII1iCfwBKOn+MK8yYu45U4O0HHU 9N6MndFTOx7c1tobm92vXcdjoQkzSXKtJRycsGhEc4sjR2QxMxLBerGTjMlx8dROY8/qhDNb/i5BY HJU24CWJqqle5TxSj8wcXaVftyoRetZIVcfpeo/XiHzG7jLdE1kYKvD5qp5U55w2vOV0bVVQ6Dohi 3jV2ueSJfKz2zCX1mDrea31O8Seq8xRxHTqamyCcxWK0zZXemC7Qv+h0R/5NsH7bQFvErB3lXAhZT URXFME2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snewJ-00000002B59-19LH; Mon, 09 Sep 2024 14:00:23 +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 1sncPO-00000001dKd-30f5 for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:15 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-20696938f86so34782885ad.3 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=oLjZRCrUf1h3A3dbZ1zOekj6NPfVkxKy27JZt9ttVfqyw4XcupV0dv7bepz8PfzqRN Cff3AS6F0zgpyD2Cr/vp/f+bKQePw+Wnx4h/tCUv0/K1V71q7LvRSFafekyLEEXveUXM kGHurGfv4yeSbi08RgkgdZDjcx0/FVVDnw7s57pNxaUodDhUbcDwrl3KkYaSb3wtdRry IDhoinFg2KBW+qRPnpDzBzTpMi0Xdn/BokB6W7YKD6BH6molsUIpZ/8qtbec81ez7mW/ hLHWSeNeKT3jQMEAwy6iUgiDIhAee2oJNiPlXdJaGQP/QchSEGyC0y5EzU6TCrrYjxEd cVKQ== X-Forwarded-Encrypted: i=1; AJvYcCXsg7StwRhAczkGxjxRegjfv09wktftL4LJaao4FmSAK2uB+sE4EePDwpkaIDqXU1ZHeWtW5k59qfm5/ztsDpVX@lists.infradead.org X-Gm-Message-State: AOJu0YzXTsVbahfXWalgmDrj932DQTisc5EcUJn59L9GBd+/LSgh/0uv f7CwVnsrn4eYj0WrV0PxiBM3S74BT5DUOqRUF4KyXrxkQsFLm1S27jktpirN/A== 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 Cc: Fei Shao , Conor Dooley , Hsin-Hsiung Wang , Krzysztof Kozlowski , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_796446_F0E60A40 X-CRM114-Status: GOOD ( 11.23 ) 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 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: 13797137 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 E7387ECE57A for ; Mon, 9 Sep 2024 14:00:34 +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=ckgyamt9fIAy8TE1Yk1YBjU42OpcFXF6RxP0WQ2W6QI=; b=YBdMpKGhtqJ159HqaLtNlhgBVC LJ9tS0K/QmpijHk9+lDDwe+zQjenm4VbNpcZj1OcuPqYvQwx9mQjaO0Y6n3y2iQv8Vrr2rDCBlGCX K6jdcsqJQxU6B6JucM8DZY24NXygWVAbf0PGFJaFlfRYhlI4CfV8yiNJdg4a7EiUNrXUCwXb2MMj0 B2t6eakHmIvW2lO5ptV0ZN72hyuNQrzNL21sqPncAP4BsANKAOLkcNmDLRAlOVIltQeh+eb9IR2YI 4fZgE0yIlk8E32GRrp/EJbeZm/7SRHt6q9Nwo3KkYrsNSMyYgmwmPIzEMWrwUXYPHOk13WMAZq6FF MPTvKEMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snewL-00000002B6o-1sKu; Mon, 09 Sep 2024 14:00:25 +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 1sncPR-00000001dLt-0ump for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:19 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-207115e3056so12089505ad.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=N5EvIesjFa6fBVJZpiFCDYtpIA2CDua6RLtM/0rrALZCec8sWvc+Q/L0K2mZ0UAXGm mxCRDOMw+5WXk4tw6qS7OYWWI9l92iB1g3bPziqpH8BzEZljWaoL+SjXXgkBI4ObcRpi AjL3TIRnpaOvNZHIk4F9qoaFVeHW3J2JtLC3HgecNc/VNQNbsd+feHh4VcVgZQ/VDNvZ 8Y82AF0iswCWL8nmguS5SWJAuluWseHvJ5Auvo0C5y5K2B9r0Zmz5gLhEPlVblvM56CR Ctgu1yS2TsVwuLtC3An9ML9RL9lIdtJW6s4veeak0DO89ve1m5lyVYbc/8pT987b8Sa5 BWLQ== X-Forwarded-Encrypted: i=1; AJvYcCV+BR7h1jqC8RqYxwGywhEWdl3Zu5n5mARsMG3Hja8plDwtP2aQna9Z2jPHEua5PVtmv5nYN1rcsMqLrtODvgFG@lists.infradead.org X-Gm-Message-State: AOJu0YzIVB3O+a6kWNfQg6QtEmPBVELFh2IrvDi7NWEsuADk+fvSvKWO iZqEbfhH7Pr5bGSWEzE34qJJhGp/7KbslGREnkppl7+YvctUYxVu/mn8Xb5JAQ== 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_492718_81849D84 X-CRM114-Status: GOOD ( 10.61 ) 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 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: 13796780 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 576BCECE57E for ; Mon, 9 Sep 2024 11:38:55 +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=/PJpXROupFzpexVoTGiiVagAL/RrrwaZ7jH85Py7k9E=; b=eoC2CdYeyVxQRz+oNIR6ZpZ3/X 2OrBZgoD/YLPLOaS67fwkBC9nnrr+ZApEaDxqTM/d30EVnLEopHI8I+hZmwcGGmLZuvNF7/P9Z4Z3 cUio7UXsLUneVNSlCyrV9YZLd74nzuztPeLq2KYVpSy+lJwMKNxw6JfBNM6SO9M9L0gDpZxKeJiff imzWpS12Whg9306WDpw9DKrnAtuwGuHILm6taYMSDM0Cfu1cd+BpBnIdpV/a4WnfQ5e5uVjGO4zfm aTS4rg6svvCJk8hJjxDHi/oiKcBu6K7llQCgyKdGqoY2IH8JEUjgtPjPY5Gxz0sDMbbBy6Bw/Mk7a 0wi9iw1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncjE-00000001hXu-2DqX; Mon, 09 Sep 2024 11:38:44 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sncPU-00000001dN1-0m7R for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:21 +0000 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1fc47abc040so36193835ad.0 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=GvbYFcsWQ++7Xer08B/kwlpm9gBRQP7XjWUNFAwCmw29ERR/JkRpuxNl87YMVBAwDH R697fM1Em0ocGcjr8Gsq8hKRE35nlJldpa9DgZy6Xg0eSKb5tRuBDBBsLgYJaoBPR3Io GuSC0UrjTCczo3nK1Urtj7Tql1qrPesZJXY2igmo4zIoEiXajinzLmU4jLnXePIrOSR7 pN/YM1RacTW5SUTWGuPnZzMyOFBc1LfaJv11KNV8PWy3Uz9Lyo/rvIhb8VGwVLKOBYz2 0AmeEFjzU+v0vn4Bij3soGH2/j6XtEgEeIsH2eA6Am+Yxzzi3uiF/QXSvzfs/ZE18scR nbBg== X-Forwarded-Encrypted: i=1; AJvYcCU6iNsSQhrqIJyYwRyI4mooDfHEqrYJVt4E7eScNSQ0HrUzbPb9SISLws2p41ZyKC4834KbSdEEl4+uTJvSlOoP@lists.infradead.org X-Gm-Message-State: AOJu0Yzu+77fEjeDwtXt1fvzSf1BknM2LfsS+rVe1bwS/2BB4XAh+BgP iIfSwNfOJFufVbZmoTa/PeYwpKnNNYQtTom+QE3UzS15u7onN18TYX51/OaRTA== 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 Cc: Fei Shao , Allen-KH Cheng , Conor Dooley , Jassi Brar , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_246605_5D4FF369 X-CRM114-Status: GOOD ( 11.28 ) 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 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: 13796984 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 7694EECE57A for ; Mon, 9 Sep 2024 12:47:11 +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=2E0O8WG9qwHR9JUYmxw/yuHs3HNYdoAdYl7RzElF3KM=; b=mc5KTBaHt93CqAkXLvAtQbfypt mP0IdP4aE0vIPYAsLcGovehCZcNe1LAJLF/VLkAubPLnBOk2gIrcp4T56KP/l5v+78vQlpmvftMof wJ4HY6H0d68UU1v0IL5MLakx0t3FHxBfXRGNXsJde5BXh72MfMG23n0FJHJIzrl5RhTd87cmy/tIf K2MTIhUTO2IgMZiQ/XlnonLzCiEKGWdjTEA/w3XlU0HnkEEIJNxxh5TK6qpyVcnMK9BPEEF4o9KnU IUVcFnMMJW8iIQnN65jm50v4ZQ9o/Lnn/qf+SdpGUJ/wIYRF3crdjSjKLiOnoddZ5WfpNgl5iTxm9 DKF2OlTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sndnS-00000001uCz-3413; Mon, 09 Sep 2024 12:47:10 +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 1sncPW-00000001dOQ-39M8 for linux-arm-kernel@lists.infradead.org; Mon, 09 Sep 2024 11:18:24 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-20551e2f1f8so40625415ad.2 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=sZ1tgkY7DioSueWwLVVnfxy31wMG96vHwdDuJKGWpJujag0JGlFTcSowqsYd2z8/Y8 9Y+6JxtMsc0PLvmj0F7WMlE5DwZO8SGl8IL0pt9U7g7KRvwO1nYd3b1MUJJUW6vfIBHo jd7q5OarnK6meaAhN24DuEG7faYEV0McVTxhORwtcZh9iKC4w7/s7IvaxqUreVIUT22I LJDhcckXk7JXnv1YMdP/eDc0rklHKco08j0zyScaHSt7cY4ZTr2JmxMV+QLWustptCSM mZAyV9ge540y3DYn8SNkxrD+Vb3lgnjaJyutVokXNU9sDBt4kEIkLf9nyzonI5e/FAYr 6P1g== X-Forwarded-Encrypted: i=1; AJvYcCVEJbHiD71MsT0ZsFaqVVf//tkzNB5M5fT5fp8LSlj3ZLSfvVUEEUYrcYulqBEmzMqHNAFYK6bBEvagj7N47F7G@lists.infradead.org X-Gm-Message-State: AOJu0Yzxb4OIEbL9wwiKuG97sA747ZS21t5R2vB6w48O75/lSDzdb0bO TjR6w64xIAxeGIdpU3Y5pNW9tTdV/rdz91miYypfDRTfZ/odBvIBUCN6k4bhsTxTINY+3q9xSoI = 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 Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org 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_867556_01D6FC58 X-CRM114-Status: GOOD ( 11.89 ) 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 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>;