Received: by 10.223.185.116 with SMTP id b49csp3926423wrg; Tue, 13 Feb 2018 09:52:12 -0800 (PST) X-Google-Smtp-Source: AH8x226v8iFO/k4EyNGyYzzGpIm5VTR3lzUHiqMWDye55LI2dUAJelGpMKMWheydazNEL6XbRIjg X-Received: by 10.98.227.8 with SMTP id g8mr2015004pfh.200.1518544332041; Tue, 13 Feb 2018 09:52:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518544332; cv=none; d=google.com; s=arc-20160816; b=Bf3hUBEh3Rqwoz6wDlqLEorliacmudxxQbLnL49z+QzZenrFX1h8qS/RCCqcQnUGKj H829ZR8YNT9SEhRIS8wIlG6N8JCNHnRjHgOaYEDSIgdffw1yxZaA/6AxLXYFNhtUIdjR bsq3huUZNOCxRblSvpV+vIvx9yk1uwi235ZYqHv/ALaFGovq8HMbGIJH0PAQaoEptSEv c3IIhGINS0QdT9387C7k5BKyXZLok4yhXmodteAmm2XQVatABQoBvT+EuB+Zr2ikTHfq S3fti/7jrfX/P61vLG896EvPYrLHlLb5otzZae5KHg7DggUymxCOjPANw+DqX5i1BCel uz4Q== 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=VgoeIRLDf1lb1GyvRNFI6Ovz5FALw1cgUZIFt52w1rM=; b=f5wWYBozUxnqj2IqMXYxGwtoD4EVpGuFEIyvtM70bV4pRDPX589RWjAJUukitREEOk m9LfF7Q7Lz56Xyo6+c2OHD07a/ChRIdMtq8RC9qgDPh744GsDbByskDpvNI2PBTXN6oR ulp7nojupVcxLlDVxE8Sn/Egxo8If30yqu8ouG1rBejjWsHXxlMbLyr/3NbL+BDM3mkQ CkRcjKWzgRUG5XvPRKnaB3+UCBI0Gx54FMVm1jjNq7siMDOG3uxrgF+Lkd3qqICTH/XR ZPUQNZKzP9fs+61a0XpbB7EKaRj0t9EIkOB5advqS5yMB4ktEBPbWoglL4mx0SZ5Jy8s g0Gg== 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 m18si9132pfi.280.2018.02.13.09.51.34; Tue, 13 Feb 2018 09:52: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 S965405AbeBMRtH (ORCPT + 99 others); Tue, 13 Feb 2018 12:49:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:42244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965057AbeBMRtE (ORCPT ); Tue, 13 Feb 2018 12:49:04 -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 853BE217BB; Tue, 13 Feb 2018 17:49:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 853BE217BB 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 1/5] dt-bindings: media: adv7604: Extend bindings to allow specifying slave map addresses Date: Tue, 13 Feb 2018 17:48:53 +0000 Message-Id: <1518544137-2742-2-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: Jean-Michel Hautbois The ADV7604 has thirteen 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: Jean-Michel Hautbois [Kieran: Re-adapted for mainline] Signed-off-by: Kieran Bingham Reviewed-by: Rob Herring Reviewed-by: Laurent Pinchart --- 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. v4: - Collect Laurents RB tag - Adapt commit title - Normalise I2C usage (I²C is harder to grep for) .../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..dcf57e7c60eb 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 I2C ports. 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. - 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