Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp294200imu; Mon, 26 Nov 2018 11:00:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/WrIJAqfMaj0g9ml+QpwSgDs2n1HcJKSTLca+CTihw1JpzhdOA13/PWU8FzuLLYDXiSZo// X-Received: by 2002:a63:e156:: with SMTP id h22mr26315789pgk.255.1543258846167; Mon, 26 Nov 2018 11:00:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543258846; cv=none; d=google.com; s=arc-20160816; b=xOvO28cY9fVJT0NbFEejkExO7S6Z9fNin7dK4WzMenKyNm5v0YFffv92E7XwwkJCt8 F67Xc83E5Ick9tgaeSbvoN/tXmGTxaXWqLDQpcyyZSJXQWvlq3yx8OIgg0u+4yCj2lWd /yITKe84qk6h0fYr6GRrZRj84OEBDqezYvFhONmCXMKr93Cit/aPlPsEkmPXzU5wtepi sLkOz1J2zJ5uHxB+psuNRL9ayQVuOLRlHppDkSmYzIjXqwkOnauqLqCWIqMBtxfYLSeT vafJD/mm++hV1ybFtPlFjBUfpdPrHW4p4ERXDLXn6kE4DLFFr27n7uKTx63tzUUHGKQh pobA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=WJNZtFs0CSdepv4XPMEkkcnJers5Yi6g4n+ysLiykH4=; b=x8RFCB52L5qgCs9DV9odfrLNcvfvD8LcuaJhnuzlxTleKxsHJo0l/eVZzaigyOTy7f BDQTjZXcxUbBEohZM6hooALbCqcWQT6wp5gJG1n6vQkpkxjfQFNfbMkj8h0kaV8Ad1Gm hkhZJFotP+N4O8hTTwzp9p7RW2Q1NoojQOq3Bpivmqirm+SXZnCCcgr/A14kyVHNY9ux Re2A1WgDNCfLNyUfWUNSUh/q0rcZpsTJWRltCmYQiBRSwbMucih//0MuTe20t/ku8TEF nBcIw8dkh5meS9gZRwjdBWmN7aiuYoiOiDT+auVEWnfI7fUV6ZvipIsRWfwQJ8Cy1qSp hXeA== 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 l61si1140143plb.6.2018.11.26.11.00.14; Mon, 26 Nov 2018 11:00:46 -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 S1727033AbeK0Fxy (ORCPT + 99 others); Tue, 27 Nov 2018 00:53:54 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:47857 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726974AbeK0Fxy (ORCPT ); Tue, 27 Nov 2018 00:53:54 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 433bmV3bcDz1r35J; Mon, 26 Nov 2018 19:58:49 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 433bmT0P6vz1qtfd; Mon, 26 Nov 2018 19:58:49 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 1d1bVJE-83fp; Mon, 26 Nov 2018 19:58:46 +0100 (CET) X-Auth-Info: hsPyHv9sQPRXuPrtOkmr9s79GpXJtgCbOKtPmTnphsQ= Received: from xpert.denx.de (unknown [62.91.23.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 26 Nov 2018 19:58:46 +0100 (CET) From: Parthiban Nallathambi To: afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, wsa@the-dreams.de Cc: linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux@cubietech.com, thomas.liau@actions-semi.com, Parthiban Nallathambi Subject: [PATCH v2 4/4] arm64: dts: actions: s700-cubieboard7: Enable I2C0 and I2C1 Date: Mon, 26 Nov 2018 19:58:21 +0100 Message-Id: <20181126185821.2480449-5-pn@denx.de> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181126185821.2480449-1-pn@denx.de> References: <20181126185821.2480449-1-pn@denx.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add pinctrl definitions for Actions Semiconductor S700 I2C controllers. Pinctrl definitions are only available for I2C0, I2C1 and I2C2. Enable I2C0 (PMIC), I2C1 (gyro, touchscreen) in cubieboard7. Signed-off-by: Parthiban Nallathambi --- .../boot/dts/actions/s700-cubieboard7.dts | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts index 28f3f4a0f7f0..6a75fdd7ab42 100644 --- a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts +++ b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts @@ -37,3 +37,56 @@ &uart3 { status = "okay"; }; + +&i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_default>; +}; + +&i2c1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_default>; +}; + +&i2c2 { + status = "disabled"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_default>; +}; + +&pinctrl { + i2c0_default: i2c0_default { + pinmux { + groups = "i2c0_mfp"; + function = "i2c0"; + }; + pinconf { + pins = "i2c0_sclk", "i2c0_sdata"; + bias-pull-up; + }; + }; + + i2c1_default: i2c1_default { + pinmux { + groups = "i2c1_dummy"; + function = "i2c1"; + }; + pinconf { + pins = "i2c1_sclk", "i2c1_sdata"; + bias-pull-up; + }; + }; + + i2c2_default: i2c2_default { + pinmux { + groups = "i2c2_dummy"; + function = "i2c2"; + }; + pinconf { + pins = "i2c2_sclk", "i2c2_sdata"; + bias-pull-up; + }; + }; +}; -- 2.17.2