From patchwork Wed May 30 11:04:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manu Gautam X-Patchwork-Id: 10438429 X-Patchwork-Delegate: agross@codeaurora.org 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 E98FF601E9 for ; Wed, 30 May 2018 11:04:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D33D228939 for ; Wed, 30 May 2018 11:04:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C736128952; Wed, 30 May 2018 11:04:33 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham 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 8511328939 for ; Wed, 30 May 2018 11:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750770AbeE3LEb (ORCPT ); Wed, 30 May 2018 07:04:31 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45182 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750708AbeE3LEa (ORCPT ); Wed, 30 May 2018 07:04:30 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7ABB560646; Wed, 30 May 2018 11:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527678269; bh=faBsQhiCGv9S453/ffBER0egFIy6whbdzml5DyJdGcc=; h=From:To:Cc:Subject:Date:From; b=LlogI8r0GahYsPTFqb6ztJR0j00gEXkTa3Qu8OtIxBs8bO1ySzWpJVbWWrQUBPRgb fO6ams9K0BiV8egY4RvzweD3ry84xXP9scUMvhMRuqvzFrxgkK7WCGUjOgpneexJXf 2qRYZS2szz2QVxRMHH1DX2synBbnZLu2JPS3NNuM= Received: from mgautam-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0E9F16038E; Wed, 30 May 2018 11:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527678269; bh=faBsQhiCGv9S453/ffBER0egFIy6whbdzml5DyJdGcc=; h=From:To:Cc:Subject:Date:From; b=LlogI8r0GahYsPTFqb6ztJR0j00gEXkTa3Qu8OtIxBs8bO1ySzWpJVbWWrQUBPRgb fO6ams9K0BiV8egY4RvzweD3ry84xXP9scUMvhMRuqvzFrxgkK7WCGUjOgpneexJXf 2qRYZS2szz2QVxRMHH1DX2synBbnZLu2JPS3NNuM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0E9F16038E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mgautam@codeaurora.org From: Manu Gautam To: andy.gross@linaro.org Cc: vivek.gautam@codeaurora.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Manu Gautam Subject: [PATCH] arm64: dts: msm8996: Use dwc3-qcom glue driver for USB Date: Wed, 30 May 2018 16:34:00 +0530 Message-Id: <20180530110400.30710-1-mgautam@codeaurora.org> X-Mailer: git-send-email 2.17.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Move from dwc3-of-simple to dwc3-qcom glue driver to support peripheral mode which requires qscratch wrapper programming on VBUS event. Signed-off-by: Manu Gautam --- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 2 ++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index f45a0ab30d30..83bc1b9ff6ef 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -108,6 +108,7 @@ usb@6a00000 { status = "okay"; + extcon = <&usb3_id>; dwc3@6a00000 { extcon = <&usb3_id>; @@ -124,6 +125,7 @@ usb@7600000 { status = "okay"; + extcon = <&usb2_id>; dwc3@7600000 { extcon = <&usb2_id>; diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 26292027ba9b..d30516c0db87 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -777,7 +777,8 @@ }; usb2: usb@7600000 { - compatible = "qcom,dwc3"; + compatible = "qcom,msm8996-dwc3", "qcom,dwc3"; + reg = <0x76f8800 0x400>; #address-cells = <1>; #size-cells = <1>; ranges; @@ -805,7 +806,8 @@ }; usb3: usb@6a00000 { - compatible = "qcom,dwc3"; + compatible = "qcom,msm8996-dwc3", "qcom,dwc3"; + reg = <0x6af8800 0x400>; #address-cells = <1>; #size-cells = <1>; ranges;