Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2911914ybl; Fri, 20 Dec 2019 00:18:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxK6njeLb/xdwGQ3YYjkBHNBxGKVRwMAo5E3BIVEmKUrtdliepFSW5avzDfCKzc+AEvJFoD X-Received: by 2002:a05:6830:56a:: with SMTP id f10mr12969634otc.368.1576829929102; Fri, 20 Dec 2019 00:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576829929; cv=none; d=google.com; s=arc-20160816; b=mbud4qmY8qTd2fJwDXdx6bC5edR7sfpb7Lct9OGaI2cgrrFOCXqeNSXIB+kCKK0E+O vQiva9xkQl2QwonxmiySQgnWhTfYWGyS3otFslrLBV8Zp/iNCB/hl72fh5fxG1Z5qKYu bXZWKJ/hUiphO6nzaobLKBD7zKRoMEhpAVm6zKBklKPkHIMSEjDDO7QxgYPLh8cTlsW/ u8EvYTQzSyCwOozE+UJ5v9qEAVYvKFxrBbbCzw1EiJ8WYLp4ZOBpckqd+a1V7w3eUxnq S26+UOHYZCDM+BITLNUEp5bEXP2stxw4TQeaJyjwXfNwXY2BFgenMc0GSpWrXhEQBmTv HBKA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=e/x+i2w75+D4xVzt6ghkSDeLpoVfVV5JzipOJ6tUMcs=; b=pjpCUVbnZL7ckCCu3/yZtZqMD/b7yYfErppWWUqJqlNE1HiRZcwOCu04cRqcDC3BIO dbQSA4O7VHlhBMKGVfJIDgES8E12IVtFuSDyBzg06xL/tVtnvEyFF1w50L5CE2AWjfMf BoRXdokw2eEo404Lwi7/AZuhoHRvE+0QonG9pM39ygW+Hf1w9MhEm0l5j33NLdjs5MWK +mCqnbT+WD65FaTrh3uONmgkHIF6ojCYeK4+LyqP/lubybYKO1EN8zYzr0jqKL1Th1rp BTIrpHisDoDA9LAxvsz+Dz+Cp4p6kjPNeT84WhuyQWxHJjfQpbzeNHvRTELIRi+Q55yL yy8A== 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 w10si4861593otg.295.2019.12.20.00.18.35; Fri, 20 Dec 2019 00:18:49 -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 S1727202AbfLTIRx (ORCPT + 99 others); Fri, 20 Dec 2019 03:17:53 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57908 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbfLTIRw (ORCPT ); Fri, 20 Dec 2019 03:17:52 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id C47B4293281 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org 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, Rob Herring , linux-mediatek@lists.infradead.org, David Airlie , Mark Rutland , Daniel Vetter Subject: [PATCH v22 1/2] Documentation: bridge: Add documentation for ps8640 DT properties Date: Fri, 20 Dec 2019 09:17:37 +0100 Message-Id: <20191220081738.1895-2-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191220081738.1895-1-enric.balletbo@collabora.com> References: <20191220081738.1895-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- I maintained the ack from Rob Herring and the review from Philipp because in essence the only thing I did is migrate to YAML format and check that no errors are reported via dtbs_check. Just let me know if you're not agree. Apart from this note that I removed the mode-sel property because is not used and I renamed sleep-gpios to powerdown-gpios. Changes in v22: - Migrate to YAML format (Maxime Ripart) - Remove mode-sel property. - Rename sleep-gpios to powerdown-gpios. Changes in v21: None Changes in v19: None Changes in v18: None Changes in v17: None Changes in v16: None Changes in v15: None Changes in v14: None Changes in v13: None Changes in v12: None Changes in v11: None .../bindings/display/bridge/ps8640.yaml | 112 ++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/ps8640.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/ps8640.yaml b/Documentation/devicetree/bindings/display/bridge/ps8640.yaml new file mode 100644 index 000000000000..5dff93641bea --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/ps8640.yaml @@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/ps8640.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MIPI DSI to eDP Video Format Converter Device Tree Bindings + +maintainers: + - Nicolas Boichat + - Enric Balletbo i Serra + +description: | + The PS8640 is a low power MIPI-to-eDP video format converter supporting + mobile devices with embedded panel resolutions up to 2048 x 1536. The + device accepts a single channel of MIPI DSI v1.1, with up to four lanes + plus clock, at a transmission rate up to 1.5Gbit/sec per lane. The + device outputs eDP v1.4, one or two lanes, at a link rate of up to + 3.24Gbit/sec per lane. + +properties: + compatible: + const: parade,ps8640 + + reg: + maxItems: 1 + description: Base I2C address of the device. + + powerdown-gpios: + maxItems: 1 + description: GPIO connected to active low powerdown. + + reset-gpios: + maxItems: 1 + description: GPIO connected to active low reset. + + vdd12-supply: + maxItems: 1 + description: Regulator for 1.2V digital core power. + + vdd33-supply: + maxItems: 1 + description: Regulator for 3.3V digital core power. + + 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 + +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