Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1201696pxb; Wed, 3 Nov 2021 20:39:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt0seFayNGWvUDfMOFpoSmoUnwsRv6Fxcu4jIbny6JFOQNDId+35KgnLhPvKHH3NMouTAn X-Received: by 2002:a05:6e02:170a:: with SMTP id u10mr4240070ill.251.1635997139880; Wed, 03 Nov 2021 20:38:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635997139; cv=pass; d=google.com; s=arc-20160816; b=U6FmaR9UAvqN+3g5TtnG41ka8v8m3VSQeVpOgZtRZ9q+da1qFCxETTwTnks108e5xD W8RD0XYnhll8QVDeyLGmDOeuJrbTE+olNXSjyJGZdpEKgY82+w221XMUJh9v7yJj7+Co /hZ+gFaw1pReHz6nAFglGfIev8GJIyc4EvpOGAMs/J+HAeIMZ+cA7AFBMSTWNo+N81Ux 6RuHNgCLFsAL2tOZPLV5h62erzvPq2vRLUB5RBwvioPpgzRRjKbbHeeW8mnsX6R9Dfmr sE6P1VIuTSDRmzNh5G8+Gfmcz5AtPsKdkqutIL48tMdGgtAz1pamMZG5ZV0EUyYj/AS9 uP+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=YgcYy4lW/lKi/h3lOI2sAmbS247uL8BxsYg8HYMkCBA=; b=KsSnVCWAMJ8ySoP6g49AziWE7ybGM2wZd44qfx/Mwfh9CjvyNnKbriFNnuocnZ4drp CAu1e5xwcIOj24xP9d6xxAjK7TArNFhhpSwc0Nx/JvvolGkE5J4PIHQmrEG9xPPgxjvZ T6Rt1pb9koO33YKmH9dVsiosgGj16cK7z4z4gI/crAoaqiUQ8H5NMQArjw37vepsDBbS bjk/Qsukf4qSVdofh9h3WBKmT72Ztx2/fTdnaB09ltGgetDEn2feCy34t03GgFWUw7Fu pBc2GkEFBKwbaWTeOqZilzuL4Ys33+UOUhNcZ1JCWTgfYDoWf4SbqkdLVmuQBSx6a5pG kzCA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b="BG4c/fq9"; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si6097867jam.83.2021.11.03.20.38.46; Wed, 03 Nov 2021 20:38:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b="BG4c/fq9"; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230319AbhKDDiR (ORCPT + 99 others); Wed, 3 Nov 2021 23:38:17 -0400 Received: from mail-dm6nam12on2104.outbound.protection.outlook.com ([40.107.243.104]:43617 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230252AbhKDDiQ (ORCPT ); Wed, 3 Nov 2021 23:38:16 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MMGaDsek5nuk0wrR9VicbE93Yr1o25fIxIEdE/KlHdqaXXkJmGMk6vmBOTTUWsmG1+ZGRk3WkUWIv0Vhk+7bGxuK6P/NQrduk+wGxKvQPeRCVIUBIAk+d03x9wlyun3G3KEnmp2gHVHyb0Z5CmbMSrHHV4Oc1FMqI7ZhZKNsg4GAI/PepAL7Jy3nDzrMQj5mWurJMr3OVd1Tm4Z1735vz9M/GD1HR3fSp3NybSOciuUI/kIFSRuNCUBCQ5ZaIW/azHttMFHltuMHtFwBY9Ws+wQrH4ULvgFY4qw+8ZFJkpzaU2H8zbyeYnYCxRk2UnuxzF+73Bh3C5GpchzwEyLJwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=YgcYy4lW/lKi/h3lOI2sAmbS247uL8BxsYg8HYMkCBA=; b=cNmB0GGH+iG/ysn5OK5ATGzLV82ej5b/iEXGJWCkMk/KbqvlGzWbCoRNqOP+BcovxQVTJ/HX+DSqDs2y2N5juFWVlEEymVbfSqFhzHsHUL+OXwThzcJchcF/po376EjxipUt4d8jI2VNbRDgsWpqg3C1lm/j3yyhJ9Z/4KkKSU4L3ouuInxgMCB+atZZF/H2NmcsdgCf+UK0gnzdwyq3ltXKiI4IrfClk2MjHcoTkg2DMufrDqSmU4JrvTHMMRjiNOWX98xaaQkz/8L9P6cPs8oEQHmaOl8R7AJwgLsH02Q57+tXX0XikISPgljbXlJAH0QcP4LzlZxld6pnSHSq1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=analogixsemi.com; dmarc=pass action=none header.from=analogixsemi.com; dkim=pass header.d=analogixsemi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Analogixsemi.onmicrosoft.com; s=selector2-Analogixsemi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YgcYy4lW/lKi/h3lOI2sAmbS247uL8BxsYg8HYMkCBA=; b=BG4c/fq9koPaacxVJxe5TbSj8oCwtTT5MLhrS2txXlTMTRqO/P5tRih1LaEcxgg7DMj5S1K1DTJ88rmrbYTUM7j0BcDPJrjnvqHgVoSVgsfElZi0dPdHhrc1cOBZdf9TJeh6PN6c0U+YAozYZWKrW/49shUTYDlgRgxjAEcC3PI= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BYAPR04MB4277.namprd04.prod.outlook.com (2603:10b6:a03::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Thu, 4 Nov 2021 03:35:37 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::6807:22c:61f6:d595]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::6807:22c:61f6:d595%3]) with mapi id 15.20.4669.011; Thu, 4 Nov 2021 03:35:37 +0000 From: Xin Ji To: airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, robert.foss@linaro.org, sam@ravnborg.org, drinkcat@google.com, hsinyi@chromium.org, thunder.leizhen@huawei.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Xin Ji , Rob Herring Subject: [PATCH v12 1/4] dt-bindings:drm/bridge:anx7625:add vendor define Date: Thu, 4 Nov 2021 11:34:44 +0800 Message-Id: <20211104033444.2634397-1-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HK2PR0302CA0019.apcprd03.prod.outlook.com (2603:1096:202::29) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 Received: from anxtwsw-Precision-3640-Tower (60.251.58.79) by HK2PR0302CA0019.apcprd03.prod.outlook.com (2603:1096:202::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.6 via Frontend Transport; Thu, 4 Nov 2021 03:35:36 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cdfde464-1e97-4da9-22e4-08d99f442ab2 X-MS-TrafficTypeDiagnostic: BYAPR04MB4277: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Wz+jm1p/9xgPlRB7RBz7fHm6Iev8k+Sa+ONLGd4qMVkbQ3sn+N5VG7N1LcjlecQHlSBXKqY29LzMsRm+I5mLQec4afgscsaecFtkyyC1TUQIK80ndqFPaCC7glResq6ZrQsTUySCBxxYSxTByqfbVlY2s13HL1c29ChOwxazJj0izBaW5ycKkS5jrkiiLrRivZRtuFfOVIgMkZV/TV4i5VaJdAkz/nePepMpQiVjuOT1hJNnVu8f4Cu203VITveHgg7B1rZ5SbauKJsU4CzxeV5z4tI5ZDVRabGyBMm6rogqqCAM2Ud0Lg4Cnz9zaCe0MVYUCLWsxhMJRn21Bs3Vc3h/FEGwBH6BbGmLtzmrZLK/FcY1W6HeCfp0UAduw9SeYleZVi29kIdKJKqFQ8YIxBnyb0pshqynwWilC3icl7rTyUsW0ns1ZTUN6sq9VZF9nwlxkRkYsGzyb6M/87HmLrE+NItePA0Lug+TvuTn0Dp+HXP6J8TLAQgdViItXnV5skTu21JRHWc5GCmXZchDxotvjG/G32dOmS914cFme8QlTA7aJr3N74VSS+doAWsFCmD1TWDJOXFDH2bImWPH2wz7I5hbgTLaawtWUTmB8Q/SRqOFdOfoV2N+U8uui4UJ1BmvtsDMbqpWncKzqnweg9NPBzIdNGXpt8jtpCOc6KHa8IaIQ27rZCcBqd6Botr78dFDXEiGHIxBiCumBBA7Lp2X8r6+u+O94s/y9oxr1LU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR04MB6739.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(6666004)(186003)(26005)(8676002)(8936002)(55236004)(36756003)(921005)(86362001)(7416002)(83380400001)(52116002)(6496006)(38350700002)(38100700002)(1076003)(66476007)(66556008)(6486002)(54906003)(316002)(5660300002)(4326008)(508600001)(2906002)(66946007)(2616005)(956004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?xnIuGFPSDy2bTalMRSybZSR1cys+tsbxuwOBCqJbkh3oLkTQhLyBiX92r4SD?= =?us-ascii?Q?8zjF9lzEowJA/Vekq6Ihu+ZP9I4lsIuA+iE38raDDrz/PAzVvCFcd0Y1C79s?= =?us-ascii?Q?yB8V36OedVRU7irF+fMZveQmVGy4jkb76ytFApI8tcsqYdl+1fD4LZypMUKx?= =?us-ascii?Q?9Y235MOMaxqijd6NZLNexjTbSTxh08WXG+CZNApsUehPq3QMrNjPup91lKC/?= =?us-ascii?Q?rfCVL0FFzyJGE3mRySTzJFdUvKy41iEdrKX9HF3NIJTL9RbotKfZM5QoO31A?= =?us-ascii?Q?kbRHWv8MYmzHGpc2I7jrI+4ZKGHn6MQ24b38lDDeZEzA3nu6jK9jXKVO4wYc?= =?us-ascii?Q?iPvpc+huZVzFDPQwTVNtwFBUVCodOAbeW7TGFwbz8mtxQ7nAVL5BCCBu9sNe?= =?us-ascii?Q?T0yxyKkN4yUJqHjmVJ8JhCq9y6dvA3r/oECEM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/J5VoRHQbsNV82e6dcH0fLBqvhT2X//qUBzD271ONSxVAz5?= =?us-ascii?Q?JflnWFovJvh0kYnulDoQYY7yUNBL+iirzBbK9zXHMDcm1PKdFq1795pHeuM4?= =?us-ascii?Q?zwSBj4mTlKk7adN4aKtPGIBZEZQroE1hynJ8BjWUEt6Hc5dtjfI8vwRh+iMh?= =?us-ascii?Q?L6GkA7wfHYB6Zbf3JpICVeWqvFZ6ztgpovV4NiXgtx6iMsG2/9G5t5mqU8jw?= =?us-ascii?Q?fHoAPQS8f2ES6LaePRAxibHQix8Cz4pz2oI0x3BpaOCrJsnHOHtj+md/d/fl?= =?us-ascii?Q?plDvoGy7z9BXSP09TYGuebI=3D?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: cdfde464-1e97-4da9-22e4-08d99f442ab2 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2021 03:35:37.3611 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b099b0b4-f26c-4cf5-9a0f-d5be9acab205 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +vRZbdxEaMRps2I0Ck7XmcHWl2BlOrTWzcDd0BfPo5miW1Sdr7BIFMUuMak8KhWOuxLhLI1x681jeh3kkrOOhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4277 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add 'bus-type' and 'data-lanes' define for port0. Add DP tx lane0, lane1 swing register setting array, and audio enable flag. The device which cannot pass DP tx PHY CTS caused by long PCB trace or embedded MUX, adjusting ANX7625 PHY parameters can pass the CTS test. The adjusting type include Pre-emphasis, Vp-p, Rterm(Resistor Termination) and Rsel(Driven Strength). Each lane has maximum 20 registers for these settings. Signed-off-by: Xin Ji Reviewed-by: Rob Herring --- .../display/bridge/analogix,anx7625.yaml | 65 ++++++++++++++++++- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml index ab48ab2f4240..1d3e88daca04 100644 --- a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +++ b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml @@ -43,14 +43,70 @@ properties: vdd33-supply: description: Regulator that provides the supply 3.3V power. + analogix,lane0-swing: + $ref: /schemas/types.yaml#/definitions/uint8-array + minItems: 1 + maxItems: 20 + description: + an array of swing register setting for DP tx lane0 PHY. + Registers 0~9 are Swing0_Pre0, Swing1_Pre0, Swing2_Pre0, + Swing3_Pre0, Swing0_Pre1, Swing1_Pre1, Swing2_Pre1, Swing0_Pre2, + Swing1_Pre2, Swing0_Pre3, they are for [Boost control] and + [Swing control] setting. + Registers 0~9, bit 3:0 is [Boost control], these bits control + post cursor manual, increase the [Boost control] to increase + Pre-emphasis value. + Registers 0~9, bit 6:4 is [Swing control], these bits control + swing manual, increase [Swing control] setting to add Vp-p value + for each Swing, Pre. + Registers 10~19 are Swing0_Pre0, Swing1_Pre0, Swing2_Pre0, + Swing3_Pre0, Swing0_Pre1, Swing1_Pre1, Swing2_Pre1, Swing0_Pre2, + Swing1_Pre2, Swing0_Pre3, they are for [R select control] and + [R Termination control] setting. + Registers 10~19, bit 4:0 is [R select control], these bits are + compensation manual, increase it can enhance IO driven strength + and Vp-p. + Registers 10~19, bit 5:6 is [R termination control], these bits + adjust 50ohm impedance of DP tx termination. 00:55 ohm, + 01:50 ohm(default), 10:45 ohm, 11:40 ohm. + + analogix,lane1-swing: + $ref: /schemas/types.yaml#/definitions/uint8-array + minItems: 1 + maxItems: 20 + description: + an array of swing register setting for DP tx lane1 PHY. + DP TX lane1 swing register setting same with lane0 + swing, please refer lane0-swing property description. + + analogix,audio-enable: + type: boolean + description: let the driver enable audio HDMI codec function or not. + ports: $ref: /schemas/graph.yaml#/properties/ports properties: port@0: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false description: - Video port for MIPI DSI input. + MIPI DSI/DPI input. + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + type: object + additionalProperties: false + + properties: + remote-endpoint: true + + bus-type: + enum: [1, 5] + default: 1 + + data-lanes: true port@1: $ref: /schemas/graph.yaml#/properties/port @@ -87,6 +143,9 @@ examples: vdd10-supply = <&pp1000_mipibrdg>; vdd18-supply = <&pp1800_mipibrdg>; vdd33-supply = <&pp3300_mipibrdg>; + analogix,audio-enable; + analogix,lane0-swing = /bits/ 8 <0x14 0x54 0x64 0x74>; + analogix,lane1-swing = /bits/ 8 <0x14 0x54 0x64 0x74>; ports { #address-cells = <1>; @@ -96,6 +155,8 @@ examples: reg = <0>; anx7625_in: endpoint { remote-endpoint = <&mipi_dsi>; + bus-type = <5>; + data-lanes = <0 1 2 3>; }; }; -- 2.25.1