From patchwork Wed Sep 11 10:51:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800214 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 14693EE4991 for ; Wed, 11 Sep 2024 11:00:26 +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=lxB+6fvHWEXWAoAcmBCe/+3gaojpv5E5mRIj5J3oWjM=; b=NA6agmZC3POjwG fYhx6PAf9ia67k92z/IBhrOmXRAZ/po8pEuAZnpPXcuPQGXOuaGkR+bR0DKNoL+on0CV1rmGoZcwt VANdQKaMu+8xh+0CJWcJ+T5W04WMApqzltEjP44xTDxritynYtMapdNBVo8PDiQ3QoJ31mJMo3sTQ 4TXqHZYthk6BAtSNVR4Vxq/djJ9gDTGSGTxX6dqIPNCiKvZ4+KtiD4BQ9NRUWIMPUBUYkqayI4Lbh bOdQ1d6TubrNgOv3SZ6walfnPw+U6x/bi1Zn/8CiftLRusgMiUHkT+DPOgHcvhpNeBpEPjVcM4GBf Kv+g7sowJySX8FRnlngA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soL5F-00000009CtT-2zNs; Wed, 11 Sep 2024 11:00:25 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soKxC-00000009Aq3-2Vwi for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 10:52:08 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-20688fbaeafso67964415ad.0 for ; Wed, 11 Sep 2024 03:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051926; x=1726656726; 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=lxB+6fvHWEXWAoAcmBCe/+3gaojpv5E5mRIj5J3oWjM=; b=NgUK13aSJkD+fKOF+HOgZyVy41gAntzqodkkmqLhCXLMIdXsaruOFgnB9FLCh6tS3H bfOyFP6KwwrHwaJXMu5+V9f1GInH+eRcBzJA7mW+fWn7qYdmi8hCDQp8I2GZexy7txhp 1ONt7w8VhYuCyvt/bwZTJCSr3Rqsk9g+p8FzY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051926; x=1726656726; 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=lxB+6fvHWEXWAoAcmBCe/+3gaojpv5E5mRIj5J3oWjM=; b=tvjDvOJvbiI85GSB323i5K0ejjC0ftmz01doOEqByLnNkLTKjiW+MYqY3DHvcdNSSk 2Y79OlRRHZ48srrwuTzbrKK+efOWa6H2YpxXVhVJnGerOUsF5hc+JDR1ZK3mUPV70JH8 DGJeLvCQmt7j1nZXP0BvlCmqehNffyF+7gfX86OUh5J2tYA4GX6tCEP20f6x0yedZg5t uiUBzHlVlBpV+46jaclQSDAjSPdSU0MvkCo40ogcIy77Bmm0FobGynVWBQPzZyYIeju7 qkht9wv4tXS6BRcXBA/eCIlZLNmtxVa12iKI2OXPW0urVvvdZ9WAhxd4bVuspyeQJBeF hs7A== X-Forwarded-Encrypted: i=1; AJvYcCXs13f1qVfC3LfVn6FcrxXfcD/FSba1PorIi+/m/3JU/buM6fBFOgl7xIBzQfBsAqetZf38ryopFIZQkydTYw==@lists.infradead.org X-Gm-Message-State: AOJu0Yzg16T8NuJnuFnWrcKiI5N7t3ph4So7ru15VJO0pujSTLbsSMop lgArGRu7V+xWy8IXTyoie8Vi4oWyAjcZtoU0WBWf1s+t4x0T60COspGVOVjY+g== X-Google-Smtp-Source: AGHT+IFTR5yrOi8klWJqx+NBpQgcvZapfM72vRbdkK7qyKiVUV1zLbAi0kvSlxVkP+q2NaVXR1gr5A== X-Received: by 2002:a17:902:d509:b0:205:5dfe:7d9 with SMTP id d9443c01a7336-2074c5e71fdmr49347935ad.19.1726051925359; Wed, 11 Sep 2024 03:52:05 -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-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:04 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH v2 1/8] dt-bindings: spmi: spmi-mtk-pmif: Add compatible for MT8188 Date: Wed, 11 Sep 2024 18:51:06 +0800 Message-ID: <20240911105131.4094027-2-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-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_035206_710889_B89BFA03 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Rob Herring \(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) Signed-off-by: Fei Shao Reviewed-by: AngeloGioacchino Del Regno --- (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 10:51:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800226 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 8E97CEE4992 for ; Wed, 11 Sep 2024 11:01:29 +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=MOnoYB01CVn34qVTO0Wi7WMlpts2N+jH706yGUshpao=; b=RZH33ov5I1qVmL fSwslBRiGWWPPgqsF50SL4l14k6Sdm0RRpsLcK/tzL0usMrb65lNn/3pCBWgWQXBdKG2EM8BV5ep5 2Mj89s+i9kujTv9p76na4yr11g2jph+ghc5AlThr3Z9XowDV6M11CkJtPWehfZm9knQMc1n4IkdDh 5ljoeLIZNShlCzOtPAepkiK1VALTgtBopg3jFmuebu+l3323cPX3gB6UyFwoJXt6klduZEvxMWjIk 4gXOKk9DaEXe4wtDoN0WFoVvhVjKe5WR8n2GNV2uPFeb/v8BdywjDFq1CCoPslKUCdEmDKroh+EXo BpI41RNVCx0qTQKSHyuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soL6G-00000009D3Y-3q5t; Wed, 11 Sep 2024 11:01:29 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soKxF-00000009AsF-1ec5 for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 10:52:11 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-718d6ad6050so4179424b3a.0 for ; Wed, 11 Sep 2024 03:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051929; x=1726656729; 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=MOnoYB01CVn34qVTO0Wi7WMlpts2N+jH706yGUshpao=; b=L4EU0OVXcOTccrtUqA/mLL5EkmNVN3xjDr4QAUemRfzAcEIjSFFBh/W4J0mXuTC/YA I148IBdR+5rqrrKJGvHRy7X0N71dY3PTbMQ9UCUqRDg0Br76Bi3QWqmLT+4e983EgvBB ft7kYfIDYACla7b/bW1PSuj5AHVCZ2yNQpNhc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051929; x=1726656729; 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=MOnoYB01CVn34qVTO0Wi7WMlpts2N+jH706yGUshpao=; b=sj31iHOg6LiwKoWPqlYZiFWYJ6mAm7de2WTjkWAZ7QUXmwk0p3JSkA1i50O3d6yf6S /qTFnM8Kt5cTV1XOUvY+rSurOUBv1zAaYL14I+MGnRDZMNuJoEDkXJfFrZ4JpCfFeO7x aLOmSWcNwULow5vpjOuz1XWHhWri+Wa9rm+Ry8sGtfJo3dHygsCBdGWs6ppnQNu7eUcO nei5TWvPUTF2dhe6eQZhT3J418FzJ234bhul58CbGghsjLUNLjjfluCHFO3wvPQX9goJ dtOiMgCmiTp0mzQHfvcjZZZM3Up/EEtyD1r9mqPu3Ww8q4nAj2WuCgL6VwNqnaAu/ece jSdQ== X-Forwarded-Encrypted: i=1; AJvYcCXNfquNInmhdZN7skiKBCfRfRbfccqCHoup+4zLkNJqcWvOhBkstLoExgz3CyZ2cgM366LhMq3FYXZEHmOoRg==@lists.infradead.org X-Gm-Message-State: AOJu0Yyzt9KYGZdOpXZZEuYtn/KK4H3GmluM6QEK4TsPT10LiHcOKpmT 114PKr4FIE6VRJEHVXQmORiRebt5JNpTdLe5JY/zbFZ4hzwXBsqxvPx3MVmfxQ== X-Google-Smtp-Source: AGHT+IEg8W15drzsQZ3XAibIoe6Uk9uFQemRLNOwGm8NTstfjakhVV4QW2T4x1pKLwY5Nwdep+zD6g== X-Received: by 2002:a05:6a21:168c:b0:1cf:2901:2506 with SMTP id adf61e73a8af0-1cf5e0f65cemr6315893637.14.1726051928367; Wed, 11 Sep 2024 03:52:08 -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-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:07 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH v2 2/8] dt-bindings: mailbox: mtk,adsp-mbox: Add compatible for MT8188 Date: Wed, 11 Sep 2024 18:51:07 +0800 Message-ID: <20240911105131.4094027-3-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-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_035209_524862_C902FF9F 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) Signed-off-by: Fei Shao Reviewed-by: AngeloGioacchino Del Regno --- (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 10:51:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800227 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 B78B9EE01EE for ; Wed, 11 Sep 2024 11:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iiXfhH6Tnp1v6o4UDgk+1tYvrebnqA2dEhUrxtMqtKQ=; b=FWdDyXPhUbaxOy dWylQOZebknLviZHtwA4bhY0K52rPgLM/aB16RSoDzwMurqpB9v9YY3XDE8CoB0UD69SeINoVUUA1 6ZJO6V9k9fhnECydmO+4qYEJg+WolALPQhOnSJX7/T8N13G/uptpfj6oF9ZDQoSaVaSuSn8p/DTm+ A8TPUfmPliUNKzpOcF11GjMGdXZeLqQAnu4EJljytejODYHQwFZyJw6DVBwpub8yFqSGdxfAYUD98 Z9IGF1dBxIWIGmhCwzAX4pT0PHCABJ43t+a6hhsqBdV71ynwZi+epmGNd9pHIT3Tj0fOsnJh1h+ed j5blirT2fFFHNeS0/BUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soL8G-00000009DLo-1f3e; Wed, 11 Sep 2024 11:03:32 +0000 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soKxI-00000009Atf-2Ier for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 10:52:14 +0000 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3e05a5f21afso814956b6e.0 for ; Wed, 11 Sep 2024 03:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051931; x=1726656731; 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=iiXfhH6Tnp1v6o4UDgk+1tYvrebnqA2dEhUrxtMqtKQ=; b=iT0peCWsrberQlTukvzkorkr8Refu7+BUQTGjv5BCL4l5mZmtDtVltj2sNtKmeWCUO Em4QeKcfKKM9HtW+/D+9zlVnlTd2JTJWwCmPQ31QhbDDBTRyGUPF/SHKt2e4l05jGRjn jQsLt9QjR1WGwRvAS1IfZdNKtOIA57b12O18g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051931; x=1726656731; 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=iiXfhH6Tnp1v6o4UDgk+1tYvrebnqA2dEhUrxtMqtKQ=; b=Xmw6UDHlh73IcD8/Szirtn+CgpJyL3FwZUX4YCwdaB1PQOxLX/9yWReahBtB34T+ez CvyitKrvC8bfbXI4MJI7rdXyadp+sjWRnqbEVfE8oMpd51Bb0wmbd6kml5JS+V/AA6zZ DYNZ9v5EE2Hb8f4+P4fgCPffE7SWaIYvG66nc+wKqLT0HkT4zWTY+y/+FpXK2sjV1f4z oQmUF2zGN+SWXoyJsqI5W9VpVprUO4LFJx3Kkh1wLeOrR7zLVHRKwFvPrfOpYcOAbNI5 nL0noVa9ETVTWmeVacBL3y8tzGK6+lkAY3UVOygwIR9S8fQhBPClqnepjJ5p/+zB4Mzp vd8w== X-Forwarded-Encrypted: i=1; AJvYcCWCtNiQm1t5UgJNPkWehtYt6RMgo9XZRWa4u2IbfWIY4c1LqzCtOTJ8J5ZDHuTDWnoCCc/3VZUi4spav2j4Hg==@lists.infradead.org X-Gm-Message-State: AOJu0YxyXZfnZ7tB0lSJIx6c9bBeSzJJg/tFcT3K1Ye3nbNn+jshMZGY qDhZloszJj9NZbuO+P0sgMPVIYdvLOz9hywdqtC2dONEyH800iI1MbZgTHot4A== X-Google-Smtp-Source: AGHT+IHW9oSNJD8oopaqEVzs/tys0SbN6+/1X0Ax2ScypJxfEIBlNpu9QiRwIEeqPSCjhbtYV0wiSA== X-Received: by 2002:a05:6808:3c8f:b0:3e0:3d83:49c9 with SMTP id 5614622812f47-3e03d8349f4mr10035939b6e.7.1726051931237; Wed, 11 Sep 2024 03:52: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-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:10 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH v2 3/8] arm64: dts: mediatek: mt8188: Add CPU performance controller for CPUFreq Date: Wed, 11 Sep 2024 18:51:08 +0800 Message-ID: <20240911105131.4094027-4-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-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_035212_650174_AD385842 X-CRM114-Status: UNSURE ( 8.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add performance controller node and performance-domains properties for CPUFreq support on MT8188 SoC. Signed-off-by: Fei Shao Reviewed-by: AngeloGioacchino Del Regno --- (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 10:51:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800229 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 85B05EE01EE for ; Wed, 11 Sep 2024 11:04:35 +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=B9zt0w0I0MVr+V MoXH9QS46XxuJoQB4dhypgurm4UVzcERdUnUAQTGkcQzkKgBgrQ8DHot5Yq2ej37fgXWMU/xpQ+EO mml3ZrjA9lGUBwSwdhebev+LF1B3RqBHzZpusK1J/3yCDNeYSJEmwWGtjSf8EXpmxVzhiAohlSLdg uyP3bmsGbfTktHf06KuDAc7J9Dmm4rJ9xjN1jd4NWMH+E6tJufzj8BbDPLD/2WmtpbW3l4+iGh4Gp S4KtHgAyTtlFV0WU4uVkOahKvL31U484gtSaqc9KUCMj+WX8lXkSrGxIMsEbtjsFZJQpSGsOn5LVc js50D/AbJFNU5Vd967Rw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soL9H-00000009Dc9-0t6Z; Wed, 11 Sep 2024 11:04:35 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soKxK-00000009AvN-45ag for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 10:52:17 +0000 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-718da0821cbso4236442b3a.0 for ; Wed, 11 Sep 2024 03:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051934; x=1726656734; 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=cnVevEvm/qXK+eR+aTk2XhdBfd6OXeOjfQq1GL7p7GhJFkrS/ZEBK4vSfj0s+YSJvA 7Ni5UA2/GtCeLS2JNas3wh89Ua3N0+wa0zB5xP37Ox3BHU4ybVgpXg7EllavBWWgbHdk 86Y0yGjzUS/Lhmnc9qSFeH7WHBzAKcE4ORhnY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051934; x=1726656734; 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=u/8bC50IDDm5F5nDUtKROTVureKrJ5WoojnsCy9CtdIXp64Azto2IbEKCJpQ32+NKe RjV2kesRtyEY/GzPGB722jM66O8sJ8FwmJKu7FogMnozmiQXpe9HEftIuexCwzExf7o9 80FBZV1ToDIoXTnhpJmfh6Rd1J4p7sYFsshb1lVAm6nLwDZ0z49zAITUU84y/dIODfBr HnrjWKQnZ3I0UnXWjjF4H4Sf+wOuJS0ZwgGENCvJLcQ4ZGyw764fnXnsH9LGQkdpZkNy aYVBn+/0mJ2Fo+CkgfkSOfBrQVQhJih3G9bcX46CBHeXSkaF2j6Cmt6kqaCLabOTDBcW 08UQ== X-Forwarded-Encrypted: i=1; AJvYcCWMqbksP/ZMY/LB8bqDSUSqK5XTKYrQhVO3QK2WTk+DJhCYlZ9nS1nh/cafyg1Cfe2ufSvd++b9aWKuO3bWeg==@lists.infradead.org X-Gm-Message-State: AOJu0YwJmqQPtsYfcaef3xW8TQMm4xafYOfZquZlDNt7sofORz/oHmI/ IzovhwAirRItn0TB8fqG9k+ChLpjh9VgcvsTvMyl0yorA60BgA+cyEgtW5wbjw== X-Google-Smtp-Source: AGHT+IFvcmZapnkoc8hFKeAufdgIfoNywmUYYmh54sA4Z3cUyhlE/Ivs+jH9iTZfXDjBYPY0vLczEA== X-Received: by 2002:a05:6a21:2d8d:b0:1cf:359b:1a3e with SMTP id adf61e73a8af0-1cf5e17b0c1mr5019616637.32.1726051933650; Wed, 11 Sep 2024 03:52:13 -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-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:13 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH v2 4/8] arm64: dts: mediatek: mt8188: Add SMI/LARB/IOMMU support Date: Wed, 11 Sep 2024 18:51:09 +0800 Message-ID: <20240911105131.4094027-5-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-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_035215_086736_8CA23375 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 10:51:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800228 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 1F9EEEE4991 for ; Wed, 11 Sep 2024 11:04:35 +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=VjEfjad5gaHh9yR5Z7gt+sOiMhf7ln7vUbnINutcJ9U=; b=oODUOs3Pj6z2cS gGZXa4VzoBnmVFCJzho/SmqyS0d43OTi/8B+myuQI/h+kG1EEapERxnuiybJQlyN/99DYVj6VFXtY Z7Ftq76RKwwEnKmKvFsnGdSXnINv8g9Ku5xyIM4P0J98/1eFZjAqwAJclgCSSIZxVbNJrfKa9JeTr Hwy4nbftg4zBCFLa1KkUJN18uLPK5EGzw1/SESc9IHM0sEE/7Wuul74km3y4WpUvWOsEbmRLd7stw coEEhoj3OodqDYMY4+PoUl30tvUeFbE8l77vMA8PWPDlWut1pWT7zIFxJLbdQXKpTeGnkMqTzkTxG BNKm/3DsK67ImyFnLR7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soL9H-00000009DcW-2Tej; Wed, 11 Sep 2024 11:04:35 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soKxN-00000009Awj-23fg for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 10:52:18 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-2053a0bd0a6so18949215ad.3 for ; Wed, 11 Sep 2024 03:52:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051936; x=1726656736; 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=VjEfjad5gaHh9yR5Z7gt+sOiMhf7ln7vUbnINutcJ9U=; b=fLefkuBAvHDaMZ36Cr68RFMPIsgUVmPHZjq8J9/4Y+fjwol2tFKcNRgGer5BQfILGr ZzYfBLJXnTMhwgSklUh7Z91rTsmpSHxQNrYID5NylOW0HXtZHK0Gidoxi72x6XKC5Lwu R3ZNcSblmgw1EednO1acb1mWlqvZu5amrjGxE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051936; x=1726656736; 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=VjEfjad5gaHh9yR5Z7gt+sOiMhf7ln7vUbnINutcJ9U=; b=nO6ly4M+0oWHp68UIn7xZc1q0fWL4DaaXH6fWKNTNR5IWBTmMkQwjmgJC/4QQb6tZ5 AXodOtytpTMzFSQwB9i+z6OfgSLcRoT7ARhWdigoXcZ2mSJHJpb/Jz/GIx/9PSuRKAQL vihtCjmHSn/Mu0gCzecerCHHglQyBkInyrCfTWZ3I8FfsXa+di2Gu1VWuHF8BmQ4ivth 8isO/QiZdMIim7FwJXykNL8vU3qeSdlUBs6vICdIQaiP2qIXe4dKlrfDhxzsWau4du6h eUM35VP0OCoitzMw8k4UpM5PLCLDdB+Jxv1pn3NQoVfCAsRQ2778NK1ykPL6KVWNb3zj tz6w== X-Forwarded-Encrypted: i=1; AJvYcCX9Yf0BEYMLCejNVuhJyNO5fXYmExMEmFOEBJ/zDJ0ygnd3jZ5dMb8X2wh2tGRRUNWVBrk0zWbIxXsuA4NIDw==@lists.infradead.org X-Gm-Message-State: AOJu0YwPMB6XVl/D5wAH0Tbo14sCCl62sFwIHoQyTrlIxIMFq2ewkrkI JLM6Hrf1AAN5i4QXLMOtyX2RtdMEE3Bp1KZnjbRjdYiCRGsLK8OSBpalzJHDPA== X-Google-Smtp-Source: AGHT+IHlInOKvp4aF9oOmTvOITgeWKC+0zEZ++z77fG527ltX5qYlsAvDX/ku3VjlZ9QpmIaMIkPLQ== X-Received: by 2002:a17:902:d2d1:b0:205:4531:54d with SMTP id d9443c01a7336-207521bbe0fmr39165075ad.30.1726051936144; Wed, 11 Sep 2024 03:52: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-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:15 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH v2 5/8] arm64: dts: mediatek: mt8188: Add PWM nodes for display backlight Date: Wed, 11 Sep 2024 18:51:10 +0800 Message-ID: <20240911105131.4094027-6-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-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_035217_572078_8CD2F514 X-CRM114-Status: UNSURE ( 9.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add two hardware PWM nodes for display backlight usage on MT8188 SoC, and mark them as disabled by default. Boards can enable the necessary PWM node as needed. Signed-off-by: Fei Shao Reviewed-by: AngeloGioacchino Del Regno --- (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 10:51:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800237 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 91F83EE4991 for ; Wed, 11 Sep 2024 11:06:41 +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=3HQV01fo8Eazmoun9faxS0xRrGLPbJrswKSNOP5sQk0=; b=DppvMVYTX+S2CV IqY8bS82j1b4nMu4Lhsf2qgsCSaF14D4P8OsQtvD8BqvsZGgU6rC3qJCH+6gHv9XvUqYS+6b4Jss+ Exi1guPwedbvFRrJocuoOEr4rV2MlnwzPrUZvmhfj95golCck+tUR4vWADMZ4OJPW4Dgx8bUH81wj avUDs4Lbuf5LghSiizQA3SgukXbcGBFgNVyy7Tzhr+gs51TTTftHUCiZJ84B60KLkxZd4ECPhlbi4 QhCkugJLCen7uEfHJUZnVWqwgWQvLF6OMWgD4zbIyHj1+yp4lxu1LZhsNH8Zuz3S5UW4vCeIh3skD 6LfuLcs7IMbVmQLOQOYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soLBJ-00000009E3u-1KpZ; Wed, 11 Sep 2024 11:06:41 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soKxP-00000009Ay0-3AOV for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 10:52:21 +0000 Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-7db12af2f31so386706a12.1 for ; Wed, 11 Sep 2024 03:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051939; x=1726656739; 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=3HQV01fo8Eazmoun9faxS0xRrGLPbJrswKSNOP5sQk0=; b=Af1fARgKBTR7H9ioeLobg4hFW84QU18a78+TJKTUmlraZnzDVHr1Q8OQW3KjU/Rv/l QHbRtZ0yuotwg7kbng/oUtJjzmUlpNJJ7LrEnRbiXMXnREWZHQpNmtr06xZimm5tJSX3 /Xb1GMvwsrsGBeaFlNz8t1R81mP4qxpfWG9hQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051939; x=1726656739; 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=3HQV01fo8Eazmoun9faxS0xRrGLPbJrswKSNOP5sQk0=; b=Btq6H/e0YAaeJ+YTBu/1y9KtzOpFPLTkOEuQxjyviz2B9OOhnBqcdhBk4ie9Hzp23l bSu9k7eNq+rV09rmSXE7sJYgRAY3c5ugF+fJwynWLslVnnxJd85a4f2R+e8Zinsm/a+F ed6l7imS9iCDmlv/2hsmw0Iv1jmHl9gM/dym0gLa9lamQ69Fin1ochPCOCzgSQoPo97w i+QrstmIOaUlKbFkc1PQ8blYlXDBY1mwW4ur+1JjfLNXs7OWp2z/nbQDyryFRn7u1FHX AsCRhzYR+m8o/x9kA8D9K7M547St/XmiQf3W1DpkJ8lBLOxi/Hdj8DA8K6Iz+d+drS0F XzqA== X-Forwarded-Encrypted: i=1; AJvYcCVnN8dIhHrLHXzryTQcW7NJYBlDABh3F38klCjWzqQsNRZ5sY476cQrYCXHjdX9Oy7w7s2cdCkE+G3y8Ld/LA==@lists.infradead.org X-Gm-Message-State: AOJu0YyJOH6dpRIsiKG6lyXCBBuTjMH9FPNWHjl0Q5BEHp0tNbhDdSv3 wkES1N9ncC+B955EzfEZwM9JoNtF84L+bbd6ZI+vK0wLtzikvIrt7rF7qICXAA== X-Google-Smtp-Source: AGHT+IGpIHc7bP/F9Qr9SpWnaJJbLZcEiPMmrVxSgqEtW06qM8RmvMPVCseAMDYizvq7I6rvYfbmIQ== X-Received: by 2002:a05:6a20:c703:b0:1cf:2357:df1a with SMTP id adf61e73a8af0-1cf62c8d808mr4373257637.10.1726051938654; Wed, 11 Sep 2024 03:52:18 -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-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:18 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH v2 6/8] arm64: dts: mediatek: mt8188: Add SPMI support for PMIC control Date: Wed, 11 Sep 2024 18:51:11 +0800 Message-ID: <20240911105131.4094027-7-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-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_035219_819895_0D2715D1 X-CRM114-Status: UNSURE ( 8.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add SPMI node for PMIC control on MT8188 SoC. Signed-off-by: Fei Shao Reviewed-by: AngeloGioacchino Del Regno --- (no changes since v1) 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..32e5b7108f6a 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 0x000e00>, <0 0x10029000 0 0x000100>; + reg-names = "pmif", "spmimst"; + assigned-clocks = <&topckgen CLK_TOP_SPMI_M_MST>; + assigned-clock-parents = <&topckgen CLK_TOP_ULPOSC1_D10>; + clocks = <&infracfg_ao CLK_INFRA_AO_PMIC_AP>, + <&infracfg_ao CLK_INFRA_AO_PMIC_TMR>, + <&topckgen CLK_TOP_SPMI_M_MST>; + clock-names = "pmif_sys_ck", "pmif_tmr_ck", "spmimst_clk_mux"; + }; + infra_iommu: iommu@10315000 { compatible = "mediatek,mt8188-iommu-infra"; reg = <0 0x10315000 0 0x1000>; From patchwork Wed Sep 11 10:51:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800239 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 36E8CEE4991 for ; Wed, 11 Sep 2024 11:07:44 +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=TRJU0t6yYHxtxWleBKO67lBHd41mlkKGaUj6trBU+Ss=; b=FTautrLFVMowIY o6nQYMg9WGAVBl+5CdDp7d3O8jtjAH1T7ZB8tdt9mqTdgbE1g0uAxZFMIVS6JYTI8zmiTy5NtC8Gt TLV8OIfyoWwfiRxDUv+LmIcIn5MOKYu2x+3rB7yKe3Y7H9QDzN+jATMBvUtM0jfW1VYZsOkDYpfS2 iETdi/KbWLASWkB6okAZ3IQ+qBCL+6bQQ8tHI2I0C+1CO0cPkNK5wtdnNARi6bQe+KyKZLzRJ9yrk y2yrZrjA5CDGTLrL6SPp8zVj+6FEIrULXTDfwx4HVq9ognJyoDk11EYXS24AxTi6zspjoSNhFjJuN n7BFQ4lDfZreBNLjWWDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soLCJ-00000009EEl-3uLO; Wed, 11 Sep 2024 11:07:43 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soKxS-00000009Ayy-1sXe for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 10:52:23 +0000 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-7d4ed6158bcso4615548a12.1 for ; Wed, 11 Sep 2024 03:52:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051941; x=1726656741; 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=TRJU0t6yYHxtxWleBKO67lBHd41mlkKGaUj6trBU+Ss=; b=cR/UPylYmVdvwWpSzzHPy8TrXCSFdqjuqhUv/TY7aDx9aAvhb+8atyiS+JtcwhjVjf gdy4kUPzD6aEpubEChCIe04N0ierHSEmqWnaoB8EzL4oK5p9QhCEATTDbTIDijF8bgPu uXncJnuIVg+MiLpCGfClVSPilf/H3mEAUA7ow= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051941; x=1726656741; 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=TRJU0t6yYHxtxWleBKO67lBHd41mlkKGaUj6trBU+Ss=; b=JcQloWl7QD4FbxJzJtfl7PoWXGfbmHt3zMDFLbNBSGmGl3jdD/lo3i/62dWYE8Wt1Q Vo0ySGluQJi0wPsO+tW8oWsHNl/FMOV4TOImhK/IcGwiBO55DZS9mRDtgsOWVY2PC5jd ZshhIM2ZFkQHyayxZLM41ju56Oo34Flz9ogAusVRjO81ESCZQ2+APFZN/fJFB7pbAEuE DVhMaaU0tzhjiC1k/Hnh9GsZCDX7xI4eSs2WHcK5pb80aCOUm0mq4HOmSWpVSKVbZV52 yCTncPE5OWLx+oUrUueBiK2JEKUL/W+oFKA9aWz13k43766HWWUdC57IfOugpohQrTmi 3NBQ== X-Forwarded-Encrypted: i=1; AJvYcCXSxnzaVdGU+4ECTATuNXNKwscbu3B6JFXCmQnYEOflvnc5aDYUKYVrDlGFAdi44Qi7epSqN4zndCpV+FbX3Q==@lists.infradead.org X-Gm-Message-State: AOJu0YwDR0iYBWw3A+F4zrL6QfsHI02oIv05W7fay3msGdvXBG2YZcXA V4BNQiF9VQOZnpZXA3vYXqgjR9Db+DBc+UOJx8M50TJiW1k3mnHTVDF5IHJ+Ig== X-Google-Smtp-Source: AGHT+IECm7bSQDC8ZsxIXjMTAElbncL0v7wsrCPb3dyLQVmVYtqmVb6fO9ZMVHxPt6utNaXN13eKCw== X-Received: by 2002:a05:6a20:cd0e:b0:1cf:50e6:fee4 with SMTP id adf61e73a8af0-1cf5e19f82fmr5867984637.49.1726051941085; Wed, 11 Sep 2024 03:52: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-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:20 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH v2 7/8] arm64: dts: mediatek: mt8188: Add audio support Date: Wed, 11 Sep 2024 18:51:12 +0800 Message-ID: <20240911105131.4094027-8-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-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_035222_498528_A239C820 X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add following nodes to support audio enablement on MT8188 SoC: - sound card - audio controller (AFE) - audio DSP and its associated mailboxes Signed-off-by: Fei Shao --- 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 32e5b7108f6a..f459e86d4024 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 10:51:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13800238 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 9C29EEE01EE for ; Wed, 11 Sep 2024 11:07:44 +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=rBK5HrwCcAQdUPHX8HmJCGl0lCk1GIRThLwD9xKBAaE=; b=13Mb4Lggvv4jUd c3jhV4qNMQayRyfys2Kzjj1j6NEOo9MsTlld+ixKF/hgYrEjlSC74bEcIaALbc3VAGpJSbOvrBw3m eJXXVGIpxxOgKURWhPB9wSMCgRLB3I8WfFQpW/XilsdBoa2fvYTOJAUBHKZJF9xU3WWZg2fg35n9p jbqGPzuhdu6BhWoyj4YF9xL5JixNSrX37GtFlPIHO1sPtf9bYw1d1cygIr4sczTBiGyqZkB+cFqzW tLTYVxlYDgEmWV1XPhlGhZzQpsmB8ZnCaS7XQgBTKjkDXMy703Ma1INIJAqzv3yWIO6qrsIQFIJNL krHfy8MJ9pamJuwmD7cQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soLCK-00000009EF8-1AwG; Wed, 11 Sep 2024 11:07:44 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soKxV-00000009Azn-0c4Z for linux-mediatek@lists.infradead.org; Wed, 11 Sep 2024 10:52:26 +0000 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-718d962ad64so4854928b3a.0 for ; Wed, 11 Sep 2024 03:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051944; x=1726656744; 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=rBK5HrwCcAQdUPHX8HmJCGl0lCk1GIRThLwD9xKBAaE=; b=CCx7K+yz7nhbYqECjfABg927LUtauR6SNAVLoyNEkEBbROnOZgxXy63ltxG7/0sh0H KV4VYCR4VTi0Mb3iR6Vi9FXDGriRNxOTm5dfIuK+9GS5yIXCxQCIPgvczSiUyh0mNImJ aPvJNNJ/hGnzWqfYf3cnmz4Df2A/QiIcqqOGM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051944; x=1726656744; 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=rBK5HrwCcAQdUPHX8HmJCGl0lCk1GIRThLwD9xKBAaE=; b=X2lG3z0lyVHNvDbcEYD4pJ9ldiVn60xU6YdvT30HKF0Z8VGP94cJE4F8rQDoa5abJF aGvVf0HhF8UeJf+3ukZg/qFcAh0+djiIrjK51Ox0SsvRLiKAlgtNRK5AyLwU7IPtf34+ j4QJKvFBK+GwqNDi56WroSNhpSTeH89Ck7fPwyWZLz2pcun7VQ5Po5BU33JZv/RPDt1W O6YfGrK2Kh+rDHKmuYGG/D/VsexuGQdFEFQzF7juwnaeQm0FxDDxIRNrU1xKqeTwUPk8 KudDOkCDBurerTXM17pf9ILi1Px29nuGN5hzLk4HTlN8Soos5gDj7NFdyDzSKZPk5Evu Gv2w== X-Forwarded-Encrypted: i=1; AJvYcCUgT6bNtlyqNwh2bs1P6vBg6EmW7kXVy4SlBCL/8ZInS4JALkBrIzTUz+3W4Idbq8ShHKiKkbxBweOrWV8maw==@lists.infradead.org X-Gm-Message-State: AOJu0Yzc0pLv/iXYHNEgXTUrZmt7NyYLp29Yir5+OTuGfN40HysaDCh/ 4iScvCl8tkjmlY4QC2oG5aiuyOTX/fDcwShd1RdhGRc2WGpySLQW7I39NpICSQ== X-Google-Smtp-Source: AGHT+IG9YgMDxM6JH6QzsTZiuEKQdBS+aqMoSgP+yD4hhHJ4WT18x5zG3lCN0kR9XJqx6yodEhrX6Q== X-Received: by 2002:a05:6a00:148a:b0:70d:2e24:af75 with SMTP id d2e1a72fcca58-718d5f06932mr27638808b3a.24.1726051944217; Wed, 11 Sep 2024 03:52:24 -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-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:23 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Subject: [PATCH v2 8/8] arm64: dts: mediatek: mt8188: Add socinfo nodes Date: Wed, 11 Sep 2024 18:51:13 +0800 Message-ID: <20240911105131.4094027-9-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-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_035225_207970_628BD0D3 X-CRM114-Status: UNSURE ( 9.46 ) 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. Signed-off-by: Fei Shao Reviewed-by: AngeloGioacchino Del Regno --- 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 f459e86d4024..37fd16691ec7 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 {