From patchwork Wed Jun 8 13:48:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9164731 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 A383B60572 for ; Wed, 8 Jun 2016 13:50:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93A1125D91 for ; Wed, 8 Jun 2016 13:50:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 883BF2824F; Wed, 8 Jun 2016 13:50:49 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4FC0625D91 for ; Wed, 8 Jun 2016 13:50:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAdrO-0000my-It; Wed, 08 Jun 2016 13:49:30 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAdqf-00009Y-P9 for linux-arm-kernel@lists.infradead.org; Wed, 08 Jun 2016 13:48:47 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O8G00FROH0OK930@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 08 Jun 2016 14:48:24 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-a0-575822281bfd Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id E5.8D.05254.82228575; Wed, 8 Jun 2016 14:48:24 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O8G00M68H0F9I60@eusync1.samsung.com>; Wed, 08 Jun 2016 14:48:24 +0100 (BST) From: Krzysztof Kozlowski To: MyungJoo Ham , Chanwoo Choi , Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , Marek Szyprowski , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [RFC v4 7/7] ARM: dts: exynos: Add extcon-usb-gpio node for Odroid XU3 Date: Wed, 08 Jun 2016 15:48:06 +0200 Message-id: <1465393686-16644-8-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1465393686-16644-1-git-send-email-k.kozlowski@samsung.com> References: <1465393686-16644-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t/xy7oaShHhBh0T+C02zljPanHwfr3F 9S/PWS3mHznHavFs4kNGi9cvDC36H79mtrjwtIfNYtPja6wWl3fNYbOYcX4fk8XaI3fZLZZe v8hkcbtxBZvFsdl/mSxa9x5ht+h5pOUg6LFm3hpGj3+H+5k8Nq3qZPPYvKTeY9P+acwefVtW MXocv7GdyePzJrkAjigum5TUnMyy1CJ9uwSujAPPjjIWdApW7L7ZytrA2M7XxcjJISFgIvFh 7WxGCFtM4sK99WxdjFwcQgJLGSWmv2lgh3AamSR+fb3DBFLFJmAssXn5ErAqEYFFzBLHO3uY QBxmgW2MEjd6fzCDVAkL+Et07D0KZrMIqErcO32fFcTmFXCXuDHtHBPEPjmJk8cmg8U5BTwk Lm5fBnaHEFDN788TWSYw8i5gZFjFKJpamlxQnJSea6hXnJhbXJqXrpecn7uJERLUX3YwLj5m dYhRgINRiYdXwTA8XIg1say4MvcQowQHs5IIr45MRLgQb0piZVVqUX58UWlOavEhRmkOFiVx 3rm73ocICaQnlqRmp6YWpBbBZJk4OKUaGFW9BI4u+cP55pXmphPX2XNudHZkda6KjV2fvXbT 5e+CrxjWn47iXu6ZuHV7hJfWD0Zz/4qoVfrac10rGr7H2D3pqjPYdffB6sC+wtKJM6b1+JSU 114MPseeseC73imfvX/fyBRFLpn+s3rhK6v0yxLZU1nZWJhu9KxgbZ524vrS2Nziwps/fJVY ijMSDbWYi4oTATEpvqtmAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160608_064846_121585_92629B62 X-CRM114-Status: GOOD ( 15.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartlomiej Zolnierkiewicz , balbi@ti.com, kishon@ti.com, Peter Chen , "Ivan T. Ivanov" , rogerq@ti.com 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 Add node for extcon-usb-gpio driver which will be providing notifications about VBUS/ID changes to the dwc3 driver. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts | 21 +++++++++++++++++++++ arch/arm/boot/dts/exynos5422-odroidxu3.dts | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts b/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts index 03fa88c45426..3d4d51bc2e3d 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts @@ -19,6 +19,27 @@ / { model = "Hardkernel Odroid XU3 Lite"; compatible = "hardkernel,odroid-xu3-lite", "samsung,exynos5800", "samsung,exynos5"; + + extcon_usb: extcon_usb { + compatible = "linux,extcon-usb-gpio"; + + pinctrl-names = "default"; + pinctrl-0 = <&usb_otg_id &usb_vbus>; + id-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>; + vbus-gpio = <&gpx3 4 GPIO_ACTIVE_HIGH>; + }; +}; + +&pinctrl_0 { + usb_otg_id: usb-otg-id { + samsung,pins = "gpx1-1"; + samsung,pin-pud = <0>; + }; + + usb_vbus: usb-vbus { + samsung,pins = "gpx3-4"; + samsung,pin-pud = <0>; + }; }; &pwm { diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot/dts/exynos5422-odroidxu3.dts index 9ed6564acfb0..020eb097c9c6 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts @@ -18,6 +18,15 @@ / { model = "Hardkernel Odroid XU3"; compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5"; + + extcon_usb: extcon_usb { + compatible = "linux,extcon-usb-gpio"; + + pinctrl-names = "default"; + pinctrl-0 = <&usb_otg_id &usb_vbus>; + id-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>; + vbus-gpio = <&gpx3 4 GPIO_ACTIVE_HIGH>; + }; }; &i2c_0 { @@ -52,6 +61,18 @@ }; }; +&pinctrl_0 { + usb_otg_id: usb-otg-id { + samsung,pins = "gpx1-1"; + samsung,pin-pud = <0>; + }; + + usb_vbus: usb-vbus { + samsung,pins = "gpx3-4"; + samsung,pin-pud = <0>; + }; +}; + &pwm { /* * PWM 0 -- fan