Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2467182lqo; Mon, 13 May 2024 22:09:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxeqPjlsTjIzX/5TpI++vLP5a7rC+Q2mPBNFY2Svx8t68feFZZhKc1kMXmjZOku9ewBW63oVsv20BSfbBXv46vJ4rCBlgVtq8iciDnRw== X-Google-Smtp-Source: AGHT+IHON22lfC0q2pP6eGTAFgEm3f2bH3EU5CNjh3wqA+sqc53Nun1FVoVxyHKepFUUIkK9XTH3 X-Received: by 2002:a17:902:f602:b0:1eb:7bc7:8855 with SMTP id d9443c01a7336-1ef43d17094mr161174585ad.2.1715663356855; Mon, 13 May 2024 22:09:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715663356; cv=pass; d=google.com; s=arc-20160816; b=pYSSmEnG9UcEjHab9NXZNjCoXLK5uL+vNPXdntNxqlZpJa9a7Qr1cAZhS2yBsplXRO f9mKHUQbkrqtqehyyEFR2PByWVWFDfEU+w82NzhPbr/apNOhMuo3mtS6ZOef5jSOSHZa hHpXs7U4pA9VXMukM22lnuUUUbJJ6aETtwsah1idzrILRgkF/k+zc6+hNrcDnp9+qYLX uXOzM0AEraRFLKTVUjhPd8Gb0GoWcwUNcwxWxRiHMPX+zmFJ0dQS8fJTBZ2xPiNu7d37 O72a9bJ6/Ad+Tzp1LF8R7qOO+0zc8+3eABn1G6P0pxJk+6h6UvIZnxCyQ4a89nIRb0qf iwag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=yBMKBLuh7D78bOQzhm5+DgKkaea+stGzc4l0jX34Gfw=; fh=Yvj9PC+s5GMQApyOWnej0HPw3gjam391IFulNoRSBnY=; b=laJ/sU/hRO7+0kQByokZ9ONlWxv8/6H9RB/WuJbptzoarKipRC3C7g0ldlgiz8gQa0 r6BPQq9KEjpHMLD8kclg2tXGQYqGXD+Rw9P1FiilPliA08qr2OsXEk03DedueZMmSUvO zXh8O67F9XMpqb14p3WBNXvMePgjH69aj8NuPOHUarDUUC8jZkBeWI/byUDAzUB49Bks PaBcKBQEE61cVqp/5TEr+zLQ7+GZpdXTmbO8NqAHow0PCS/4Mk+KaVuUZ0b5uohYF1ib Hc0PcNtUwiiHzXUnesx4sBJ96k0e8zJyVy/i8zyrtW22Fmz1zKzu0Mo0U4fYlFCdNLMp vNGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="kvL/1Bj/"; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-178321-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c26a2fasi107611135ad.607.2024.05.13.22.09.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 22:09:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178321-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="kvL/1Bj/"; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-178321-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 783772856FF for ; Tue, 14 May 2024 05:09:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E6DE179AD; Tue, 14 May 2024 05:09:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="kvL/1Bj/" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5AF8712E78; Tue, 14 May 2024 05:09:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715663348; cv=none; b=iP55Lh9aVfATOROuUsGFrbIKdCvAul54dmCw7GMLNuJnlddfAn0BzNp3Uw5MBX+9v5DB0yB4ZBWeiMrB33mBUeFruzrz5qH0tKYXLVLfPAGbVwXmH1kTp+AbLSHQH4JZwXk5cUmw4Olh2GdVSymRY/0G8+4+A22r9a8p5JM3ems= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715663348; c=relaxed/simple; bh=4qU1Fk3ItupjU1CGsNwCcxlvT3cuhbTGO4TIzraKwcg=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=T1rI9nKmLuINfzvyJox0nFoJhwkHkxrRDVuCWNqrHtQ7wxAmUtTMp0Gs+IaNHnz+fFbNKPPn074KzEwsO6MY1jtS46kOQCsNtAEQPrTqhNhDZWJXxNjqfDrMbfS308WRGU4YaP9aEtAs9bK3SB0T6mKiNu7hW2atXOqb2GPBCjc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=kvL/1Bj/; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44E58O33128134; Tue, 14 May 2024 00:08:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1715663304; bh=yBMKBLuh7D78bOQzhm5+DgKkaea+stGzc4l0jX34Gfw=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=kvL/1Bj/paktdHIV9civJ2kyHffBLeL90jDtDMw23/sTPE86oIdS9GCJCC7BBAJ3+ VPVf6IfXSgqBNeQx+SVQS7M7avGWLbWg4v+BG7pp82O/a9eRO6BC8pHFa3Hccm+QyZ exgEtLVd7BLImCM+OVPP2oZ4gg8XYDP8pvJZXlpk= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44E58OQv041401 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 14 May 2024 00:08:24 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 14 May 2024 00:08:24 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 14 May 2024 00:08:23 -0500 Received: from [10.249.131.75] ([10.249.131.75]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44E58E7Z048288; Tue, 14 May 2024 00:08:15 -0500 Message-ID: Date: Tue, 14 May 2024 10:38:14 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] dt-bindings: display: ti: Add schema for AM625 OLDI Transmitter To: Rob Herring CC: Laurent Pinchart , Tomi Valkeinen , Jyri Sarha , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Neil Armstrong , David Airlie , Daniel Vetter , Krzysztof Kozlowski , Conor Dooley , DRI Development List , Devicetree List , Linux Kernel List , Nishanth Menon , Vignesh Raghavendra , Praneeth Bajjuri , Udit Kumar , Francesco Dolcini , Alexander Sverdlin , Randolph Sapp , Devarsh Thakkar , Jayesh Choudhary , Jai Luthra References: <20240511193055.1686149-1-a-bhatia1@ti.com> <20240511193055.1686149-3-a-bhatia1@ti.com> <20240512193459.GF17158@pendragon.ideasonboard.com> <20240513193009.GA2986074-robh@kernel.org> Content-Language: en-US From: Aradhya Bhatia In-Reply-To: <20240513193009.GA2986074-robh@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Hi Rob, Thank you for reviewing the patches! On 14/05/24 01:00, Rob Herring wrote: > On Mon, May 13, 2024 at 02:07:44PM +0530, Aradhya Bhatia wrote: >> Hi Laurent, >> >> Thank you for reviewing the patches! >> >> On 13-May-24 01:04, Laurent Pinchart wrote: >>> Hi Aradhya, >>> >>> Thank you for the patch. >>> >>> On Sun, May 12, 2024 at 01:00:53AM +0530, Aradhya Bhatia wrote: >>>> Add devicetree binding schema for AM625 OLDI Transmitters. >>>> >>>> Signed-off-by: Aradhya Bhatia >>>> --- >>>> .../bindings/display/ti/ti,am625-oldi.yaml | 153 ++++++++++++++++++ >>>> MAINTAINERS | 1 + >>>> 2 files changed, 154 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/display/ti/ti,am625-oldi.yaml >>>> >>>> diff --git a/Documentation/devicetree/bindings/display/ti/ti,am625-oldi.yaml b/Documentation/devicetree/bindings/display/ti/ti,am625-oldi.yaml >>>> new file mode 100644 >>>> index 000000000000..0a96e600bc0b >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/display/ti/ti,am625-oldi.yaml >>>> @@ -0,0 +1,153 @@ >>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>>> +%YAML 1.2 >>>> +--- >>>> +$id: http://devicetree.org/schemas/display/ti/ti,am625-oldi.yaml# >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>> + >>>> +title: Texas Instruments AM625 OLDI Transmitter >>>> + >>>> +maintainers: >>>> + - Tomi Valkeinen >>>> + - Aradhya Bhatia >>>> + >>>> +description: | >>>> + The AM625 TI Keystone OpenLDI transmitter (OLDI TX) supports serialized RGB >>>> + pixel data transmission between host and flat panel display over LVDS (Low >>>> + Voltage Differential Sampling) interface. The OLDI TX consists of 7-to-1 data >>>> + serializers, and 4-data and 1-clock LVDS outputs. It supports the LVDS output >>>> + formats "jeida-18", "jeida-24" and "vesa-18", and can accept 24-bit RGB or >>>> + padded and un-padded 18-bit RGB bus formats as input. >>>> + >>>> +properties: >>>> + reg: >>>> + maxItems: 1 >>>> + >>>> + clocks: >>>> + maxItems: 1 >>>> + description: serial clock input for the OLDI transmitters >>>> + >>>> + clock-names: >>>> + const: s_clk >>>> + >>>> + ti,companion-oldi: >>>> + $ref: /schemas/types.yaml#/definitions/phandle >>>> + description: >>>> + phandle to companion OLDI transmitter. This property is mandatory for the >>>> + primarty OLDI TX if the OLDI TXes are expected to work either in dual-lvds >>>> + mode or in clone mode. This property should point to the secondary OLDI >>>> + TX. >>>> + >>>> + ti,secondary-oldi: >>>> + type: boolean >>>> + description: Boolean property to mark an OLDI TX as secondary node. >>>> + >>>> + ti,oldi-io-ctrl: >>>> + $ref: /schemas/types.yaml#/definitions/phandle >>>> + description: >>>> + phandle to syscon device node mapping OLDI IO_CTRL registers found in the >>>> + control MMR region. This property is needed for OLDI interface to work. >>>> + >>>> + ports: >>>> + $ref: /schemas/graph.yaml#/properties/ports >>>> + >>>> + properties: >>>> + port@0: >>>> + $ref: /schemas/graph.yaml#/properties/port >>>> + description: Parallel RGB input port >>>> + >>>> + port@1: >>>> + $ref: /schemas/graph.yaml#/properties/port >>>> + description: LVDS output port >>>> + >>>> + required: >>>> + - port@0 >>>> + - port@1 >>>> + >>>> +allOf: >>>> + - if: >>>> + properties: >>>> + ti,secondary-oldi: true >>>> + then: >>>> + properties: >>>> + ti,companion-oldi: false >>>> + ti,oldi-io-ctrl: false >>>> + clocks: false >>>> + clock-names: false >>>> + >>>> + else: >>>> + required: >>>> + - ti,oldi-io-ctrl >>>> + - clocks >>>> + - clock-names >>>> + >>>> +required: >>>> + - reg >>>> + - ports >>>> + >>>> +additionalProperties: false >>>> + >>>> +examples: >>>> + - | >>>> + #include >>>> + >>>> + oldi_txes { >>>> + #address-cells = <1>; >>>> + #size-cells = <0>; >>>> + oldi: oldi@0 { >>>> + reg = <0>; >>>> + clocks = <&k3_clks 186 0>; >>>> + clock-names = "s_clk"; >>>> + ti,oldi-io-ctrl = <&dss_oldi_io_ctrl>; >>> >>> What bus does this device live on ? Couldn't the I/O register space be >>> referenced by the reg property ?. >>> >> >> These registers are a part of the system-controller register space >> (ctrl_mmr0). The whole register set is owned by the main_conf[0] >> devicetree node, with sub-nodes pointing to specific regions. That's why >> I cannot reference these registers directly. > > Then what does 'reg' represent? Looks like you just made up an index. If > so, then this should probably be a child of &dss_oldi_io_ctrl instead. > Or it should just be merged into that node. > I did make up an index when I used the 'reg' property. Similar to how ports can be indexed. The AM65 has 1 OLDI TX. AM62 and AM62P have 2 OLDI TXes each. The index is to help the driver parse through each of them. If I push these OLDI TX nodes as child nodes under &dss_oldi_io_ctrl, then that would be an inaccurate representation of the hardware. The OLDI TXes are very well a part of the DSS hardware. As such, the (three) registers that control the functionality have been made a part of the DSS video-port (VP) register space, leaving OLDI TXes with no direct access to the primary bus (cbass_main) where the DSS sits. The IO control registers, on the other hand, do not affect OLDI functionality in any way. These are just helper registers that merely control the power characteristics of the OLDI data and clock lanes. Regards Aradhya