Received: by 10.223.185.116 with SMTP id b49csp3637574wrg; Tue, 13 Feb 2018 05:30:58 -0800 (PST) X-Google-Smtp-Source: AH8x227AETpUTY5pA5GN64F/CFVKBJHLwphqWJj50F4LLCMvYDOouBz4StfELbPcL6HU7Mh6Accv X-Received: by 10.98.67.157 with SMTP id l29mr1270926pfi.214.1518528658593; Tue, 13 Feb 2018 05:30:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518528658; cv=none; d=google.com; s=arc-20160816; b=CTwjbrGwbP7wbcg+aFid4Zo7Jp/To43B6vpxAg8VYTmszGDW9gnQJq9hia6cWeF0Ff RVAwLD04XtLfKhJy48bCIH/VCYXS33I5nOuJdrKyaGMxIkYcutbJbHeZqr5tM9OGk2sp SIclMPHs4kodEVLAvNuYxIjAlEDdprnBCt8WJJGOmjjGGRM2AVNbMQ5PPWcFgBwCnbN0 UbJGPZqWmsDq8UPklJVslPgfh/Wm1/9m2mVrdqt6ZdK2NqMYufdHkLHKS8OsyascVuL6 jRX7rThMmqOio5AHII9zpltNUxTnToW6fLwP4EG/hCHkM0jTeApGW5nJYIRKTmHOEfWs u8Ew== 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:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=LjhKMq353NfANrwuGzSTbxHxg/RbqxEWRMMJs/F4Rcs=; b=lsGe2e2IcR1aJC6HlVKQKKLth0YXaXnvgllbNV02yBzCycg1ay0MO0BhD/8whty2yk JZ41kkQTYcw41paaaeDEVYymEDX4fmQKMq6OTMFXxN8jXm84acB1MaLpT1zsIm1w2TxZ Ykpvyzm8YAElt2PVS4UIucuxDr5VPZqkTPhSgzvT+56qkSgiWBu44Ce/XM/XHToXZeXH l5PfB8m9ULScqhkLsq/TSJGWI3OCvQl3uqI/VzSEZoKDZEVS8rfjbwOQ2DDoa44u+y8i ncqcy0/NGpeL4x1wpR6gepfoNLtMphf+P4zo88779bTOzZ8EOnxBx/jyQfCGbGjGESwS iFjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=pfe899hL; 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 s22-v6si1316180plk.550.2018.02.13.05.30.43; Tue, 13 Feb 2018 05:30:58 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=pfe899hL; 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 S935373AbeBMN3j (ORCPT + 99 others); Tue, 13 Feb 2018 08:29:39 -0500 Received: from galahad.ideasonboard.com ([185.26.127.97]:42429 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935174AbeBMN3f (ORCPT ); Tue, 13 Feb 2018 08:29:35 -0500 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id DFD332005E; Tue, 13 Feb 2018 14:28:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1518528483; bh=wYifvfAEmbYE0QDAFl7DP5ciLlKte6sKHvrSh+4NXNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pfe899hLfvqHlnjXAHYAt0Bd6oga6SqwQlnU6WqhK2lQg1SV8cq1xtDZL9sEhokRk ir2PUZ8Myt46MJWOVj3r0sQkOTinTFNG+NgpbTmZpSYrOLNw6Dh1O3HHyF0gkCS/BL liMBujrVeAm8uKv8HyTuuR1auIJcjjFtps70EJfs= From: Laurent Pinchart To: Kieran Bingham Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Jean-Michel Hautbois , Sergei Shtylyov , Lars-Peter Clausen , Kieran Bingham , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: [PATCH v3 1/5] dt-bindings: media: adv7604: Add support for i2c_new_secondary_device Date: Tue, 13 Feb 2018 15:30:06 +0200 Message-ID: <52386641.uAENE5yG1n@avalon> Organization: Ideas on Board Oy In-Reply-To: References: <1518473273-6333-1-git-send-email-kbingham@kernel.org> <84376496.fPaZ5qpN3E@avalon> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kieran, On Tuesday, 13 February 2018 15:14:43 EET Kieran Bingham wrote: > On 13/02/18 12:06, Laurent Pinchart wrote: > > On Tuesday, 13 February 2018 00:07:49 EET Kieran Bingham wrote: > >> From: Jean-Michel Hautbois > >>=20 > >> The ADV7604 has thirteen 256-byte maps that can be accessed via the ma= in > >> I=B2C ports. Each map has it own I=B2C address and acts as a standard = slave > >> device on the I=B2C bus. > >>=20 > >> 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. > >>=20 > >> Signed-off-by: Jean-Michel Hautbois > >> [Kieran: Re-adapted for mainline] > >> Signed-off-by: Kieran Bingham > >> Reviewed-by: Rob Herring > >=20 > > Nitpicking, I might not mention i2c_new_secondary_device in the subject, > > as this is a DT bindings change. I don't mind too much though, as long = as > > the bindings themselves don't contain Linux-specific information, and t= hey > > don't, so >=20 > How about: ... adv7604: Extend bindings to allow specifying slave map > addresses Sounds good to me. > > Reviewed-by: Laurent Pinchart >=20 > Collected, thanks. >=20 > -- > Kieran >=20 > >> --- > >>=20 > >> Based upon the original posting : > >> https://lkml.org/lkml/2014/10/22/469 > >>=20 > >> v2: > >> - DT Binding update separated from code change > >> - Minor reword to commit message to account for DT only change. > >> - Collected Rob's RB tag. > >>=20 > >> v3: > >> - Split map register addresses into individual declarations. > >> =20 > >> .../devicetree/bindings/media/i2c/adv7604.txt | 18 > >>=20 > >> ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) > >>=20 > >> 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 > >>=20 > >> @@ -13,7 +13,11 @@ Required Properties: > >> - "adi,adv7611" for the ADV7611 > >> - "adi,adv7612" for the ADV7612 > >>=20 > >> - - 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=B2C ports. Each map has it own I=B2C address and acts = as a > >> standard + slave device on the I=B2C bus. The main address is manda= tory, > >> others are + optional and revert to defaults if not specified. > >>=20 > >> - hpd-gpios: References to the GPIOs that control the HDMI hot-plug > >> =20 > >> detection pins, one per HDMI input. The active flag indicates the > >> GPIO > >>=20 > >> @@ -35,6 +39,11 @@ Optional Properties: > >> - reset-gpios: Reference to the GPIO connected to the device's reset > >> pin. > >>=20 > >> - 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" > >>=20 > >> Optional Endpoint Properties: > >> @@ -52,7 +61,12 @@ Example: > >> hdmi_receiver@4c { > >> =09 > >> compatible =3D "adi,adv7611"; > >>=20 > >> - reg =3D <0x4c>; > >> + /* > >> + * The edid page will be accessible @ 0x66 on the i2c bus. All > >> + * other maps will retain their default addresses. > >> + */ > >> + reg =3D <0x4c>, <0x66>; > >> + reg-names "main", "edid"; > >>=20 > >> reset-gpios =3D <&ioexp 0 GPIO_ACTIVE_LOW>; > >> hpd-gpios =3D <&ioexp 2 GPIO_ACTIVE_HIGH>; =2D-=20 Regards, Laurent Pinchart