From patchwork Fri Jul 13 17:11:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 10523907 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 26A5C602A0 for ; Fri, 13 Jul 2018 17:12:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C45327031 for ; Fri, 13 Jul 2018 17:12:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F19A029E06; Fri, 13 Jul 2018 17:12:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6B0A927031 for ; Fri, 13 Jul 2018 17:12:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=bKTsFNiHDe6Z0VnyklTQ2FOEw8+KnLauyF7NvEFyQtY=; b=QGb hD9h/GVtScUTuppl7xgMq4ZEGmfS7weVPxlpSH8h8qLSUcxi1UJSrCWNAbSkUJkCScsZ8zK7oeIOr 4X6LMS76YiwM2SJKO2+7B9SdEVW8jGWfCjdO91RIHQhiiBsPXT5Xoy4UcACiscbbvon/8N2+abISu CNbIeRG+8bolBymDm1XBJkPwnS8gTroIV79+JRcKJwoUiMk5PUcFFvbOCaunLEf2+FaXExBiT6t8Y knMR+d/wxNw7QgfsO2fDuRP6K2z8BF/dFYqaVMsbFvB5WaW5RO98RR3eikDPPML2gjFX0nzQgdKWQ qATby1ObuQHbnL9AfviSsGOc/F3wqUg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fe1c5-0002TB-N7; Fri, 13 Jul 2018 17:12:13 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fe1c2-0002P6-Nh for linux-arm-kernel@lists.infradead.org; Fri, 13 Jul 2018 17:12:12 +0000 Received: by mail-wr1-x442.google.com with SMTP id j5-v6so19276977wrr.8 for ; Fri, 13 Jul 2018 10:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=vJdJcXqK44puLYBylPhl0pY+/E3QEOZRww4hipdUyvU=; b=rrSkKi+RJSRdn03y5dqY8rjiY6IXgcTJwdmJHkgBivqyALr2DWc6q1AZqpQdpqz840 Y95AlWTHpGDKQhdPsWYDZVQfR9ipFFHy0gCddGeDh4NA8EtDcTRBGQRtSo9wX/MIKeoH 4MZ1FGRBH7sxb+d8ScxmI0Ta302Bl6RjEfUo/1+sBGOqFbfvpjrjFGKo3AsVg+XbjMes J6oYELF2Y1jVzInVxe2eBM5+8834WT+I6UHrhj4Q/nqWBfVU/3QKJ8f4TkaKGaaaJvI/ CGUKCsai92SWc95c3IqKYd1Qffaw80m8gnGzbnGpJEXHw4jgGrpNUeHmBY9PHW1MALwS RApg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vJdJcXqK44puLYBylPhl0pY+/E3QEOZRww4hipdUyvU=; b=fBySS9xUbni4ky06CwB5NEmuPlVX/L3yBkJmjlyDpnqfZJsynHP3MSjPjscCkFXkxv K4EudouBml5Xa+ZiBwWdVeNuT1qP1aCiksBDcll39eYjrFBGKtrlZJnxvInvl/uv7AJu pHrRkwggMBTa9kDn24UlloN6/aUJ7V7tRHD49EUEJQ5MqmfAKEUfTz7ZqWYW+Q9eKniG YpfvjO8r3ZDkG6Rqx9YHT/I1m2HJReaMDUoqwWF6rBKfky7yGikLPrK25dYvhAwN1TRh k+OuEWhYgD4AdvjUmiN06Gke35EbVuEFXx0eTY0HI82JXp/oi6nHJHW7b0QXTUdt+7H2 3KKA== X-Gm-Message-State: AOUpUlGHwXkkoDYDJxi0UjAgTAY10udtrYEWQybvxtJhoQLl6oiYvTVC eV6oSaSzz9FGhQCDN+oASFY= X-Google-Smtp-Source: AAOMgpf1+F+gw/ZoSL01LYfR/a+w+gps2MFPh9t9Scv+TjGRJKeDciOe0yrPatHmlE8ivUwovbkDkQ== X-Received: by 2002:adf:fe8f:: with SMTP id l15-v6mr5779333wrr.165.1531501918478; Fri, 13 Jul 2018 10:11:58 -0700 (PDT) Received: from neo.roving-it.com.com (6.0.0.6.e.3.3.3.4.9.d.f.4.6.d.d.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681:dd64:fd94:333e:6006]) by smtp.googlemail.com with ESMTPSA id z5-v6sm30353390wrv.2.2018.07.13.10.11.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Jul 2018 10:11:57 -0700 (PDT) From: Peter Robinson To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH] ARM: dts: imx6sx-udoo-neo: enable i2c-2 and i2c-4 for onboard sensors Date: Fri, 13 Jul 2018 18:11:51 +0100 Message-Id: <20180713171151.24699-1-pbrobinson@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180713_101210_797899_401D754E X-CRM114-Status: GOOD ( 11.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Robinson MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The i2c2 bus has a external plug which enables the easy connection of external "bricks" with sensors of various kinds, while i2c4 on the Extended/Full boards has a pair of on board motion sensors, accelerometer and magnetometer on one chip and gyroscope on another so it makes sense to enable these i2c buses for use. Tested on UDOO Neo Full. Signed-off-by: Peter Robinson --- .../arm/boot/dts/imx6sx-udoo-neo-extended.dts | 7 +++++++ arch/arm/boot/dts/imx6sx-udoo-neo-full.dts | 7 +++++++ arch/arm/boot/dts/imx6sx-udoo-neo.dtsi | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-udoo-neo-extended.dts b/arch/arm/boot/dts/imx6sx-udoo-neo-extended.dts index 42bfc8f8f7f6b..9ef424f48c523 100644 --- a/arch/arm/boot/dts/imx6sx-udoo-neo-extended.dts +++ b/arch/arm/boot/dts/imx6sx-udoo-neo-extended.dts @@ -52,3 +52,10 @@ reg = <0x80000000 0x40000000>; }; }; + +&i2c4 { /* Onboard Motion sensors */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c4>; + clock-frequency = <100000>; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/imx6sx-udoo-neo-full.dts b/arch/arm/boot/dts/imx6sx-udoo-neo-full.dts index c84c877f09d49..a3d3b731ac9ed 100644 --- a/arch/arm/boot/dts/imx6sx-udoo-neo-full.dts +++ b/arch/arm/boot/dts/imx6sx-udoo-neo-full.dts @@ -67,3 +67,10 @@ }; }; }; + +&i2c4 { /* Onboard Motion sensors */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c4>; + clock-frequency = <100000>; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi b/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi index 53b3eac94f0de..dad8611cc2851 100644 --- a/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi +++ b/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi @@ -225,6 +225,13 @@ }; }; +&i2c2 { /* Brick snap in sensors connector */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + clock-frequency = <100000>; + status = "okay"; +}; + &iomuxc { pinctrl_bt_reg: btreggrp { fsl,pins = @@ -256,6 +263,18 @@ ; }; + pinctrl_i2c2: i2c2grp { + fsl,pins = + , + ; + }; + + pinctrl_i2c4: i2c4grp { + fsl,pins = + , + ; + }; + pinctrl_uart1: uart1grp { fsl,pins = ,