Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2401353rwb; Fri, 11 Nov 2022 08:48:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gv/vTahrbTY8wpYbFO5as0Jy8SeyzWrE/bzTIWrrlyySWmp5JbQlD0XzsyOV8zSJ3YvVl X-Received: by 2002:a17:906:32d5:b0:79d:f5f2:6f55 with SMTP id k21-20020a17090632d500b0079df5f26f55mr2362387ejk.531.1668185329894; Fri, 11 Nov 2022 08:48:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668185329; cv=none; d=google.com; s=arc-20160816; b=G8kXo6YWEGnTeCQrpg4om3zkSxP3fOQeZTElnE2kFYMhyPAveg3G8Y/kGIA3UQ1dZv Iir3PkxFzO2L+uBpinC1ZiafssU2O2+MaoNXxMIJ73ZV/OCyty8v6YhnyU/FIuYLcH1g 06rAMzsyrd/zvaGK/4JjLA+zjG+INVI2Kf3iY3B5Kqxb7Dg1umv6zOnTFuckOEK59GLd zSmFY54D1R5xM1qa2JB1WkP5IV5AwSsGsmfv6HbcAlmYa9bLUwgnbWtMQZPo7AoY3AyR U6n5h+UMH1oCfiZuV6MJ2c6YYQ0PrmT4p4b8sdvEW/UVVpfKshzh0KkHukC12WLRIDyT wXKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=wgc2UscBxQyAYAXrJN8RcraDeaI9E8edo80ir5Onbh0=; b=dDbQMkwx4xQkbueOk+7Td+yRqiQtHqe5XL/yJzfeHepk9m3dPcRrAXbhNLtEbu08/K WKafU/BxulJr2o9DbfbQSrjBDgUDMmvtktjcKQttkEbRhHGWQNQ/ylLiKIyM6cu0cK4X /NADQQxR7qcaZlT/WGikgYekxACifTc4+ZRIlv75A+oVcO/XvP7JiwBlj0e6bP+ltyL7 oOJNzMP5RguipRllpNiMHUDd9Hgm570Awf7sYLJahenI0wVutQBOCHz5bFxzXwTdXWuT YPQDxaTNfLQdZ8dxu5toeUgpy+fLVoN1qD3FMJ/4I5eADVxgFZLR/s8ra/C88+OZq5ZZ ktpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Mzqld/0S"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a170906435600b0078de51e658esi1814977ejm.208.2022.11.11.08.48.27; Fri, 11 Nov 2022 08:48:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Mzqld/0S"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234215AbiKKQc7 (ORCPT + 91 others); Fri, 11 Nov 2022 11:32:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233900AbiKKQc4 (ORCPT ); Fri, 11 Nov 2022 11:32:56 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E354833BE; Fri, 11 Nov 2022 08:32:54 -0800 (PST) Received: from booty (unknown [77.244.183.192]) (Authenticated sender: luca.ceresoli@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 95434FF807; Fri, 11 Nov 2022 16:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668184371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wgc2UscBxQyAYAXrJN8RcraDeaI9E8edo80ir5Onbh0=; b=Mzqld/0SJYzM5PZkgOkhiTH1ClLXZLn9gcr0oU5QADybDqDBmks6/nN4GmcSx8L0aX2XdB M80ak5muKGOyGrQey+yqKL1VU3nksqXQbSHjX3VMcITpQ83znrqL09BczdrLg3iLWp62O0 bcrT3rdqWlZuA01hq2PaA+QcPgQv9tJ80oUN5XXji0PdVWcQPCP0C+Ae7NWbpk/0IYUnV8 F2j4u2m2wfvQaneJngcVkD6AYCMp7kU6ukoKmatzNupIpttFV1NYcykopdrg4ZXkRrpRt+ DVxCA778W2p3atJ+PHHwUiWHUP9baqhZgQhbOmmN+dA1ROOutdeGICUmZ+X5Tg== Date: Fri, 11 Nov 2022 17:32:46 +0100 From: Luca Ceresoli To: Tomi Valkeinen Cc: Rob Herring , devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Hans Verkuil , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , Luca Ceresoli , Mark Rutland , Matti Vaittinen , Mauro Carvalho Chehab , Peter Rosin , Sakari Ailus , Vladimir Zapolskiy , Wolfram Sang , satish.nagireddy@getcruise.com Subject: Re: [PATCH v4 3/8] dt-bindings: media: add bindings for TI DS90UB960 Message-ID: <20221111173246.17d49e2d@booty> In-Reply-To: <6c254d5f-9fa1-b06a-4edb-7e58e4b33101@ideasonboard.com> References: <20221101132032.1542416-1-tomi.valkeinen@ideasonboard.com> <20221101132032.1542416-4-tomi.valkeinen@ideasonboard.com> <20221102172630.GA4140587-robh@kernel.org> <6c254d5f-9fa1-b06a-4edb-7e58e4b33101@ideasonboard.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tomi, On Thu, 3 Nov 2022 13:50:43 +0200 Tomi Valkeinen wrote: > Hi Rob, > > On 02/11/2022 19:26, Rob Herring wrote: > > On Tue, Nov 01, 2022 at 03:20:27PM +0200, Tomi Valkeinen wrote: > >> Add DT bindings for TI DS90UB960 FPDLink-3 Deserializer. > >> > >> Signed-off-by: Tomi Valkeinen > >> --- > >> .../bindings/media/i2c/ti,ds90ub960.yaml | 392 ++++++++++++++++++ > >> 1 file changed, 392 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub960.yaml > >> > >> diff --git a/Documentation/devicetree/bindings/media/i2c/ti,ds90ub960.yaml b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub960.yaml > >> new file mode 100644 > >> index 000000000000..4456d9b3e2c7 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub960.yaml > >> @@ -0,0 +1,392 @@ > >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > >> +%YAML 1.2 > >> +--- > >> +$id: http://devicetree.org/schemas/media/i2c/ti,ds90ub960.yaml# > >> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >> + > >> +title: Texas Instruments DS90UB9XX Family FPD-Link Deserializer Hubs > >> + > >> +maintainers: > >> + - Tomi Valkeinen > >> + > >> +description: | > > > > Don't need '|' > > Hmm, ok... But why does that work? I can only find yaml examples for > multi-line with either | or >. > > >> + The TI DS90UB9XX devices are FPD-Link video deserializers with I2C and GPIO > >> + forwarding. > >> + > >> +properties: > >> + compatible: > >> + enum: > >> + - ti,ds90ub960-q1 > >> + - ti,ds90ub9702-q1 > >> + > >> + reg: > >> + maxItems: 1 > >> + description: > >> + i2c addresses for the deserializer and the serializers > >> + > >> + reg-names: > >> + items: > >> + - const: main > > > > 'reg-names' is not all that useful with only 1 entry. > > True. > > >> + > >> + clocks: > >> + maxItems: 1 > >> + description: > >> + Reference clock connected to the REFCLK pin. > >> + > >> + clock-names: > >> + items: > >> + - const: refclk > >> + > >> + powerdown-gpios: > >> + maxItems: 1 > >> + description: > >> + Specifier for the GPIO connected to the PDB pin. > >> + > >> + i2c-alias-pool: > > > > Something common or could be? If not, then needs a vendor prefix. > > I'll have to think about this. It is related to the i2c-atr, so I think > it might be a common thing. > > >> + $ref: /schemas/types.yaml#/definitions/uint16-array > >> + description: > >> + i2c alias pool for remote devices. > > > > Needs a better description. What's an 'alias pool'? > > Right. > > "i2c alias pool is a pool of i2c addresses on the main i2c bus that can > be used to access the remote peripherals. Each remote peripheral is > assigned an alias from the pool, and transactions to that address will > be forwarded to the remote peripheral, with the address translated to > the remote peripheral's real address." Good description, but I think re-adding this sentence from my v2 would be useful: list of I2C addresses that are known to be available on the"local" (SoC-to-deser) I2C bus > > 0-0xffff are valid values? > > They are i2c addresses, and linux i2c uses u16 for addresses. Then > again, the fpdlink devices only support 7-bit addresses, so maybe this > could be an uint8 array. I am not sure what's the best way to define this. In DT the Linux implementation is irrelevant. Also if we want the ATR code to be generic we must prepare DT bindings for future devices. Thus, being these I2C addresses, they could be 7 or 10 bits, thus the need for at least 16 bits. All the above will become irrelevant in case the alias pool will disappear, though. -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com