From patchwork Thu Dec 1 10:30:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13061172 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 80824C47088 for ; Thu, 1 Dec 2022 10:32:18 +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=w0ImHQ0++mpGT584A+4vzQPUU5FXyhseN6/bRcJ0moA=; b=thUElucjkG1O5G N7skNS+H+CiiT34sGfklDIrN6jM/hGEpDyRPPboCJK5G80aXYJ/tTgj7ZGdhnE0LzazPOlXhJEMUe 9Exv/r60OZc/BXDC65KRENFlI1qufmEjgc+C3s6jxQkb9MXZap7Ym4ax3gn0LUjpvhlmmu7PVaOzT hFHUS0OZnxf84OWewJyF0kck7Wv75Tzhy95dtDSIBjY/xbXEua7v6B6y20qP94XmiHYDOKzdmfYvD A375dsw/CWVcvvqnx0S3HWgu+54GVtBmbjk+CKdJQJCtNAu4ZLjqX4cleIq6sh/9Y3mMxIZWzRRt1 g1ZJ/HYFg9RSzQiJjsEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0gqT-006ivz-74; Thu, 01 Dec 2022 10:31:09 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0gqG-006ipP-Qi; Thu, 01 Dec 2022 10:30:58 +0000 Received: by mail-ed1-x52f.google.com with SMTP id z20so1696228edc.13; Thu, 01 Dec 2022 02:30:56 -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=KutmegGQGsv/gMkBbZbzfuVkNuLXhW/EgSYR1qqKN9AXRPCSlAR3JGKhkXpH0fQRpE e9AHn4lBp0xWg1i7Slzlzv2gw2KbjpIs9pyviE6SP+4T/wB/OoNDNvqs6fNJEYbg/7pz OtOmNTaBBz296GbI6aDaugchKRe5uJv3xPUCx7AlqpKAvy8LcAtmRODec+n8MxIDW3eY gvroupxW+sCVmW3fCPBn82s+8oXxB+k+x256wlM2QQ4+ktuGLj6HsYlOqCtuqfbDU2zn vnNL/OEUZ3EVcWFhFEV++ATUuZGV/KhgQNGsGeW9Ub3qz6sXwnBiwvi37M85LJAp3s+I FnaQ== 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=TgcrQXXsZyUDjRVKRWVa0HSmZb1ROF77/J1Tus2dbdevaD3JdIvUXCrvFqjN6ojBIa 6J4xiRewkOd6MWMoxyoYXTXNhZdFfqv5IeC/Q+kjR1/uaLjw8sSFCQw2cK0W2DDSmlEI pkoGTnddDkwjBm+hx+N8Y0gXrMU/9bVXrRR1RYVNJiIOpLfo46dGkdg7HaDn5NfK62Qb oAt0Ql7T6JqittgVbGXpPe/HO9Mv8PKMGi9IOoT3x22R+1jkxbyzBqzgOm6xxqzbzr1W hDaZ+ixOl2f6DyotajcflnCory6+TArjD6lDR92oYvnJOnfIybl2LRYin1hoNjpcE3Qe pKpw== X-Gm-Message-State: ANoB5pkLUErwWPSWBuEVKAgTANl6YenARp4ZcLxRQGmjSQUJtUdf0Ojy 9+xHSqeOZNhbi0EKKDOQTeU= X-Google-Smtp-Source: AA0mqf5LqY3BpiA6Y64UXPqHHdECs7MICeKvHQSVrk/7RvPTjow4ThtGOhZPqltPT6o0TlHo4K2LMQ== X-Received: by 2002:a05:6402:3886:b0:463:ab08:2bc6 with SMTP id fd6-20020a056402388600b00463ab082bc6mr42080057edb.143.1669890654995; Thu, 01 Dec 2022 02:30:54 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id g1-20020a17090604c100b007c07b23a79bsm1592400eja.213.2022.12.01.02.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 02:30:54 -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 v5 1/7] dt-bindings: reset: meson-g12a: Add missing NNA reset Date: Thu, 1 Dec 2022 11:30:17 +0100 Message-Id: <20221201103026.53234-2-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201103026.53234-1-tomeu.vizoso@collabora.com> References: <20221201103026.53234-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_023056_886683_A5335C11 X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. 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 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 Acked-by: Philipp Zabel Reviewed-by: Martin Blumenstingl --- 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 10:30:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13061173 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 4F38FC4321E for ; Thu, 1 Dec 2022 10:32:30 +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=gTULbhm/shEshRnUvr+jBXaS7VWeXvM6VJCBMQHznKE=; b=vCGkNKH9yO1dXB NOaNt5uDi2U7r6jIe+pSAJZ/dGVSpMaDmwzefI9eaPXmP871jOihkmpwHkccD22Crfb+UwT3fsGPB i6AzeQoiWFUY3bCd6yGkBjT/s0l2gJTOB4EtMssR6Q6wqZXET66yNzZBXKXIcXp05jpDaJBxXyrWx UGo0tfKdgbxnO4fIM7rJPTRpmdHlPwACc0/4yWQVPjPsKpUE6R/hp7jA0SPNMgCpeFB+NgW1kmbca 5IMjCoKpNj75Sss0z9TJzY/qrSEDxzlhRDf8O8m5j+QcjaUR7FzNr2tGhOXGr2bnkwFWFNxxBksI5 +L3pb1TRy2T3EmZUaHPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0gqc-006j0Q-Ns; Thu, 01 Dec 2022 10:31:18 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0gqK-006iqo-LZ; Thu, 01 Dec 2022 10:31:01 +0000 Received: by mail-ej1-x634.google.com with SMTP id gu23so3083874ejb.10; Thu, 01 Dec 2022 02:30:59 -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=hApD77a5zfBe5o/b53t+6gn9V8ZyjpGnCPRoe5Id1ypg4cyDfhXbyTUgeWaWip6xQe ny0buVuVbIazaDDKYvph3+bQBQdXjdOoT/Bkbi1jqv9ATA/2NFRxdjydRWczM3S3M0C6 F2PO+ye5Jj5VxURs41Ip0So0q5BWqvc6IL2G5hLtWo4lQQvn66h5WHsJ77DkL8jZ1805 Z9N7fw8CMXjuhNogHKtg8opMaH+gr4EFjeGfxiEH7gMK0Svj0fo9wnnex+AOOp1hUxwv 3YTW/aT32G/hUtOZF6SlURhD637ZQETa9HcDK9L3t85XLUFlXRdCweD7uLZg/zJcqgEd wDXQ== 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=Cpz3t15hIYkza/xTV4xXEhX0gd7KSCc4fyJXK7gYRFRCzHUDJ7N9fWJYqEoEsUORYA EQ2I0/mUQJ5sHUUWIiKtFMgtB7EFqX6pzt2PMEJcDVIZF5A66ryET0CofhymP+NC5was cJP7ifLQLRTfsrP+5iMyBb/vcktFlHBgNznkhWdXNwG5sZRgYorQvSUgDOHp4W8C59CJ tvF4gzCR/Ut5Q+Lyk1TpA7X3vhQdhk/kyCYeksR2mdeE0LiIK9jzlyruu7k4tOd7hg6U GOVmuffySeTcP4DP2Ko/4JIAKZCOXkKgBvQi4oGtF+dfNgAeWUhHcldBhhzLqwuBbC9w PBSw== X-Gm-Message-State: ANoB5pmnHTGKmx0NlJsnmtQ7rrTEfVbUqHDCTBmPEjD+HbJWdaXLmz+P RkGje1LGizoumPtPGZwJ8qE= X-Google-Smtp-Source: AA0mqf5bobEV7idrIfWAF3puiMHvXHwes6lSDep2bUEG0MxsOcJSRPbn6WpLKgj9Ih/p31j9JEkJcA== X-Received: by 2002:a17:906:4756:b0:7b8:6a66:4b7c with SMTP id j22-20020a170906475600b007b86a664b7cmr37811689ejs.663.1669890657532; Thu, 01 Dec 2022 02:30:57 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id g1-20020a17090604c100b007c07b23a79bsm1592400eja.213.2022.12.01.02.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 02:30:57 -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 v5 2/7] dt-bindings: power: Add G12A NNA power domain Date: Thu, 1 Dec 2022 11:30:18 +0100 Message-Id: <20221201103026.53234-3-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201103026.53234-1-tomeu.vizoso@collabora.com> References: <20221201103026.53234-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_023100_729137_441389F9 X-CRM114-Status: UNSURE ( 8.10 ) X-CRM114-Notice: Please train this message. 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 define for the NNA power domain for the NPU in the G12A. Signed-off-by: Tomeu Vizoso Acked-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- 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 10:30:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13061174 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 5DF34C43217 for ; Thu, 1 Dec 2022 10:32: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: 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=DJhIimY2Fe5qHXQ8jG2x1m10vrihRXYXk31Lk0SBFmw=; b=rxdzRQxUs8ThlA Cr/fb6KjqCvw2QwVmjSE+Afmy18XOdxyor81DHoczc5BQRbk+WB+9pSseg3GAWqaAPZITR9142a++ K4yLkUp0KnE9xekndolTfvSOIMbqfWlFXl5oe2ZDxjDkmmaYEza3jDWx1zuQ8hbcMsPLkmiPyHtNL wvz+yWo12DSxitmvB8iA8oNRf+eddsRGUNE0slg1diRqMc9lOPFauvBO8Gc6PynKZDbrXSwzTBVhN iEYLyBGsO9/V5Vdi3ATnwcxRLJpW1xh3j5xJJC4zErPu8dviYqdyqf9mi1WWgpC9iZPCfFOExIYeH 6jOK97JjhhvRYbvdAM3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0gqo-006j8M-Kf; Thu, 01 Dec 2022 10:31:30 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0gqL-006irq-Uo; Thu, 01 Dec 2022 10:31:03 +0000 Received: by mail-ej1-x62d.google.com with SMTP id n20so3212831ejh.0; Thu, 01 Dec 2022 02:31: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=Cw/am3froU3IMTWG9BB3ZSyfplgImMW6lCXqrhZP2N0=; b=e7Jr/dlq1iZJ6Vo0Akrf19zQZbdAlnYG76TZ3VqHzc/Frne5jgMv02/d3ohwY/cNGA 3vUCDNQ3DjJUemDIIgFQ5A2FjLb+EVY83KHHEgVf0B82hJ5wahK3LWkITJ/OAZMosNLV 3170pgufD8Cc1rzpSJUNWXLIbe+eIKgufCl4yyRa5kn076vdBuaiqhj8K87ogf7R2lXa RC/YSnNNXEzTtlp3yft1iMdt7Sa6gdRK+jrTdpU/eVPXNhmwLZMFBnYMWbT6XXWePszu snUuU5mMGRPpXygAzvxKBfp9yRDHeNclakNBZ5ELeNNBbSAhDdJjy7M9JjhiNZP1h+5u pRaw== 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=12uVuTYc4AaWPXADVYKOV//qoq1+5UX+4Pp7PE1MMZHuJaBoHvfNLqZOJRTOThRMlm qWd89FdMJYYLfMdQoXE1SoU3OZp2QSLbm8NBfhzgrqQ5XJikhmXsg1iS4kiuy4tAKNWc ZR+QQxHGx+Vkg6kJ19AXc0O04ChSpkOGfQFHHyXDV4cEJd/EBhflF0NwshXm+DfdMM9q XWBHFHi4r+TrgA5pEEVgHup8Y+iwi6p34wnd/LWbWFXul2FCOXG37ZJRBWQwL6CrjPwZ VNcOaBeDCozaSEJcBqrD/w8b7GukL040XUTKQhLZ24v4TS5oWEiV+1Bt0MNX3GsqaLfn b6+g== X-Gm-Message-State: ANoB5pm/ebTFULvMER8oPe6SqFzo3NQYeJlO0nLuAu3dl6FRvlEk8P5O SSy9Ptl4ojjPgAi0kxjf3rApLCiTHKzJ2w== X-Google-Smtp-Source: AA0mqf7i+oWScBiNNrMmVVDu/b9xnYG5kkQHeaCBG48ZkrilJoVuy+tSPb3PjaBDDCtMo8/nVgfNCQ== X-Received: by 2002:a17:906:4e4e:b0:7ae:e6ac:2427 with SMTP id g14-20020a1709064e4e00b007aee6ac2427mr55294186ejw.345.1669890658781; Thu, 01 Dec 2022 02:30:58 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id g1-20020a17090604c100b007c07b23a79bsm1592400eja.213.2022.12.01.02.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 02:30:58 -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 v5 3/7] soc: amlogic: meson-pwrc: Add NNA power domain for A311D Date: Thu, 1 Dec 2022 11:30:19 +0100 Message-Id: <20221201103026.53234-4-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201103026.53234-1-tomeu.vizoso@collabora.com> References: <20221201103026.53234-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_023102_025859_C52CB8FE X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. 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 Based on power initialization sequence in downstream driver. Signed-off-by: Tomeu Vizoso Reviewed-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- 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 10:30:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13061175 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 1AD50C43217 for ; Thu, 1 Dec 2022 10:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: 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=W+r+7i8rWfHEfKGS7tzzwlHHOQ1i9ey+6Oz4A6DKaYY=; b=e5ZNO73QeJE/Uv 5KRmVpC+B7IIgSDdTF62+fvtoS1X3zdPK+PeQGhrJJ722Bwkaci+y6AMPeSOxpDzoaOsAZ3DVnet6 ZdGe1g2974HvWV+z9qVx6KSEKP6FTP6hN0xV9q5qV7VHJduG9saajNvj9OG/uEzA0B0th/0Ok/N2i s16MEvDfYAis/p9rGvrDTqmGML1pWzErGVZoqOzLbhSwzL8W1kQ5IWbqUjHqaWHGB11aQ4plR5H5z vpJEvSeL74yRNHfqE5Dg7lsKZLXRyYhumU+qqz6Lj71K60g8xRTS+M3sPgSN1OpP0vutkf7aUY8MX 4+lWQI6Nsi63eP3N0PEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0gr5-006jGB-GW; Thu, 01 Dec 2022 10:31:48 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0gqM-006irx-9B; Thu, 01 Dec 2022 10:31:04 +0000 Received: by mail-ej1-x629.google.com with SMTP id vp12so3097443ejc.8; Thu, 01 Dec 2022 02:31:01 -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=NCXr1K4zFjuX/RVBxvc5oJIhyyXqDuAd5V0QzFdaC7DUehULpan+aXtsZJD6MrLX/P YJFEeIY+zE9kGCud/jm+qCBdQJqzThuBarI/SQ8Ol9c9Ua3w3PWX8tIUwjrarHPUUXyb duAMLX540wgF/gcxLN127MTtPnVJFk/5J/JR64frG2XZlluLFcKmxiKZslVRR4PC3Fq5 AlsgxObR6xxQTEi5dp+z5xXnvymKxzc6TYFIgWucGoOpCqosj9LlBqthGrR8/UXJCAzC WMLaCJQaHtFph/Jj+JNXlN/J6YVu+NDXZ4JEREyQ3NtBcMdmX4XfZUA3Y3s8n69MhKIE ixKQ== 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=XLfPyM/8VEb/h1/hb27s+/xeQo3JGWU/stqHzu+D1qIY6ojK7TlgQ2XhVQcdPOHstB vvzLL4TiuKyoacg1CvaJjkgeuloGJxis4vuVLIVT6WvU44ktvlxtkGOYfv4ZBfnghQih DH4I7XE6NQlaFzG9tSAQqY4e8kRdjrWWGIhlJSgpsCQlLAPQwVPSX9ae/uLujl88C+T8 pBnn2IBqNKZE9+tjoRoDDbgIHCWltxLEz6CbCCHfmb7BdHBpNx2AtaYEi7rz6hGMb3xS 3jG+0VLkBvMgQBqjMEJGe7hG0HQtqgCie8fNnIA/aJX+xxEVLEZc0dTyZcegiDxryb/f FVVw== X-Gm-Message-State: ANoB5pnqMutdF+1afoLP63Uzsyf27717cKKkwmmK325OuEq/3hb+V4O+ Rftb2W5GxKpyCUiobaaj1vw= X-Google-Smtp-Source: AA0mqf55rBfwItScperkgvv1mkaGNzu1S3hljfylapqfwpSxGknS33mAccSt+T18G0UKyR1cbafm6A== X-Received: by 2002:a17:906:eb04:b0:7ae:77ef:d048 with SMTP id mb4-20020a170906eb0400b007ae77efd048mr39734435ejb.740.1669890660080; Thu, 01 Dec 2022 02:31:00 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id g1-20020a17090604c100b007c07b23a79bsm1592400eja.213.2022.12.01.02.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 02:30:59 -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 v5 4/7] arm64: dts: Add DT node for the VIPNano-QI on the A311D Date: Thu, 1 Dec 2022 11:30:20 +0100 Message-Id: <20221201103026.53234-5-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201103026.53234-1-tomeu.vizoso@collabora.com> References: <20221201103026.53234-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_023102_343513_451BD392 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. 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 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