From patchwork Tue Nov 29 08:50:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13058341 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 3C95CC4167B for ; Tue, 29 Nov 2022 08:52:02 +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=JoAQGSQCj2kxqo Q6AgVgIVdeQC5iPKeDqOYBpi+FU8kwwkZ1wAMgbVVikxJJw1Ubg/OAHksGyLDnwyw/BmSJhGM+Jmi XX+0JmCcgS27EfSqRT4EXnHLWp2IeXstQemaxlxz3a73YO77cftWzFyo3haVaxkcHKgnrK+hBeWIJ sKMBxqHKvz4TJjZq9075lHgXCm6seOWQGg0m723MHnB0ePsg/5iHuEqN997EUM0QS9ZnvjthayqjX 18W0Rwl3ER9Qmvwsh/6GoPGDzfm9GPA/PsPb+NY1/ySSad5giGG5ZulqIlv2IS+OXOMCLcJe1deiS 1+oni7SYncIrTo3sAgTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozwLG-007Xy2-RL; Tue, 29 Nov 2022 08:51:50 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozwKi-007Xhp-5u; Tue, 29 Nov 2022 08:51:17 +0000 Received: by mail-ed1-x529.google.com with SMTP id z20so18784968edc.13; Tue, 29 Nov 2022 00:51:13 -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=OZ0nm34nOouWCtBLY5YQkfcXs5+gKWizxqRw4mpYirXfqgwxJKt8opypNNrkdrw8kE huRl4/2p57YfjPf+jIM9y6hfA9SAHXcBmUuf74fm30MwJ57+R+Prx9Gm3+xRPSLP7fdt DWJPCSW6DmbRLCiUrZ12qXYoyeILY/IkZm1rxzRKX2+KaoMxYseos1KGxMfU2odKqmy6 Kn2GhZs3dvjc6THp2I27gHqgVxI7Hq/P0RRxBJNpKYSvuord2DiCNUVYwUJ1pGKmmwYN tVTlTeAhVLDlbHgt9Y86FIiGccMsQ6RcLYfeMoyQL9H1qttiH7srDmsU9pcJgJH+KjGR UJHg== 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=XutMwLZBpUJf2uPl7+vpkPz0oOFEextnvYtAUW6OyVRsgVEjSLqElEg6IgEo9w2Yo8 5x9cMu4JBKz0mOoRzl8SYMndnfQHgQh//JHI35ewGRrv5De9MCVRaIU1iVWRTJ4wZ7mg o4rU/ves5TrpiTRyV/Ah+ZscdnF6A5PW6c/793wp5Fmkikp4yJxfs2TpF1Aq0bfFIH0X ifF64P3yEcvwzWddJ63nYExYs+qpOqKab3wr5NVclRb5ePLj8pVUlCUdMttH1FeoYKOn wPmK8gYnsRagS8IuVsxfKOdP5qcvpPj/aClCQVad7re/oXm7dN5ySM5+edNh5vpC5fKR npyg== X-Gm-Message-State: ANoB5pmQWQNA/gD84mClBgCDUq/fGzPAtQRYzHejX/+kND/+uE1KC5mW YH3PDfsmueUryNMfpP3MsHI= X-Google-Smtp-Source: AA0mqf6zBSi++3r4XX3e4bljQj59DYt7fFuQPepG/7qRf1barG5tfUFiR49fDNl2+4m2ca5nK8AiIw== X-Received: by 2002:a50:fc10:0:b0:464:2afe:ae18 with SMTP id i16-20020a50fc10000000b004642afeae18mr52242994edr.183.1669711872698; Tue, 29 Nov 2022 00:51:12 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id kz1-20020a17090777c100b0078de26f66b9sm5873219ejc.114.2022.11.29.00.51.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 00:51:12 -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 v3 1/5] dt-bindings: reset: meson-g12a: Add missing NNA reset Date: Tue, 29 Nov 2022 09:50:41 +0100 Message-Id: <20221129085047.49813-2-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221129085047.49813-1-tomeu.vizoso@collabora.com> References: <20221129085047.49813-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-20221129_005116_235603_D145E2FA X-CRM114-Status: GOOD ( 10.80 ) 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 Acked-by: Philipp Zabel --- 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 Tue Nov 29 08:50:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13058349 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 1BF92C46467 for ; Tue, 29 Nov 2022 08:52: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: 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=mUjfxofqwHmVqe XSG1WLM7UJotVxVvxeHC4HGMygVoofpYqUDVEAtqbgUKt+Q3nsGcptgq3U2hw6XZG9XOlsg0JnEr3 q18y9X9AKRKL2w8RBJECTMaBC6j/b/RXeXcGxjaid9SA9xTCXmmBQ/UrzRJ3GQC++Jts8jL4Wmsf8 /Op0ZinmPbYQ5H57yX62CMuQuo4vgNxQpJn1qjCz8s0+NEUhmRCpnw8qh5V+cn1rBuoJQjEvo5PLc +ufuyPaQmazptznqHbbgal963RbhEVdqSgA40GTWUwuauh4/nNLdaL9fWGid48pSaqVA+J905iHq0 rxHtMq3BKMTKH6u6PzGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozwLt-007YDU-7P; Tue, 29 Nov 2022 08:52:29 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozwKl-007Xj1-03; Tue, 29 Nov 2022 08:51:20 +0000 Received: by mail-ej1-x62f.google.com with SMTP id vv4so32074130ejc.2; Tue, 29 Nov 2022 00:51:16 -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=m5uCgXks2HvW5R/x6dE35mrXeuAHQ3cr7K5plc0T2J/N4Mquzkf5TDcI83kXewzzRm DMStLtEeRJtLpRPDN9ycQ/djzbNYE4IeGwTeYzoRPXoHxCAshDduI2e//fvw3xlzBRBe aiVSPeHLte/Z/tYGosRqjQFmY9XGgRJY3Cdoe3gtqQBte9EcKJNPuXvFGobaesY1CItP wHpwPERqM6TNBYIYtX7Qwp/X10/4NPSkzOyXA/MJefaQouAHeM/nGcrLtgNZysRZREsr 0HzAML7IUOKEJb7DM77mqFa6Kadv2Am2zVV9ZKaP9JbdwjiCGjeqv64ZHE3bJxTO34Ye jInA== 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=FSch+hUCDrcle+prQjiBsKRtyfgLYghpkxmccoY2496j6c2+GwUM4NKWenHVulI/to rGiifEN4CcS9MicE5uDh3lodztFBlLjkbL292rBvXQXHbJWdWqf1ymKWvGUzCHC37ZTt UZxWgtnEAg/N66Nt6u8Spq7aq0DUXIRVN0EMkWQcTy+IWSZZd4u4h4fSdE2fmVRUZc7M dXQLZ1JtTSjLBSlib2bz9192YzuOE8nkYn58CaBHUeTLFVgwuVcqx/QuOPKbhXqHC88v Kw/XJTyuG6Hwg3yC7lS+MPrtVOUGY0jpJhJ6YNW9ZJt14rq5d2I+30Clblua7Iq08GQ7 ep5A== X-Gm-Message-State: ANoB5pmzPwvMRnkq42wM1BQsnFwp7lgpljKR1XJHu4wxJaP52ufEbzpp 0JEuJLvRk41uPhf4jqP8nB8= X-Google-Smtp-Source: AA0mqf4J/t4QZ6BLzbajN+wa5uDqJj33v1lQ2C5Hl8cQB2CTaAZVIab41wT63RWTwZ6RPm1AQvFETQ== X-Received: by 2002:a17:906:a58:b0:7ad:b45c:dbca with SMTP id x24-20020a1709060a5800b007adb45cdbcamr36204325ejf.388.1669711875344; Tue, 29 Nov 2022 00:51:15 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id kz1-20020a17090777c100b0078de26f66b9sm5873219ejc.114.2022.11.29.00.51.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 00:51:14 -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 v3 2/5] dt-bindings: power: Add G12A NNA power domain Date: Tue, 29 Nov 2022 09:50:42 +0100 Message-Id: <20221129085047.49813-3-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221129085047.49813-1-tomeu.vizoso@collabora.com> References: <20221129085047.49813-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-20221129_005119_087599_70603E09 X-CRM114-Status: UNSURE ( 8.94 ) 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 Tue Nov 29 08:50:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13058348 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 92682C4332F for ; Tue, 29 Nov 2022 08:52:38 +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=uepwi4gXzJwIwg YabzlpP3v+wcF6EaBSAocuI7zmqIykMIF9kNrzvU3QkVSot7Gm2tZVnkf6vZ4coJHY7fhyEPZXj4g 0j7KLfhE6PFeAIqzxd2fgA+NELSjwO27VE9br7V4jOqTOe9IHwEj3C2w2ehktAA8tLHc+fzUiOYFJ zn4oMycjXkUiOn/ABJxGX4Ar6IINx5082EWhWGYawwOLJnGrGYUKSPdpQNXMNWFr6qyP5PPkbZpOy 4jBOcqHo8r4aLPZVdUcvonb0j5dbGkJ6jbj3j96plVc+Map3//fc+CoZ4HNa18fTYkRfneT3epFfY lMWtY8hV+EghFx5jAdtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozwLs-007YDA-N7; Tue, 29 Nov 2022 08:52:28 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozwKk-007Xjs-Vy; Tue, 29 Nov 2022 08:51:20 +0000 Received: by mail-ej1-x62f.google.com with SMTP id ho10so32078522ejc.1; Tue, 29 Nov 2022 00:51:18 -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=MLKh8cdNSHTwMWrctPe//cKfk2YeweD6IiOtOpNFWPtWaa3dGYSXQ26Iyy0Mvi06pd yMSzWB1UEZcPHAAwX1WWMDmhwQqDEqGG1nBUTIwI9V4U+Y+g8Y6DoWVC1HuTWRBvKfKe cxIemB5+vH6Zix9m8MwyiBZwMe0ZFGD/RQgbcc6gx0C5xzmmeavCh9ZQ7vDd2MjEQtbX +Dc2KlMUGvNvZLsPSwvSucKRtJTcD5bZMC39GPz74J6AZfG/LcQZxDENPNRDQUR1FCeL SOuDLtFty5plgee61eo1Y6vuKjgz1dsYpOrju8g/sKPkEhiA+p19wuIF6LzBAsW2qY2T iuSg== 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=v+rThPfVrW7FqYsemdGWJuRrTushXjgY9c6lFPqV4864ZDqxjrXlmyQcNuVTmz+ns/ kECEfFaPJagQzrlB2A9FbRX9yYIBRw7nXx3WLvNF5V6i2WmY9tTO4cvgDWnZZUCKgpGA CbjMLq5Fd5ld0/Ylcaj0Z+IeX3oO+wEa85ZfUFX/GdGmYRvmVddIkJbkgfokaZekMtr8 YxQVevO2+eIYAyWUkN1kqbkiy1pDhxciFzOXXqJpaYrPqTnhIStcdmtq23tuS55CYzg2 b92BMXQJQNhNoZx5neEqArGQGKtMTgCPzpq23ORJlL2cUbugleUVln7rXLiywmb9sUSp FdxQ== X-Gm-Message-State: ANoB5pmTnZYV17WTH/HOUVfFu6QNMtl5jUkXqHB3cTieqKoPfssyOE8g rdBWKLGlCnmcgM5LqEgP2iU= X-Google-Smtp-Source: AA0mqf6Up2siIcQWYStjGjAfESej3aO3xQCrXX+nSu+RfXB3dccz+c6R1c389wG2ryi43AZZ0MqZDQ== X-Received: by 2002:a17:906:9c8a:b0:7bf:6698:d444 with SMTP id fj10-20020a1709069c8a00b007bf6698d444mr8732658ejc.548.1669711876881; Tue, 29 Nov 2022 00:51:16 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id kz1-20020a17090777c100b0078de26f66b9sm5873219ejc.114.2022.11.29.00.51.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 00:51:16 -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 v3 3/5] soc: amlogic: meson-pwrc: Add NNA power domain for A311D Date: Tue, 29 Nov 2022 09:50:43 +0100 Message-Id: <20221129085047.49813-4-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221129085047.49813-1-tomeu.vizoso@collabora.com> References: <20221129085047.49813-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-20221129_005119_064777_583A32DB X-CRM114-Status: GOOD ( 10.46 ) 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 Tue Nov 29 08:50:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13058350 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 51268C4332F for ; Tue, 29 Nov 2022 08:53:04 +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=pHtCHkVbythj4G rG25+U6D9+iziROGAD/QyTaR9+41Rbcaf6Vp5sK7+7ZahQ6LEL93ko0w6y86lN3trL1x3bGWycy+s 5ARz7w0Lx9yhO6DumkCDVupl8ZKwQ3ip5j1DpW2w3ZjMimNAi2qLmLcM17SII3R20HON2Yt4QH6zn wPhv7VrDqTX5nUe/6XbIwVVnYbKCq0kd0+hQjmHyWoa1VJX02VziwmwuIk5Qj/HHJhge2Z1zvIlRV OsX3h2C6VcKTR5pxU6ehYPMA5Pf5N2ezU+D1zAKv7fibFXEreFGMKfLylPvALUib4yuzsliYkkIQ8 tlUn0mqsm3PQirXwIhug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozwMH-007YQm-3j; Tue, 29 Nov 2022 08:52:53 +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 1ozwKo-007Xka-0G; Tue, 29 Nov 2022 08:51:23 +0000 Received: by mail-ej1-x62d.google.com with SMTP id gu23so13842628ejb.10; Tue, 29 Nov 2022 00:51:19 -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=nhKapcQ66LsxA85JQdzV2oZbWTII+lECh4PRQcH4mDiqEm4ojDHv7H95e1Yu9UhPbu qgXFEJe5IBj9/8AlpNKHmA92xYsyC4SZqZLvK6OLaPMuyeq4lmmUx9S6AraqRskOLIc0 sqDRTVS1XH6eQTpbbz2NXSWwHn2MgMncpfuDlJlmwa1XYivMD6NL9zGnWYa6ijPckc7c c2mkdLJpg7sVYVQgFSS+T86beZvtahhhakiO/RCC/l6JEGECGPLz+RSYnW7Oegj286j8 zPENNFHaBXDfvD0DIMp2vnBNikzzZAbi0CqXctM2F2ra4pGsxVa61JCC589gAilD2WC6 ju6w== 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=deq/afvqaKLavGoEc3RZYTpLdjq5Yybg4/456jOw/iaxQxcdD8gKAKLZAFDHWaLt+E CURR2vixs5q+cIyATckCjDzCU/4gIVCREZ4Kwvi5WvJvPDbJMYn3EbGY1Y98VPqtf9bA qlG8Zpd61TtjWcKdJhmpiGrD+qck3oNl2eoD+N5HGwH9+gOYWD8Yz8af0K7PUELlA1i/ QR03kF1zINlvbE5rqb++CPsFnNSELHqUZj+4NWfozC3611ddI8pM0aT/ZnIIbityFDcq zlC1gD/hB1b7ni7QY1pXpu5SH/yf5PHfh420uhmJOewjTyS3DPyOSaEtHr5Tzt63N+KZ kLGA== X-Gm-Message-State: ANoB5pk3HxwnMfw6PeaWRY8fEP6wASXCqZf2oIlK0j4zgN3RONtpf8f0 LA196BlzaO/g1Q9G+8U/L14= X-Google-Smtp-Source: AA0mqf6g0V291RCuJE/6a7lckAJbDgRfo/msdIC8flyucHI+AJKI3XL0ggAyX2RdNHUyh2wH0hgteQ== X-Received: by 2002:a17:906:ca18:b0:781:c97c:84d1 with SMTP id jt24-20020a170906ca1800b00781c97c84d1mr46678807ejb.147.1669711878319; Tue, 29 Nov 2022 00:51:18 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id kz1-20020a17090777c100b0078de26f66b9sm5873219ejc.114.2022.11.29.00.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 00:51:17 -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 v3 4/5] arm64: dts: Add DT node for the VIPNano-QI on the A311D Date: Tue, 29 Nov 2022 09:50:44 +0100 Message-Id: <20221129085047.49813-5-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221129085047.49813-1-tomeu.vizoso@collabora.com> References: <20221129085047.49813-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-20221129_005122_107493_5DA30D11 X-CRM114-Status: GOOD ( 10.39 ) 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