devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: icenowy-h8G6r0blFSE@public.gmane.org
To: Maxime Ripard
	<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [PATCH 1/3] ARM: dts: sun8i: Add basic dtsi file for Allwinner R40
Date: Wed, 23 Aug 2017 23:13:04 +0800	[thread overview]
Message-ID: <9554c7524c8608e1eceafe762a487c11@aosc.io> (raw)
In-Reply-To: <20170823143532.owocqyq3tehsahhg-YififvaboMKzQB+pC5nmwQ@public.gmane.org>

在 2017-08-23 22:35,Maxime Ripard 写道:
> On Wed, Aug 23, 2017 at 07:56:29PM +0800, icenowy-h8G6r0blFSE@public.gmane.org wrote:
>> > > +			reg = <0x01c0f000 0x1000>;
>> > > +			clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
>> > > +			clock-names = "ahb", "mmc";
>> > > +			resets = <&ccu RST_BUS_MMC0>;
>> > > +			reset-names = "ahb";
>> > > +			pinctrl-0 = <&mmc0_pins>;
>> > > +			pinctrl-names = "default";
>> > > +			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
>> > > +			max-frequency = <150000000>;
>> >
>> > have you tested that frequency?
>> 
>> I think the frequency should be kept here, although my cards cannot
>> reach this frequency.
>> 
>> The numbers are same as the corresponding controllers in A64.
>> 
>> Maybe I should add a comment saying it's educated guess?
> 
> I'd rather have it tested by someone, and then add the proper
> frequencies. It took quite a while to figure out how these modes were
> supposed to be working on the A64, so it's not obvious that they're
> just going to work.

Should I add my results here?

MMC0: 25MHz
MMC1: 50MHz
MMC2: 52MHz
MMC3: not wired :-(

I think it's conservative enough and works well ;-)

> 
>> > > +		gic: interrupt-controller@1c81000 {
>> > > +			compatible = "arm,gic-400";
>> > > +			reg = <0x01c81000 0x1000>,
>> > > +			      <0x01c82000 0x1000>,
>> > > +			      <0x01c84000 0x2000>,
>> > > +			      <0x01c86000 0x2000>;
>> > > +			interrupt-controller;
>> > > +			#interrupt-cells = <3>;
>> > > +			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
>> > > IRQ_TYPE_LEVEL_HIGH)>;
>> > > +		};
>> > > +	};
>> > > +
>> > > +	timer {
>> > > +		compatible = "arm,armv7-timer";
>> > > +		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
>> > > IRQ_TYPE_LEVEL_LOW)>,
>> > > +			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
>> > > +			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
>> > > +			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
>> >
>> > Those masks are wrong.
>> 
>> I compared it with other sun8i SoCs' device tree.
>> 
>> Where's wrong?
> 
> It's supposed to be a mask of the CPUs in your system. Since you just
> have one of them, it shouldn't be 4.

R40 has 4 cores...

Or I didn't understand this?

> 
> Maxime

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.

  parent reply	other threads:[~2017-08-23 15:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-22  6:17 [PATCH 1/3] ARM: dts: sun8i: Add basic dtsi file for Allwinner R40 Icenowy Zheng
2017-08-22  6:17 ` [PATCH 2/3] ARM: dts: sun8i: Add board dts file for Banana Pi M2 Ultra Icenowy Zheng
     [not found]   ` <20170822061742.40869-2-icenowy-h8G6r0blFSE@public.gmane.org>
2017-08-22 20:10     ` Maxime Ripard
     [not found]       ` <20170822201043.vdweyevkxvjbzrwt-YififvaboMKzQB+pC5nmwQ@public.gmane.org>
2017-08-23  0:58         ` Icenowy Zheng
     [not found] ` <20170822061742.40869-1-icenowy-h8G6r0blFSE@public.gmane.org>
2017-08-22  6:17   ` [PATCH 3/3] ARM: dts: sun8i: Add board dts file for Banana Pi M2 Berry Icenowy Zheng
     [not found]     ` <20170822061742.40869-3-icenowy-h8G6r0blFSE@public.gmane.org>
2017-08-22 20:12       ` Maxime Ripard
     [not found]         ` <20170822201215.wbpioc7vbse4ajja-YififvaboMKzQB+pC5nmwQ@public.gmane.org>
2017-08-23  5:46           ` Icenowy Zheng
     [not found]             ` <D377CF9E-AE08-4AA4-AAD4-C9047C8007E9-h8G6r0blFSE@public.gmane.org>
2017-08-23 14:31               ` Maxime Ripard
2017-08-22 20:05   ` [PATCH 1/3] ARM: dts: sun8i: Add basic dtsi file for Allwinner R40 Maxime Ripard
     [not found]     ` <20170822200521.nadkb4335mcc5ah2-YififvaboMKzQB+pC5nmwQ@public.gmane.org>
2017-08-23  0:56       ` Icenowy Zheng
2017-08-23 11:56       ` icenowy-h8G6r0blFSE
     [not found]         ` <ea10374b49489d2250fd804e1fdbf204-h8G6r0blFSE@public.gmane.org>
2017-08-23 14:35           ` Maxime Ripard
     [not found]             ` <20170823143532.owocqyq3tehsahhg-YififvaboMKzQB+pC5nmwQ@public.gmane.org>
2017-08-23 15:13               ` icenowy-h8G6r0blFSE [this message]
     [not found]                 ` <9554c7524c8608e1eceafe762a487c11-h8G6r0blFSE@public.gmane.org>
2017-08-24  6:07                   ` Maxime Ripard
     [not found]                     ` <20170824060709.ejlmhzfhr7pwt3tx-ZC1Zs529Oq4@public.gmane.org>
2017-08-24  6:25                       ` icenowy-h8G6r0blFSE

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=9554c7524c8608e1eceafe762a487c11@aosc.io \
    --to=icenowy-h8g6r0blfse@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
    --cc=wens-jdAy2FN1RRM@public.gmane.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).