From patchwork Tue Mar 19 15:24:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 10859783 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 331BE6C2 for ; Tue, 19 Mar 2019 15:25:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 198AE29763 for ; Tue, 19 Mar 2019 15:25:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D7B92975F; Tue, 19 Mar 2019 15:25:29 +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 9A3652975D for ; Tue, 19 Mar 2019 15:25:28 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=IikZ+EoSFS4aV/ZBAcZsmWllxeoFsZYNasj3mYZrnyc=; b=KDmcaRw+PYOGVy en3K5IczflxexPsiyb5xI+YGhkFyeO5y6gLcMB1SD2u7pOxARfLE6Lu6uC1fj1+kPxgMt+s4S36Kj fG2Q/UpzW7/BB+oltJmkfM5kCWrDryMighHyGnFydSLbDS59XLfgOjLLUodhYJFUDqnEshl5/m4VQ MUyfTki0KT99SdFzvBwnq6HwNCD57JT6H0wk94TfDDbSBfTNsVHvTKxk5ZEBcFzBHEDu/ktu5RZ+C 8QMKVUq8eFUQIzynr7QNkHMfT6AZ50HzEB2cYpKstcouIfLfdsxCS4DoMovZohpfQi90GlcSM/7aF w2E4c4yYClUNyCf8jfXQ==; 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 1h6GcB-00031t-V1; Tue, 19 Mar 2019 15:25:19 +0000 Received: from mout.gmx.net ([212.227.17.22]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6Gbn-0001PZ-7y for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 15:25:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553009079; bh=Pko7ezwagGTe18JIsO/c11K0PwjfQ1g1lrIGGnUWh5M=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=M6DnObNHhK8jvmlMM5tbodz4WHHAzt8QYdtZxGr06Yzr2Ackbb77oS7g5wb3yN/+I Vjc87Yy0hFsmYTRur8XWjrfQP/IVtBlgDE51RvrLy9aSLzyZKfEy4MRYxOJdmSycxM OFjLpfFzJ6Rmhq9HFcK0voxEdj8t5Chnh2wg2xd4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([109.90.232.48]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M3NEK-1gosFD00Jc-00qz4U; Tue, 19 Mar 2019 16:24:39 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/5] dt-bindings: Add vendor prefix for Rakuten Kobo, Inc. Date: Tue, 19 Mar 2019 16:24:16 +0100 Message-Id: <20190319152421.16179-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190319152421.16179-1-j.neuschaefer@gmx.net> References: <20190319152421.16179-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:YVWsPSmUV2YpZNYVpkNQezUqfQG93zHhqEw39dM+feuXEk8j7D0 NwCt7NeuVvzhgYfj2NohuAuLOnEMndxjthAnR+qlq/ffBwDj6V2H1MjM9mjr5N3c5bUDFmm dgEFqn3bU4QdxWRBviiHDZY0JieUwxntZ4IJKAY0ZHDlxSZw/I4dg3qcW1KULVNOOeCmQuq +G6Xct8RCRROf8WVGafBw== X-UI-Out-Filterresults: notjunk:1;V03:K0:4P7NY6fdm+w=:GZ/OJdaYUrHvhJNUely6ic g49kB+Exhf0Jc6gAtdKTpiw9VsRIAc6jCYjieuEp5unv1BhMrUzRDfg46/Q/oo8Aoz3Cw0GIi AF2z4zPMD74T+92pBIjyBlnWtOLWR+HYFxUyOy1nQXItCKjFau7mSTaPPUmqPzfRAf7urZJpU 6Beixr+G8x0aVyIUp+YDctJelWjNyKkqqimzzLUPmomQSUEJUuoYo2CCxDDTVZWosDRoot+jC /AwjEr8EAihgjqnThFDHrZGfhn2qeg50UKGsKIdtpZC+JnFX8DKLPqvdeFMw7cxXqURMfRoip /G3akQjcmO4ScldMp2zihCaNtfsbJF59fUpbMwWbgptKbUts8TunBzdS67snDGqM1emhhl+Qk MY628/d+JOqm9U47QJ2RTXMcpQ/a1Y1sORmlyhRXPJi+oXfXAryuvL/vQ4mc7k08e2eH7L24i usNGaT6Uho6YPwCCLGZIDqH0Ba+qYAbfsIqeGld8XL2Dtgziwi0ajOyOYqZTnL45xupjQWWCP 5QDuI0Q2Gl2NOpvKSZSMkLvxucky7RNdXN5gHl6b7aIWfZtjBNlUrww8OHHNmDlLPNZPjh4kq DoX2pHrlsBnIbdFsX3S3YR8+n2yxdit1r0o0lh2PsZmGyUTY0Vw+Lvpl/hHbM6VC44tdsI09P M5mEyyvN+HeC+iL2ympi0dHWHnpB6wF+jI2Pfo9bGo/lJ7tYmq9xKHUpOxyKiVFYvUFe4pzCp e1p8CCELHWPhmg+h+pjKa/p7bMa7CMbi89R2A4oaih7pdqYi01naSTJrnERdzeIkM186itfvU +vrwH9NyBgvlnYPOM9oKzvUP2RQJCyDl6SQnXXVq37V4HcI1fxgRpVmRK2Xh35xXl6/P6O44+ LEOYcyuTmR3o7FmYtwxWp2g5n3Evg64c+w6GWfZJ+KfBT+vlBAuI7xf9Uq6MXSPE7LQZEnWiz S8wus6lyPUQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_082456_169719_EDEEEB7B X-CRM114-Status: UNSURE ( 9.52 ) 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: Mark Rutland , devicetree@vger.kernel.org, Heiko Stuebner , Martin Blumenstingl , Shawn Guo , Sascha Hauer , Johan Hovold , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Manivannan Sadhasivam , =?utf-8?q?Jonatha?= =?utf-8?q?n_Neusch=C3=A4fer?= , Thierry Reding , Fabio Estevam , Kevin Hilman , Jagan Teki 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 Rakuten Kobo, Inc. (formerly Kobo, Inc.) is a company that sells e-book readers and related products. More information is available at: - https://en.wikipedia.org/wiki/Kobo_Inc. - https://www.kobo.com/ Signed-off-by: Jonathan Neuschäfer --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 8162b0eb4b50..6cc50f1fac1c 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -210,6 +210,7 @@ kiebackpeter Kieback & Peter GmbH kinetic Kinetic Technologies kingdisplay King & Display Technology Co., Ltd. kingnovel Kingnovel Technology Co., Ltd. +kobo Rakuten Kobo Inc. koe Kaohsiung Opto-Electronics Inc. kosagi Sutajio Ko-Usagi PTE Ltd. kyo Kyocera Corporation From patchwork Tue Mar 19 15:24:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 10859835 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 F40A117E9 for ; Tue, 19 Mar 2019 15:38:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D92952976E for ; Tue, 19 Mar 2019 15:38:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD4AA29751; Tue, 19 Mar 2019 15:38: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=-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 1C27D292F5 for ; Tue, 19 Mar 2019 15:38:16 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=DeAig1arzUdalAZ44Cn0EbLu9YGhgqwo86JuuSTrmDw=; b=VevZH3dnFTS96d ElJLPeC7MLDlpRvw1nZV4yavQmDvdLareOVKMp5vtFvHqzEeys0RxxGRXhseq/+nJBBagD8AyqOw9 J17h5vyrfGV8oxFcBqby/X3+DE5qpK0JNwOfwfOW7hFKL1AuXIH9RMluRZXun8lUuey6RHRL74mHF tD8oSvSUswJidwFfAjLU3LF+GvbI+eAx3jwntaIk3AuMfHYYZ4+FPB+OEHosq2KAeNim8bnZtJknC UB/o6zmHR/AwRNXiTNLONsdsxP+0c/XQTIj/HD5C2K1d9yqeeG9lH9n+taU8kwzOuDOrGNRdyraWX Zc+QZPuAj3cpKLpM8+vA==; 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 1h6Goi-00011L-6p; Tue, 19 Mar 2019 15:38:16 +0000 Received: from mout.gmx.net ([212.227.17.22]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6Gbp-0001TN-EE for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 15:25:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553009082; bh=iy1HeJKrBaK5knQav7qNjyQVAG7l2LLwYy4SPtwYkZA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=PJ/tDqaqg7vO1Obz1CRycZVjfZrGOTnmw/jstN2JW8+dq337RxC81GvbHhzzGDSHr Ekmd8vSkqZmXGnXpzl7/jg4qacmhbuGFbNA8IGUizEdO+J54Md9/ZjPv81YSjn4Tc7 jompOjGZc5LKgqOBjR6TWd1FnFsr34a6fJRC8aAQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([109.90.232.48]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MWgND-1hUqx83GQ7-00XpmJ; Tue, 19 Mar 2019 16:24:41 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/5] ARM: dts: imx50: Add Kobo Aura DTS Date: Tue, 19 Mar 2019 16:24:17 +0100 Message-Id: <20190319152421.16179-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190319152421.16179-1-j.neuschaefer@gmx.net> References: <20190319152421.16179-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:aRAOxBpX4NqXsUQHHtCHrY9uf58GecUbuCxTzlaAExPLIliXwxH oVm6xtva/K5SqrylhBSs6+aRtNbJtc/IVjIqHUfa56BoMOUggRK6zup7glWsdlTCbap/63d 4e+FmCoMw1FDt/r/3fnrq1Vo0bPRJnAt2JhnbvQMr78KzouusSrLLZ+tWh47tu4WAUT1UzA V/D1vICe4lEATpQx64skg== X-UI-Out-Filterresults: notjunk:1;V03:K0:qgFm2pe7RH0=:LokpW1+CHU0j6DFPqwFfYD ruFOMz5H6lf/KUfuUlysNPCFlj1K684oQIDPLU5YMZahAcF96NghFi5QbMJnxve4gNxxlo3Ij +SGtVcv2TwAPmVr2ycld5n+qNDHrqKo88zrsE0e66KNdkHWVuHytYkwGxmSZwPlvoTMlgkfKX LTFjhgB7IUZVw5cL581RaereuOtHBB4obKjH0zZh1cc0mX3dyd8FUkW8bdyl6VKLFK/IdHjM+ TnBjkbL53Oe4rf0f5galtfaJa3e6Pfiw7GCZABSLg1zesz+PuJ7Dsn+qsgN+QLX5C6Ml7oHUw RMPoPSOSUN5XfnKdOLH//XXlK1JoBZJYaU/rcK/QMQkRwiGzmsKT+7jRVjIiXyXtmM4do0wi0 Lm+W6uaEn2QgFIIaOzZ1gpBHc6S/OXiWMlrgGmo7Igjggl4jtyhBMnnlXiUJCc8iPRydpVagH sbKyoQhks9iGqqkUBcCrrKx1XcJrBxrtWK8HH94G1qSuIPDTuS0xbvPoHFDYERxz3IDwix7cw 4xIK+4oxW9SChUW0ek5sKa7yYctQ5PqAC/Y5cvJbDTU8QMGY1J0mp8mBbqtjSSTPrYmrGIs3i CsEiqd7ADBSkQigT8ti/XNdZe22KJFuzDp9DrGtwuAXBRfukPy5+lc3xyw0/N2Iw/7vNgEExJ O06+iLFyX0RO9/pjqAr52FQbkq7JXbfTZ7wFVMmWyts83Hs2dG6V/3MFlBDL0ve2U92DomPLt +DtqEHXFQ9GQFsfEQ1pVAEE52fY+H7DlPj7HPF4lboq3Gem2oKrjeeQuscyCO4qb8StHHYh5g xApf9c1FZx9Ab1I4Vvw9OBidf5eEzOV+ZVT4cZAhgKjZ8q7B7spvs5aIQxe8vrF3rN0rimCl3 rTAFl2Qa0JYQV4v8AUO5iQaO5xnJ+6WHNPpA5Z/H3PwT8nUcFJysFZapr9lynOvc4EmzAIBlK nYGHaMQwJnA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_082458_457488_AA2C5B7C X-CRM114-Status: GOOD ( 15.62 ) 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: Mark Rutland , devicetree@vger.kernel.org, Heiko Stuebner , Martin Blumenstingl , Shawn Guo , Sascha Hauer , Johan Hovold , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Manivannan Sadhasivam , =?utf-8?q?Jonatha?= =?utf-8?q?n_Neusch=C3=A4fer?= , Thierry Reding , Fabio Estevam , Kevin Hilman , Jagan Teki 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 Kobo Aura is an e-book reader released in 2013. With the devicetree in its current state, the kernel will boot and run for about ten seconds. To solve this, the embedded controller needs to be told that the system should stay powered on. This will be done in a later patchset. - The IOMUXC mode bits for the SD interfaces were taken from the vendor's U-Boot fork. - The bus width of the eMMC is 4 bits in the vendor kernel, but I achieved better performance with 8 bits. - The SDIO clock frequency for the WiFi chip is 25MHz in the vendor kernel, but the WiFi chip (BCM43362) supports 50MHz, which works reliably on this board and gives slightly better performance. - The I2C pins' IOMUXC settings come from the vendor's U-Boot fork. Signed-off-by: Jonathan Neuschäfer --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx50-kobo-aura.dts | 245 ++++++++++++++++++++++++++ 2 files changed, 247 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/imx50-kobo-aura.dts -- 2.20.1 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index f4f5aeaf3298..0c85156c552b 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -363,7 +363,8 @@ dtb-$(CONFIG_SOC_IMX35) += \ imx35-eukrea-mbimxsd35-baseboard.dtb \ imx35-pdk.dtb dtb-$(CONFIG_SOC_IMX50) += \ - imx50-evk.dtb + imx50-evk.dtb \ + imx50-kobo-aura.dtb dtb-$(CONFIG_SOC_IMX51) += \ imx51-apf51.dtb \ imx51-apf51dev.dtb \ diff --git a/arch/arm/boot/dts/imx50-kobo-aura.dts b/arch/arm/boot/dts/imx50-kobo-aura.dts new file mode 100644 index 000000000000..e778a677c752 --- /dev/null +++ b/arch/arm/boot/dts/imx50-kobo-aura.dts @@ -0,0 +1,245 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright 2019 Jonathan Neuschäfer +// +// The Kobo Aura e-book reader, model N514. The mainboard is marked as E606F0B. + +/dts-v1/; +#include "imx50.dtsi" +#include + +/ { + model = "Kobo Aura (N514)"; + compatible = "kobo,aura", "fsl,imx50"; + + chosen { + stdout-path = "serial1:115200n8"; + }; + + memory@70000000 { + device_type = "memory"; + reg = <0x70000000 0x10000000>; + }; + + gpio-leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_leds>; + + on { + label = "kobo_aura:orange:on"; + gpios = <&gpio6 24 GPIO_ACTIVE_LOW>; + panic-indicator; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiokeys>; + + power { + label = "Power Button"; + gpios = <&gpio4 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + hallsensor { + label = "Hallsensor"; + gpios = <&gpio5 15 GPIO_ACTIVE_LOW>; + linux,code = <0>; + linux,input-type = <5>; + }; + + frontlight { + label = "Frontlight"; + gpios = <&gpio4 1 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + sd2_pwrseq: pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sd2_reset>; + + reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; + }; + + sd2_vmmc: gpio-regulator { + compatible = "regulator-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sd2_vmmc>; + + regulator-name = "vmmc"; + states = <3300000 0>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-gpio = <&gpio4 12 GPIO_ACTIVE_LOW>; + startup-delay-us = <100000>; + }; +}; + +&iomuxc { + pinctrl_uart2: uart2 { + fsl,pins = < + MX50_PAD_UART2_TXD__UART2_TXD_MUX 0x1e4 + MX50_PAD_UART2_RXD__UART2_RXD_MUX 0x1e4 + >; + }; + + pinctrl_i2c1: i2c1 { + fsl,pins = < + MX50_PAD_I2C1_SCL__I2C1_SCL 0x400001fd + MX50_PAD_I2C1_SDA__I2C1_SDA 0x400001fd + >; + }; + + pinctrl_i2c2: i2c2 { + fsl,pins = < + MX50_PAD_I2C2_SCL__I2C2_SCL 0x400001fd + MX50_PAD_I2C2_SDA__I2C2_SDA 0x400001fd + >; + }; + + pinctrl_i2c3: i2c3 { + fsl,pins = < + MX50_PAD_I2C3_SCL__I2C3_SCL 0x400001fd + MX50_PAD_I2C3_SDA__I2C3_SDA 0x400001fd + >; + }; + + pinctrl_leds: leds { + fsl,pins = < + MX50_PAD_PWM1__GPIO6_24 0x0 + >; + }; + + pinctrl_gpiokeys: gpiokeys { + fsl,pins = < + MX50_PAD_CSPI_MISO__GPIO4_10 0x0 + MX50_PAD_SD2_D7__GPIO5_15 0x0 + MX50_PAD_KEY_ROW0__GPIO4_1 0x0 + >; + }; + + pinctrl_sd1: sd1 { + fsl,pins = < + MX50_PAD_SD1_CMD__ESDHC1_CMD 0x1e4 + MX50_PAD_SD1_CLK__ESDHC1_CLK 0xd4 + MX50_PAD_SD1_D0__ESDHC1_DAT0 0x1d4 + MX50_PAD_SD1_D1__ESDHC1_DAT1 0x1d4 + MX50_PAD_SD1_D2__ESDHC1_DAT2 0x1d4 + MX50_PAD_SD1_D3__ESDHC1_DAT3 0x1d4 + + MX50_PAD_SD2_CD__GPIO5_17 0x0 + >; + }; + + pinctrl_sd2: sd2 { + fsl,pins = < + MX50_PAD_SD2_CMD__ESDHC2_CMD 0x1e4 + MX50_PAD_SD2_CLK__ESDHC2_CLK 0xd4 + MX50_PAD_SD2_D0__ESDHC2_DAT0 0x1d4 + MX50_PAD_SD2_D1__ESDHC2_DAT1 0x1d4 + MX50_PAD_SD2_D2__ESDHC2_DAT2 0x1d4 + MX50_PAD_SD2_D3__ESDHC2_DAT3 0x1d4 + >; + }; + + pinctrl_sd2_reset: sd2-reset { + fsl,pins = < + MX50_PAD_ECSPI2_MOSI__GPIO4_17 0x0 + >; + }; + + pinctrl_sd2_vmmc: sd2-vmmc { + fsl,pins = < + MX50_PAD_ECSPI1_SCLK__GPIO4_12 0x0 + >; + }; + + pinctrl_sd3: sd3 { + fsl,pins = < + MX50_PAD_SD3_CMD__ESDHC3_CMD 0x1e4 + MX50_PAD_SD3_CLK__ESDHC3_CLK 0xd4 + MX50_PAD_SD3_D0__ESDHC3_DAT0 0x1d4 + MX50_PAD_SD3_D1__ESDHC3_DAT1 0x1d4 + MX50_PAD_SD3_D2__ESDHC3_DAT2 0x1d4 + MX50_PAD_SD3_D3__ESDHC3_DAT3 0x1d4 + MX50_PAD_SD3_D4__ESDHC3_DAT4 0x1d4 + MX50_PAD_SD3_D5__ESDHC3_DAT5 0x1d4 + MX50_PAD_SD3_D6__ESDHC3_DAT6 0x1d4 + MX50_PAD_SD3_D7__ESDHC3_DAT7 0x1d4 + >; + }; +}; + +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart2>; + status = "okay"; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + /* TODO: ektf2132 touch controller at 0x15 */ +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; + + /* TODO: TPS65185 PMIC for E Ink at 0x68 */ +}; + +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + /* TODO: embedded controller at 0x43 */ +}; + +&esdhc1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sd1>; + + max-frequency = <50000000>; + bus-width = <4>; + cd-gpios = <&gpio5 17 GPIO_ACTIVE_LOW>; + disable-wp; + + /* External µSD card */ +}; + +&esdhc2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sd2>; + + bus-width = <4>; + max-frequency = <50000000>; + disable-wp; + mmc-pwrseq = <&sd2_pwrseq>; + vmmc-supply = <&sd2_vmmc>; + + /* CyberTan WC121 SDIO WiFi (BCM43362) */ +}; + +&esdhc3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sd3>; + + bus-width = <8>; + non-removable; + max-frequency = <50000000>; + disable-wp; + + /* Internal eMMC */ +}; From patchwork Tue Mar 19 15:24:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 10859781 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 B9E346C2 for ; Tue, 19 Mar 2019 15:25:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E56029758 for ; Tue, 19 Mar 2019 15:25:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92566287A8; Tue, 19 Mar 2019 15:25: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 3715F29755 for ; Tue, 19 Mar 2019 15:25:13 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=7epQoeTvXUGIvtJ0+dd6+H0+pLmuo+z7R3kVaeFedAU=; b=c4qsRZPoHpPrgT WUMOrxtXLLBTQxBNm1lH/uvoPXLcrk+wDoly+OdvXqwJb5kl9hdI999WbiICe8hsAEH7IvUUDnJm/ lRbKGXQsn3XiRxKqIUhlM+EHNIK7935iWU+XcYLoltsPoFb1y7P6IFeJIlxuZSeafjibJ+PSTzZrJ UNytuMNJE3Qxhl3pkEvk/0rWckOfLRr0N65IHRoj9bR1rhIbT9uREOmDFazwYwEVpRymZYj/wkqdd QEU3Z9wPqNUvvrK8H5JoN9ADjrresk1iQ7n5ZAejY5ulns4ilV5+K/s3zAZbYeoOIaC1nfgx7vhKp 2KEVkYefL9dbyTFs9TuA==; 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 1h6Gc2-00025X-IH; Tue, 19 Mar 2019 15:25:10 +0000 Received: from mout.gmx.net ([212.227.17.21]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6Gbm-0001Oz-Po for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 15:24:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553009084; bh=ipB3CHPowXwUEwhyQjUjLsxdRiVluHFcHPKLTIn+D/M=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=BXyMgmAEXwnXASstwZU5mPG3kd7a+BZpPpWgjdOtJuSkSgzQUSt56Du51B7EcxI4T gpe7lhakgmHjyjQHHSyTJMioQIqfI/eaod5YxfEPvAd8b5Lb8W0yAeyUpk7EHB2AKt KrWPcKqTpm/jfRC8YrEMdzkEsjAjnDPPp/XEEbOM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([109.90.232.48]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LuJDv-1gz5Vj177X-011h7n; Tue, 19 Mar 2019 16:24:44 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/5] ARM: dts: imx50: Add PHY node for usbotg and adjust clocks Date: Tue, 19 Mar 2019 16:24:18 +0100 Message-Id: <20190319152421.16179-4-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190319152421.16179-1-j.neuschaefer@gmx.net> References: <20190319152421.16179-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:RQyRurqixI6BorymjXPsg/bz7SQ80dX0FrwjIhVr3Nu/jA/usv2 PXBL2wrGE+ZXYEidkgoDmaWL/g/udYoSmXkBPQVgiA9r3HG0m5vg//9n7wd/4CGsJetRVdG P5OfFBsdeFMW/Ib8ok+Rf0B8N+rl+u99rFtS6mo94qXzuMPeaE5TRvoXTotTKsMT/qFMyW7 DuyjSJ69zq/hH3rSHgW/g== X-UI-Out-Filterresults: notjunk:1;V03:K0:g8SzXboCY28=:U8o0eohhFLl2XENeHIL5Q6 48gpi74eKpQeiuUfEyHaTjVQHEViFVtg3/y6KyYqzVIidqGhALVwCpw7pKLWjssU+uWvVs5nN qBvtXUab4G3MIlNbzC0eVzxaKarJ7gFYBOPTm+ErI/LFzv4sB2Iwo00BP0WTk03wYs4FPmyfX Wnqyqx+ZsdLkvKrntsu00ZXpUZvw4h1ryKwY0ZHVvpDTVWhQTUYpLIStJwlZd34SHHiOptNr+ WHFcsCm41jP07i7GUW+HKRzOBePFa7g568NQzyElq7Xin00x+6B3dGm4IXgH8hfx3LEMAfBGw 3JZpOhF0E8A42HPU1w/EhsbxgzNSiqCogeNENCrsTxgFoNHDPBfAbBL8zbvd4lqVEhiiq6Rof 72Q8EJRIX5x/c4njz09HmEMYKFrDq9UHeDhlnXObC78C/A64/PT+1gskvg/NGjZl2cTQCmGCV iLNgiYAMD7/UibrVPAmmWMR+LpwGFms47RvN2UdCNbLaa7VqlhsvZUn5uecrPDb5Ipi7N2ug1 /vKY1W1b6fBq0v9Wdu+qXguGp9MJRbXPKbZHG8gAHOA72x3WRvhgpdi5Sui5TAJU8oAZsJGyL MqLCT6Cu2zbPs3q3u7fCv6XshEilBO+el774JIPKmH6vVkWWnElCNGL4TGy00D6WDcfddBWEA fK6lIkCUyrZQMZ93iiU1boV2tCHhmHl0UvAqH94zMYWOLqFE7KEEerbKu378ETqUO0kGWE4Vo OzI4PRFzn6JcgQoDAha33S0VPaa+b28KXzVF97C2BQb/HNx+iFn0FYo2+4f8NkYkZVN/BaLoM 56UhstFuQRMDfdAm9gfdguZLLSa3l9sNYIf0tGis1enLJkSVWQ3RsfKFCTxA81EWdPHhXnIfr xmADubCMRSq4b2+r9bo1ZUhNWje7GqXJzVNgYYcroaz0tq/1rOjUyLQJy915bbIDsE+9wyKp8 mtHqtfS4iFQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_082455_457432_781FE7E9 X-CRM114-Status: GOOD ( 11.94 ) 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: Mark Rutland , devicetree@vger.kernel.org, Heiko Stuebner , Martin Blumenstingl , Shawn Guo , Sascha Hauer , Johan Hovold , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Manivannan Sadhasivam , =?utf-8?q?Jonatha?= =?utf-8?q?n_Neusch=C3=A4fer?= , Thierry Reding , Fabio Estevam , Kevin Hilman , Jagan Teki 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 Even though the ChipIdea USB controller binding[1] doesn't specify the properties that reference a PHY as required, the Linux driver requires[2] such a reference. The clock situation is like on i.MX53: The USB controller is clocked from IMX5_CLK_USBOH3_GATE and the PHY from IMX5_CLK_USB_PHY1_GATE. [1]: Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt [2]: Search for EINVAL in drivers/usb/chipidea/ci_hdrc_imx.c Signed-off-by: Jonathan Neuschäfer --- arch/arm/boot/dts/imx50.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/arch/arm/boot/dts/imx50.dtsi b/arch/arm/boot/dts/imx50.dtsi index ee1e3e8bf4ec..e5632ce24ba0 100644 --- a/arch/arm/boot/dts/imx50.dtsi +++ b/arch/arm/boot/dts/imx50.dtsi @@ -76,6 +76,14 @@ }; }; + usbphy0: usbphy-0 { + compatible = "usb-nop-xceiv"; + clocks = <&clks IMX5_CLK_USB_PHY1_GATE>; + clock-names = "main_clk"; + #phy-cells = <0>; + status = "okay"; + }; + soc { #address-cells = <1>; #size-cells = <1>; @@ -187,7 +195,8 @@ compatible = "fsl,imx50-usb", "fsl,imx27-usb"; reg = <0x53f80000 0x0200>; interrupts = <18>; - clocks = <&clks IMX5_CLK_USB_PHY1_GATE>; + clocks = <&clks IMX5_CLK_USBOH3_GATE>; + fsl,usbphy = <&usbphy0>; status = "disabled"; }; From patchwork Tue Mar 19 15:24:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 10859785 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 1F2876C2 for ; Tue, 19 Mar 2019 15:25:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 050A8286FF for ; Tue, 19 Mar 2019 15:25:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECA9829759; Tue, 19 Mar 2019 15:25:35 +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 A4D86286FF for ; Tue, 19 Mar 2019 15:25:35 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=rdVyYkHILuEet5JQy/QM88/fST3VH2kbvEGBiN80MZg=; b=PPqWyQdr/FBWgp 47CYUgzI+4jWQMfdi0Gc5KqK9PLjSxn52RuRsArz4Ya811UnNWm8SL5GoYUjsaT7hnP8MM49qCt2q Pb2VkAGWfnk3yvR4m5hYvafD6FHUffacRuCXaEbPgXtQGusyXbm2xuxYXyH3c8UxTYixIKOsJIKOS EwavOEgwtdKXnoKkwuDUP1tCG5MtueMjpHe2amXDKCgO553HkIdwv5HKMa3OwVZajMZxg3R3gtb8O yqbZAbOw8MuaNgRlSrd3m1COamKuwA1Z8qtg3hal/sZZhWLS3NMf2p2/puR5N6iQfuL+gC03RHG8B XF/RgWEdWwjliPF+T1Pw==; 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 1h6GcO-0003ID-EA; Tue, 19 Mar 2019 15:25:32 +0000 Received: from mout.gmx.net ([212.227.15.15]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6Gbn-0001PR-CO for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 15:25:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553009086; bh=nb0C5rRkoVkrLbGI/+Uko6W3kPIm+SmqJ2g43abCtI0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=VkzgUTj83MDC+s2Nhdqo6W77DWmaPWD5TqSbSSreKkUC9UtHRts2mZe3+9gZz/11E gVb9SXGAH+6Qys5nsnj3cbQrpLBfxJs56L0eNxuv7k60nF3NCyYyuOVScM7Takb7s6 M81qqED/n/GwDXIN8LmtFVTpa/YVEg/jD9xdGB58= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([109.90.232.48]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LkPBT-1gZfoD0qRn-00cO70; Tue, 19 Mar 2019 16:24:46 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/5] ARM: dts: imx50-kobo-aura: Enable USB support Date: Tue, 19 Mar 2019 16:24:19 +0100 Message-Id: <20190319152421.16179-5-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190319152421.16179-1-j.neuschaefer@gmx.net> References: <20190319152421.16179-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:0cHFUBU+V3xPJK5bnKVc39JMOGsAGPjkYMvryFj2TD6JJ5SrRjD LOBPVgYxuUz4Lqua5tbJ9efDYwNoniQDKI4IgeBiRXH/mGOAoXTmLv9XtvXByoSMLr54swN 2QLtWDz2OgesEadrVE7Vskk2ZhBYdThGDgGlk5HpkDitcZaX3Q/QJve67OVyHXWS/AL+gkk CThEoWQpMjPDZImOf+iYw== X-UI-Out-Filterresults: notjunk:1;V03:K0:tsxlXrPyxcQ=:kTpSYAJVJGymsLWQxjoovE AxUfZ+FANXjd63QbUwJ85xbMvKb7TVmM+zWagk9pznKXXos4BJanefZwj27P1Hj9wDyetK4ia HT4Vd+twnPk9EBuEhWw7frRMpaDhKL/8JZD2DzHS+6Bc1RgP7wr2K5iOh3/ba9JJQlcOChNfg pWuKgiMW1OSRr4tCHwh8vfMy6erYIIe0zksPWS8i4ftRvfw6Bj24PtsoJwhbg+KVXWmuR5qQo 93KtCP1iTGbAxm1gHN29kojg6vlYyYBliVG9nYn0zsKITHVrQPXUOlOtK8lCNLGHGcEloQS8G dOpV7K9zq/O4Xdlt5wkW+bq8aC5+VFy9l/PMbrM6xXqGfgY2YJ3+e0JXq5qQp+jxAvyecVtLw VrslhEtBA9zuPtg3h5mk6w2tCSAACa6yg6/kJdcwA89xmlr0aN/w8oc2RBWshcRzxEKjZ6SMr mlXT4QOGltKN6wJTP82tYIA8hGPs0zGVZ/JCNVje6aQ+1+Fhkj3BkHuTjA+6mmy2J7Xc/kRbR d1+KsG7p4hDIeHSvh7f0JtaHxUGwoH4a+i0QgP0IrOWbO2JJLGqBIhP3rb0Wj2NLq9H4L+hQD whQQ0a7DBUwxhMCfKWu5i8RvBg3yfYBkwx2awc58/n+M04+ZmwqabXv63xcqBrSv0biUt4qWA SDKzXXSXyfFQG4BlMaKmmZNJN6HVDkDuMwG2lLwyQnBcJEzzKl27JMAiV6BTMkaVYVgRkYGP4 JuSkOdZ8ocY6MQSAy+uC4YbwrwRlJZF4Bp0s55R9U2XLE9ZL6hQs67h5u9QT9j72N3jVpkydP 9K4W9PNgZpFfXIe/1bHpmnluMuLAiH35C2+oqYX1Kt5zJsUjVf349xJFIw0CtU0cKKbhM0H5L Y5vGZQBdh6w5UoYYlXWj7XcxQqBH9vZSIFn6gP12cz+qI7ZC3F0Bbqq1mFD21wpmeA6fJGxGq PR7cL6YAQNQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_082456_143452_1BBEC9DE X-CRM114-Status: GOOD ( 10.34 ) 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: Mark Rutland , devicetree@vger.kernel.org, Heiko Stuebner , Martin Blumenstingl , Shawn Guo , Sascha Hauer , Johan Hovold , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Manivannan Sadhasivam , =?utf-8?q?Jonatha?= =?utf-8?q?n_Neusch=C3=A4fer?= , Thierry Reding , Fabio Estevam , Kevin Hilman , Jagan Teki 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 Enable the USBOTG controller in device mode, and also enable the corresponding PHY. The presence of Vbus is detected via a GPIO. Signed-off-by: Jonathan Neuschäfer --- arch/arm/boot/dts/imx50-kobo-aura.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.20.1 diff --git a/arch/arm/boot/dts/imx50-kobo-aura.dts b/arch/arm/boot/dts/imx50-kobo-aura.dts index e778a677c752..d0dc20d99d99 100644 --- a/arch/arm/boot/dts/imx50-kobo-aura.dts +++ b/arch/arm/boot/dts/imx50-kobo-aura.dts @@ -87,6 +87,12 @@ >; }; + pinctrl_usbphy: usbphy { + fsl,pins = < + MX50_PAD_ECSPI2_SS0__GPIO4_19 0x0 + >; + }; + pinctrl_i2c1: i2c1 { fsl,pins = < MX50_PAD_I2C1_SCL__I2C1_SCL 0x400001fd @@ -180,6 +186,18 @@ status = "okay"; }; +&usbotg { + status = "okay"; + phy_type = "utmi_wide"; + dr_mode = "peripheral"; +}; + +&usbphy0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbphy>; + vbus-detect-gpio = <&gpio4 19 GPIO_ACTIVE_LOW>; +}; + &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>; From patchwork Tue Mar 19 15:24:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 10859787 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 B46C21708 for ; Tue, 19 Mar 2019 15:25:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AF1429763 for ; Tue, 19 Mar 2019 15:25:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98F192976C; Tue, 19 Mar 2019 15:25:56 +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 56F1929763 for ; Tue, 19 Mar 2019 15:25:56 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=4uF30hKBwxTjJfjdLdhLfDDEopV3heb/kyzow0RncZw=; b=JBURGlfcc2j0iQ 3Vf70+oyA5To5j/mslIHPluq9sAvxOjEfBTCgohPOR1I3dp81buNgrG0W+7p5zd+jJqsJ3HIG2B1C 8RY+rzDfSmOmfLVHSIZcoND5uI/C0rWZkGKMQG+oUiIzDypfyJHyAF3JxWjji54hqdW+8PQmfjvj2 tffDP8S3NRQj+qu14ajQnhJ+Lr3/qua0vpLHCNzaTzSnK4EzTdHxd6ILnbbG11RXWMgQh3J6LUTiP qSLr5NovORFmKcVL1gGQsfDzQoXeqt43ZhDW+6eUUSLdasPkMDpdzzgH1b1rmG46W0smzzVLhsze6 QDFssfHliWe45OgLop+g==; 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 1h6Gcj-0003lJ-Tu; Tue, 19 Mar 2019 15:25:53 +0000 Received: from mout.gmx.net ([212.227.17.21]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6Gbq-0001UV-4B for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 15:25:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553009088; bh=vNO7KDNNqcpkSNGHEUVtq/MYroMhBlPDJKFNSL2aYDA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=GLFVHrp4YrkqBHQgU2PcP/UXenliE/GO2k1KoZLupodCuZUzueoP5LKI4sp/YplI6 P1yEE+7U2TDcCmTnmibxh9RwvLW1Np9AAfNdwc2Sy6NIsmG2Ia/QmOpcKd966wPkco hvuFGn+ugCvdm65NCSA2kg9owx5rt5OuyA5rVpdo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([109.90.232.48]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lk81O-1gZwvi002E-00cCKB; Tue, 19 Mar 2019 16:24:48 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/5] ARM: dts: imx50: Fix the numbering of the I2C controllers Date: Tue, 19 Mar 2019 16:24:20 +0100 Message-Id: <20190319152421.16179-6-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190319152421.16179-1-j.neuschaefer@gmx.net> References: <20190319152421.16179-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:e3Ml0KWZ7zW46/BM0/+7mb6IExHETapNVdGmdG4MxkuGY3aUYhh 1fi3HU+7hr46EWAbSxD/uREV/vCCk5sMtCSvJ5YwHmU750Ktn6ZrXrA0CqDq1EG+AQiOByU hVqt2jYjWKEwcSPxz+pvuxeHONtiSNT4kvHI4gO/AFVKdHzlqWIXtzqvC5A6Whhg+hoPJX3 ++W0Vr2omGfqnu0j2AWjg== X-UI-Out-Filterresults: notjunk:1;V03:K0:FEBRrhRBonM=:05g6vchLlBZPpRHYVG5s6q BX88XuHZaCD0Dl4LEnBD14hpjDoJZwUiZKbcUQnbNbmGosg57FYsANqVw0v3Syrpe3xjR9NSq vQR+/afvGUPJZlAlAL/YAuntldxRAvFSDORvwB7qBCBLcwu4mrCUjidNOz7T2+8C3BR8YOUbD mhuNw65tTAl3UDddUU7yIFF77vvyslegOP95ruzekZFQjW9WO3uoMYoq0N3YKsYguZ4FuBFBB Vj2rZ2xDb1m6cZ+EfijSEnTJyp8kqZk4+xb0/b5cPh6JxU+el6oW/75vg5xNYZ7+ySHv2z3BT 5CBnyIUFvsfm2RemODtZ8GeJTxc3hG+HA8+sQU6RwAIElJPJzwV1m0hzuPJBJ2Vz7S/Wb4fQr LcNlzCShUfhlsZktXB+AGgOwo/de7+3EikQcEA1RvBYlAKrQn/dfPo94Rk/BW2LQBh3PtXs27 kwxJXixP75/8rQrDxcL8U4EUFQpWFkmtZzYlHVB3QGdCO65k8Qgh5bgLZixpjyUiPjXCHrglt AhYhjFTa3uCpbZ67NOHtYqLS4UvwoEO/fmyRwMay9DXyq8mFQmO/QkCpfcqh3cSt+x7CBrA1P rutKn5eQ+SQn85vdpsULoYiOWzwoyeS8SWe19KN9Myyrc0yuHIZ6E6cSNELw2i5vHWRpH75z6 eoKYgjXQayHMNrxr2LmBD7D/GNgEkPRz/dC7VL/4rF72ntg1GVcdE4hlDZhoFNAva8B9QzWAW 5UcPvxR/dyKtlzpAtvopiyvigciOxun+hJ5sWm0Rlyzc2nUMq4QWY09wxbsDSK0AEkCbQj+4p eUwlPmtIPDOWK6JRMe1wD0OQykBH18p+iHEG3CFg/s3ao+tt4Un4QvM+3yIYYoENRjEw6Kkwr ea8jZncnci1qXMq99qxI7IY4ZKT1WMSMY2qHPM/AbN3vJ7KNDP1+BZgMcQXExHppHbT44Gctu 9TPRn6oRl9A== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_082458_998821_C3049D39 X-CRM114-Status: GOOD ( 10.03 ) 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: Mark Rutland , devicetree@vger.kernel.org, Heiko Stuebner , Martin Blumenstingl , Shawn Guo , Sascha Hauer , Johan Hovold , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Manivannan Sadhasivam , =?utf-8?q?Jonatha?= =?utf-8?q?n_Neusch=C3=A4fer?= , Thierry Reding , Fabio Estevam , Kevin Hilman , Jagan Teki 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 Ensure that the i2c buses are reported to userspace (for example to i2cdetect) in the same order as they are numbered in the SoC's documentation by adding aliases to the devicetree. Signed-off-by: Jonathan Neuschäfer --- arch/arm/boot/dts/imx50.dtsi | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.1 diff --git a/arch/arm/boot/dts/imx50.dtsi b/arch/arm/boot/dts/imx50.dtsi index e5632ce24ba0..8cab0ab3bd4e 100644 --- a/arch/arm/boot/dts/imx50.dtsi +++ b/arch/arm/boot/dts/imx50.dtsi @@ -26,6 +26,9 @@ gpio3 = &gpio4; gpio4 = &gpio5; gpio5 = &gpio6; + i2c0 = &i2c1; + i2c1 = &i2c2; + i2c2 = &i2c3; serial0 = &uart1; serial1 = &uart2; serial2 = &uart3;