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: 13800733 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 219FCEE49BD for ; Wed, 11 Sep 2024 14:46:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gnJ313n4mu2c3Gv27Gu48uhKalN/G5CTdU7jzWSbSxk=; b=EOIZDlVylo8R0g GAKQIJXdNYE3NgdaD9fcp5pzQZ+XPBpqWSXCwgtBsXUrDfRP+6cAyJcAlWBd6A1A0Tdrc8UQqZh9V X8SOyi7c3+RnmXMC/aGQaQHxpAxw1hX33nwJDkEZhFNjeJrZB3+boU6EDfgY8w7oRD9BjgAk4tQx6 mI2Z+mreiMQeTiCorucoqHM/bwN7pAiPsAYI+MvI5zAM+GTif5uHE1gC/71zMrfqakssrAlUrCEyY +DMB3EMLbbsFcf1K85mMr/0/MmuJFsvI6T6aAsXW1cy+EDeY84GWOvo7+OmSo9Jq1zM0d3FrxDS5P sU8f4ZFflKPzrrvq1qfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOc9-00000009ztH-38bl; Wed, 11 Sep 2024 14:46:37 +0000 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOR6-00000009w4h-2tSN for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 14:35:14 +0000 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3e049185cfeso1273658b6e.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=g4qod3aFp4MyUU9S4eveYTanTyMbMtddX/DsCRXXNNEtTS7JS3j+lGACX5wctgDbTs MKac7aaqB6owCOAxxEevwQv1npp/xKwN7qQ48g2LtTrFAoc9Jd99gqkb0YEP2J8uq00W 2zpQjnqjKYB5cAWmrzAC1CFNYi3yYIiL+1KqMxqOAvHySAVwbfaDELwYio2WkgMLsEva fkeWccHFh6WkcA+vP5tUVA1o/yLS4ZV0N5b9oZ/71SSso3BAdlvJqlUlw9MXTTSaSo28 EgNzQ2bud1zQk1KI7f4/k/f8+58hQqUF8dfq1oflSf7CgI9M4aEcEhcMpj/8K+RCrVeh ZLYw== X-Forwarded-Encrypted: i=1; AJvYcCWSOvvsAdQ+AfE3D6UohfbFLBZx8wB4mv31knB4CRz6GpORAwpS2KHUghhAJ4YF9pkWjgJE7Uy4EZvSHHZcUw==@lists.infradead.org X-Gm-Message-State: AOJu0YzvMdcJKvxuMNZJO2NOEwA2zM3jC2yJSNxpHuooib4JIiwgcqTx gpwW2q6gOwdo46weg2fsJU7v7HmrOFk0S2uW7epCRiO4uac3AMi2IWDbiWi/cSRuP0ZQdyGJ9+d 6Sg== 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 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_804360_5C4E583B X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Rob Herring \(Arm\)" , Conor Dooley , Stephen Boyd , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Hsin-Hsiung Wang Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add compatible string for the SPMI block on MT8188 SoC, which is compatible with the one used on MT8195. 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: 13800734 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 1E124EE49BC for ; Wed, 11 Sep 2024 14:48: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:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wnPQW7Y4BtUSgD7VL5z1FONolY3V9ZDMRIrGcpJjXnE=; b=baTjqrs3DFzK6w ShBD4xQQAznUnORIzMAFLFKhrNS3glOMYwatbipX7ptBysLgXhFezPC5rDqTDhc8n+S7Eg1cvKUyk ipzzEkBwO6ljPxITXGTfDLskziGNWoUy6HeQy/ynByZIdLzdr29utb5SK4gKjBbcnrojA/iP3xcbS bF7JHqFQiyB1VjifqXrauVZxGw/a7n4RO9mq7erSyl2gGpKl1DUFisMorhrh9YP3hnOnuhrAulvq5 4M1oOx9d3cfGqfmzYKUmJi03Hj1Ze7ax3N21F7srDHztgJdVym4KDMFM5ektfeQ/g24eYGVAq/STP psdxVe9ZcMGD468O4lOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOeD-0000000A0Ub-30gb; Wed, 11 Sep 2024 14:48:45 +0000 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOR9-00000009w6P-1n9z for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 14:35:16 +0000 Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3e033e37bc9so2519555b6e.0 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=CLCmHSD5fMnoL6xABUuRhc31k7csTCIxIyHWtaSCokSoYOQOS8NNO/ur5zc44qRnOA abTemBnt2PpRQRFt59yWrNSJfW1zXdywKFWCByCQKjGdlg20nSaQ7OrH62XBVURZbNhX iQeRTM+C+RAjBjo+JJnqu8zf0nx+Z3/doi0mdXtxbxrntcBhI9eqIegbHXBCXje+Z55B RwEim1UPs/IV5ZuOFrc+L4x8iQo7dyKC42ITqRrSgyumTFWO3xsLPEA8duAzru/3iB1s BsTWlO7+xy4U9fAJpwDdZntJPl+/oylVE1e2ub/MlHfx62Hz1DezIQyp+3Eu4XT5VUYw 15Gg== X-Forwarded-Encrypted: i=1; AJvYcCVJnXNdkbMtCO0fG3+NqtFYo7Y3wG9grRqb5M/gZ+XRJBHKduNj9H2e9f2B+xR9h70PY1/CJbM7VTq7FNc59Q==@lists.infradead.org X-Gm-Message-State: AOJu0YyYV4K7pE4uv4ESKegYkDpDJtU9JmErEvl150JntEyEInj7k+Kv HHOPkaLC/FqVFWyrH4R5BjdCjaXee41ZAuHYZaPbokRpe0ekTQfj4JWnrkcNIw== 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 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_496262_8B947A85 X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Rob Herring \(Arm\)" , Conor Dooley , Allen-KH Cheng , Jassi Brar , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add compatible string for ADSP mailbox on MT8188 SoC, which is compatible with the one used on MT8186. 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: 13800735 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 BCF98EE49BD for ; Wed, 11 Sep 2024 14:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=flO2kMjBbd38S9uV93LXACtUKy2NNrMVAURW7PjykH0=; b=G0ASGpxHYFFhg0 ztnfg2RULPuUY4QNH8b4eCSP3GmNToSTx31it0BVz1c15g4F1JswMHC7cFZnTJY2hiJC6tIfQnjwi eQ2vfwqfZ98ctfwY8QDISI7JvS99elubh21J6fLnYjvLgby5fZAwpLhd+gUMC87AIVMzoxzrbP4Sf XXw5JIgs+H9IJl2kyLhc8crKjFZvQdM25aIxUjmwJaPaWk8a+8AfOXKrwZjhZFsFLtN2X85cASAGG jDng/DqwPcfbc44ACxruJVtiAH9YZPZTUwM2letQ1Q/cmUmYjCeM36kD+onXIgvUD2ytQY2uBtkLj /sC3Vs02QLpsgJ+Ka1+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOfE-0000000A0n2-1cP5; Wed, 11 Sep 2024 14:49:48 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORB-00000009w7b-3D6H for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 14:35:19 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-718e9c8bd83so691840b3a.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=tKByc/h94saEff2GgQ9bMYyl9mIMQ8FnDgDPUvRsCatnt3aRpym4GV0xLJSgm3MMCd T6xWuHd1MeC4tIs+m5Q2ztytrqDE/isgc2dlavadRFdDNec7BchwiWarR0MLJU1BFi1Y 5E9BH1up8xf9iY/qX0n/tr9lMWe+UM4+NOS3z//qZ/+YyGURhuoRYH1pBcZbFrW0rrRf LkvKifd37vMJzxxQ80qi9QOyobS2w017mcFwocHDWe/qyoOtv2bZiQVtBaS3ZRX+eyTv CIgzl3X+QW5xxbdatvEjiz/8b6PZNyrcutlKb5xvV5NypH4/hlU8HFJBajuXR41hEWjL mkFw== X-Forwarded-Encrypted: i=1; AJvYcCUsZVzsMA2lrVEE61Tb2tqssbNNAq7Ei47I5XEyd7LpZ5DehqVNOCJUvlCbUQsBrDqY5Jcy6zaNpbEirgUqLg==@lists.infradead.org X-Gm-Message-State: AOJu0Yx6ajDWk/czyA14XHoWZEAHstaREN5i6oT3d6j4KN6GSKb+KYOA dcEGUA6r86t0OSuAwfmYrQnTtOiT27RNPYGXimQNeaEWliwrN9pntsC04y+3og== 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 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_810813_FCA0FF6B X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add performance controller node and performance-domains properties for CPUFreq support on MT8188 SoC. 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: 13800736 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 EC845EE49BC for ; Wed, 11 Sep 2024 14:50: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:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=u3C8P2/ShZAyxq+RU0fcUwIOZvUAQXLkIBcEAMfkacE=; b=bpNSa7ui7skhHW qMge4BxJY2rPPhRWv6nUm+9UB/ModtXZgiLU5+4kZptiAOF7gmv7K4aObrLdi3nTEjziKCzgh6eUM CSfFCJZSgvuccqQ2ylYi1O/fpZwcWQOBpT/ilYHTtT9CHVXplufG8AVpOKRuwHX5ek9Z9B1UM482u NI2KYnwUBh0JfH/nA3ntrBg/594aw17oYa2rfv4AOt9/pWXAn+eOtYDTqR+21zBHYPD1egx0ptX++ /BTJM65sCZSoPEjR6oXAHrn25O5kpvX8RREKtiU2w/02GDqnHk6tWFirT1VMaPHQrXiAUYvUkTUY9 APFXEWBjn4AdgHACLwDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOgG-0000000A13w-2Qwv; Wed, 11 Sep 2024 14:50:52 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORE-00000009w8W-1Rvb for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 14:35:22 +0000 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-718d8d6af8fso4487810b3a.3 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=kXbeEOOT/VJGkOf0m1Dv9qHB63fvl4eDw8z4yZkWgGOCmsSDsN0kTF3wmfTfo8tiAs DVqEq0PYmgOgqHsDABBH/jcvUTAlhflMraXGViHw4KU/wp+Tt+z/PQad6ghDUu4t+H7r CYw6r3YuP6VfE9mDvlG5Dw4gh8wvgher1xwKRuzavkyeWIce+EzC29nojLMDfpVPnDHo q1zmwJrRqIMgb3/FF8O4/i5pPfIRvQpqhHjZtBGVxKbKFhFmvHtfY2/hWljzBH8ihE0R ojY+sfwAKCm2UtWzDYOxXsyw539vU5B7R0mA00DYEH35n8NRNE1crWZpR3ZoW1qZGKjs IGqA== X-Forwarded-Encrypted: i=1; AJvYcCVA6MZVh5UBeoDMrC9WPIgqZ0fI/TK6m23o6w90bHpdT+MfRldykQwdojOAp7heb5Sin22416VB/nWm0G11mw==@lists.infradead.org X-Gm-Message-State: AOJu0YxemP/bqDOJ6EHqhef9f4cNiHuTRFwJL2XQNeYtCJyZo1h2qB2D 3GOb3t0uja8zdsNiJT1sVBh9hhNIgcYoCKav980QlYBDRYSlnTRBQ4qMXRmQvQ== 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 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_399995_C14BAF8D X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Local Arbiter (LARB) is a component of Smart Multimedia Interface (SMI) that supports IOMMU on the MediaTek SoCs. Add the following nodes for memory management support on MT8188 SoC: - one Infra IOMMU - two Multimedia (MM) IOMMUs of VDO and VPP - corresponding SMI common and LARB nodes of the MM IOMMUs Signed-off-by: Fei Shao --- (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: 13800742 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 3530CEE49BD for ; Wed, 11 Sep 2024 14:51: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:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zcMX/bqTdupL750gbpR+dTL3DKvin6dl5vwknoD/GKo=; b=N3qUv9tjDre3b1 HkR9qawE01P2D2y/RqFGCtdDEN3byAuH2jePNqwpMe3pPcqWHlRZHNXhEU6K51syGQlClXpUh2riC MUF1YOpA3Z/CskFPQuooOB9pMyJs9ctOkau3bdhi6sIoMh877UJ1OAc2MpPKcQ5ZbiRMCGEpEuSXw u219Oge7Wd5+++sSePqjLAhIKDNIfZmdn5y+EDGqy8A0ogCCaqrh7ipME6e19WJ60Mfmf0EcRC846 LVN7NHYqSvuJUSW8xQ2tU+u0b8VXMzK7EXdtiECVZyalrNqo+u4B5xxNlKHOC6jXu6YKqAxuHceF5 2qHe0h0dXgPoALNMm7sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOhH-0000000A1Jl-3MIW; Wed, 11 Sep 2024 14:51:55 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORH-00000009wAL-0hRO for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 14:35:25 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-27806115eafso3290769fac.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=qzQAl47AWhHF9AsYimztKoClJy5Wx9ZBx/81WuoYhf9F6qeMy/G5NKbADmn5Ap8GgY 43gOF8C6d/9qtAk4aUthEuQk1svjU5/AsCSi2P1E8amMFPgjhrlEwEPloPDiL3OCo6Mm O/N3bYLxHiNqy8ttndf3T3IQJKpkq4iaTXD8Sj2c03v3AGGlNnpaVYMCtSDLwh2g6906 DT/m5iV71l+IKplv15LQ2dDW57O+6a0QqcVLNv1BNvauz7GhfaXAe35JCBggqppQweSx aaVkP2LSsk5ZJ1TP5j/atHozFnDKcBsNkLPb6wyixIZhyPdEbbdF88rMx2UOKhAA0wjM 7MaA== X-Forwarded-Encrypted: i=1; AJvYcCWUQHOStSHJyvQ4Mglx1ArEwfPmAcJpuskA+MR9Sdeuq+YlezqgHeyQlbqh/D7o6Cx14FFxrGhMq9xjwlQouQ==@lists.infradead.org X-Gm-Message-State: AOJu0Yxkqz2iRcyHvsQ8Z+cTe+DBXDYb2tW7GqfFci0++vteIWRtsLKy AXVLsGG9Dm2a5PEoiylLeLm9NChEh231MmqP/2/WmCf6rHoWHKLrsaqRwM+3Ww== 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 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_237310_0FAD46A1 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add two hardware PWM nodes for display backlight usage on MT8188 SoC, and mark them as disabled by default. Boards can enable the necessary PWM node as needed. 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: 13800743 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 13BBCEE49BC for ; Wed, 11 Sep 2024 14:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dNJmlJuaspo2SJylGvarXYbq/qh4LXZFb+SB568Vu00=; b=Zr6B4JW/S87Wuf +6iclgN+xCgiFRDVlfiYFkRU1LsQA2zdSW5h83e3qCVzkY0pfWG2/5RQUYfscKxPNQJLPb/dDGMdT q+J5iiX6eIToG47SU3CWbusoL+80j9dosI4uXxA1Cu68ngid51jjI2mA6NNOR1FtryUwJWqecvDYK kqMMqCOdcRUoSUb182qEBzRasInugeQcQJrdg6xmRRzwmqcgVNWUS/JojxQIRuWA/UGjx0wQTT20q Z2u+Xd9cVCDadMts3xPPaUjqd6ZunULkghLhbJjcewKrZsWhIWfykIWWf0objpPKBXEW9nfb8PlGf jODbs1mMbgPmLoJ0TxzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOjI-0000000A1hY-2tZn; Wed, 11 Sep 2024 14:54:00 +0000 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORL-00000009wCo-0Ych for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 14:35:30 +0000 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-27b7a1480bdso924995fac.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=G2xh8B3IHpaCCc2QHc5w/2R0nm274M7J3dukJb43mJQQ7FXByT5fOEkhMo0tJ1OMBd N+rMd7+f5+6izc+AgLk5U8zKwTJnWMa6FUVAhOSSV8lOHfpN096BoDoD7/Hf/PKSsT+U 0NTLnBlAlTQzHctdwVSjl5pTLI6WJVPcRub8KYojknKfA+cX28+Rt3zb55saHyYddNjj P4Pf4Nu5ddSpJKKy9UCxInk4dvSG4hkBEMppnuV//iEjV6sHwu1oTJ7Swef2FTGEmtT+ n6N/MYuBuA7KyxRVSDWAnTXr7hy3ShY5YbKgpi1Ll78GhUm592+hYqEs78KXJATFyFdT k//w== X-Forwarded-Encrypted: i=1; AJvYcCWxbaRFbpJ7Kwd4uA8ju3KYSTpXS6GTXyKG0RH3WbHTHN8E0eoMLBRVsIsZ2T/zzcPwYyMANsGTGrhXl7hUXw==@lists.infradead.org X-Gm-Message-State: AOJu0YzDIF/nbRbO0XGl+bMO5z6h50buv8tyoN1i9akNcAl+FuiHN2eR 31hkqPwTofi+tGkoP5hWQ0I6rSKoBHxCidhz8y4Bm1uliXXFPyhYraJgpbW+6faLkr73FjzanY/ Fcg== 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 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_433143_8581CFBE X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add SPMI node for PMIC control on MT8188 SoC. 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: 13800744 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 9A270EE49BC for ; Wed, 11 Sep 2024 14:55:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RMA2TvApaDTXXGS5nmqA51iitinMolQ+6wWJX3y5BMY=; b=VmZMpADzzFYLL4 cFpP1dfRLU/FJQg2hRj/YK11Px2QWJM39P6si7NHPIDeEKDQu5S5sZ6h2gEX89RN5/bdmXYg+Qw+c hEuAqdhJy0EQSLDOG3ATwN+n+pOpjHlhU1kCxieb6JxJI5CmZZ7El3IdJ5r6/Yj/zGod1D9expHHe /RuGspuHaQIcek5ZmqEwMYvDtDgHaaS7YrRymtzL9jJQCEWUTfwmD3Ect49cKUuafh/fIXocX9KTz ZAQbGtwBlFh62JRbM4EhNUpBNALu29/Tv8HQFhqphBI4QNcMP6FikQsP4T83PvzlM3vb9awXWp2io I/y+S4v/akvRx+HeZn4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOkJ-0000000A1sw-0u5v; Wed, 11 Sep 2024 14:55:03 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORN-00000009wDs-14hH for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 14:35:31 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-277c28fac92so6016778fac.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=tslhB5W3vJBo6BT3/F2x0wPwDNusWegR2k8/vfD2oAJY+/N/b2/gE2RMhHl2GSMQLI qnSSfKdhUC3YBRhQBxZ0mg4KhYKihq9eZiy+UXft+2B8zVcuA0uyoI8lPgWRnw+PJWKE R//8YT8ABcTG4DLDhTZHMf6xt+LpsMBd3PzycDCQbBqtvrkolYdatIw8ejQyA1j8fPVf koCYDE3wt44hFZ3XxOc4HPu1bR/D/ZyFS6zKaHZSvNdiAKn5+FZFX9h9ARw3q6geT1Jp mHU7TRHpwo3Q6/hfcxm87wajZABNYxbtz+Qq0WJpi0Y2qiokmvcGov/pOLQCc3eYnhLr tcCA== X-Forwarded-Encrypted: i=1; AJvYcCVGYf4+hvitlVf/dQgkxs8l1BKhSnq/mwUKHNwRR2ijWb2gtVojm76tjTC0N5gRYRTtU5clAXsgwN7lnh7qkw==@lists.infradead.org X-Gm-Message-State: AOJu0Yy5Kx/xq374a1ztfv4zyxkL+71JeDnGB6sZ09BGlEIwC5oCzWhK 1ADCZQJxVVNVM4dE1oeMtjDnnyDzPSefCl0u2Tdr/0554Alqq76nS0d1YxiwYQ== 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 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_503776_7020FEA8 X-CRM114-Status: GOOD ( 10.48 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add following nodes to support audio enablement on MT8188 SoC: - sound card - audio controller (AFE) - audio DSP and its associated mailboxes Signed-off-by: Fei Shao --- (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: 13800745 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 B7DBEEE49BD for ; Wed, 11 Sep 2024 14:56:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5leCC+xnoiSa3zCuz8WQhl2vdhzFBVOxY/5F24dS42M=; b=Ep51x7k7L/3ahk bQ+WbPrYG9GV5DGjd3UuwOPJ/KANNFJ1VtrkrP18noTSSGhLsNJPmrdIFslZSfInaeeQxb0hvin5k Nhtu88Z3WAnEbBpr1gcMmcdQKuFZod+EObWZgfZu6VoWk8FmQVwqQmn1Nq8BK4z3qljWzW8q4DXPQ oqGW7XaMGqOGM6kRlmzd5YQ9U1CKxQb3KsOO80cJjILSYqbhvmmGbN3b9m6o5A2A+09m4VWoA9TFf f7UHT4hajhd0VMjAxM3LMQQOkHthtN7p6CI8Zs1JfiL970v0mWylDSO3wtlXFF5DiWr/ud3agalKb X1ukx0dzWwM0RP6tJKVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOlK-0000000A25J-1Eh3; Wed, 11 Sep 2024 14:56:06 +0000 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soORP-00000009wFH-2V5E for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 14:35:33 +0000 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3e033e37bc9so2519798b6e.0 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=VJ4+5DPzKuZ9eXQ2jRFGap2QkaqyuqCqsd9oJ0ji1ufDwMFrsZKN2M5H8P5Su6Xbbd E639OOmRPYfUo8yeNg8zuaF8YFTw9rryl7IbLIMAdeElh6bA/Db4On1nL4I19A/tbzsd +LbkjrBpncgWakgEx81AZgTh/rXc45hGx2UH36U827bG6n9Th/AFwREBfjDzvhnaKsng wRRkuE1ezVhFZMQ8+A7Lt6p9hWduGOO5KviY8Biyfp3WGmrLacWXM8ju/py0Y7DaSFU6 S2NUR0u/bI1NFGb2uJ8fLVrBZo3z4S5y67aLaavVW1yGWXHXyYC9iuf7uy9o5ZxxLX/X nXew== X-Forwarded-Encrypted: i=1; AJvYcCUjt53w5i1CcLDyEQYo6yJVDBgJuLyPZ9+8g6z5RJEsZ1QjhiFxYaUd715EPA4dnseOx+XnTboSOoHmtpgEug==@lists.infradead.org X-Gm-Message-State: AOJu0YyKjGbBIDVKZpSxclpvePMwbwgVq7tr4nxk5g8IhXcXFqLnyJlB pHoIFH+ItkJqKDKJ9A95kcRfHfyZMFKQOM0eR6oQyMDiPmTIHFMc9TctF4zTLg== 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 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_073532_521985_B204B3BF X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add two 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 {