From patchwork Wed Sep 11 14:33:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800738 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 8C998EE49BD for ; Wed, 11 Sep 2024 14:47:52 +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=gnJ313n4mu2c3Gv27Gu48uhKalN/G5CTdU7jzWSbSxk=; b=R9D0c4PhyiKBvYvxjXf7qVAkB0 fnvfNOSDMwAO18V0BOc3myPiBIieN68w1xNArBxi50rRr/e4ICwPavIuuiJyXRiABoMrzpDD/1sJb vdYDIIvxAAPH8K/smoMtcYpozmoMi72ntmlOQPKERc5RUp+3syWIXXn1hoeCXGMOqQzgfw7rzROVQ 5PKRjXqe2xWmjptWrUn1UYzzuT6ORWlj5SMvcMAHuZt6SZSE3bLOOUMloN6WRQmcoFRsqdu6by1i9 fGGJWFNS5/FaEghwAkas5N4zZIoZ4C+x1GSZdV0oIWe58FMXT3stXY1FmDv3hzIwUhVD5zELXKNWM ygSW2LVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOdA-0000000A0Bo-12Cc; Wed, 11 Sep 2024 14:47:40 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOR6-00000009w4g-2skf for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 14:35:14 +0000 Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-3e049185cfeso1273656b6e.1 for ; Wed, 11 Sep 2024 07:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726065311; x=1726670111; 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=gnJ313n4mu2c3Gv27Gu48uhKalN/G5CTdU7jzWSbSxk=; b=EktvD5eGw2OeDp7VmfphePMcJFGAXmTU2eqTkttdZ1JoZvm5b52EjcaBXcok138DKp qm1OeniqK0PZz9zi+b7q5yRq4jn1xZw8lGKjMYdroKB4HjhW+/aHBCbICn9ehgpXD0kh 82fq38jgmee0FrrY2dcIH4Q5YEmnDc77tbwac= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726065311; x=1726670111; 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=gnJ313n4mu2c3Gv27Gu48uhKalN/G5CTdU7jzWSbSxk=; b=ivIL2p1DQlHiLch3YShtQf0fFZh5c7eVLAVfn/Q9U4URSpKpxVRT9cqB5pBW1SEipy K6aemYkhu18xq9ICrq7iRlCarN7gTMZP+yQIdFhRX/wLlVL/WDaglPZ8mRHUhHTpJQ7C xldAAMy/rpcj6cjICx4ZVlexxZ869Fytusbi0muW3cStd62/T2zs6BoGmhkrdxNMdUZ8 Eu0HL2cUzUYJ7U8ayPyqi1uyNZIrMYPQVRkwsidPDAGJ/zytWFpocP42JwWd2EKoraKN vdCZ/Kug+39Qi22QEZrjKBrsPWxKcRtWvWd0ZL3jz926szMY2vA1SPrJx61hZIcXYdwt 64nw== X-Forwarded-Encrypted: i=1; AJvYcCVn9tnv9xc3Xk4178LB56IsqTl5S0NNS1gtOyc5vp2YxUojJumSH5mqx8mhLfezko8rm+svvRfXr/YDUa/ZQR+g@lists.infradead.org X-Gm-Message-State: AOJu0Yybac1bl52B2zQRFYI2fqlkxRkxQb+P9DBqeNwdVlNzsCM2ifBU R54HiHjWmnO9nMGIY0CwYjgzcUxgUrZbskhPiFsnN9Dvrf6PNVDuj5hJlfvxOw== X-Google-Smtp-Source: AGHT+IFMamFHGmhxPFHOGWER3aFhQ1jLAPCLcwDI6yIOXvYykC7XUTDUyt75MOdeg3LnVxx5oP82RA== X-Received: by 2002:a05:6808:14c7:b0:3e0:3dd9:9053 with SMTP id 5614622812f47-3e03dd994bemr10549858b6e.11.1726065311408; Wed, 11 Sep 2024 07:35:11 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fbb5901sm46620a12.24.2024.09.11.07.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 07:35:11 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Cc: Fei Shao , Stephen Boyd , "Rob Herring (Arm)" , Conor Dooley , Hsin-Hsiung Wang , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v3 1/8] dt-bindings: spmi: spmi-mtk-pmif: Add compatible for MT8188 Date: Wed, 11 Sep 2024 22:33:54 +0800 Message-ID: <20240911143429.850071-2-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911143429.850071-1-fshao@chromium.org> References: <20240911143429.850071-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_073512_794219_0BBB588B X-CRM114-Status: GOOD ( 11.04 ) 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. Acked-by: Stephen Boyd Acked-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Fei Shao --- (no changes since v1) 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 Wed Sep 11 14:33:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800739 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 7E658EE49BD for ; Wed, 11 Sep 2024 14:48:54 +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=wnPQW7Y4BtUSgD7VL5z1FONolY3V9ZDMRIrGcpJjXnE=; b=HedjRuRvhOlXQ3kbUQ14hklUci weScYSfjqveQ/D+4QF4BLf0dIDACXtlSn3sDuaeS2G1D7QSRDyyFTDwaau0QtwnlV3AmoX8uFMkbw U9o7vA/liqjtp3AT3rh29TOV8htGiOhCuh8k65bFV9vP/Bv57BGbj+B4ObOejuFkFRytUh5Ki9dbh SCzDNg/aX4W1fAtsgh2sP+8euKo3V0G+kGFsCahPIWg7K5bBQaMJy9K2vLF/z2SZec9KBtwzKB2yF 0UeGlhvYxf9S3+eoFEmYOHrzF+Az4adQAAul51tvpwjhLofPG9ohoUj48HP69FeqyeW3UARK3Njhs sh9Rl5tw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOeD-0000000A0UF-0cMb; Wed, 11 Sep 2024 14:48:45 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOR9-00000009w6O-1nIF for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 14:35:16 +0000 Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-3e04552579cso1581287b6e.2 for ; Wed, 11 Sep 2024 07:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726065314; x=1726670114; 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=wnPQW7Y4BtUSgD7VL5z1FONolY3V9ZDMRIrGcpJjXnE=; b=BiwoNjOP/mVxr/y95QN6ytz8UIW41lKcy5AgbjXIbi5NGClQWf9S48ejWQOnMI5r7x GAaWNhcEX4htvGcPgpcelw6X1e8GREt9SY6KYT0G069Wjh9ktwdP0HbtwIfREg8C7UpU 49UgOmH+VOocA/agU/4Jixm7mxOjqLeyyN9XA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726065314; x=1726670114; 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=wnPQW7Y4BtUSgD7VL5z1FONolY3V9ZDMRIrGcpJjXnE=; b=BSG4qA402JWN8ccuHI3H4A4Y9j8BaYPonw6mg7AED0dVwzerGKCPLFghpd4ZriEoe6 q7Yizgfan11WmYIn1aXkoeo6l6pVJehhDljtBsZUjJ0Qnpzxo7RCtk7rpVs55HRfg1T8 2rrVpkgA+fa/y4RDx72fcG46twSGXKIXTOGmbmsDgg7pGKsuiT1l0fBbvxJ+lmuP7Y1f 0YEgtxSHTcM7Dxglz5GX3u6JOzjQJSU8V/2+egbZpPs0mtAdtuxn1fc4ZkwcXloPV5uJ nc4fiBC2kWDtjwYMQrNMlNm1Y3M2LA5+7EvTcEDe+LrM3FCUI8qlW7BAkGYmVQHxkqOr KDfA== X-Forwarded-Encrypted: i=1; AJvYcCU2VMwKmdFDwYs3kx68LbHNHt6zRoFNz2TvqYFHIvqDDYLAJ7hyepHYgV13ij3v5zaYtDujM0v26cwyS7h4tAm7@lists.infradead.org X-Gm-Message-State: AOJu0YxXPM0Sf4KdOebHJVLsys0BWbMvinXxuA1mRiy/cyOfWLCpq0Wf +IUIdv4VV8CGNlbIsMTAIixLBmSE7MI/IvOYRPyZHBHiFhFyDqkPx2Xi06+3FA== X-Google-Smtp-Source: AGHT+IHHUCdHBp5uv6ADa0vxA18vvNpQp5qn4oDl6lTmb8iv0NjjXhkphjoMY82rsiFzMfvLj5l/lg== X-Received: by 2002:a05:6808:3206:b0:3e0:6a7f:4752 with SMTP id 5614622812f47-3e06a7f4a48mr875938b6e.41.1726065314162; Wed, 11 Sep 2024 07:35:14 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fbb5901sm46620a12.24.2024.09.11.07.35.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 07:35:13 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Cc: Fei Shao , "Rob Herring (Arm)" , Allen-KH Cheng , Conor Dooley , Jassi Brar , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v3 2/8] dt-bindings: mailbox: mtk,adsp-mbox: Add compatible for MT8188 Date: Wed, 11 Sep 2024 22:33:55 +0800 Message-ID: <20240911143429.850071-3-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911143429.850071-1-fshao@chromium.org> References: <20240911143429.850071-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_073515_495744_C70C310F X-CRM114-Status: GOOD ( 11.29 ) 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. Acked-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Fei Shao --- (no changes since v1) .../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 Wed Sep 11 14:33:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800740 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 21F70EE49BD for ; Wed, 11 Sep 2024 14:49:56 +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=flO2kMjBbd38S9uV93LXACtUKy2NNrMVAURW7PjykH0=; b=YFVLEf6X8d8sCt0BtsDp718QTH D2gy4UUjWnQ/6y5uWpu5+MF36mG+74xq8bT/sL4xlOJEDXqAYDnfPLt6wwF7aCjx7SSCpneiapmTd a0bbJm6Y+vclP743vHKdSY+b8FD9x+HHgDAfUp+761oIaqzPUmkMcH78JqsAL2PmKBRaod4W4Mb+e I8Xnw+a4p6bMMJs7uQsYfJ2Z9SYvkRsNrZWfZokY54RJH5q9NeLZ5icz2ot3b8SqQpRSC43+x0Ljc BEeF9JzzgYAJ92+YNCGF+QKL9NEAa07AtrugcZnMneoHYbWPUZr2k3G0egj1912njTqUSbPhIhw5h YDw6G5FQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOfD-0000000A0mj-3EbS; Wed, 11 Sep 2024 14:49:47 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORB-00000009w7a-2K9V for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 14:35:19 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-718e9c8bd83so691839b3a.1 for ; Wed, 11 Sep 2024 07:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726065317; x=1726670117; 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=flO2kMjBbd38S9uV93LXACtUKy2NNrMVAURW7PjykH0=; b=RbxOv1pyEEvLL2hvhTST6cmrlnDmEIyWLLtnivADF23DLJJnxfuZ4P8KzoUxNIHHeP H06s4I6UDhPtjWoL31Gv6xMtaoHooRJIPmzxDtpwkb33JBphlxJvMipZsHiqndvgb+Ie alis9IsdTINOSiDdaQeucPl0NckdQy7n58zFo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726065317; x=1726670117; 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=flO2kMjBbd38S9uV93LXACtUKy2NNrMVAURW7PjykH0=; b=hGLGS2GQQui4UBJ+dMHZBlMBUmWcpvNl/Ju1mEeHTEWeIF6iJMsII/IK1/eU76FxO+ YbWe93ayoWk+lILyrDKeXlu8QGsVRCFTr7XkT+r7HgxVpgWrtSmMA4jgUgyO/Hvc18CC 90fyKskhk+2dFZTuIbNFdxS7IGXL/tpbWRAZoEWVjSIuY/AsZo57/tIZ1fbIk/2V2Vqi YsWpjzUy9N5RmfD0OSD3mpJXsE9ABn5nls326TPl4am8kj8lC4+BITX7rRiK/YD4lYnz R6f4SqM7NDXyTO6+N1T6WgDzi7D/rw/4w07CteevXwf4PIENYEYsLRAl13F1UwJEr1IW W1sA== X-Forwarded-Encrypted: i=1; AJvYcCXJmho/k6mqPsP9uOTZecmNBsGPiZ79lAtlFGKeTQP4dnH0F3wr4W+XbwPEhaRgvZOYtqiwg49RLicyBLPAGFOP@lists.infradead.org X-Gm-Message-State: AOJu0YyhUluHFlYyKhitVrt9cDTTOHQDO42SqFx9e5ut3LHLYHh6dCZT +0+3NMrnmdAFwwSICVWabHs0bishi8aJFnRnE1kLg2y7tx8YgqbwFBi60LfCWQ== X-Google-Smtp-Source: AGHT+IGWqqDq3WXUh183xK34Rxbjn61wnWFW93OstXI7bPArv11G83ZnspRU58x8mGmEmitA0kG5lg== X-Received: by 2002:a05:6a20:2443:b0:1c6:8c89:88c9 with SMTP id adf61e73a8af0-1cf5e1ae57bmr5808169637.18.1726065316653; Wed, 11 Sep 2024 07:35:16 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fbb5901sm46620a12.24.2024.09.11.07.35.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 07:35: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 v3 3/8] arm64: dts: mediatek: mt8188: Add CPU performance controller for CPUFreq Date: Wed, 11 Sep 2024 22:33:56 +0800 Message-ID: <20240911143429.850071-4-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911143429.850071-1-fshao@chromium.org> References: <20240911143429.850071-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_073517_618750_1744A5B9 X-CRM114-Status: GOOD ( 10.17 ) 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. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Fei Shao --- (no changes since v1) 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 Wed Sep 11 14:33:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800741 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 7CB57EE49BC for ; Wed, 11 Sep 2024 14:51:04 +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=u3C8P2/ShZAyxq+RU0fcUwIOZvUAQXLkIBcEAMfkacE=; b=3WDiTWP0qdGrM96lRsqPr1Ki1T DGaC1A20YWiafKAy5Hbcnum2Xz5p9CKvM5GHG+9hd3SMkuDa+VCd2toC8ccgzN5KYDzLp7NUo/7LJ MYIE3eCve84tQQuEGaKcDNW/FE/Pf9PQXSXK/G1GhtLVjyU/m54f1Fwd/2WupGkKES8w4oAEttIXf 8E3UjHK4i33gyj6jVcGKvMLrQ1h2hkRYB9H1DOZuTAP1PAfrPoNIioSR3Q0PP0fAhKC/n0A5AbaOd wcYaJrpHUQi8R+bxQec0Uv1faIBO/k+NSdWnYq8pDu57kC9BJQPgjlRgXiq2ZyolS1+TH2Z3OSP35 vr4z++xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOgG-0000000A13d-039G; Wed, 11 Sep 2024 14:50:52 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORE-00000009w8V-1RjC for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 14:35:21 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-7d4f9e39c55so4689401a12.2 for ; Wed, 11 Sep 2024 07:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726065319; x=1726670119; 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=u3C8P2/ShZAyxq+RU0fcUwIOZvUAQXLkIBcEAMfkacE=; b=AccAulErkMlZesg6p9dc3yNpZMmBKWe7I1GYq/nweyJOpzaxWl9m0RzZYFQq9RvfXy XVMMeP2obJ2Mw3iZeUYjpkuBgi/UuzBWspF8AhlVfO3BkZvDMRqiB5jPorQ4QNlIFu1D yZbw/0TASwW4JviHo7oi6nxe1mjYRfrLVamzY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726065319; x=1726670119; 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=u3C8P2/ShZAyxq+RU0fcUwIOZvUAQXLkIBcEAMfkacE=; b=k3B5XwBtfFectsaZS++wlPVVLbLPyTUReW12Xa7GtyFD5HdZLXdgqYmbsSnwBgGevG EiHKRP9UyOrcnu8a6+jOkkTPgEmFc67Bo5l4xloO6F0kvUjW3v+AudPFXl2v888uqSEi eJtk8ZtTZ3mo2O4C648Q+oFMTKPMGoKkrES/MuEz52f7DBQhZGZnECBkG9H0+QfRFQCW ARNyTTEi0CLuqZg3Aj/Etrp8P3ouOsC8dN+lC8S1vTFmp96mh7boIBhK7bAfC/bqLG29 roXoxpj101xYh5lsYrWN5h6wxexCcZc9K0mfbfTxDrKCNTkw+Sk3yjBFPhad28hnpuAd gW8Q== X-Forwarded-Encrypted: i=1; AJvYcCW6Czf3tL6iCtkp+KMsCLAmUpgB+nptDnUOQm4FA2tVeG7jeQ/MzzcjeZSwVbktvimy0eKS2OjAHMcpRfeXELBA@lists.infradead.org X-Gm-Message-State: AOJu0YxlMkEHAhXNCO97+ynAe8qbYqJI0q4m9vqzkW1mzEUfHWURkrtt z9se95rk9agoFrogLcozBfaKsU6X7aMkiOcrvqiXgqsLlDWVUpL0rSd6x0kN8g== X-Google-Smtp-Source: AGHT+IEWs+Nl1DTwsrFm62j+iMmwxKQIEd1M5v7OwN+K77hrCUFGyxVAB8wJQvjcW3hhfCNxEHJDsQ== X-Received: by 2002:a05:6a21:168c:b0:1cc:e969:a783 with SMTP id adf61e73a8af0-1cf5e0f481amr5731240637.20.1726065319204; Wed, 11 Sep 2024 07:35:19 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fbb5901sm46620a12.24.2024.09.11.07.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 07:35:18 -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 v3 4/8] arm64: dts: mediatek: mt8188: Add SMI/LARB/IOMMU support Date: Wed, 11 Sep 2024 22:33:57 +0800 Message-ID: <20240911143429.850071-5-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911143429.850071-1-fshao@chromium.org> References: <20240911143429.850071-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_073520_400419_62BEECAD X-CRM114-Status: GOOD ( 12.09 ) 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 --- (no changes since v1) 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 cdd2fe14effa..f746b89c1ec6 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 @@ -1305,6 +1306,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>; @@ -1798,6 +1806,37 @@ vppsys0: clock-controller@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>; @@ -1810,12 +1849,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: clock-controller@14f00000 { compatible = "mediatek,mt8188-vppsys1"; 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>; @@ -1894,12 +1966,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>; @@ -1912,6 +2006,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>; @@ -1920,6 +2025,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>; @@ -1928,5 +2075,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 Wed Sep 11 14:33:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800753 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 E89A3EE49BD for ; Wed, 11 Sep 2024 14:52: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: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=zcMX/bqTdupL750gbpR+dTL3DKvin6dl5vwknoD/GKo=; b=4+xTzoxxNI5H2aMjQEw9mPB/G5 TwIzG8EExCd9GvNY2R+zorVJ+3imaUGTfZBZA7pq/Fyceg8FAYsP4hRzAina8f/B7o9kKV6HZhFMr yoFyW5f2yY6gqpmmMZnAyrCrWQHMnlTQFJnf6SgdUzimexmsHJK2pG4Di0x/P1BgQAadTk1dZeubt DwsUGxS7SsYvjKa+jhiEkcJafTJc1rCsfjiSPhhlvaJZKDeAqru6widvmYnIArPJWmc8PK2vegdPX l7lobccWiScldeaNKB0kmkSMejRNULGfkXxC2+IeeU3mY0h500FO8LquWo7N0auC9B01oWi0tsVZ6 o9bswWMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOhG-0000000A1JP-2yJG; Wed, 11 Sep 2024 14:51:54 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORH-00000009wAM-0gtK for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 14:35:24 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-27806115eafso3290767fac.3 for ; Wed, 11 Sep 2024 07:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726065322; x=1726670122; 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=zcMX/bqTdupL750gbpR+dTL3DKvin6dl5vwknoD/GKo=; b=gvfFu3LHeCcq7VCRrctyO+fZzGaR1jJ8U+xs/3hEl7ABfuAWChDH8s7l+UslvRBib8 6HJqyG3rn8N5lr4KTBodrcmJY+5MVKi0Qv1VdQ4BURlp39hco1V0qesNnpmoEaIN7IBV tzfCs5e8qQBdT2R57WcOS9gNYWMb+ev9vOG5w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726065322; x=1726670122; 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=zcMX/bqTdupL750gbpR+dTL3DKvin6dl5vwknoD/GKo=; b=bgoDsCVJIAIIYfVnt5BSCJNwoWe0KEWWOD+IwYGavQUFxQ87iLAYpfwWLplg1RXgeM RpvspvDnSgQ2fghioxyuNEacggjudZ8L+IkZEWyRKFqXQkBmchHtLl+NOXwzZyYAKYuQ n8mQ6GxZUkvy81lnCdkL/V5OFp6NDpY9KoKiCZvVu8AdvdbEMz7b3p890+u3KwCAW1bE CHICupgbxO2q1L1B9NQyRHaWJg5LGAPMjvBFXv5LZiMtPL03DWu4iCgfWHYQqt1G/kep uGLHsJ1h2ez/bPdBUOGGdhnTWI/OigHiBV4lpRrPzOTWKHCj2yjrcEmcwEdPTy8QrNBb EcOA== X-Forwarded-Encrypted: i=1; AJvYcCVMQzZgRUjOY3+IkqdjuQgdb5fnzde+7JE+4DBrSbB6e8zpCm2bk1aSghJisaFgtFP9crTk70pgKIDSqDAhW1jb@lists.infradead.org X-Gm-Message-State: AOJu0YwLZq7Qmi27fmqLIqCXjWWOjInrQ2FVgBViHYWMWQCe1OzPj/sV ZSFJAMF20MiH6LwmYp21sl6LhsQyjoFwLjq85HbKjFAjVDfUElc/Lms7IBCv7Q== X-Google-Smtp-Source: AGHT+IHDFd+1Qao0x/djh7BnAl9fxiCea616EBUFpEIvtWPidor0dGilr+S0MNN3z9ITAlHbdxzKew== X-Received: by 2002:a05:6870:b28c:b0:278:1c68:9c0b with SMTP id 586e51a60fabf-27b9db07830mr10994291fac.22.1726065321905; Wed, 11 Sep 2024 07:35:21 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fbb5901sm46620a12.24.2024.09.11.07.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 07:35: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 v3 5/8] arm64: dts: mediatek: mt8188: Add PWM nodes for display backlight Date: Wed, 11 Sep 2024 22:33:58 +0800 Message-ID: <20240911143429.850071-6-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911143429.850071-1-fshao@chromium.org> References: <20240911143429.850071-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_073523_238963_928ED158 X-CRM114-Status: GOOD ( 10.46 ) 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. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Fei Shao --- (no changes since v1) 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 f746b89c1ec6..61530f8c5599 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1418,6 +1418,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 Wed Sep 11 14:33:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800755 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 5F762EE49BC for ; Wed, 11 Sep 2024 14:54:09 +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=dNJmlJuaspo2SJylGvarXYbq/qh4LXZFb+SB568Vu00=; b=tq/COUh5B9TttRkq9sw+Vj2eqv kmxVRmECEVqOoN0DAKALzJqWzi7CDuB0fXzHjvoInl7+X2p0nXIkvJwdyJL9mI/lV7hJ5vGh81ryS XWMeD57LjwpOV4DbfMkuvJ29CvBhxRX/cc/Hg+28Az8xPjmiySdSI3MoROtKroNFSL23+u2Zun5dH H+6EZEes9dy/uQNPfHEfjIb0R6QH4Ei/rTzu8md1FYBZQNhap/W5eFgMBXdFymh+UKnncm9c060Vx NC/jBXYSSOmqh67D1aLU2QSK19Y76ycaSE0S4Ty0Jkn+YV1mihknDwy6HaWGgzK+sLOnWPxOXAhH5 lXjEn4aQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOjI-0000000A1hS-0XW8; Wed, 11 Sep 2024 14:54:00 +0000 Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORL-00000009wCp-0YRA for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 14:35:30 +0000 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-27b7a1480bdso924996fac.2 for ; Wed, 11 Sep 2024 07:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726065326; x=1726670126; 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=dNJmlJuaspo2SJylGvarXYbq/qh4LXZFb+SB568Vu00=; b=iku0OSderSPEd6OL04PsPseXAkc70ma7p8gjif3q9x+VnVkyv97CvK7tQSonBwIB+Q tTgHPmXw823IX/LVlcrPBlvkgR/HB4i042eU9bQjEPXSn+yf+ng/4lbIauCi7Tz0hc7F hqU3u/7NbaaCI0uGYSuOa2eFEdES46OjNZ54w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726065326; x=1726670126; 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=dNJmlJuaspo2SJylGvarXYbq/qh4LXZFb+SB568Vu00=; b=oNuKKv5Xos5SLXAUS1vhZGzFrsnybfaH7Sx1o4YioaM7ixSsoQTuipwrpJeai9kUqX xSenKWtACGn4UU92MPX++rXo5AQ3w7qunxVIvMPZsktD8Yt4VNgCW0D9/AkDOjvt/q2I oO3hBfh5j9FTtbnDW8kAlfBa+ePkvPly+uCoqcY8l4E7A6lSt39gdGb8Mdi9F0TpXZZi d1EypWvzHJ6otA+HhJnFjLEGz/luZlPMu0zcJ68ObI6pph++Gx6/SW1KUIUGZpOeOVF2 GvkqYdVHCOtdu1bPBr9kKm17chYhqgFeDnKrj4CWKmCGEfZcAQndEl5X2XbNhdBEcmyz /uWw== X-Forwarded-Encrypted: i=1; AJvYcCXcoPDtXURbvXUNo+S7e6cg2HqZ6SSWAfLJ0Jy0HUEB/8oYKAA02Br1Yr6aiB225wlOHN3m9q9RGRDUz8mCTfiY@lists.infradead.org X-Gm-Message-State: AOJu0YwAA2eHCW+pIWFwQg4hx4Mv0+9Tc0qj9KyzFnqfluuFUpBL8B/M W+lsCC3coGRJTaCcn/X9JxZ1t2hbU1R+LTWIb2cowgD2WMbQHt9pqdUAc4LsBw== X-Google-Smtp-Source: AGHT+IGME0UPIJahehavGen0dgvEatXYyewutMBmDSKHZzczItT4r7tLJ/JhZQ5wOmVfzQENAr9Cgw== X-Received: by 2002:a05:6870:e416:b0:261:1b66:5ab1 with SMTP id 586e51a60fabf-27c1b5811dcmr2051517fac.21.1726065325607; Wed, 11 Sep 2024 07:35:25 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fbb5901sm46620a12.24.2024.09.11.07.35.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 07:35:24 -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 v3 6/8] arm64: dts: mediatek: mt8188: Add SPMI support for PMIC control Date: Wed, 11 Sep 2024 22:33:59 +0800 Message-ID: <20240911143429.850071-7-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911143429.850071-1-fshao@chromium.org> References: <20240911143429.850071-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_073527_421525_51209B1E X-CRM114-Status: GOOD ( 10.82 ) 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. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Fei Shao --- Changes in v3: - Remove leading zeros in spmi reg size 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 61530f8c5599..a826ca4d10e3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1306,6 +1306,18 @@ pwrap: pwrap@10024000 { clock-names = "spi", "wrap"; }; + spmi: spmi@10027000 { + compatible = "mediatek,mt8188-spmi", "mediatek,mt8195-spmi"; + reg = <0 0x10027000 0 0xe00>, <0 0x10029000 0 0x100>; + 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 Wed Sep 11 14:34:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800756 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 B0386EE49BD for ; Wed, 11 Sep 2024 14:55:13 +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=RMA2TvApaDTXXGS5nmqA51iitinMolQ+6wWJX3y5BMY=; b=bAVOA4F2MK/7noZMbQFRUu2kZQ XMTT96inuvqTfrHZP8STOSh0VuZZkIXrk6Tt3ioiCOwLjakhNc1zbBAWt47IvB7j+hc2aVJSVXdWR Dsi/gthGjrYJ1jtpuwfIxHwvKdOfO2YUlP7wtfdXD+KMxXKuDDFkyyqVDDKOvSl8O6bdtaVJom/Q2 kcoLz//M+rYaROTU/aMsTKByqmMj9Gugestd7Lc6UD+3XpeUEoeF9bHYyA8Y7KS/iCGKaobAQW/UP TNWp6Qa72pGirQyp0Kd6PX08n0lJ3DJdMSbZj22w0Z207WD33rsgayWIzB+LVCHB6D5dqmYZyE7XQ r3LtngvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOkI-0000000A1sU-2gbo; Wed, 11 Sep 2024 14:55:02 +0000 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORN-00000009wDt-14sT for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 14:35:31 +0000 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-277c28fac92so6016779fac.3 for ; Wed, 11 Sep 2024 07:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726065328; x=1726670128; 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=RMA2TvApaDTXXGS5nmqA51iitinMolQ+6wWJX3y5BMY=; b=AKVTdNJgw9B46Fo+54n2jqtyWA8q3cXS8khes+c4B4edv3hcqkgunD9WxW3CM4DVCt 2eKQifDAVkLPPQ1sGkLHNEBisrqS4eYTB434kcJ9iXHLw0H38qzttsU71S8A5kSkH8sp a6h1ysYIEl10PrhIsJjzK335Q9hqvKGHzA0s0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726065328; x=1726670128; 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=RMA2TvApaDTXXGS5nmqA51iitinMolQ+6wWJX3y5BMY=; b=vIwnGJnVjoq7sQl0dZOduMDyi8XPOY3LhA43rkB/NglaynfamTUtm/RLt1reUcVJOZ fREueNES6UcLjN2E6KWbzbaF1Hjx01tEgbFc/1bTr4owyO7YqXrDL6uuBNZ7NTObhKx5 7WxvGRvivAWqE36ZiXpy7eY82R5IcuxVAISs75AgGqvAixzduLdHwrZuXF3jRNlWxakm +Iktnbixk4Q2PNI2edt80MSwtA9QgZt89lmaMobsnNcdzpbxDvxCfCHi4iaR3tjYb39M S9fv8Im8SgymjMEMJJDxUT36EThGpRFlbg4GmYr4Sf1rXI/7w5xyhf7Uj/oAuVAqN+TJ t0Ew== X-Forwarded-Encrypted: i=1; AJvYcCVCXiW0mQc5aUO4B3N4CdqJOpliUjJw/fJtqnkwwwLHanuXdB8+6PWP5538CUG5ZSObHSznzn6lwNI9MYhF8iEa@lists.infradead.org X-Gm-Message-State: AOJu0YwSMh5eTgelp8aUqo+anueCiULP64D4uEKN2wtP+4d66teDIa5+ vMbCNVv7Vu9xRwhkoYODoozlZ4l9RR0UVPwb/8Oet0AEzsxmzFei/8kZc9iz6Q== X-Google-Smtp-Source: AGHT+IGh2PWgPSU6BdEEz5hfgfCNNula9mOJg1NHDihIHWnwxKEijWaa+jCqU93yQyerjX21e/lgUg== X-Received: by 2002:a05:6870:4723:b0:277:c28c:147e with SMTP id 586e51a60fabf-27b82ed0f49mr16843837fac.21.1726065328099; Wed, 11 Sep 2024 07:35:28 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fbb5901sm46620a12.24.2024.09.11.07.35.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 07:35:27 -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 v3 7/8] arm64: dts: mediatek: mt8188: Add audio support Date: Wed, 11 Sep 2024 22:34:00 +0800 Message-ID: <20240911143429.850071-8-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911143429.850071-1-fshao@chromium.org> References: <20240911143429.850071-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_073529_503476_51A4488C X-CRM114-Status: GOOD ( 11.90 ) 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 --- (no changes since v2) Changes in v2: - Replace hardcoded AFE reset ID with correct definition 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 a826ca4d10e3..6327e1006de8 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -429,6 +429,11 @@ psci { method = "smc"; }; + sound: sound { + mediatek,platform = <&afe>; + status = "disabled"; + }; + thermal_zones: thermal-zones { cpu-little0-thermal { polling-delay = <1000>; @@ -1349,6 +1354,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 MT8188_TOPRGU_AUDIO_SW_RST>; + 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>; From patchwork Wed Sep 11 14:34:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800757 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 E4D23EE49BD for ; Wed, 11 Sep 2024 14:56:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5leCC+xnoiSa3zCuz8WQhl2vdhzFBVOxY/5F24dS42M=; b=YUONodq66+qZf7lX5phE+sfnEt PJA0CCyYHP82dCd1TwYOYaQ77leF+DrGw0D1NgFNGr5DXfTcuTeFq7oGBbsT1fPjyQvo7oXkqQjuc khtFAxuQ9SgnlfMLQuOqfZp1tR2tpiUvjWhdfZobbSY7MzwAXjTJw62yksv+6c5HKn8mh1/nGBikF QAvMzQGDlxmOqA17N616UE/kXOUda8ENEkY/TC7pFzdtEe1+j0WrV0gBRcsppV5+gyTVn/3IcmdOs 28mrvDnNrn63zN0mkwtyj1mNzMeoysWz3urWmVKkcusmE7JhePx0Hs21FZ+Dt5iAXWovMcwPejoKS vZzI0WqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOlJ-0000000A24n-2xFK; Wed, 11 Sep 2024 14:56:05 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORP-00000009wFG-0qpy for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 14:35:32 +0000 Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-3e049185cfeso1274032b6e.1 for ; Wed, 11 Sep 2024 07:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726065330; x=1726670130; 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=5leCC+xnoiSa3zCuz8WQhl2vdhzFBVOxY/5F24dS42M=; b=KcfqAtsY3D2k2czEhxY0MHUZp9KZVc+xpVHJTDhPuubbJ7dQedG/gAIQrmBVr/tWBt wr26gErczHDOIiFNSr/Jb0PvPnQ+mksKXJXQG6+8rLPEDZYe1ePob/O0oLc64NwhR7+M v/ImCIrT+oLFxlAyvZxx+9t0va4pSslyq+OLU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726065330; x=1726670130; 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=5leCC+xnoiSa3zCuz8WQhl2vdhzFBVOxY/5F24dS42M=; b=I6rfYlH2y0uP/oCjYbtcbadVFkgg5To7QlW3BplHD7WqLMhhLt2IiexBGnE7MTuheQ mQGErZ4TINvpZOQx/Ai4CijcT6/WRXquE6DRG2UGxDdwmYt30pTqSgjXV87x9iNXzt4J J04cjHtBNcRmupDnb4tl4+QtnbZPDRd/u9c8wGOTnQEYdjpS2WLMG6ooJFQ1KyLWBhEV KlufubpCqKOugAOSk0OSh4HSek9mkYWKEn6hILv/lIL6yJTCKLxmExGALPJms5v7IJs8 dgToo8dtq2Up4zrgxTkExKyOORFE6jMb3ao5EOKplPpCrRE2CMcdVta4i9WCkZSpVyWW c7jg== X-Forwarded-Encrypted: i=1; AJvYcCXqzYz/CvM0/KhKYaiepyDJRoBia2ZEU1ya2dSNEEe+diuTDkm4uH5GLhXlFo+0MMubP2lt8+SNEVifFe2lSIsx@lists.infradead.org X-Gm-Message-State: AOJu0Yxq2aFNvBeSYpn8GscpkpDsOInyHVmnZuJKyn1/D9wFXPWeXqec R0ZIhQpiOI7gIM0Pg78J5eCzFVTDQysON2PYhQnGPYdGYOY+GFTv8kRTQe7z0A== X-Google-Smtp-Source: AGHT+IH+J+C6d8gNDzhINHwohdN90QAPrsAQWdc7FOUHpN8LW5zv/B/GqRWKq88yB99+d8bvpAIm1g== X-Received: by 2002:a05:6808:2f16:b0:3e0:486e:366f with SMTP id 5614622812f47-3e0486e38cbmr7154413b6e.5.1726065330530; Wed, 11 Sep 2024 07:35:30 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7db1fbb5901sm46620a12.24.2024.09.11.07.35.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 07:35:30 -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 v3 8/8] arm64: dts: mediatek: mt8188: Add socinfo nodes Date: Wed, 11 Sep 2024 22:34:01 +0800 Message-ID: <20240911143429.850071-9-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911143429.850071-1-fshao@chromium.org> References: <20240911143429.850071-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_073531_267513_00D29426 X-CRM114-Status: GOOD ( 10.69 ) 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 socinfo efuse data nodes for the SoC information probing on MT8188. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Fei Shao --- (no changes since v2) Changes in v2: - Added socinfo nodes in v2 arch/arm64/boot/dts/mediatek/mt8188.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 6327e1006de8..bf15ac9901da 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1904,6 +1904,14 @@ efuse: efuse@11f20000 { lvts_efuse_data1: lvts1-calib@1ac { reg = <0x1ac 0x40>; }; + + socinfo-data1@7a0 { + reg = <0x7a0 0x4>; + }; + + socinfo-data2@7e0 { + reg = <0x7e0 0x4>; + }; }; gpu: gpu@13000000 {