From patchwork Wed Feb 10 11:36:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 61640 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2586473lbl; Wed, 10 Feb 2016 03:36:52 -0800 (PST) X-Received: by 10.66.180.174 with SMTP id dp14mr46205065pac.93.1455104212501; Wed, 10 Feb 2016 03:36:52 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r71si4599100pfa.179.2016.02.10.03.36.52; Wed, 10 Feb 2016 03:36:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1754790AbcBJLgs (ORCPT + 7 others); Wed, 10 Feb 2016 06:36:48 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:33898 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754232AbcBJLgq (ORCPT ); Wed, 10 Feb 2016 06:36:46 -0500 Received: by mail-wm0-f41.google.com with SMTP id 128so22841054wmz.1 for ; Wed, 10 Feb 2016 03:36:46 -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=rvaOMYi+zTZlK6qeUtW3fNl9KN4BGIeCKCSd7RQZTws=; b=MkfBLB0RYOdnYT3y7/oPgoPP/Hj/tZ8sMH1ullCjrnTebUJFangGGCn1OyRdqdBbFU iIocE3qZCnz/+C7TaBkXwaZ//t2hGUf3lxamHPtnbMHFeBl7ZQqt7zC01OJLs9/67Gwu cP5tPWmgBU/bTz+oEJlcgSXz0TABwP7L/ydhA= 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=rvaOMYi+zTZlK6qeUtW3fNl9KN4BGIeCKCSd7RQZTws=; b=NuyNzeujq1wFcG13r9eqWKerEJ5pQ3yFCtI6Ro0dd4qJ+6zjh4xnMR6kQg33iR+5Wx E4ODuzgTRPLq6H8lE0BNkvuJPPOKqDsHDawk8ntI+Sr1MkmlwlpVURXQRsuZs50TVWbL M+CTnrEeF7/qgap4uAV4TtemDypgRvPblsEvAsOZPoVAe/p6QiuJgLT656eOjc99bLWI AwYA50n+pFzlHLBbNirxdLd9qyuE+4GM/GjmNHuuBJ3r/fsrdPAss7hFQtEfxUj08vtz 3+MKWPGXFShsXRBOJPVBFIo1vMA3yG/QtVGGt+BgDANlnNxN/CBC74rh6G84Wibuclf2 Dhog== X-Gm-Message-State: AG10YOQ5iD3s29HJcK6fPP3v2nJ2uEGhVaW50cZkhU8YWZXGw6TSA3ijZtZkgGULxXwIRqFU X-Received: by 10.28.57.131 with SMTP id g125mr9993508wma.17.1455104205705; Wed, 10 Feb 2016 03:36:45 -0800 (PST) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id v22sm3014428wmv.12.2016.02.10.03.36.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Feb 2016 03:36:45 -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 v2 2/8] arm64: dts: qcom: apq8016-sbc: add usb support Date: Wed, 10 Feb 2016 11:36:42 +0000 Message-Id: <1455104202-10560-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455104164-29356-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1455104164-29356-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Bjorn Andersson 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..23ba95a 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"; + }; + + 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 { + interrupt-parent = <&msmgpio>; + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_id_default>; }; };