Received: by 10.223.185.116 with SMTP id b49csp2686792wrg; Mon, 12 Feb 2018 14:09:04 -0800 (PST) X-Google-Smtp-Source: AH8x224iaoppu6EEpzLqk10z6YbhtjCeijju/OJYP57gZ19KMKwcZrM+IefdsN2LibT9a6vi4Bb2 X-Received: by 10.98.231.25 with SMTP id s25mr12788978pfh.177.1518473344839; Mon, 12 Feb 2018 14:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518473344; cv=none; d=google.com; s=arc-20160816; b=bpM2dudRqC7MRcn9wGvwdixWQoaadREhQWy/FvCEaVBuEQFDzZZTnJkeWIdaJZuK0/ xV1E5GybX5AijsR55AUbogPXPKqPpIld92qA9mkhc60y24efR2/K8kXWykicZWd80aF3 rwi4pXR67PA2q+b3b8zok4aW1FguM3ENWPvl+c+Vm/aLoy7bz4kr3OghCK7w1S1VdYvW OnBh2gG6e4Pjnty9m3WMSYGl+pZo2o1ec6vNjJEI5S+0ff0nqF/YREER9M5A8FKFVJBs D09yc1TbU9k7jLkj8RiJeq3aMvEoWdnwnppZAjE3iEuTQKJSx1AcgB4HX3Kzn2cEnd7j laaA== 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=R3BfDfaYL1v22kiHrEcaG8JnLGak3p2GZIQT/3sAr0w=; b=t3lYeAZJq/TWbAorO2KF/isI+7rNZ+PCInBmLgqr7Jb+7W9hNKeoRJm8RIfCCsSf3g pOw08sasUbfRXTXWUgtLeDPvpqFZL9Bu5sovY+97KVjymVrdBezUDJ1MqxlqKKhQwQCx sEHGzYefj+g0zHT0AFwN9NDz484x4Au7rUliMhg/QlUpS6uFNTxgX9ZH+xhYFFiARqmW aR3/37drewzytEhej+WzxZaEANLHeQw0kA164MwgBpUfHRVwsvfrzgTeN2hkjj0Lj3+t nDUqDlZc6FQFJnVAJ9+Oru1IC8m+oNV7j6WUheiy7YpA7giLiEbUIdQBkJaPZnvE1I6c cM9g== 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 m5-v6si436560pll.233.2018.02.12.14.08.49; Mon, 12 Feb 2018 14:09:04 -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 S932776AbeBLWIR (ORCPT + 99 others); Mon, 12 Feb 2018 17:08:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:58940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932717AbeBLWIN (ORCPT ); Mon, 12 Feb 2018 17:08:13 -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 A5A81217A6; Mon, 12 Feb 2018 22:08:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5A81217A6 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-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: Kieran Bingham , Jean-Michel Hautbois , Sergei Shtylyov , Lars-Peter Clausen , Kieran Bingham , David Airlie , Rob Herring , Mark Rutland , John Stultz , Hans Verkuil , Mark Brown , Archit Taneja , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v3 2/5] dt-bindings: adv7511: Add support for i2c_new_secondary_device Date: Mon, 12 Feb 2018 22:07:50 +0000 Message-Id: <1518473273-6333-3-git-send-email-kbingham@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518473273-6333-1-git-send-email-kbingham@kernel.org> References: <1518473273-6333-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 I²C ports. Each map has it own I²C address and acts as a standard slave device on the I²C 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 --- 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. .../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..3f85c351dd39 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 I²C 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