Received: by 10.192.165.148 with SMTP id m20csp363615imm; Wed, 25 Apr 2018 00:17:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx49HHsLn1rTbi3B+tdvoAQxibB7Sv0tC0ywh/WM5YRe9bE/H796PFmetk7XxBbxbeSiN4jTG X-Received: by 10.99.140.77 with SMTP id q13mr22853400pgn.44.1524640657602; Wed, 25 Apr 2018 00:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524640657; cv=none; d=google.com; s=arc-20160816; b=IdiM8G+JpzinP4g5IyS1USiOK0OxUndM03hnzSLFXQ77GdPclOoTL1OPSZfn8J2DQ0 zcpnCaMpEuDHDMjJiJPM5o9IEp4rO+QyIi6cJyY7yW3SCeLANas1jyXdhsp55uoXFsQh V5j1OnCV3aCUuZMmigRgWueEVObH3WoSIslYz80SJdW+sT+1pTZV1oMRC6200HLlfGgS svMsp1Oq6W9yPvdxt8S8zVBHsFLaBT5vysNUmaa2Ech8oRs5VXwjA0OvuitPiX3iLJj8 PFBlOOpVdNaBBTJtn+VBRsQ3BcvQZnz9H8f1FeKJoYKb/B26fOHUIHpLRbyzgTbrhHQe uqwg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=3/btMtG+R6omy/Xu+wx8/w1uKzbiT134B/GKjec7vAY=; b=NuGTQ3eckRimpr7RCk5bJQSuhzqEB5vPAp04bxiGMgHq/NuaWo1MfCYlPVRPSxn3wa ndqgWZCEnLIM1CyRzeV9bh7wJQxQjOQSHu7SO/COfaIGd92WNimAO+Q3I4LadNRIeVFN lXUGbGln0hzwcB7yPU+xo0aR/w0SQESAPY5l8BMz2YHYhfjKSBJeu2VLztn7MZrZHGmq 2bjf1Vj6pFTpBClCu1dEosIUA62S1OtnVIfxZHC6zel13/0cLssNyuVqwuwlpUfZxhtn 0Rv5YFdlQlHb5d2IRd0WDVMgwQYMg/g35CdMQUL5C2+GoFS8hZYZE4+r20e4AB+PBzR1 1hOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=T8IVw0Rv; dkim=pass header.i=@codeaurora.org header.s=default header.b=pIZ088ti; 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 z1-v6si15404946plo.263.2018.04.25.00.17.23; Wed, 25 Apr 2018 00:17: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 header.i=@codeaurora.org header.s=default header.b=T8IVw0Rv; dkim=pass header.i=@codeaurora.org header.s=default header.b=pIZ088ti; 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 S1751361AbeDYHQP (ORCPT + 99 others); Wed, 25 Apr 2018 03:16:15 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43500 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949AbeDYHQN (ORCPT ); Wed, 25 Apr 2018 03:16:13 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5E17160AE0; Wed, 25 Apr 2018 07:16:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524640573; bh=cyHOEh43cZiEKpy5zUe+FdBoMnWr7HrEVCDka19bMIw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=T8IVw0Rv7HpxVktTW0LMtf6imkSja2YYYP2RKSKx/ORJtwZlOJLOEBvoa6R4sZfu0 NZDBYx5aIK5W5j0+c/hEsbwkHAJ4rIIJ3tyfVzKYXnv70ae2Wfs5lTGbnvstNhJpyk bM/heWpW5D/QeKNH0xnhfBPOirQBl4g4eNqeE4vE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.1.50] (unknown [182.71.117.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: architt@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3993360117; Wed, 25 Apr 2018 07:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524640572; bh=cyHOEh43cZiEKpy5zUe+FdBoMnWr7HrEVCDka19bMIw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=pIZ088ti2Ca6lfOyLcGNgh8B5RgQ1JFscXBc01h6xiS0gwtA2OOLMJ7hYfNX9fw/p rJp+t+4irMU67gx+/65o9NMpjDZDoNlqxsUJfo0ROrhyQXIHuXdB0LC9orOPXA7kJy +2dY3r8LrGR+IwGtI0et8Eyr3Cp252sv7SvbIHuQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3993360117 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=architt@codeaurora.org Subject: Re: [PATCH v4 2/5] dt-bindings: adv7511: Extend bindings to allow specifying slave map addresses To: Kieran Bingham , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org Cc: Kieran Bingham , Jean-Michel Hautbois , Sergei Shtylyov , Lars-Peter Clausen , Kieran Bingham References: <1518544137-2742-1-git-send-email-kbingham@kernel.org> <1518544137-2742-3-git-send-email-kbingham@kernel.org> From: Archit Taneja Message-ID: Date: Wed, 25 Apr 2018 12:46:04 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1518544137-2742-3-git-send-email-kbingham@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 13 February 2018 11:18 PM, Kieran Bingham wrote: > From: Kieran Bingham > > The ADV7511 has four 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. > > Extend the device tree node bindings to be able to override the default > addresses so that address conflicts with other devices on the same bus > may be resolved at the board description level. > Queued to drm-misc-next > Signed-off-by: Kieran Bingham > Reviewed-by: Rob Herring > Reviewed-by: Laurent Pinchart > --- > v2: > - Fixed up reg: property description to account for multiple optional > addresses. > - Minor reword to commit message to account for DT only change > - Collected Robs RB tag > > v3: > - Split map register addresses into individual declarations. > > v4: > - Update commit title > - Collect Laurent's RB tag > - Fix nitpickings > - Normalise I2C usage (I²C is harder to grep for) > > .../devicetree/bindings/display/bridge/adi,adv7511.txt | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/bridge/adi,adv7511.txt b/Documentation/devicetree/bindings/display/bridge/adi,adv7511.txt > index 0047b1394c70..2c887536258c 100644 > --- a/Documentation/devicetree/bindings/display/bridge/adi,adv7511.txt > +++ b/Documentation/devicetree/bindings/display/bridge/adi,adv7511.txt > @@ -14,7 +14,13 @@ Required properties: > "adi,adv7513" > "adi,adv7533" > > -- reg: I2C slave address > +- reg: I2C slave addresses > + The ADV7511 internal registers are split into four pages exposed through > + different I2C addresses, creating four register maps. 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 revert to defaults if not > + specified. > + > > The ADV7511 supports a large number of input data formats that differ by their > color depth, color format, clock mode, bit justification and random > @@ -70,6 +76,9 @@ Optional properties: > rather than generate its own timings for HDMI output. > - clocks: from common clock binding: reference to the CEC clock. > - clock-names: from common clock binding: must be "cec". > +- reg-names : Names of maps with programmable addresses. > + It can contain any map needing a non-default address. > + Possible maps names are : "main", "edid", "cec", "packet" > > Required nodes: > > @@ -88,7 +97,12 @@ Example > > adv7511w: hdmi@39 { > compatible = "adi,adv7511w"; > - reg = <39>; > + /* > + * The EDID page will be accessible on address 0x66 on the I2C > + * bus. All other maps continue to use their default addresses. > + */ > + reg = <0x39>, <0x66>; > + reg-names = "main", "edid"; > interrupt-parent = <&gpio3>; > interrupts = <29 IRQ_TYPE_EDGE_FALLING>; > clocks = <&cec_clock>; >