Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1447503

Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for rk3399

From Heiko Stübner <heiko@sntech.de>
Newsgroups linux.kernel
Subject Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for rk3399
Date 2016-07-21 00:10 +0200
Message-ID <rX7QK-7ew-5@gated-at.bofh.it> (permalink)
References <rWxDA-15B-39@gated-at.bofh.it> <rX7nH-6Oz-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 = <GIC_SPI 27
> > 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 = <GIC_SPI 31
> > 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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for rk3399 Frank Wang <frank.wang@rock-chips.com> - 2016-07-19 09:30 +0200
  Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for rk3399 Doug Anderson <dianders@chromium.org> - 2016-07-20 23:40 +0200
    Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for rk3399 Heiko Stübner <heiko@sntech.de> - 2016-07-21 00:10 +0200
    Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for  rk3399 Frank Wang <frank.wang@rock-chips.com> - 2016-07-21 05:00 +0200
      Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for rk3399 Heiko Stübner <heiko@sntech.de> - 2016-07-21 11:30 +0200
        Re: [PATCH v8 3/3] arm64: dts: rockchip: add usb2-phy support for  rk3399 Frank Wang <frank.wang@rock-chips.com> - 2016-07-21 12:20 +0200

csiph-web