Received: by 10.223.185.116 with SMTP id b49csp2484125wrg; Mon, 12 Feb 2018 10:16:12 -0800 (PST) X-Google-Smtp-Source: AH8x2255iJmTYR00OH9JCxrHEjzgmJlYdfXLPpP8Vg+SbWnK5f3b7Q44UsW6YlcF0ngX8RSrcYD2 X-Received: by 10.98.144.213 with SMTP id q82mr12479072pfk.37.1518459372129; Mon, 12 Feb 2018 10:16:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518459372; cv=none; d=google.com; s=arc-20160816; b=EXp3h094D1lQtHkDUzaduvV7yg4ekn7MRnmAT0TJeU1rnkOjGF/iju9qbPKyDmC6/J sI2+mNlI/j9Ly6lHMyYQsVioudsVIK2DQHmqqOBHPqTdCyFBIgArrOeQLz3jcLRUDfzv fJDplc08TyTCKIraEAoAm+2oo+hI5aiBKahgG73FIAdjf19SyWb+UsaZS16OBGDQe51P l933U8CnFBO0T0rYOatJvEPZAJh0VEJLPR2Pu3QFbjqebhbzbghSrVVE9sdZ0GHmA74k QEVdVUWmDVPcAEcv8z0IarUM5DXzmGCPIRzGpyZHE5iM5mkFsgcTnaXUxSUAyM8DaKVm 2uBw== 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=l67NsIxr5wNk2bGsJeDuFIdp9A9qHvkDoqDpNT1mkBw=; b=LH2lSa8QNa7L/u8jmmSXZqiVlSk5qPUrYshzmnTqUCP02yn3x1rdEBmEO5qrix9fzP cBAR5juLSYn5NsdOH0lkyLpVwQ9WChNFAVyz9VR4v2URbIGNOREVZ5SRk51kUwIcZNqR DdU6GulCVzLW7Wl2HrD1yRguxxxwlaqCInmy4MyUfqShwVM9zk/H41k7iv7WMsBfMw4J GJMi5IplJXi6zgTKk5sKFaKERl2z/jVzX/dMb5UvqfnPlPWAChkZMmtIijE9AluHXpBI hfeSz/u6fgM13yHB0VUwYzDVBmnGYFhKCPhibfMXH564uHBDFBdtOizAFi38hYTTrOGL 8mmQ== 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 f32-v6si2270801plf.754.2018.02.12.10.15.56; Mon, 12 Feb 2018 10:16:12 -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 S1752621AbeBLSML (ORCPT + 99 others); Mon, 12 Feb 2018 13:12:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:42580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752331AbeBLSMI (ORCPT ); Mon, 12 Feb 2018 13:12:08 -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 D0BE72176F; Mon, 12 Feb 2018 18:12:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D0BE72176F 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 , Kieran Bingham , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v2 1/5] dt-bindings: media: adv7604: Add support for i2c_new_secondary_device Date: Mon, 12 Feb 2018 18:11:53 +0000 Message-Id: <1518459117-16733-2-git-send-email-kbingham@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518459117-16733-1-git-send-email-kbingham@kernel.org> References: <1518459117-16733-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. .../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..b64e313dcc66 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