Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10748040ybl; Fri, 27 Dec 2019 01:20:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyMm82UJ+hkjmkeMOlvZuGwCJrOIlmQ152U6pN6hjByZiUYKXAk6lJ8dz0FWj6Yp5dnJO0I X-Received: by 2002:a9d:6c01:: with SMTP id f1mr52688893otq.133.1577438448336; Fri, 27 Dec 2019 01:20:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577438448; cv=none; d=google.com; s=arc-20160816; b=Uc+GribDMV+VjD+dbzaoH4vCDX8AsOlO0rsJV4dKsV0HoUk2aKl+pCN+96f5tdhBKU 2DGaxL9LivjtjgD/vxdxzxoU+F6J7K+Ziea7mIBJUy0j0ndooitN1k0vJIu+N/VPrY/M NRuEPnG4CUxm6XyiE+KbLYraeJPoayd8zY+qmSCk8qV1rhZjOeFcCXD3EbgnL7V80nJu 1YLK2c0HBe5vGb3mMNRsAa8v+0GeF2ph/eZRRAdByJnEjOuP9QIC5Jik1LYs8k90qfam SIODDE5kMZhxhneUETVnZzz3gdnu3424MeXjZes4aDAeZyj3tyKaiXNFDTUf8yyrWBCt LyLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ai9kgayOHkPeYk3/tUvfn4FPZczAoOP+R7UpzO3LrUg=; b=PY0FxC2VILhH8u9uot6jqtS9VFlZExEklnLij6UfTZvNUqas+ghlXYYl7QwCcfTE0L d4Jr11kd6lqsbnq+iSJW9KbB6ZuPm4xJXfG5cB49cSJwrSAwD3DEAusYiBSg/wYSiasF RlKIxbwR0NbgWK6/8QOJw8FLs/fyL6h+aBwg8ofVIZBymyGmwKu0wFYEDeRUD7yyiEym UuVCc46HMZ+p2nRi/7AFo4XmEsyyt6Fw6SpJeNtCIL+q2y2ZdY/tKxncvoNJSWn/DqF2 Kxn8rg6hxgbae7OX5MrLbmZlXcnsPCeRoJtHiWzTWgqqqbgWVAhahYw6DExfFDMQRqd6 4irw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l131si16466430oig.120.2019.12.27.01.20.33; Fri, 27 Dec 2019 01:20:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726408AbfL0JTr (ORCPT + 99 others); Fri, 27 Dec 2019 04:19:47 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42462 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726169AbfL0JTq (ORCPT ); Fri, 27 Dec 2019 04:19:46 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 03D5B283C07 Subject: Re: [PATCH v22 1/2] Documentation: bridge: Add documentation for ps8640 DT properties To: Ezequiel Garcia , linux-kernel@vger.kernel.org, Rob Herring Cc: Collabora Kernel ML , matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, Jitao Shi , Rob Herring , Philipp Zabel , Ulrich Hecht , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, David Airlie , Mark Rutland , Daniel Vetter References: <20191223143538.20327-1-enric.balletbo@collabora.com> <20191223143538.20327-2-enric.balletbo@collabora.com> <9fc5e30b8bc7e160ddc54a2056ca6e57eaebbab4.camel@collabora.com> From: Enric Balletbo i Serra Message-ID: <9eee88d1-21d4-5571-038f-60bc7fa05d3f@collabora.com> Date: Fri, 27 Dec 2019 10:19:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <9fc5e30b8bc7e160ddc54a2056ca6e57eaebbab4.camel@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ezequiel, On 26/12/19 15:27, Ezequiel Garcia wrote: > Hi Enric, Rob, > > On Mon, 2019-12-23 at 15:35 +0100, Enric Balletbo i Serra wrote: >> From: Jitao Shi >> >> Add documentation for DT properties supported by >> ps8640 DSI-eDP converter. >> >> Signed-off-by: Jitao Shi >> Acked-by: Rob Herring >> Reviewed-by: Philipp Zabel >> Signed-off-by: Ulrich Hecht >> Signed-off-by: Enric Balletbo i Serra > [..] >> + >> + ports: >> + type: object >> + description: >> + A node containing DSI input & output port nodes with endpoint >> + definitions as documented in >> + Documentation/devicetree/bindings/media/video-interfaces.txt >> + Documentation/devicetree/bindings/graph.txt >> + properties: >> + port@0: >> + type: object >> + description: | >> + Video port for DSI input >> + >> + port@1: >> + type: object >> + description: | >> + Video port for eDP output (panel or connector). >> + >> + required: >> + - port@0 >> + > > Is it correct to require port@0 ? This could be called port@1 > or port@2, and IIUC it should bind the same. > My understanding is that at least the Video port for DSI input is required, which makes sense, otherwise you have the chip connected nowhere. port@1 is optional because it could be connected to a eDP panel or can just be a connector. About your second question, I am not sure I understand you. You mean that have a DT like this should work? ports { #address-cells = <1>; #size-cells = <0>; port@1 { reg = <0>; ps8640_in: endpoint { remote-endpoint = <&dsi0_out>; }; }; port@2 { reg = <1>; ps8640_out: endpoint { remote-endpoint = <&panel_in>; }; }; }; Probably yes, because the driver what really looks is the register value, but that's odd and probably a bad practice. Also if I am not wrong the convention is name the nodes with port@ (like we do in i2c devices for example) port@0 is the label that has the register value to 0. port@1 is the label that has the register value to 1. ... Thanks, Enric > Thanks, > Ezequiel > >> +required: >> + - compatible >> + - reg >> + - powerdown-gpios >> + - reset-gpios >> + - vdd12-supply >> + - vdd33-supply >> + - ports >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + #include >> + i2c0 { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + ps8640: edp-bridge@18 { >> + compatible = "parade,ps8640"; >> + reg = <0x18>; >> + powerdown-gpios = <&pio 116 GPIO_ACTIVE_LOW>; >> + reset-gpios = <&pio 115 GPIO_ACTIVE_LOW>; >> + vdd12-supply = <&ps8640_fixed_1v2>; >> + vdd33-supply = <&mt6397_vgp2_reg>; >> + >> + ports { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + port@0 { >> + reg = <0>; >> + ps8640_in: endpoint { >> + remote-endpoint = <&dsi0_out>; >> + }; >> + }; >> + >> + port@1 { >> + reg = <1>; >> + ps8640_out: endpoint { >> + remote-endpoint = <&panel_in>; >> + }; >> + }; >> + }; >> + }; >> + }; >> + >> -- >> 2.20.1 >> >> > > >