From patchwork Wed May 13 07:15:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wang X-Patchwork-Id: 1187 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 AB9F63F066 for ; Wed, 13 May 2020 09:15:53 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id c3sf12082026plz.13 for ; Wed, 13 May 2020 00:15:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1589354152; cv=pass; d=google.com; s=arc-20160816; b=bpMx3Yx1LrwT+d+IJbsywOzPikk+b9YaeDI5daQ1R+lihVyoqi1SZkntrjNipuCHz3 SvB3lqJ4VQGQfOwd5Z5wMCtM53nCUd8C6nI4JNd+VB7ksMFCIBgqge90Q9nXiPsvNbzQ y6sMv50aogsKX6zpTsnvv8ne93sjbfSpt8C5SDM8RGFllv5ZS3chMa7nb1jSHLfW5L7o BCLXq5makpPDaJiVau3adTIMu3rKrVvaexsGPgh8PGAWRBKV5tT/lJMRfEEbbh321oWu eRTYc3+g94dPiVzKkoCZ6oF3piftR2FwJrudyGv8Rl5vofRkOxjKRYg4vqsqaIBpdw2R uUFw== 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:sender:dkim-signature; bh=1Sf+0V4O4MWtPsZxr+dUo/vsjQJ+k3pRyNNpFXj2ie0=; b=t72Qlp/2BJce7V4foV5YgaSE5Qf+gL24xvZXQ0wRHZuL7JgdEuuc2omrXkrqxcjRMU neR5s7Ltds3/vYH9pEkqVNLjh6jCq7iqYhvta6KOlXDhJAnwIitePjo8w5YcBdpB0xgZ RsJd1XUNGAPw+XERDDs+tc2O44W1dZTSL+TlsDIAEiRCcTul2tUZjsND0z/SiMhTIFru j6BNwPfCST8XweVvuBqPbnUYdYl47jTwd9EvM4uUaN/LrofciWfrQ8PSXakX8eceXLfR T3SSYOuehWkBdVNRxF5bxskMbNcfDrtAcl/fFyZsvHDZFS2f4ejkTXw5fBY0qokBUUH3 jCxQ== ARC-Authentication-Results: i=2; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.132 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=sender: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=1Sf+0V4O4MWtPsZxr+dUo/vsjQJ+k3pRyNNpFXj2ie0=; b=T8Qe3rR6YQh9PSpQj+yRvLEJvZoE642X/w1L/FAi+U0w9IG82TGmVqf8UjTr1pcQyz MBL7d70OwiMYW1EPmRoAp6IV30YmzIWe1B0LQ/s1g6F0Z6zlCq/HSIplf1Ijejz1ngbo MJ263Kg+fpIABNigbf458bgbHoOa681fhB+Mw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender: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=1Sf+0V4O4MWtPsZxr+dUo/vsjQJ+k3pRyNNpFXj2ie0=; b=IFWXDuKPGzMYjznRfbvChsaLnvSey6I7TzEa2VVXlTKdL7U1dt0Mpg0EbGE2UPI0RI i50UWRjS6P1ZMyrO2YPrgrqXhUxLNfNMahAPOgFXquh7hULlo3IbtKvVkO7obW7KKnt5 tZchYW9u4sDLKgpMHBAWNG69+nDOgjJ5U57oWhE3Q25R23wpxZ+8x5HG0CQtEfruAMjC aKISqFWRDHn7UYB2/tKtZ9SNcypZ+il9KNH/Vq1KfxMQRgLb88c7OaPJ4HEmUbjJwJLV dhfwXJVsVTGf1nM4u3LokqE472blDx9Yhp4GAPHhjhr4xpq7YUc46I0prYvs0ULhZcgt PxoQ== Sender: linux-amarula@amarulasolutions.com X-Gm-Message-State: AGi0PubsdRBhlNlJv6VwXzyA5bByXyIW3j1O7ShTL0ZtygKFuRQU0n+w KPob+fcR92M2C29x7k0+YTwUsJpx X-Google-Smtp-Source: APiQypInRLAXjcXIaYS0jW/1hRfdpHW5NkIsbRET+Au/EfZ9OXgCgSyYVGmVnnNhRm8IuU/LF5QbzA== X-Received: by 2002:a17:902:7609:: with SMTP id k9mr24399376pll.56.1589354152475; Wed, 13 May 2020 00:15:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:4b5c:: with SMTP id k28ls393085pgl.0.gmail; Wed, 13 May 2020 00:15:52 -0700 (PDT) X-Received: by 2002:aa7:8e86:: with SMTP id a6mr7320134pfr.149.1589354151937; Wed, 13 May 2020 00:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589354151; cv=none; d=google.com; s=arc-20160816; b=uBSCSw6qMmOkRP78nuazv4hz8OHSVLHJnDs0/2a0kqOA0UUem+Hy3stZbebtxDnhWS KBoFQFWL3c3Jt/OgidcagWu7Pk3niXRC2+n36DuB4b75qTacxFngpmzdyG06cX9tOhG+ 8KK7qPOn8BV1telmySRi3EDvdg1oVSJxziP4tW+nz3/8nAh+bOn4tNb4nTnhQG59xvBU Br+A752+EqlBFRFzeg09MQlBYaJHXcaqH7aiU44oAEdWeIBkid5hM68wGwvvTGHTek9/ NFlu1kLXdFmNV6OsB83+5CSlcz2quwiQxmAoV2D0IbpYjTw6G3Ko+O4gZ0DDTuSUqm7H NfwQ== 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; bh=tjK0StnLtK2TeBCvS4Tad3vTTTqcjYgSdpe4Rr6ECDE=; b=PUzbRIZ2PSkjMqWozHthAE6s7Vd3ZFhHARLCfNzVpjPAoExNejNaH+w1JJBO6OLgVt E+ZtoS4Ls2MzfQjoVn93dUouUBdP+IkBhJjfqW1jwtdER40+4nmjLR5uqow+E2A0KepT HeKpuUwUejhsk+yZtmEeQIAZ8uzojT4e2wKXXcayu+6uvTTdZoGcQnpKQRp502ZI2tkB qk4mlWonn25tvTn+F5ewB/py//CpoNoLyzqq4VOALRfCLLDfrG8FxQbJn+qbsvZDChR+ S2gdIXomSiBvspjpydkguW3JJpdfb4M4Pugh+owtK+bYABrFCqC6zw4GT1nN6LViAonk obaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.132 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com Received: from lucky1.263xmail.com (lucky1.263xmail.com. [211.157.147.132]) by mx.google.com with ESMTPS id d9si12267400plr.10.2020.05.13.00.15.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2020 00:15:51 -0700 (PDT) Received-SPF: pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.132 as permitted sender) client-ip=211.157.147.132; Received: from localhost (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id 75A9BCDD2D; Wed, 13 May 2020 15:15:50 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P15407T140446440306432S1589354149129638_; Wed, 13 May 2020 15:15:50 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: frank.wang@rock-chips.com X-SENDER: wmc@rock-chips.com X-LOGIN-NAME: frank.wang@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: Frank Wang To: heiko@sntech.de, marex@denx.de, bmeng.cn@gmail.com, philipp.tomsich@theobroma-systems.com, klaus.goger@theobroma-systems.com, jagan@amarulasolutions.com, sjg@chromium.org, kever.yang@rock-chips.com Cc: u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, marek.belisko@gmail.com, william.wu@rock-chips.com, jianing.ren@rock-chips.com, chenjh@rock-chips.com, wmc@rock-chips.com Subject: [PATCH v5 05/16] arm64: dts: rk3399: Move u2phy into root port Date: Wed, 13 May 2020 15:15:35 +0800 Message-Id: <20200513071546.5560-1-frank.wang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200513071344.5430-1-frank.wang@rock-chips.com> References: <20200513071344.5430-1-frank.wang@rock-chips.com> X-Original-Sender: frank.wang@rock-chips.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.132 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.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: , From: Jagan Teki 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 that get the phy directly without traversing all nodes. Signed-off-by: Jagan Teki --- 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>;