Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp1021607lko; Tue, 13 Jul 2021 15:15:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuVb/6fKYhL7IeBbBn1yQZ8AkgObvXCdqroQIOVbL+0Eyk4CUqp8tnHWMft5ZeP0ggPLTZ X-Received: by 2002:a17:907:e8c:: with SMTP id ho12mr2381667ejc.552.1626214558268; Tue, 13 Jul 2021 15:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626214558; cv=none; d=google.com; s=arc-20160816; b=h4ugne3iXtFKQAeqFBt5V+FK/RrY+uMwU7WnLXRNn0wsf58vegiXQkw9jaT7GT7DTb xvfZEXpISxrEOIS4OFu0XcOIyFWYm2epBt/cxnHEoQmFu+8ADMKX3NOiQMubD1zK0lza yR6tagtuYEQf3nJn36kY4tL/IU2XVb0Gvo9NN+K4/ecs8oLHgVuTbnQLF8ZPx/FnNSFE dvzq0ruMZdERd6+H7X++CNEwWlEtGIGPnh36eKnnLUI3QmlDWShx8uqPQ/41pgWC1okS lqcFkLVacPWbMpISWIPU1/zQxM6NZhO7TrHBb3RHIxW3bO9VTGJOZOtncGcUJeNOtAEE K/ZA== 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; bh=I836Y03DloC/Q/3mWy2ffCQlaq2BnV1RVfWxpJJqnrc=; b=Mxz/9shJ9VZyuuXjXLAEAvJEWc82IdKkbhtmBr3YUSCF6pSJbC2rw4MrYTd/ZYwOYx I2IKBai2JZnZkowcRkm8yWWqhQ54685DnIUXnZQmBAT/koPoen4JFIf0ZYbkCB1hLtns XuChRFxxAM7VyPDYYRre++3zm7QQzzE8HFcz/7yPU1D+aeJlYbW/3u/N1NARstRr7Lix o535b9PpTXCqBi/RsZiD27EDiiy3ZQ2tSdqEdVwag4VmfXn86vmS3MH00DhICa60/Nj3 ApDT73WHHPaQR05nnvgcZAzvOt67ZsUTGiGR5mHkAhF7f8T5tqpLnlTXSzyjFE5ifLYe SWVA== ARC-Authentication-Results: i=1; mx.google.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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw1si89148edb.509.2021.07.13.15.15.26; Tue, 13 Jul 2021 15:15:58 -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; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236495AbhGMWNO (ORCPT + 99 others); Tue, 13 Jul 2021 18:13:14 -0400 Received: from mail-il1-f176.google.com ([209.85.166.176]:41634 "EHLO mail-il1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236350AbhGMWNN (ORCPT ); Tue, 13 Jul 2021 18:13:13 -0400 Received: by mail-il1-f176.google.com with SMTP id p3so4740837ilg.8; Tue, 13 Jul 2021 15:10:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=I836Y03DloC/Q/3mWy2ffCQlaq2BnV1RVfWxpJJqnrc=; b=i4+EP1+1wUp9l2CMrRT8iwHthOirTLIdSUKapuWBPkDywOVr0MgwEtTFGF1+ji+wYr buc/0rSZgABJCjxCGFg8X7pcOeX89tpCUIkTL5QDzZfPkmkHytIbWkraeaSvjyTXVIUi 77W6Bn2cwn21f/0e+7PL4w8EBEN5vhxZusY+4i6TwXAZNRpcTHrLl2rozB9NshS2Ps7x 7RhkOrcByTHWJAveJKAWRtT5AQ5BHyosDXU4v2xR61XvYqomnh+3A8G/cvx3fyfTLc7i tGu3rF6LJ2l0iqWlYzJrRK33EM7ClQCweqh8w9a9yOd9wFZP0ojGyt5H3G/QrdAHCeyQ TSPA== X-Gm-Message-State: AOAM533JiNGSKC4Xi8McOmiz3BRWuoqCrboSpng2yXdzRt+RsuA87sL0 Iyn7MXHAWqG0b67Qv/wIuiqwrHyY0w== X-Received: by 2002:a92:7d08:: with SMTP id y8mr4125420ilc.43.1626214222086; Tue, 13 Jul 2021 15:10:22 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id b9sm161468ilo.23.2021.07.13.15.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 15:10:21 -0700 (PDT) Received: (nullmailer pid 934954 invoked by uid 1000); Tue, 13 Jul 2021 22:10:10 -0000 Date: Tue, 13 Jul 2021 16:10:10 -0600 From: Rob Herring To: Xin Ji Cc: Robert Foss , 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: <20210713221010.GA916196@robh.at.kernel.org> References: <308427448195e2db37a32997c6d32905c96ca876.1624349480.git.xji@analogixsemi.com> <20210707073051.GA936385@anxtwsw-Precision-3640-Tower> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210707073051.GA936385@anxtwsw-Precision-3640-Tower> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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? > > 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 > > > >