From patchwork Thu Aug 5 11:08:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xin Ji X-Patchwork-Id: 492976 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F59BC432BE for ; Thu, 5 Aug 2021 11:08:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1049D61004 for ; Thu, 5 Aug 2021 11:08:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240830AbhHELI4 (ORCPT ); Thu, 5 Aug 2021 07:08:56 -0400 Received: from mail-co1nam11on2132.outbound.protection.outlook.com ([40.107.220.132]:9441 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240746AbhHELIz (ORCPT ); Thu, 5 Aug 2021 07:08:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=do4M/H74Ikfs9M1txVzYrEAU6kO+RBBjc57hSQXVntAJSx42wXJJ6SMEPROVPQEnzmmPM7qfr5oFRZzs+6S/J+DkugPWAISKE3z75zPTvLDltwrJ1ltlx60sYwiRR+5wPNR7Lucn9TmH1wm7Op8pPbJx4Z/PvtHtTbRmG0sglsFIUig+Zpkq7UuASTnryXS6U8YrN0s8l8370BOM4Y1gZZRs4gIpJqs/oPIZBxTTIN5lMmRBq+1SJyYfG4ZwExlqxsZPtEDabWd7rzuJSKAqTqw++fq28UJjB9ApqFVjr7s4U7XhkFbKMFajaBqzpd0eH9gbKtlizuCEJ6UTYMgqdQ== 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-SenderADCheck; bh=/YARkm0GJjL/6R3CvGV07VJ63fHlM6K4wHz4ywxE4hI=; b=QGc8Gaaqi2cBQcDRQNcI9o93bmhYCwqojBLucABfclXO6qvOFcXdMescOUq7X9rOD+opy4nl9LmrxUNwqjvbsEFdzSagZlrWo0O3rEXd7wJE0YhdmBqR6ZvMLfby/v24FhZd7M1qWPJav0GpioOu28WzhSI7U07/OrrvbSeRmslTVKF5Qdmh9HFlF8Z2VYnv0A/W0CqtOGIX9lddOun6AaklNsE+BdR3ZIIQnFHktdUnRMKDaDTBKMFIfbvQBjjK1Q1b/KCyaNQpDG9atQwmUwDoV8ZIVvz2MnaZ4uee/fvB/SUZkBBKEGrC76OOnIJp5z0edVkhz/ZOHXo8ZoSIDA== 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=/YARkm0GJjL/6R3CvGV07VJ63fHlM6K4wHz4ywxE4hI=; b=dQKEmMyzy+Vh48DWahAN982jIOGdG/Da85rqd8ywCe1fFrQ5ZslHrwx/n2lPxwickZgwJXeoiPl8TVqLuavAguUhk21lfZDJ+eCmmgj54Kv4goKJu3icQcgJrPS1XCpq9wwXboTKKW1Cx5pTKRSVjIQjV3ZEpMSoOCDzp46DxNU= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BYAPR04MB4901.namprd04.prod.outlook.com (2603:10b6:a03:4f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.24; Thu, 5 Aug 2021 11:08:40 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5c0e:fbe5:2bd6:ec6]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5c0e:fbe5:2bd6:ec6%3]) with mapi id 15.20.4394.018; Thu, 5 Aug 2021 11:08:40 +0000 Date: Thu, 5 Aug 2021 19:08:35 +0800 From: Xin Ji To: Rob Herring , David Airlie , Nicolas Boichat , Hsin-Yi Wang Cc: Daniel Vetter , Sam Ravnborg , Laurent Pinchart , Maxime Ripard , Mark Brown , Ricardo =?iso-8859-1?q?Ca=F1uelo?= , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Bernie Liang , Sheng Pan , Zhen Li , linux-kernel@vger.kernel.org Subject: [PATCH v11 1/4] dt-bindings:drm/bridge:anx7625:add vendor define Message-ID: References: Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: HK2P15301CA0022.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::32) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from anxtwsw-Precision-3640-Tower (60.251.58.79) by HK2P15301CA0022.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.0 via Frontend Transport; Thu, 5 Aug 2021 11:08:39 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cc9ec83f-7d05-4b16-f07a-08d958016138 X-MS-TrafficTypeDiagnostic: BYAPR04MB4901: X-MS-Exchange-Transport-Forked: True 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: BepDAOZ/OOdswEjQvyHfmZPlUusmf/EQgda/UsZhHqfirzWMj3IqPryQLAAsiEt3O/99+T1zPs1UUhmXFfxHo9WVDVa/YK2b8yWnfX/Viz91/Ta78l4BMdJ1XwSQZdApIiCXdQ/H2hOVYUzFdX4vasPbfR4kOQBWC2/TQFvp8FFntsIt2Lql5dZJNLFvAEsh8fzjJUMDL5z9A9Q5zo49QgflvSsdPExwMw/Ns3u25XYxlRdtjkXP6P5Lg2WpGFtOVswdgrdz7DmB+3/U5R1rmAmfno56r4BEDDo1btjpcbNAj/Amel9UWW7hsUJtGUOJFI0/6VON+QSUmJV9jwnl2ubQw1l67TJLyDwgwZP996f8Uq/r9Ork6ZmX3DLTumrLkFX9+4Ftzhfi8f5n95I1zNg9krb5AtFhJabUZinhe2YWb2RZ3onEKbREc2ttguSKtACYUWatR0BIUCydewbhPDvjy6SNCEtOjmLBvsBixe8luML3SiDdcZXXVkVMcIrUOA1yaQdeQUZQNTBonpnp8PQxi5ark9eEE+Y/gc9nqps+hvfjjWsVhw8OFWIzJUi8E9r+8ssafpyulxRj5TDTyiPHYcUotxdjZZgJ6DA2/CQOPtOvA/i6yuxoFo58tTufnWPXZX84/aIqlkXlWqbE8UNJQ38fOT+fbl87BxsrWTl6GWyF0IOENY8bAeCe2g8RLPulu9tYommYwXaCvrJP4g== 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:(346002)(136003)(376002)(396003)(366004)(39850400004)(86362001)(4326008)(36756003)(2616005)(26005)(55236004)(6486002)(956004)(38100700002)(38350700002)(52116002)(83380400001)(6496006)(54906003)(8676002)(2906002)(8936002)(5660300002)(316002)(66556008)(7416002)(6666004)(478600001)(186003)(66476007)(110136005)(66946007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Jo9R3FkNxIDOEimpGwlxUdvNhmpMAXv+ra+Gfr0TqfUCsna/26muQByH+mAgExvFLGbbuYAAXZZOBuFeJkQ8Ivf64YSGX76TFj5wbngHe12UOGK2Jf/wRcItrhMXQZ4FZNEykmqgsrFf4MN3UkNwYRebYo3EeQ5qSbTiQOOXbqzqf7rr4whcxmDAErzstBya6EmCmqok7O4nJiytEfj+aHPq7havSCM/Wt4pjHOtOY4SD5Xy9b2E7NjZl91wKblxMvIkW651jNUt/Hv/3kNvHEyJtQsV+TcnqXxEjGIcOeKNhX6aRgxpP40BMtnALxtRpUAIemwLjJl5njqfjtKP/HeK1xNeRtYwHtmZ/rUOw3qodGdQKRhaOJYYldwlNvs6A+WCXToSvlW1lKv3LuCTloZN8lJ1DM+ZbkfQ1sPocpb3m6ybyrjyPxgQ2HJL2aiIdcNSWbLnlwvyT3qn6NixsCnJC3UKgYCmgixlX+lCxnPMNNt8unfvMVbhS+arMrkNHwpVSH9ByztU0wnDdDCcKo+MigkxrzYNVkFv+ST6IVgRE88LJJSJ5aD7vrWlXLg4yBDZORHZMtaVa45Md1uJa8dVay1cRtXRVFlQjuzsDsuf/5mj3LXW1i1wkriAy5NExqgKOQnHWZMNdlWaNV2vCINjBeSTMB/n88KALnL+TJKxziGb/X0qRLwlAs+lIuRaywK6+0/MEcWuXhmJ5FDY8L9EJ0WclmaKvBEhQFJ8HQS1tRu4YLuIKDWzHcP8HBXwSlc1rj3GAE2OZK664sv1Lcz7rxfoB8SLMwChDNPKSlsoUd9YvCLSvJ8ErQeu8yvnf+JhCI34LJ7CdOiUG4SygKshrlUQWFXtoF9ym0UX8DaW6+3xpg1Z0DyU0gY+g+uEqfkVJryy2D8sZXwMJXpRECkB8QBzOA67E9cMmcl96TPnU9QyViuDHOlnO8ili9pS5pe2YyeDlc0Qt0Z3B/2Sofq69lRHABS4xDQRqajU0VDVKcPgCXSkxYhzuAl6iWDNoRAgdqNtCAE9hNc2aznTK3oxxZmyBn88PGKkkzUX2oGx4D0iMCQ7OAxkhcWUR46abmCqOhMemHZ0a7mCWXk0XiUI0IGGRC328hdkZKBCR+duxuLksbQqqTMUTbEww9Nk3Vq4hHJ+A3iH0+5tZUJVpvy0N0b49moMyfGzeSDh0yJBoDEAA5Vx/cP3rPZ5vqCfZGGPnrX04tAYJXYLeq81h4OqVMJRjXxN6wa+USTdqkmrQn7D0U0QSeBz7KsjYitlK6jHNpsV79d4POS6/vVz92wACuzXciPBd3DUeFuXEI/4ivWBGNlN+2PmB6ZIi6QF X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc9ec83f-7d05-4b16-f07a-08d958016138 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 11:08:40.3459 (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: nhDRjfMsL0LGIoii6GXPai+1tewdQoNBlnD4HRAmmpVtujKaWskggTpTBVHT+oAppqPkVOSprrxQe6xRBDzU1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4901 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- .../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>; }; };