From patchwork Wed May 6 07:50:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1153 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 703E13F1D2 for ; Wed, 6 May 2020 09:51:07 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id a7sf1141768pll.23 for ; Wed, 06 May 2020 00:51:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588751466; cv=pass; d=google.com; s=arc-20160816; b=htPwIW0L5Bks/goDRGn0UUPQ6U3V52/XzP9yQTc0SXXg1htRHHe5AW39KYGcf9zzIW weWYnCiw844v3UnT69uJxSJchHnwlgEL9DIL+NAAG2eiKUD/D5uRwH1UvSZ1OMabyTLo 5C03EYSuGXdaTiggJonXp0yFWKCgm2+fmUmrIRVnvnsFX5tS8Gh84gZgAyGT1SOgQe/R GBN/Ft/E+mtHw4VFxroBAdAMOmsZ6Sm6CRSZnlFxsfk4GPqoxmOPk+zBtQrJOThnzBAm APsWN5zqE7OIUsW5hnSKYSsknWb4cdJHi6KcL7fVvglvi/9J7uI99vc18Ai3WCubWr33 UB5A== 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:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=c6pbqTNB1F4Mp6V3MneFg8ubXlObBWtqZEnorysM3ZA=; b=bUi626v1IdM5FIOAbjD/SMQgu2tTqCntdQ6avqY6qrPUHsKiZAVWV5rYI3b/mIbWjB K3XnPiMx5RK4Tc4SPyi6d2ajDheQqcKztK/WTqNfeJfdPq7v9i+Cz+5BJfwjhA6JDUwe k0d/a4RAauXIMBqr+SCkWsATahZ3wxvAoNA7Ou5AC1RyAces9o4WCXEnMOVetkrUPBaB fnzghR87lmOImn/11WFKBjLV046RkvcCvY7pS83Dgcx3SzY8MoPVMPeF2vZlzivoC/vg QaGxEpPxyBXkq1log9IwLZYZ9JTadXRErxg3lVqwzYXWxxc539WeQBF9Yq2TF6T4jf2h t+CQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VhKBHW7D; 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=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=c6pbqTNB1F4Mp6V3MneFg8ubXlObBWtqZEnorysM3ZA=; b=fQmej2uprL0uJ95McQgESizIvS5L+ovwuq1WrbXFHs90bIO1wecSl9Dtz/4uNnrdMu BtdKSVM3KtmJ3b2ZGebO36PEHhLdsk/fsiwEqo/WbnoVMr04LsLuidesBXvJcycYpTum +iXeCJBpbozlB4oaarMdgJn5lvbL4Q42EzbSg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references: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=c6pbqTNB1F4Mp6V3MneFg8ubXlObBWtqZEnorysM3ZA=; b=KHwgQDzkuoQ4GM+T8rLIVIJ/AiWd6LVt8Zg8rY54NrQ/wPRdGxWM0dfWnCrMEWUQeW K4PDNJJ72LNG5dnKjoep5TrSKAHRAiUC0e4ZMUSS0huoDpreKcw4wkGeXYm4IQYNcCZw 8xi9jWThqMvypxB5QmafJYROyh3fIx3DniTQBzTdmtZSoH4MZLE/+u/DBLn5ehnWx0x7 UkC7wUeOuV4ubJEp/Rf30NDbKmeexIqzXNkYUxK1AGKfUOOmwSpI9LtYyQWCpr+fQFkF orEGGS96N71Hc0p/9pLV4o9uxUrVZhhXbx8FA6VYukGYXq8QsFj2WFxYaZgGMuLWzw6E aysQ== X-Gm-Message-State: AGi0PuaWuWmMxvIPQdS3mryvGul5jFxRhKTiMX9/wBt7kzfFSNfr2Gh1 hdySAV0XEu/CwsXP/FDKjf57i8Z6 X-Google-Smtp-Source: APiQypLuwfIwyPVpkPjQ5XSxJAYsL3T1ZFET6tibsbJgmdDOraI7nsEWTQ9qBX7kWu5SiVljfTZguw== X-Received: by 2002:a17:90a:db46:: with SMTP id u6mr7794475pjx.15.1588751466246; Wed, 06 May 2020 00:51:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b702:: with SMTP id d2ls1988509pls.6.gmail; Wed, 06 May 2020 00:51:05 -0700 (PDT) X-Received: by 2002:a17:90a:db53:: with SMTP id u19mr7696746pjx.41.1588751465662; Wed, 06 May 2020 00:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588751465; cv=none; d=google.com; s=arc-20160816; b=jEurTLo+rfnRrXqwQUpZbUwfEUDOYDsrcDKmaPTpRHk4E9Tll5pYva4wRGRqNzGM8r i7pnGjN1Pp73VL5Rglc0fEwFkAmzjnSFH5Pe39v6eHlWmk9uTGJkz5urjkAHE5rawXzu VRSB8t31+ZGo4liKaM2oN4cSLTe216aB26VGmjiHccQg/tERFKbodUUeZz6JlVr8pW0h ZaouPUc1QZPTpcTNS25PL43Jav16jnrf9oR45d5QJCrfPd2k1T9Pg+mLEfw8TO+Ip+rL etm2QgGYvud7EQtOReeilXkCvNpM8Q97yvLvEEUTl/OmqmgNPpqIWG/+zDL7+NSEf9sh NaGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VPg039izGsBvlHYInKALMlOUd753kCr+XH9uCUo1MNQ=; b=X0fMSMeLLFHhTVpIq69C2KbqJjNOkwwzHpLrFOAU7eF2T88KVj59V/Kt1OB3Mr5zX4 D/zgc7LGQn+9QOEL4zl8i2jw4BJhyPFIaPQy03WWxlNQDvNsLsWWzaUKOLARoOHTuJrd 9j/YcjS+d97t6BH224eA9uCej9Gl1bnasXHG39I9rVARJhm1m6tmIqAw9snMzTAJG/hY zufu8BqEkm9invUMHkOkTRb6LD5lKcmnwf6A1m5DrRxQe/kcJF5z+mE8tsJgjot0XL56 /wXn6zGKhXwYTSBZqLXnRfVVilhXXqFwwK7sS1ChpueJUHtmnSSFUcUgX82uX7Hdel1j GH8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VhKBHW7D; 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 co21sor5777624pjb.31.2020.05.06.00.51.05 for (Google Transport Security); Wed, 06 May 2020 00:51:05 -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:90a:d808:: with SMTP id a8mr7677278pjv.6.1588751465387; Wed, 06 May 2020 00:51:05 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:c598:8eeb:af7:7f36]) by smtp.gmail.com with ESMTPSA id y186sm1011133pfy.66.2020.05.06.00.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 00:51:04 -0700 (PDT) From: Jagan Teki To: kever.yang@rock-chips.com, philipp.tomsich@theobroma-systems.com, Simon Glass , Frank Wang , wmc@rock-chips.com, chenjh@rock-chips.com, heiko@sntech.de Cc: u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, Belisko Marek , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 5/7] arm64: dts: rk3399: Move u2phy into root port Date: Wed, 6 May 2020 13:20:23 +0530 Message-Id: <20200506075025.1677-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200506075025.1677-1-jagan@amarulasolutions.com> References: <20200506075025.1677-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VhKBHW7D; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" 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 u2phy 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. This will be reverted once we support the PHY subsystem to get the PHY even though it is not part of the root node or any other relevant solution. Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/dts/rk3399.dtsi | 108 +++++++++++++++++++-------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/arch/arm/dts/rk3399.dtsi b/arch/arm/dts/rk3399.dtsi index 74f2c3d490..6c77f25f23 100644 --- a/arch/arm/dts/rk3399.dtsi +++ b/arch/arm/dts/rk3399.dtsi @@ -1387,60 +1387,6 @@ status = "disabled"; }; - u2phy0: usb2-phy@e450 { - compatible = "rockchip,rk3399-usb2phy"; - reg = <0xe450 0x10>; - clocks = <&cru SCLK_USB2PHY0_REF>; - clock-names = "phyclk"; - #clock-cells = <0>; - clock-output-names = "clk_usbphy0_480m"; - status = "disabled"; - - u2phy0_host: host-port { - #phy-cells = <0>; - interrupts = ; - interrupt-names = "linestate"; - status = "disabled"; - }; - - u2phy0_otg: otg-port { - #phy-cells = <0>; - interrupts = , - , - ; - interrupt-names = "otg-bvalid", "otg-id", - "linestate"; - status = "disabled"; - }; - }; - - u2phy1: usb2-phy@e460 { - compatible = "rockchip,rk3399-usb2phy"; - reg = <0xe460 0x10>; - clocks = <&cru SCLK_USB2PHY1_REF>; - clock-names = "phyclk"; - #clock-cells = <0>; - clock-output-names = "clk_usbphy1_480m"; - status = "disabled"; - - u2phy1_host: host-port { - #phy-cells = <0>; - interrupts = ; - interrupt-names = "linestate"; - status = "disabled"; - }; - - u2phy1_otg: otg-port { - #phy-cells = <0>; - interrupts = , - , - ; - interrupt-names = "otg-bvalid", "otg-id", - "linestate"; - status = "disabled"; - }; - }; - emmc_phy: phy@f780 { compatible = "rockchip,rk3399-emmc-phy"; reg = <0xf780 0x24>; @@ -1462,6 +1408,60 @@ }; }; + u2phy0: usb2-phy@e450 { + compatible = "rockchip,rk3399-usb2phy"; + reg = <0x0 0xe450 0x0 0x10>; + clocks = <&cru SCLK_USB2PHY0_REF>; + clock-names = "phyclk"; + #clock-cells = <0>; + clock-output-names = "clk_usbphy0_480m"; + status = "disabled"; + + u2phy0_host: host-port { + #phy-cells = <0>; + interrupts = ; + interrupt-names = "linestate"; + status = "disabled"; + }; + + u2phy0_otg: otg-port { + #phy-cells = <0>; + interrupts = , + , + ; + interrupt-names = "otg-bvalid", "otg-id", + "linestate"; + status = "disabled"; + }; + }; + + u2phy1: usb2-phy@e460 { + compatible = "rockchip,rk3399-usb2phy"; + reg = <0x0 0xe460 0x0 0x10>; + clocks = <&cru SCLK_USB2PHY1_REF>; + clock-names = "phyclk"; + #clock-cells = <0>; + clock-output-names = "clk_usbphy1_480m"; + status = "disabled"; + + u2phy1_host: host-port { + #phy-cells = <0>; + interrupts = ; + interrupt-names = "linestate"; + status = "disabled"; + }; + + u2phy1_otg: otg-port { + #phy-cells = <0>; + interrupts = , + , + ; + interrupt-names = "otg-bvalid", "otg-id", + "linestate"; + status = "disabled"; + }; + }; + tcphy0: phy@ff7c0000 { compatible = "rockchip,rk3399-typec-phy"; reg = <0x0 0xff7c0000 0x0 0x40000>;