Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2258375lqo; Mon, 13 May 2024 12:30:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlsCF3Ptt2nVme7EWH448/u86Px6XuvDtR7VKQ+cRdEcPn9Jb7BsLcSSrNlSbmqUyDT8I1MBABJJbCINpRkt3xGID0NS1/e3g0bBgtWw== X-Google-Smtp-Source: AGHT+IFpmCiHPfJliyXbU84jP1h5ZabfvhTvrSi7cTAdLyaKO4W6hUPEE9TIcgDKWmiCBXyAPpAi X-Received: by 2002:a54:4e90:0:b0:3c9:94f2:5cae with SMTP id 5614622812f47-3c9970580e2mr12390675b6e.17.1715628619499; Mon, 13 May 2024 12:30:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715628619; cv=pass; d=google.com; s=arc-20160816; b=zhWogvdQutw7nVwSROf7T63Ey2hKTjF6FcakIOKDfxnccQtO4h1bqSZfijDNDvDx9f P+YuL1mLQJyyeNS7RhiaVkIenPbFFAQLrJ7XFd2ZiPQZlAseMwkXn14tCYn/QRt4yOzl ceW43XWU9KyTG7TVJP2yY7IHvhQ8fs/DMu5XC5INJpmWV4xXpW2KJyYUHQUhvRJn8lxZ LAuONmKvIuhSHrF5Gv2Vy9arKGzp4zTVPhP60bQGo5l15fQm+gjmFJkmvxjP52jEavyY Fx41wsXfIYVBEirp9+Y4GE2kSWDMTRdkqGibbsffHHRGCZTn+U667jb9iAk+1cSh0LOn u0jQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BRWbj9YpjDQqL0+NYZKTVVelYt0W89ucfeg9NuS301s=; fh=90Q5PCB2SEDAKN+HVcRYCFUt2Hnz0wauhGIIle6YNb8=; b=OfEVZSCXV0MLcTNoNu+dHylMuCacJn6ok4KzqGW3fAXhyviH3g0tecr7neV4ggcSlC i5skpXXDELFDTH/+7TWSkQMfQQVC+A/8e/JFTm4Zrwba9NPiMl2IbXGbGDW/fl8bldts 2qcwumsqzOihb6EtTKLi/h2KEhq08O1IY9B48FSJJnw59ulZJ1uhXpFX4953T64zQ17W IZqGKcyv8Ip4674xAbRRsEJYVMzONDXtVeOMISO1nx39TfiNAGZ89rh7dXSL83Cb6V+f mQpFX32h+Xttq52PGClxisKAdPLHDvbpzAW3/s8a+WuOMQQG3/pOlj9ilgvTBj5exuDQ NVTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tyGGm2RA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178020-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f29d136si87603696d6.231.2024.05.13.12.30.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 12:30:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tyGGm2RA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178020-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 29DB41C2301D for ; Mon, 13 May 2024 19:30:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A90376058; Mon, 13 May 2024 19:30:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tyGGm2RA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7827A745E2; Mon, 13 May 2024 19:30:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715628612; cv=none; b=NYcO5d1bRL/2iTVZZ+Kgz5YdC57JufmqaEpN1ZwZ4HtIY5JTxTHXRx48aBha8317E/UjTzNoxvrrb19FQMkSGuQ3EelD4epmDvt/ofy0LK1kUrbd5W/uWQ1zz89d69hDu6dfjEAM8zCL8UYmjp59jCXrKd4SDwRqxpXaB9SsxRw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715628612; c=relaxed/simple; bh=iThTAPThwTXWAZAmme59Q3SDkLqYOlftEs0Yr1QP0QE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F5H2Tm6uynWmA9vvSXK47eCRo6NrugWaX/rAoVEqiGNMZoB+/yxmaMX68hXeZfCgRnJuNFEsjtuk9lTYEv14I9/PEvDUAXwCb2tcwi1e78G/hoG1JbWBRgd9Ep687c4SP77G5OnSIGJodkyUeD2NVxRMbofFVKzKJlxmFwqIAU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tyGGm2RA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9685C113CC; Mon, 13 May 2024 19:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715628612; bh=iThTAPThwTXWAZAmme59Q3SDkLqYOlftEs0Yr1QP0QE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tyGGm2RAVP1mZAkKhfrfz4v417TAvlwbXuDJRuVh153vHpFC6PB0RLDWWzlsbaXFu 1zb4h5e0mbfJ8mUcu7AJaVWLvTEHTOcYrNO2ke6CdBFjHDrzpv/bwnzeZrOdEwLkTl zfxzPjLeQPriqOai9sRB8GrtpyBbguwfrnQyWD37AohL9ney2Ulm4uEyQEjf5jiW4+ Jil1524zA2Ugl5oTAg/JpetNOwClNUwd32HlPrjHmr9oIii9qAhlfdyk20c5FBSFX5 Jn4NeuW9VckXfkTFDYoeIesS1qjTHo4KAfmjJCjQN3LxTzlRPHumEtdHbRGVTQLnBH jxe/Sx9N99J3w== Date: Mon, 13 May 2024 14:30:09 -0500 From: Rob Herring To: Aradhya Bhatia 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 Subject: Re: [PATCH 2/4] dt-bindings: display: ti: Add schema for AM625 OLDI Transmitter Message-ID: <20240513193009.GA2986074-robh@kernel.org> References: <20240511193055.1686149-1-a-bhatia1@ti.com> <20240511193055.1686149-3-a-bhatia1@ti.com> <20240512193459.GF17158@pendragon.ideasonboard.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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. Rob