Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3610462imu; Sun, 11 Nov 2018 19:22:17 -0800 (PST) X-Google-Smtp-Source: AJdET5f3P/ljwjIv49S/i6z/80cahwMEggXfqBJUjNycsj89RwKmG0J41XWcW7J5qzO1glOWJiT9 X-Received: by 2002:a17:902:7882:: with SMTP id q2-v6mr18579371pll.188.1541992937162; Sun, 11 Nov 2018 19:22:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541992937; cv=none; d=google.com; s=arc-20160816; b=au3RZ2wC4wb9fPq2Ky5ND4fbTQn/9xSUExca6Pd3+op92FtkHtmqNyHYc+R9WAGfN0 3xCvG4twua1EDWOudt7T+xP6ged0p6u/TFdX//U3oo24O7pmoZid9fn0qg5SykGHN3R+ iEnBBEeX+Xc1YfkWrdDsjeCf26BqmpG2MyoKDWA6Oj18GZLQ9QRp2EG3HLPuqP1DbSPr oKV7JFWCIyPdtvyi44LvBjn0ARMyVH/W7MAflMKz4uYjHK2FF37PdkaBEdlM3j9yHAtj p0lIKNU4TEDhdCoYg3D2SlNKqUPa9tkQh3FLXmlVNP3S2AW66iHZMV3HlB8xheKYXy+g NM8g== 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=VPaU88KuGhxPZ34yqsUSGlKxYlG3rmHC2AScjAjB5l0=; b=Y1QPhsH45RFyRlKH8ZwMttm3OHuqq1VeFNZLrQljKIAMfIiSiX5vVSkskHhbjQ5Yeg oW7QzgzbbdIJ0X4eXlmHdfo9pwJ/tq9RAvuEPan7HT4kkwyoWd1O/9Bamjgzr7TlzkYG 9asafi8x/sxTYCujrSXl3RcTLcOdkhzaGMqQQUK3DYNUK6e263HKz2ZeuIijHSX6gZ8+ Zx6Dry7erlzrVRT/OXGTa/aDBB8VHBoUtXtHxDkkzrQkWID4hPRb0DbroMt9+/mD6vlm IZJiyXDAVB10tNQTAWM4+0hewnyUAVAMmL+yLhxNsOCZ64TkjRS2RQ6efa5vMog497Bv pXZQ== 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 d32-v6si17001536pld.238.2018.11.11.19.22.02; Sun, 11 Nov 2018 19:22:17 -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 S1730688AbeKLNMb (ORCPT + 99 others); Mon, 12 Nov 2018 08:12:31 -0500 Received: from shell.v3.sk ([90.176.6.54]:59652 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbeKLNMb (ORCPT ); Mon, 12 Nov 2018 08:12:31 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 76362C6A2A; Mon, 12 Nov 2018 04:21:20 +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 M4vTv97Tntp7; Mon, 12 Nov 2018 04:20:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 49C6EC6A3B; 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 wLyp121EKL0D; 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 8C967C6A20; 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 07/18] DT: marvell,mmp2: add more TWSI controllers Date: Mon, 12 Nov 2018 04:20:16 +0100 Message-Id: <20181112032027.653931-8-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 I've gotten the base addresses, clocks and interrupts from an rusty and o= ld out-of-tree driver. I haven't actually checked against the datasheet, sin= ce that one is reserved for the Marvell inner circle. Tested with an accelerometer on TWSI6 on an OLPC XO 1.75 machine. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 63d49abf4e92..7549680ab2e3 100644 --- a/arch/arm/boot/dts/mmp2.dtsi +++ b/arch/arm/boot/dts/mmp2.dtsi @@ -269,6 +269,55 @@ status =3D "disabled"; }; =20 + twsi3: i2c@d4032000 { + compatible =3D "mrvl,mmp-twsi"; + reg =3D <0xd4032000 0x1000>; + interrupt-parent =3D <&intcmux17>; + interrupts =3D <1>; + clocks =3D <&soc_clocks MMP2_CLK_TWSI2>; + resets =3D <&soc_clocks MMP2_CLK_TWSI2>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "disabled"; + }; + + twsi4: i2c@d4033000 { + compatible =3D "mrvl,mmp-twsi"; + reg =3D <0xd4033000 0x1000>; + interrupt-parent =3D <&intcmux17>; + interrupts =3D <2>; + clocks =3D <&soc_clocks MMP2_CLK_TWSI3>; + resets =3D <&soc_clocks MMP2_CLK_TWSI3>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "disabled"; + }; + + + twsi5: i2c@d4033800 { + compatible =3D "mrvl,mmp-twsi"; + reg =3D <0xd4033800 0x1000>; + interrupt-parent =3D <&intcmux17>; + interrupts =3D <3>; + clocks =3D <&soc_clocks MMP2_CLK_TWSI4>; + resets =3D <&soc_clocks MMP2_CLK_TWSI4>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "disabled"; + }; + + twsi6: i2c@d4034000 { + compatible =3D "mrvl,mmp-twsi"; + reg =3D <0xd4034000 0x1000>; + interrupt-parent =3D <&intcmux17>; + interrupts =3D <4>; + clocks =3D <&soc_clocks MMP2_CLK_TWSI5>; + resets =3D <&soc_clocks MMP2_CLK_TWSI5>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "disabled"; + }; + rtc: rtc@d4010000 { compatible =3D "mrvl,mmp-rtc"; reg =3D <0xd4010000 0x1000>; --=20 2.19.1