Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1002455pxv; Thu, 15 Jul 2021 22:34:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY7XoivDfSJIHjd4wPIQgLw0JjwC1ONSgfkXSZsMM5sJV6xS8RhBi1ozGi9WomHVgUvtpl X-Received: by 2002:a92:7009:: with SMTP id l9mr5263669ilc.24.1626413641880; Thu, 15 Jul 2021 22:34:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1626413641; cv=pass; d=google.com; s=arc-20160816; b=KexOiFHpO1EdzWnplzhUNC8QAYaI0qRZ9Idp7Dsl1PDwbQzkyyhaezP7YFlhJrEQVL YBIQGOLmmhxYOLpRmRFEi65t6c2TyLZNgb0yG42SDD6Yn6HRv2B/TJkqxn2x3uxW9+4U gTsR+UJZQUM1GngcaIJalRxSD9vEwEvgfjO7yiZDj0IPsNyxNNpyNTAj0tD3PV4Tow1v Jl+fT85j68H8dMl8/kNi0L6Q2Aze6UKh5qDN1t4Gi9sCMEkS2NfOd1oGea4DJN7MewE+ u85Oz3GUAbO4tyjzKRp3sqt5j+rKm0sLHJfFfrNjCWgV5LW7ZgN4V6EI9ZmrNITDzWZ1 zSYg== 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=G/su1NfmZjWx3YXbjixerZ1Pd915s0VhCYfuxPAMjy0=; b=uU2yAzntlsdWT10ugj2ZJMyPYaqNXxYOXp2TnJcehkoHmVgHMlTkMTSXGcwGyXOiaD cxY+4zqqn1i3m+mEq75Gu9kHnqFkjYT4Ab7ug6kM4qOedWGtFwG7KfKmYPv5qzZm1Rxc H22RnJeDFUwNXusBfYPBEPc9Z99IB7yLeM3cH+45GuxnYYdIYGKvbvSvsIby/i8hZOSC L3y5oa56oAiLCFpSH8T+Yyd6scn/2rMG2mIIfDyPJr0fW2133wlyRh2kuNjseD3eq0gr 3TCQEFcsem/QIvbM+OkSBLw48zNBK0l+sFknJFr9N1IA6ye/zaPcvM9S9T9F/jQBSW9I 4vQg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=I35Rgz23; 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 f6si9144842jas.104.2021.07.15.22.33.33; Thu, 15 Jul 2021 22:34:01 -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=I35Rgz23; 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 S234083AbhGPFfU (ORCPT + 99 others); Fri, 16 Jul 2021 01:35:20 -0400 Received: from mail-dm6nam11on2102.outbound.protection.outlook.com ([40.107.223.102]:45056 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231961AbhGPFfT (ORCPT ); Fri, 16 Jul 2021 01:35:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SVsK6pkQdXMZ24jnTPat89QVpK3lCa/qOjgc39DbVWXz37dhKovGBq1UzHWiu9RY1sWovSDek5W8jYu7UHR1KQ/ptOqJgdQRGdVH6hfLBinRY5ggnoZyXF/XQG5Wgs++PuZ6NHeiahc0NtgdGzv3kg5j1mvhxmIa34mdCx0DDBmiYhsb8jfkidzwtxouM65GLRgw+9l/qQjr0JpEE2XhwWK5Divv9YBN0WJ0zvfqGlk/N9aIO/l1ctWwLyIp500XxkNasNazG91GBEbksEMLlbE5cDOkeuillOWDUZYq9aBZ4w3iDIjtIv+Pl6+I6ZkTY+ZVSSovoev0+hp+q6y6RQ== 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=G/su1NfmZjWx3YXbjixerZ1Pd915s0VhCYfuxPAMjy0=; b=IBmohYiRAig6ZNG4gX8MINMar6nYi3vzGgSTK5kCRgGbnKilJhc7I+B7H+dvBEzzm2lKaI75Ysld3n6iA46x6ySSE8B5tIEuhTxGVy/wHSji9Qe/2igZpUd2J7X0DNR2kp6i04uDl/x1Z5iGI6Duw/j6mcAF+bPNJHugZgkBht38xGX9Ahp/4uKc5lkM32VmRSCwvuOHL416djPCovSwJ6407+8SDuFZy7RlTywSf0R2xiNtciDEibO1aBZm3VvOeLkkohYSPu/Fjk1qmaCWv2BXLNF8HHgQiu01wj/4UaMSuK2QYxj1oz087JAnDMsvp5jTCHo6vCqU0Wg2kjxusg== 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=G/su1NfmZjWx3YXbjixerZ1Pd915s0VhCYfuxPAMjy0=; b=I35Rgz23xU3O9fPMqqDmpo+zpXenuJ+/0f7T7JzaWKQ1uU77z278NulqBPeZyysWoE5MwImY4iiQNXsYryVngEZfrSNw8a76JHIGXL2Qmst3jfJ5PL9nlvxhTdZWESolH00vHzPkzDch23uTracDh37X3jeMjG2ysx8Im32vHCc= 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 BYAPR04MB3925.namprd04.prod.outlook.com (2603:10b6:a02:ae::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Fri, 16 Jul 2021 05:32:23 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5c0e:fbe5:2bd6:ec6]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5c0e:fbe5:2bd6:ec6%4]) with mapi id 15.20.4331.026; Fri, 16 Jul 2021 05:32:22 +0000 Date: Fri, 16 Jul 2021 13:32:15 +0800 From: Xin Ji To: Rob Herring Cc: 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 v9 1/4] dt-bindings:drm/bridge:anx7625:add vendor define flags Message-ID: <20210716053215.GA1121520@anxtwsw-Precision-3640-Tower> References: <308427448195e2db37a32997c6d32905c96ca876.1624349480.git.xji@analogixsemi.com> <20210707073051.GA936385@anxtwsw-Precision-3640-Tower> <20210713221010.GA916196@robh.at.kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210713221010.GA916196@robh.at.kernel.org> X-ClientProxiedBy: HK2PR0302CA0021.apcprd03.prod.outlook.com (2603:1096:202::31) 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 HK2PR0302CA0021.apcprd03.prod.outlook.com (2603:1096:202::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.9 via Frontend Transport; Fri, 16 Jul 2021 05:32:21 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dc3008ed-f774-4e94-e269-08d9481b1617 X-MS-TrafficTypeDiagnostic: BYAPR04MB3925: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KR63njxUVV9oln+83Q7RDMIugv47992+S98GGf7BqwzHzQ7NXjRJgha+Gxf6A3XI9F1X9H9jrSzaM7cVysddi8nPFJ4br5EnsW++pkQ3qF33N1wNP9A/207gmwpXigF5SBABSb/tzvS4VP7Jdd1WX7XElVOm8+UwlhcEgRxqD1XURNP9rWfPmXtkFlLxNsecGNZdegODupmh7Q+Te0CUhZOmIwCaSNYUhWniG9CNWoq4WnJ0+ggk8xo2OJeLawrBxOEyD4FSudbM9a1AXCaU6IiFeAl9pwENiwFUSI/wNHM2nwfnCoBd56qgPAF6YVgoIkEgA3oLBj0aPdSwKO6nCjgAgpdAyhtwc6lJeTyJ6ViBjLS5E9YlzxGsRGLzI50p9gKkdE7UR6YSR1xlTEROQxbbRo3G6Qol18IAMQsOvsYng25AueGUbe8LpvVr8gaFPoL2ocAhAtmeLiVA98MEbAXD0kEOxHSApgef48DuZ8IaGPuHalAK95QV7VkZZqPQUkRFvrmaRmk2P92BT0jNabE2pbH6a2iMSs8yXEPCT5XD+CTb17MnU6SdnQXKD1mn8Q2EaKiHqqlZP39Z/81ggU59/6fVboyoXOpL/ptfJwg8WWwOqkVvD+uDXvPVT4ZnQbktyv2S4+rn5hBYVTKzU7fJxb3dD9XbwrapIimukj0HaZ0YSgsf3E1yYrcwA6v5rKu541Kb48kEFlF9LGGsQw== 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)(55236004)(956004)(7416002)(316002)(33656002)(4326008)(38100700002)(38350700002)(54906003)(1076003)(478600001)(8676002)(33716001)(8936002)(2906002)(55016002)(52116002)(5660300002)(186003)(66476007)(83380400001)(66946007)(66556008)(6496006)(6916009)(86362001)(9686003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?4iJbN7P8lunrDY8LZTbJ4z92XRa2jvpQE5kOjbdZixCZDglVOp1b3dzyKkd4?= =?us-ascii?Q?lp/VZHotq3b97lkYASHPYkVAtOuNy4dEJF2QgJchEsoMGTeAntI2MyumdiRB?= =?us-ascii?Q?4JA7CYhu0WTqKhT45jfQOlWL19HjdEbIHMfhxcoPrq536DzO8guEHmQNjT1B?= =?us-ascii?Q?kNmSV+K0nRWMtpBqd0TruJJnLprMynqo/NLNDGtqNuHNmM+3WGyIPy5EFJcF?= =?us-ascii?Q?9Qi0YR5K2o+PJVN3pSA7Vkm/QiFH/qFBADYt9zPWCMaGyrFGNSgc3ILjPVDd?= =?us-ascii?Q?qSM2Us+iDXDf4fOtSQ3QGYPTVlOefrfJHh9XqxFXlD5gd4Ayhl2e2P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yytLLSIDUrwGYCWnlD5s4Cfn2lHFiZctRUifeW++SafceVUzA?= =?us-ascii?Q?qnYXnbDj31jZEiu5z2Z/ui4EdjAA5A1kptE2/xlAT1ElVISdr2/KIDc12kuk?= =?us-ascii?Q?+/bWNJo3XdQa/sotHx4D5L1S?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc3008ed-f774-4e94-e269-08d9481b1617 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2021 05:32:22.4713 (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: +r2VB9WDTnuGhrZzIKfTo9jOF+21j8a7ND/YPtln2F91zHHl0XfMQnl/DxEplchdYW+WfVEypqIoXRn+QoYh0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB3925 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 04:10:10PM -0600, Rob Herring wrote: > On Wed, Jul 07, 2021 at 03:30:51PM +0800, Xin Ji wrote: > > On Thu, Jun 24, 2021 at 01:57:22PM +0200, Robert Foss wrote: > > > Hey Xin, > > > > > > I would like to merge this series now, but this patch needs a review > > > first. Maybe Laurent/Rob Herring are good candidates. > > > > > > > > > Rob. > > Hi Rob, I get Laurent/Rob comments before, and explained why we needs > > these DT properties, so far, I didn't get any response. > > Do I have to go dig that up? If it was more than a week ago, assume I > don't remember. This is 1 of 100 bindings a week. > > Justify why this is needed in your commit message. Hi Rob, I'll give more detail description in commit message. > > > Hi Rob Herring and Laurent, for the DT property lane0/1-swing, Google > > engineer has strong demond for them, they don't want to move DP swing > > adjusting to kernel, thus may cause change the driver code in each > > project, so config them in DT is a best option. > > Where's the ack from a Google engineer? They didn't give the review ack, but we discussed it offline. Nicolas Boichat known this. Thanks, Xin > > > > > Thanks, > > Xin > > > > > > On Tue, 22 Jun 2021 at 14:31, 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 | 57 ++++++++++++++++++- > > > > 1 file changed, 56 insertions(+), 1 deletion(-) > > > > > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > > > > index ab48ab2f4240..9e604d19a3d5 100644 > > > > --- a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > > > > +++ b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > > > > @@ -43,6 +43,26 @@ properties: > > > > vdd33-supply: > > > > description: Regulator that provides the supply 3.3V power. > > > > > > > > + 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. > > Why do we have the property if we're not supposed to add it. > > > > > + > > > > + 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. > > Wouldn't we have a 'port' node if audio is to be enabled? > > > > > + > > > > ports: > > > > $ref: /schemas/graph.yaml#/properties/ports > > > > > > > > @@ -50,13 +70,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 > > Use 'unevaluatedProperties: false' instead... > > > > > + > > > > + properties: > > > > + remote-endpoint: true > > ...And drop this. > > > > > + bus-type: true > > This device supports all the possible bus types? What's the default as > it is not required? > > > > > + data-lanes: true > > And up to 8 lanes? > > > > > + > > > > + required: > > > > + - remote-endpoint > > > > + > > > > + required: > > > > + - endpoint > > You can drop both 'required'. > > > > > + > > > > > > > > port@1: > > > > $ref: /schemas/graph.yaml#/properties/port > > > > description: > > > > Video port for panel or connector. > > > > > > > > + properties: > > > > + endpoint: > > > > + $ref: /schemas/media/video-interfaces.yaml# > > Doesn't look like anything from video-interfaces.yaml is used. This > whole chunk is not needed. > > > > > + type: object > > > > + additionalProperties: false > > > > + > > > > + properties: > > > > + remote-endpoint: true > > > > + > > > > + required: > > > > + - remote-endpoint > > > > + > > > > required: > > > > - port@0 > > > > - port@1 > > > > @@ -87,6 +137,9 @@ examples: > > > > vdd10-supply = <&pp1000_mipibrdg>; > > > > vdd18-supply = <&pp1800_mipibrdg>; > > > > vdd33-supply = <&pp3300_mipibrdg>; > > > > + 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>; > > > > @@ -96,6 +149,8 @@ examples: > > > > reg = <0>; > > > > anx7625_in: endpoint { > > > > remote-endpoint = <&mipi_dsi>; > > > > + bus-type = <5>; > > > > + data-lanes = <0 1 2 3>; > > > > }; > > > > }; > > > > > > > > -- > > > > 2.25.1 > > > > > >