From patchwork Fri Feb 5 19:01:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 61342 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp140898lbl; Fri, 5 Feb 2016 11:01:28 -0800 (PST) X-Received: by 10.67.6.1 with SMTP id cq1mr21975198pad.78.1454698888561; Fri, 05 Feb 2016 11:01:28 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wg9si25405001pab.242.2016.02.05.11.01.28; Fri, 05 Feb 2016 11:01:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756768AbcBETB1 (ORCPT + 6 others); Fri, 5 Feb 2016 14:01:27 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:32806 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756765AbcBETB0 (ORCPT ); Fri, 5 Feb 2016 14:01:26 -0500 Received: by mail-wm0-f45.google.com with SMTP id g62so60568643wme.0 for ; Fri, 05 Feb 2016 11:01:25 -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=GmgkWs13IY6MnYFOztl3QJCaTPKxy7gpWRGp3026auE=; b=Y1dl1TkRBNNKwcVYt9c0neotHkOgMUcvOxtGAmblTVbeeTDny+p1+LW28RWrrvBxEC ut7CvMY7JnKMkwY7n/v8CBS1WnvzU63NZjt9sBOQUtZF8vQBZ02NyFwJVd62yWYoknOh CvVzR199mFnGWD7eWl6yA5zJNoHbAQMBDJn0E= 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=GmgkWs13IY6MnYFOztl3QJCaTPKxy7gpWRGp3026auE=; b=ZuoKxx0/+jtx2ftSdD2uqhwk/KOg6177mYTI3WsdziwYSLM8KdGTvXsu6KO5c299uc czuISwFJ7PdthQWz9VzxTS5d3HsPehYOULiq91x5Ks37JtG/fQCYrPH/e2+gn3mZL4sZ 67h8vBlNG9jP8QxTdpOhMlXh2gMl1gkUVaA0JikRknmpAGxzHYd5aBFJQlFTiU+Dmf7S wQ0v/2Q2yOLZDmIXJwofi4XeQSpPIktzwMidGO7MnYtMCDasqTCeGtPQYDSqBR0hYrsY oMv6Sk/tp9ECsHfSbzbe7Vjq5wLVDLcspX9Qs3X5xZjGFNiK2MYLFm+/3pRZ7XJTzxDU BI9w== X-Gm-Message-State: AG10YOQwtPkVhF1HugfD189fLMDBDP3F1slS73UO5Ef3Xt2D/CkI+HNTDb3eKqVft2M/pl9p X-Received: by 10.194.21.135 with SMTP id v7mr15431361wje.131.1454698885290; Fri, 05 Feb 2016 11:01:25 -0800 (PST) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id ei9sm17123581wjd.40.2016.02.05.11.01.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Feb 2016 11:01:24 -0800 (PST) From: Srinivas Kandagatla To: Andy Gross Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 2/6] arm64: dts: qcom: apq8016-sbc: add usb support Date: Fri, 5 Feb 2016 19:01:20 +0000 Message-Id: <1454698880-13973-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454698819-13885-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1454698819-13885-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds usb otg support on DB410C. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi | 15 ++++++++++ arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 35 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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..4a79dd9 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,19 @@ output-low; }; }; + + usb_id_default: usb_id_default { + pinmux { + function = "gpio"; + pins = "gpio121"; + }; + + pinconf { + pins = "gpio121"; + function = "gpio"; + 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 9a6c595..e80bdc2 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -151,6 +151,41 @@ cd-gpios = <&msmgpio 38 0x1>; status = "okay"; }; + + usb@78d9000 { + extcon = <&usb_id>, <&usb_id>; + status = "okay"; + }; + + usb2513 { + compatible = "smsc,usb3503"; + reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>; + initial-mode = <1>; + }; + + usb_id: usb-id { + interrupt-parent = <&msmgpio>; + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_id_default>; + }; + + 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>; + }; }; };