Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3521995imm; Mon, 13 Aug 2018 13:16:37 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz9ZnAstFiQ5lLsPAz3MtKKn3w8Sd0k+4wfxzkaYgynB7SSRMw98puqgpAm41zfFChb88Zt X-Received: by 2002:a62:dbc5:: with SMTP id f188-v6mr20685009pfg.182.1534191397619; Mon, 13 Aug 2018 13:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534191397; cv=none; d=google.com; s=arc-20160816; b=dFn0Y0Mngy/dadT+SAH0F5fpJTDGM7NiIC8WEy44t8y7QYGvhOe/xmeJ6Bk3vhCm93 pNoV629xlOcYIkEvwT2iYIsZLlYiCeanVBk0O5ShvM7cXYKhUgWv1fDu/3N7GPBFI+FH CT+hDzibYJ6JkMcvMr2soB+MzhVpZbGYUyCzQA5k7Rj+G/4kywHGNx/50s9CVWIlp1Th sarO+ldGQB8MZuy7sl7NdhlG5ws6trzErZlmVhP1bxenQs17ZmIKvSSXPXDlut8JY9fL zHnyJ3HeTNr6mU8ktX8XWbt6aPw/LRU33EFFa8gU0UGRR/hHMHNdU8m35iH2rjeO8UdU NB9A== 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:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=TeKXCuC/RvhoeyzsIlyYlgghBxpsDr4vpp2tWxR8VOU=; b=pAkuQd65eD6C5ddWHeV4npIxwh72AffqdLzn3chjslF6WYS8w4qXGj3ck0FKJp7oRV BsITAvYM3xqNvKNX1y7aET/1gMCOW4LR3nqhweBIkJucmEWSw78yeaeGmjrAb7JQXqwm rLdDu3c/rit3454kLeg2wldOzkF1u70zcR4gqn7yjM6vUBRknemFUdLwY6xzyByHcujD bUZqOkUMk0LEqvIRaP6l9xaJQapQqxkXdqvGZkWYIyfTqH9bUzBa1QnLMK/CxRMmx8pM rr/jVjSaX+o9bvzwlqKSICBW3M8CVNAKeIBaVkv28HlVQT8C3wEbypmeA1h2A8GdQ69D U5oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=htHdYRx8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o66-v6si20548985pfb.125.2018.08.13.13.16.22; Mon, 13 Aug 2018 13:16:37 -0700 (PDT) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=htHdYRx8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730610AbeHMWts (ORCPT + 99 others); Mon, 13 Aug 2018 18:49:48 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:43638 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728540AbeHMWts (ORCPT ); Mon, 13 Aug 2018 18:49:48 -0400 Received: from avalon.localnet (h-17-125.A137.corp.bahnhof.se [94.254.17.125]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AE1D5CE; Mon, 13 Aug 2018 22:06:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1534190763; bh=bBwJ0HarrYSdNYlTelCjP67oK1e7X90oh7jBzcHgzNs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=htHdYRx8VNr2fslMCmkH7Nfi8omJlseXrFDH4MjS3aJ9oi42b5sfgwvasM3aGVQML XTTk5AgmoOuOsXrOWdfeAEYp35FB/5kvMi7+fIyOFwITts0pagp9tdAkqRkmZ1V+N7 I2tpF+lu13moyd5Tlu4JzO9Vg2UwARjv44pcFy+k= From: Laurent Pinchart To: Kieran Bingham Cc: mchehab@kernel.org, Rob Herring , Mark Rutland , Hans Verkuil , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] dt-bindings: media: adv748x: Document re-mappable addresses Date: Mon, 13 Aug 2018 23:06:52 +0300 Message-ID: <2839443.megObXD3Cp@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180809192944.7371-1-kieran.bingham@ideasonboard.com> References: <20180809192944.7371-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kieran, Thank you for the patch. On Thursday, 9 August 2018 22:29:44 EEST Kieran Bingham wrote: > The ADV748x supports configurable slave addresses for its I2C pages. > Document the page names, and provide an example for setting each of the > pages explicitly. > > Signed-off-by: Kieran Bingham > > --- > v2: > - Fix commit message > - Extend documentation for the "required property" reg: > > v3 > - Fix missing comment from Laurent. > - correct the reg descrption > --- > .../devicetree/bindings/media/i2c/adv748x.txt | 16 ++++++++++++++-- > 1 file changed, 14 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/media/i2c/adv748x.txt > b/Documentation/devicetree/bindings/media/i2c/adv748x.txt index > 21ffb5ed8183..25a02496f4ba 100644 > --- a/Documentation/devicetree/bindings/media/i2c/adv748x.txt > +++ b/Documentation/devicetree/bindings/media/i2c/adv748x.txt > @@ -10,7 +10,11 @@ Required Properties: > - "adi,adv7481" for the ADV7481 > - "adi,adv7482" for the ADV7482 > > - - reg: I2C slave address > + - reg: I2C slave addresses > + The ADV748x has up to twelve 256-byte maps that can be accessed via the > + main I2C ports. Each map has it own I2C address and acts as a standard > + slave device on the I2C bus. The main address is mandatory, others are > + optional and remain at default values if not specified. > > Optional Properties: > > @@ -18,6 +22,11 @@ Optional Properties: > "intrq3". All interrupts are optional. The "intrq3" interrupt > is only available on the adv7481 > - interrupts: Specify the interrupt lines for the ADV748x > + - reg-names : Names of maps with programmable addresses. > + It shall contain all maps needing a non-default address. > + Possible map names are: > + "main", "dpll", "cp", "hdmi", "edid", "repeater", > + "infoframe", "cbus", "cec", "sdp", "txa", "txb" Reading this again, the text doesn't document the "main" map very well. The main I2C address is always required, but if no other I2C address needs to be specified, the reg-names property can be omitted. Otherwise the "main" reg- names entry is required. This being said, this problem isn't specific to the adv748x bindings, so I don't want to block this patch until we figure out a proper wording that can be applied globally. For that reason, Reviewed-by: Laurent Pinchart > The device node must contain one 'port' child node per device input and > output port, in accordance with the video interface bindings defined in > @@ -47,7 +56,10 @@ Example: > > video-receiver@70 { > compatible = "adi,adv7482"; > - reg = <0x70>; > + reg = <0x70 0x71 0x72 0x73 0x74 0x75 > + 0x60 0x61 0x62 0x63 0x64 0x65>; > + reg-names = "main", "dpll", "cp", "hdmi", "edid", "repeater", > + "infoframe", "cbus", "cec", "sdp", "txa", "txb"; > > #address-cells = <1>; > #size-cells = <0>; -- Regards, Laurent Pinchart