Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp192123pxv; Wed, 14 Jul 2021 01:34:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpFBv4Lu0ev/6Iba+CZildt761iKXPHyoKenGe6Pv/YDiZ9abnyGR5OBKs5nWdxoUo4/os X-Received: by 2002:a17:906:c006:: with SMTP id e6mr11230511ejz.510.1626251670564; Wed, 14 Jul 2021 01:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626251670; cv=none; d=google.com; s=arc-20160816; b=nIgOegUVeSWiDjTB6BUF2swNmQdcL8/KdnhM7EE4+jKJo9kcrF2ds46oZ8TA2Xpmmd jV2DGrsoQs62B1/+0B9HA8sbnV5C6Uot8snvRlvlnGoLwaxejjpDZddWcXKQ3rEzKIyW f0HFJm7EnCv9qQnkgnhn0SHvlsaKQw29LJVOMRqg+CEGC/+OwrfDoHBEzFKiVzBXrOJJ E5mV6k/LOb3E0QKmOamB22a0VXGvEKUb1mNFOhjRzQNtcv7OTx53h0isTVdCvzG0WflT OOsi7TX+fCUqiHUxK0X+BlaYaFZaXUVe0E3IanVaffFZwi+UQxqFikdRYbCxMbFRdsJY iJTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zV2QvoGHNHwzGpRgZvl3PzEmRD9Pr+Yw2dHj/jZHO+k=; b=E4Hu8nArdS4QSmDCVK6RZ3WmIczmZVOIR9vTM6pR8YttWYVoUfPi7ro72xHNxibBzO Akx+RD2WNXzilJ8OHcxiNEA+i6kSDSzoMb3p4CuvuW5mUPBvcUAAc75ZxqlpL140IlxA yhTMbVNxKwlY1jy401YmfaYGSTFvfCvAa9l2YQRB1nSYvYQs7lNtnOX0J9vsCocfKezC hh8ejhsDfdttld3Gs/P5zWUfPx/3jJH2/62J1BnKqNpdAWcyIHtOnxZLxwk63XFNHuxo fXh6oc5IEgYE3XMAiA1EUrBKgNyKU+D9m3wN2wHmGuTktdFUtWDD9NwOjMJaZnUY5PSF a2AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=MPwRm6kr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x25si1906194ejs.544.2021.07.14.01.34.07; Wed, 14 Jul 2021 01:34:30 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=MPwRm6kr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238595AbhGNIfb (ORCPT + 99 others); Wed, 14 Jul 2021 04:35:31 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:49752 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238589AbhGNIf3 (ORCPT ); Wed, 14 Jul 2021 04:35:29 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EF960CC; Wed, 14 Jul 2021 10:32:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1626251556; bh=jKDxdCR/47jG5iunXdfBy5N82ZjyM5+IZvoSipRRYFQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MPwRm6krENd5glAHM+t2YcpCx17rA11v9T9jJBX0LtPAeALZMivtNOUYAnT1Pk0Qv j88ETcxfAbZ4gBvsmbOPh1tIma46LxIt8CAAFrx6lWEfrlsr2zgGA6+IxV3IpEg7S8 exLHrb8bHdW05GPVPTC4gWiKsNxE/bGFLoFIk7tE= Date: Wed, 14 Jul 2021 11:32:35 +0300 From: Laurent Pinchart To: Xin Ji Cc: Robert Foss , Rob Herring , David Airlie , Nicolas Boichat , Hsin-Yi Wang , Daniel Vetter , Sam Ravnborg , Maxime Ripard , Mark Brown , Ricardo =?utf-8?Q?Ca=C3=B1uelo?= , 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: References: <308427448195e2db37a32997c6d32905c96ca876.1624349480.git.xji@analogixsemi.com> <20210707073051.GA936385@anxtwsw-Precision-3640-Tower> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210707073051.GA936385@anxtwsw-Precision-3640-Tower> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Xin, 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. > > Hi Rob, I get Laurent/Rob comments before, and explained why we needs > these DT properties, so far, I didn't get any response. > > 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. Hardcoding it in the driver is certainly not a good option, but hardcoding it in DT isn't either unless you can explain how the value should be computed. "Contact the vendor" isn't good enough. > > 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. > > > + > > > + 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 > > > > > > @@ -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 > > > + > > > + 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 > > > @@ -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>; > > > }; > > > }; > > > -- Regards, Laurent Pinchart