Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp377208imu; Tue, 11 Dec 2018 00:06:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vq21/LstH3BmUaKkyTTIaEDUx7MCHkQMV+g9H6YvPKJra4TAtjLb+zad+1kv8iolWgzAtk X-Received: by 2002:a63:e19:: with SMTP id d25mr13677087pgl.272.1544515609143; Tue, 11 Dec 2018 00:06:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544515609; cv=none; d=google.com; s=arc-20160816; b=RPD55ncjU2dFlsXdx+jWN+NI8t7rWsf+hEaMxuYpWKwpEkAqHEOE61+lsMvD2YdMmb TSsnegJyMNR0U0dBcgt9Hwje6u2+Mg0EjdL0zf6kJGoKrDzvszA1GyL1b+pm+VA4fST4 W4u/MLUImvLlxMxDKMN8OhDM775BuWZAl2kVjqEV6ew5K8YVY8NSShRZkntkhABjDwsB xoZGKNeoE7CB78kfT+KWdIdHW88dexdIoZ4bGKW2WhYhVCcD2h/LqGK0/QLGUD65gVMD EaHWDb/4zCjFI94UDTIWgWKV+3uV8DH87XDVclnP4RwX7SYEzNHkZjIkA4jdUr5WuoLF QcnQ== 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=aCA/l9qTdKXFhCfeRD5jAEEey9HPX5IdwPPvqcwRyUU=; b=SAHz1uyaSEiEJoZFQDLzQCa2k68OUXaYrWnayiiktAEkmrUAutosI7hqii1/NXRv6h DD9kzpJvK50Spyl2uVYttZFM2x/EyBYR7/npsllAUH4Bkng7u5IODOgaiAiI1jMZiP4P qYUqW3BBiF7S3vwC3rggGJXLe5aSriCA9sOdrg9ROafPV48DxTQAPj3Nz5vRL8QVSbIC UoXwmAY3/Al5YgsRF3yedn23BX0oiVPi9qniZmNx1oLYdjq31W0S62kc0XDOGHTfyjWc 7tQV9UTKJWGcKdvidAklCV6vQJ+j9i2Yxy11nej97E5vHnPhN6E3vuzTLHmFyuIT/hhT 00Vg== 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 a1si11694212pgk.495.2018.12.11.00.06.34; Tue, 11 Dec 2018 00:06:49 -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 S1726275AbeLKIFb (ORCPT + 99 others); Tue, 11 Dec 2018 03:05:31 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:47373 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbeLKIF1 (ORCPT ); Tue, 11 Dec 2018 03:05:27 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 43DXYd41Bwz1r2c7; Tue, 11 Dec 2018 09:05:25 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 43DXYd2p3tz1qrn7; Tue, 11 Dec 2018 09:05:25 +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 BNgZzSzffcP0; Tue, 11 Dec 2018 09:05:24 +0100 (CET) X-Auth-Info: gNjJRBriaTs9s5alSVpJfCl/aYDsV5r3wNjaM7Dlgnw= 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; Tue, 11 Dec 2018 09:05:24 +0100 (CET) From: Parthiban Nallathambi To: manivannan.sadhasivam@linaro.org, afaerber@suse.de, 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, linux-actions@lists.infradead.org, Parthiban Nallathambi Subject: [PATCH v3 4/4] arm64: dts: actions: s700-cubieboard7: Enable I2C0 and I2C1 Date: Tue, 11 Dec 2018 09:04:48 +0100 Message-Id: <20181211080448.24007-5-pn@denx.de> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181211080448.24007-1-pn@denx.de> References: <20181211080448.24007-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..63e375cd9eb4 100644 --- a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts +++ b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts @@ -30,6 +30,59 @@ }; }; +&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; + }; + }; +}; + &timer { clocks = <&hosc>; }; -- 2.17.2