Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2682436imj; Mon, 11 Feb 2019 06:59:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IbDu8tVgitV6R9GTqulpCp9kPrXeyGqQJCOi3iFJ0d3WJw/wz9bQx0D7n859YPVlPM+hqJY X-Received: by 2002:a63:fc59:: with SMTP id r25mr18969395pgk.302.1549897164131; Mon, 11 Feb 2019 06:59:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549897164; cv=none; d=google.com; s=arc-20160816; b=Ut3BbniJWt5gYjhqk4LFTIcRWEdbUKxgdyBpE2bniTmvr3qCxoxfeG2HizpCTTH95J iZx1BeLEPv6uA9SLpG1V+U7wOo1InK06qvpCK/jiuXhsZfHRhsSkHRY36s+JlqtZ+V0i /YZK4r4CGhsLhJQB/axbZx1GbDnUVmDP8ZTUU+26bW+5V9vclNYrL0069nRlcLEU2lYd GwjCuYaJCpavM/EPo8v5/k381T5Ou9pRch0S6I7V0YAog+xUEJ4gejVCUwRCijn1kHyw pdMFVvIFkZ2llasrV9aTJJA0azccAheCAOCyaf7SUqezLe2rTRX3qldoXYlLK2lKd1MJ TqPw== 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=XYrZXrNsGF5cIWRnIEm6nVbVS5TtBkfSMHUKsxt0L9M=; b=MU6L/A84wqsNI1xBxZq8BTmqphdRpmvMcIKqASToyGMbt5N/5dQr87n99t9pjTgnwC AzJkBmiCowLx51lIDAZHznAqHmZszZM2nfO8CbI2JAGRdVjwcEjqCzhWpFghnzgpMR07 hYPD3JV/l5NhreucQLhulzKgC/sE+k9p+3GX/cJvZ2RT6dQqrshVXwt2+Vuk+2MIQ8tx K815LIrA28sSOMkqDRse4MCNwgac5WhYw8IMNl+zPPooDzk6wjB2QZJQOAF5ntLFqWX+ 05fXJojWuPQSyIvbJuZFI2K9cOpRGI3+FOAuBm6RNAfXRs3L/8Tg0ktIOB4Hz4l8h0Gk 1RLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=091615R4; 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 m11si10453859plt.26.2019.02.11.06.59.08; Mon, 11 Feb 2019 06:59:24 -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=091615R4; 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 S2389499AbfBKO6O (ORCPT + 99 others); Mon, 11 Feb 2019 09:58:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:45728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389489AbfBKO6K (ORCPT ); Mon, 11 Feb 2019 09:58:10 -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 87EE02229E; Mon, 11 Feb 2019 14:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897090; bh=N2B+/E2Cdv92UwWG0/XVbIEwtVaTn3PyOBQFimnI7xw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=091615R4gUmjEZ+uCExzBe57Q3MPQ+y7XLLNMJwQ1o9278EDTMvMivrfHfx9SgRHX GH+itBNtQXwQ0d0e7fojqemQqROq0/iAr6tJgWwN/XR+uc1LdAaYBR9eSB8pEoiixP KQvC9wh0H3jW8B2ua5YBQeQ/mkHxWAI2lRgQLaqA= 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.14 057/205] ARM: dts: mmp2: fix TWSI2 Date: Mon, 11 Feb 2019 15:17:35 +0100 Message-Id: <20190211141832.531809119@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@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.14-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