Received: by 10.223.185.116 with SMTP id b49csp2686891wrg; Mon, 12 Feb 2018 14:09:12 -0800 (PST) X-Google-Smtp-Source: AH8x224+PAaX4nq6g9x2QKx3lH4UlHobyUTlBkpfrhrRdD3boNt3FoaaxCuckJ7fG8gkZQL52IBk X-Received: by 10.101.101.84 with SMTP id a20mr10474195pgw.163.1518473351901; Mon, 12 Feb 2018 14:09:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518473351; cv=none; d=google.com; s=arc-20160816; b=WyQNGVzQlU3x50dZ5QL61YUiuwboIzjk0UIRHZb2//WoKOd1TQPU+8ncZfxbcLAk2C ceeq9VLjNkiALiLLHbXHccuriqH5VPGIzsZpn6FRZ0RpKRuMHUlFx8AeYrO1z8g3M1rv oAPhA8wXe0xJf3q3F6F24A38454BauHk34dXQiXQCdLoPAG2LpfxFPTLMo15CCeSTtZL AwIoi8aNj9n1mgaSCwId2jc1jBN/TGEfS+BwdItUfCalCpfVETSjL01bFYkbyrrVtn0R kQnmwEUTYBR/Afwq7mBNKRPdNFQXIMEBaTTV9tDojMLxr/jSKL7mN7dv+PX90iaYcQGb 545Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:arc-authentication-results; bh=29JmkNDziN9sgwinwoGB8eQwJ+OvJnHD9PBqWukGO68=; b=jleOQAmdMA2SdShc+9KwF+Z1xxTZDClKr4nvUHYT8XUZHDQ5B16rbpGmr9JfcRgyiJ rItZtRjjfTxwxH5XIq54yxtE7eqiLYI2nFriJdwVvXOYs0COmW3PDC7U1Vcles1pFiKY WTKjK3d9S9LVMTkDjOxjY2/uRZ2B80au3W9SzjETaDtvOoF5zpYKyHYaGAoJ6CQxcJQw wdXhry3kl8sZQGQ8OPy3WdpHQ2iM/c3YQFA1gG3K7K58gsSb61Zg63DmVwB59/LZivaT yBnPsk/dhDol/4ig+r3HhY1Fa4l4DX/4ZWkSxlKU+m8EEIMD3OoK47e/AbWcRxeJZShc a95w== 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 g8si3923319pgq.446.2018.02.12.14.08.57; Mon, 12 Feb 2018 14:09:11 -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 S932862AbeBLWIV (ORCPT + 99 others); Mon, 12 Feb 2018 17:08:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:59016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932759AbeBLWIR (ORCPT ); Mon, 12 Feb 2018 17:08:17 -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 791EB217B2; Mon, 12 Feb 2018 22:08:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 791EB217B2 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 , Lars-Peter Clausen , Kieran Bingham , Simon Horman , Magnus Damm , Rob Herring , Mark Rutland , Russell King , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT) Subject: [PATCH v3 3/5] [RFT] ARM: dts: wheat: Fix ADV7513 address usage Date: Mon, 12 Feb 2018 22:07:51 +0000 Message-Id: <1518473273-6333-4-git-send-email-kbingham@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518473273-6333-1-git-send-email-kbingham@kernel.org> References: <1518473273-6333-1-git-send-email-kbingham@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kieran Bingham The r8a7792 Wheat board has two ADV7513 devices sharing a single i2c bus, however in low power mode the ADV7513 will reset it's slave maps to use the hardware defined default addresses. The ADV7511 driver was adapted to allow the two devices to be registered correctly - but it did not take into account the fault whereby the devices reset the addresses. This results in an address conflict between the device using the default addresses, and the other device if it is in low-power-mode. Repair this issue by moving both devices away from the default address definitions. Signed-off-by: Kieran Bingham --- v2: - Addition to series v3: - Split map register addresses into individual declarations. arch/arm/boot/dts/r8a7792-wheat.dts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7792-wheat.dts b/arch/arm/boot/dts/r8a7792-wheat.dts index b9471b67b728..42fff8837eab 100644 --- a/arch/arm/boot/dts/r8a7792-wheat.dts +++ b/arch/arm/boot/dts/r8a7792-wheat.dts @@ -240,9 +240,16 @@ status = "okay"; clock-frequency = <400000>; + /* + * The adv75xx resets its addresses to defaults during low power power + * mode. Because we have two ADV7513 devices on the same bus, we must + * change both of them away from the defaults so that they do not + * conflict. + */ hdmi@3d { compatible = "adi,adv7513"; - reg = <0x3d>; + reg = <0x3d>, <0x2d>, <0x4d>, <0x5d>; + reg-names = "main", "cec", "edid", "packet"; adi,input-depth = <8>; adi,input-colorspace = "rgb"; @@ -272,7 +279,8 @@ hdmi@39 { compatible = "adi,adv7513"; - reg = <0x39>; + reg = <0x39>, <0x29>, <0x49>, <0x59>; + reg-names = "main", "cec", "edid", "packet"; adi,input-depth = <8>; adi,input-colorspace = "rgb"; -- 2.7.4