Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1463739imu; Wed, 28 Nov 2018 09:55:30 -0800 (PST) X-Google-Smtp-Source: AJdET5dbEQEtWWmSvZxncBdLFj7FOapSujLFXte1iLHJg744w3/XVQouXqSgkkI5mG/K2hgAlIaN X-Received: by 2002:a63:c64f:: with SMTP id x15mr33174568pgg.16.1543427730440; Wed, 28 Nov 2018 09:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543427730; cv=none; d=google.com; s=arc-20160816; b=k5b4xP0XWwsO+R5DhCAuDsbyWdcCPnCrVPNxHzuA89A0d7QcuJmznkeD2ykFbQli8V 1KTXOgrNhFQS1kBW+Dymz3Sd7q+ZMIBHRUSvbcQRYb+iUxxDLFSoHq5exeJbNAjh7bEF X8yrRGMu5TSNigRr1rKA3hLa5bp3y8aH+v+jPek7BC/PFRvxYhL08h6jI1Zl8eSlTUEX lhlqmCbKsd+dg2sxULQY1dZk32IDtcitVP/I3bs0ZWY5T2HFDWG0vNWujXpgxRTH8QEu rC4LCBKsfO154U88PfCH6ZcnvM8X4tSc43iKb/kySwm/mMgR5y3p4Yhj3Q1JDi8Ntstw BisQ== 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:message-id:date:subject:cc:to:from; bh=7BrhDxLC8YP3u13o95vKW/XL3Zy0Y4doAwlEJSRQAE8=; b=B7Ee2n62kDLgdC55xlMAQKzKFM1P8ROA5XUMhtW0DGg2/SQ3RewosxWPKCnhzfa87P WwqlSC8I9xG/3MYlpoLWth2AUSoyTIbRGS1NPtihRThSm7ufln43/JJujWBTxzuPYmtW tRRXaFyBxqqCtMdQd/G8xGbC3sqy32CgCZXdGVlkWH32EYfsy3XM9qa16RQx0eZ/q3TB 1/G74xm1Pn7W45UzkazLx+pp0k0xC3ExnuOJKehJkjCN55kWbRMO+3mihM5yZwdvH8c1 GGEkEJDltsmWH5Y9MZ3340M1TkCtpIOJ3Q9VlWkDvPx994oIZPD8+VxAw52MAlouZAMc kBTg== 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 y10si7424219pgp.348.2018.11.28.09.55.14; Wed, 28 Nov 2018 09:55:30 -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 S1729436AbeK2E4a (ORCPT + 99 others); Wed, 28 Nov 2018 23:56:30 -0500 Received: from shell.v3.sk ([90.176.6.54]:39387 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729387AbeK2E4a (ORCPT ); Wed, 28 Nov 2018 23:56:30 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id C0660998D3; Wed, 28 Nov 2018 18:54:01 +0100 (CET) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id MCss26D1fWYR; Wed, 28 Nov 2018 18:53:46 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id E5BC9999DE; Wed, 28 Nov 2018 18:53:34 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SYZR2wloU1lC; Wed, 28 Nov 2018 18:53:30 +0100 (CET) Received: from belphegor.brq.redhat.com (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id DDEE399A91; Wed, 28 Nov 2018 18:53:29 +0100 (CET) From: Lubomir Rintel To: arm@kernel.org, Olof Johansson , Arnd Bergmann Cc: Eric Miao , Haojian Zhuang , Russell King , Robert Jarzmik , Pavel Machek , James Cameron , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lubomir Rintel Subject: [PATCH v4 06/20] DT: marvell,mmp2: fix TWSI2 Date: Wed, 28 Nov 2018 18:53:10 +0100 Message-Id: <20181128175324.163202-7-lkundrak@v3.sk> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181128175324.163202-1-lkundrak@v3.sk> References: <20181128175324.163202-1-lkundrak@v3.sk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 1120fe6abbdc..c5787eea57c7 100644 --- a/arch/arm/boot/dts/mmp2.dtsi +++ b/arch/arm/boot/dts/mmp2.dtsi @@ -257,12 +257,15 @@ status =3D "disabled"; }; =20 - twsi2: i2c@d4025000 { + twsi2: i2c@d4031000 { compatible =3D "mrvl,mmp-twsi"; - reg =3D <0xd4025000 0x1000>; - interrupts =3D <58>; + reg =3D <0xd4031000 0x1000>; + interrupt-parent =3D <&intcmux17>; + interrupts =3D <0>; clocks =3D <&soc_clocks MMP2_CLK_TWSI1>; resets =3D <&soc_clocks MMP2_CLK_TWSI1>; + #address-cells =3D <1>; + #size-cells =3D <0>; status =3D "disabled"; }; =20 --=20 2.19.1