From patchwork Thu Dec 1 09:21:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13061105 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 3CDA2C43217 for ; Thu, 1 Dec 2022 09:22:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OJS9x09/3exmX7G1RY2mMDcxGvC+7/424XZ3GlNSA3A=; b=3PqxDae84ol0hH 0dz3JTfdLtn5atBWBGnWjl3rQsGv/lqOOmUJv0du0tgTbwx84dJJlqDpdUs4uaI9/jFG67DGckN/O KrcPUl11rBSpHgYsnXxz0RX3rajYdtdih6AkSWU+4s0kWQwQ4AuGpoKevVoYpZ0l1Tz8zBgXbL0xE KwJLcyUewcnjSAngaEIWl+hgNQM360nq0N+HNp3j0+4AVWrSY/FyArXvyI1qd7Vf8kXkFCsKpVZRe xPs6G3v2P8gSGzcHwHiEYbZxUW2LA832TzGTc8l5XWNq+mo9SaiOqzEZ50S6lVQuvlz7s+fAm8k98 8UOLXWai37CBrhkF8woA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0fm2-006Iy1-Bt; Thu, 01 Dec 2022 09:22:30 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0flb-006Igc-6z; Thu, 01 Dec 2022 09:22:04 +0000 Received: by mail-ej1-x62e.google.com with SMTP id ml11so2709276ejb.6; Thu, 01 Dec 2022 01:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=9cg4h08ScbCmARXEsFqgc8N6O4NbradYeqRREoszyl4=; b=CXkqw4qUp3iF1c/VAFgMXTatfXdqW2qdLv/ri5wf4ff6y/bwMhcPTiZXL1x5LkU5Sz 8Q3mRbIrRA7hlRTEfTFvkSh4JplJO/zNfnMvtjbXrFyqH4PZ7WpFjEnp/GBxXNwUR7GH EkCCEv4ab3AsoRp7+L1ILg70SRjD0TtXIjl5wkVTPpNUj+/yqoDESBjYRocrbG7qVSJg vVJbXbCSMCe9Dao9ZtUScNN9WV/YVzg1l6F9nWke00MhibBosR79feNatjZIYXSi/v24 VFRKQvRE0AS0abToSBRu3BfhJ0c225w/p4IfxWJ5Np67Q38A5aicQ82QiqNr6PElvY6M QySA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=9cg4h08ScbCmARXEsFqgc8N6O4NbradYeqRREoszyl4=; b=qVQmv1Z8exiDAYyAKMhz5VT/I7iVXLVtTQk0MHyq60MxhdwR+2qL2BWtTlCg4eegZA ItpelpLXHvcGxBSWoY825qOYDwcpxrAkIATB75YN7Gvm+AGBwhmpuWXure76GSMnjzlO qM7iFmsjHpZ/lT0iR/KmbMXoUdC61gjbHUw2DH2Fpll5Ahc8llGcYmmf0f7DHd/uGQ3f Ih/3yw61W1+BFiGSu0+toosG69hRUp2AlK8YrY90RBQpZflf01jXWkqT+NwKJL4nuXY2 NrZte8hyj3r1lNBG0tjVYG+mkP9ShYvTbYNbq7vZkJ2Ir79wAcM/MFqLJLcVK9jDuVrP UL2g== X-Gm-Message-State: ANoB5pk9tez8m4mugty+YEeLeIJGEsqv3plm+AWrPYpAIK/FUdsXZxgO ANAb+spqNYxn29cVqf8SxIk= X-Google-Smtp-Source: AA0mqf4ntoAMYIY51L9dJw/8VGj7v7SAFWbpcSMtapJ99oDCgJj+l+3LtrhYBgp8Pss4X42nEaXNwA== X-Received: by 2002:a17:906:a418:b0:7a5:e944:9e48 with SMTP id l24-20020a170906a41800b007a5e9449e48mr57172762ejz.109.1669886519485; Thu, 01 Dec 2022 01:21:59 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:21:59 -0800 (PST) From: Tomeu Vizoso To: Cc: italonicola@collabora.com, Tomeu Vizoso , Neil Armstrong , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 1/7] dt-bindings: reset: meson-g12a: Add missing NNA reset Date: Thu, 1 Dec 2022 10:21:22 +0100 Message-Id: <20221201092131.62867-2-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221201_012203_298119_7B266AB3 X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Doesn't appear in the TRM I have, but it is used by the downstream galcore driver. Signed-off-by: Tomeu Vizoso Acked-by: Neil Armstrong --- include/dt-bindings/reset/amlogic,meson-g12a-reset.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/reset/amlogic,meson-g12a-reset.h b/include/dt-bindings/reset/amlogic,meson-g12a-reset.h index 6d487c5eba2c..45f6b8a951d0 100644 --- a/include/dt-bindings/reset/amlogic,meson-g12a-reset.h +++ b/include/dt-bindings/reset/amlogic,meson-g12a-reset.h @@ -69,7 +69,9 @@ #define RESET_PARSER_FETCH 72 #define RESET_CTL 73 #define RESET_PARSER_TOP 74 -/* 75-77 */ +/* 75 */ +#define RESET_NNA 76 +/* 77 */ #define RESET_DVALIN 78 #define RESET_HDMITX 79 /* 80-95 */ From patchwork Thu Dec 1 09:21:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13061107 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 F0E67C43217 for ; Thu, 1 Dec 2022 09:23: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2YjhlPxCssNpz9iO9C5ZmXzZeoyTd9ClSAe4a/7oAZU=; b=dWMrYnppLEUNgB tBiWu53xAGbwhfULHfX04zMIPRIpXIfhIBQSAoEHXbhBoHlYyY1E5PY0KsRfrjxu8/q3m+zJQImsN jap6teQMR3rDfNoEVn6RJb+1PiLZN3Qwhhc2O88JTn3MSlMZjvSmLBZbqKR7qNfyn8QgxP5f4Zzao vSMmmZw3zuYDQtHrx3Jy0ciSGdL+uF+QdXKxEpei7D+7z+srYd9udFVKw7+tYn8+l0EUyJGcvbI9x oTeA3igS9nzm/CPuBrrkZS9J1qhuB0fHpeGvMIVWlxW2UWSg9w4/kfRnMAwFYz144Q4JqppolI3JZ +9nASmxiOoGpQXmrFlXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0fmw-006JQO-KU; Thu, 01 Dec 2022 09:23:26 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0fld-006IhW-Qx; Thu, 01 Dec 2022 09:22:07 +0000 Received: by mail-ed1-x52d.google.com with SMTP id m19so1501068edj.8; Thu, 01 Dec 2022 01:22:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=IIHeFovEuwjGuythdoubrFT/SXANkAJoc/lUtd9ZW10=; b=T8NMw0auTX3nVwIJOBEXOMKh+uqx8TL/MfgsQaHpXiIPpHbTluYVT5MbwoV+eH/Mwl aqCvSWODpNANYQEcN63jk0hAhV3rHpzhzuEZhLJYxzV3wogr9KE58ZfFLdqTumxU64Ah x4H9WETB8elERPDbGGTVLAbok1wt5d0RWcqQXOs1udLnRqd4lM5q4/Su2WpKE5VP35Cf XZCLXa0N3xi2YEDA/Ep+KNM5t9fSPxhIkOTQH01L2wOo6SVwXctSxX+BtCFPPxA5Cge9 umbox7LujP/qN+0OAsIz5/AU9jGE1SjQhJeHw/WLhEbzpYfWAShi3B5wD02MZTDaQXI5 UVLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=IIHeFovEuwjGuythdoubrFT/SXANkAJoc/lUtd9ZW10=; b=Cv9M4fxICG9tn2lFUXjH1idqX0eZ33yR3a8mTvLwwH79Q7WIykUzZH1iQUdLvsuQ6k VOSRgZ1lxRBaE99SLsYEhEtgUrztbp8HgzO0eoqFDIF1bBgLUI65XfQqdjYhOO1RVcdB X9tCXh8GHYaKeZefOeUrHo0TjTYSeKhvK3IwlLYgLw1VN74yRDOSJXEX8rT0nOXbvBYf umOFK2oOMLifdw3sfLSqe7GMlZSz/HYyAdgYmuQSN+FsHylA8nku1XkwAp+h4YAJhciU Jp9+HvnNy0TbgHky4GfaBKvP0Hb6OBvDd3GqB9PWaXL4HoZmpJqXrLiA3AvZ+VD47oJV cJMw== X-Gm-Message-State: ANoB5pnAg9SS2s4S6HBtQp06N8DzDRtlNvYPZxpWGdR+K75t2aXECxjw e0Z5eG4qK3N9LuQ0fv3zQuY= X-Google-Smtp-Source: AA0mqf5pb8aFIA8ELC14wWkc0BpA3jtfmG0vYDIKXKX3zZ1MK+of5ZM9eNc1qHqbitu8LkqX55N8DQ== X-Received: by 2002:aa7:cad7:0:b0:459:443a:faf4 with SMTP id l23-20020aa7cad7000000b00459443afaf4mr59471545edt.297.1669886521955; Thu, 01 Dec 2022 01:22:01 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:22:01 -0800 (PST) From: Tomeu Vizoso To: Cc: italonicola@collabora.com, Tomeu Vizoso , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 2/7] dt-bindings: power: Add G12A NNA power domain Date: Thu, 1 Dec 2022 10:21:23 +0100 Message-Id: <20221201092131.62867-3-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221201_012205_921110_D83DEAB3 X-CRM114-Status: UNSURE ( 8.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Add define for the NNA power domain for the NPU in the G12A. Signed-off-by: Tomeu Vizoso Acked-by: Neil Armstrong --- include/dt-bindings/power/meson-g12a-power.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/power/meson-g12a-power.h b/include/dt-bindings/power/meson-g12a-power.h index bb5e67a842de..93b03bdd60b7 100644 --- a/include/dt-bindings/power/meson-g12a-power.h +++ b/include/dt-bindings/power/meson-g12a-power.h @@ -9,5 +9,6 @@ #define PWRC_G12A_VPU_ID 0 #define PWRC_G12A_ETH_ID 1 +#define PWRC_G12A_NNA_ID 2 #endif From patchwork Thu Dec 1 09:21:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13061106 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 B7713C43217 for ; Thu, 1 Dec 2022 09:23: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+iCtPgIGwbz45YSsTw5QPUFuvyvTXOCZkrwj3iBFQLc=; b=m1baTT7WAuMK1G cgV6U+DTpmt5Z6YZYYuFl3qgO+EVmIkAWngWTVxqbO4DtUjtZERinLuTvuWtcFXGmLwcAudf5aS1k WTNvmtRvttiCOjYQlEKeRSm3Q/ycVHx8Oq2iWfYO4D7USLsRR1OLGtwDkp6+87uGo3Cvx2HLq6G4d 1BRg3wiXPDbTbqjcJ1HVuuQuukyzRoYI4ZQ2YNHoP6QzPvpu9QYWML06DXqaYcTkpKtMBF1oPhG43 TZ+HELlrRdrMKhhoLyL6VIrfHch5y20CbBUSmGZjFbZJ+wf+3R9+tJpzdW13vjP7sa5352Yz+ZQHD dZBmKnIMbUfjp0PTd0qA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0fmR-006JBM-Us; Thu, 01 Dec 2022 09:22:55 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0flc-006Ii2-L5; Thu, 01 Dec 2022 09:22:06 +0000 Received: by mail-ej1-x630.google.com with SMTP id td2so2726034ejc.5; Thu, 01 Dec 2022 01:22:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=Cw/am3froU3IMTWG9BB3ZSyfplgImMW6lCXqrhZP2N0=; b=VtKXP9AfoQpyEZYYV8RQoSBNAXIYAvwbKi6Yg6Coz0B22h0nwf6cOnNjAiCNC6+8J1 7NolDrEwXwXRx4yAaXXvqvu4wIgZsTZ6gLLbOMAqjbY94rN0zdjIWXsYwnONwGW/NsC/ w2BiyAJVq4d0sjwWQtorKHctehY7vfauDgXs2hBNxAUV8PVaRnzRlqVrq6EGnTfq/vot z8opNiGX6/1bWF+R5skTgx9u1kpkMP54cALtMfMmZFlCymXrysGAOIRICToMQONZs/4l x3ufy1N7+UUN9Y4RraBMyMX+QvO6MiINR/ScMSbAh+mq210eN2ipnUpL/d0hsGL7jsGR QzBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Cw/am3froU3IMTWG9BB3ZSyfplgImMW6lCXqrhZP2N0=; b=YmgEt/nFAgFRxmpaWqjkmlbEfdjnjEsdVkUtF5FQSoMl5tuzqdOr4wM6sS48u2aKKm AlSqBCoppmjTb/RACXKVzJBRUw2tgynBM4YV7dcJ1IrmAlzdy688nZUVOXai6ziKWFYV 9zW73C2PGKMzMe0uzpCWMp+azURJkq1f1gNwfqfsJSwsUuLq4bnHI+8xTp7VJYr35GKq Vd3f8rFOnlS/7cB2DjcX9F4TOFayMKL6z7whuNce+3GfKn81CitvHBX+I+lwg6bU61Lc a6yZdWEOflQ4AqVbQbTPMw6rGKZWcuT36/XJN/1o1NcAjVXR2Ko3IRaMqh06t/BTDcxS FMtw== X-Gm-Message-State: ANoB5pn8CQgGKHmF0GnH5mhMm9FrbAD8HkWpCC+8rhp+hJP4w2ZpsaNH VXEHOIW+F87DymVqZaz0V6M= X-Google-Smtp-Source: AA0mqf6j94e36tZw8yrtZZ4lcltmqWjX7I3vRd3gaN2OAM5MqJ9bj+WCkFF+5F9Iy3UWrMLt1UWLkg== X-Received: by 2002:a17:906:a387:b0:7bc:2ad:7c1e with SMTP id k7-20020a170906a38700b007bc02ad7c1emr28734923ejz.588.1669886523183; Thu, 01 Dec 2022 01:22:03 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.22.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:22:02 -0800 (PST) From: Tomeu Vizoso To: Cc: italonicola@collabora.com, Tomeu Vizoso , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 3/7] soc: amlogic: meson-pwrc: Add NNA power domain for A311D Date: Thu, 1 Dec 2022 10:21:24 +0100 Message-Id: <20221201092131.62867-4-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221201_012204_719445_EDE5EBDE X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Based on power initialization sequence in downstream driver. Signed-off-by: Tomeu Vizoso Reviewed-by: Neil Armstrong --- drivers/soc/amlogic/meson-ee-pwrc.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/soc/amlogic/meson-ee-pwrc.c b/drivers/soc/amlogic/meson-ee-pwrc.c index dd5f2a13ceb5..dfbf0b1c7d29 100644 --- a/drivers/soc/amlogic/meson-ee-pwrc.c +++ b/drivers/soc/amlogic/meson-ee-pwrc.c @@ -46,6 +46,9 @@ #define HHI_NANOQ_MEM_PD_REG1 (0x47 << 2) #define HHI_VPU_MEM_PD_REG2 (0x4d << 2) +#define G12A_HHI_NANOQ_MEM_PD_REG0 (0x43 << 2) +#define G12A_HHI_NANOQ_MEM_PD_REG1 (0x44 << 2) + struct meson_ee_pwrc; struct meson_ee_pwrc_domain; @@ -106,6 +109,13 @@ static struct meson_ee_pwrc_top_domain sm1_pwrc_usb = SM1_EE_PD(17); static struct meson_ee_pwrc_top_domain sm1_pwrc_pci = SM1_EE_PD(18); static struct meson_ee_pwrc_top_domain sm1_pwrc_ge2d = SM1_EE_PD(19); +static struct meson_ee_pwrc_top_domain g12a_pwrc_nna = { \ + .sleep_reg = GX_AO_RTI_GEN_PWR_SLEEP0, \ + .sleep_mask = BIT(16) | BIT(17), \ + .iso_reg = GX_AO_RTI_GEN_PWR_ISO0, \ + .iso_mask = BIT(16) | BIT(17), \ + }; + /* Memory PD Domains */ #define VPU_MEMPD(__reg) \ @@ -217,6 +227,11 @@ static struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_audio[] = { { HHI_AUDIO_MEM_PD_REG0, GENMASK(27, 26) }, }; +static struct meson_ee_pwrc_mem_domain g12a_pwrc_mem_nna[] = { + { G12A_HHI_NANOQ_MEM_PD_REG0, GENMASK(31, 0) }, + { G12A_HHI_NANOQ_MEM_PD_REG1, GENMASK(23, 0) }, +}; + #define VPU_PD(__name, __top_pd, __mem, __is_pwr_off, __resets, __clks) \ { \ .name = __name, \ @@ -253,6 +268,8 @@ static struct meson_ee_pwrc_domain_desc g12a_pwrc_domains[] = { [PWRC_G12A_VPU_ID] = VPU_PD("VPU", &gx_pwrc_vpu, g12a_pwrc_mem_vpu, pwrc_ee_is_powered_off, 11, 2), [PWRC_G12A_ETH_ID] = MEM_PD("ETH", meson_pwrc_mem_eth), + [PWRC_G12A_NNA_ID] = TOP_PD("NNA", &g12a_pwrc_nna, g12a_pwrc_mem_nna, + pwrc_ee_is_powered_off), }; static struct meson_ee_pwrc_domain_desc gxbb_pwrc_domains[] = { From patchwork Thu Dec 1 09:21:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13061108 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 CD900C43217 for ; Thu, 1 Dec 2022 09:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8Cs9ZhblCC3MgRelf3K83NYuqWOEeaXuf4iyrN5H0Xc=; b=QxiXFPoaq+dfqq /D5tlIFuwkfZMvzrjI8FaT+FC7JpeG/bIKF9sNeGBBAFV1eG7Q9QlezNcB4I37FRp34mmc4jFPRft yHdzsh2XqOwKlY0ofGQF65gaCGV6G0h4moIT2hLAFTKD/mT25bi2D6x3u8XLNuCzUYsB+Z3wvTr3p 0qLBsw9d2GoVuSI7o6Yk8yBS/vN41nzAyPq+7rddW9E+sMwt23nO9b6x2N7rlJNTPcixcDgzg3ODO DB+x49NhmsXLOSaTQNJd4//JQHjSc5s4SANhl+cTc/quKIEqJN2jRWrpF7Kc/kMU2z4Nk6rG0CpMz R2MsAt3pE9pYC8LWVWjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0fnJ-006Ja6-HH; Thu, 01 Dec 2022 09:23:49 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0fle-006Iil-H8; Thu, 01 Dec 2022 09:22:07 +0000 Received: by mail-ej1-x633.google.com with SMTP id n20so2815522ejh.0; Thu, 01 Dec 2022 01:22:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=emFoOM20hOM5X61XhU2Zz+3u4EcYFFGnLjIcqz3xjIc=; b=eEKedVMqKjYToTnqqxIEak73Wzz7rW0xVExwfxSdUKfxOp8vkH2NxTqrOtIoQLz4F8 9exnW6NsirZrwSTRSfprHwDR5nwlpq0pDtbX1yq8dJmnSnKk/KwnLpBVOSkJTcxo147N WSyq6IUND9gaNMgFQUZqSGL7RikXSjj4WYPm9AtgEMeUD2wgnXFaZCLy2bwodcAmida4 ZsaQTs/81oikt/C+1jx4caWjMSbKOOSdBMb3ToqVHQmwU5UbUaLeMMvlB2IlyaAGUTuF aaDD5i4nFWyynDYWo15p/tdbfOA0xQJush3cXN4PQMqmOX/dO+Am4L7aSZGKcga+SsZC EbvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=emFoOM20hOM5X61XhU2Zz+3u4EcYFFGnLjIcqz3xjIc=; b=wt13Edy8xF5UYn9Q3H7QNZJdkHUabtiGur6L+EV9+rQz92my7GbDoX9JrguLjA/Uzj /oTGgSnTilVUFCX9Tfj6u9Qdn1U6rUiPn4ztpBZD8LH+6Fld5yqpkRw03bmH2+TIj5fB cHKq5A/n8qbOS9uefxkQ6OPmNfCuGlxqzTB6i9FtkS+pLl7bQHPd8eB/f7zCoZnQMIVU dSbwH5s7+iuL/Lx9z5H3bWx40gUIgvAPfSUdW1mrazFP+3W4X8QoDbHYfaPoYBNgWN3k uKZj0jmp4ohePbJrvn3jGpULQXJGCZBb/6pO297i7pm83NGB0yoEHbc+56uhiY+iVBi5 IUNw== X-Gm-Message-State: ANoB5plN3F/jfHz/HhZm/O5oBqTil8f9SK05N2K7kO3/mA6KeBXufNK5 +mR2LJntuFCI75RcIZIbcX8= X-Google-Smtp-Source: AA0mqf4UyZ0O/AsgAmnpnzeo9TgNMV2FW3qhCZ7iet38KCkJzo/YLs9LD+vUUo9/Xdof/6/2W89Bdg== X-Received: by 2002:a17:906:4f0b:b0:78d:aaf9:7b8c with SMTP id t11-20020a1709064f0b00b0078daaf97b8cmr56468241eju.229.1669886524515; Thu, 01 Dec 2022 01:22:04 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id 18-20020a170906211200b007b29eb8a4dbsm1587879ejt.13.2022.12.01.01.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 01:22:04 -0800 (PST) From: Tomeu Vizoso To: Cc: italonicola@collabora.com, Tomeu Vizoso , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Amlogic Meson SoC support), linux-amlogic@lists.infradead.org (open list:ARM/Amlogic Meson SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v4 4/7] arm64: dts: Add DT node for the VIPNano-QI on the A311D Date: Thu, 1 Dec 2022 10:21:25 +0100 Message-Id: <20221201092131.62867-5-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201092131.62867-1-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221201_012206_619108_02DF706A X-CRM114-Status: GOOD ( 10.08 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org This "NPU" is very similar to the Vivante GPUs and Etnaviv works well with it with just a few small changes. v2: Add reference to RESET_NNA (Neil) v3: Fix indentation (Neil) Signed-off-by: Tomeu Vizoso Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 11 +++++++++++ .../boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index 45947c1031c4..61c8461df614 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -11,6 +11,7 @@ #include #include #include +#include / { interrupt-parent = <&gic>; @@ -2484,4 +2485,14 @@ xtal: xtal-clk { #clock-cells = <0>; }; + npu: npu@ff100000 { + compatible = "vivante,gc"; + reg = <0x0 0xff100000 0x0 0x20000>; + interrupts = <0 147 4>; + clocks = <&clkc CLKID_NNA_CORE_CLK>, + <&clkc CLKID_NNA_AXI_CLK>; + clock-names = "core", "bus"; + resets = <&reset RESET_NNA>; + power-domains = <&pwrc PWRC_G12A_NNA_ID>; + }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts index 124a80901084..73f3d87dcefd 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts @@ -15,6 +15,10 @@ / { compatible = "khadas,vim3", "amlogic,a311d", "amlogic,g12b"; }; +&npu { + status = "okay"; +}; + /* * The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential * lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between