From patchwork Thu Mar 18 19:59:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 404058 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp772223jai; Thu, 18 Mar 2021 13:00:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfXS7JQr1gO3z5Ff2JVGtJwWPjcstBXP/lDfS+R9czVuepLJ4xapmaPqRTAEnNJbVqWg+0 X-Received: by 2002:a17:907:2d24:: with SMTP id gs36mr300712ejc.344.1616097626067; Thu, 18 Mar 2021 13:00:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616097626; cv=none; d=google.com; s=arc-20160816; b=nSz38uFBlLn5KoSZmEd4ewj6gpYdJUvmp+p3vtHC6gyCU2zJupeffI42OWi2b+/mRL vD93lh7/g5Sy8yYjNPa/6mm22ZbFM/hBJNzg6WeQ5HXouaMK/xustgYcA3jnSsdJsFXa yTMXDXGq7JQOu3bF30gxH2+8oErqLoik6DvTFmMYJPudyliEfOXJ4bjNDk4ZKi/V1JWI LMpQoB3i3jRwhmMdeueoQ6XBWGW6b23TYX9SveucuBhDEpuT/GifJDvH68xfnPPBPTW8 N5J4uKwlFhP1oKWwOBQXrgLLihdKtXlmxHupGo26C8uXPwYEmK46tLy9wsJKdnnQG9bc IIEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HmV5IJWPHSxLmzC9gCnVq4UR+8W3WxG5ODhCcEewhgo=; b=vIwCj19b7K5M+2Az0HwCAu4hR3P0xx16vdQ/9qbrd+xu8uKpqDEApY899pwvRyXn4f 0GjFOdRxy+mL9Ihsqc73c38ZZGnWA9TLhqot5j6QEGbSa+FtQlm5jROCH2NlcN1B1tSf 2DEBSC7+IWHVbDTOaqXgCqzsVbbqEl/QIoqXN+g2PtOry5amcsi9NK0zM/jbMifspJXL kJfXMI67JM+1Jxvnil6KfNLltReVqxLmuLlNuzhKdUJnJbDf6kS2N5C/WeqCm/Wum6ls C5OKoRIzrwMQDJfJsegVkbFeMI+f/hIJCKbyRyW9K+oA1Y9pDst+gqqLV6+B/zCCeit+ MWug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QpjEn0TA; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kq25si2362132ejb.366.2021.03.18.13.00.25; Thu, 18 Mar 2021 13:00:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QpjEn0TA; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232981AbhCRT7x (ORCPT + 16 others); Thu, 18 Mar 2021 15:59:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232982AbhCRT7l (ORCPT ); Thu, 18 Mar 2021 15:59:41 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC24BC061763 for ; Thu, 18 Mar 2021 12:59:40 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 184so9049249ljf.9 for ; Thu, 18 Mar 2021 12:59:40 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=HmV5IJWPHSxLmzC9gCnVq4UR+8W3WxG5ODhCcEewhgo=; b=QpjEn0TA9chnbxxBaq+eDniLEsmDcAgkh4kqf5Bu68MlJDpI/aUwVmgV9WQkNDDO+Z RgDA5MbbVLcHc9WJ52IFB5ugbfPOE2sLkTdZvjRj4bLkFrOdCIE8mFQPV0sVjBp/yA4E PI9Krh8DOTbfiJToL9YTB/+4GghRqI+FLGPkqM6m2VWOpBeo/xDZQOD5cHbdbEjafBPk SamI+KgmlAtLWBWQM2rkQMm/22Zvqm1HJSkG0VSacD8trtVkj1uuqf/MXOSzwqMi5+Yx mMEyxvJix9c3MpckSdJh22pvtX/M7Kvs+IqVjt5c3VOWUmC0o61MbyHUur0pQ96LJD1X BLLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HmV5IJWPHSxLmzC9gCnVq4UR+8W3WxG5ODhCcEewhgo=; b=JyoXFcdvO8ffv9Lfkl4DgnmOJNI/3Z1llEenGVt97ZoEFkRHqDCbBGxB0bVIx1dgCJ IcsyZfVrpAx6yR0a+jDtJXuhbCmz76dnOGGZsRrWf7JgQlDCc53dhUfURPfQd6ZzCbQ+ +7bswggqTAlSkfGIUQiYwg8jWHOySYOuyfEEIa1az4QKnQRV3C8mait+azz63NGAuvX4 gTuW0cQgFRnkihIxJbfg6GUG/fLYdWRmfx+e8QlyRWYYjq5BWC6M144h+MyYT2+fnRZE YfaHerKpThN6eG5HRWujBlMVkx+rVYOGAVXRWaAfqXWe08VV0dfG6doPRSqn1mu7J0WJ NsGA== X-Gm-Message-State: AOAM530DmfRWSYXwkoPCS+lNUy6CCr6ceqt6Vi5prsKa53ZXUP45joW6 auIdsRc4mgBtkQDeykIPTDtl1Q== X-Received: by 2002:a2e:545e:: with SMTP id y30mr6340407ljd.46.1616097579226; Thu, 18 Mar 2021 12:59:39 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id g6sm344159lfh.232.2021.03.18.12.59.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 12:59:38 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Vinod Koul , Kishon Vijay Abraham I , Rob Herring Cc: Manu Gautam , Stephen Boyd , Jonathan Marek , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 5/6] arm64: dts: qcom: sm8250: switch usb1 qmp phy to USB3+DP mode Date: Thu, 18 Mar 2021 22:59:29 +0300 Message-Id: <20210318195930.2229546-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210318195930.2229546-1-dmitry.baryshkov@linaro.org> References: <20210318195930.2229546-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org USB1 QMP PHY is not just a USB3 PHY, but USB3+DP PHY. Change device tree nodes accordingly. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) -- 2.30.2 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 947e1accae3a..0f79e6885004 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2097,12 +2097,11 @@ usb_2_hsphy: phy@88e4000 { }; usb_1_qmpphy: phy@88e9000 { - compatible = "qcom,sm8250-qmp-usb3-phy"; + compatible = "qcom,sm8250-qmp-usb3-dp-phy"; reg = <0 0x088e9000 0 0x200>, - <0 0x088e8000 0 0x20>; - reg-names = "reg-base", "dp_com"; + <0 0x088e8000 0 0x40>, + <0 0x088ea000 0 0x200>; status = "disabled"; - #clock-cells = <1>; #address-cells = <2>; #size-cells = <2>; ranges; @@ -2116,7 +2115,7 @@ usb_1_qmpphy: phy@88e9000 { <&gcc GCC_USB3_PHY_PRIM_BCR>; reset-names = "phy", "common"; - usb_1_ssphy: lanes@88e9200 { + usb_1_ssphy: usb3-phy@88e9200 { reg = <0 0x088e9200 0 0x200>, <0 0x088e9400 0 0x200>, <0 0x088e9c00 0 0x400>, @@ -2128,6 +2127,20 @@ usb_1_ssphy: lanes@88e9200 { clock-names = "pipe0"; clock-output-names = "usb3_phy_pipe_clk_src"; }; + + dp_phy: dp-phy@88ea200 { + reg = <0 0x088ea200 0 0x200>, + <0 0x088ea400 0 0x200>, + <0 0x088eac00 0 0x400>, + <0 0x088ea600 0 0x200>, + <0 0x088ea800 0 0x200>, + <0 0x088eaa00 0 0x100>; + #phy-cells = <0>; + #clock-cells = <1>; + clocks = <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; + clock-names = "pipe0"; + clock-output-names = "usb3_phy_pipe_clk_src"; + }; }; usb_2_qmpphy: phy@88eb000 {