From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.62.42 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796006441; b=gB8h3fWNuNonvrsfImCH2Ix2moNIVkOpxzKqbiKd0svhJRYmmDFT/B5ayDY6k/fQL3wV eTLXWe40ZHVAXGIZG33HL3kMHlNhRAKNcZDAjs1BNKhqSTlIapDB1rQe44sdh7qkVpPYR LAK/J+bPyUMmxEFoAc1NA6mblHwO3tJ8gMxCaAazSssyWWXA+VdRoun1zQF0iLgF5xafD vQUIjfLJVDR1HXdz8eAI3bmzXETy1O5CrlAep33ZVZiVMZkTIP4eZ/DLHsqkZG500moIz AcKNREcGYtGgutCf7J5d0kUGi4DqkpsEym3Rkq+BHUrbdKcrrqnVjeidN7VpZXHrDTw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796006441; h=DMARC-Filter:DKIM-Signature:Received:Received:From:To:Cc:Subject: Date:Message-ID:In-Reply-To:References:Content-Transfer-Encoding: Content-Type:X-ClientProxiedBy:MIME-Version:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0: X-MS-Exchange-AntiSpam-MessageData-1:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=VMjdI9yWndmiLOeMjkQehIr++QTJSgGpWWCGudIaVFE=; b=opjI8JUlIhL8/eH19wlJtP2bg4LrezfGzSdGdGP5GBEGatkIlpN//mR4ZEgBQlSWBThA wZTnznfUCCHp5wfW3d/k6BZWMz0TbDmoMosIgjPe3n90nDc1vOsoP06ehxlRSOB02xywR N1hgs00JuP/kttKETlvx1F3wn8+vrrmN7q1BFKuv4TngSsr3V+/tn6sO8GkPRrvKy9JJs iLNBPNSeDoFGJou0LAWuLYpO12k6UYbBb424nT+poCYq3p/eb4a9Sg1L6QnSCNQpuK6oV HGWO//fGw4j1A92yttrIb1JfxEK74MK6fS+7ridBPRel8Z+C4hAThXS69tp+7wW4Qdw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=lsa7GCNF; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.62.42 Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011042.outbound.protection.outlook.com [52.101.62.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E587D606A337; Mon, 30 Nov 2026 02:40:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E587D606A337 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=lsa7GCNF ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hfCKQniLK43X4d6LuVxnxwi6EYghpFa68vfU/wGoC2JojsZMcrZZnSZRIuiUr9L6RcGEoAVM/w+fYpwuyuKeZWCTlpSeL2AyJAFWWWQtpa/1Rcaxlu6a8awlKKXPFFe4pwQFVcf7O0muGemG6VFpJFr2dXRmpaQPHu5QqYModyq00j5UNQjIF5RoL6EffdBh/YuYu38iwlWlY4YeHB4HP6++NidLCoo42NjhuQS/5kuyVfdvC7XJR0sWHqDAxHi1RlEM9JDDjcsbYCcqRTSuEesq1ndgml5PYB/83XB/bPiydY18lQ6qwhOlBM4JLE0KnD7P3m/e8KJ2KitevhYAig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VMjdI9yWndmiLOeMjkQehIr++QTJSgGpWWCGudIaVFE=; b=QwdToCAE9EaXbXhKko1bHGI14wRltrJ6l6FmusCafzHN2YNtyZQdp3GCAfLlpuZ99GXysh31qU/dxmszIzcOCwMJwGL8D4nV3F3qCVZSF6mTqjhigSfNm7wuORk6LiPpD/SAqbyn76vErY6gkFSVuJxH1qrsTQe0+60bu6ju1cmCGSDCMuGfD08hapGoHQYWgy+YNMmGAFiEl94dnxND1Lbk4TQvDkrYCPAaAstU0ybwGC9lkkw9VcwysLfkSZSwVZmbdJFbeTpaATcupmswIafG/UOIlP1APPF1DReard5g/HMqPipfSHGW8ZlU4lkXtPyq/auY9p8XTPUaDNzMSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VMjdI9yWndmiLOeMjkQehIr++QTJSgGpWWCGudIaVFE=; b=lsa7GCNFjCskg3Fuv4ijCV1GT+CFIZ7mxI6M/C/d+TR0k4WGBlD44xGwUXQx95+/vUIHnQ6OmVHV7SiIM/qtQCY2x/PCHHReYw0E5jPRgWQZHhtphtgAJzTjvorVEOSrU+DsO1CVM77XFeKF0PFwNSPNz0aVWOczwD+hsQr0rPbOENST+punASGxPouvxL7Nodapqdes6viGYWhTdmrDRNKu5ZN8sorx17NlAi8cr9pLDYXMHByMNxkeY8gHAOsIys9+GILO6ltoxAuURjjH/4GGyUT5rPFSv0IXjGW3thwfNJ6oyIff79t/GKIcc0oRhNiqthvgHm7lf5717kj8fA== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from SJ2PR12MB9161.namprd12.prod.outlook.com (2603:10b6:a03:566::20) by CY5PR12MB6528.namprd12.prod.outlook.com (2603:10b6:930:43::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.12; Mon, 30 Nov 2026 02:38:35 +0000 Received: from SJ2PR12MB9161.namprd12.prod.outlook.com ([fe80::d9d1:8c49:a703:b017]) by SJ2PR12MB9161.namprd12.prod.outlook.com ([fe80::d9d1:8c49:a703:b017%5]) with mapi id 15.21.0662.007; Mon, 30 Nov 2026 02:38:35 +0000 From: Mikko Perttunen To: devicetree@vger.kernel.org Cc: devicetree@vger.kernel.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Neil Armstrong , Jessica Zhang , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Svyatoslav Ryhel Subject: Re: [PATCH v8 10/12] drm/tegra: rgb: Parameterize configuration based on bus flags Date: Mon, 30 Nov 2026 11:37:33 +0900 Message-ID: In-Reply-To: References: <20261122081820.53199-1-clamor95@gmail.com> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-ClientProxiedBy: OS7P286CA0004.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:26c::16) To LV3PR12MB9166.namprd12.prod.outlook.com (2603:10b6:408:19c::13) X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR12MB9161:EE_|CY5PR12MB6528:EE_ X-MS-Office365-Filtering-Correlation-Id: fb1836a8-72a7-46ff-b0d4-08df4e8b074e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|10070799003|376014|7416014|1800799024|23010399003|366016|11063799006|4143699003|6133799003|261009220027099003|261009223327099003|261009223027099003|261009221727099003|261009221227099003|18002099003|22082099003|3023799007|56012099006|10067099003|261102123227099003|261026140227099003|261021123027099003|261021121427099003|261028144727099003|261026121527099003|261022105027099003|261022075727099003; X-Microsoft-Antispam-Message-Info: btQWO09Gm7jLY2JVaxMbSEQNu7f+mb7WcEKBZdoyzuQvSr1wTtoEbjL/LMwkQ5bz6HIL2EUXuftmw0SN2LFxNTp5DbrXG3ga48vxKOq/K6RMDNmucfgh4uGGWHsmgPnPAyx0lZQVRzQ8a2mIOc4CR3X1IVyZjB1rVTIvpMgqWNkDI3lG3YnyJqC4JHsqWdI4aXDX2wYnWQLh5D07dANFM9JGyBhm+wrUoLky34psuQxJqd5h8TLxBEH1L5PzfPAs2HCGK+P68Mv9Yw0hW+iD4kwo+mcboDMfFOZaBZNHkDYIKQA7sVF25vVTdol4mrMDg/2X/Gq+PcwaW+poPO0G8yzPhtIgv/D1FTpSe1Opii28MCoEWECekYP5L2iEOJIP8AbJ/GrjJ2IYCM8ysqqmbldnD48AHLBDsBioMAe1RrAPQ1jiR2B8CcozQSL/2aaHbMc/v7jHzDcfeqJvLPOUwnUqQH6oVSpfrg8UT2IHpz/XB59DjrSmQq6WCQz25x+eQJYz7i5RnhuT14qlcn4ggyjEtwhozgRtiEB9vsiS4y7sUcmekPz2ITYNseckH2wHCH/bWdIJZXeKxjapmBzIBRo3ESgXl7xPgWTkMxGvFp6aLLhWCmcvxcTiU6XP8WuwA4fteOCJA0DUYAd+uNUy3Xe4EFGpbZEJLSXsLfHhpGc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR12MB9161.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(10070799003)(376014)(7416014)(1800799024)(23010399003)(366016)(11063799006)(4143699003)(6133799003)(261009220027099003)(261009223327099003)(261009223027099003)(261009221727099003)(261009221227099003)(18002099003)(22082099003)(3023799007)(56012099006)(10067099003)(261102123227099003)(261026140227099003)(261021123027099003)(261021121427099003)(261028144727099003)(261026121527099003)(261022105027099003)(261022075727099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cTBMaVk0aXRsMjBoSjIyZjdibmRoalFHMGNEU2pPWUx2SVBOTUtyUHBMZmJB?= =?utf-8?B?NnpHU3hJY0dqdzR2aEVEem9NMUdIWDF5WHluZ3Z1TDFpMGZmREtRRVJ1Smhn?= =?utf-8?B?UTFzT1NYSFJXZE11d0ZQTXAwNDM2QUx1dEJDQytuNllJdGtSZ29kUTFweWla?= =?utf-8?B?NEJIUWE1NVpBWEQvekVhSFNBVkxXSVFJVmxOYWlxT0ppc0NPWjY0ZHZ4czFD?= =?utf-8?B?bXlxTmhIZVMwRWR0bjJaU0R1eEY2alhQNFJKSUwyQkpjOEJ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VRwSGh6ZktFbHdlZTFSWHNpMlRtVGlIaGJST28rUDNsRUNHaUZRRE5p?= =?utf-8?B?dWVLQTQyMWpjUytGMnRmUWovc2p0Wkw2STdZc2RtdHR4OTI0dzFkcWpEd1hV?= =?utf-8?B?dnprV21EL0FQYnZQZDc4TkdPdGV1RU9qcEpCaEZkYW1lQnRIYTZTNTRDN3Q1?= =?utf-8?B?THRITkRGWk1SeTR3WHluZFBJUUo4aVZFYlIyV0Z3UnE1WmkwZ21CUDZHT2pD?= =?utf-8?B?V0VaUGpVdDQ2Mm1TM2REa0F5U0N0RnAzSGpIdW9HUURIZ2lpNXhpdnFUUUJE?= =?utf-8?Q?NDygCUK7/FaHX01Wox9QzwPbqid75ES66TG/CQx90JRBy?= X-MS-Exchange-AntiSpam-MessageData-1: rOETOKvbsiZ/lQ== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb1836a8-72a7-46ff-b0d4-08df4e8b074e X-MS-Exchange-CrossTenant-AuthSource: LV3PR12MB9166.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 02:38:35.4717 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2RAQ/uwG7AttmcT0puHd3NkrnMk0i3BqIrL3S6yhyDU0wqT/F25Fus7316sKTADyFwHvNutVsSlNnd3PZ8SY/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6528 On Saturday, November 28, 2026 4:53=E2=80=AFPM Svyatoslav Ryhel wrote: > =D1=81=D0=B1, 28 =D0=BB=D0=B8=D1=81=D1=82. 2026=E2=80=AF=D1=80. =D0=BE 03= :28 Mikko Perttunen =D0=BF=D0=B8=D1=88=D0=B5: > > > > On Friday, November 27, 2026 10:21=E2=80=AFPM Svyatoslav Ryhel wrote: > > > =D0=BF=D1=82, 27 =D0=BB=D0=B8=D1=81=D1=82. 2026=E2=80=AF=D1=80. =D0= =BE 14:35 Mikko Perttunen =D0=BF=D0=B8=D1=88=D0=B5: > > > > > > > > On Friday, November 27, 2026 6:21=E2=80=AFPM Svyatoslav Ryhel wrote= : > > > > > =D0=BF=D1=82, 27 =D0=BB=D0=B8=D1=81=D1=82. 2026=E2=80=AF=D1=80. = =D0=BE 08:22 Mikko Perttunen =D0=BF=D0=B8=D1=88=D0= =B5: > > > > > > > > > > > > On Sunday, November 22, 2026 5:18=E2=80=AFPM Svyatoslav Ryhel w= rote: > > > > > > > Parameterize configuration based on bus flags passed from the= bridge or > > > > > > > panel. The list of supported flags includes now pixel clock p= olarity, > > > > > > > display enable (DE) polarity, and data alignment. > > > > > > > > > > > > > > Signed-off-by: Svyatoslav Ryhel > > > > > > > --- > > > > > > > drivers/gpu/drm/tegra/rgb.c | 39 +++++++++++++++++++++++++++= ++++++---- > > > > > > > 1 file changed, 35 insertions(+), 4 deletions(-) > > > > > > > > > > > > > > diff --git a/drivers/gpu/drm/tegra/rgb.c b/drivers/gpu/drm/te= gra/rgb.c > > > > > > > index d48d498068ac8..faecd6f94359f 100644 > > > > > > > --- a/drivers/gpu/drm/tegra/rgb.c > > > > > > > +++ b/drivers/gpu/drm/tegra/rgb.c > > > > > > > @@ -5,6 +5,7 @@ > > > > > > > */ > > > > > > > > > > > > > > #include > > > > > > > +#include > > > > > > > #include > > > > > > > > > > > > > > #include > > > > > > > @@ -106,6 +107,7 @@ static void tegra_rgb_encoder_enable(stru= ct drm_encoder *encoder, > > > > > > > struct tegra_output *output =3D encoder_to_output(encod= er); > > > > > > > struct tegra_rgb *rgb =3D to_rgb(output); > > > > > > > struct drm_connector_state *conn_state; > > > > > > > + struct drm_bridge_state *bridge_state; > > > > > > > struct drm_crtc_state *crtc_state; > > > > > > > struct drm_connector *connector; > > > > > > > struct drm_display_mode *mode; > > > > > > > @@ -117,12 +119,21 @@ static void tegra_rgb_encoder_enable(st= ruct drm_encoder *encoder, > > > > > > > crtc_state =3D drm_atomic_get_new_crtc_state(state, con= n_state->crtc); > > > > > > > mode =3D &crtc_state->adjusted_mode; > > > > > > > > > > > > > > + /* Get but flags from the bridge state. */ > > > > > > > > > > > > s/but/bus/ > > > > > > > > > > > > > + bridge_state =3D drm_atomic_get_new_bridge_state(state,= output->bridge); > > > > > > > + if (bridge_state) > > > > > > > + bus_flags =3D bridge_state->input_bus_cfg.flags= ; > > > > > > > + else > > > > > > > + bus_flags =3D DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGED= GE | > > > > > > > + DRM_BUS_FLAG_DE_HIGH | > > > > > > > + DRM_BUS_FLAG_DATA_MSB_TO_LSB; > > > > > > > + > > > > > > > tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb= _enable)); > > > > > > > > > > > > > > value =3D DE_SELECT_ACTIVE | DE_CONTROL_NORMAL; > > > > > > > tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPT= IONS); > > > > > > > > > > > > > > - /* configure H- and V-sync signal polarities */ > > > > > > > + /* configure H- and V-sync and pixel clock signal polar= ities */ > > > > > > > value =3D tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POL= ARITY(1)); > > > > > > > > > > > > > > if (mode->flags & DRM_MODE_FLAG_NHSYNC) > > > > > > > @@ -135,11 +146,31 @@ static void tegra_rgb_encoder_enable(st= ruct drm_encoder *encoder, > > > > > > > else > > > > > > > value &=3D ~LVS_OUTPUT_POLARITY_LOW; > > > > > > > > > > > > > > + if (bus_flags & DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE) > > > > > > > + value &=3D ~BIT(PIN_LSC0); > > > > > > > + else > > > > > > > + value |=3D BIT(PIN_LSC0); > > > > > > > > > > > > I think this is the wrong way around: SAMPLE_POSEDGE means that= the > > > > > > pixel data is sampled on a rising edge. That is, it should be d= riven on > > > > > > the low edge so it's ready for sampling in time for the rising = edge. > > > > > > > > > > > > LSC0_OUTPUT_POLARITY says that the value "LOW" (a bit confusing= ly, 1) > > > > > > corresponds to a data transition on the falling edge, i.e. samp= ling on > > > > > > the rising edge. > > > > > > > > > > > > Section 31.9.6 states this a bit more clearly: "an active low p= ixel > > > > > > clock means that the data changes on the falling edge of the cl= ock, to > > > > > > be latched on the rising edge". > > > > > > > > > > > > > > > > DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE =3D DRM_BUS_FLAG_PIXDATA_DRIV= E_NEGEDGE > > > > > > > > > > Should I replace with DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE? > > > > > > > > No -- with the current code, let's say > > > > DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE is set. I.e. the panel tells us= that > > > > it will be sampling pixel data on the positive (rising) edge. > > > > > > > > LSC0_OUTPUT_POLARITY will be set to 0. The TRM documents the value = 0 as > > > > "active high", and "means that rising edge coincides with data > > > > transition". That is, the display controller will change the output= pin > > > > state to color data on the rising edge. So the SoC pins will change > > > > state at the rising edge, and the panel will sample at the rising e= dge. > > > > > > > > But the pins will take some time to take their new values, so this = might > > > > not work or could be unreliable depending on all kinds of timing > > > > factors. So if the panel is sampling as the rising edge, the SoC sh= ould > > > > be driving the pins at the falling edge, that way there is time for= the > > > > pins to settle before the panel samples them. > > > > > > > > So the value written to LSC0_OUTPUT_POLARITY should be the opposite= of > > > > what it's now. If that breaks the panel, either it's reporting the > > > > incorrect DRM_BUS_FLAG_PIXDATA_SAMPLE_* value or something else is > > > > incorrect. > > > > > > > > > > This may/will cause regressions across multiple panels and devices. > > > > Looking at the panels we have, if we retain the previous behavior when > > neither PIXDATA_SAMPLE_POSEDGE nor PIXDATA_SAMPLE_NEGEDGE is set, then > > we'll retain the same programming as we've had before. > > > > Actually, from what I can tell, the change in this patch will change th= e > > programmed polarity compared to before the patch for the panels/bridges > > on the Colibri/Apalis/TF700T boards, which do specify SAMPLE_POSEDGE. > > > > So if we flip the logic around, and default to SAMPLE_POSEDGE if neithe= r > > is specified, we should retain previous programming for existing panels= . > > >=20 > so default to >=20 > + bus_flags =3D DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE | > + DRM_BUS_FLAG_DE_HIGH | > + DRM_BUS_FLAG_DATA_MSB_TO_LSB; Yes >=20 > and this remains same? >=20 > + if (bus_flags & DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE) > + value &=3D ~BIT(PIN_LSC0); > + else > + value |=3D BIT(PIN_LSC0); No, the branches on this have to be swapped. TF700T uses a toshiba,tc358768 bridge. drivers/gpu/drm/bridge/tc358768.c=20 sets input_bus_flags to DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE. This patch=20 thus sets the LSC0 polarity bit to 0. Before this patch the value for=20 the bit would have come from the rgb_enable register entry table, which=20 sets the bit to 1. So this patch changes behavior for TF700T. The same=20 applies to some Colibri and Apalis boards. If we look at panels/bridges on supported Tegra boards before this DBI=20 series, TF700T and those Colibri/Apalis boards are the only ones with=20 bridges/panels that specify the PIXDATA_SAMPLE_* bus flag in the bridge=20 state. So to avoid changes to existing boards, we need to: - If no PIXDATA_SAMPLE_* (or equivalently PIXDATA_DRIVE_*) flag is=20 specified, continue to set the LSC0 polarity bit to 1. - If the=20 PIXDATA_SAMPLE_POSEDGE flag is specified, continue to set the LSC0=20 polarity bit to 1. It would follow then, that: - If no PIXDATA_SAMPLE_* flag is set or there is no available bridge state, assume PIXDATA_SAMPLE_POSEDGE - If PIXDATA_SAMPLE_POSEDGE is set, set the polarity bit to 1 - If PIXDATA_SAMPLE_NEGEDGE is set, set the polarity bit to 0 Mikko