From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755496AbcGTWHA (ORCPT ); Wed, 20 Jul 2016 18:07:00 -0400 Received: from gloria.sntech.de ([95.129.55.99]:43760 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754665AbcGTWG4 (ORCPT ); Wed, 20 Jul 2016 18:06:56 -0400 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Doug Anderson Cc: Frank Wang , Guenter Roeck , Guenter Roeck , Julius Werner , Kishon Vijay Abraham I , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-usb@vger.kernel.org" , "open list:ARM/Rockchip SoC..." , Ziyuan Xu , Kever Yang , Tao Huang , =?utf-8?B?5ZC06Imv5bOw?= , daniel.meng@rock-chips.com Subject: Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for rk3399 Date: Thu, 21 Jul 2016 00:06:36 +0200 Message-ID: <19337009.ZCcJ3zVfzs@diego> User-Agent: KMail/4.14.10 (Linux/4.5.0-2-amd64; KDE/4.14.14; x86_64; ; ) In-Reply-To: References: <1468913311-23977-1-git-send-email-frank.wang@rock-chips.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 20. Juli 2016, 14:33:25 schrieb Doug Anderson: > > + #address-cells = <1>; > > + #size-cells = <1>; > > + > > + 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"; > > Any reason why there isn't a 'status = "disabled";' here? my guess would be, because we might need the provided clock anyway, even in the case where the actual phy is not used. But that is better decided by the board/board-dts designer if the clock is really needed, so add the disabled here and enable in the board, as Doug suggested. > > + u2phy0_host: host-port { > > + #phy-cells = <0>; > > + interrupts = > IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = > > "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"; > > + > > + u2phy1_host: host-port { > > + #phy-cells = <0>; > > + interrupts = > IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = > > "linestate"; > > + status = "disabled"; > > + }; > > + }; > > > > }; > > > > watchdog@ff840000 { > > > > @@ -1009,5 +1047,12 @@ > > > > <1 14 RK_FUNC_1 &pcfg_pull_none>; > > > > }; > > > > }; > > > > + > > + usb2 { > > + host_vbus_drv: host-vbus-drv { > > + rockchip,pins = > > + <4 25 RK_FUNC_GPIO > > &pcfg_pull_none>; + }; > > + }; > > Are you certain this belongs in rk3399.dtsi? It seems like it should > be in the EVB file. yep, while most boards follow a reference design, this is still highly board- specific.