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: 9164709 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 DAF9460467 for ; Wed, 8 Jun 2016 13:49:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD2A225D91 for ; Wed, 8 Jun 2016 13:49:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1CD92810E; Wed, 8 Jun 2016 13:49:21 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B39CE25D91 for ; Wed, 8 Jun 2016 13:49:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755149AbcFHNsv (ORCPT ); Wed, 8 Jun 2016 09:48:51 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:27688 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbcFHNs1 (ORCPT ); Wed, 8 Jun 2016 09:48:27 -0400 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>; 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 Cc: rogerq@ti.com, Peter Chen , "Ivan T. Ivanov" , balbi@ti.com, kishon@ti.com, Bartlomiej Zolnierkiewicz 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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