Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp214884pxf; Wed, 24 Mar 2021 03:26:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYot7xfEsp6iJgjLLOTrE7tltBBLDchCGSKBhCKWkif/82RcYyovMpvtqzF49gwWd0fYv0 X-Received: by 2002:aa7:c398:: with SMTP id k24mr2624852edq.61.1616581569335; Wed, 24 Mar 2021 03:26:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616581569; cv=pass; d=google.com; s=arc-20160816; b=vaJ6QHlV1PvhgBgV6DVqqqJoS1HxA+dN3AB83OcK7XrHBymbbSxoiyZ+A3v6MljlqV bb/iy34Pg4inUuX0k66oNAkySZSMhcLkOyOxWLynePVq4XH8YgLsgN7yWCUABiRGwwB/ 2+coQwShUEuvv9pO6aUHCDH2oRSOEhVdQ2DD+sM2uVAYVG3jpFWzP+mdPSfRJZJiYbZc By6l6J4zaDfGVJsQKTuAn5YPwvd1fDSg+jHzlF0UCYRCzCnDQQlf6GH6+JK0WeQch0SJ zQ2MCtN3g8oHRZxx/OfdiNEXOR+B4pYyvEv9vOVs3sEtq1IYufhnduJU+g/vGRMrowSI EUEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TuwdkeSRGt+dAjxKxyj1anVwsk1nJbj/1+stUnm28FY=; b=WDpGgECDnmNXkp7syz7V5c41t7Wf5T2A9VauuBFok6JFEEWwrhiTnQAer70OOkMclH bUUK+u+S2syhoMEMOza3DgpNkwy9bNlAzBXtE9cseMISNp331Lsllxl2ndrRIHqZoK9e o+szDLQdeIewKgdYp9SLIgYUNiYKM8LQ0V3bfkax7EPGQVC44kxWF2rjyG/jyGoDQIyz inW6WmuY4ddYfe+IepBwILYRGw1uAcW2By3+kzWWln6r2j60Yi6IxB5r4Lxi6abgyHei PRsJWXpDR6DPXHtPt5Tx9xZSpqa6SOLBvyCnBo8c8ZPS8vHfbN2ARt4vJ2Mp/lkX97bQ 5awA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=n5USbcG7; 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 f19si1401684ejc.312.2021.03.24.03.25.45; Wed, 24 Mar 2021 03:26:09 -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=n5USbcG7; 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 S235662AbhCXHvp (ORCPT + 99 others); Wed, 24 Mar 2021 03:51:45 -0400 Received: from mail-co1nam11on2136.outbound.protection.outlook.com ([40.107.220.136]:15872 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236005AbhCXHvU (ORCPT ); Wed, 24 Mar 2021 03:51:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T3M8YPaYn1pZJ/sgU6q37yEDVQSk5hifMTsoFWvBSNrLmDYwq8syDBA/99Tq/t6e4TtRRHdSb9yK3VL4Zs72pzRqT4Jp7o3l8DJdv8Q8+0wTXEKeHv2XUoq6WCyMsmA7UAGXIHaRxzP72APCKJvtsTy+Qmo8X3Z4zB2AoWZmcYx5TSiaekzKzxcTnZ9s3blnV2aBBfnRQOoY/RsX9cpYBzQWFMBG0Pkkce3fwG7rV35r9jwtWkBnAVbwbfxiy7FuedKbraTk0JcGx0OkJRgM5nr8UQDp1cMlllwEI3lVOeMJbAqZ/RGzhol26MQRoj80BnxhlfDe+I7+SJ9ICsB36Q== 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=TuwdkeSRGt+dAjxKxyj1anVwsk1nJbj/1+stUnm28FY=; b=TWvPCJZvwut2Bxrdiio2dmG5FZ/RdinmW65dWYORIDLsf3k77Hvm7KF6dk7xk1aDYs2E+No3fDQ9zg3TpgLg8Ke/fVhMtk1sypZH8SU0HPD/e9awrutuXbORRTsOaRtw8Ah2Tjuw8ArW9doNzKqrof0Nt7rTBNt+v/oz8ONiRnAbZxFIHMrCaOlXGCjeiGW5M0dujUMn1MIw6gV537giukdR+XpGwLIIqwSogPkHc+47oKXpp/MgVOsgptDMRVX416CebI0B0RLhBYdk5fXks21Xud2kTGr8C3j2nWEyyKxyPhdPYhlirBoS3T3f6f0sqoJNcOka7C4Bbr0aQe836g== 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=TuwdkeSRGt+dAjxKxyj1anVwsk1nJbj/1+stUnm28FY=; b=n5USbcG7vRYvMov1Z2BT/XhMq6Zusz1gJOPx/dKn4Y2GYO5Ml8sd4UNU3Ga6LgQXx2vVz2Vc8OT5JPyKw43SItaZx6I3b8lEYlrUSmazGTfZjvaCLf7hO0GGxWgl9pEQaYMoKuTYFiSGsbWspbb1cu79gZG2r81mhRbd1nriJL0= 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 BY5PR04MB6913.namprd04.prod.outlook.com (2603:10b6:a03:22e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.31; Wed, 24 Mar 2021 07:51:17 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::6481:f617:8105:491f]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::6481:f617:8105:491f%2]) with mapi id 15.20.3955.027; Wed, 24 Mar 2021 07:51:17 +0000 Date: Wed, 24 Mar 2021 15:51:08 +0800 From: Xin Ji To: Laurent Pinchart Cc: Rob Herring , David Airlie , Nicolas Boichat , Hsin-Yi Wang , 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: Re: [PATCH v6 1/5] dt-bindings:drm/bridge:anx7625:add vendor define flags Message-ID: <20210324075108.GA1466804@anxtwsw-Precision-3640-Tower> References: <4b09b40ce53c5b5fe7d2ba65a3c7a1b23f6eec04.1616135353.git.xji@analogixsemi.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Originating-IP: [60.251.58.79] X-ClientProxiedBy: HK2PR02CA0127.apcprd02.prod.outlook.com (2603:1096:202:16::11) 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 HK2PR02CA0127.apcprd02.prod.outlook.com (2603:1096:202:16::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25 via Frontend Transport; Wed, 24 Mar 2021 07:51:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd5183b1-a6f5-424b-a604-08d8ee999ae1 X-MS-TrafficTypeDiagnostic: BY5PR04MB6913: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8lKHeJiTMmtofDlfda9UInCwHMFu009bgGbH0UyOpUfbGKEsjQLHa1CX+CldTFD5ZAeEWcQu+lC/quiJs7Pl3z7hGM8IhiE8CAiJXzqE7uOpZoaDmrUDKNkXJDX5MsE1woBQ7UybaRN1cmC3NHJI/Lb0NcyLocNfXfqubeSW2vUZgPwyKxDLganCcgOa1j6wJjXIUlZY78lLau7Aec0/Tiuay1v/B9bx6gPmKJ3NldQ8n/WKNV6214IkCaz1LPpTwY48b1vk4mewSwLiS0GQBEW9miPRXvjTL4XhiBANl0Ix0qPHjIMrfV0kP1Wn88xTaZyPt9OzF5yJZZ0x8QlB6KVp/XSaXSL3NuO9adKqaMBljktpvKptxejv9hoGf2WLd0bKqMlYWDuE2YJob1n4RTTgQwdzBsY+F0X3Up66V3prR9U2Wztw1ABhNjn7s19uCNFfkZX5IT/rGyBdIX5m7wRJPZdT/gXEz2BcjmxtyEvakJbmUIjFGo02TsCNDuORKLPMZCGfum25E3Sz3bryy2Tx6Faj3X6qUVtOZ/sJQ+SNkRlzf9jTeOGZiKIWsb5lPUKyuFC86bpCc7gJCJIcjKHUE5OVHIPI3HiDKwYgvIbMB6fZ+wQE9D8PpDNvVRb/yASxb2tj7RBwuLmu0kCJiA== 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)(396003)(366004)(376002)(39850400004)(136003)(8936002)(1076003)(7416002)(8676002)(186003)(66556008)(66946007)(478600001)(52116002)(6496006)(4326008)(83380400001)(33656002)(38100700001)(66476007)(33716001)(26005)(316002)(55016002)(6666004)(55236004)(16526019)(86362001)(2906002)(956004)(9686003)(54906003)(5660300002)(6916009);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?C6Uh0KyHjfgcA6xekDVwlzKHCelU35knmrsFLI9RVYEq7DoyhEYmki1BEDrO?= =?us-ascii?Q?pjnX0rdoPlJIU/ZmLBJaok1Yl/sV/d2AjGYZZMggruQtJD2pix8cMJAXX+6h?= =?us-ascii?Q?GOUkZcOINW/Utxul+guBCtYQZk/umbnsLKdReOHfppGmfP2h6tc/THHvlIXX?= =?us-ascii?Q?jFVCgPz/hEovertwI74uCch2vihDecdmCtsS/XMBOCO+3UPqq3A1r4szYR6U?= =?us-ascii?Q?OOgRHizZv8C4dqee3hUjawZ2qa0CuUnheoggYDGQ450djoUfCYoO11t5x98T?= =?us-ascii?Q?xrDM9KvtbMeTGpPjYgpCr8iOr43vE//jhbsG8CEzqsGJVfJt1OHssU1NLyai?= =?us-ascii?Q?VRoPQ50ujZ2D1msowlheAupm08cxin40+WoUJshaPhpkySs/DBcVFJK+kYVs?= =?us-ascii?Q?QQUkuouFI8oW/V2mEocbJSw+nT7EDREFs3hDrxDExiFXKHo6wMUp7y0TW6A+?= =?us-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emi.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd5183b1-a6f5-424b-a604-08d8ee999ae1 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2021 07:51:17.1081 (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: phFegjPpNNhqPZj9X7xAOEjjZpoNAaky1BoDQQMtGPX6U8RNhBM1JVu+R4NnLQpuwheJqacyb5BnVZCpHs76WA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR04MB6913 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 21, 2021 at 02:00:38PM +0200, Laurent Pinchart wrote: > Hi Xin, > > Thank you for the patch. > > On Fri, Mar 19, 2021 at 02:32:39PM +0800, Xin Ji wrote: > > Add 'bus-type' and 'data-lanes' define for port0. Define DP tx lane0, > > lane1 swing register array define, and audio enable flag. > > > > Signed-off-by: Xin Ji > > --- > > .../display/bridge/analogix,anx7625.yaml | 58 ++++++++++++++++++- > > 1 file changed, 57 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > > index c789784efe30..3f54d5876982 100644 > > --- a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > > +++ b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > > @@ -34,6 +34,26 @@ properties: > > description: used for reset chip control, RESET_N pin B7. > > maxItems: 1 > > > > + analogix,lane0-swing: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > + minItems: 1 > > + maxItems: 20 > > + description: > > + an array of swing register setting for DP tx lane0 PHY, please don't > > + add this property, or contact vendor. > > DT properties need to be documented. Contacting the vendor doesn't count > as documentation I'm afraid. Hi Laurent Pinchart, thanks for your comment. For the DP phy swing setting, it is hard to describe in here, needs to refer the anx7625 datasheet and programming guide. Basically, no need to change the DP phy swing setting. Thanks, Xin > > > + > > + analogix,lane1-swing: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > + minItems: 1 > > + maxItems: 20 > > + description: > > + an array of swing register setting for DP tx lane1 PHY, please don't > > + add this property, or contact vendor. > > + > > + analogix,audio-enable: > > + type: boolean > > + description: let the driver enable audio HDMI codec function or not. > > + > > ports: > > $ref: /schemas/graph.yaml#/properties/ports > > > > @@ -41,13 +61,43 @@ properties: > > port@0: > > $ref: /schemas/graph.yaml#/properties/port > > 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: true > > + data-lanes: true > > + > > + required: > > + - remote-endpoint > > + > > + required: > > + - endpoint > > + > > > > port@1: > > $ref: /schemas/graph.yaml#/properties/port > > description: > > Video port for panel or connector. > > > > + properties: > > + endpoint: > > + $ref: /schemas/media/video-interfaces.yaml# > > + type: object > > + additionalProperties: false > > + > > + properties: > > + remote-endpoint: true > > + > > + required: > > + - remote-endpoint > > + > > required: > > - port@0 > > - port@1 > > @@ -73,6 +123,10 @@ examples: > > enable-gpios = <&pio 45 GPIO_ACTIVE_HIGH>; > > reset-gpios = <&pio 73 GPIO_ACTIVE_HIGH>; > > > > + analogix,audio-enable; > > + analogix,lane0-swing = <0x14 0x54 0x64 0x74 0x29 0x7b 0x77 0x5b>; > > + analogix,lane1-swing = <0x14 0x54 0x64 0x74 0x29 0x7b 0x77 0x5b>; > > + > > ports { > > #address-cells = <1>; > > #size-cells = <0>; > > @@ -81,6 +135,8 @@ examples: > > reg = <0>; > > anx7625_in: endpoint { > > remote-endpoint = <&mipi_dsi>; > > + bus-type = <5>; > > + data-lanes = <0 1 2 3>; > > }; > > }; > > > > -- > Regards, > > Laurent Pinchart