Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp728104rwb; Thu, 8 Dec 2022 02:05:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf5wJB+aepJRDCfDtd40i22oYu5dJ8yh42tbRJ2GJ+li80vySnpfra/470B/Pj8636s5zsig X-Received: by 2002:a63:6346:0:b0:478:d6db:543d with SMTP id x67-20020a636346000000b00478d6db543dmr11170660pgb.463.1670493928163; Thu, 08 Dec 2022 02:05:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670493928; cv=none; d=google.com; s=arc-20160816; b=jEu3xB7xU1hGJht3n4uxyffbzLgT6VHdEydujUPl0Sz+bJT7U8t0OjrK3qLcjFPbB6 tlUyZ0UJyqwtEnITy/7ufnGGYaxih375gMzjX8mo8K2Z1psGp78ieFWLhv1VW9VnLqUL NnJ3FLH5QN42b8/T/lTqXkaSzDMrvFwmHIT6GKfXtxARHvxyO8S1jUb79wtkjKhFCzr9 IbYXF2/ndsN+upzWBkjFmty/4EUcbK9BZuXd82070xRazXUNRGwuU3LGVc8nkvnxOKiM 9FS3NW4ELFG55WZHlSk0EMybfRVGz7i6+JyD0MV4ErzrQWJdyYsve6vaWLuwDRSBm2w7 692g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tLGp65LPEI9DzeN8kSURPSCKSGAOJhpWODx+sAmXLbY=; b=Y35J3UKeqTB9GTa715ByFPdcXWFGgg/YI6WWHcfq5vvlwwN1xistNa/7dh7cgsootX Q/UyhGewuAgkowG+L5/V6+pxcAffkLolWwD5oFxiKw3hHaoDD+a3MM+RryllB3ECVugl D8rKWCATMol6VTP5caZitXbwiHgK+OLT4ABnu4J/pV+FFh4PJ19dOYrBN4nmUz/lOsxU 2sijj8kAPl8ewAqcoIIHkBjGaDtoDx6KqBJXGRr+V5UQBUv1rHHBP1ymDKijL+rCrcp4 wm7bwr5mchqHKx5rdxU9XLtQnVFDRqIOg/w1aLMi+JpWhgxoWZSvmbGFjLCHlzv4Hww3 W0nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=viWeAjRf; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a63700f000000b00477cfa54894si22688602pgc.300.2022.12.08.02.05.18; Thu, 08 Dec 2022 02:05:28 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=viWeAjRf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230105AbiLHJXv (ORCPT + 72 others); Thu, 8 Dec 2022 04:23:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbiLHJXs (ORCPT ); Thu, 8 Dec 2022 04:23:48 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB8875C74E; Thu, 8 Dec 2022 01:23:45 -0800 (PST) Received: from [192.168.1.15] (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4ADBE25B; Thu, 8 Dec 2022 10:23:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670491423; bh=6e3cUNNKs0Mbc6lRI0WlQoFsDq6mdyEYot1UJAoMES8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=viWeAjRfAvQDJgnz5ohqc3JZkl7Q+gk/Z3jJt8aK+WmByB4rXDZUkfs2Sg2ZcCA4E fddgUjJkVmLM9By1Lr+REp0CsPRxZDIQxfz+uEvj73auGnCvKWwy6r4mo73JXaMmSm LmAN/hm7+be8HNS8BQ/HlAqrxUToEAWMkxYNCp2o= Message-ID: Date: Thu, 8 Dec 2022 11:23:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v4 3/8] dt-bindings: media: add bindings for TI DS90UB960 Content-Language: en-US To: Luca Ceresoli , "Vaittinen, Matti" , Wolfram Sang 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 , Mauro Carvalho Chehab , Peter Rosin , Sakari Ailus , Vladimir Zapolskiy , "satish.nagireddy@getcruise.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> <8360ac8f-64aa-9edd-a110-903e734739f3@ideasonboard.com> <20221111172631.2832ae6c@booty> From: Tomi Valkeinen In-Reply-To: <20221111172631.2832ae6c@booty> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, 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 Luca, On 11/11/2022 18:26, Luca Ceresoli wrote: > Hello Tomi, Matti, Wolfram, > > On Thu, 3 Nov 2022 14:32:02 +0200 > Tomi Valkeinen wrote: > >> On 03/11/2022 14:13, Vaittinen, Matti wrote: >>> On 11/3/22 13:50, 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: >>>>>> + >>>>>> +  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. >>> >>> I'd say this should be common. Where the i2c-atr properties should live >>> is another question though. If the I2C-atr stays as a genericly usable >>> component - then these bindings should be in a file that can be >>> referenced by other I2C-atr users (like the UB960 here). >> >> Yep. All the links, link, serializer and alias nodes/properties are new >> things here, and I guess these could be used by other deser-ser systems. >> That said, I don't have any experience with other systems. > > The i2c-alias-pool was discussed during the RFC,v2 review [1] and it > was agreed that it should be generic. The same principle should apply > to the other ATR properties. > > That said, at some point it was also decided that the alias pool should > just be ditched in favor of an automatic selection of an unused address > by the i2c core [2] [3]. Maybe that idea has changed, definitely some > i2c core things needed to be omdified for it to happen, but overall I'm > still convinced automatic assignment without a pool was a good idea. Yes, the serializer and the remote peripheral i2c aliases can be dynamically reserved at runtime, so the i2c-alias-pool and the i2c-alias are, in that sense, not needed. I haven't looked at this in depth yet, but reading the references you gave, it sounds like it's not quite clear what addresses are available and what are not. On the other hand, is dynamic i2c address reservation something that the users expect to happen? All i2c devices I have used have always had a fixed address in the DT, even if at times the devices may support choosing between a few different addresses. Keeping with that tradition, would it be best to just use fixed i2c aliases, defined in the DT, for the serializers and the remote peripherals? In the current series this is already the case for serializers (with i2c-alias property), but we could do something similar for the remote peripherals. Tomi