From patchwork Tue Feb 23 16:49:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 62740 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1932883lbl; Tue, 23 Feb 2016 08:50:08 -0800 (PST) X-Received: by 10.66.62.229 with SMTP id b5mr48469438pas.114.1456246208771; Tue, 23 Feb 2016 08:50:08 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4si48320132pfn.180.2016.02.23.08.50.08; Tue, 23 Feb 2016 08:50:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754583AbcBWQuG (ORCPT + 30 others); Tue, 23 Feb 2016 11:50:06 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:33298 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752234AbcBWQuA (ORCPT ); Tue, 23 Feb 2016 11:50:00 -0500 Received: by mail-wm0-f45.google.com with SMTP id g62so209482411wme.0 for ; Tue, 23 Feb 2016 08:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5i0E0TKZpwqGhxBDSddXnDaeckYrDrMHDjR6KqyDpbw=; b=Q2O6Bw+WxEGwwWU7G4CPFDcYNj5Iqt4vwsNB1aPkLBdd5BaveX1F3HvzOBpK/15e9h hplcC06AylAVZcz7llQMcmHsAQnRLYjNeHN3iiXkmkQgA3lRzmeHM5ZX3QDIGMXjuxWn 37b80Iw/hQTSo1a+GRzijQ3EQ+Q6QQpNSNfgc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5i0E0TKZpwqGhxBDSddXnDaeckYrDrMHDjR6KqyDpbw=; b=FjSPrqK6x/7R9ipex6AD5r3yxLOGmig/w0NUgSEbg1XK50vvTW2gLRwBGEd60tK0EY zUKANDGQOQHUTxh82KAiyqEZY/m+ZFxoASz3C59S4k+vol5nJBUCAsXs9fqGGywdyS1T 2Wm5dw1KgLTnPNhbpnGaqEX4Dy2Fy8WdRpk9itp76NnjO8gVs3hHN8xsKgMtf9bgzovr I3iOotRw16V+oaMqeBjF4ikZTOuCWA0W2swXAyKKo90dwh5zv2ffJLbis++P5i3Iyd6g LqYeGhIRIYWYnF8F1WGzt72TXUs5i7eGTEXLwZbcczXf3SlCcscpphESA7SZtrPuNX7B Uu9A== X-Gm-Message-State: AG10YORY1AwXC8hu8Lku1CWtzfhWJHmBnDbDnlkcwdPKSEnu0nntJhGUVMnyvjonFEvTW1dD X-Received: by 10.194.63.7 with SMTP id c7mr35160630wjs.168.1456246199920; Tue, 23 Feb 2016 08:49:59 -0800 (PST) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id r62sm27063298wmd.15.2016.02.23.08.49.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Feb 2016 08:49:59 -0800 (PST) From: Srinivas Kandagatla To: Andy Gross , linux-arm-msm@vger.kernel.org Cc: Rob Herring , Russell King , linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v3 2/8] arm64: dts: qcom: apq8016-sbc: add usb support Date: Tue, 23 Feb 2016 16:49:56 +0000 Message-Id: <1456246196-18173-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456246153-18087-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1456246153-18087-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi | 14 +++++++++ arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 34 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) -- 1.9.1 diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi index cbeee0b..ee828a8 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi @@ -10,4 +10,18 @@ output-low; }; }; + + usb_id_default: usb-id-default { + pinmux { + function = "gpio"; + pins = "gpio121"; + }; + + pinconf { + pins = "gpio121"; + drive-strength = <8>; + input-enable; + bias-pull-up; + }; + }; }; diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 8102929..15bb485 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -133,6 +133,40 @@ sdhci@07824000 { status = "okay"; }; + + usb@78d9000 { + extcon = <&usb_id>, <&usb_id>; + status = "okay"; + }; + + ehci@78d9000 { + status = "okay"; + }; + + phy@78d9000 { + v1p8-supply = <&pm8916_l7>; + v3p3-supply = <&pm8916_l13>; + vddcx-supply = <&pm8916_s1>; + extcon = <&usb_id>, <&usb_id>; + dr_mode = "otg"; + status = "okay"; + switch-gpio = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_sw_sel_pm>; + }; + }; + + usb2513 { + compatible = "smsc,usb3503"; + reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>; + initial-mode = <1>; + }; + + usb_id: usb-id { + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_id_default>; }; };