From: heiko@sntech.de (Heiko Stübner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM64: dts: rockchip: add core dtsi file for RK3399 SoCs
Date: Fri, 22 Apr 2016 00:49:12 +0200 [thread overview]
Message-ID: <12509353.XToGr791I0@diego> (raw)
In-Reply-To: <CAD=FV=X9S4z2WLEJ-KaaCZxfkdO4+-i2hUd3dsYJi5qXEvpVBQ@mail.gmail.com>
Am Donnerstag, 21. April 2016, 15:38:22 schrieb Doug Anderson:
> Hi,
>
> I didn't look as deeply as Heiko, but a few comments...
>
> On Thu, Apr 21, 2016 at 3:02 PM, Heiko St?bner <heiko@sntech.de> wrote:
> > Hi Jay,
> >
> > Am Donnerstag, 21. April 2016, 11:58:12 schrieb Jianqun Xu:
> >> This patch adds rk3399.dtsi for rk3399 found on Rockchip
> >> RK3399 SoCs, also add rk3399-evb.dts for Rockchip RK3399
> >> Evaluation Board.
> >>
> >> Patch is tested on RK3399 evb.
> >>
> >> Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
> >
> > please split this into
> > - patch adding the dtsi
> > - patch adding the evb dts
> > - patch adding the new board to bindings/arm/rockchip.txt
> >
> > more inline below
>
> Also don't forget to remove the controversial pmu bits for now (as
> discussed earlier) so this can land while all those kinks are being
> worked out.
>
> >> + sdhci: sdhci at fe330000 {
> >> + compatible = "arasan,sdhci-5.1";
> >
> > not 100% sure, but we might want a
> >
> > compatible = "rockchip,rk3399-sdhci-5.1",
> > "arasan,sdhci-5.1";
> >
> > allowing us to get more specific, if implementation oddities surface
> > later.
>
> I agree with Heiko. This sounds very sane to me, too, and matches
> previous discussions.
>
> >> + reg = <0x0 0xfe330000 0x0 0x10000>;
> >> + interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
> >> + clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
> >> + clock-names = "clk_xin", "clk_ahb";
> >> + phys = <&emmc_phy>;
> >> + phy-names = "phy_arasan";
> >> + status = "disabled";
> >> + };
> >> +
> >> + usb2phy: usb2phy {
> >> + compatible = "rockchip,rk3399-usb-phy";
> >
> > this doesn't look like it got submitted yet.
> >
> > Also, the newer socs (rk3399. rk3036, rk3228) seem to use a different
> > usbphy block than rk3288 and before (with a big bunch of new phy-related
> > register blocks I haven't looked at yet) - so this should probably get a
> > new driver as well and not be crammed into the current phy driver, which
> > is for the older picophy (or what it was called).
> >
> >> + rockchip,grf = <&grf>;
> >> + #address-cells = <1>;
> >> + #size-cells = <0>;
> >> +
> >> + usb2phy0: usb2-phy0 {
> >> + #phy-cells = <0>;
> >> + #clock-cells = <0>;
> >> + reg = <0xe458>;
> >> + };
> >
> > When we're doing a new driver, could we please get rid of these subnodes
> > and instead access phys via something like
> >
> > phys = <&usb2phy 0>;
>
> From what I recall during the submission of the previous PHY Kishon
> preferred the subnodes. I think I made a fool of myself in the last
> discussion about this because I reported bugs in my downstream kernel
> that didn't exist upstream, but if you want to read it you can see
> here:
>
> https://patchwork.kernel.org/patch/5474871/
>
> I believe patch v6 used IDs like Heiko is suggesting and it turned to
> subnodes in v7 based on Kishon's request. Since PHY code and bindings
> are Kishon's call, I have a feeling his opinion will trump here.
After Doug pointed me to that old discussion, I tend to agree - aka use sub-
nodes.
> >> +
> >> + usb2phy1: usb2-phy1 {
> >> + #phy-cells = <0>;
> >> + #clock-cells = <0>;
> >> + reg = <0xe468>;
> >> + };
> >> + };
> >> +
> >> + usb_host0_echi: usb at fe380000 {
> >
> > not "echi" please :-)
>
> Just because it took me an extra reading to understand, he means turn
> "echi" to "ehci".
>
> >> + compatible = "generic-ehci";
> >> + reg = <0x0 0xfe380000 0x0 0x20000>;
> >> + interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
> >> + clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>;
> >> + clock-names = "hclk_host0", "hclk_host0_arb";
> >> + phys = <&usb2phy0>;
> >> + phy-names = "usb2_phy0";
> >> + status = "disabled";
> >> + };
> >
> > [...]
> >
> >> + usbdrd3_0: usb at fe800000 {
> >> + compatible = "rockchip,dwc3";
> >
> > is this in some tree already?
>
> I'm really surprised that there's not some generic fallback for
> "dwc3-of-simple.c". I would have expected:
> "rockchip,rk3399-dwc3", "synopsis,dwc3";
>
> ...but that doesn't appear to be in the bindings. Weird.
>
> >> + i2c1: i2c at ff110000 {
> >> + compatible = "rockchip,rk3399-i2c";
> >
> > David respun the rk3399 i2c-support on tuesday, so this and the others
> > below are waiting on Wolfram to take a look.
>
> I think it can work with the rk3288-i2c as a fallback, at least for
> low speed stuff, right? Should this be:
>
> compatible = "rockchip,rk3399-i2c", "rockchip,rk3288-i2c"
>
> Looks like that was done for rk3368.
The rk3368 has virtually the same ip blocks as the rk3288, so the i2c
controllers actually are the same. Not sure how true this is for the rk3399
though.
next prev parent reply other threads:[~2016-04-21 22:49 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-20 3:15 [PATCH] ARM64: dts: rockchip: add core dtsi file for rk3399 SoCs Jianqun Xu
2016-04-21 3:58 ` [PATCH] ARM64: dts: rockchip: add core dtsi file for RK3399 SoCs Jianqun Xu
2016-04-21 10:19 ` Mark Rutland
2016-04-21 10:47 ` Huang, Tao
2016-04-21 11:30 ` Marc Zyngier
2016-04-21 20:24 ` Heiko Stübner
2016-04-21 21:12 ` Marc Zyngier
2016-04-22 1:50 ` jay.xu
2016-04-22 7:44 ` Marc Zyngier
2016-04-25 9:48 ` Huang, Tao
2016-04-25 10:05 ` Mark Rutland
2016-04-25 10:19 ` Huang, Tao
2016-04-25 10:47 ` Mark Rutland
2016-04-25 12:27 ` Huang, Tao
2016-04-25 10:06 ` Marc Zyngier
2016-04-25 10:39 ` Marc Zyngier
2016-04-25 11:50 ` Huang, Tao
2016-04-25 12:04 ` Marc Zyngier
2016-04-21 21:02 ` Rob Herring
2016-04-21 22:02 ` Heiko Stübner
2016-04-21 22:38 ` Doug Anderson
2016-04-21 22:49 ` Heiko Stübner [this message]
2016-04-22 4:23 ` Huang, Tao
2016-04-21 21:48 ` [PATCH] ARM64: dts: rockchip: add core dtsi file for rk3399 SoCs Brian Norris
2016-04-21 22:32 ` Heiko Stübner
2016-04-22 5:21 ` [PATCH v2 0/4] ARM64: dts: rockchip: add support for RK3399 Jianqun Xu
2016-04-22 5:25 ` [PATCH v2 1/4] Documentation: rockchip-dw-mshc: add description for rk3399 Jianqun Xu
2016-04-22 5:28 ` [PATCH v2 2/4] ARM64: dts: rockchip: add core dtsi file for RK3399 SoCs Jianqun Xu
2016-04-22 5:31 ` [PATCH 3/4] ARM64: dts: rockchip: add RK3399 evaluation board Jianqun Xu
2016-04-22 5:36 ` [PATCH v2 4/4] ARM64: dts: rockchip: add dts file for " Jianqun Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12509353.XToGr791I0@diego \
--to=heiko@sntech.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).