From patchwork Thu Apr 30 21:45:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1145 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 54F393F077 for ; Thu, 30 Apr 2020 23:46:15 +0200 (CEST) Received: by mail-io1-f69.google.com with SMTP id u10sf2762350iog.21 for ; Thu, 30 Apr 2020 14:46:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588283174; cv=pass; d=google.com; s=arc-20160816; b=OaDK9F2StHmqVJo4RpGsUZGUK58aO7st60Z/a/uk7duq8GeDi88zSFQNWmZg1U6Ihu EQRwtg2u3PEDPRH1sWXfwQaUYwWjBg24fXQ5a5+72yj+sLELHYBa20ps/CO/guhUhC+W fVdD8P4QWLNypc893a8ITIGyTGY053NMTvzmJsr/a7Q0vJ+5Fl0PTouBuiQBGF2uApT+ L+KQQFA7rlDB0tGaregEH7wGxSUAVxPHK8LnkVZ/adgwcCornohDLVBigxMA0hBHRgiM l7mKrOcSw42cCBnAgys4oC+Gw+wcgD+LbBhD2lPwcATTtB2Fc8daJBTQ6eWT8R+Ly8wM tFOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RUipvrIupjbJaejHzj7pAFnSE9A3n5Y575Yj6XiOvb0=; b=gN70gNI3jT/OOo/7Wzsa1ZieLw2TOh0jx5AU2xL9TgKASy00B/hOTOV17Z6DrNM90u kNtyabcW3Tlr2uWycN1UeXwQfiu4rp2dKka+zY0kiTq6iFAaAQaBLsdQXHn4YjTkGl9c 1MnqzLL0CELAXyi3trbavP+gJEoGMdsLqPBtQPfHuGrC6YYeAdBthx7qDqsrlKRKnDIC 8/xLhUfRBzodBt07XbuA1UGFql5E4cf43/uyykPcV1iRoKaLkX5xv1nh7QBi3LMA5cL/ in7gJggY60WrTiu73BzSKVUyJ5S2x35eD4EY4rLwqc0XVSAk8dj8IGI8vPwCu4/tk6AJ jw+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FjlRFlzN; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=RUipvrIupjbJaejHzj7pAFnSE9A3n5Y575Yj6XiOvb0=; b=bhWZX6Dlr3Mz+wVOmHrPh4JhLH9znxvgFcyoLcJ/zJ79GgWxiTZggon1lEhT0+BQxu 72JmgOPSYKOSlLYGGfBLRR2xj2l6h/9N81ATGZxkqlbR2KEX5I0YYNV4sVN/JHRySIH+ Rul/NU66oenUIfign9qNg5Sr80WW2u/xlnHq8= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=RUipvrIupjbJaejHzj7pAFnSE9A3n5Y575Yj6XiOvb0=; b=ulAPhiXDEYLvCgULczTKErYseiNWhockPrscbFfo1Ls/pfIQt8l7upTII6kB9h5rnN QFwrL0O+1gp7y0bJyx4GrFj/hW4/N/hrYzPzodMa3jSThZ0FdeQGpucp+9KNsU20FeYs meHEww8lmmllU90PLFTZ4RGVFMMgM1S7qzv6PTvSL25oGIqfilco/Mq4yLOMxmg/uJgr U47YTDZA8HesL+S4tKmZUA5pIZgvCxOs1pBogGJdNAUBp7XhuNezbtUAY+O82URNYtwx 6TJutUBhuuARG0pGcCt2Ng9J/LOmeO6GW7ibiQyuW8J6tQAE0u0+TBlVyzzdikIE3jGQ 6uVA== X-Gm-Message-State: AGi0PuYDKt/4UmVX9NPKCjE8lCdqeRJ780HXqpQFkduO8spj6LweYofZ 70tm9J0qPheNISRN/f6gb64YZ4+b X-Google-Smtp-Source: APiQypLvYBwqmSJoUsGGcsPeU1XhBBwevJaMywh42VgZQAgh386lHc7YM4cAIr/KAbLxwn4R4W7AEw== X-Received: by 2002:a92:5d0f:: with SMTP id r15mr466794ilb.251.1588283172712; Thu, 30 Apr 2020 14:46:12 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:8ac3:: with SMTP id e3ls1442279iot.10.gmail; Thu, 30 Apr 2020 14:46:12 -0700 (PDT) X-Received: by 2002:a6b:3112:: with SMTP id j18mr914725ioa.127.1588283172141; Thu, 30 Apr 2020 14:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588283172; cv=none; d=google.com; s=arc-20160816; b=JFeK62zInb/8vO9LdnHpGLhf0BoqGqNJaoovz5XcOBmx/7zcLJ6pCrrBvlUvd4E1LW P/Y+nezuvL1hxNXgBr2JKi7JS1uwHaVrsLiRAmiFf28ELUqxRSEZRm0ULl1WP2g9Ita5 J2pD0FH1yzZg0Wemp748vld0QfDjcJLef3IoTTOkadSPIOD4fDOLiSFPjs8VqN5C3CgM /aJCgb+P176OHuFCIpAI/TbBbDUGYPiY5eHhXzZbVPsndkwxuLOcb+syFaXuemjvFJHk brx8PEXNraL6GyHB/GmWhpUJUNhxmXqRkkGp3oKPAfw6FBuAwKGrWmE1UUr7mrMAyXHp pPxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=O57oZmFtIDGFaxieo8Ue9ldC2XvrWM9IRe2TgB3VW1I=; b=q5FWDAI0sHhauV/Qc4DSGS1R8APl+l84T4c+yZnikpfR0fmRLS0lAwkpDpEzm9/tF4 n4XSXOqlhK8gHkGe4HGC76idLS+CiEiBF0qk10dsc2p9wpx65G5B8tuSLg2UA8GFQqXE bpXsPIuZ3ihzWsBdmcqo/WInrhbNXQnd65Yo1WtqkT0U6pi+7pluMIjYsbY68oGXtXjb 1cs/RjV5dezrZ1RKi27mH65oCrPNSnxGIADZFQnmqF4KnjhPAM6NZz26cfbRNbRYv1kT Sv0MrxSUaZCX7cBhxaxn7+8aXX9WJHMkiBHRCqfaeG02fd0iPXDHPz1yWTfDdAlwCH6N Bi1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FjlRFlzN; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id x9sor1053939ila.97.2020.04.30.14.46.12 for (Google Transport Security); Thu, 30 Apr 2020 14:46:12 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:8202:: with SMTP id x2mr1084618pln.287.1588283171707; Thu, 30 Apr 2020 14:46:11 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:a9f2:11c6:8c6c:2861]) by smtp.gmail.com with ESMTPSA id p64sm615243pjp.7.2020.04.30.14.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 14:46:10 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , Tom Rini , Frank Wang , William Wu , Shawn Lin , Heiko Stuebner , Patrice Chotard Cc: u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [RFC 5/7] arm64: dts: rk3399: Move pcie_phy into root port Date: Fri, 1 May 2020 03:15:27 +0530 Message-Id: <20200430214529.18887-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200430214529.18887-1-jagan@amarulasolutions.com> References: <20200430214529.18887-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FjlRFlzN; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Yes, This is changing the actual device tree pcie_phy structure but the problem with the current Generic PHY subsystem is unable to find PHY if the PHY node is not part of the root structure and also PHY parent is non-PHY type. This will be reverted once we support the PHY subsystem to get the PHY whose parent has non-PHY type or any other relevant solution.    Signed-off-by: Jagan Teki --- arch/arm/dts/rk3399.dtsi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm/dts/rk3399.dtsi b/arch/arm/dts/rk3399.dtsi index 6c77f25f23..dea76032bf 100644 --- a/arch/arm/dts/rk3399.dtsi +++ b/arch/arm/dts/rk3399.dtsi @@ -1395,17 +1395,17 @@ #phy-cells = <0>; status = "disabled"; }; + }; - pcie_phy: pcie-phy { - compatible = "rockchip,rk3399-pcie-phy"; - clocks = <&cru SCLK_PCIEPHY_REF>; - clock-names = "refclk"; - #phy-cells = <1>; - resets = <&cru SRST_PCIEPHY>; - drive-impedance-ohm = <50>; - reset-names = "phy"; - status = "disabled"; - }; + pcie_phy: pcie-phy { + compatible = "rockchip,rk3399-pcie-phy"; + clocks = <&cru SCLK_PCIEPHY_REF>; + clock-names = "refclk"; + #phy-cells = <1>; + resets = <&cru SRST_PCIEPHY>; + drive-impedance-ohm = <50>; + reset-names = "phy"; + status = "disabled"; }; u2phy0: usb2-phy@e450 {