Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1466097imu; Wed, 28 Nov 2018 09:57:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/U9ONbcjot4jdgIz2L32w92a+iqGUqH8CL0gedr6mRRIsHlUVNY0EzsZ4xCkTZbNthIcd8E X-Received: by 2002:a65:4b82:: with SMTP id t2mr34209569pgq.189.1543427861176; Wed, 28 Nov 2018 09:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543427861; cv=none; d=google.com; s=arc-20160816; b=T8zAsX8RjagyYF4RX4reEQyhnvoRCas/N0fey5jysZLr1ZBSu9JzwHRqQxTJNt0YQ6 yOEWdEExiO8ezB5zRGLf87YTQj/VIkYZfOMYmHL/D9mj1pOZ1FE1jlxMx+MaxaT7d0Iw ujCOlnMcXPplObdUkbkMVBmY/T3YFm2/iK8gtkCW8dNWTa8AfPpDk6jdxC7b06pEhZQa QpCTIJ7xHBUW1MPJwVPoO4YyhbGdzzofJ9IJSFTBfJO3MX4VwH6cBaz14lZ7Rsjs9OKs TtNf4O615Fkf+qcvEoCdGtU+2KGUGrCLUnjMtPrlgMZbWgzXRcSPcFOmtDvUiBLU3xEz 5wFA== 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=WlJykdq3kfgBOwOlIu1H2yf4XtKc5NaxCdqUdcBMO74=; b=yA2e73Hn5E8QSWvyQ85sUZc6mFhYL/pTit7C9wE1aAP2cuEFOrtejR2AQnXuhdvn37 9ewNySwGA0r4vDa4n/Rmjw+S3ecTdEcdrw7YUb5h8aD+v1hKVTDjFZmvvDrVac+t4CkN OeagL5sS7v3Yp9w9eVwbEvK+Qvcu0c0bz2RhHCj3aODV9y0EDwH+LraH75tY/F+EPdkF 0QqqL9xFgyy6EcRWAv0MhsOA0vADttAhYzC8QyhX5gx4jEJGxrDOlFmGwu4SwcdjOEc7 7miFmM8Yq/C4UROl61DAvppWpjwfSWS4VL4wIWmST2IWz3PNbRcat86MbUCc/4ku6eba /vIg== 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 i64-v6si8577143pli.135.2018.11.28.09.57.25; Wed, 28 Nov 2018 09:57:41 -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 S1729417AbeK2E43 (ORCPT + 99 others); Wed, 28 Nov 2018 23:56:29 -0500 Received: from shell.v3.sk ([90.176.6.54]:39378 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729372AbeK2E42 (ORCPT ); Wed, 28 Nov 2018 23:56:28 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id B291599A51; Wed, 28 Nov 2018 18:53:58 +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 Rjb3amOlC977; 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 CDCBD999EF; Wed, 28 Nov 2018 18:53:35 +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 6MFQQnOlA8bM; Wed, 28 Nov 2018 18:53:31 +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 2C952998D3; Wed, 28 Nov 2018 18:53:30 +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 07/20] DT: marvell,mmp2: add more TWSI controllers Date: Wed, 28 Nov 2018 18:53:11 +0100 Message-Id: <20181128175324.163202-8-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 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 c5787eea57c7..c48d17a38d6b 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