Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2624623pxb; Sun, 17 Oct 2021 20:50:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp/MffhJNG5b2cgezo2Si0ja3TZFoy+uZP6vPLiCBaGmhb71suJOtOOF4pXqLq6U+ybMX4 X-Received: by 2002:a17:90b:4c4c:: with SMTP id np12mr30468722pjb.205.1634529029568; Sun, 17 Oct 2021 20:50:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634529029; cv=pass; d=google.com; s=arc-20160816; b=0iATPaIouI8wuR/4GPgSz7Rpxkm4CexwivGKTIhpJVIk+SakfqT5QfHFcMtOlnsYeu zvbdASh070Vov84rq6XCZjbDQrpyyE8zI/6aQZtrXkA7SPYQ7Mmb6ocOIk+geMuS77Ve Bn6LntjblpVRMNRy8NVPry097vas7D3S529HLgxv/ohiy7mvfpNyle1Iji117D0OAiqL gW3f8MoVW4IVJx7rT19SJCxy2vHcO4OLIhZswv8a4thvLrle0upxRm14UF9LmqaUgwvL 5iUaCQdRoMqbvW0BQigTyJtg33CKbtAM29Ixp27UucVlL3uTpSaAITOs+atSlwOEMC3d Locg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/YARkm0GJjL/6R3CvGV07VJ63fHlM6K4wHz4ywxE4hI=; b=Vbo6f0YYffCi2v9GEUMiReFkXHt0yrb24rl0uKihMxeShncK8Y9GnSxqW5PKdXzUnA YOZQX48kdfHzmS5/OH+HuY9yjkZP2Kh92T/wy2VaeZ0QQfHP7kXzFZbZeDDcXdH4+8k+ umFZCkuNP8i7hPOa28HyOmLvuGT1E9Z7V2p6EjIShy718xWmh+9hm9OkQDVbAxe+LauS B+hhi1mlLJtL6qnQnod7Fbk6bhIQ3dE1QA2MZrwGQvug3qLVhfJt4L1E0gfEriySj/Mg 3d4z/O5JZralErHEPKdr6fLuSTVEX0FOQUWt5+3vt3piBrivV76uSF6A5iItQ1C+USI7 ixzA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=LMFvndKz; 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 f5si18359171pfe.179.2021.10.17.20.50.16; Sun, 17 Oct 2021 20:50:29 -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=LMFvndKz; 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 S229825AbhJRDGC (ORCPT + 99 others); Sun, 17 Oct 2021 23:06:02 -0400 Received: from mail-mw2nam10on2125.outbound.protection.outlook.com ([40.107.94.125]:45473 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229818AbhJRDGB (ORCPT ); Sun, 17 Oct 2021 23:06:01 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GJzXYb6OdFI8c1ZkAfStYerWQh5/KW78+tRsq1MKdLdYEQAFZiTMY4NWHH/GIcRxdH3IOIVgqT59Z8GseS5F1vUl7liFcRLEvJ7EVSR4yQ6411fzkozmqgdwFSuoBvaqKiDiIFJlrETww0ChGljH2TtwP5JmyXrw2x08FtKvszkXDo/CxVTj+T2DZM3d8+bdXf1hgoUT5Gc3+bE9F89BQ1lAackE0lw58YQFf0cj+0TNRwRvfFCphSTQFkwJQHS6za1JhDVA+/Wf65umJdd1Fv7fyabgw6AurUAmDkSGsDemfUDZ7U00YadzQdx0bix4BVySBkKk3Jv7/cuhwXxrgA== 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=/YARkm0GJjL/6R3CvGV07VJ63fHlM6K4wHz4ywxE4hI=; b=gANriTwWE0B4m5hS0eB27YITnfR51+QvHwERaGItODrn44pqYA56qx5xJntGXb8J+SqrDzVfLb97tNbPpsSRxS10Lc7gO5zpGG/cXy39pAk1blu9yHem8Y4INF3gdHWjx7+dnr9h/xenvGequr59QnO5mQ5Sdiy+FWj839MzDrzu9bnsAmIU7s/4Bc1G9mvFpV1wpS/9v3WI34eaEMG4a6WRcNfonRMr3jpOoNXp6JKXJ6rZWwk26EbDDAV5xz9DS+iHqE1twtijJkNxzSbJxffYZMjqLvHq7QXmfK4gdfhh+uVeJuoKkCOZ6v1oj0ipejHYdrQ46+K23/bV2dCTNQ== 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=LMFvndKz+WaUGZVKSHaBUVB/827ZWAep2L3NpPOsRTtmwGJp5q/bCYvKghrCz/I5WiuJl9h7+osZ0KKmYbdJRITRRG7aqSbWkUeLasS0cVwBsDtyE9HoGCl+yv+FXh+ZHe08XQpcZz7uu6iVySqjXZjIElwJWNT870LTwAqnmoI= Authentication-Results: analogixsemi.com; dkim=none (message not signed) header.d=none;analogixsemi.com; dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BYAPR04MB3862.namprd04.prod.outlook.com (2603:10b6:a02:ad::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Mon, 18 Oct 2021 03:03:50 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::e149:c2d4:fd23:a682]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::e149:c2d4:fd23:a682%7]) with mapi id 15.20.4608.018; Mon, 18 Oct 2021 03:03:50 +0000 From: Xin Ji To: xji@analogixsemi.com Cc: airlied@linux.ie, bliang@analogixsemi.com, broonie@kernel.org, daniel@ffwll.ch, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, drinkcat@google.com, hsinyi@chromium.org, laurent.pinchart+renesas@ideasonboard.com, linux-kernel@vger.kernel.org, mripard@kernel.org, ricardo.canuelo@collabora.com, robh+dt@kernel.org, sam@ravnborg.org, span@analogixsemi.com, zhenli@analogixsemi.com Subject: [PATCH v11 1/4] dt-bindings:drm/bridge:anx7625:add vendor define Date: Mon, 18 Oct 2021 11:03:23 +0800 Message-Id: <20211018030323.2055114-1-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HK2PR02CA0210.apcprd02.prod.outlook.com (2603:1096:201:20::22) 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 HK2PR02CA0210.apcprd02.prod.outlook.com (2603:1096:201:20::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Mon, 18 Oct 2021 03:03:49 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a480fe3e-f00b-4931-53e1-08d991e3e893 X-MS-TrafficTypeDiagnostic: BYAPR04MB3862: 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: iC5lNqkzz14BNrEpJNMuLG2DMUr3aa8EQS61OUNruJfOJDZtR6Kai5qkJVRqNI/SyjnHsjrHQSbM3GpF1AcminPSPSWbN5eM+QXCUCQR5stMvEu7SkDn6UiTRS2xKsDoqvisxEPIf64rer5bZl3FL38BCl9Rf3Et88oNUuCBKCL7gkGUk6RYNc926LHEVEIKzjwflN5nUZW+8835nbaOux0ZizH6GavtNmQeOV6/xvvX655GLN71ERQ1ValAJgGYs3CtbMKn90TZ01/piGtIrmuOGK0iqEIbJJVHvasqRJOQc5BA9n3tYgNex/W77mm9FAUJ874Q3bj854F07dpN4MyjxVKq5gwFKRB1pVUC1gGV9Uw6Ph5eRESv3eIWlxTZPwG7qDPK7AhrwTzn+u8RKm/RcPhKXVLoengSuBxI0ghLG5fAX51P3BlfJF0CfEi3UK6idLTMJqDuev3c0rn8oJdFxbfHuMuATwLoFMswfqLSTbqvJteXVLfXtLGbTNh+dBYOLsT/03+AvnrQ6gHT+khrfDUrkj69sjdnRnQRwVEo8tQ57AF1ROgTX6ycI7Zq5o2UwjtYmJu0yQ9HVZblFaBNvos804RbFVtBAKRm32e6N7v0TPu1MeGX9/q9UT4pQfLGIMARQRgu/OCAH5S0nZpSiwxOidDxdvzUDUVAaivjPjDx1BTZWFMzFaHf/Wtw76HyEVjXDmgC3E0uODnEpQ== 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)(83380400001)(2906002)(38100700002)(186003)(6666004)(1076003)(34206002)(6496006)(55236004)(52116002)(107886003)(36756003)(2616005)(956004)(26005)(8676002)(66946007)(6486002)(38350700002)(7416002)(5660300002)(4326008)(37006003)(86362001)(8936002)(508600001)(316002)(66556008)(66476007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?fuNJNN56z5R6+YO6WEiDN9Yh/7DarZ8UAVkqPFIvrlgTqITWr2Le/qmkBjo8?= =?us-ascii?Q?aEt9x/2yCxUA1iIhY9QipURcwZ9Lr1s+06YU6aLTRPkJybBDotOzXKwhvemN?= =?us-ascii?Q?eKEbKqTVKMVxNHfzONl59g6qTMT3XYO72uVjok1rDdlH6SJZKjw4pgeZAClB?= =?us-ascii?Q?zzhWFQybHBpm6giN3JX8urRHpkblrQJV+SagFRas2wHSfKNrK7Mv77+/33W9?= =?us-ascii?Q?JbZXj03JWW659asEAeujN5hfQIPbQpzbHXgGwuWw/ZlOoP2F3uEldco46Nn8?= =?us-ascii?Q?9mEyoR3qQ3B1HQrjUOhEKdapK1Vu58FDUx8ssGlsG+S7TfVWv7r+Bcdb8RZ2?= =?us-ascii?Q?MpOmtFXARxLrBgPC5NRp/w1XSe7WAqvKFeh/yfxHiJBwHyY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FCXPvrIYs+2cPYyPUrtIccO/c0YsSs/EHyfp7yRX0D?= =?us-ascii?Q?vMJbaqCOFZANwPxF0r7bUpUx?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: a480fe3e-f00b-4931-53e1-08d991e3e893 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2021 03:03:49.9679 (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: kbEKIOKvvVuieTdQy53/G1bfJ/PIe4J6zuyf5MNCFPurZkj2GEH1iyihz+iacjPES0qPKgze/r+jd1Nhkwby6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB3862 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 --- .../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