Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3610318imu; Sun, 11 Nov 2018 19:22:04 -0800 (PST) X-Google-Smtp-Source: AJdET5etMJ2jh6Zkq089DaEvRrPa7PwcDFuHZdxGeQasrjbMvtjcv4hSLwSAUu0YNnMXYOLCGEkP X-Received: by 2002:a17:902:29e3:: with SMTP id h90-v6mr18614509plb.158.1541992924121; Sun, 11 Nov 2018 19:22:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541992924; cv=none; d=google.com; s=arc-20160816; b=Y79YaSUS8EKNM75jGH9WincmZ/tb3gXeve6vthnJYob+cClOs+1O4yaZ/fTp30qPpx 1KKukIVUYebg+lADgd8czKz7hpdShnHBMyiMYI3MGd8DyAE1Z6XLW/sxfLiiFreoPt7+ FHsHhZAg7rxBRaxO1yn5rJYwgO5Tlrs0GfZzH6s+ZCxGMdN9Cs8dVgXWe8y/uibaKPVa JSV6u8Lq95dJARvRcW7JtyZ4OlsBiYUSWJgXUa/7ezxPyGZmcNdBd9mNS2rwz09SinL0 5TpzxndNYFMmyv736yKax09/n+9fD5n5Zri/LM3zemw/p9ug0BtysDdFbQOU95KgYIPX h48w== 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=Rj3l8oenTTp7T2m/849n4bXT/J1ZpwBwOjC4ab3vl0g=; b=bJGjICjU6/q7oJe/RFMcvtzExLlyqjFoo9z+TES0Fwt65ezvJCuTYKlq4JAz+zZEZB 2abKhScjEwE8eur1urn/ceV5Mjm7IrP4OqPeL8w7RsIOQs8ufIedE/DGqDOqinQdPtKW 7T1E1Kzw4QRcGHufeo0kL/GL47wBkB2w7deoHGu7m19zpZT/G5DoNDvrKwoeeQCAhGmf b3VyKMZabSUTjGQUhtQ+BMfPveUIDY/aIE87R5cyj6eOMtnWGRqXymAxpCrGhpJJDQeG K8FyBgjRxHMKaUL8QxK4XPcP/AmNJlJ4ptLoUBvdK3G9DJPbskAPFJ60L16IPt2pCcn/ jERg== 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 89-v6si16036128pld.274.2018.11.11.19.21.49; Sun, 11 Nov 2018 19:22:04 -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 S1730597AbeKLNMY (ORCPT + 99 others); Mon, 12 Nov 2018 08:12:24 -0500 Received: from shell.v3.sk ([90.176.6.54]:59629 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbeKLNMX (ORCPT ); Mon, 12 Nov 2018 08:12:23 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id BE078C6A26; Mon, 12 Nov 2018 04:21:12 +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 U1HmoKnjjoWh; Mon, 12 Nov 2018 04:20:52 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 0C557C6A3A; Mon, 12 Nov 2018 04:20:42 +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 9a2CK5e2czg5; Mon, 12 Nov 2018 04:20:38 +0100 (CET) Received: from belphegor.lan (ip-89-102-31-34.net.upcbroadband.cz [89.102.31.34]) by zimbra.v3.sk (Postfix) with ESMTPSA id 4912DC6A29; Mon, 12 Nov 2018 04:20:37 +0100 (CET) From: Lubomir Rintel To: Eric Miao , Haojian Zhuang Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King , Robert Jarzmik , Lubomir Rintel Subject: [PATCH v3 06/18] DT: marvell,mmp2: fix TWSI2 Date: Mon, 12 Nov 2018 04:20:15 +0100 Message-Id: <20181112032027.653931-7-lkundrak@v3.sk> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181112032027.653931-1-lkundrak@v3.sk> References: <20181112032027.653931-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 063382b3eaca..63d49abf4e92 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