From patchwork Mon Nov 28 11:17:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13057309 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 BA1F5C4167D for ; Mon, 28 Nov 2022 11:19:10 +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=O+RG99MVXWgR61 v8TRfPyqlpMRSJlHdnk06YsSlFxUk2bd08bixbGPC0LX2ZuEVruGloaxF+hPT2k4PkyDUfq7MO0iv E0gJvzmthXt/aUDXOar/U0hRmMdV3wil7JFepyOmK9ceF2JDZbd+erJcosXeH+HsQ36A7Jn5syAdG 8q74wfOBaPqsQ05mD4GEb40cDN9yfZCHTQ6FWHbo6kqPnq96JptyOm+S412oYhAngRj1V6+3wyOJ/ vo430eZo6+xT98yNW/1mbuzNmectmqqJ7SakWxG2UZiulivNJ53Fh8uS5CIYG9pRPuCcu+xAs+PI6 pNLDFC5HVSyLqiK4lPbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozc9K-001Dve-7j; Mon, 28 Nov 2022 11:18:10 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozc99-001Dqk-Ma; Mon, 28 Nov 2022 11:18:00 +0000 Received: by mail-wr1-x434.google.com with SMTP id w15so3023022wrl.9; Mon, 28 Nov 2022 03:17:58 -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=QXR5F2bJ8Eij2/5WO+e0aTm0WPGRA2YwX4pj8OMlGSj1xkxltGn2jsplziGfPxjogU D3cACs1p3GlJvns3uMBvZVN5x+JhUhd4b7pEFWzUlivL9Q6qvt4+G212dn0Bne2zrLiB awdE2i32jCmPKobSrFTtq0qtiRCIbS6gTPD9P1M5+9pWnkB94LFfUdKlZ+chMfebUFZ2 /gMQR5p2VYliZEAGt69NxjN3MbwUMmprVRwiVXPXQrP1b6ds01DOCt5p/dGWw9rgJV20 O/gdns2/4UjKlmGyj+K6uIt/szHAlmFfZtvjfAq/oqWEqJJ8vQYzJLrQYifb69jIUkRu HhOw== 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=5I1AQoZqDavPzTgOaHYslPzPiBH3dSo3CPprUoshtgEL4dlqzvk8zv4NcpMB1D8Pnb 2g1aHtc8EC4qoJmuriK0hon4mXTrQgn6goFEJkc2LjJoWWCp0MWQSLDuXKVIe2RD0Yej b6sQ7jcoegLAeSbf4CMzB4eI2g1GE3g99m1TzbfYNfyg1bvlmHG5LeQY2k3NthJMIYNv x/eqJ/jnnN9/3P4HdEiW3Fxwc/mUenZLRSovsnQI6s+j5ZJO4ZAM8MaBoPI4NvrBYKis SsnCn0MoCK76U0KIqJr9paKUa0Nyki9lAMMOImDMG02Xwl1INnPrTsZJO//Hh3iikBnc xuEg== X-Gm-Message-State: ANoB5pknyoviPcC6v6xLG43iqdIJsgbjXwTUAaJOnsQtdp3vKTDcjOC+ 3XV7YCNd+QACymevQ7cX5HQ= X-Google-Smtp-Source: AA0mqf4DvNm+mFTnoF3Ww3qLbB0khH/Om/MssTeWDr1wrlRac9GiI4sPTsNPfa9NwQFIzeBjPpF4zQ== X-Received: by 2002:a05:6000:1a41:b0:236:f365:b778 with SMTP id t1-20020a0560001a4100b00236f365b778mr31551672wry.515.1669634277506; Mon, 28 Nov 2022 03:17: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 g3-20020adffc83000000b0024207ed4ce0sm7711817wrr.58.2022.11.28.03.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 03:17:57 -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 v2 1/5] dt-bindings: reset: meson-g12a: Add missing NNA reset Date: Mon, 28 Nov 2022 12:17:34 +0100 Message-Id: <20221128111740.39003-2-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221128111740.39003-1-tomeu.vizoso@collabora.com> References: <20221128111740.39003-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-20221128_031759_751311_21B3949D X-CRM114-Status: GOOD ( 10.20 ) 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 --- 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 Mon Nov 28 11:17:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13057310 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 63C7BC43217 for ; Mon, 28 Nov 2022 11:19:15 +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=n/wtEIx7v0hG3z2SjPCtcUaufu3f2cpru0d915BhCnc=; b=m1/SLq528qX7dZ GYvnUbzjZLyvbTnsQEOIen7vAcuB/OJ2Ol+84Te3TQpVuskrns7dqDZI/l5gYYWdHGb4EUyJ0qwX7 UGICdGNFcT5ViTiIpCdkCpNLTP3/q33CSEpB5BfbyXlaOsENm16Jq4C5szImZThPWC8KQPxFB4vPB pGdf8ruLdViznE7IuHCLDf73573tHFukrillHUgO1SU8b39Aog49PqNo1F2klZDMOdaZzM3WZnPO9 2s7jZF1Iq3b+8FnizS2E3Ta4akMK5EMqzV6R4fYuhI0e6LwOR5nQhBj/m4TwZqg+wPsQ+qopRaj3Q ArJNl88hHu1huSClh0JQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozc9T-001Dzy-Ia; Mon, 28 Nov 2022 11:18:19 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozc9C-001Drl-1D; Mon, 28 Nov 2022 11:18:03 +0000 Received: by mail-wr1-x436.google.com with SMTP id d1so16236321wrs.12; Mon, 28 Nov 2022 03:18: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=6UPpIU6lTdK7INRlRgvRZ2pUB9CB4XOUu+P4PTYKdZI=; b=ipUjo8xR+7idcDTsImEjZah0QvWL0uQk2xlkUjMYuynXjZ0QvObzZOiVoCYlojnlSS XbBb3P2jIfFbLscrZHUQ5i9dvgF1Pt8hi1sIdHeOsVUVn43UsQDntPld5dYgu7uKjNMY D3PopNhhi6U9MWYE48WVHHTmEUfVD/4mugGEQccnpRTA56O3m/LPyg8esFmeggk7NIa9 T4PKRmEg1ftNX1D920C+4r9xOWNpZyJsBb9FhELekVN45K3uSSradstyupQT3ncH8lCa 8q6oIG41cJiW2EprBP7vO3gopJJ43YB0Q1HJqt2U4kfI0ChF2WUzsK2DhGs5C5ixnl6N FzkQ== 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=6UPpIU6lTdK7INRlRgvRZ2pUB9CB4XOUu+P4PTYKdZI=; b=iHhwxXCBEC5P0W+R+1i0R3o9zgffJCkUweTa4bCvT/1iuarUnczUp3t1HJTE7zgi/C JLbyi8jtYHGhYjFUuoXRfctkrCoOoyilypAdhz8KZgKNH6G16WF5T4iPvXo5iDUkqm+g 2NfyXthLDO5fb8fGeKxfwMh0g/e6jxm9qwjhH2TG9n/Jn3VTg4qVtoMP/vV3MgUqJiyZ rjuF0PNUPoWtN/TmrELpmrrWVc6okkvZKsubmt8i/s0PXqVYqn0EcKsN4WGOSf2J+02K eTKwW7uveqaSelI6pZTGY1OzNvbgsHJNzL0xYVdOf2BDqzJ0xY5uA/jvHG2Mc11pYrqF nYuQ== X-Gm-Message-State: ANoB5pnFk+1nFHnnFK/6uOi5WaCYcfZR9qpsE7FcGZ7lQ4FwuTSL6Elz liqcg5TJKt5xAQHDo6xvFoI= X-Google-Smtp-Source: AA0mqf5whm/4QpVrKDo6y/72I01fykgiBFGzZqcNUSNcXLDufdCn5sruz5OJk0RXKqeNqz5JXViIlw== X-Received: by 2002:adf:ed8e:0:b0:241:d7ce:4395 with SMTP id c14-20020adfed8e000000b00241d7ce4395mr22369951wro.553.1669634280306; Mon, 28 Nov 2022 03:18: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 g3-20020adffc83000000b0024207ed4ce0sm7711817wrr.58.2022.11.28.03.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 03:17: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 v2 2/5] dt-bindings: power: Add NNA power domain Date: Mon, 28 Nov 2022 12:17:35 +0100 Message-Id: <20221128111740.39003-3-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221128111740.39003-1-tomeu.vizoso@collabora.com> References: <20221128111740.39003-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-20221128_031802_109220_43557512 X-CRM114-Status: UNSURE ( 7.68 ) 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 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 Mon Nov 28 11:17:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13057311 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 37F4FC43217 for ; Mon, 28 Nov 2022 11:19:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: 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=bDEUMgJLnNLdoe RXBODDF1h6JoH3x7Zhn08nRzahwe1VMAzumndnj0Mrb/VV9pXswy9oECNqHfv2HNzhEJ7yhgxFr5x g7qrQqP7g1woIovjcines2PEbMTaajD9W07gfDppST7riGwnHi3ZOshNfW1RVelvPwTqe/c7NBGrX RJdnbZ4RQ12LKoKapctCM0ZsgX7geYOwHmo0QTGTVoiRlrZBceBW4pXJMlTQKw30sRV8hRIlYF8S9 74ahKD3kEe9P2q6akUJBqKuhMRt1whSSZAHknrqeqKRNV1YTjiL7d73kJgMWEMDfywAyFgYkKWg5w Fc0ut1oIBm14Dyv+5PUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozc9e-001E7Z-Rz; Mon, 28 Nov 2022 11:18:31 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozc9D-001DsY-Ba; Mon, 28 Nov 2022 11:18:04 +0000 Received: by mail-wr1-x434.google.com with SMTP id b12so16259600wrn.2; Mon, 28 Nov 2022 03:18: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=Cw/am3froU3IMTWG9BB3ZSyfplgImMW6lCXqrhZP2N0=; b=e8gELn8IgLw4c7pgk25h5/TtTBA2qpEO4v7J4nDEkbxG4f4qJQCppwKHsdxv7jQxTT oYRhB8ieddTEJdMy5kKerOReXDZew/TVw+cxZM0t09EACpwHJWwYcP/cYk/N5G5qgzQr wXqyYIIE5Ty0i9N8Ia3p9e2uTXykzwb4psd257FT8ky2k3h4TN7FvioOs/TxN3LMBpC0 uMYzTl7Ob02h/SFQJxMpeoXfKP+qFJgn+lzJnWzaAtEzoHAC4Xq+1bYU5FJnZ7KniQyV YAZKK1/vizqL4so3adpeGhBRLbMuMvyUuzSf1Z2sNX8/Q9uA+WfJB6LYH+DsKM/Scfx4 NjOg== 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=oDI6RhNPr8CSo42XSa1TxaFdMhMdN7ioR3rLBPYsfQt3UpLIONyPRhsAatPhTAyD0k S5YjuF8BEsUNItT7qHF4ubsR5eI1XVklnUeuJMDYsjUETlqHWl5Z0l+gxtEpFfMWDCs/ N2RimINwxyIh+wtNohlvZxgicswO0KwisPdTfQjikX0kzYA59DAkhZaa95DVjseCAfAp v+Epd5+K6ZUzv3YYc3EM/wIIH7uIwP/zcAuI764u2DZ+tgNGMPxwNWzw3thkywfgL5uw be2F2tLKoPReVIYJuXfack8LSXnOgNTebDQephFZ+7gI2TmBhCDiC+3qpM/Yl+gw6qP9 yk/w== X-Gm-Message-State: ANoB5plpD0y27uYGUfWLUBbJD8BJY1I3QXVoQqCWlZ0KdWCoUN0xL0T9 N4X3HFKM5r6oeWdDeF4/+x8= X-Google-Smtp-Source: AA0mqf7FlFtIDKPTjGZuk8Oe01rtn29LvDSRj8mFz6LD40ZubOZeqIPs8zVhbu1uqPDi5exDxM72gg== X-Received: by 2002:a05:6000:883:b0:22c:d6c7:562 with SMTP id ca3-20020a056000088300b0022cd6c70562mr21365842wrb.8.1669634282187; Mon, 28 Nov 2022 03:18:02 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id g3-20020adffc83000000b0024207ed4ce0sm7711817wrr.58.2022.11.28.03.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 03:18:01 -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 v2 3/5] soc: amlogic: meson-pwrc: Add NNA power domain for A311D Date: Mon, 28 Nov 2022 12:17:36 +0100 Message-Id: <20221128111740.39003-4-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221128111740.39003-1-tomeu.vizoso@collabora.com> References: <20221128111740.39003-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-20221128_031803_421729_DB46F2DA X-CRM114-Status: UNSURE ( 9.85 ) 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 --- 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 Mon Nov 28 11:17:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13057312 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 34F10C433FE for ; Mon, 28 Nov 2022 11:19:48 +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=YynaWVSuR1uJ9xL85CT6kDJx+eKuZVqLnEinbt60b3c=; b=N4XqXtCKibu0Gs I/A8B625pwxGlNB8nMGfr0N4y1gMtzQYz4Ji401pV//5jLWniNWiv3U2Tow2B6rTphrKoBwP8hLHB m1xCzf3ix9B4CuAaQaqCrW8uf1l7rWWKfYOXWEWeJfUpUB39KfQ0I9DXjDl/fxwQ6KuoXL9vjOil6 TYcAQi3hIl63iUY339ZOvlfPhtyBLBceo5TiUmG3SYT4uCYSElikj0fPLAOu5NO6lgUx1+kSy3xlR TDbOamX3L9/0dXlZ6FyRGZE2LSN2CHxs2hb1l3x0bL5rVGN3Do+i1vVyOslHV9oSAAwfXjUna49uy /gQrS/4fSipJO5keCyNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozc9v-001EGu-NP; Mon, 28 Nov 2022 11:18:47 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozc9F-001DtI-II; Mon, 28 Nov 2022 11:18:06 +0000 Received: by mail-wr1-x42b.google.com with SMTP id z4so16259644wrr.3; Mon, 28 Nov 2022 03:18: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=MZ/yfW2uv4L2OBEMjogEawvHGxQ+pctbkljRiIAmmkE=; b=hGj6yWExeA6aOxOP28/1HTpYw/34JrQ7Esvqizyi96Ucx4ABRX8kMiUxEHL9qfsiE0 PqAAPfTyE97mJzH7BnkNxb3dOEga0uSP6vmgicBtIKcXdG99+CaH6p+PH9l+ZDP1e+WW bvWsY2p6m6fkKh3/oi+1jwK7HQfx8vQmNaC6gKZjnzqvXx+H47P+7SPY3H4dzQ+Hp74W Maf4pZjT7qBSotYev3Ay7J2G570YJp1d3WrXwJaswh4oY7DqJTL4fmuUpeP8Bub2rO05 5wZiV+82TgrY+Hlq8t5ZQkzqjc34D8BEbJspYKcRy3D3zE9ySXLJoPo7D3c2r6K+cdZp qoOA== 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=MZ/yfW2uv4L2OBEMjogEawvHGxQ+pctbkljRiIAmmkE=; b=b/qhTos5UYYse8hJYrn5DwdGgU2BxTHhuokwBHGlhCW0S/roorD8d3/eylgrvxqwZi e8p3+1tIeSqXgP6wCjv6k4t7edhiSyDteHOcZ0e4LJQns0jdkmoI0cs0Nxu2uzpZUiXu tE0GwydxHt1xbG5MpFHyvntLPmUeaHBlajJAD5R2qoeJt4871hdDmbhDA56CBadEh1f/ 3t51w+DrctfDxCri7eWmWHIL9re554pjWWXYNpEbU2cVyeP0nNIzpk/Ssg+L+xclsIiS Ftc0WSCf8zP2NWHGxMLkFDqbMgOMEyVQGDFLioRBHXoNvB0WbBy5KLg7TDwiDUghuuAI OvGw== X-Gm-Message-State: ANoB5pmEIB6i6ZdWaSR/PQjr8oOoBOv6dh1KzXTSJ9ya3GqUmrCzw48h 7mWlJveq6rx3l2hQEkSG5Uw= X-Google-Smtp-Source: AA0mqf6SjstKcXwXEz6uOwVDgqeAXY8Z2rREjLqZqBUwe7/hkRY+JXxFuZitbclFTEy6qjt90aucIA== X-Received: by 2002:adf:a1c8:0:b0:236:72f1:f124 with SMTP id v8-20020adfa1c8000000b0023672f1f124mr30428869wrv.161.1669634283786; Mon, 28 Nov 2022 03:18: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 g3-20020adffc83000000b0024207ed4ce0sm7711817wrr.58.2022.11.28.03.18.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 03:18:03 -0800 (PST) From: Tomeu Vizoso To: Cc: italonicola@collabora.com, Tomeu Vizoso , Rob Herring , Krzysztof Kozlowski , Neil Armstrong , 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 v2 4/5] arm64: dts: Add DT node for the VIPNano-QI on the A311D Date: Mon, 28 Nov 2022 12:17:37 +0100 Message-Id: <20221128111740.39003-5-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221128111740.39003-1-tomeu.vizoso@collabora.com> References: <20221128111740.39003-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-20221128_031805_628099_81EE1B7F X-CRM114-Status: GOOD ( 10.16 ) 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) 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..aaa629816e41 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