Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3089115rdh; Mon, 27 Nov 2023 06:21:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqMH9l9gxem0v8EdLToBjf9bLUzAAEaZlEvBWJO1ObLh49+tzcN1/XYSs/jozgrktUIW2d X-Received: by 2002:a05:6871:d201:b0:1fa:345e:5e12 with SMTP id pk1-20020a056871d20100b001fa345e5e12mr8481884oac.20.1701094863352; Mon, 27 Nov 2023 06:21:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701094863; cv=none; d=google.com; s=arc-20160816; b=kdPIyel2U96Eu/6OtStuEy7jyv1uMKwWNTznlQX7RGidWRBTAECAUEzRr5P1LclQnX snZyhBQXpWgghQolwKCtRcy+qbd3nZFtvfvXwhsbnGVmgLfqJVc9Wp8amzCdy5OBEjb+ tDYP7vybJF+QxEMV5uGMyXlAsFCyVN789XkPA0ZLY4dHgEnveqvpo3C5LOPNNbWXkcoi hoqCrut2Da4bNqko5D3+jrTX//X2xoqNpuPoFJTpb5RHw7wB7yflwo06aoAsuhs4t/LK ZQZC0M0YuwxbovuJTBMLs8Dlrg3Ewc4+ZVhtGpunetbHx4nv2yM6eHP2MeocT/A8knz0 pMPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=XhgD28+5OuK/NtIDAYwe9YogTdJEBjicZzSil6G/rBw=; fh=g17TTV3IAh7upqWYUv7HGC34+Nx1v9H4Zz+OCPOH6/U=; b=LCdp4hw5z5nhDV20AqzDOCpetjvIaa9SgwQ+It1K/RQ7Zj7A07ur3U3gH2CNj3sRI3 9D1q+jKPoL3uHFlfDJEbQagjqV44eqed3YVb6Mu52TjMdGXOLCrhbylbzzNHiakA+Dv2 l2BXAacAnavs0O5qfwuqC/Q7935OjuBttgUY5BzJL0wI8f9p2LMjL2E6ZhLxBHicGjFY vefQEZZBQQH58UGsD2+LvG4xb6NDOoj5zUovwxpO0pXXrBfCyIOzlfQYuDmEkLAAgSCf KMayKK8gL7oTzqbAvbGQMtFZvi2Iv1SxCWpoNBM7cRn17feq4ufsCJ1+EjfQmDl3+8eV ntQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a13-20020a0568300b8d00b006d811e1d916si2130674otv.260.2023.11.27.06.21.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 06:21:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 692CE805E427; Mon, 27 Nov 2023 06:21:00 -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 S233749AbjK0OUb (ORCPT + 99 others); Mon, 27 Nov 2023 09:20:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233747AbjK0OUJ (ORCPT ); Mon, 27 Nov 2023 09:20:09 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 350401FE0 for ; Mon, 27 Nov 2023 06:17:45 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r7cQd-0008RP-9s; Mon, 27 Nov 2023 15:17:39 +0100 Received: from [2a0a:edc0:2:b01:1d::c0] (helo=ptx.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7cQc-00Bxr0-12; Mon, 27 Nov 2023 15:17:38 +0100 Received: from sha by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1r7cQb-00471t-UZ; Mon, 27 Nov 2023 15:17:37 +0100 Date: Mon, 27 Nov 2023 15:17:37 +0100 From: Sascha Hauer To: Andy Yan Cc: heiko@sntech.de, hjc@rock-chips.com, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, sebastian.reichel@collabora.com, kever.yang@rock-chips.com, chris.obbard@collabora.com, Andy Yan Subject: Re: [PATCH v2 06/12] drm/rockchip: vop2: rename grf to sys_grf Message-ID: <20231127141737.GG977968@pengutronix.de> References: <20231122125316.3454268-1-andyshrk@163.com> <20231122125454.3454671-1-andyshrk@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122125454.3454671-1-andyshrk@163.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=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]); Mon, 27 Nov 2023 06:21:00 -0800 (PST) On Wed, Nov 22, 2023 at 08:54:54PM +0800, Andy Yan wrote: > From: Andy Yan > > The vop2 need to reference more grf(system grf, vop grf, vo0/1 grf,etc) > in the upcoming rk3588. > > So we rename the current system grf to sys_grf. > > Signed-off-by: Andy Yan Reviewed-by: Sascha Hauer Sascha > --- > > (no changes since v1) > > drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > index b32a291c5caa..4bcc405bcf11 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > @@ -190,7 +190,7 @@ struct vop2 { > void __iomem *regs; > struct regmap *map; > > - struct regmap *grf; > + struct regmap *sys_grf; > > /* physical map length of vop2 register */ > u32 len; > @@ -1503,9 +1503,9 @@ static void rk3568_set_intf_mux(struct vop2_video_port *vp, int id, > dip &= ~RK3568_DSP_IF_POL__RGB_LVDS_PIN_POL; > dip |= FIELD_PREP(RK3568_DSP_IF_POL__RGB_LVDS_PIN_POL, polflags); > if (polflags & POLFLAG_DCLK_INV) > - regmap_write(vop2->grf, RK3568_GRF_VO_CON1, BIT(3 + 16) | BIT(3)); > + regmap_write(vop2->sys_grf, RK3568_GRF_VO_CON1, BIT(3 + 16) | BIT(3)); > else > - regmap_write(vop2->grf, RK3568_GRF_VO_CON1, BIT(3 + 16)); > + regmap_write(vop2->sys_grf, RK3568_GRF_VO_CON1, BIT(3 + 16)); > break; > case ROCKCHIP_VOP2_EP_HDMI0: > die &= ~RK3568_SYS_DSP_INFACE_EN_HDMI_MUX; > @@ -2764,7 +2764,7 @@ static int vop2_bind(struct device *dev, struct device *master, void *data) > return PTR_ERR(vop2->lut_regs); > } > > - vop2->grf = syscon_regmap_lookup_by_phandle(dev->of_node, "rockchip,grf"); > + vop2->sys_grf = syscon_regmap_lookup_by_phandle(dev->of_node, "rockchip,grf"); > > vop2->hclk = devm_clk_get(vop2->dev, "hclk"); > if (IS_ERR(vop2->hclk)) { > -- > 2.34.1 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |