Received: by 10.223.185.116 with SMTP id b49csp2688492wrg; Mon, 12 Feb 2018 14:11:01 -0800 (PST) X-Google-Smtp-Source: AH8x226ps/NFO1WhnIL9iPP8tfx2lD53yLUAbREpEBN+qprEMRStURBr/T0ByULirK/iEgO84mTf X-Received: by 10.101.83.3 with SMTP id m3mr10327825pgq.396.1518473461395; Mon, 12 Feb 2018 14:11:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518473461; cv=none; d=google.com; s=arc-20160816; b=wXoKzuXtJLPKF1Ga2LnCrUC1n+0bvQcEiIQ7qC7Sdu6ogjqfX8jj43IYC128skvV0+ BA5KnTqdwOofZlP7ZtNIaBI0Gq0xOKjtjA9JEul95LBMcOKJte+WoU+Lbki4GGHxuqlC JyD4vah0kolHhGEWxVDEZHs2ev5kvYU55xeoe6EJHXgBlyuP7GrRXhQWA10osso9VIel rLPLWegrKyfuMJiSrnLCldW4UqZpt4tfrYigbcgHA4dMy2ne4Z7Pr/Bb/7OrXiDWlnn3 QAHfSkY1P+oLGMLJ/a1noCh7omtZ+bMjgEF8aIv2s9cef+Ios1aGMgdq5jL2gWnXwyPL Bt3w== 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=9qa18Es2LOfM7uYyU/VAXRsjMikhZ8sEwBSQF9XfiyQ=; b=bkWWeQBUkU8kOqO9JFb9tLtEVsaaG9YG1a9PMlWN7iXZkCANq/2nqx6081KuNqOuS+ 9hD79RsrPYB8KWDZZWpSNbbDVUx1wQ+DnCq2O/rzpa2WpQ6TCaoGUWqlJZgDrrFeE6Eq xS/voUQfm2scUvo/fvkKVCHc25AXFQ0CkoHdLkwCJCnnsMAGZVvDxcleaykvRGF3S4Gs j1DD5YWkkFtJtbAj0MBiTmP6Tn2jbIj7NbyMBe9LS9odCuM7Ns26hD8Vybg/Db1Wj1Vv X9p9FEa3Zq2w4K32HHQDpm8h47MPoSnbv6yXaT3FzMCky7a2zdP+xztpx7F85SeiXLl6 Ts4g== 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 f21-v6si1133610plj.194.2018.02.12.14.10.46; Mon, 12 Feb 2018 14:11:01 -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 S932699AbeBLWIL (ORCPT + 99 others); Mon, 12 Feb 2018 17:08:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:58846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932413AbeBLWIG (ORCPT ); Mon, 12 Feb 2018 17:08: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 84D0021799; Mon, 12 Feb 2018 22:08:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 84D0021799 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 , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v3 1/5] dt-bindings: media: adv7604: Add support for i2c_new_secondary_device Date: Mon, 12 Feb 2018 22:07:49 +0000 Message-Id: <1518473273-6333-2-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: Jean-Michel Hautbois The ADV7604 has thirteen 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: Jean-Michel Hautbois [Kieran: Re-adapted for mainline] Signed-off-by: Kieran Bingham Reviewed-by: Rob Herring --- Based upon the original posting : https://lkml.org/lkml/2014/10/22/469 v2: - DT Binding update separated from code change - Minor reword to commit message to account for DT only change. - Collected Rob's RB tag. v3: - Split map register addresses into individual declarations. .../devicetree/bindings/media/i2c/adv7604.txt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/adv7604.txt b/Documentation/devicetree/bindings/media/i2c/adv7604.txt index 9cbd92eb5d05..ebb5f070c05b 100644 --- a/Documentation/devicetree/bindings/media/i2c/adv7604.txt +++ b/Documentation/devicetree/bindings/media/i2c/adv7604.txt @@ -13,7 +13,11 @@ Required Properties: - "adi,adv7611" for the ADV7611 - "adi,adv7612" for the ADV7612 - - reg: I2C slave address + - reg: I2C slave addresses + The ADV76xx has up to thirteen 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. The main address is mandatory, others are + optional and revert to defaults if not specified. - hpd-gpios: References to the GPIOs that control the HDMI hot-plug detection pins, one per HDMI input. The active flag indicates the GPIO @@ -35,6 +39,11 @@ Optional Properties: - reset-gpios: Reference to the GPIO connected to the device's reset pin. - default-input: Select which input is selected after reset. + - reg-names : Names of maps with programmable addresses. + It can contain any map needing a non-default address. + Possible maps names are : + "main", "avlink", "cec", "infoframe", "esdp", "dpp", "afe", + "rep", "edid", "hdmi", "test", "cp", "vdp" Optional Endpoint Properties: @@ -52,7 +61,12 @@ Example: hdmi_receiver@4c { compatible = "adi,adv7611"; - reg = <0x4c>; + /* + * The edid page will be accessible @ 0x66 on the i2c bus. All + * other maps will retain their default addresses. + */ + reg = <0x4c>, <0x66>; + reg-names "main", "edid"; reset-gpios = <&ioexp 0 GPIO_ACTIVE_LOW>; hpd-gpios = <&ioexp 2 GPIO_ACTIVE_HIGH>; -- 2.7.4