Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp234369rdb; Thu, 30 Nov 2023 03:32:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtQSxy9nLklyXXjecd/lBDVJGjG9LMhhuZnMUbZbX4ux2HwqerU8eIS0L6y5QD6PnqTjs8 X-Received: by 2002:a05:6a20:6a22:b0:18c:346c:d59f with SMTP id p34-20020a056a206a2200b0018c346cd59fmr19829604pzk.62.1701343942298; Thu, 30 Nov 2023 03:32:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701343942; cv=none; d=google.com; s=arc-20160816; b=NJSi1vvVukH4gJM1hcnspn9/rmuTQADmvC33L0/sHPmb2hi29ZgViVIewwEUu9LDaz kQrL8maNvcopAHEB23sRYLPktqZrkN4hJAaBYL8rSV3nFoqewzi4fS00H6a58SZTFgF0 hdT+ZtJ63LSU4WQRt/bhHptY+DVhU4pcJ/qi23vDqAItJU76ymX/2k8EcBm3HD2kTZG/ 0g8lReURWpUbvZRTWX/5TVA8+edbxJR1MfAgMlElN5dE1ivPXl5Nmi+Hl2/triMGu3e4 EsrbsSpERBmosUOMbjm/JyNlOp+5q03sl/FOyWvDTRzlyqJD1MM251BdedVLxhNAFS20 E9eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ds7ABFYrMMycv745Smb8RwddOGN4IRIdlcfUsv1PeZg=; fh=SVRFLFGhGVTl2xQwxLFIimFzrVuGAbhfIsLJg+wWbiY=; b=yJ6+IeX07kPPq6jsow5sEKBTiyinNxU2SazDOndxbklh0M3U3i5b5qo6bsIWX5QgBb XxlpJ73gvcRniaCxCKiwYMVVbEdjkISohzSp0qraPMk6oLiVml2S7L2jqv2oCxyFUwNV r44uFaTDk795WqcaI2K6FqWGaExUk9E+44qC1cwNyBSJAAd/dhSqDwzkLuChzUzGLzwE pTlEDxFcuIL6/C+ml8fPug56qgCixRJhfFDCypxSC5YfDjKW0yV4lhY3U8B/2NlffUyn qIgoVJvhuC3oKoOtJdTAhFC2BMmmKdxACgq9SWyHSAwGLBjkZaf+fHQ6YVpaDACQsbxV 5dAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uJLEf+HZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id 72-20020a63014b000000b005c21c4a46ddsi1122595pgb.356.2023.11.30.03.32.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 03:32:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uJLEf+HZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D083280323C9; Thu, 30 Nov 2023 03:32:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345388AbjK3Lbb (ORCPT + 99 others); Thu, 30 Nov 2023 06:31:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345297AbjK3LbC (ORCPT ); Thu, 30 Nov 2023 06:31:02 -0500 Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3A3C10F5 for ; Thu, 30 Nov 2023 03:31:07 -0800 (PST) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5cc3dd21b0cso8421997b3.3 for ; Thu, 30 Nov 2023 03:31:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701343867; x=1701948667; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ds7ABFYrMMycv745Smb8RwddOGN4IRIdlcfUsv1PeZg=; b=uJLEf+HZUTpkUYhyMEKBjM1Z8TCvMmvF+arIHSiMSEwCJArUOzcrABTy/0jSXaWi8d wrPmJNMyPSaRJ8QdpRNzXVtmP3j/l8HZdqIIJ6vA8T9h7A7d3Otv0eJ2xL2OLEJGvp5/ nmwc14Ok0rHEMkSLsn5i77lB0oQ7BHuPnaAU3VQGZ+FDSlDH5UnvBjMzbexAJtKAIGh5 hxodA9wIoWRYWF4VYNIQJ0SSh+OEg23wnxxEQaW8LqoeNWs7WqoEJHU3KbDsqBvys+6j j1J1JhzigWQoP2N5lDcGcc3i6ZPG2DLJ2FepuWIf86LgboovAX8QOX779spqesaqq2O4 v2mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701343867; x=1701948667; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ds7ABFYrMMycv745Smb8RwddOGN4IRIdlcfUsv1PeZg=; b=LqitI8Fk8iouH7l+bs58CLdeFBEIArSiPbGGVAPXkttqgqeKPod85b1kvGc2Nb5drz HBacSARtFBdDX1ttDqbJWu2GTRvl8qgpjFJeVf2hl0y5ROyFUdgGNEh3bmpfD7TW5oi6 qVS1usjI3HUh0ABSG+HD/xzzbE8LWMjb+wWQhCZThDLBmWQsoXpT0pK4nADIg9QS0KVE EZBmlEV5sq+gxIpE865fJ6hfe3xHTiLsPjDfbEihG1izit8HgYYGV3lhiJ3DbKlocva1 uTP1PrifxYiFb/CKMA/LQmBStpgc9oZ5lom1WosIFXzhumhw0wQMsysFKYOzS0VEcUiz D/XA== X-Gm-Message-State: AOJu0Yyr6wS44W7Vr31+sI/dDX87XxrVofjza5olMauFb+KaSKI1/wsc hYFg+hrk2VcTrriofnkGh8LEKI67EoJIay9g5jTc1w== X-Received: by 2002:a0d:ca93:0:b0:5c5:a04c:5eb2 with SMTP id m141-20020a0dca93000000b005c5a04c5eb2mr23685462ywd.33.1701343866889; Thu, 30 Nov 2023 03:31:06 -0800 (PST) MIME-Version: 1.0 References: <20231123-topic-amlogic-upstream-isp-pmdomain-v2-0-61f2fcf709e5@linaro.org> <20231123-topic-amlogic-upstream-isp-pmdomain-v2-2-61f2fcf709e5@linaro.org> In-Reply-To: <20231123-topic-amlogic-upstream-isp-pmdomain-v2-2-61f2fcf709e5@linaro.org> From: Ulf Hansson Date: Thu, 30 Nov 2023 12:30:31 +0100 Message-ID: Subject: Re: [PATCH v2 2/2] pmdomain: amlogic: meson-ee-pwrc: add support for G12A ISP power domain To: Neil Armstrong Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Daniel Scally , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 03:32:20 -0800 (PST) On Thu, 23 Nov 2023 at 17:17, Neil Armstrong wrote: > > Add entries for the ISP power domain found in the Amlogic G12B SoC > > Signed-off-by: Neil Armstrong Applied for next, thanks! Kind regards Uffe > --- > drivers/pmdomain/amlogic/meson-ee-pwrc.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/drivers/pmdomain/amlogic/meson-ee-pwrc.c b/drivers/pmdomain/amlogic/meson-ee-pwrc.c > index 0dd71cd814c5..fcec6eb610e4 100644 > --- a/drivers/pmdomain/amlogic/meson-ee-pwrc.c > +++ b/drivers/pmdomain/amlogic/meson-ee-pwrc.c > @@ -47,6 +47,8 @@ > > #define G12A_HHI_NANOQ_MEM_PD_REG0 (0x43 << 2) > #define G12A_HHI_NANOQ_MEM_PD_REG1 (0x44 << 2) > +#define G12A_HHI_ISP_MEM_PD_REG0 (0x45 << 2) > +#define G12A_HHI_ISP_MEM_PD_REG1 (0x46 << 2) > > struct meson_ee_pwrc; > struct meson_ee_pwrc_domain; > @@ -115,6 +117,13 @@ static struct meson_ee_pwrc_top_domain g12a_pwrc_nna = { > .iso_mask = BIT(16) | BIT(17), > }; > > +static struct meson_ee_pwrc_top_domain g12a_pwrc_isp = { > + .sleep_reg = GX_AO_RTI_GEN_PWR_SLEEP0, > + .sleep_mask = BIT(18) | BIT(19), > + .iso_reg = GX_AO_RTI_GEN_PWR_ISO0, > + .iso_mask = BIT(18) | BIT(19), > +}; > + > /* Memory PD Domains */ > > #define VPU_MEMPD(__reg) \ > @@ -231,6 +240,11 @@ static struct meson_ee_pwrc_mem_domain g12a_pwrc_mem_nna[] = { > { G12A_HHI_NANOQ_MEM_PD_REG1, GENMASK(31, 0) }, > }; > > +static struct meson_ee_pwrc_mem_domain g12a_pwrc_mem_isp[] = { > + { G12A_HHI_ISP_MEM_PD_REG0, GENMASK(31, 0) }, > + { G12A_HHI_ISP_MEM_PD_REG1, GENMASK(31, 0) }, > +}; > + > #define VPU_PD(__name, __top_pd, __mem, __is_pwr_off, __resets, __clks) \ > { \ > .name = __name, \ > @@ -269,6 +283,8 @@ static struct meson_ee_pwrc_domain_desc g12a_pwrc_domains[] = { > [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), > + [PWRC_G12A_ISP_ID] = TOP_PD("ISP", &g12a_pwrc_isp, g12a_pwrc_mem_isp, > + pwrc_ee_is_powered_off), > }; > > static struct meson_ee_pwrc_domain_desc gxbb_pwrc_domains[] = { > > -- > 2.34.1 >