Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5120981ybl; Tue, 14 Jan 2020 03:56:09 -0800 (PST) X-Google-Smtp-Source: APXvYqw/ALteg18pdPHk/bHAVdTvQ/1MZ00rP93se1ScAU+fCkA0clvZxWD7DZYtsujRHpGSNXKX X-Received: by 2002:a9d:ec1:: with SMTP id 59mr15964429otj.141.1579002969896; Tue, 14 Jan 2020 03:56:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579002969; cv=none; d=google.com; s=arc-20160816; b=R1grwmkYUQkyGa0NCGv4z0NvDLnq65++hSoHQCjmGWBLgnEMlr0iRgyJW7+CjzS7Pp 3HErayL6fI2M70/qziZ7Wg99lIvJKZVMCtIg8DkA6msuKiS0UA9ZvY6KZa67SnBgnKRv PEr7tvX87ANM6LiMLxKbVrI3JuLCht7NEdb9hEAtZICbrQkJ4J8YMj0PQDidkgzBpzyG 5FGERUbbBGR9KzJhsUfRfsoc6Z7nWHPC4BgRJbEvKB5xkGS6j0AmTDteSAY188EGTU28 a+wE+nhT2QCRdFJYbQPPjwoQpgneyyhXrD+ayoial2HdJxjaYZFB6pLVfigT36dp3GrD iLGg== 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:dkim-signature; bh=fL4wb7qxhS863dp+nYgiM3uom70qjY56tgWdTfNmElg=; b=GRLKSUykY+FA0BUOPoUeO64O3JLKKvwhoR1VCiJYusvM6FbQP+O2rCHBFkD//A5qV2 re1D3UTDnEdE6zlEhilBRQMpOATh1trTOxrFmyNkTT1bStjXDdo8Wo+EY5zG+9lh13qX oIjBxQnOs7V/DQgMpBYxKRb8NHBR0e9/JWNLNq+UbRTcSfwN6disFptJVXFjY40QaGjo SIXlW8sLRmpDxGKWZPGGu/Qfb1732geBDbqCRu6em+b2KrXcKRnp7xZ9vMPnqx0H0/dT iSIGZKHh2y0O1fhGMVNEdMtsHWR0Abszp1KYYmlIQlx+N0v/VEf2TsY5ZjRQ+4smHRAA pMtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FxFJ9mdi; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si8902824otm.242.2020.01.14.03.55.58; Tue, 14 Jan 2020 03:56:09 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FxFJ9mdi; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729467AbgANLzG (ORCPT + 99 others); Tue, 14 Jan 2020 06:55:06 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:37446 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbgANLzF (ORCPT ); Tue, 14 Jan 2020 06:55:05 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 00EBsije112647; Tue, 14 Jan 2020 05:54:44 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1579002884; bh=fL4wb7qxhS863dp+nYgiM3uom70qjY56tgWdTfNmElg=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=FxFJ9mdiPIVGIbIDLrJz7hDEuRqZ3iR3bjrKVDg5mLN5u0ZIJxAw42IiJK6fEE1HM FyL2/ptwaXIN2RCQ2+6ETu+UtqlxZkMxUOIvbihBeqyJKbz/ERdoil0NcvXVJ3OvY8 NfR0b96Ob22RWTw3k9UJcytOLS7jZTIpydKU5zdc= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00EBsiwI000606; Tue, 14 Jan 2020 05:54:44 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 14 Jan 2020 05:54:43 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 14 Jan 2020 05:54:44 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00EBsft7013663; Tue, 14 Jan 2020 05:54:41 -0600 Subject: Re: [PATCH 1/2] dt-bindings: display: bridge: Add documentation for Toshiba tc358768 To: Rob Herring CC: , , , , , , , , , , , References: <20191217101506.18910-1-peter.ujfalusi@ti.com> <20191217101506.18910-2-peter.ujfalusi@ti.com> <20191226222449.GA8816@bogus> From: Peter Ujfalusi Message-ID: <7a7067ef-3c1c-ea20-8322-6d90c2c4c680@ti.com> Date: Tue, 14 Jan 2020 13:55:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191226222449.GA8816@bogus> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/12/2019 0.24, Rob Herring wrote: > On Tue, Dec 17, 2019 at 12:15:05PM +0200, Peter Ujfalusi wrote: >> TC358768/TC358778 is a Parallel RGB to MIPI DSI bridge. >> >> Signed-off-by: Peter Ujfalusi >> --- >> .../display/bridge/toshiba,tc358768.yaml | 158 ++++++++++++++++++ >> 1 file changed, 158 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml >> >> diff --git a/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml >> new file mode 100644 >> index 000000000000..8f96867caca0 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml >> @@ -0,0 +1,158 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/display/bridge/toshiba,tc358768.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Toschiba TC358768/TC358778 Parallel RGB to MIPI DSI bridge >> + >> +maintainers: >> + - Peter Ujfalusi >> + >> +description: | >> + The TC358768/TC358778 is bridge device which converts RGB to DSI. >> + >> +properties: >> + compatible: >> + enum: >> + - toshiba,tc358768 >> + - toshiba,tc358778 >> + >> + reg: >> + maxItems: 1 >> + description: base I2C address of the device >> + >> + reset-gpios: >> + maxItems: 1 >> + description: GPIO connected to active low RESX pin >> + >> + vddc-supply: >> + maxItems: 1 > > Drop this. Not an array. *-supply doesn't need further constraints. OK. > >> + description: Regulator for 1.2V internal core power. >> + >> + vddmipi-supply: >> + maxItems: 1 >> + description: Regulator for 1.2V for the MIPI. >> + >> + vddio-supply: >> + maxItems: 1 >> + description: Regulator for 1.8V - 3.3V IO power. > > Blank line here. Oops, I'll fix it. > >> + clocks: >> + maxItems: 1 >> + >> + clock-names: >> + const: refclk >> + >> + ports: >> + type: object >> + >> + properties: >> + "#address-cells": >> + const: 1 >> + >> + "#size-cells": >> + const: 0 >> + >> + port@0: >> + type: object >> + additionalProperties: false >> + >> + description: | >> + Video port for RGB input >> + >> + properties: >> + reg: >> + const: 0 >> + >> + patternProperties: >> + endpoint: >> + type: object >> + additionalProperties: false >> + >> + properties: >> + data-lines: >> + enum: [ 16, 18, 24 ] >> + >> + remote-endpoint: true >> + >> + required: >> + - reg >> + >> + port@1: >> + type: object >> + description: | >> + Video port for DSI output (panel or connector). >> + >> + properties: >> + reg: >> + const: 1 >> + >> + patternProperties: >> + endpoint: >> + type: object >> + additionalProperties: false >> + >> + properties: >> + remote-endpoint: true >> + >> + required: >> + - reg > > No additionalProperties on this one? Correct, I have missed the additionalProperties: false I'll update the binding documents when I get comments for the driver. Thank you, - Péter > >> + >> + required: >> + - "#address-cells" >> + - "#size-cells" >> + - port@0 >> + - port@1 >> + >> +required: >> + - compatible >> + - reg >> + - vddc-supply >> + - vddmipi-supply >> + - vddio-supply >> + - ports >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + i2c1 { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + dsi_bridge: tc358768@0e { >> + compatible = "toshiba,tc358768"; >> + reg = <0x0e>; >> + >> + clocks = <&tc358768_refclk>; >> + clock-names = "refclk"; >> + >> + /* GPIO line is inverted before going to the bridge */ >> + reset-gpios = <&pcf_display_board 0 1 /* GPIO_ACTIVE_LOW */>; >> + >> + vddc-supply = <&v1_2d>; >> + vddmipi-supply = <&v1_2d>; >> + vddio-supply = <&v3_3d>; >> + >> + dsi_bridge_ports: ports { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + port@0 { >> + reg = <0>; >> + rgb_in: endpoint { >> + remote-endpoint = <&dpi_out>; >> + data-lines = <24>; >> + }; >> + }; >> + >> + port@1 { >> + reg = <1>; >> + dsi_out: endpoint { >> + remote-endpoint = <&lcd_in>; >> + }; >> + }; >> + }; >> + }; >> + }; >> + >> -- >> Peter >> >> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. >> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki >> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki