From patchwork Fri Nov 25 11:19:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13055760 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 096B1C4332F for ; Fri, 25 Nov 2022 11:20:20 +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=jqvTToFQUcKkQCUVvz/CGJcJjHu/49p1UI/+N11Xoso=; b=AN+qZfjsbxOj3Z 4qWjdyXFQJVx5HHse+t6UDL4QTdvd6Vlp0XINPJgfyOmJ8S/Zfr6t5gPbSlZ51F8XYSgMUWWR0jtf f2N0Dgp8nT+GJmFuCnKSAhqDGVZmbNuDdM4fIT6AT428EMVtE/wUpmRduP6g+dD5h7PfpS/w5ZzKt FY7EoHfI53lHZAMYX17VnYuNXDwriRvkFY37WiPHwovoVYRPalI1YCAkyxnXtmNuxiFHAnPUaq8Ms nWtoIQfnVEQpCA+TCnqQe6zqrkiUmOV+s0BPIjQPjNCz2cIPO/w5e/uNUef3pPKRdKVrIBtDaQ8BS 1I23p4CHnRKx7itvPQoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyWkb-00G1mn-Nn; Fri, 25 Nov 2022 11:20:09 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyWk9-00G1U3-SZ; Fri, 25 Nov 2022 11:19:43 +0000 Received: by mail-wm1-x332.google.com with SMTP id c65-20020a1c3544000000b003cfffd00fc0so5970152wma.1; Fri, 25 Nov 2022 03:19:39 -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=F6QrfFFXtNlfuBto8kS1m3+IbzT51Etpw/eL3qE3JO8=; b=lXKAyknG4+JDmB/LJpN2yOCEJBAq3k/M7HDcwVevK57TjYwrpkqQJ5mJNbKZwI0h72 jx1YdOf9zGEa0d5zwA9uOX1+ZvK0+tsQ1ZQ8Uu0SrvYMPMS2q05usD6mcGDWhwSErc6d NRm7+RKqRrV7XpJtoJk+WHIWLaSiW4cNoBYZzSrh0eBPCtsUr4KiMOvU5nyQ8pNEK4im ip1myN22+2jiA/1f2OC9Qp0lvw/ssJuqBuL4OF4TkRibh8ksA0fBl/xkzQ2ZUSCg+Csf u2lLkAQxVv+DHEnGFnobofhfBljK/T+tY1ZYQGSx4AagFggeHGQie/NjrENbigP114Og moFA== 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=F6QrfFFXtNlfuBto8kS1m3+IbzT51Etpw/eL3qE3JO8=; b=2TN64hq9Fjw8mpuSIovsPbTpO6Kimj+RwRQ2G8BcBRwEX4+l2c5GrTf3uSkvxBn1sj eYb8IfsW+P2uTIF87ezo+u7hHW511h1HL2zjErEoQRQdpySJmEot5NQJnwyWz3/jqoVS 4ADdYTxtzcEaU/lTJWpa/rmhFVp65mrtzIj7xslqA64C1ByMtiCpf3+pg1+0v+18kac/ A86Zb/+ceK7j2aUXrdnPMTtht/03XoubusN7T1duVAqd4/4lBjbBAYlylBIsCvuyCZ0l 16HnM3pnFoup/4nL4MqeF6aRBRi/hRy/ELw60gt92axjaMYO/gsnWx2FnRaDMw7vC4nu gl+g== X-Gm-Message-State: ANoB5pmd8xCRO5PjMatutLwHmg51ho4LaQLAGKzdCsi6awBH/hrJW0MW iDLml/OJ8HKyUPH583DmXvc= X-Google-Smtp-Source: AA0mqf7pcrgOzZ/Xdkx5TuOPEIv5rbwc/M6UlPSODP8J5pP43i7O6QNDznC+UoB7Ri6TENZClzZaTA== X-Received: by 2002:a05:600c:511c:b0:3cf:6c05:809e with SMTP id o28-20020a05600c511c00b003cf6c05809emr14530954wms.74.1669375178519; Fri, 25 Nov 2022 03:19:38 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id v11-20020a5d4b0b000000b002368f6b56desm4207406wrq.18.2022.11.25.03.19.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 03:19:38 -0800 (PST) From: Tomeu Vizoso To: Cc: Tomeu Vizoso , Philipp Zabel , 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 1/6] dt-bindings: reset: meson-g12a: Add missing NNA reset Date: Fri, 25 Nov 2022 12:19:14 +0100 Message-Id: <20221125111921.37261-2-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221125111921.37261-1-tomeu.vizoso@collabora.com> References: <20221125111921.37261-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-20221125_031941_943013_610DCF8C X-CRM114-Status: GOOD ( 10.29 ) 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 Fri Nov 25 11:19:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13055761 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 2E582C4332F for ; Fri, 25 Nov 2022 11:20:41 +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=hbaBvkQ5E9rEh0NUHn9+5A1olmsXhKe9lMcLd4EvwfE=; b=QRMqU8TPiGyRpv GGye+0stb52fobHiZONgi3qAfHLChhX+GrAPJCR3dQsOyQL5nWNGQ3YRfSRaE5AI08fZNSIhoVUKk 1TRrSdmzLOoxGDZqNpJfweBvATI4pKYGh8eqRSM5qFvB2vlQZ+o7mT5o2SnTKlfFWpRVRZB3TTtJX hGu3lsux8FniRD0OFd2q/r3OWvKAlhWZdO400mYEt7ytZA9F6cdPx80cwrWVVcYqmYQgiGyUVIB21 SZybMVq0JpMNRvsOp9jn/y41npSoCYvGxvmfdA0l5d1cXofL5F+ISuilTWWx9UVVog5qycF04tPIh jkwnw/LBoIYyPASAxNqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyWkx-00G1wf-Oj; Fri, 25 Nov 2022 11:20:31 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyWkC-00G1W0-MT; Fri, 25 Nov 2022 11:19:45 +0000 Received: by mail-wm1-x32d.google.com with SMTP id i64-20020a1c3b43000000b003d016c21100so5942388wma.3; Fri, 25 Nov 2022 03:19:42 -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=Fl6GRHmDwXTkupYiop0EErlDiZv2DZKUPdgh77pu4+I=; b=bZvwjPkKOEGihx59nh4uidHxJrPCbUvQpYbhLXdUzPswveM4bbAPcx2AfxM0GxV65U gEDxIVX1v9Ahnj1Yxqm35oOORkIy4ObbLnK/GSiTO0PVWoPCbRuMZhvsiiy8kkgofHPm 6WF29o678DSOo0RmjuQRDFhajdlDXOUPVM7AU5JcISGjOEmLQdzbDS3YpboMZg6VV2U2 4kkFW027bQRBKNRpgLK8TCft8ddSP89OssBzRGzXgQX3ay1lAnkuKvIyW6hE/stdHBFs 3hKVB6i25eax2KFRBW7V8RLz4yWrxjqV6UUVUJYKiDb1nV0Vy0REj6EAqGxSWjAH0UMA l/fg== 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=Fl6GRHmDwXTkupYiop0EErlDiZv2DZKUPdgh77pu4+I=; b=tooZ1eLnh8/unL8ppZF2OOJWlVG3xKL/tT4R17hMdtypMUM/yWP1cIa6fNqkaJNwzP xJnQPjUSXnq32Vrrstxw6j2PacKgnwzzFAq82GpmYJrRLIgyKU3F13KEdDxVP5M8ZEBy hp/2YtvPGGHMh7pmFGgm2OI7OjhTmkPt/pbS1jenL/3WE0816PPKAxxiasfDlG1wEYZW XF3Wx7tZQBYgq3FsY+DstqcJUGFvv9d2+U9W4MuTg76xDbdIUn3Z5wyHauSSrhWVsRXW iSsZlXuyrhibtXd/61VKK1UJ4XTh5bXRnqXoZOQjNdcMQV7o8zvG2b+0hSTDvJV533rR VX5A== X-Gm-Message-State: ANoB5pkqHJOBl+BnwZ0gBS1DRBVNk8rc520xixV+Z01WgtlrPBeMLhM9 ArKQ71/NgpBqk+SVCdVuqOo= X-Google-Smtp-Source: AA0mqf6eAtIlDdCwbMKZ0vP7/JzHXc++3weMINUQ93oarLXwbQKfH/KLvspYKAT/dQ+fAFQJlQrQFA== X-Received: by 2002:a05:600c:3b18:b0:3cf:6ab3:49ce with SMTP id m24-20020a05600c3b1800b003cf6ab349cemr27089016wms.137.1669375181147; Fri, 25 Nov 2022 03:19:41 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id v11-20020a5d4b0b000000b002368f6b56desm4207406wrq.18.2022.11.25.03.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 03:19:40 -0800 (PST) From: Tomeu Vizoso To: Cc: 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 2/6] dt-bindings: power: Add NNA power domain Date: Fri, 25 Nov 2022 12:19:15 +0100 Message-Id: <20221125111921.37261-3-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221125111921.37261-1-tomeu.vizoso@collabora.com> References: <20221125111921.37261-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-20221125_031944_770371_119C7C95 X-CRM114-Status: UNSURE ( 7.89 ) 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 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 Fri Nov 25 11:19:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 13055762 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 3F54DC4332F for ; Fri, 25 Nov 2022 11:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: 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=t0WBUi7HpHhu/WAU6FdyvPLQaURNu7F/mXRbh4ebaSw=; b=wO2LeWVgsnf1WG ++d6uDnsvw0z0iEEjQj7qbC54mEA2wQggX7SCilC6yaecQDtogU0iikOdBwu/ozbSrAyvXKnCdrem rFiCK66kY3DSp7Hyujr+3EWYl5VPPMgLtE83HBcWC6SxEF5O/DE7l6bceP/zVs52KqfRQobj4xkNd JjDoG9wr9hPzBrrdK8BVc6Vrsz11LoGMx2T36DcIgQr1I8+VI9bKkhMQmgo/uPzcyXFBuTC42aKox gy4v6mX+u+O2KDrA7per6F65s27Q5UvaZtUMuXLHwQPFVKNOQkNWgvTJbQ6Of1rGqqloGdYcn7waR RARyk5PcqmZsla2XDmRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyWlN-00G28I-FD; Fri, 25 Nov 2022 11:20:57 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyWkD-00G1XN-Sz; Fri, 25 Nov 2022 11:19:47 +0000 Received: by mail-wm1-x330.google.com with SMTP id l39-20020a05600c1d2700b003cf93c8156dso3161052wms.4; Fri, 25 Nov 2022 03:19:43 -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=Q+Dm0WodzoCwPekd8CO1ZcYNi+jBHrS/Ym57B3kSSJQ=; b=Hn6VrYtyjsw/RxM7FIytyKmMTHcmSQdULy25PBy2jG77GEB6p9pcLoZls6GcB4iSPe bHxSw2D+ZnMEAfcAx7rdY3UwL07a57rknUPQ+WwKueTJ5svOG5cIse490VuInvRpKlMC tWgc4Hn8GjcCMiYgrVKFfyAtHTsw4qlpqaZrJCS6KJNpeoSG00b9/gtJx4Mrj30vKI65 0ReOELdEpsnDPt10pUhk6uBkBLbwMGFcDZRhwsebCn7q94J+iAbfLFiwiqwEYC6wMrRO c19Vh4P/VV2/Fc3ZEOw275zHau96+AklK4IEjvDfGW8x/RitxjLhVdoNmm2b7F/ArIcZ Ajvw== 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=Q+Dm0WodzoCwPekd8CO1ZcYNi+jBHrS/Ym57B3kSSJQ=; b=AihtNE/xfWK/4qtprDFyBRHkSK7wZ8BcLlSWbuyNPwob9FCStbhhddpmLGDjhOud9D e5khCgBBJl825KWfeFkKC9rNDkISJq2TCxW+YWP+jNYqrRzRnOmdbIS7E8MAHrxrn+PA I9Gx6kElFuSnYUofzrZRFfw4sLQeTgXs5F2sgmvIrgPf5FiTxTQET1dlXn3Zf1xeP2jh Vp+5MZEbl1DZC8MgKnqbQtO3p6KtqEMI2e6oGp/VmxvH+gX2rWR4DS1vds+PYHsYQW1O /fuKCOi6BexhKtfu9+tiQOlM9EgBMAeDvEm+tIQ9ydC5FdwdubbMx0FbvLnbXiWXLHKx Wnog== X-Gm-Message-State: ANoB5pmxv1vpNPZKdVxPRBEC2ns0bv/uIW+mS5gWUVksWPK1g9St9c0h BMSC3c4t8886lCeOYw48JjM= X-Google-Smtp-Source: AA0mqf55R9KgI/Juvsgb/srUjW0m6KonIuK6lfizlFd8UR4T+C8S7WL+NJSarGHx2qIZYQSTcU9gqw== X-Received: by 2002:a05:600c:3ac7:b0:3cf:75db:c417 with SMTP id d7-20020a05600c3ac700b003cf75dbc417mr18616319wms.109.1669375182380; Fri, 25 Nov 2022 03:19:42 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id v11-20020a5d4b0b000000b002368f6b56desm4207406wrq.18.2022.11.25.03.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 03:19:41 -0800 (PST) From: Tomeu Vizoso To: Cc: 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 3/6] soc: amlogic: meson-pwrc: Add NNA power domain for A311D Date: Fri, 25 Nov 2022 12:19:16 +0100 Message-Id: <20221125111921.37261-4-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221125111921.37261-1-tomeu.vizoso@collabora.com> References: <20221125111921.37261-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-20221125_031945_976857_6EB15FB3 X-CRM114-Status: UNSURE ( 9.70 ) 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..925cfaf50d11 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, 0xffffffff }, + { G12A_HHI_NANOQ_MEM_PD_REG1, 0xffffffff }, +}; + #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 Fri Nov 25 11:19: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: 13055763 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 644BEC4332F for ; Fri, 25 Nov 2022 11:21:25 +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=mH6wet+47MEkggW3djrCvzTEB/ryXmtyLfeJpAeg5x0=; b=3IxfizwllPCs8r pjvY8t3jQyTMtjkmfoleM8Ro+6ep+gBg9RtOjyz9lT7AJeXiujgcpWP+vBvz6v8uY948iit3zGRAe jEeErWrFKXE/koUPxtPaTw7zs1X+7Pe3+UlT9cgtF6a1Hzv2qan1gCG32QPKHYG0cXPmuwaCnx37x 5z+Hply3CCiSwBysHCrTy+sccDHkwEZeb/gbG+baVoliXEBqdCSLAFz8FIJm8CilU9QZiSPgWYaDo ynZpnxrRLHxxcAZxA0ZciaQn82KFCxDzpuiboWw7Zf4Mr5/YJR1s6eAFfiYDTHRtuIaxijVj1J8oL ppoipNJmFpo1ZEK19d3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyWlf-00G2Hq-In; Fri, 25 Nov 2022 11:21:15 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyWkF-00G1Yp-N0; Fri, 25 Nov 2022 11:19:49 +0000 Received: by mail-wr1-x42f.google.com with SMTP id v1so6251942wrt.11; Fri, 25 Nov 2022 03:19:45 -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=H4DbuMCnCKfZ/X33NVzzgb/ifknYJFeQAyg/fDbKILM=; b=MJTopbFMxXVgGa3ngdb1kcHRAh4vMZ7fbyu1UeoKxPOAleRmO4pX76dgm81YUUB17L F8E/IUYa937tek8muSzdgfgLC+gchdb/UUJ1fizl22ErU4DeH9Qomk838IG7xCMgCTXn noBYTatzIC89Wa0fx7WmDnBuvOVY2w01/ynG1veOgO2OsK/JRwkBhq57e4umTHkyEXQ+ QHdpiG60Cl11EtDF5+aqQPkZavx1VKTJqzKjWsOmnVKUoPlOtrmmE6M/yMtl06qb3mpL I3UJeAxD5tVLP7ktD1CevI9ga+4W640YEFsV3HXPg3XPbez2c1fp7B6jH6+USJQp9S0+ ZW5g== 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=H4DbuMCnCKfZ/X33NVzzgb/ifknYJFeQAyg/fDbKILM=; b=2wsHttf9VlOjQJtMklm30D393Z89orjjvtn0ET34cg5fd0qsZW5aII9SL6Aj6zuiiM gJxsb+NbhQ19No0VlXrH/C6dV69CbHjfYhZLWFewNeERfdO84dekLvKCuwH1skPwJ0tR w+hFjdrjhyVKJUmpSfdYPkZ8SKGa7ld0RR6sE10sSltaJ0/Yhz7KEOIcH2eAMOWEJwAl 9OZz9SZraOxaxb85ovfomlECq+Ttmr9E8R1du0ZlZNkVzYhfJnXx78oBw5C7QGGC5a0E cw8ZMVKNHfiYjoz0oErOjYiraq+cBZm/8kG0+qfGhjW/4RUM94fOpTft2L/2fykBgn6m sTtg== X-Gm-Message-State: ANoB5pmGfOwEBU+zzsJ94ghIvzhymKTmA8QP8BLggwR6ipuXIR0BJt71 pJM2d9ZUZsSl7L1MIDiDzaOn8oU1wyc= X-Google-Smtp-Source: AA0mqf7R0O/iMKw+/pY3QRSPGLMqpoZMk6Y+6iqjJv+P2qnYsq8Eff8A9TxL5wfpOu5YfjJ8gs1hYw== X-Received: by 2002:a5d:6dcf:0:b0:236:78b7:87c9 with SMTP id d15-20020a5d6dcf000000b0023678b787c9mr22664039wrz.556.1669375184088; Fri, 25 Nov 2022 03:19:44 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id v11-20020a5d4b0b000000b002368f6b56desm4207406wrq.18.2022.11.25.03.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 03:19:43 -0800 (PST) From: Tomeu Vizoso To: Cc: 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 4/6] arm64: dts: meson-g12-common: Add reference to NNA reset to pwrc Date: Fri, 25 Nov 2022 12:19:17 +0100 Message-Id: <20221125111921.37261-5-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221125111921.37261-1-tomeu.vizoso@collabora.com> References: <20221125111921.37261-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-20221125_031947_814304_987FB444 X-CRM114-Status: UNSURE ( 9.75 ) 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 the power sequence in the downstream driver. Signed-off-by: Tomeu Vizoso --- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index 45947c1031c4..fa96fddf4633 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -1625,10 +1625,11 @@ pwrc: power-controller { <&reset RESET_VDAC>, <&reset RESET_VDI6>, <&reset RESET_VENCL>, - <&reset RESET_VID_LOCK>; + <&reset RESET_VID_LOCK>, + <&reset RESET_NNA>; reset-names = "viu", "venc", "vcbus", "bt656", "rdma", "venci", "vencp", "vdac", - "vdi6", "vencl", "vid_lock"; + "vdi6", "vencl", "vid_lock", "nna"; clocks = <&clkc CLKID_VPU>, <&clkc CLKID_VAPB>; clock-names = "vpu", "vapb"; From patchwork Fri Nov 25 11:19: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: 13055770 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 1DF95C4332F for ; Fri, 25 Nov 2022 11:22:12 +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=QWLWzyR2wkofkvEVQzWwF8Upkl63IGg53tgwTOzSNLk=; b=s7TEa8MBJdgHRr Z6ExmHp28BcgUyriy4d9ngpU4INkngZBVnX4Ry4jkF2kkHWke41MVtEnEC4vKnT5LkkroycK0PJsf LJnxdWZ1Lq8K74MMEB7EBVyMQSFrXSkqPy9oiLTBpzbXMGmQ7lgxm8k0hJbnI7IydTN/c9EjaokeZ M65pOD40aah7g3fLtnI0OCrYypNIUlZ8g9Ll7jnDhY1S6Gh0tryJ/NqfakxbGlqYBqqe+qnwkndgt YF2FouHU7X2gmHNpOKl1w0BWEdylNGSeFVfI8IuJT8rJtM8Uki2tx+x4gs6p/NtlqLrosyl2wq701 E2zPzc/tRlw4hOQYo9xQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyWmN-00G2f5-OR; Fri, 25 Nov 2022 11:21:59 +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 1oyWkG-00G1ah-Gl; Fri, 25 Nov 2022 11:19:50 +0000 Received: by mail-wr1-x434.google.com with SMTP id q7so5396360wrr.8; Fri, 25 Nov 2022 03:19:46 -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=7PfQ2W7+jfq13mv60YI0ZFUsMp5wOyJ2UsW2Qs+puQY=; b=SbOHS903mNOpnILtR4C6Hka3wbt9VO8ZuT7xkiYlMrLPpfzFTRq/BYRgVS/iJ8W9cy DvWv19s6RhNIRBpVLu8cwh1cDiYGNe6tGXBnRrlNI978OeboQKWWz2bF0fgIZt1W5Stf mE02QjarGeHFH8aLwY/H9J4EzBPZDBgFlSfewGntNzf7EHZodWIE8G+gv6jT6CRvICW5 qzZUtGHrDaMGlqXsNb0o4uS51N5omZkkcQA+ERrSSFeNPd2W1cOSNoXaYJvbwHAbeiv2 yBZ0wZIF86RreFLmbDlM8pU8lL8haqJo1C40g3y4eNxwvHzRn5NTyHXDJSGPG+OP82x0 BQQQ== 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=7PfQ2W7+jfq13mv60YI0ZFUsMp5wOyJ2UsW2Qs+puQY=; b=atY5d/EgKzTP4M/5m71gVMuD8Je3qmcdaivB17/k8JuPBPDApwu2SRJSbUfp3WhOmc IKUkLVOXzjaGPa95vOt9x/jnATNzgNDBkML3cPsDRy5mUZa3a1CnAp8RnF/MvxN95ZpL IUEewtP9F7xM4b/mpsw8UoNozzdsZ4Pbi/vi8/x+o5hhnj7uFjUM5B1oPkzBI7KWhqQG Ep/gsRhiw2IO+91eMuI4aKvey1JhPl3CTvCuMBPffBicIczuC+G360R/enkx6XRqsuAz pAULWzDHYW/QRhtG89Hn0V+/tqsAo+RI9PPCPz+THMGeXCvpXsUlZj9FKSmA85BN4kSb /MEg== X-Gm-Message-State: ANoB5pnewtaBFEpdBrKRmsjrk4p9vyaVTjzRRf2+NTLpIi6sHYdHufkv cVQ7n4sQQqSNZti8PyLmiSE= X-Google-Smtp-Source: AA0mqf5PgDcWrGG/qlTS1d5khO1RXvIht00dzCgwzfFVqj3/zuybOqlxIFU+3NcsYBK3ngzF7dm6Ng== X-Received: by 2002:adf:e8c9:0:b0:22e:33dc:3bf1 with SMTP id k9-20020adfe8c9000000b0022e33dc3bf1mr23477456wrn.316.1669375185693; Fri, 25 Nov 2022 03:19:45 -0800 (PST) Received: from cizrna.home (cst-prg-44-69.cust.vodafone.cz. [46.135.44.69]) by smtp.gmail.com with ESMTPSA id v11-20020a5d4b0b000000b002368f6b56desm4207406wrq.18.2022.11.25.03.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 03:19:45 -0800 (PST) From: Tomeu Vizoso To: Cc: 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 5/6] arm64: dts: Add DT node for the VIPNano-QI on the A311D Date: Fri, 25 Nov 2022 12:19:18 +0100 Message-Id: <20221125111921.37261-6-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221125111921.37261-1-tomeu.vizoso@collabora.com> References: <20221125111921.37261-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-20221125_031948_582238_ED4CA683 X-CRM114-Status: GOOD ( 10.62 ) 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. Signed-off-by: Tomeu Vizoso --- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 10 ++++++++++ .../boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dts | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index fa96fddf4633..13c79676a356 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>; @@ -2485,4 +2486,13 @@ 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"; + 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