Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4022262rwj; Tue, 20 Dec 2022 05:13:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf5jwWo5vneff03kAB/Tbb2MrE9Wh5MeaLb6HFF621KsVq3WM7sCO0AqEeyuPLd1Rj/au8jh X-Received: by 2002:a62:53c5:0:b0:563:cc80:fb66 with SMTP id h188-20020a6253c5000000b00563cc80fb66mr44539553pfb.0.1671542031805; Tue, 20 Dec 2022 05:13:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671542031; cv=none; d=google.com; s=arc-20160816; b=J+AMLc1d53YLVLhulql/8Tb5rkx47dIsMEuQuH0BjrfMvztFv3sn86DXfKwvyp23c3 JXLSq2qIAWigMwheurWvYsAHkwOEh531JApHJ/auFG7VT9U3GNnlnPWgcDhG6MtT1nc5 PcW6zbDpNsOwe2aPCHmTyqB17ZCZDm/5D5kScxXtPvOMbf8nnv3rqqgX5YYTRTvWLEKM dufC0BBgrNv42qkSaAsMoTyYdxIaB6TcNpsAyz69zLlrRI1nBbqsqfYKi2pndUv7dmBs eQBTrdBFPQzohzjykvFpNdF+OvZk0tPqbBY5b1geR0FHb7jaCmgT8L76AtIaIt1phjXI hJ7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LHax8/ZZ3JCyTmkjdYpKXNqFB3NStITjjzxsSuGmNYY=; b=nUXEzo2LXN1LnJkOUDC6NGrtb2+8TGTRB4/qMY2skvt54KNdvvE85LuoAyFQvCeHKh GNLVrLPDyFmc4tebmwbJ1ca6AUio5W6TZwOIkcXU8yZq55QnDLg1r+f+Pwv+acFIW9OA Z4c92IUi3tGvChnG6GwwQlqadgFhWMBbOu9YHaluF7/fC2pYxX/u28H8t90LZMo4SrW/ cA9Rg5SgZ41Py6cZX2AUAgjWkx7bwa6NVj73B0rB+FxJnYstZ2/6s9EyvszknkRu5P4q NcMdH6vYos9itNFOOZ2CLLK2VjCE3TFHpI/OaBf1xcwqwyzc59994Ciba4d8rdNfZaDj Gk5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Hfe8povy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c13-20020a056a000acd00b005787fd98b6bsi1245565pfl.323.2022.12.20.05.13.41; Tue, 20 Dec 2022 05:13:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Hfe8povy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233819AbiLTNEZ (ORCPT + 71 others); Tue, 20 Dec 2022 08:04:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233825AbiLTNET (ORCPT ); Tue, 20 Dec 2022 08:04:19 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 218BF167F9; Tue, 20 Dec 2022 05:04:17 -0800 (PST) Received: from [192.168.1.15] (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 82A6056D; Tue, 20 Dec 2022 14:04:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1671541456; bh=ZvxB9T70TZ+qvTHqWsyTCrDs0kOqGqkVtT2zxrsKU+M=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Hfe8povylTwTJG50jVH0Tn86842ASz9JpSTsbusSKKZes9PP6XL5b5jd/sDohCNTq vyb1DV8if6dwIrMQ37CmKoPNnxvP2rjgWz59tfsW8UG/PgasyHhqBQvWWwB1FG+N57 FjRtiEzmfPSgLw0YXs9+kWhWajNsiJo2fq6HYRA4= Message-ID: <84977593-4671-7582-d5f2-cf69755f1145@ideasonboard.com> Date: Tue, 20 Dec 2022 15:04:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v6 5/5] drm/tidss: Enable Dual and Duplicate Modes for OLDI Content-Language: en-US To: Aradhya Bhatia , Jyri Sarha , Rob Herring , David Airlie , Daniel Vetter , Krzysztof Kozlowski Cc: DRI Development List , Devicetree List , Linux Kernel List , Nishanth Menon , Vignesh Raghavendra , Rahul T R , Devarsh Thakkar , Jayesh Choudhary References: <20221119173019.15643-1-a-bhatia1@ti.com> <20221119173019.15643-6-a-bhatia1@ti.com> From: Tomi Valkeinen In-Reply-To: <20221119173019.15643-6-a-bhatia1@ti.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/11/2022 19:30, Aradhya Bhatia wrote: > The AM625 DSS IP contains 2 OLDI TXes which can work together to enable 2 > cloned displays of or even a single dual-link display with higher > resolutions like WUXGA (1920x1200@60fps) with a reduced OLDI clock > frequency. > > Configure the necessary register to enable and disable the OLDI TXes > with required modes configurations. > > Signed-off-by: Aradhya Bhatia > --- > drivers/gpu/drm/tidss/tidss_dispc.c | 24 ++++++++++++++++++++++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c > index f26129fb1d8f..cf43de6216a5 100644 > --- a/drivers/gpu/drm/tidss/tidss_dispc.c > +++ b/drivers/gpu/drm/tidss/tidss_dispc.c > @@ -1012,8 +1012,8 @@ static void dispc_enable_oldi(struct dispc_device *dispc, u32 hw_videoport, > int count = 0; > > /* > - * For the moment DUALMODESYNC, MASTERSLAVE, MODE, and SRC > - * bits of DISPC_VP_DSS_OLDI_CFG are set statically to 0. > + * For the moment MASTERSLAVE, and SRC bits of DISPC_VP_DSS_OLDI_CFG are > + * always set to 0. > */ > > if (fmt->data_width == 24) > @@ -1030,6 +1030,26 @@ static void dispc_enable_oldi(struct dispc_device *dispc, u32 hw_videoport, > > oldi_cfg |= BIT(0); /* ENABLE */ > > + switch (dispc->oldi_mode) { > + case OLDI_SINGLE_LINK_SINGLE_MODE: > + /* All configuration is done for this mode. */ > + break; > + > + case OLDI_SINGLE_LINK_CLONE_MODE: > + oldi_cfg |= BIT(5); /* CLONE MODE */ > + break; > + > + case OLDI_DUAL_LINK_MODE: > + oldi_cfg |= BIT(11); /* DUALMODESYNC */ > + oldi_cfg |= BIT(3); /* data-mapping field also indicates dual-link mode */ > + break; > + > + default: > + dev_warn(dispc->dev, "%s: Incorrect oldi mode. Returning.\n", > + __func__); > + return; > + } > + > dispc_vp_write(dispc, hw_videoport, DISPC_VP_DSS_OLDI_CFG, oldi_cfg); > > while (!(oldi_reset_bit & dispc_read(dispc, DSS_SYSSTATUS)) && Reviewed-by: Tomi Valkeinen Tomi