From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] ARM: dts: clps711x: Add basic Cirrus Logic CDB89712 Development board
Date: Fri, 13 May 2016 14:00:35 +0200 [thread overview]
Message-ID: <9407200.bOeiVUkGKT@wuerfel> (raw)
In-Reply-To: <1463138788-5390-4-git-send-email-shc_work@mail.ru>
On Friday 13 May 2016 14:26:28 Alexander Shiyan wrote:
> +&bus {
> + flash: root at 00000000 {
> + compatible = "cfi-flash";
> + reg = <0 0x00000000 0x01000000>;
> + bank-width = <2>;
> + linux,mtd-name = "physmap-flash.0";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + };
I've never seen the linux,mtd-name property before, but I think it's
meant to refer to the name of the flash chip, not the
name of the linux device.
> + aliases {
> + gpio0 = &porta;
> + gpio1 = &portb;
> + gpio2 = &portc;
> + gpio3 = &portd;
> + gpio4 = &porte;
> + serial0 = &uart1;
> + serial1 = &uart2;
> + spi0 = &spi;
> + timer0 = &timer1;
> + timer1 = &timer2;
> + };
Please move this into the .dts file: not all boards necessarily have
all of the above.
> + soc {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "simple-bus";
> + interrupt-parent = <&intc>;
> + ranges;
All child devices seem to be in the 0x80000000-0x90000000
range, maybe set the ranges property accordingly?
> + clks: clks at 80000000 {
> + #clock-cells = <1>;
> + compatible = "cirrus,clps711x-clk";
> + reg = <0x80000000 0xc000>;
> + startup-frequency = <73728000>;
> + };
Please fix the compatible strings for all devices to not
have 'x' for wildcards. Normally you'd use the name of hte
first chip to have this particular IP block.
> + intc: intc at 80000000 {
> + compatible = "cirrus,clps711x-intc";
> + reg = <0x80000000 0x4000>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + };
Better make the register ranges non-overlapping. This appears
to start at the same place as the 'clks' node.
> + porta: gpio at 80000000 {
> + compatible = "cirrus,clps711x-gpio";
> + reg = <0x80000000 0x1 0x80000040 0x1>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + portb: gpio at 80000001 {
> + compatible = "cirrus,clps711x-gpio";
> + reg = <0x80000001 0x1 0x80000041 0x1>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> +
> + portc: gpio at 80000002 {
> + compatible = "cirrus,clps711x-gpio";
> + reg = <0x80000002 0x1 0x80000042 0x1>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + status = "disabled";
> + };
> +
> + portd: gpio at 80000003 {
> + compatible = "cirrus,clps711x-gpio";
> + reg = <0x80000003 0x1 0x80000043 0x1>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
These are all just single bytes. My guess is that there is
actually one IP block that contains all the gpios, not
four identical blocks.
> + bus: bus at 80000180 {
> + #address-cells = <2>;
> + #size-cells = <1>;
> + compatible = "cirrus,clps711x-bus", "simple-bus";
> + clocks = <&clks CLPS711X_CLK_BUS>;
> + reg = <0x80000180 0x80>;
If it has registers, it's not a 'simple-bus'. Is this an external
bus controller perhaps?
Arnd
next prev parent reply other threads:[~2016-05-13 12:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-13 11:26 [PATCH 0/3] ARM: clps711x: Initial DT support Alexander Shiyan
2016-05-13 11:26 ` [PATCH 1/3] ARM: clps711x: Reduce static map size Alexander Shiyan
2016-05-13 11:26 ` [PATCH 2/3] ARM: clps711x: Add basic DT support Alexander Shiyan
2016-05-13 11:26 ` [PATCH 3/3] ARM: dts: clps711x: Add basic Cirrus Logic CDB89712 Development board Alexander Shiyan
2016-05-13 12:00 ` Arnd Bergmann [this message]
2016-05-13 12:30 ` Alexander Shiyan
2016-05-13 13:41 ` Arnd Bergmann
2016-05-15 6:07 ` Alexander Shiyan
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=9407200.bOeiVUkGKT@wuerfel \
--to=arnd@arndb.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