Received: by 10.223.185.116 with SMTP id b49csp2483563wrg; Mon, 12 Feb 2018 10:15:37 -0800 (PST) X-Google-Smtp-Source: AH8x2256Q/mUCmQ2dJSauTWqeK+PsPmEUCJfb/IRkhMf7AkQ0DXX91Dnm1aXuhZD0E1tkKC629KX X-Received: by 10.101.64.4 with SMTP id f4mr9705655pgp.171.1518459337276; Mon, 12 Feb 2018 10:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518459337; cv=none; d=google.com; s=arc-20160816; b=x2LMPFea8b+XrrOE1rXQDKiD0oKSLd/JZpAFUvL4atFVQqfGfvNPAbTH7ohHOOtF0I SH9eub6rHxQZrfNe9VB9i7uYSsyVzBAvHipmtbSOphNPx6mZ1Xfieo8AXxfn7dbnuzR/ Fw/hHViIyWzUycrJ8DEreNRCGNpv7FFQSy3IsN7kLmrP8dvSAzvxKzOQBUFgYSOc3O9B l/kn0OiRRM+wzc5WP0/iEsUC/jbu733rVkni5BTbM/RpRZGJgCtfdVThBU0GjLRA0sSh VpFodz1Q+1Y7hBnduQo3YJA67MTxdu99wbcfoQ95kS3j4q+7xWj2iAiSDrQ5asqSBXnA PZEw== 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=Cy0zl+PDtfk1nSiRs9T3ss5p3EAGOxXxFrKNzS6jQ+0=; b=nu3O0egMQHCbhdOimGzxQ3w/AHaf7zuI/P3xT4/qrYb0yKGsaVWGFqzsawhO9MvSfS KWdUEcLW9IkoPy3575yovCUdCt9uhB5UEBWTeb1/EMVV8sytjUhoxbS8C+wOuISWnZJv IDrqT4E/UCm4Njn7T+jsBSE8pbb2TXDtqafM1xVfvSFg7L+Tc3HbMku8QCAkNqUuBQhR +I5psgCcNsY71KMoMDnScX0Di4CQwat0ehuO6jgdNd2LnLsQKullvWnyDY0V5+29vdbt SDfExIDDzkbKdPZZoxjqLP9lYvizCbPeM5KN8SHNdKH1Ttlc/YNVH1YPDJmqU/MT4gwZ Lk+A== 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 i90-v6si1379860pli.157.2018.02.12.10.15.22; Mon, 12 Feb 2018 10:15:37 -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 S1753052AbeBLSMQ (ORCPT + 99 others); Mon, 12 Feb 2018 13:12:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:42648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752370AbeBLSMN (ORCPT ); Mon, 12 Feb 2018 13:12: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 C7FF321726; Mon, 12 Feb 2018 18:12:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C7FF321726 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 , David Airlie , Rob Herring , Mark Rutland , Hans Verkuil , John Stultz , Mark Brown , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v2 2/5] dt-bindings: adv7511: Add support for i2c_new_secondary_device Date: Mon, 12 Feb 2018 18:11:54 +0000 Message-Id: <1518459117-16733-3-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: 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 .../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..f1b5466b1ca7 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