From patchwork Tue Oct 1 11:27:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13817880 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 4F904CE7D10 for ; Tue, 1 Oct 2024 11:37: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=23R0TZIA0axsqA2eYwuXEJ8B9IwUUAXH2P+ON9b6WwU=; b=oCcmm6WdY9vEb1 wzBsJDoSTHUNGTA2pF9vNVKJqwzF0mA+ziNHbiLYq08vMPVwECqVIbTY9G4CQ1EVxQ0bngzLua5dx Up2rROPecRrwLXKMreXQ2gdwXfujFdzHzaj/qmauiWB+no/T8ZfjNLHQSKP8zDoO8bp5jeoS9rnY1 UFluv8Gj5sUVfQfUGgUBzNp5YZ9iNKSW7fd74xi4zO7CH50efnouIcgRnPJqBtZWp7bTU1oPq3C6t cKEnliWM7BWQxLJWAGfSEP3PL1FIUC9prDl1Au/a8WH4axa4Cma0qp+7uJ9yoLTlJDsuoYtWW7jgl dRODM7xm/kFpk4qPy/Vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svbCA-00000002Y0N-3hp1; Tue, 01 Oct 2024 11:37:34 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svb68-00000002WGX-4AX2 for linux-mediatek@lists.infradead.org; Tue, 01 Oct 2024 11:31:23 +0000 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-71dbdb7afe7so362237b3a.0 for ; Tue, 01 Oct 2024 04:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727782280; x=1728387080; 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=23R0TZIA0axsqA2eYwuXEJ8B9IwUUAXH2P+ON9b6WwU=; b=giZg4nvxjE11ZvdCmn+zWvtdyLxBeAJ9ZJ2lr+2GwVHTADaUrSpX164UUn43N/HP8g K4Kqk0AhFZU1d6ZlzubdzZckyQCrHQwckp1pIIK/yLsHWAxZt2cLleDMuyb8Kn6iE9Ll WZ48UxShw+S9ip/IZBcxeFOCLxUYqaVQ8KZRk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727782280; x=1728387080; 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=23R0TZIA0axsqA2eYwuXEJ8B9IwUUAXH2P+ON9b6WwU=; b=LVRsnE/joTHf/QMWCvs6bIigyctsKyUnptO5hKcKpN1uvHB0CdoTBX17ZgRUmjSsBj PkwmICHZYVaS0dngRqio2mVDzZceNQdL/k8nIsjz89tnYf0xyT+SXAQwiIktdRWS/36j Hz4g9ixBA2E3MH/fqoD3kNLd4+kOseuuK6826E8R2Y+6k7q/6+Fktp2P3yC8438EZeUt mdZUD0zy7mPlZf6P31YE9HVcQC2DyIdf4m5Fg99Ge15DJVA1EgVRzpHGT9b3Lc+g0J3a wXiMewBio47EkzkzTXjm5ZdT0guBd4Hy1QVJsZ58KBV9MHvDfQGbt5kRIYT4xRKGBkI5 69Qg== X-Forwarded-Encrypted: i=1; AJvYcCUixsraxOu/NtKZZ3xkYBUPf799zZqJlgYcia9S+psjdNvwc3oSO2MHsoFO6r5xCH0cI9p8kgQ1V7ob3FDQTw==@lists.infradead.org X-Gm-Message-State: AOJu0YyK9lNjvwCFok1SECFjqyf3lDXbg2HJyZQ1x5CbLes9BnMP53b6 dJzEuUOz2fGCwAlUTRxfNebXeXOqDU/LrX+AA6RlxijrEzyBW7WT0FCHpeeYUw== X-Google-Smtp-Source: AGHT+IF0uBLqB/6IIB8dOP9zNZ4TWM/ZpZfM3H+BJ9RdIgLyjCLjfViOtBRFUY/B925GuvlwYj39cg== X-Received: by 2002:a05:6a00:194f:b0:70d:1dcf:e2b4 with SMTP id d2e1a72fcca58-71b25f00bf2mr23616838b3a.1.1727782279856; Tue, 01 Oct 2024 04:31:19 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:e044:f156:126b:d5c6]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b63d9sm7810646b3a.52.2024.10.01.04.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 04:31:18 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH v2 1/8] dt-bindings: power: mediatek: Add another nested power-domain layer Date: Tue, 1 Oct 2024 19:27:19 +0800 Message-ID: <20241001113052.3124869-2-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241001113052.3124869-1-fshao@chromium.org> References: <20241001113052.3124869-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_043121_045685_98116FCD X-CRM114-Status: GOOD ( 10.17 ) 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 , Ulf Hansson , linux-kernel@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, MandyJH Liu , Matthias Brugger , linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The MT8188 SoC has a more in-depth power-domain tree, and the CHECK_DTBS=y check could fail because the current MediaTek power dt-binding is insufficient to cover its CAM_SUBA and CAM_SUBB sub-domains. Add one more nested power-domain layer to pass the check. Acked-by: Rob Herring (Arm) Signed-off-by: Fei Shao --- (no changes since v1) .../devicetree/bindings/power/mediatek,power-controller.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml index 8985e2df8a56..a7df4041b745 100644 --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml @@ -54,6 +54,10 @@ patternProperties: patternProperties: "^power-domain@[0-9a-f]+$": $ref: "#/$defs/power-domain-node" + patternProperties: + "^power-domain@[0-9a-f]+$": + $ref: "#/$defs/power-domain-node" + unevaluatedProperties: false unevaluatedProperties: false unevaluatedProperties: false unevaluatedProperties: false From patchwork Tue Oct 1 11:27:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13817881 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 13371CE7D10 for ; Tue, 1 Oct 2024 11:38:50 +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=HExE/eexnESQrLRIjvabM8eZD3ePYvWvDq6AbBnCJhI=; b=vohkoHp+RWUWUK sbDizyRtM4gFHLEiF32lH0/uOG74xNLqXvffDSQokmrmaPBBsdrD9DAb7ALkfDBlpC7ho3fvzrdHx 8EEaTkNsOjbpjoPv31UMJa9gglWV2hb9emRa0E/MVl3Qwr1DCmKTfCsxrDfjx4cs+3msI3XlEs8d3 ABTEHzvuen8wED5PXGkQi5xggi3Ou/jL978al2aRzjOjAX92/Je4Cn7fbfDg1sz3qPZOkGThA4jQk k+R4RQj1mkW0//Gn9sx9wY+z9k6IBDQyN2GjxAUgZ+wjeAOuJ9YFV2ekOij6SxiECB1oTyjXxxzj6 saz9JvjBYoxZNQZIRBPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svbDN-00000002YD1-2ROw; Tue, 01 Oct 2024 11:38:49 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svb6C-00000002WIm-3YXR for linux-mediatek@lists.infradead.org; Tue, 01 Oct 2024 11:31:26 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-71b00a97734so4687805b3a.1 for ; Tue, 01 Oct 2024 04:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727782284; x=1728387084; 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=HExE/eexnESQrLRIjvabM8eZD3ePYvWvDq6AbBnCJhI=; b=H4SAEiobGxBVSGRi+gsIsYrMuTBlMfuf0qfMz03t2PHRv1OLPC5zo0GvKKkQYkyYRI ZjEBXSddUEg9AueW+EsIbTS0Mn5WFmCVrLl0TtqstkJEVxvFLpLzUbGux8vY9IBY1Jzm gTZdokymoVW0isbKzWyPYoxk9rIVgIxJB2Yts= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727782284; x=1728387084; 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=HExE/eexnESQrLRIjvabM8eZD3ePYvWvDq6AbBnCJhI=; b=o6/Cw07Ov/Firq7KvjpfCDHPpX5XXcAp2fxWjI+5KzpTb3cK89WV0NwWhWKvSvUbvH uMVfp7eNf+je+dqAVVCMgjM91WaQGaImd/VKcjili2fikMILOGTIOzf9dxIH52Ikgp6t 9chDB2eSqrfhTLlfSp7GhF3tOKvc1HOE1zXl1SsGMqqSyfRvLNn1dFuAR7UXSMDtll75 eYou0w5rbmIyPzBGPQDx/3nsO/TJzRYO551L/dThoXaLskphxdaDwq+qylEPVISY5qwU qCBIiP+cbEaDxOCyrI3CpztLQdTpcfqrdHE1vrP1fOlfgj2WmFzo4WxuJgwEqrIyxE+V q17Q== X-Forwarded-Encrypted: i=1; AJvYcCXoHARpQhZ361XEOMrfgp+u94BfXCD+9mzbHo10kCzxelYFmphII9pDHi9TThLah/cw4T8gL32Cgw/qBAZgwA==@lists.infradead.org X-Gm-Message-State: AOJu0YxV+L5KQi36Zo1jVFWC1rTevxDYOj7R7ktwVwLgeuqIxjCBl0vk LA9sii7m2rS5qwwDAk7zBlzEwCQk42+/7wTaEs8uxAJoxYw/MR5W+wOJYft0nw== X-Google-Smtp-Source: AGHT+IEKMhrohdkvwi4Udq7vmrZm1RN5zUB0skQ6nIN1r9c0R1TPgRRbL55DWTsl/CIJ8EZMUnlJMA== X-Received: by 2002:a05:6a00:8c2:b0:710:bd4b:8b96 with SMTP id d2e1a72fcca58-71b26079af9mr22686021b3a.28.1727782283633; Tue, 01 Oct 2024 04:31:23 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:e044:f156:126b:d5c6]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b63d9sm7810646b3a.52.2024.10.01.04.31.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 04:31:23 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH v2 2/8] dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only Date: Tue, 1 Oct 2024 19:27:20 +0800 Message-ID: <20241001113052.3124869-3-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241001113052.3124869-1-fshao@chromium.org> References: <20241001113052.3124869-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_043124_916428_A18F9586 X-CRM114-Status: GOOD ( 11.89 ) 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: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Conor Dooley , Ryder Lee , linux-pci@vger.kernel.org, Lorenzo Pieralisi , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Jianjun Wang , Matthias Brugger , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Manivannan Sadhasivam , Bjorn Helgaas , Krzysztof Kozlowski , Lorenzo Bianconi , Rob Herring , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org In MediaTek PCIe gen3 bindings, "clocks" accepts a range of 1-6 clocks across all SoCs. But in practice, each SoC requires a particular number of clocks as defined in "clock-names", and the length of "clocks" and "clock-names" can be inconsistent with current bindings. For example: - MT8188, MT8192 and MT8195 all require 6 clocks, while the bindings accept 4-6 clocks. - MT7986 requires 4 clocks, while the bindings accept 4-6 clocks. Update minItems and maxItems properties for individual SoCs as needed to only accept the correct number of clocks. Fixes: c6abd0eadec6 ("dt-bindings: PCI: mediatek-gen3: Add support for Airoha EN7581") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Fei Shao --- (no changes since v1) .../devicetree/bindings/pci/mediatek-pcie-gen3.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml index 898c1be2d6a4..f05aab2b1add 100644 --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml @@ -149,7 +149,7 @@ allOf: then: properties: clocks: - minItems: 4 + minItems: 6 clock-names: items: @@ -178,7 +178,7 @@ allOf: then: properties: clocks: - minItems: 4 + minItems: 6 clock-names: items: @@ -207,6 +207,7 @@ allOf: properties: clocks: minItems: 4 + maxItems: 4 clock-names: items: From patchwork Tue Oct 1 11:27:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13817888 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 59165CE7D0D for ; Tue, 1 Oct 2024 11:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RLdzbrr7qqklLHRlLDBt3HAIeNP30xh3waq/7+yRzz8=; b=AnUuAsjvbCAECO XlnK5rp9j/N7rmbKki/uzTwFUi9p/4q0FrJwuKGI/15NvT/UmrspBAiMXPPNy1K4SVd++UT3oGLUI yHw5ltzY1CXrhPTDpgejxSTelJ5aY7As3HkSAW8/vTwV5Kd62O8ohZW7/4zrhBcXZigFa9w5xjr3K QScxM8nN5/jSnLCK7tSau4V7tnSEyC8AFNTgmv2SanZUe2y/YANrNP/MH7tRfGho3d6M51jeuEjXP z9CnuviowMcB1/AmNwlpOxp4hvj22wTQtT+J/KZQrPgR56evlGiHmTnqbiKtcCTzBnDEfKGCryRID bW6xOTMFfQtBywgttvJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svbFp-00000002Yau-0DDI; Tue, 01 Oct 2024 11:41:21 +0000 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svb6F-00000002WLN-33TI for linux-mediatek@lists.infradead.org; Tue, 01 Oct 2024 11:31:29 +0000 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-6bce380eb96so3186415a12.0 for ; Tue, 01 Oct 2024 04:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727782287; x=1728387087; 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=RLdzbrr7qqklLHRlLDBt3HAIeNP30xh3waq/7+yRzz8=; b=KHi8YPS8atkzZgX0PkelN9BiRWxVk6L42X4OZRVcpkftmIE+zL5POEmlemXMSbCh4n yGUKW7zx7Lm6Yfb13gH2VSXuVcp47F7O2VeYmag31vlasRGBfXdJiqn6goMfiKEPGdIX rChx6CzsxYJNem5rlqeixkxIiySzMD0EHL8wY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727782287; x=1728387087; 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=RLdzbrr7qqklLHRlLDBt3HAIeNP30xh3waq/7+yRzz8=; b=BFJHJU3cSvFJswwkYKmk3EM9bBCCqXe+Pu4EFQitni7dBvmP1HrCgvrZ+WY3yernT9 0l58SRipNFul27iOH45qWc7QwtFTXx0lRVzKH6y9uYibbqXQvE/lEzWcMiNxegj+KOJB gAYUdjkWdkr5kZLpO0z4n3LoNLwxDp9cyv9w5akup+/ZAU71XUgVkJBb9SrrWaYYIKqo xKtACyNo5jLGnn2DTmOcEY62i83pBhh1eHSFJWAoH6M13cdNTRoWAgkbZZXLG2iv8PQt lwtRX/eTUGd5Yxj3r9a3vEE5Z3qUUHGwCjwHetf3Ts3ryXNFYtqW/So8cHB2zgpT3sst i1jA== X-Forwarded-Encrypted: i=1; AJvYcCWR5ZWHXrA87iI/a1lEpXkcsy2NC+lfvwnH17XsL/WY4BkOVz+FalPek+NehunvYbuNp4n428gtoYXmXbMitQ==@lists.infradead.org X-Gm-Message-State: AOJu0Yzf1lAdfvKhzQr12G2fXvNYq+3v2s+xIbnZf+ERIaIEQ5niCRuG SbU56yivS8lmhSK6DfSSUWyZ20cjyUGxNg2xoKLQ0zs3dCyr47bwPy9NfKGQRvuXmdad99mLCBU = X-Google-Smtp-Source: AGHT+IEgct/3Kv8qNzy6ataUfgMbDap5NRUyRDA2O/6Uj+INj/mxGJhKqWWS0ioNmqqYyO5Ym6qkyQ== X-Received: by 2002:a05:6a21:e8b:b0:1d2:e94d:6e6d with SMTP id adf61e73a8af0-1d4fa806eb0mr21813265637.45.1727782286787; Tue, 01 Oct 2024 04:31:26 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:e044:f156:126b:d5c6]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b63d9sm7810646b3a.52.2024.10.01.04.31.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 04:31:26 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH v2 3/8] dt-bindings: media: mediatek,jpeg: Relax IOMMU max item count Date: Tue, 1 Oct 2024 19:27:21 +0800 Message-ID: <20241001113052.3124869-4-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241001113052.3124869-1-fshao@chromium.org> References: <20241001113052.3124869-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_043127_925910_DB7D072C X-CRM114-Status: GOOD ( 14.80 ) 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: Bin Liu , Rob Herring , Conor Dooley , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Xia Jiang , Matthias Brugger , Krzysztof Kozlowski , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On MediaTek platforms with Multimedia MMU (M4U), a multimedia hardware can be assigned with a local arbiter (LARB) which has a maximum of 32 ports for MediaTek's IOMMU infrastructure. That means there can be at most 32 items in the iommus property in theory. Instead of relaxing the max item count every time a newly introduced device tree hits the limit, bump the number to 32 as an one-time effort. On the other hand, all existing and foreseeable JPEG decoder nodes at this point have at least 2 IOMMUs, so set minItems to 2 accordingly. Signed-off-by: Fei Shao Acked-by: Krzysztof Kozlowski --- It's not in the upstream tree yet, but the upcoming MT8188 DT will have 6 IOMMUs in its JPEG decoder. This patch is to pave the way for that. Changes in v2: New patch. .../devicetree/bindings/media/mediatek-jpeg-decoder.yaml | 3 ++- .../devicetree/bindings/media/mediatek-jpeg-encoder.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml index cfabf360f278..a4aacd3eb189 100644 --- a/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek-jpeg-decoder.yaml @@ -44,7 +44,8 @@ properties: maxItems: 1 iommus: - maxItems: 2 + minItems: 2 + maxItems: 32 description: | Points to the respective IOMMU block with master port as argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. diff --git a/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml index 83c020a673d6..5b15f8977f67 100644 --- a/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml @@ -39,7 +39,7 @@ properties: iommus: minItems: 2 - maxItems: 4 + maxItems: 32 description: | Points to the respective IOMMU block with master port as argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. From patchwork Tue Oct 1 11:27:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13817889 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 0319ECE7D0D for ; Tue, 1 Oct 2024 11:43:51 +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=ejGJNBzCUSn/2STvxEtP4Qm9W+BBPtGa+kdNm7gnwwU=; b=g1qjlOip4zRYg8 KoG6xspb3Z7HJvdD0+uB4Qwk5C6iTZqmu7tBkdsOpZiTQEnlz+JfLVx54zjPxBxIaZGyCs9V1Npqc HmfXDuOq8J/sSdpfyH38Op/T/0yOJNjvvMrAxKLKxNw83z2KEYRtcEMrm+OqOTFg7y0X9xgHGKJk/ OP1E21gBuMCkKp3CRS2UWw28jqQuSst2GgDH7DxJBC4W1su98CHF8fCz2HLJN/Cv5aDLRVgbo9N2V vW2HuyVSOlYK9yrPSZGJ34DZ4Eb9YbbH3odqLB2dTzaM4FxJs6GeKJgb+o22rykmRckwu9MTwzlY3 PnAGHxd4K5uifZiWOaRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svbIE-00000002Z6y-2x7E; Tue, 01 Oct 2024 11:43:50 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svb6I-00000002WMw-48cx for linux-mediatek@lists.infradead.org; Tue, 01 Oct 2024 11:31:32 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-719b17b2da1so3887383b3a.0 for ; Tue, 01 Oct 2024 04:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727782290; x=1728387090; 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=ejGJNBzCUSn/2STvxEtP4Qm9W+BBPtGa+kdNm7gnwwU=; b=WnAlb3q611HZwRtoSAbWFYm0pNwxESrRwP/2fgdL5YMOZrLC/3MgHsEyZ6E3ALWgxt T5DQSQY5PRtFVB+3ytG+mYI2ZdACWNAfCXD7cD1GGHiH1pSnktoOxpcTYaXXLvL4LMbu CGzHdekM0VJ8/PLgbCTEfiUgR7/dj8yQWxNlY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727782290; x=1728387090; 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=ejGJNBzCUSn/2STvxEtP4Qm9W+BBPtGa+kdNm7gnwwU=; b=SIbWYCSzOx5tB0yE9XEQq+NE+HM9VQyWwmo4kos9+fKwr5wzv9xMpFlvcnQh6zXdwe 3HBJbDjo5B7jlD2zEpV6O4IvK35P3HdA1nQBcy+tedoM864Ef8tsw6dfgD+tQDtAJUBk QAomGRwUY/BUqtQE2VzurDMcr7xGkSkzkwLU6ucRo2lEm5j8eSo0dCKdx/UKXr//PqPc rOhQCdIgOyuXnmDTJwQ0OD85x9yJy4jKcS86NH+ORPVcFbNrYx1ET4nRfewUApHWq5tx E8oaz7pKESwDX+unsFjeCA8wtomzghbFeF/7vu78t8V2Ucz2Rx4YHsk9DVMutgtiUjmT rpPQ== X-Forwarded-Encrypted: i=1; AJvYcCW0BYOm2J6JXUBSmZh3lBjCsqZ5MuRfo5DjOLmqQsWm/UBAnuuk4l1umGTGRJUO0vtmXXvnOvL0ANpZ9vQAdQ==@lists.infradead.org X-Gm-Message-State: AOJu0YynrzBn9YO1uz+zR5id1W0KNY3IPy1z3EXhD8MJUQttK+zMK80S uzhAxnsrr+nfnC7hEe+DMBI8+sT/5ENH4OJsBmx2Wi4/xxmTLCiCBz8anYCzig== X-Google-Smtp-Source: AGHT+IGmqm0A1CKXunN+IYhXZlTEbv5bvkc+2qchW2O8DdvX6JHtqPJaxZtG+8eE9yYDL747Fo4WoQ== X-Received: by 2002:a05:6a21:1583:b0:1d4:e500:ad6c with SMTP id adf61e73a8af0-1d4fa64d6a4mr21967043637.3.1727782289986; Tue, 01 Oct 2024 04:31:29 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:e044:f156:126b:d5c6]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b63d9sm7810646b3a.52.2024.10.01.04.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 04:31:29 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH v2 4/8] dt-bindings: media: mediatek,vcodec: Revise description Date: Tue, 1 Oct 2024 19:27:22 +0800 Message-ID: <20241001113052.3124869-5-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241001113052.3124869-1-fshao@chromium.org> References: <20241001113052.3124869-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_043131_038497_5D8A662F X-CRM114-Status: GOOD ( 19.74 ) 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: Andrew-CT Chen , Conor Dooley , Tiffany Lin , Yunfei Dong , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , Mauro Carvalho Chehab , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Revise the description of MediaTek video decoder to improve wording, fix typos, simplify diagram, and extend the pipeline architecture used in newer MediaTek SoCs (MT8186 and MT8188). Signed-off-by: Fei Shao Acked-by: Krzysztof Kozlowski --- Feedback are welcome. I've tried my best to organize the existing information with some educated guesses, but there might be inaccuracies or gaps still. Please let me know if you have anything to add so we can make this more comprehensive. Thanks! Changes in v2: New patch. .../media/mediatek,vcodec-subdev-decoder.yaml | 100 +++++++++++------- 1 file changed, 59 insertions(+), 41 deletions(-) diff --git a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml index a500a585c692..52a96a5aec96 100644 --- a/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml @@ -5,52 +5,70 @@ $id: http://devicetree.org/schemas/media/mediatek,vcodec-subdev-decoder.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Mediatek Video Decode Accelerator With Multi Hardware +title: MediaTek Video Decode Accelerator With Multi Hardware maintainers: - Yunfei Dong description: | - Mediatek Video Decode is the video decode hardware present in Mediatek - SoCs which supports high resolution decoding functionalities. Required - parent and child device node. - - About the Decoder Hardware Block Diagram, please check below: - - +------------------------------------------------+-------------------------------------+ - | | | - | input -> lat soc HW -> lat HW -> lat buffer --|--> lat buffer -> core HW -> output | - | || || | || | - +------------||-------------||-------------------+---------------------||--------------+ - || lat || | core workqueue - -------------||-------------||-------------------|---------------------||--------------- - ||<------------||----------------HW index---------------->|| - \/ \/ \/ - +-------------------------------------------------------------+ - | enable/disable | - | clk power irq iommu | - | (lat/lat soc/core0/core1) | - +-------------------------------------------------------------+ - - As above, there are parent and child devices, child mean each hardware. The child device - controls the information of each hardware independent which include clk/power/irq. - - There are two workqueues in parent device: lat workqueue and core workqueue. They are used - to lat and core hardware decoder. Lat workqueue need to get input bitstream and lat buffer, - then enable lat to decode, writing the result to lat buffer, dislabe hardware when lat decode - done. Core workqueue need to get lat buffer and output buffer, then enable core to decode, - writing the result to output buffer, disable hardware when core decode done. These two - hardwares will decode each frame cyclically. - - For the smi common may not the same for each hardware, can't combine all hardware in one node, - or leading to iommu fault when access dram data. - - Lat soc is a hardware which is related with some larb(local arbiter) ports. For mt8195 - platform, there are some ports like RDMA, UFO in lat soc larb, need to enable its power and - clock when lat start to work, don't have interrupt. - - mt8195: lat soc HW + lat HW + core HW - mt8192: lat HW + core HW + MediaTek Video Decode Accelerator is the video decoding hardware present in + MediaTek SoCs that supports high-resolution decoding functionalities. + It consists of parent and child nodes. + + The decoder hardware block diagram is shown below: + + +------------------------------------------------+------------------------------+ + | | | + | input -> LAT-SoC HW -> LAT HW -> LAT buffer --|--> Core HW -> output buffer | + | || || | || | + +--------------||-----------||-------------------+-------||---------------------+ + LAT Workqueue | Core Workqueue + ---------------||-----------||-------------------|-------||---------------------- + ||<----------||---------HW index--------->|| + \/ \/ \/ + +-------------------------------------------------------------+ + | enable/disable | + | clk power irq iommu | + | (lat/lat-soc/core0/core1) | + +-------------------------------------------------------------+ + + The child nodes represent the individual hardware blocks within the decoding + pipeline, such as LAT-SoC, LAT and Core. + Each child node is responsible for managing the dedicated resources of the + hardware, such as clocks, power domains, interrupts and IOMMUs. + + The parent node is a central point of control for the child nodes. + It identifies the specific video decoding pipeline architecture used by the + SoC, manages the shared resources like workqueues and platform data, and + handles V4L2 API calls on behalf of the underlying hardware. + + The parent utilizes two workqueues to manage the decoding process. + 1. LAT Workqueue, for LAT-SoC and LAT decoder: + Its workers take input bitstream and LAT buffer, enable the hardware for + decoding tasks, write the result to LAT buffer, and disable the hardware + after the LAT decoding is done. + 2. Core Workqueue, for Core decoder: + Its workers take LAT buffer and output buffer, enable the hardware for + decoding tasks, write the result to output buffer, and disable the hardware + after the Core decoding is done. + + These hardware decode each frame cyclically. + + The hardware might be associated with different SMI-common devices. + To prevent IOMMU faults during DRAM access in such cases, each hardware with + the unique SMI-common device must be placed under a separate parent node in + the device tree. + + LAT-SoC refers to another hardware block that connected to additional LARB + (local arbiter) ports, such as RDMA and UFO. + It requires independent power and clock control to work with LAT decoder, and + it doesn't have a dedicated interrupt. + + The used video decoding pipeline architecture across various Mediatek SoC: + MT8195: LAT-SoC + LAT + Core + MT8192: LAT + Core + MT8188: LAT + Core + MT8186: Core properties: compatible: From patchwork Tue Oct 1 11:27:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13817890 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 5C050CE7D12 for ; Tue, 1 Oct 2024 11:43:51 +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=LkkLEEucgoW7bgbQKsmRzFtFQZp/ikQpw3ZnY6QygrQ=; b=1+lFq9JVoEQ2hR 5mPc6sxwtiGSS6MObvAhO8ewzaWxElyYl+qssX0kChBfRaM0GKzl7x4rld5IQReVSVyV7X7Zc1c75 W5frJ7opQ6XreH07l45fjedLAN14Fuy6arpg2KSWyClv1rpNfeznWe9weVOvH7mQZy0uvAsE54Nxp PBsqOJ49D4COEINZ6XuaJQe9wkdx717nhV0tUK4SlgK3h/PQJz7/eRdq+J0x2UX4v4xBgH6S35Zdy TUj+I2LvQl5HG5LfAw//fXJJTJvYs9k2Cp8Hpwnn3g/IztX9wnY1fV9HOYs8aHrDWMH++IHJIy1AG 3l5GowWMcGeu2L1kLUPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svbIF-00000002Z7C-0CEE; Tue, 01 Oct 2024 11:43:51 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svb6L-00000002WOD-3aFn for linux-mediatek@lists.infradead.org; Tue, 01 Oct 2024 11:31:35 +0000 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-71971d2099cso4356720b3a.2 for ; Tue, 01 Oct 2024 04:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727782293; x=1728387093; 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=LkkLEEucgoW7bgbQKsmRzFtFQZp/ikQpw3ZnY6QygrQ=; b=XE946Lp6tpMajEzMlSuHk4+WaHnfxhnldGA/T6GJGVyiIYr7ZzzA2K3XeHh8cCj7Qk j1Zx+4B06vWb4wYG20u+B/V8g/4ESi+2LHxKFTP6TfuhGCZ7uPtDhzYBgJNJPLseoVZo /EuBBS/6dnodQHxWt79imVfeiFgqyHsPO1DHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727782293; x=1728387093; 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=LkkLEEucgoW7bgbQKsmRzFtFQZp/ikQpw3ZnY6QygrQ=; b=IvNWShLr8/m5yot+bYK0yWt7/GEjSeuZ/se12E+3vrRkS8aaV+2bZh9GCe7Sx/7r0A BuqwvIegnRCx49HeltA3IjsRXDAshg0mu4m+KF5a4T0nm/CHrgYVO5rr9OhJUKYPDqap 77i69b9UmuLIXA+WZbKynQcDyhhStPwUl9E3Cw2ePE4EstS69dQ4KcjDZ56YlA/Y/rAL pDJVv/7QmrM4XAJZ19v9+I6xsMV8yO3eqsdR/piOBVCRV7nFpkAHtJitv8t7mSbMoKrS 3N8AoaoJCIXv4nAnbKZ+i3KAmLmN5Ug1DmRfUg40QIUrR4R54n6PsIY0GPr171gWmnqg fv1g== X-Forwarded-Encrypted: i=1; AJvYcCUt9U41uULm4jtiT36SAZmqijVTXFXlJ09Sd65wcSxKyeTZys6qR0BS3cwHXAtgBAjU5KCUdVcrtaD6ttLQcA==@lists.infradead.org X-Gm-Message-State: AOJu0YzI3fyb/xI5GY7HAT00x4xCu3etB/MW6Z9/Bmv2N1jO0ieDN+mX K1yi0e3kIPuCmeZ/qptfJGxNIipL75sP99kpIFYXwyvHhVl79RHz//MSVftVQAY8grVqVszSLK4 = X-Google-Smtp-Source: AGHT+IEgzRkoFd2sNCI4/vjWyPLOdY4pO3TPXtmTpmnMfuOP0TUArqKEjA+xqCTmER3Sm89xeggSoA== X-Received: by 2002:a05:6a00:194f:b0:717:e01d:312f with SMTP id d2e1a72fcca58-71b26078cf5mr25062339b3a.27.1727782292819; Tue, 01 Oct 2024 04:31:32 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:e044:f156:126b:d5c6]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b63d9sm7810646b3a.52.2024.10.01.04.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 04:31:32 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH v2 5/8] arm64: dts: mediatek: mt8188: Add missing dma-ranges to soc node Date: Tue, 1 Oct 2024 19:27:23 +0800 Message-ID: <20241001113052.3124869-6-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241001113052.3124869-1-fshao@chromium.org> References: <20241001113052.3124869-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_043133_920671_368B02E3 X-CRM114-Status: UNSURE ( 9.63 ) 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, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add the missing dma-ranges property to the soc node, similar to how it was done for MT8195 and MT8192. This allows the entire 16GB of iova range to be used and enables multimedia processing usages, like vcodec and MIPI camera. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Fei Shao --- (no changes since v1) arch/arm64/boot/dts/mediatek/mt8188.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index cd27966d2e3c..69390da9cfe0 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -878,6 +878,7 @@ soc { #address-cells = <2>; #size-cells = <2>; compatible = "simple-bus"; + dma-ranges = <0x0 0x0 0x0 0x0 0x4 0x0>; ranges; gic: interrupt-controller@c000000 { From patchwork Tue Oct 1 11:27:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13817895 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 6A567CE7D10 for ; Tue, 1 Oct 2024 11:45: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=T7arz2GOR4HIAXAfbaFzx9rN3NGNRkgqXFpAbKN4p48=; b=fIRmpwKGCOc+OE Xlq1WS3Ur0RSRGPELfGkixOfYs4f0dbmsUK35WGitXj2lMBn0r8fUarcqhvEMGmxxxx1+rWAEEnf1 r1Ry6eoebl98cANnGmqjDEzu01Ipm5wQiQ0UczhWq4VFoPsmYCavXa/oHiDZilJtwlCVwU37iwdkV aGTlruNlZcDpzdIIzDY9jyhC7secMwROgqAYyQZPdjMbxnIsFy9d/N/88IUbpvpQPIqL+w0oksC+G 4agJnJ9yMA7PuM0WArUA8YvL+K2gjWMMXyqQ7GnLsC01PxfRHY5iWm/KsY1lGJh4YJOTFwVyrqcdC y+dBgUxN529WJBYvDHug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svbJS-00000002ZUW-0a3s; Tue, 01 Oct 2024 11:45:06 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svb6O-00000002WPs-2Pin for linux-mediatek@lists.infradead.org; Tue, 01 Oct 2024 11:31:37 +0000 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-6e7b121be30so3593876a12.1 for ; Tue, 01 Oct 2024 04:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727782295; x=1728387095; 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=T7arz2GOR4HIAXAfbaFzx9rN3NGNRkgqXFpAbKN4p48=; b=ZIjlw9zDYm9tmj8H5dr487hj+HOPOpy+EeyplrbXTTpH3ShHRlzXhvqVz526H5pNXW NjJoUfF8T2OPB84BG+/jVxbGn7BxnzIXfe7x85oUnR2OubruzL1rDfmtUQ42TjgiE0sr KhlqFe888PcJPcX7acxUCCJbHOopeHXhwXoFE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727782295; x=1728387095; 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=T7arz2GOR4HIAXAfbaFzx9rN3NGNRkgqXFpAbKN4p48=; b=wLULDBz7Rn1IlmB4mE9gxY0UvMZCPl+gjrFI1bUGHhVmU5XCxueSPc0TKKBXHADSys szYn97shhrQ8DoeyVb+xKFEOQ4oOz3kNRKIxBguE/s/hJYj5Pv5kvPcJ95mCcuEjNxxM s3qFMvvvkhfTYk0QIdRdWlR/EWkm3Z62n3GnxeEsJAs5aj7bGMirN1SgLoS2affbZnsj Vf7mazeyQrBaYcHlO43qjcq6AnlMEMGknDwaDcCrYrzMxSmpfRdEnW3gs0xxZybytaIX oyiwOsEQZliFyhbN0WwxQcs2dOMa88hb6BjcaqXZuCYXXjfCWqN0aLMe5PtnLA3VArhx K8XQ== X-Forwarded-Encrypted: i=1; AJvYcCX8ID/KSMPNSoyX8xPEQOwWFMaQ6xG0w+v+fG4X7Vp9cgWfeslhASxfh02CA0BQvsfwTizeqJgi57eJlppLpw==@lists.infradead.org X-Gm-Message-State: AOJu0YyXKnVm6JRRz6XpQbViKkC30NDr/1agLBlu17+3UQcjPdPGC9vU H87HFtX4Ah/5L02NOQYYu2MG45jQFxP8A21vdqGNo9Ner+x6Eogo1UhYoJmASg== X-Google-Smtp-Source: AGHT+IHdeJ+m2YdxFmcKkDEUnn9huq/Q65T1UQKcTtMSHmlkaYTIq2vIz4YB7usbL5TVj+ABMTIHsA== X-Received: by 2002:a05:6300:668c:b0:1d2:ba9c:6d9f with SMTP id adf61e73a8af0-1d4fa69ed6amr22343842637.17.1727782295442; Tue, 01 Oct 2024 04:31:35 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:e044:f156:126b:d5c6]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b63d9sm7810646b3a.52.2024.10.01.04.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 04:31:35 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH v2 6/8] arm64: dts: mediatek: mt8188: Update vppsys node names to syscon Date: Tue, 1 Oct 2024 19:27:24 +0800 Message-ID: <20241001113052.3124869-7-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241001113052.3124869-1-fshao@chromium.org> References: <20241001113052.3124869-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_043136_647989_C2E6843A X-CRM114-Status: GOOD ( 12.05 ) 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, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The MediaTek mmsys is more than just a clock controller; it's a system controller. In addition to clock controls, it provides display pipeline routing controls and other miscellaneous control registers. On the MT8188 and MT8195 SoCs, the mmsys blocks utilize the same mmsys driver but have been aliased to "vdosys" and "vppsys", likely to better represent their actual functionality. Update the vppsys node names and compatibles in MT8188 DT to reflect that and fix dtbs_check errors against mediatek/mt8188-evb.dtb. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Fei Shao --- (no changes since v1) arch/arm64/boot/dts/mediatek/mt8188.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 69390da9cfe0..790315c1bdb3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1779,8 +1779,8 @@ mfgcfg: clock-controller@13fbf000 { #clock-cells = <1>; }; - vppsys0: clock-controller@14000000 { - compatible = "mediatek,mt8188-vppsys0"; + vppsys0: syscon@14000000 { + compatible = "mediatek,mt8188-vppsys0", "syscon"; reg = <0 0x14000000 0 0x1000>; #clock-cells = <1>; }; @@ -1797,8 +1797,8 @@ wpesys_vpp0: clock-controller@14e02000 { #clock-cells = <1>; }; - vppsys1: clock-controller@14f00000 { - compatible = "mediatek,mt8188-vppsys1"; + vppsys1: syscon@14f00000 { + compatible = "mediatek,mt8188-vppsys1", "syscon"; reg = <0 0x14f00000 0 0x1000>; #clock-cells = <1>; }; From patchwork Tue Oct 1 11:27:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13817896 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 B1BDECE7D0D for ; Tue, 1 Oct 2024 11:47:33 +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=z8fXwFowiSq282GBggx76buGJQF3HVDXJm077wJTisA=; b=zmpurlqdcH0vPM l6K/SpB62qQUXy+MsoQov1Jtvu05hGa41D7D9HBOiKjf6GMKoZ9o8r9o3GBHq4Kq+Q3A/WgIcqO6F oF26m0VybkPeGyhkg29v46ncEaJVzsmH3vrfE024XmRzd7RKPKvx78I4XZiEYCA09EX1dGk4AGTe0 2WMtLTNlOOc3RII+lpYqzL/k+1W2JMoIoOuySfV3Ihd+3ZSnv/Kiru4KCtrGNpaqanrWGi+YctIe0 PRkqYuPG97+4hQqzIQS7nF9D/HwHXaBxo8nw7VB6XX3GS4PM2IeM8Dhs09osu+xmJQfjkQD+e66vI gEALKI5TYw0jy3EjNh3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svbLp-00000002ZpR-1nq1; Tue, 01 Oct 2024 11:47:33 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svb6Q-00000002WRh-2yVR for linux-mediatek@lists.infradead.org; Tue, 01 Oct 2024 11:31:40 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-71788bfe60eso3991235b3a.1 for ; Tue, 01 Oct 2024 04:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727782298; x=1728387098; 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=z8fXwFowiSq282GBggx76buGJQF3HVDXJm077wJTisA=; b=jCrmllnYlgYY15b7c+Bo9qL4+w/u1mhJ4Ll2OfsXI3SnwhU6s2ItpODFHw0RpipwXk JwDK4SFhDOmE7raF0hTZLlqxLr/WDC5K9Y5Wvrz6KKdnWx+1D/V5AtDrhYEeoXuEpkGk tX/KaGr0pbX7GwCghjRv/7C5EhW8O/Y7MeldQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727782298; x=1728387098; 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=z8fXwFowiSq282GBggx76buGJQF3HVDXJm077wJTisA=; b=Nq6TSnW1jKEgiLFjaalcsn4ZNFyuNbQIWs/mAn9ZLxnrCdG3RKMZiR3TFa+N3wuSVg 15JowLz5QTLJoMraOFJ5aX1c+bbXwgHdk2q69jxcFTkYTU0JoygyQ3e7ofyab9kDw4AK fCjKFDwBRuuV4sSeLrLu7wSz2PWMXjOFKlvtsGcglfwJs/JFFQmMc8ysWZP84cGEb0Kc bBhLrmaISznhPq3NvhjCzoQWx/0XtRbSSVFj5NfcWfPtHqSDWmJPBgnCL782QDq5ZQrt 9UVBTMowW+4xOaokhbzCokyIR+wbeWgrHYVjXdiW/DJu/rO1QXqB9885+Kd6hcW2kw6U RM8g== X-Forwarded-Encrypted: i=1; AJvYcCVQD6s9jrXDNemkUk3LXYG+9omOI6+jyW1DlzaZQqEvLX6fxZEs0Xa3+saKoCY5yvPX6q5vcih5wnhF3gAhmA==@lists.infradead.org X-Gm-Message-State: AOJu0YwuyFTRLzpBT5W8HgBgFSrxOb7kTii5RnY8WXoL2bA+Ml8G1RUH 0bms0yQDs3ZKuNzAYaDZyXnCSu03b6YpE/tPluHZXG6IFkBWd9O4GI431DcTvw== X-Google-Smtp-Source: AGHT+IH09z3QCZ1p0pTjFjuPslZ4C1g3IxE08k1hiNGnKInQp2WoOjwX15K0+Vnyd5cLS3+99kg5ug== X-Received: by 2002:a05:6a00:17a9:b0:70d:2fb5:f996 with SMTP id d2e1a72fcca58-71b25f451e7mr23221279b3a.11.1727782298034; Tue, 01 Oct 2024 04:31:38 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:e044:f156:126b:d5c6]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b63d9sm7810646b3a.52.2024.10.01.04.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 04:31:37 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH v2 7/8] arm64: dts: mediatek: mt8188: Move vdec1 power domain under vdec0 Date: Tue, 1 Oct 2024 19:27:25 +0800 Message-ID: <20241001113052.3124869-8-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241001113052.3124869-1-fshao@chromium.org> References: <20241001113052.3124869-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_043138_758348_0A6E8AC2 X-CRM114-Status: GOOD ( 11.68 ) 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, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The MT8188 video decoder pipeline has two hardware IP blocks: LAT and Core, which are powered by vdec0 and vdec1 power domains, respectively. The hardware design includes a dependency between the vdec0 and vdec1 power domains to ensure that Core is powered down before LAT. Without correctly describing this dependency in DT, the system will fail to suspend. As a comparable reference, MT8192 also uses the LAT + Core decoding pipeline, and it has the correct power domain dependency defined in DT. Update vdec1 as a sub-domain of vdec0 in MT8188 DT to reflect the hardware design. Also, use more specific clock names for both power domains. Signed-off-by: Fei Shao --- Changes in v2: Revise commit message. arch/arm64/boot/dts/mediatek/mt8188.dtsi | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index 790315c1bdb3..ca50ed20fca0 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1062,20 +1062,22 @@ power-domain@MT8188_POWER_DOMAIN_VPPSYS1 { #power-domain-cells = <0>; }; - power-domain@MT8188_POWER_DOMAIN_VDEC1 { - reg = ; - clocks = <&vdecsys CLK_VDEC2_LARB1>; - clock-names = "ss-vdec"; - mediatek,infracfg = <&infracfg_ao>; - #power-domain-cells = <0>; - }; - power-domain@MT8188_POWER_DOMAIN_VDEC0 { reg = ; clocks = <&vdecsys_soc CLK_VDEC1_SOC_LARB1>; - clock-names = "ss-vdec"; + clock-names = "ss-vdec1-soc-l1"; mediatek,infracfg = <&infracfg_ao>; - #power-domain-cells = <0>; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <1>; + + power-domain@MT8188_POWER_DOMAIN_VDEC1 { + reg = ; + clocks = <&vdecsys CLK_VDEC2_LARB1>; + clock-names = "ss-vdec2-l1"; + mediatek,infracfg = <&infracfg_ao>; + #power-domain-cells = <0>; + }; }; cam_vcore: power-domain@MT8188_POWER_DOMAIN_CAM_VCORE { From patchwork Tue Oct 1 11:27:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13817897 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 E45C7CE7D10 for ; Tue, 1 Oct 2024 11: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=iHVpAqtBhTjk/tW32shjLNYqZYBHOi3xkZZdLwrHsZc=; b=N+EDQ4T5evpFfj LW5Z/GnuKP0kPEufVfE9NAMGkAyRG2vdIw4cQnCWYjmpvSVzEIiCo47P+acdLgHuNZAT/Kb39IYvg FGDLCDmnjjEeRLSWLm5FvKBwVK3XrraAHF73zHy81vQgYxYpxbYJ7LDKBBAAcn1tO3sskx63fuEOx dMDVr2U+zmXsEXOedTbhAymQbeIoEQlshclHrAv8FKykXozQzwLb1tjCJkUEkEwJcsoiBSYrOjfyr M4UBGsG4Jz/oEF37KdHGxZEtIq3rN/stdvZTTJ50u9kGP4DWA1fDvSzO2hch1bhdQHtY8ueuo+p23 BOfQ6xZnp8K/rpXI8DAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svbN0-00000002a1r-2fh0; Tue, 01 Oct 2024 11:48:46 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svb6T-00000002WTF-2rYI for linux-mediatek@lists.infradead.org; Tue, 01 Oct 2024 11:31:43 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-71b0d9535c0so3780077b3a.2 for ; Tue, 01 Oct 2024 04:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727782301; x=1728387101; 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=iHVpAqtBhTjk/tW32shjLNYqZYBHOi3xkZZdLwrHsZc=; b=R+uoPQIB3MtHmRDtbjH90BDJcggwW8qbNnV+6u9gUheCKpOaQ1QSYS4h7Hj4FNbE1I sSXKetJXB7Zvfq7NtJ4Zr5n13s7Lku0zoGLWQKA1hAeQF1sxxmeOx0Y9og9fQqxMyUb5 oyFP3Tc8/fVHPMj133vDhf0CeA40nRdVyyy8g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727782301; x=1728387101; 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=iHVpAqtBhTjk/tW32shjLNYqZYBHOi3xkZZdLwrHsZc=; b=RtOmVqQYT1xqkmPX4yPJFIfDJJdH41tEhGex2hCNb1lRt/iu+eZErB1Mbp5MLkiinI LiKSdPITwSF2Cb9HXJc3q6qZtBiCi9BCke2LuGvLu+fQDMmg9skjLfRYXzcENZ4ilcSS xftmPux/VBmBwnj2eG1SRV7cmTzVtn+4in4noKCBMoz9Ud8q8QONef1x/bQiL4anBIwG PStsWnjNmlE85coKk7CFS36E6imUq8GbyqgRFPHBYkEHuxm+HhmYmoC/pIZ1iscR7AoV zews1EaH1vbCUl8J04iuAr3g6z4Y2LCODbVaj0xKxNeftdxGmCngw2zmmIXVGdUrfs/y lVIg== X-Forwarded-Encrypted: i=1; AJvYcCXNB3D1q8aN8xRkmW184jPD71lO6G4Je4xNDmOKFDwZ9mRN//JFvcL95wSUzJjVG68i7EXcVUCb9PL5ZgDEOw==@lists.infradead.org X-Gm-Message-State: AOJu0YxST6XNymofjRvGNf9cpD+bIZUaxRVTkh6tij7GzipvYcGoBOzG o6Zw+b/M6ExH9WBe10EszMyqsaGwCNC+2mtW98amSuT2v00C/MGxGE2qm43nBw== X-Google-Smtp-Source: AGHT+IFZ3oUWJS1Sa53CgoaQveyvKTUyDvv6ZPmGhi3kZ/l698r7fpVxnLWRxa7awXLoABaq4SwyfA== X-Received: by 2002:a05:6a20:1d98:b0:1cf:22d4:3832 with SMTP id adf61e73a8af0-1d4fa64c5admr19196260637.5.1727782300706; Tue, 01 Oct 2024 04:31:40 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:e044:f156:126b:d5c6]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264b63d9sm7810646b3a.52.2024.10.01.04.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 04:31:40 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Subject: [PATCH v2 8/8] arm64: dts: mediatek: mt8188: Move SPI NOR *-cells properties Date: Tue, 1 Oct 2024 19:27:26 +0800 Message-ID: <20241001113052.3124869-9-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241001113052.3124869-1-fshao@chromium.org> References: <20241001113052.3124869-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_043141_753151_3689EBBB X-CRM114-Status: GOOD ( 11.81 ) 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, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Move the #address-cells and #size-cells properties from the board dts to SoC dtsi to be reused by other boards and avoid duplicated lines. Signed-off-by: Fei Shao --- Changes in v2: New patch. arch/arm64/boot/dts/mediatek/mt8188-evb.dts | 2 -- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8188-evb.dts b/arch/arm64/boot/dts/mediatek/mt8188-evb.dts index 68a82b49f7a3..f89835ac36f3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8188-evb.dts @@ -140,8 +140,6 @@ &mt6359_vrf12_ldo_reg { &nor_flash { pinctrl-names = "default"; pinctrl-0 = <&nor_pins_default>; - #address-cells = <1>; - #size-cells = <0>; status = "okay"; flash@0 { diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index ca50ed20fca0..e2c6ed816507 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1618,6 +1618,8 @@ nor_flash: spi@1132c000 { clock-names = "spi", "sf", "axi"; assigned-clocks = <&topckgen CLK_TOP_SPINOR>; interrupts = ; + #address-cells = <1>; + #size-cells = <0>; status = "disabled"; };