From patchwork Sun Dec 23 06:03:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 10741563 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 40EE0924 for ; Sun, 23 Dec 2018 06:04:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FD4F28932 for ; Sun, 23 Dec 2018 06:04:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EDC5F28A03; Sun, 23 Dec 2018 06:04:13 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 A91B228932 for ; Sun, 23 Dec 2018 06:04:12 +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=COj3Gbj/KL0vSc/XMISBrGu26wipMVmab3gvy5Pzhd8=; b=Hre afy86w86cDSLbip1CryUOqd7CWEsqjpRwYfB/PwG0PK1MxNIPmF+Xy5pUuHBpTgBpdbSGncVuLqUo /6zuCHFlkA46mJZ9ZOq1IL0y4BIQsbPAKR5vISNLCPAAfOy3oKJpx8SkehtsX1FwvPbjPjLoyLCVV ruJOJ7bDis6AGSoHajIRDzhriF/SvsWdnrtrvLDSOdOO2CE/fmtw9+9MbEj+fzk00IzWRi2zotOQp qkNP7LQI7d0z3rJNQfjHkMarCnwKwG+nUoLmPxoNaGPA08LqvIsKfhgo+FnE4VsOaIcYp59aX8BIB qDOHveAi/p7DVa8akonD+GNnGYtUWQg==; 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 1gawrv-0007cI-CU; Sun, 23 Dec 2018 06:04:07 +0000 Received: from smtp3.mail.ru ([94.100.179.58]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gawrq-0007ak-WB for linux-arm-kernel@lists.infradead.org; Sun, 23 Dec 2018 06:04:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=3ytrtnC2uwto3kgCZBUJMxaGOVK8FlmEYlfCyJTGKeM=; b=ZcJ9+VsF7YjYXlcVTMzj5Vtwp4fEcHPIZ8w7/9QdClwjKb9YP7+CTPwZY+QmuvNb5si1QXqTEdbNMSNSmIO3ZQuv6QbUI0AGfTJe/nE8EdeVCpK+X0Wl3PmC/kocj6U8OyzU7LJIA2/hxGYahRJ3Eojtjm09L1wn0QX+tzR5ELs=; Received: by smtp3.mail.ru with esmtpa (envelope-from ) id 1gawrb-0002TA-9b; Sun, 23 Dec 2018 09:03:47 +0300 From: Alexander Shiyan To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/4] ARM: dts: i.MX51: Add device_type to Digi ConnectCore memory node Date: Sun, 23 Dec 2018 09:03:39 +0300 Message-Id: <20181223060342.32054-1-shc_work@mail.ru> X-Mailer: git-send-email 2.10.2 Authentication-Results: smtp3.mail.ru; auth=pass smtp.auth=shc_work@mail.ru smtp.mailfrom=shc_work@mail.ru X-77F55803: 689590B63E0A4B015A78504BD2AC29419868B496DAF47A9FD1F5664BC9DA345E6D3DD0356BC35ED5E52AB0084CE7CFA4 X-7FA49CB5: 0D63561A33F958A598527AAD12272E33E0772031D2666BCEBE5EF9B16175BFBA8941B15DA834481FA18204E546F3947C1D471462564A2E19F6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B2EE5AD8F952D28FBA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249E20791DD86E535D73AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE79C0DA0AD91AF617ECD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE7C0D954458108DB8842632E527458B68875ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-Mailru-Sender: 139A7956A63CACCF2A18077BC60D2445071D9EE416723301A78EAADB28B7DA57CC5ED27D5B39E44C6B3B2BD4812BFD4DC77752E0C033A69E93554C27080790AB3B25A7FBAAF806F0AE208404248635DF X-Mras: OK X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181222_220403_431366_F0E6E885 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. 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: Alexander Shiyan , Sascha Hauer , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , Shawn Guo 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 current imx51-digi-connectcore-som.dtsi lacks a 'device_type = "memory"' for its memory node. This patch adds it. Signed-off-by: Alexander Shiyan --- arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi b/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi index 5761a66..82d8df0 100644 --- a/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi +++ b/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi @@ -17,6 +17,7 @@ compatible = "digi,connectcore-ccxmx51-som", "fsl,imx51"; memory@90000000 { + device_type = "memory"; reg = <0x90000000 0x08000000>; }; }; From patchwork Sun Dec 23 06:03:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 10741569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 485751399 for ; Sun, 23 Dec 2018 06:05:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3538A28932 for ; Sun, 23 Dec 2018 06:05:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2898928A03; Sun, 23 Dec 2018 06:05:18 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 8DEBE28932 for ; Sun, 23 Dec 2018 06:05: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:References: In-Reply-To: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:List-Owner; bh=q09p8Totv4sh0ZSRd6NDPhXyziDadOUf591JN92v0dU=; b=DJeIc6cngT48frwf5Ug8QwqGbN 8OZlZsptLRM6rWFaxIkS3hVDW+B7poU5PLy02ivSt7jPOZ7CXM2qAcw5UuC2JBhDra8BMphGlXyr5 gF0WszJ1MrNmfaMNUUEhJS9cSMx+BhLlB4iG1mZQf4aLRgLYIxvEgSKaCBtRA7Z4RWEwgcH+Bmc1n zUF4/yf0uh5iEdYrZfeXoc7plPpb9mPvXNnlO9hH7rS2rVqwDZkzF/v2WDF7RSoBM42QUL2N76VdY CTdehJt8tTHsz1SBpfUq/2+eax5wG1c7BReDm8wJiPHbxOWpzeDFDt/lHVuIoY4VAOt0Z9gWGEAEJ Co1mnFXg==; 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 1gawsx-0000SC-Jv; Sun, 23 Dec 2018 06:05:11 +0000 Received: from smtp3.mail.ru ([94.100.179.58]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gawrq-0007al-WE for linux-arm-kernel@lists.infradead.org; Sun, 23 Dec 2018 06:04:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=0vgHvu71CwKv0MVQwNu6DHWjepqjFqRBqtBpqL7+D1U=; b=pjZa7TbcYV8CBcmNVShPRvsAnWy1rZDoLIQFfrqy5wg6KoOcn9ghMiP/wNeqllyezDbQBQVYrf40V2M78FYGN03wHkJRCQlj+rTMo9aayFB5+Txbg/8DszVhENw7oIGlN2NkXtX6Fldo3owf6BTvnjuLSuj1+V/J3arUtR9afU8=; Received: by smtp3.mail.ru with esmtpa (envelope-from ) id 1gawrb-0002TA-Pk; Sun, 23 Dec 2018 09:03:48 +0300 From: Alexander Shiyan To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/4] ARM: dts: i.MX51: digi-connectcore: Move RTC from SOM to JSK Date: Sun, 23 Dec 2018 09:03:40 +0300 Message-Id: <20181223060342.32054-2-shc_work@mail.ru> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20181223060342.32054-1-shc_work@mail.ru> References: <20181223060342.32054-1-shc_work@mail.ru> Authentication-Results: smtp3.mail.ru; auth=pass smtp.auth=shc_work@mail.ru smtp.mailfrom=shc_work@mail.ru X-77F55803: 0014004E1F3277295A78504BD2AC29419868B496DAF47A9FD1F5664BC9DA345E0920DE0E63D11C63F0124468BC41536C X-7FA49CB5: 0D63561A33F958A598527AAD12272E33E0772031D2666BCE061A56362A5F17648941B15DA834481FA18204E546F3947CD2DCF9CF1F528DBCF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B974A882099E279BDA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249DA33821E755670D83AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE72CE3825EE585899DCD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE7F595157BB51E07CBEA393B93815D931D75ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-Mailru-Sender: 139A7956A63CACCF2A18077BC60D2445071D9EE416723301A78EAADB28B7DA57CBCCD57F2E67AF486B3B2BD4812BFD4DC77752E0C033A69E93554C27080790AB3B25A7FBAAF806F0AE208404248635DF X-Mras: OK X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181222_220403_434024_5985B2F2 X-CRM114-Status: GOOD ( 11.11 ) 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: Alexander Shiyan , Sascha Hauer , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , Shawn Guo 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 In fact, the RTC battery can only be connected outside the module, so this patch moves the PMIC RTC property and its power from SOM dts to JSK. Signed-off-by: Alexander Shiyan --- arch/arm/boot/dts/imx51-digi-connectcore-jsk.dts | 12 ++++++++++++ arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi | 7 ------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/imx51-digi-connectcore-jsk.dts b/arch/arm/boot/dts/imx51-digi-connectcore-jsk.dts index 2967a74..a5010e9 100644 --- a/arch/arm/boot/dts/imx51-digi-connectcore-jsk.dts +++ b/arch/arm/boot/dts/imx51-digi-connectcore-jsk.dts @@ -27,6 +27,18 @@ status = "okay"; }; +&pmic { + fsl,mc13xxx-uses-rtc; + + regulators { + vcoincell_reg: vcoincell { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-always-on; + }; + }; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; diff --git a/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi b/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi index 82d8df0..e9421b8 100644 --- a/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi +++ b/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi @@ -37,7 +37,6 @@ reg = <0>; interrupt-parent = <&gpio1>; interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; - fsl,mc13xxx-uses-rtc; regulators { sw1_reg: sw1 { @@ -142,12 +141,6 @@ pwgt2spi_reg: pwgt2spi { regulator-always-on; }; - - vcoincell_reg: vcoincell { - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3000000>; - regulator-always-on; - }; }; }; }; From patchwork Sun Dec 23 06:03:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 10741565 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3AA231399 for ; Sun, 23 Dec 2018 06:04:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 284E028932 for ; Sun, 23 Dec 2018 06:04:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C45F28A03; Sun, 23 Dec 2018 06:04:19 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 953C128932 for ; Sun, 23 Dec 2018 06:04:18 +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:References: In-Reply-To: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:List-Owner; bh=8DL77sbSdUnnGbKYjaKK1GqsYy4N1xQrIjT7ux0U5oM=; b=Bl7piFdex3fNPHHraM+GHBPwty pMctRwhZbM0MFIhWuahssl7MDL/PIegUbrwnzLwgvLfzYIU4RCx0du95yfxn0nDRkn5WqTQKNChHd ITj3DHf341NaEVVLHksVSbcapZpkfVumBi69pwCJO2i3yPExvRX/i1Ri6JhRSd8Zs+mZDa5zVr6Es VXfbOlnBQB9tCZPSdIVVqoDv1Z5f+Ko7Hhvb0uKlYp+ZXr+ULJA5HyDXrjhEeXOIyfb0mF081zvw2 vTlT7o5y4Q5NrhNukEtc6NnibocfnjRxBSwzGTjB85U1K8voJGXrxV+dVV+dYUekbEHWowkuKUlpR 48BexHug==; 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 1gaws2-0007i2-QZ; Sun, 23 Dec 2018 06:04:14 +0000 Received: from smtp3.mail.ru ([94.100.179.58]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gawrq-0007am-WF for linux-arm-kernel@lists.infradead.org; Sun, 23 Dec 2018 06:04:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=NUYFzI/1RIutYwY/tt7hTPNzrzd16PMfRbCiN0rCVxk=; b=Vs6jtxNI+uoscoCj6fFunhts1/aTcmQcyHAv2j8rhlgtdE35kf4cZGt86eE48+K9vVDPZknmdipcG6K6m75M56ba27Mh06kafmrBgxKUuIrp69z1DvPS9ylSSqmyXyemCvDjUVIajACeF63EXku414mcA7iSS9IyjwxJ8VODiZ0=; Received: by smtp3.mail.ru with esmtpa (envelope-from ) id 1gawrc-0002TA-8p; Sun, 23 Dec 2018 09:03:48 +0300 From: Alexander Shiyan To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] ARM: dts: i.MX51: imx51-digi-connectcore: Enable ESDHC1 Date: Sun, 23 Dec 2018 09:03:41 +0300 Message-Id: <20181223060342.32054-3-shc_work@mail.ru> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20181223060342.32054-1-shc_work@mail.ru> References: <20181223060342.32054-1-shc_work@mail.ru> Authentication-Results: smtp3.mail.ru; auth=pass smtp.auth=shc_work@mail.ru smtp.mailfrom=shc_work@mail.ru X-77F55803: 6115F4D8777AF1675A78504BD2AC29419868B496DAF47A9FFC309AB5BCA99F4BD50C6233F98AB931F0124468BC41536C X-7FA49CB5: 0D63561A33F958A5448D373F30818138E0772031D2666BCE3D0C7675EF4652658941B15DA834481FA18204E546F3947CC2B5EEE3591E0D35F6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8BECADA55FE5B58BB7A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249DA33821E755670D83AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE72CE3825EE585899DCD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE7B3CB1C817A35D2233A4272FF176CB30175ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-Mailru-Sender: 139A7956A63CACCF2A18077BC60D2445071D9EE4167233010AA51E55F5C8CD4F4B4156FAD878E1226B3B2BD4812BFD4DC77752E0C033A69E93554C27080790AB3B25A7FBAAF806F0AE208404248635DF X-Mras: OK X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181222_220403_428726_E9B4EE23 X-CRM114-Status: GOOD ( 10.63 ) 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: Alexander Shiyan , Sascha Hauer , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , Shawn Guo 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 This patch adds definitions for ESDHC1 for Digi Connectore SOM & JSK. This interface can be used to boot a module. Signed-off-by: Alexander Shiyan --- arch/arm/boot/dts/imx51-digi-connectcore-jsk.dts | 4 ++++ arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/imx51-digi-connectcore-jsk.dts b/arch/arm/boot/dts/imx51-digi-connectcore-jsk.dts index a5010e9..a2eea58 100644 --- a/arch/arm/boot/dts/imx51-digi-connectcore-jsk.dts +++ b/arch/arm/boot/dts/imx51-digi-connectcore-jsk.dts @@ -21,6 +21,10 @@ }; }; +&esdhc1 { + status = "okay"; +}; + &owire { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_owire>; diff --git a/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi b/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi index e9421b8..a2a6408 100644 --- a/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi +++ b/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi @@ -145,6 +145,13 @@ }; }; +&esdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_esdhc1>; + max-frequency = <50000000>; + bus-width = <1>; +}; + &esdhc2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_esdhc2>; @@ -234,6 +241,14 @@ >; }; + pinctrl_esdhc1: esdhc1grp { + fsl,pins = < + MX51_PAD_SD1_CLK__SD1_CLK 0x400021d5 + MX51_PAD_SD1_CMD__SD1_CMD 0x400020d5 + MX51_PAD_SD1_DATA0__SD1_DATA0 0x400020d5 + >; + }; + pinctrl_esdhc2: esdhc2grp { fsl,pins = < MX51_PAD_SD2_CMD__SD2_CMD 0x400020d5 From patchwork Sun Dec 23 06:03:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 10741567 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 94D5F1399 for ; Sun, 23 Dec 2018 06:04:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8126A28932 for ; Sun, 23 Dec 2018 06:04:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72EB128A03; Sun, 23 Dec 2018 06:04:55 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 2E34F28932 for ; Sun, 23 Dec 2018 06:04:55 +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:References: In-Reply-To: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:List-Owner; bh=d4gmHjIMTvtlxDGo7gtBkdlkqdTJ43owbSimLrYNp/8=; b=pFPM0TIDF1v3M/AtsWtsUanSgj epXbDtQjidNBfYrlO8nrwtO4RfVYNTxa6UCI0JfNEgkI4zlwr2fhqF52kj8DjfJy7IYtnV4aU+yfn hI+km3ZCS1acWrQh3cR8Jz2mUVdBJ4c+rVUQ1UeShC8j4jVjkt1NLR9G4/2qEpF/7cc/0RVGN/ioD qF3lmvYwjXRln3dPziCGL8HHaC7GGIE8E5TA3wkCZcLP2wCaO7anOD02o12zKRGxfO1m/YsaN6b0M VJluxR6xfLm5IhuwaJYs84D1XUrC4Tna54qqNUUBA2FublOlWp9ptFpZzWYCxIuaqcz/De+oZz9lw KL8jZv3g==; 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 1gawsf-0008FI-TA; Sun, 23 Dec 2018 06:04:53 +0000 Received: from smtp3.mail.ru ([94.100.179.58]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gawrq-0007an-WD for linux-arm-kernel@lists.infradead.org; Sun, 23 Dec 2018 06:04:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=d6hgJXD72qrys43amOiySQhV05lieoXx4XACgEv42sg=; b=kmsyzr1RgcNXj0brtUvGDu70aKyojPoKLD4qd7zPN9sc1ujeoxs041ScXSCb+eLf2Q5qzYKxduOPNSbsmQlDFSQ7ENXCNgDL5GIAwv0o6pJcAsmXaA4ljK+ip0vcFT14zbfEasN9VIYrRnBLiSYm2p9PHGsB+hjlnU1sgbOBMoU=; Received: by smtp3.mail.ru with esmtpa (envelope-from ) id 1gawrc-0002TA-Nx; Sun, 23 Dec 2018 09:03:49 +0300 From: Alexander Shiyan To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/4] ARM: dts: i.MX51: digi-connectcore-som: Add support for I2C bus recovery Date: Sun, 23 Dec 2018 09:03:42 +0300 Message-Id: <20181223060342.32054-4-shc_work@mail.ru> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20181223060342.32054-1-shc_work@mail.ru> References: <20181223060342.32054-1-shc_work@mail.ru> Authentication-Results: smtp3.mail.ru; auth=pass smtp.auth=shc_work@mail.ru smtp.mailfrom=shc_work@mail.ru X-77F55803: E14BCC6235C710295A78504BD2AC29419868B496DAF47A9FFC309AB5BCA99F4B0CDB658EA8F83BE73A499A265D1D56E6 X-7FA49CB5: 0D63561A33F958A5448D373F30818138E0772031D2666BCE5E74126B30ADA5F78941B15DA834481FA18204E546F3947C0839144E5BB460BAF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8B55B19328CBC4F849A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249DA33821E755670D83AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE72CE3825EE585899DCD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE7430ED7F324E0B2BE79A30FF140FDA44B75ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC85D9B7C4F32B44FF57285124B2A10EEC6C00306258E7E6ABB4E4A6367B16DE6309 X-Mailru-Sender: 139A7956A63CACCF2A18077BC60D2445071D9EE4167233010AA51E55F5C8CD4F58BF46E4B01B60EA6B3B2BD4812BFD4DC77752E0C033A69E93554C27080790AB3B25A7FBAAF806F0AE208404248635DF X-Mras: OK X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181222_220403_430967_FF4B17FE X-CRM114-Status: GOOD ( 10.09 ) 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: Alexander Shiyan , Sascha Hauer , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , Shawn Guo 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 Define the required properties to enable I2C bus recovery supported by the I2C subsystem. This patch adds GPIO based I2C fault injector for Digi Connectcore SOM. Signed-off-by: Alexander Shiyan --- arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi b/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi index a2a6408..d90ba5f 100644 --- a/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi +++ b/arch/arm/boot/dts/imx51-digi-connectcore-som.dtsi @@ -174,9 +174,12 @@ }; &i2c2 { - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; + pinctrl-1 = <&pinctrl_i2c2_gpio>; clock-frequency = <400000>; + scl-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; status = "okay"; mma7455l@1d { @@ -290,6 +293,13 @@ >; }; + pinctrl_i2c2_gpio: i2c2gpiogrp { + fsl,pins = < + MX51_PAD_GPIO1_2__GPIO1_2 0x400001ed + MX51_PAD_GPIO1_3__GPIO1_3 0x400001ed + >; + }; + pinctrl_nfc: nfcgrp { fsl,pins = < MX51_PAD_NANDF_D0__NANDF_D0 0x80000000