Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1390186imm; Wed, 8 Aug 2018 16:30:54 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxPSFx9B+1A/MlAJzbLr1FYQ6MlSnyo0jZ8klUSio14y8AdgOcbvX8ky0KDMULFpDpRYhO2 X-Received: by 2002:a63:195e:: with SMTP id 30-v6mr4236965pgz.192.1533771054675; Wed, 08 Aug 2018 16:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533771054; cv=none; d=google.com; s=arc-20160816; b=d3AIM0Iqut4df9ZgNZBTxG85xKRZ0pFPplkDUpuGevnyWQw2AqbUIGpE9zJsrThV82 x3F2GFxjq06qW0uKctWf1cXQVdkD1Plb+kRTGNSzDLOGXEQrZTNM6oRBnacwLy58XQDx cTnykApzU3Z9wJ/18kDIHVxZDaGuY+ZWIOonrJGuUEQ1y7dfgaC/Woz3iolS6YIjE2Ej o5BYKDrmqTmE1ohpDBFElP3rGJmkrmK0o7f5VTOmWUVtdrMch4i5RvdixeZmQPGn6TLq fU6W+xi5iEdKfbNgE3aAMyB+TM/taaaD+QE6LKkOlnkPPkr1ip9hfUpE61N6D7DNSmm9 7KpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=lfGM0ld/KuVyo8IOUIdDLDKRXHOL0BiVvwLooXdKj2k=; b=pNz3Wgldlbjdb7/ke5eKICx+rgYB15CDoQBgs+sKDVxfrzKKmSPDfHPsW5znso+t2R zRqDTmg5aGCIVajo0lx00vgMBfIkBqZ+FtXNZybk2oVdxMPdxx/hlSfH/YR+6kqCo/db zZErfIBK+x+MFijG+3n+oTgVBuV9nf9i5eI2SiDtZJ0TGr/DUK8AcjjugNX1DgVaMAQK K672KibDILHUmdFd1aDmwtqSf+9AHHKrLousq+Whif8xaNlRde2/P4hsa5rm4YeCioGd X9KEXC7tg+eASpWfRw6zM5fi7WISmNOjgeSpn4cFpc7Hdn/gN5VBpzOVHHq2XIIsUXzh hm/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WFqABFaU; 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 x62-v6si5496943pfa.80.2018.08.08.16.30.39; Wed, 08 Aug 2018 16:30:54 -0700 (PDT) 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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WFqABFaU; 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 S1731123AbeHIBvo (ORCPT + 99 others); Wed, 8 Aug 2018 21:51:44 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:40990 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727530AbeHIBvo (ORCPT ); Wed, 8 Aug 2018 21:51:44 -0400 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 188BDCD; Thu, 9 Aug 2018 01:29:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1533770986; bh=c2EW/89rho0++mL4tGoQAnB1i5UieIRhbdlQr+XrCuI=; h=From:To:Cc:Subject:Date:From; b=WFqABFaU5uG99mzBITMdtkkJRWu98/de/OSTJyjsZjSUbBezrs9E0lS8D1PiGrjei QtUr2vyQPZlmUDOcg2jG5c0Cwc46FQ2jaW7s0oXcLyNOqRgYzr7+ifxh4W5GsXAvGO TCiRySNkDMtzvLua4iGvZJrwTSAr8Pnm97GIvV/s= From: Kieran Bingham To: mchehab@kernel.org, Rob Herring , Mark Rutland , Hans Verkuil Cc: Laurent Pinchart , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham , linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [PATCH v2] dt-bindings: media: adv748x: Document re-mappable addresses Date: Thu, 9 Aug 2018 00:29:41 +0100 Message-Id: <20180808232941.10582-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ADV748x supports configurable slave addresses for its I2C pages. Document the page names, and provide an example for setting each of the pages explicitly. Signed-off-by: Kieran Bingham --- v2: - Fix commit message - Extend documentation for the "required property" reg: .../devicetree/bindings/media/i2c/adv748x.txt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/adv748x.txt b/Documentation/devicetree/bindings/media/i2c/adv748x.txt index 21ffb5ed8183..f7fbe221c15e 100644 --- a/Documentation/devicetree/bindings/media/i2c/adv748x.txt +++ b/Documentation/devicetree/bindings/media/i2c/adv748x.txt @@ -10,7 +10,11 @@ Required Properties: - "adi,adv7481" for the ADV7481 - "adi,adv7482" for the ADV7482 - - reg: I2C slave address + - reg: I2C slave addresses + The ADV748x has up to twelve 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. Optional Properties: @@ -18,6 +22,11 @@ Optional Properties: "intrq3". All interrupts are optional. The "intrq3" interrupt is only available on the adv7481 - interrupts: Specify the interrupt lines for the ADV748x + - reg-names : Names of maps with programmable addresses. + It can contain any map needed a non-default address. + Possible map names are: + "main", "dpll", "cp", "hdmi", "edid", "repeater", + "infoframe", "cbus", "cec", "sdp", "txa", "txb" The device node must contain one 'port' child node per device input and output port, in accordance with the video interface bindings defined in @@ -47,7 +56,10 @@ Example: video-receiver@70 { compatible = "adi,adv7482"; - reg = <0x70>; + reg = <0x70 0x71 0x72 0x73 0x74 0x75 + 0x60 0x61 0x62 0x63 0x64 0x65>; + reg-names = "main", "dpll", "cp", "hdmi", "edid", "repeater", + "infoframe", "cbus", "cec", "sdp", "txa", "txb"; #address-cells = <1>; #size-cells = <0>; -- 2.17.1