Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2649917imj; Mon, 11 Feb 2019 06:28:13 -0800 (PST) X-Google-Smtp-Source: AHgI3IbBZIJVeyx00gNkiT+EKbjDHgKMnTVuLoAKQ8QexkmvbgTTC9CiD6NJo4o/xbKfz+FDyZcD X-Received: by 2002:a63:e74b:: with SMTP id j11mr33807613pgk.397.1549895293592; Mon, 11 Feb 2019 06:28:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895293; cv=none; d=google.com; s=arc-20160816; b=YQyreBa9mHXea3P2N9ltvxV85tPlmx/XJsjFZEU+lV5zEZ6EHQH7BP3K6vGZHfm+9J KEsylp28kq+TRtwXSWp++XUpK66zuqzIb/YCKfuax3lW4E88Tld9k/bsVEK0RStybzmR 4QoMdrSA/ZUwdP3AOSsuLU/Lmlrbb2mn5Om2yEjXJwiVEBf8iI6Q4/Ws6C6/es+6Aabe zc67g1INm4VlPrNYR1jYhj3uBiaYCPQ64GNjho8ZqKNxAUYs5lp6RWK1JFmmNNOcqp+h PDGvFiiqG+OPyQClatBZ0iAqOqdpZ6u7cQwpV4dtrlIbah96VeASWlVL/afWaJf3nkDT oLxg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l/k6+ePKea/3DLL7UtoAangTynml2kD6F13QVWMojCs=; b=cQLk7j3Byye5oEP7UAd5J6h75d8BFc6VjqTkqznRdBEQujgtJ6/HZaMcRDgJAE7jZm Ho3tPBlIu2oPqfgO7r0zqw3l9fC7zCRswvy1dIUls4s2GUN0rqogG+p/6aHoQfUzWs9Y 3FsNJGy/P7XGWtmjatAkVKpriWu76pALw0lXCYi2PHN3hYqA0jS7/LdlPyr0Y6DQvjJU NIhqrfbmaGXUl2qzwBf3EdMd4379VxYMVdd+MEqd1nnNnFTtx5YwOgj2aO6VWhIW+NhS gX9HiYRlsfs+W6XZd3PiAFaww99sr+tlUK18or0q/rPB6Uux1Q638iqJVDOlPY1A8ORZ 7HiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Pk3wEkzZ; 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 m61si10777287plb.43.2019.02.11.06.27.57; Mon, 11 Feb 2019 06:28:13 -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 header.i=@kernel.org header.s=default header.b=Pk3wEkzZ; 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 S1729381AbfBKOZ2 (ORCPT + 99 others); Mon, 11 Feb 2019 09:25:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:58848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729376AbfBKOZZ (ORCPT ); Mon, 11 Feb 2019 09:25:25 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 937FE20821; Mon, 11 Feb 2019 14:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895125; bh=ADxSYNQLJgRPxCAJy5hOugMmWeZ/tFUoXkRt8G8U0n8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pk3wEkzZFVsP+y9/CDFpUFIuXuaUoiusvVjeb731oZ//JdPNQQxvAwm+YMEU8LTiM BknNpNN3rPP44RBhYizJ9espigbOqKBhzboBWT4sXxsGp9ryLRLv+YD6At8g81VlNz x452jHWISQXFPjaKyllN+I7pKB1QEyWlx2zQBJ/Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lubomir Rintel , Pavel Machek , Olof Johansson , Sasha Levin Subject: [PATCH 4.20 100/352] ARM: dts: mmp2: fix TWSI2 Date: Mon, 11 Feb 2019 15:15:27 +0100 Message-Id: <20190211141852.173128402@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 1147e05ac9fc2ef86a3691e7ca5c2db7602d81dd ] Marvell keeps their MMP2 datasheet secret, but there are good clues that TWSI2 is not on 0xd4025000 on that platform, not does it use IRQ 58. In fact, the IRQ 58 on MMP2 seems to be a signal processor: arch/arm/mach-mmp/irqs.h:#define IRQ_MMP2_MSP 58 I'm taking a somewhat educated guess that is probably a copy & paste error from PXA168 or PXA910 and that the real controller in fact hides at address 0xd4031000 and uses an interrupt line multiplexed via IRQ 17. I'm also copying some properties from TWSI1 that were missing or incorrect. Tested on a OLPC XO 1.75 machine, where the RTC is on TWSI2. Signed-off-by: Lubomir Rintel Tested-by: Pavel Machek Signed-off-by: Olof Johansson Signed-off-by: Sasha Levin --- arch/arm/boot/dts/mmp2.dtsi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 766bbb8495b6..47e5b63339d1 100644 --- a/arch/arm/boot/dts/mmp2.dtsi +++ b/arch/arm/boot/dts/mmp2.dtsi @@ -220,12 +220,15 @@ status = "disabled"; }; - twsi2: i2c@d4025000 { + twsi2: i2c@d4031000 { compatible = "mrvl,mmp-twsi"; - reg = <0xd4025000 0x1000>; - interrupts = <58>; + reg = <0xd4031000 0x1000>; + interrupt-parent = <&intcmux17>; + interrupts = <0>; clocks = <&soc_clocks MMP2_CLK_TWSI1>; resets = <&soc_clocks MMP2_CLK_TWSI1>; + #address-cells = <1>; + #size-cells = <0>; status = "disabled"; }; -- 2.19.1