Received: by 10.223.185.116 with SMTP id b49csp3926759wrg; Tue, 13 Feb 2018 09:52:32 -0800 (PST) X-Google-Smtp-Source: AH8x227fA/2cnV3h2jhf5mkJgNdvsVvMn1GvML5zRtMpc9D58ikw+ovfD7TeZK1794EynTgeC5cN X-Received: by 10.99.152.10 with SMTP id q10mr1667225pgd.212.1518544352153; Tue, 13 Feb 2018 09:52:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518544352; cv=none; d=google.com; s=arc-20160816; b=MDYROtDVimR0kuVSuLt73Xnz4zCOVPgk4Y4q1iZ0Ve8UCvaNgesB2YlgLX7tKaCDZB WQq/aznS8eFlmojpH/FilZcRR3gx2A7TEQ35ZDaGcw8pPBS2iDRWMsEmpr+UwzT07S3Z aj5SG9HOu7hNrhN5cpWpTcN90456dJT0d8fseWRHuBtO9u8YgCeQi+NqN0eHMvobMRcQ BJgUgRed7P2ryfAjWSSPKiyUYtfxCMXcOOEelVL+9XjWtO3xeOYyRmfbLR66e//GPfYf Fe2fYOk/VUBpR5XF6KRR9qtFwxUqTBCpbQX9LlGleS8m76aQiHN9u62yoyIAqKW/Xs/W qzjA== 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:message-id:date:subject:cc:to:from :dmarc-filter:arc-authentication-results; bh=Mh51cDgq1pw5Ol2obfxGk3kBk37Xzni1weB0wewYcb8=; b=U6Pyy4qk5lseVLnGK1b81/h8tIEO8w1Ou3DSuX1Oz9836tMp1apxpMHwL9l60zGjae beRllXjU/4wwSYFVUNMBAriy6ys0PdOYtIK3Y+HY+vhY0oEsrTJ3RrhVYoWIS6vGKHDj yxusetxnHgY9Oge4NCUKuiFldJWJyBNwEqejEeSrxSlKJmHxoAcYKoZzgari8BQ6Tfq+ DVkMCpKsKQaBSElAW4NKGRNPEA2LnHJYhK7MyTZ3Li4JS1Y7JOGWRqxoK1PrKcZyfXXr AN3Duw19u1ItdGRO0/VuG5vJyusnhXzilHh9uEFzSvUrD1yCKPv3YGvx8BEnSqUjzoby Gs1g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8-v6si1406125pli.779.2018.02.13.09.52.18; Tue, 13 Feb 2018 09:52:32 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965527AbeBMRul (ORCPT + 99 others); Tue, 13 Feb 2018 12:50:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:42266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965350AbeBMRtG (ORCPT ); Tue, 13 Feb 2018 12:49:06 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9991F217C1; Tue, 13 Feb 2018 17:49:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9991F217C1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=kbingham@kernel.org From: Kieran Bingham To: 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 Subject: [PATCH v4 2/5] dt-bindings: adv7511: Extend bindings to allow specifying slave map addresses Date: Tue, 13 Feb 2018 17:48:54 +0000 Message-Id: <1518544137-2742-3-git-send-email-kbingham@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518544137-2742-1-git-send-email-kbingham@kernel.org> References: <1518544137-2742-1-git-send-email-kbingham@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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>; -- 2.7.4