From patchwork Mon May 11 07:55:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wang X-Patchwork-Id: 1170 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C27443F08B for ; Mon, 11 May 2020 09:55:27 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id u7sf7142899pga.8 for ; Mon, 11 May 2020 00:55:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1589183726; cv=pass; d=google.com; s=arc-20160816; b=rnb3N0k0bAfzx3GA1XzWmrTudvkqY+uqdLPOAEV60c4TOg1sn2CsTOCDfSAVAThBev UTRbnvHfLE5onE9dvaPvWMyRH/hsPsz29vVaLE9dTSMmPNuByTxGKGygDHy/1n/E8dgO wfb5E67r4f4Z8DZ5X6Ij+VVZBkjSnRUTq+lP4gvJTW91awOSPq15V3kvDFrJrlrhgtOT SuWsbW4teFuPQVvTvsrEFAzYQdXkbT30xu2L/vosAvACVCEmf1d+V+CRt7zX6BsCgRPr lei2wztRHQuRZ3CidfnH38nO2hC/Za7y1FRr3UU2ZaKqRBuaDUU7MH3bY9hCpHASrClF hISQ== 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=VvslAMgQMpMZ91KQlQQgwBRp4kflmqMWogpSr9OKgouegi4Z9aZuDs2TZgROsvJhl9 onP5QflO2j8hGhiidM+VUc2OE7XkuyWxuN6GaEsh76so2elqCPwiIZSuDgYG3PYeIOL/ IMD1VEPZ7vGnqdwOww9AEwD7cs576vPK6gHeEd+126W24422T6ajVaQqhErlUwHvNhlG hPyjmSWLG8GBfd+8Oqjvk77PUsla966jxkQmVys22uUybVtKb1aRQOlsIMgrC3UZo4ya ZeHvZB1m4btHlYr4GymViRdWSSx7RpdH1SXEkhH/Z++u/Uk67/o1qUqCgD01VPUr+pLj 83uw== ARC-Authentication-Results: i=2; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.134 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=asFpGXOk/8kd6hKt6RlIb7lxZcwfuSf0Z9oXiWXV8bhU57PmCxoHIu+YPA3sHJQh4J cndCgEh90sNIs1b/CAqv4fZhjAMqPPwO42L1ODOTAi4q0XoaHNsZ1W/M9lajxWHIOoDr YXCfzVhIFXGTcqGY6L0ltYborltDwExJ3wdh0= 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=eA58bgKQMHo4uX1FO8rHKwyjhzF0/OJ792YZJckOCs69o3reVZ2txsigTDbnfP0rcJ wfxMuSJAYwKFeQWnP3ZkNFm7SCpJAzNUS5F/3qUdb19DKGPBd1JGS7LrZz7kV0IUaJRf j8rWDY907rbqa8Z1PnTTFGqTZIcqE1fuom+6uZsSz609sKhv1QZ1xxJnzJu2SUlvrEd8 xWmuQmse1dd3OzprlTwYzsL1PcPN2nv7d3FdrwyaQHfDab0TfOsYlR0awSzapnNzn34m Ccfjf+71UuOXDChDMBhpwwzf842UZz5DFDQKyqoi3xl5lc5Kq94XHqo04Y1+fvvF/+GC x1Tg== Sender: linux-amarula@amarulasolutions.com X-Gm-Message-State: AGi0PuaIIrnHTgBzpmp/Q35t+I522fAkTdFzEq7xiB+l1ZVFNv6c0/kX BELYcHxvhDgNrEAkbXUTrJPGIHKJ X-Google-Smtp-Source: APiQypLfEEwqMOEYfZnYwwCfmJmSQkrVITXKZ7JYPrMzsSY2K19uCgQzZYnSE2Puj9P0qWm8eVZ7ww== X-Received: by 2002:a17:90a:498a:: with SMTP id d10mr21952559pjh.194.1589183726409; Mon, 11 May 2020 00:55:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:8f0a:: with SMTP id n10ls4395172pfd.3.gmail; Mon, 11 May 2020 00:55:25 -0700 (PDT) X-Received: by 2002:a63:1a01:: with SMTP id a1mr12648957pga.87.1589183725622; Mon, 11 May 2020 00:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589183725; cv=none; d=google.com; s=arc-20160816; b=QIiDw5RJc8lsxsTBHRy89E4YS6zn/Gp9jHqcYtcuIz6aFyR4IFLHXDy2/ZyUEOECRQ y03tqD0QkMDXtFW3nLoCJJZoSvd7SsvmsiWxmWjrlupX1UmKCsvsqLgeI1OnALaKGzBr 0H9yL3jLQG1IiAHg35wLBbOPEfBe+Uxla5ExRB5XRB//wZjdXi/2Ta1XunwdEMeAZv8i vHZBGygLwdiQ4g70CUYhDk+JgVZaGcFrOHBfNnBD8VWV+y7IrvQtJuFO0q7/ZhU9Hhf9 k8NiwdTcV9sl0FN7W06UwyT8uxw4kdD62G3MMWoakGDBP4tescx9j5fGrRtSa6A4RlFP UDrA== 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=gXNA0e09Jw+eFUlAoRIsfjMfvz477LedP6eDjwnuXhPff+xQiPFsZ6dN8Z5YRpoyBA MMEESktdgXkfZqGKcxnHzML2qXzzwWlLrOZZ26m62oY9B1eI+sModbRFSU5hvoWA7IQF O+0mmnJLHNFZmgHQ2Mi14oBBh9saAZIpS5IHCDjOPEsSeQhNubDg2wP5Cnl1qrWJBr+2 rwI/PyXzIVcDab88x787Os3VGI32x8pkSxM61ZQSVHJK4B9oz+ZPVuQCjkvYLrXurEfc cFHyqQoX/T/+M/BqsMjo2bqKvdsuT2u5noqCUpku//DxbwSueaUFN9W4KCO2xWpEKVul uAWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.134 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com Received: from lucky1.263xmail.com (lucky1.263xmail.com. [211.157.147.134]) by mx.google.com with ESMTPS id m2si6769399pgq.478.2020.05.11.00.55.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2020 00:55:25 -0700 (PDT) Received-SPF: pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.134 as permitted sender) client-ip=211.157.147.134; Received: from localhost (unknown [192.168.167.8]) by lucky1.263xmail.com (Postfix) with ESMTP id 83584A4D90; Mon, 11 May 2020 15:55:23 +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 P2949T140479804974848S1589183722650576_; Mon, 11 May 2020 15:55:24 +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 v4 05/16] arm64: dts: rk3399: Move u2phy into root port Date: Mon, 11 May 2020 15:55:09 +0800 Message-Id: <20200511075520.26557-1-frank.wang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200511075330.26462-1-frank.wang@rock-chips.com> References: <20200511075330.26462-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.134 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>;