Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2603287pxb; Mon, 11 Jan 2021 14:20:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwM6qgPBc24hygI0tBBG76B59F8kVk0AyCexasI662V7WirUnhkx5PT6d1XX2mbnnUYIv4o X-Received: by 2002:a17:907:e9e:: with SMTP id ho30mr1050278ejc.529.1610403655146; Mon, 11 Jan 2021 14:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610403655; cv=none; d=google.com; s=arc-20160816; b=OvNj6TrTBUVegG6LyGQo9GaZKkkHSOLIN1tgBbdAIoANQyigb4shfwD+BtBbV8tNgv NPUx6GSOFiRDE88W3Mg10rJseWSu/STvCrtAUigH2C0CZhBEO4/uINFpW3srGRh974YA ab/NkXzjvvZe16fg3sQEGivnlAH4oA4/mbttxUAjv5r3qxIpRqedwdTq8QbJ7kJGBO4k zwV48wGtLtfNP3fJEf0X9kkJLh0vQbL2lCofS0wTgbMtVdhjjdz92gqdKZ2rryZ4IiHg T7ZYTZ5lDdMNNoJn/9SmIsGIwIC1sWhMgY0fXL+i7u5kfnjnOwMwv78P9KCwVUdDisAa 8Uwg== 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=EUpURo/tqlO11d0ZWh9pJqmfT9/Dqh7vfkqpzFQuRyw=; b=kyDwaH+PgPRRan2fekjPUFCN9oGkw8/C4/k0TOoBPchP9fgP4IIkQtPqsEUAxlqimr SJI5Df3Se3E+lvvV7n1eJO/qUQwRBuEQQHJZwYO/OeXKJW+fay7+eDV128ALuoBYznkV 8yEL9Aqn+xT9BV1r6vIQtG9a8QgSCR02EFhEjoRfF9gNl0K0m6630R8vuFIll3NURrN9 k4EWhm3epznT8CH6sd5d+5Pi8/yWihtbRmMHS12yHgDhbAYZWEqC1q313l8Zsa0wYl0W NIo+IJY09Cf6psHVNsfPFyDLWWq83pYD51+ZczyaszeI+SWcClWdzrUxzzwPMSbMMnWH +hVw== 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 df21si406578edb.207.2021.01.11.14.20.30; Mon, 11 Jan 2021 14:20:55 -0800 (PST) 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 S2389581AbhAKWPT (ORCPT + 99 others); Mon, 11 Jan 2021 17:15:19 -0500 Received: from mail-ot1-f53.google.com ([209.85.210.53]:38407 "EHLO mail-ot1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726725AbhAKWPS (ORCPT ); Mon, 11 Jan 2021 17:15:18 -0500 Received: by mail-ot1-f53.google.com with SMTP id j20so404240otq.5; Mon, 11 Jan 2021 14:15:02 -0800 (PST) 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=EUpURo/tqlO11d0ZWh9pJqmfT9/Dqh7vfkqpzFQuRyw=; b=H5XUPXC5cgK/vneHOa5+gitNs6T6K35m6+yK3WecqF8T/F25nzkZTJtuXbFcizOkpI S/RYd/vaFSPXrYm6lI9UR4HAW3dsQTqkRBui0CT79F8ADgiwkSz1IzVAgCleIfB7JDwi Feozc8B9rZ7y480XpM+JPijJgTFRx7A3bqkKN8kQYy6bkJ4c1szKTEkS1oigI3Cuo6gP wF8WF0o/DtP0KAsuWnj8NgakC37PPX0SyGXLiHfHC7opkD6MWglvxaQ+FsZkWEtrmYtW U45rTHi4DJ6QuC3u28+hjvAmZlH8eQh5JDUd6UAAvv+LV9GNw03P92P83dkUbYlJp6Rp AbpQ== X-Gm-Message-State: AOAM533YtZeesJytnJwNvGL4GahNcVtPYzzmcxyID+jVbUJcIToieQ5n 9j5TXajeZRUk/1MsRWtt2Q== X-Received: by 2002:a9d:2248:: with SMTP id o66mr847503ota.236.1610403277462; Mon, 11 Jan 2021 14:14:37 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id w9sm236310otq.44.2021.01.11.14.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 14:14:36 -0800 (PST) Received: (nullmailer pid 3152734 invoked by uid 1000); Mon, 11 Jan 2021 22:14:35 -0000 Date: Mon, 11 Jan 2021 16:14:35 -0600 From: Rob Herring To: Xin Ji 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, Sheng Pan , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: drm/bridge: anx7625: add DPI flag and swing setting Message-ID: <20210111221435.GA3138373@robh.at.kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 31, 2020 at 10:21:12AM +0800, Xin Ji wrote: > Add DPI flag for distinguish MIPI input signal type, DSI or DPI. Add > swing setting for adjusting DP tx PHY swing > > Signed-off-by: Xin Ji > --- > .../bindings/display/bridge/analogix,anx7625.yaml | 25 ++++++++++++++++++++-- > 1 file changed, 23 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > index 60585a4..4eb0ea3 100644 > --- a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > +++ b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > @@ -34,6 +34,16 @@ properties: > description: used for reset chip control, RESET_N pin B7. > maxItems: 1 > > + analogix,swing-setting: > + type: uint8-array Humm, this should have be rejected by the meta-schema. > + $ref: /schemas/types.yaml#/definitions/uint32-array This is how types are defined other than boolean or nodes (object). > + description: an array of swing register setting for DP tx PHY > + > + analogix,mipi-dpi-in: > + type: int > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: indicate the MIPI rx signal type is DPI or DSI Why does this need to be in DT, you should be able to determine this based on what you are connected to. > + > ports: > type: object > > @@ -49,8 +59,8 @@ properties: > Video port for panel or connector. > > required: > - - port@0 > - - port@1 > + - port@0 > + - port@1 > > required: > - compatible > @@ -72,6 +82,17 @@ examples: > reg = <0x58>; > enable-gpios = <&pio 45 GPIO_ACTIVE_HIGH>; > reset-gpios = <&pio 73 GPIO_ACTIVE_HIGH>; > + analogix,swing-setting = <0x00 0x14>, <0x01 0x54>, > + <0x02 0x64>, <0x03 0x74>, <0x04 0x29>, > + <0x05 0x7b>, <0x06 0x77>, <0x07 0x5b>, > + <0x08 0x7f>, <0x0c 0x20>, <0x0d 0x60>, > + <0x10 0x60>, <0x12 0x40>, <0x13 0x60>, > + <0x14 0x14>, <0x15 0x54>, <0x16 0x64>, > + <0x17 0x74>, <0x18 0x29>, <0x19 0x7b>, > + <0x1a 0x77>, <0x1b 0x5b>, <0x1c 0x7f>, > + <0x20 0x20>, <0x21 0x60>, <0x24 0x60>, > + <0x26 0x40>, <0x27 0x60>; This is a matrix, which is different from an array type. > + analogix,mipi-dpi-in = <0>; > > ports { > #address-cells = <1>; > -- > 2.7.4 >