Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3409390imm; Mon, 13 Aug 2018 11:09:32 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyHJwHOKYd2lFdL8yYMnC1125lxuECBdt61LLI49K34mzfsWIaw/sHzAUF9FKpwJFAQJE1X X-Received: by 2002:a17:902:bd93:: with SMTP id q19-v6mr17371055pls.238.1534183772742; Mon, 13 Aug 2018 11:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534183772; cv=none; d=google.com; s=arc-20160816; b=AkL1pZKIpdSdzmLXG+9EN1o05M65jyWtIpMIDTx/K4p81yoHvRKULk/+XmG9Ec/AH/ YxI1rQRaJcUIqwnvxenG7bKZ9no08+cEb5y08S2gMXElbuSmImkFJ98UqkZG+B6Zs1Zj LS2auPeZlVqRu17x5PUsW1mHteLfbytTyuZsnMdajO4436FYESnckmiDnTQJEV6rcE40 EINrkZAbYeIuFcJyKbrIUF1dcF1K41i/0rvVd/iT8GhK6WFf7OFFOrlDJjdM2oQ1Xtph ydBxLR1VDb5SuuYhia1NhJIBVRvz70WRJU3iV1ZqDfkGJFBichLBd6a0HW3vmqM2arIG Ao1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=VYwpQ2XDkpyaej9qVjPVDPyWhCRnjLssY3E+T5zo4/Q=; b=luJewO61nm3HlNwU/079Ca2tkEe2iVLTYYwD3d90So8QJLeODe9xaAr0VXIK9017kf 4et66zP+Pn8m6PMAe//BzRfx5DLfwAEjYyWcrerkqGkQ/gVBx5gbW4UEmYqonHK2xo6U B7u4OLbgKVhrRXEGyc7q+TU1iqmtBunCNpaAT+41AcC1GEtOpZdlSmFD6shuW3Ogqihg MKROLohIvK69s4PDhQHyOv2341UPpptDIgwoCxD7bImQfHcId6EgJyopDbzwAjDfd8uJ AFIJoYUDL0LYu9yVSNsx4wg6ad4j652/NIn7PFB+9AhqwU+33F3bKiqQT9m2LGZPFSPE tb/A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17-v6si15108804plr.120.2018.08.13.11.09.17; Mon, 13 Aug 2018 11:09:32 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730426AbeHMU3A (ORCPT + 99 others); Mon, 13 Aug 2018 16:29:00 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:51615 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728533AbeHMU3A (ORCPT ); Mon, 13 Aug 2018 16:29:00 -0400 Received: by mail-it0-f65.google.com with SMTP id e14-v6so14269391itf.1; Mon, 13 Aug 2018 10:45:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VYwpQ2XDkpyaej9qVjPVDPyWhCRnjLssY3E+T5zo4/Q=; b=HyvUuk97wkFhP0Mxit8yqp3mydbYHY0XgDupX0dm6Te81fH7XdXZvVTibZhS88uHy3 0qGIBKoyqQsbB3UFuw30rZoRQjkFa2Zzkvw6KA6lAJ0M5aBZ6oNeE9gOSHz67Y3JPz1s 3hux5vkgif7W62aHzvG7lGhUjGD5xnqxzho7WcSwOqSwEc5Fu7kvBLutrXgK+XBDcSvS WLk5tOZNC169LiyByKlEkzZdmnpuTO1nMeFjDRrGHx4hAKcPVuAI9i07c5Yr0+Ghyc1C 6mRM5cXtOdySqm2FL+frfYGUhThJXVfs6996UQFJQ9M9owFNUlqo8LMcmRp4lFL0prRJ /5Ww== X-Gm-Message-State: AOUpUlFuL/mvQ17DXCE80UskwhItZ0J2JUjUVROrs+O+jusAZA+v8Cev D3v4wjbhb+8SHnpuwkfQFA== X-Received: by 2002:a24:a045:: with SMTP id o66-v6mr11450116ite.127.1534182346340; Mon, 13 Aug 2018 10:45:46 -0700 (PDT) Received: from localhost ([24.51.61.72]) by smtp.gmail.com with ESMTPSA id t64-v6sm5197608ita.13.2018.08.13.10.45.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Aug 2018 10:45:45 -0700 (PDT) Date: Mon, 13 Aug 2018 11:45:44 -0600 From: Rob Herring To: Kieran Bingham Cc: Laurent Pinchart , mchehab@kernel.org, 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 Message-ID: <20180813174544.GA11379@rob-hp-laptop> References: <20180809192944.7371-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180809192944.7371-1-kieran.bingham@ideasonboard.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 09, 2018 at 08:29:44PM +0100, 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. It would be good to say why you need this. The only use I can think of is if there are other devices on the bus and you need to make sure the addresses don't conflict. Arguably, that information could be figured out without this in DT. Regardless, Reviewed-by: Rob Herring > > 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" > > 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>; > -- > 2.17.1 > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html