Received: by 10.223.185.116 with SMTP id b49csp3544708wrg; Tue, 13 Feb 2018 04:07:37 -0800 (PST) X-Google-Smtp-Source: AH8x226lXNKuZKxELnxI1EulsBb0ZlfFVViLWv5sQnNSTermASi5S8jIhWOLecxulgGgWWwqY7t1 X-Received: by 10.101.69.9 with SMTP id n9mr840564pgq.317.1518523657722; Tue, 13 Feb 2018 04:07:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518523657; cv=none; d=google.com; s=arc-20160816; b=shQcgI0j2cEBpaGVIbLk1T0QJUVy9OmTjeLrq+S2jFvjG19UTJ6GYLfyadnuCd7Kxd H/JzwyIJ2ROsl2CVmCyX5v9Xcwn1hSx9V6BHFrntdN8pgVPCQpoE0ZgJDuMJKDwvWE0x 7i80GSw6T7BC+MbS896YLNh9MxnSxiNb4fMt3t1t8XWb4aPDbOGiXaAXJBto+kJV3in6 Ubz9MUI1CxV5ogcR6DWblXaOSapBwnXuV8JXbNnxm+eDcHtCYwLSbP7WbtEk/jIGCuwr gecJsC6PGXrCmcxxR7J9TxMrG86D6ZUV3BU2W/P8ogGv3AO6okCV2xKAKuC3qlOaGtnb zJAg== 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=mxLrvZb5TYs6fQcYsnkEzF3SAFKH+hx01uTZjy7wRSI=; b=HSqVT0/zYw2yx3tcUINGBXl5Qi9TqglTtDb7WBZ8bAfGv+071eCLeUIuDujmOgguVM 2BaoIQR0XihX56w7GNVAzpRGajGyDwRGwjI/aC6jtZ7D9gyNILDxU9DohCiteJ40FBF+ RN2tKFYnn9biEIyZqTNjA4Hq37p3FHh8ua/jqkq+cld5y0VSGaJAdLxkxgtpNOPquh4a hfwnjy6VZdvMjCHf0Zm7M3yhppoa6xGiUeFHDnMu6aMAYttGAsGlP+c9XJO5HZ3vFPwY S2MWWWNMYUyllxwDa4up7ocHqpYiibPF0D2wYxxWhkmvjlEwFBUK+7r0BR412KccwYi1 lOmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=PsxjCiky; 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 s67si1666874pgb.64.2018.02.13.04.07.22; Tue, 13 Feb 2018 04:07: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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=PsxjCiky; 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 S935020AbeBMMGX (ORCPT + 99 others); Tue, 13 Feb 2018 07:06:23 -0500 Received: from galahad.ideasonboard.com ([185.26.127.97]:42026 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934661AbeBMMGV (ORCPT ); Tue, 13 Feb 2018 07:06:21 -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 35ADE2005E; Tue, 13 Feb 2018 13:04:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1518523489; bh=qhGR9lSWvAvccTet8ILMWdyinXqg9H1yqH8cS3w6u/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PsxjCikyfZQ3Q8W24Xbmsm6O8wDMaYAa9GhgH/y/aTME7DvLwDAheUr2V6KDPJw+S km9XkujssrkaPOhpSE7GjDyYMLR9naXFoFCTBhb77pnaL14RgQApHr2Ogd3Lz2Vi4q VkxECjU5Hg2BJDdVzpGsx28DvPAPwI3/p4XNXLJE= 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, Kieran Bingham , 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 14:06:51 +0200 Message-ID: <84376496.fPaZ5qpN3E@avalon> Organization: Ideas on Board Oy In-Reply-To: <1518473273-6333-2-git-send-email-kbingham@kernel.org> References: <1518473273-6333-1-git-send-email-kbingham@kernel.org> <1518473273-6333-2-git-send-email-kbingham@kernel.org> 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, Thank you for the patch. 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 main > I=B2C ports. Each map has it own I=B2C address and acts as a standard sla= ve > 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 Nitpicking, I might not mention i2c_new_secondary_device in the subject, as= =20 this is a DT bindings change. I don't mind too much though, as long as the= =20 bindings themselves don't contain Linux-specific information, and they don'= t,=20 so Reviewed-by: Laurent Pinchart > --- > 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 > ++++++++++++++++-- 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 > @@ -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 mandator= y, > others are + optional and revert to defaults if not specified. >=20 > - hpd-gpios: References to the GPIOs that control the HDMI hot-plug > detection pins, one per HDMI input. The active flag indicates the GP= IO > @@ -35,6 +39,11 @@ Optional Properties: >=20 > - reset-gpios: Reference to the GPIO connected to the device's reset p= in. > - 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: >=20 > @@ -52,7 +61,12 @@ Example: >=20 > hdmi_receiver@4c { > compatible =3D "adi,adv7611"; > - 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