From patchwork Wed Sep 25 10:57:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13811889 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 CBE41C369C7 for ; Wed, 25 Sep 2024 11:03:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QVeMj7wLnXufiIx19gdVV+26XJBDhZuDvTGjagZ/exM=; b=fJXMGCCMojmtmpuq0Z1fV6txtg FU2rtkoRvpSSD7PMt+H/OC6BLHfXxX4pDpoHO6NbVqGIgB90NzTR14fFgEPEMoa5wYwSDf0YyV+Ow VuNzb7S1f/gio26/H2XiWNxt69I2IayLV3OqagmBkBO7fY5G/jOPtac+HV3v+lk76zHViyYNX9WU5 ePR0314DYnSq+dmRDkXIxfyvF5WaCThAksosAjyELaHJ32hhc01ncBYr/28gkVIOUyVluOg4ZLT2x MWw57xTrkdk0Mhfw58Bgd+R8Bki9UdZMjktR7wcKQeNeI1eUagY79bfmdNbbYgt1xB7kWTiFBBo+h jvotYoVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stPoB-00000004ovG-2VN9; Wed, 25 Sep 2024 11:03:47 +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 1stPlu-00000004oLF-02Ac for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 11:01:27 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-7198cb6bb02so4670843b3a.3 for ; Wed, 25 Sep 2024 04:01:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727262085; x=1727866885; 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=QVeMj7wLnXufiIx19gdVV+26XJBDhZuDvTGjagZ/exM=; b=TSRRbIYl0QKSYQJCWT4pyj/FtriiibYz2+UCxdM8rNfrjJsueijegHip9+wyeW+YPD mggcumzJP7mfAi+9xceC+1xQevAMi4mzkk+eHFkyAbcz6+HVawG2PPk0S7qlt5dSQUKk 3zak32G5t+R/FREb8Xgyu9TaWfezOPvG37prI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727262085; x=1727866885; 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=QVeMj7wLnXufiIx19gdVV+26XJBDhZuDvTGjagZ/exM=; b=UzCfnwC6lUBcYgMQzg9hhj5fb53xNuBgCQDhht9fKRVS9QU+s6RvV1g4uM5td/Sivs sDEvcNGm/lFhZ1JfLNO8Ll4Tq51tYkY4JQWbYAqR3nbyZWJRjxC9BCdX8ZGNq1zYwNNU hFs8xZH8Mjg6QaJEydwS8F83s8BDuQMA+KniocSEI4ktTBSldegoDC7vkmy71j0/iOjz EKt7fdS8sCjUZ4YISf9t9lC/j8iixiqWgJpGIWxe5tAMA8LvXHyka5n9MBjDoBMuja+l 7O+/h2fpdc0GU2zogsWyVHqd0nGJvgy2EcZNf16Yic2ZztR0NQxDpDM2feOCuFH2ws2v dlHQ== X-Forwarded-Encrypted: i=1; AJvYcCXfvbzBCvvEP+lt0StkqG85R/Y1lXub0Tl/kRS4GcoDHDysQ7Onl5ZoeH82HRkdw3nbxcZd8Zfewq8spqRujEBW@lists.infradead.org X-Gm-Message-State: AOJu0Yy6GwhK+/SJOUTv7oM1WIGndPnjAUDzmxkgmEVqaSN1X6UQhWk4 QxHkT2SdhJ3DJjLDd3XhM+UbeShfiMc3e59RtdXUMXxaLSPrZmVKqslzkXZl1w== X-Google-Smtp-Source: AGHT+IFvn40kXszElCdDiZEOckut6uDsZhbA1ymXKe+lan+5/nDemYiY5zux8PnoVFCzu4aMNSiAeQ== X-Received: by 2002:a05:6a00:b81:b0:706:3329:5533 with SMTP id d2e1a72fcca58-71b0afa2c26mr3124717b3a.24.1727262084788; Wed, 25 Sep 2024 04:01:24 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:2b86:78b6:8ebc:e17a]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6b7c73085sm2570298a12.59.2024.09.25.04.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 04:01:24 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Cc: Fei Shao , "Rob Herring (Arm)" , Alexandre Mergnat , Conor Dooley , Fabien Parent , Krzysztof Kozlowski , MandyJH Liu , Matthias Brugger , Ulf Hansson , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 1/6] dt-bindings: power: mediatek: Add another nested power-domain layer Date: Wed, 25 Sep 2024 18:57:45 +0800 Message-ID: <20240925110044.3678055-2-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog In-Reply-To: <20240925110044.3678055-1-fshao@chromium.org> References: <20240925110044.3678055-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_040126_076149_7C2C83CE X-CRM114-Status: GOOD ( 11.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The MT8188 SoC has a more in-depth power-domain tree, and the CHECK_DTBS=y check could fail because the current MediaTek power dt-binding is insufficient to cover its CAM_SUBA and CAM_SUBB sub-domains. Add one more nested power-domain layer to pass the check. Acked-by: Rob Herring (Arm) Signed-off-by: Fei Shao --- .../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 Wed Sep 25 10:57:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13811895 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 7FDEEC369CC for ; Wed, 25 Sep 2024 11:05:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=J2iSmOLo812yFnIR5Nq9UtGPT6s6P+lL9nzScHALAHw=; b=Z3dk0FYR8sLypqiPk1ANgeslyn q8iaXocoUz+gkczjbKrgZf7NzaPCaxIPdOoY1kuHUORoxi6lT/Zz92+gGO1mfBGSqpWWNidfKzqOZ xEElaZ84Q+nkFULUprZn2mYVr2BdDfdLKDKp/aP/YZvERTWDmOmfbJdavg5G5ipou+iLNFUaROkzj 6cF3dn4nHjZHzB2lALAvTGaUFfBQjZy6KtbvbAhK7Wkb6EdJoo1v+aiOl8Ioya5DFWv6Dtg56FG3o czSLf4jrgr+GP/B6tggOQEOsMNGRlyjLfCf61KKhj+QwuBZDANkx0wK7Q0n0m9k69H31Azt8sY220 n7DGUwuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stPpH-00000004p2z-3VIN; Wed, 25 Sep 2024 11:04:55 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stPly-00000004oMI-0ej1 for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 11:01:31 +0000 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-7163489149eso5345083a12.1 for ; Wed, 25 Sep 2024 04:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727262089; x=1727866889; 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=J2iSmOLo812yFnIR5Nq9UtGPT6s6P+lL9nzScHALAHw=; b=jqTS/aST1Tw6HV4ytl+40aMkJ9FcNGAACQTkSsAiyudhYXcs2Z1i0CusUfkcC5z7jt 71RbGduV7mH4GBpiNhSgytDWTN9EuXup2bohJwYo1Jb5uc1tqyaS3+oqT1zm/ZgRSIHX LiC3xsaq/oiUZ03MeFI76QqXVyI0PsZGaf8v4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727262089; x=1727866889; 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=J2iSmOLo812yFnIR5Nq9UtGPT6s6P+lL9nzScHALAHw=; b=b5QXq6d3770kMPFnLctFh8otDYxVCSfgYd1jZg6sye4+L3jHR+wkuJ/75B2E3pXPH7 eMC8jMehnfwk3g0kDRXrAfMIj9YOLoYJWLYYQfhMo6CPDZH/SnvA3jpXbMEj+IAb2dEj O65ZK2Es72ZVdTyd4u924U09IGIwuAv4/Umgycx06/GF4wwJu59PjfIQRhMdwajk/aT/ 0zOZcB6f4FAOxnsvKjuYBYpPjXaiTgPPj4FGcz4+wm1V5Z1yQJc6rNN+6mi1C+o8O/Pv eIdqiQN+at3QakT0vVfoPvwF3p1C9qUdloLqrCH/w0WiIBqktwd4sX8XckgqMT3Avidc zvYQ== X-Forwarded-Encrypted: i=1; AJvYcCUyDrSe5F0dmAc51PuuUVFadU6IfCkze6UsHr3K/4GObj6WeMGUvtOveilYnF8l4wthY0VMG0p4+xCYoNtS7Fxs@lists.infradead.org X-Gm-Message-State: AOJu0YyHVa/LEcqhxRiL3V63RIyUnx3f4OUvGCy0sbp2rROfr6nXGxLg +8Nq1nxzu3BGuZIl2p3BeuY1VOcEltmrvXSzBnegr949aTtFHNv1Q5f/TIO1rA== X-Google-Smtp-Source: AGHT+IEDiU9yG0J24zu6lnu25+9BPDQ5H9Y9675km39iDIf0qssdZRYcfe9ubry0OUwppyeNUeL9pA== X-Received: by 2002:a05:6a21:e8c:b0:1cf:1b7d:8481 with SMTP id adf61e73a8af0-1d4d4b9bb7amr2971899637.32.1727262088709; Wed, 25 Sep 2024 04:01:28 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:2b86:78b6:8ebc:e17a]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6b7c73085sm2570298a12.59.2024.09.25.04.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 04:01:28 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Cc: Fei Shao , Bjorn Helgaas , Conor Dooley , Jianjun Wang , Krzysztof Kozlowski , =?utf-8?q?Krzysztof_Wilczy=C5=84s?= =?utf-8?q?ki?= , Lorenzo Bianconi , Lorenzo Pieralisi , Manivannan Sadhasivam , Matthias Brugger , Rob Herring , Ryder Lee , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pci@vger.kernel.org Subject: [PATCH 2/6] dt-bindings: PCI: mediatek-gen3: Allow exact number of clocks only Date: Wed, 25 Sep 2024 18:57:46 +0800 Message-ID: <20240925110044.3678055-3-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog In-Reply-To: <20240925110044.3678055-1-fshao@chromium.org> References: <20240925110044.3678055-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_040130_222177_E2FDAAF1 X-CRM114-Status: GOOD ( 13.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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") Signed-off-by: Fei Shao Reviewed-by: Krzysztof Kozlowski Acked-by: Bjorn Helgaas --- .../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 Wed Sep 25 10:57:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13811896 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 7B987C369CC for ; Wed, 25 Sep 2024 11:06: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PLqdDDy4JfS9QGhHfm83WJGLQ+zasSrsBp9fJHTMisc=; b=Qll+pvlc5NdiNCB53frfVIE62R iIWo+RNTaUxjF84LQlk7nN1kqCVL+rI5udypF8l5JH75tWvrZmcLXtIR9rk6zdpDsfqU2P41KAXh6 irte7haMU7l6q5h5FVbG+IOr4Q2KVrl3POIpzUcB99cfOU/3Ig2sR0yL7hHHcn9+5d2bAViABRhjX 4R5CyvHkUX73NUtG1PNE+np8xQYpM4uY1JHte/l+XMqfuT4XKd2FiEpds+FDyuRwIY/OMS6gUwPOq HpXw92jFf6lphaMX9USJHUQDjT9P9PdTrF4SScbprkueeGVke728nDtiYQOyU4N3x0w5KalYz5PAt z/oOESkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stPqT-00000004pMX-0kAQ; Wed, 25 Sep 2024 11:06:09 +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 1stPm1-00000004oNX-3v8x for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 11:01:35 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-7179802b8fcso4656732b3a.1 for ; Wed, 25 Sep 2024 04:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727262093; x=1727866893; 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=PLqdDDy4JfS9QGhHfm83WJGLQ+zasSrsBp9fJHTMisc=; b=HnGV7AKxW4aqz4iGeUBt36SO0MSlzcc1u56Kxll2d18piIZvfFKVlgsy16kqXjeptR bDvL/ooy4u7imPC8mloNXxrKDaijYEI/yDcgD5nOJaAID/Mdc800DmYXpcxW37cdQSXJ C8yTepsqVpfxmHSTi7g9w//Nb1ARgcNk0mZIY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727262093; x=1727866893; 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=PLqdDDy4JfS9QGhHfm83WJGLQ+zasSrsBp9fJHTMisc=; b=YHkZZf44OHq9tZ7W4fb1mRayrkJQJF7Cj/O0Y8zwTnRB2W/YwOf3aXS3kymLkazx2o ffkP69i9fRZJ9NeWROGUqaK5hk83eyBJxy3rHJgDc7X7kaA3MfbV67VKuls5jgF2Po5q kd1MCMiYOT7odnaV6lCivKX4ii5OEsT4CI46Zm/WZil4Xoemk+Jd9ngRsODJfRMnoqwO /OMtTr0Uzagj7VXaLV3lOflnqMYolPF949nQBa8GUNBWlCYjuJfqau2R3KiERSM6FUQl +pdmZo04pN0WPX0B6WrWs3wGaUseicT0KBrvjKPYrM8ML3bx5nJUvi5W5dQ7ZcPifMXJ uXLg== X-Forwarded-Encrypted: i=1; AJvYcCWV6yUdFIRy1RCBHLIdODwBaBksmUy+/Y/lOXBIyvL6vJ811h8JrlYy3nAaZOBS58R+cX3zNl68BvZPp+MzlKVt@lists.infradead.org X-Gm-Message-State: AOJu0Yxn6KeGFPtpkiy3yRDZ1S6FGq+D4DG6o2WWuV0+jhiAhssVkxV/ yUPP2gPGzz2UBpB/Qwla+Mj6LZD1Cefpy1VFzM2W5FhWgPDcHJTnWCre3uLv+g== X-Google-Smtp-Source: AGHT+IENDwuswAJbiEaRG30wahCIU1K1GFedjK/Q2vnSIcuGe0nQVExkQCiGetyyP40F5XzuOozohQ== X-Received: by 2002:a05:6a00:1496:b0:714:17b5:c1d9 with SMTP id d2e1a72fcca58-71b0aaa2289mr2816985b3a.1.1727262092682; Wed, 25 Sep 2024 04:01:32 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:2b86:78b6:8ebc:e17a]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6b7c73085sm2570298a12.59.2024.09.25.04.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 04:01:30 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 3/6] arm64: dts: mediatek: mt8188: Define CPU big core cluster Date: Wed, 25 Sep 2024 18:57:47 +0800 Message-ID: <20240925110044.3678055-4-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog In-Reply-To: <20240925110044.3678055-1-fshao@chromium.org> References: <20240925110044.3678055-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_040134_000866_F167DB8B X-CRM114-Status: GOOD ( 12.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The MT8188 SoC features two CPU clusters: one with 6 little Cortex-A55 cores, and the other with 2 big Cortex-A78 cores. Update the CPU topology to reflect the actual hardware configurations. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index cd27966d2e3c..51bf08b2ff9b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -195,12 +195,14 @@ core4 { core5 { cpu = <&cpu5>; }; + }; - core6 { + cluster1 { + core0 { cpu = <&cpu6>; }; - core7 { + core1 { cpu = <&cpu7>; }; }; From patchwork Wed Sep 25 10:57:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13811897 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 C526FC369C7 for ; Wed, 25 Sep 2024 11:07:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hncFvWLq+2HIxkK3IdImc39anusCXRWego+hIX24T7w=; b=XEle918axGH5eQNb3Olk+7xbcP zrdV1wntQUJ5dgiRcORuyUvJA814vZsHD0J4C6I17z8Rz3McghPLvqNAh1NNBWAV1bskisp+bOZXd 90EF8MSIUcmJaO1SMxiXkSqy5rtrCwGSo4yG8OsD4/xfMTdA5uu1GbnpTFXfbutQ65t3lw7SApKOl 3k3kkIpV4xLINVZ4Ke794vrervgsWOTA/3CxOdw+7M6Vyf8T+ARoIqBWbnbukTPYsElkVBBP8hKu4 6XURxWXP5ByThBuzn9JjIUyuASK2MGtxw8RjNkx0wd1us32b563OUmuKKIMQO+iMDMM54gZdidDpT kAWVobCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stPrb-00000004peF-1Nte; Wed, 25 Sep 2024 11:07:19 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stPm4-00000004oOp-2PD9 for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 11:01:37 +0000 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-717934728adso4657955b3a.2 for ; Wed, 25 Sep 2024 04:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727262095; x=1727866895; 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=hncFvWLq+2HIxkK3IdImc39anusCXRWego+hIX24T7w=; b=gm8aFMzsA+RQbj8jGGca9W+o3JW5fQRq4az51clrcr170Ieo7qmdYVNHGEnms/soZH JUndNxtzP3uJh5U+L+YjFTfCWtdgZ3VO3Mnsn3AwoSCtP1aI/MaY9Ku2Zhc/+5jkEPlv l0o+SBu6lY8u2XoXadBr+qkAInfVSKXq3GQSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727262095; x=1727866895; 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=hncFvWLq+2HIxkK3IdImc39anusCXRWego+hIX24T7w=; b=athUp0RTYieDk3Jgze8E0e0QUwBuYXgSUK/Ag2k//fPf6/c0R3BDyi5gbNRr/UiBBg bKx/ELg0ovvdNnYi3e9whoLU0gglcaWIbmGkDW3+f877HVrME0BZqNGYWTgnGqiZfJRK 7HrZteMDL/1Lh8uHmIMO/g8+pTh2HsD8Du8csPQh+4fX/urH9dczEmrn3uyWOYp7snSM NMKp0wvWeaOx6D79p6NQr3Gar2ACRH3rnX63a5HVe7KStlAAIvt8/w9x71p/Tj5C9yF3 PTkU7+NEDXGaGP3H3GAg08iKjSZ6PplR3Le4upTARcCP+q6xvqrk6t8JqfUqWVE7uZqC CTBg== X-Forwarded-Encrypted: i=1; AJvYcCVeanfpV8GAlB8Tv/w1HMydx0W9/kGQ4UlFxTc26Wjs9tmJEI/1D/f3HwJGOtOtwGOMFvPaHNKH88OE7iFW20gF@lists.infradead.org X-Gm-Message-State: AOJu0YysomPzMLY8N3cuisUtkpZ+SnBM8zqy3bCB/vl9TuipXAu6RHvE Mte8AvxKaNAeTK1u47IZqlxztTCLSzfFyNjPGWdQ8m0K8Bee4n9ZvrwwQwABqQ== X-Google-Smtp-Source: AGHT+IHU28Q8f9/KJ3N8Jxjmx5bV8UUivj8/F3xolVCMLHtBase+oJeqruIcrf8KyuRBh44bM56zZA== X-Received: by 2002:a05:6a20:9e49:b0:1cf:32d1:48f with SMTP id adf61e73a8af0-1d4d4b9bcd1mr2511337637.36.1727262095334; Wed, 25 Sep 2024 04:01:35 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:2b86:78b6:8ebc:e17a]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6b7c73085sm2570298a12.59.2024.09.25.04.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 04:01:34 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 4/6] arm64: dts: mediatek: mt8188: Add missing dma-ranges to soc node Date: Wed, 25 Sep 2024 18:57:48 +0800 Message-ID: <20240925110044.3678055-5-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog In-Reply-To: <20240925110044.3678055-1-fshao@chromium.org> References: <20240925110044.3678055-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_040136_630776_FD69A6D8 X-CRM114-Status: GOOD ( 11.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the missing dma-ranges property to the soc node, similar to how it was done for MT8195 and MT8192. This allows the entire 16GB of iova range to be used and enables multimedia processing usages, like vcodec and MIPI camera. Signed-off-by: Fei Shao Reviewed-by: AngeloGioacchino Del Regno --- 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 51bf08b2ff9b..ff5c8e0597f9 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -880,6 +880,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 Wed Sep 25 10:57:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13811898 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 AF832C369C7 for ; Wed, 25 Sep 2024 11:08:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OokQwblwx7XJowld2zR7LIeuJVeL+KfPUA3UT3AQXa8=; b=IDECxtoJef6GpHpcaBzS0kXAbM 14nTol4ZWI+KX++fBj4BJ/F8OA1O1O6N6r23b7pnb503nZz9z87SN9aFKe33Tp6WB5B/Z7zoSJUCB eHVTDk5gEoYN1N7QNAx/isuqQIKvPiNUp5siz57O/qqWaa12JAAO0+NBbL5GWZCG8YB5TdZLUZdiH ds5NcuWjTQYKk5wTWlhOFap5VtuPML89f/uva9NYyeEJBMbNipgnzFZ7XAu2BIkifQ5GN2niM/w/z WPco98td2GpoG7vMhK3LSbQ0736wavDSMXF/7RaoWqdSf+CQRlwlXwi/X2EPq9AScwcyLk5fglod9 dJyOzFEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stPsj-00000004pp0-1pOa; Wed, 25 Sep 2024 11:08:29 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stPm7-00000004oQp-0dI3 for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 11:01:41 +0000 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-7178df70f28so5049929b3a.2 for ; Wed, 25 Sep 2024 04:01:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727262098; x=1727866898; 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=OokQwblwx7XJowld2zR7LIeuJVeL+KfPUA3UT3AQXa8=; b=ANjwAaMPg7WqFzKgxgwb/ub4orFVkXES81TBdfE/OPuB+10STtH7US8mm+4+DqsEMF qnj5X2K8f7mWazrtS+fARdlhQtCfm9AjjN9+1oAXOvLDT8vx2RMegcIvN3y1I7khn1PL NwePOGs0eHyxGOpgk0cOoCsML6uDjVYebSEsw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727262098; x=1727866898; 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=OokQwblwx7XJowld2zR7LIeuJVeL+KfPUA3UT3AQXa8=; b=tq/RQDcfCW3gAUVitN4xvRi3le1OqXOk++iKPADEMGTrmHaSJMiwp/8Z9l51nk4aM8 O1qHMCVC/Bt42S21Hlzm1E1e/gwm0tBH4SLZhP16Lm9//PLMUurcp97YlMreAQYl9tNd utd9cIq2AzZDziW0LON74ccaaCPgVjMTvwMDXkrttYNfpLPzlceCVbKtQq/iOaPkrnzJ 7O3CSOsNVgREIH2oIJkG9KwNjAnKKvE2b7zmIxUMoUyq/FBc2O9OCJUpo5TD0VdH9vjH 8sb5LMzSVDZ8dt9UFV34DyGlMx18vehdqZAjIFWsQD8WXcSvUtM9ao657aeusyw10no0 khkQ== X-Forwarded-Encrypted: i=1; AJvYcCWcBh3ygZpUyWF4rgCNc4Y4VPG228rURojARIh/dd6TOjQ4igyfMhQA4YAfEMVpOb/ia1MCTmBlOCkpAJqu+eKW@lists.infradead.org X-Gm-Message-State: AOJu0Yxoc2NDq1T/y4KpIVDObMFlvux0dul+UuGwnhkMEaFWXBXmkmA8 UUb1IrQrnAHGVsJDXhaapbBU9ZZLo4tcg5qtyXrFotZgZqjAcEdmpJxowDnKDw== X-Google-Smtp-Source: AGHT+IG6lm5IWJgffa43W9/ClCHgkLMhnab6oiXEbKs+fknBPEtsb+qFj/6zqz2ZSq3SheDbWpmfMg== X-Received: by 2002:a05:6a21:2986:b0:1cf:6c65:b736 with SMTP id adf61e73a8af0-1d4e0bed995mr2986583637.40.1727262098113; Wed, 25 Sep 2024 04:01:38 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:2b86:78b6:8ebc:e17a]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6b7c73085sm2570298a12.59.2024.09.25.04.01.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 04:01:37 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 5/6] arm64: dts: mediatek: mt8188: Move vdec1 power domain under vdec0 Date: Wed, 25 Sep 2024 18:57:49 +0800 Message-ID: <20240925110044.3678055-6-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog In-Reply-To: <20240925110044.3678055-1-fshao@chromium.org> References: <20240925110044.3678055-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_040139_193789_E832AB2E X-CRM114-Status: GOOD ( 12.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are two hardware IP blocks in MT8188 video decoder pipeline: vdec-lat and vdec-core, which are powered by vdec0 and vdec1 power domains respectively. We noticed that vdec-core needs to be powered down before vdec-lat during suspend to prevent failures. It's unclear if it's an intended hardware design or due to power isolation glitch. But in any case, we observed a power-off sequence here, and it can be considered as an indirect dependency implication between the vdec0 and vdec1 domains. Given that, update vdec1 as a sub-domain of vdec0 to enforce the sequence. Also, use more specific clock names for both power domains. Signed-off-by: Fei Shao --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index ff5c8e0597f9..a6cd08ea74eb 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1064,20 +1064,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 Wed Sep 25 10:57:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13811899 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 E94E4C369C7 for ; Wed, 25 Sep 2024 11:09:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+0gdoWEmQ8OIzTuFnl4n60fS6o89niEVW+7kgdyvnOE=; b=vN0L1I/Z3iFSlviTPAHz8bH8bL xW/JvM8g5nfDmBVbfDQ42K+U4JV8Vfn0ich7dngX4RoBnLPFfe2zn6BGdZoFnQWy9e59KiKnYBWLj wkSvr5y7T4p+yfvjF5U4ImhPGb+kxpVVBNzLu4j7V8YACK/eItcw9r9ADJFmsIXe08KK3Ek3unHo1 DODP3YGBwaCMiNe5rz9v9FeI6Aqhv/ZbCM/u8m7ZvL3mw/kZPRIsZmFSzYNNyNQrLR0HAnoueRRH5 O+GoFMXFBluGD3S0VMrSK+ZaEvtg20Dho/c4ZBSf+0K3VbcDJY3NdiPa8d/0LhVbBXUDSGhdJGehv LgU2hROg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stPtq-00000004q2m-22yH; Wed, 25 Sep 2024 11:09:38 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stPmA-00000004oSD-0Uat for linux-arm-kernel@lists.infradead.org; Wed, 25 Sep 2024 11:01:43 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-71971d20ad9so4357643b3a.3 for ; Wed, 25 Sep 2024 04:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727262101; x=1727866901; 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=+0gdoWEmQ8OIzTuFnl4n60fS6o89niEVW+7kgdyvnOE=; b=Lt5SMHsz+SYowrd6p5vNeEMA2z7vc0+kVGYMHP/icp97XCtv7rlj8sVfumUTHlssXf i9Eiat7QuNSLzGPQ74qtm2jibQV/bi/W6H5tgsokyRddeTJlYns7hLPkHviTXzYFspvp 3SqSu2582mhouhsKr/t0lCK0PRvLrMROe8fjc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727262101; x=1727866901; 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=+0gdoWEmQ8OIzTuFnl4n60fS6o89niEVW+7kgdyvnOE=; b=Nr1045BWBm3o4Cln+GlB/M5Hm2/JATNtrsa4a3YwUeMaOMdskwzChYhDbpVnFBtDUa USyYfGkTGDe7eXLtSN6RrgYpOcloWQE60vLqE+tieCJy1x7DnwgepCmj9XiR0Xq55L3A Aru0cjhsAAMdF9kwFHE20Kb9/xIfj1Ibotey6pZyt/zrSyAAwzXYAvna1F4ZvZrf7m5W dyuivneqM2W2lqv1Gb+zyW/JfaXjCq8UJcgM5Cj4K2TH9GNNxVZxZkF8aSwiuO3UNV10 xrJwzDvJvVbyj1kouLILIn8B01Jde+eo20woPgykGOhBxs1H7vv5khc6MGLmUXDcTKpP FOiQ== X-Forwarded-Encrypted: i=1; AJvYcCWBRLK+xDYeq2guBKnCoT/y37g8Ht5XwyYDlFSycKIxl0XCUDRUKZJCoTqXAqoNMWPrjSV5Jv+uCgaZnYmnqVgi@lists.infradead.org X-Gm-Message-State: AOJu0YwpkWubW+RfwvtEuwQlKdN5f/J2OaXKXBJGXJaoVKPPo/lSy5fH UJ7FVm7TamcYbSY2HOF1xI+G03y/k08w0HXRZ/9+Y4NhDBqQfF7LE4+Vknb4Tw== X-Google-Smtp-Source: AGHT+IHW8akhne8ifxBoarbEIqQkjZqpqla6rNR9R3QeDqTmmCGIt95+B1YaGfD1lQYvQ0y0FfdixQ== X-Received: by 2002:a05:6a20:1010:b0:1d4:e56e:93b5 with SMTP id adf61e73a8af0-1d4e56e93bbmr1103285637.16.1727262100947; Wed, 25 Sep 2024 04:01:40 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:2b86:78b6:8ebc:e17a]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6b7c73085sm2570298a12.59.2024.09.25.04.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 04:01:40 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 6/6] arm64: dts: mediatek: mt8188: Update vppsys node names to syscon Date: Wed, 25 Sep 2024 18:57:50 +0800 Message-ID: <20240925110044.3678055-7-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.792.g87dc391469-goog In-Reply-To: <20240925110044.3678055-1-fshao@chromium.org> References: <20240925110044.3678055-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_040142_279651_79A9F8F6 X-CRM114-Status: GOOD ( 13.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The 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. Signed-off-by: Fei Shao Reviewed-by: AngeloGioacchino Del Regno --- 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 a6cd08ea74eb..98ba3485a8bd 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -1783,8 +1783,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>; }; @@ -1801,8 +1801,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>; };