From: manivannan.sadhasivam@linaro.org (Manivannan Sadhasivam)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 04/16] arm: dts: Add devicetree for RDA8810PL SoC
Date: Wed, 21 Nov 2018 01:01:37 +0530 [thread overview]
Message-ID: <20181120193137.GB16122@Mani-XPS-13-9360> (raw)
In-Reply-To: <CAL_JsqLf_9ryCUtUkkE6P4GS8tC7nQ0pLHwLCQzy_HLJNTNMrw@mail.gmail.com>
Hi Rob,
On Mon, Nov 19, 2018 at 12:25:58PM -0600, Rob Herring wrote:
> On Mon, Nov 19, 2018 at 11:11 AM Manivannan Sadhasivam
> <manivannan.sadhasivam@linaro.org> wrote:
> >
> > Add initial device tree for RDA8810PL SoC from RDA Microelectronics.
> >
> > Signed-off-by: Andreas F?rber <afaerber@suse.de>
> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> > ---
> > arch/arm/boot/dts/rda8810pl.dtsi | 95 ++++++++++++++++++++++++++++++++
> > 1 file changed, 95 insertions(+)
> > create mode 100644 arch/arm/boot/dts/rda8810pl.dtsi
> >
> > diff --git a/arch/arm/boot/dts/rda8810pl.dtsi b/arch/arm/boot/dts/rda8810pl.dtsi
> > new file mode 100644
> > index 000000000000..7f1ff2021eff
> > --- /dev/null
> > +++ b/arch/arm/boot/dts/rda8810pl.dtsi
> > @@ -0,0 +1,95 @@
> > +/*
> > + * RDA8810PL SoC
> > + *
> > + * Copyright (c) 2017 Andreas F?rber
> > + * Copyright (c) 2018 Manivannan Sadhasivam
> > + *
> > + * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>
> Goes on 1st line. checkpatch.pl will tell you this.
>
Ack.
> > + */
> > +
> > +/ {
> > + compatible = "rda,8810pl";
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > +
> > + aliases {
> > + serial0 = &uart0;
> > + serial1 = &uart1;
> > + serial2 = &uart2;
> > + };
> > +
> > + cpus {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
> > + cpu at 0 {
> > + device_type = "cpu";
> > + compatible = "arm,cortex-a5";
> > + reg = <0x0>;
> > + };
> > + };
> > +
> > + soc {
>
> soc at 0
>
Ack.
> > + compatible = "simple-bus";
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > + ranges = <0x0 0x0 0x80000000>;
> > +
> > + sram at 100000 {
> > + compatible = "mmio-sram";
> > + reg = <0x100000 0x10000>;
>
> Based on the address of this and everything else, perhaps you should
> move this to the top-level (or another bus node) and then either get
> rid of the soc node level or make it start at 0x20000000. Kind of
> depends on what the rest of the memory map looks like.
>
Okay. Will move sram node to top level and make soc reg address start
from 0x20000000.
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > + ranges;
> > + };
> > +
> > + apb at 20800000 {
> > + compatible = "simple-bus";
> > + reg = <0x20800000 0x100000>;
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > + ranges = <0x0 0x20800000 0x100000>;
> > + };
> > +
> > + apb at 20900000 {
> > + compatible = "simple-bus";
> > + reg = <0x20900000 0x100000>;
>
> By definition of a simple-bus, it should not have any registers. Or
> you should also have a specific compatible.
>
Okay, will remove the reg property.
Thanks,
Mani
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > + ranges = <0x0 0x20900000 0x100000>;
> > + };
> > +
> > + apb at 20a00000 {
> > + compatible = "simple-bus";
> > + reg = <0x20a00000 0x100000>;
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> > + ranges = <0x0 0x20a00000 0x100000>;
> > +
> > + uart0: serial at 0 {
> > + compatible = "rda,8810pl-uart";
> > + reg = <0x0 0x1000>;
> > + status = "disabled";
> > + };
> > +
> > + uart1: serial at 10000 {
> > + compatible = "rda,8810pl-uart";
> > + reg = <0x10000 0x1000>;
> > + status = "disabled";
> > + };
> > +
> > + uart2: serial at 90000 {
> > + compatible = "rda,8810pl-uart";
> > + reg = <0x90000 0x1000>;
> > + status = "disabled";
> > + };
> > + };
> > +
> > + l2: cache-controller at 21100000 {
> > + compatible = "arm,pl310-cache";
> > + reg = <0x21100000 0x1000>;
> > + cache-unified;
> > + cache-level = <2>;
> > + };
> > + };
> > +};
> > --
> > 2.17.1
> >
next prev parent reply other threads:[~2018-11-20 19:31 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-19 17:09 [PATCH 00/16] Add initial RDA8810PL SoC and Orange Pi boards support Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 01/16] dt-bindings: Add RDA Micro vendor prefix Manivannan Sadhasivam
2018-11-19 17:22 ` Andreas Färber
2018-11-19 17:29 ` Manivannan Sadhasivam
2018-11-20 2:51 ` Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 02/16] dt-bindings: arm: Document RDA8810PL and reference boards Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 03/16] ARM: Prepare RDA8810PL SoC Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 04/16] arm: dts: Add devicetree for " Manivannan Sadhasivam
2018-11-19 18:25 ` Rob Herring
2018-11-20 19:31 ` Manivannan Sadhasivam [this message]
2018-11-19 19:37 ` Arnd Bergmann
2018-11-20 19:32 ` Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 05/16] arm: dts: Add devicetree for OrangePi 2G IoT board Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 06/16] arm: dts: Add devicetree for OrangePi i96 board Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 07/16] dt-bindings: interrupt-controller: Document RDA8810PL intc Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 08/16] arm: dts: rda8810pl: Add interrupt controller support Manivannan Sadhasivam
2018-11-19 18:29 ` Rob Herring
2018-11-20 19:28 ` Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 09/16] irqchip: Add RDA8810PL interrupt driver Manivannan Sadhasivam
2018-11-19 17:36 ` Marc Zyngier
2018-11-20 3:19 ` Manivannan Sadhasivam
2018-11-20 8:10 ` Marc Zyngier
2018-11-19 17:09 ` [PATCH 10/16] dt-bindings: timer: Document RDA8810PL SoC timer Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 11/16] arm: dts: rda8810pl: Add timer support Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 12/16] clocksource: Add clock driver for RDA8810PL SoC Manivannan Sadhasivam
2018-11-19 17:57 ` Marc Zyngier
2018-11-20 5:06 ` Manivannan Sadhasivam
2018-11-20 8:16 ` Marc Zyngier
2018-11-20 8:56 ` Linus Walleij
2018-11-20 11:05 ` Marc Zyngier
2018-11-20 12:09 ` Manivannan Sadhasivam
2018-11-20 10:32 ` Daniel Lezcano
2018-11-20 12:11 ` Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 13/16] dt-bindings: serial: Document RDA Micro UART Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 14/16] arm: dts: rda8810pl: Add interrupt support for UART Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 15/16] tty: serial: Add RDA8810PL UART driver Manivannan Sadhasivam
2018-11-19 17:09 ` [PATCH 16/16] MAINTAINERS: Add entry for RDA Micro SoC architecture Manivannan Sadhasivam
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=20181120193137.GB16122@Mani-XPS-13-9360 \
--to=manivannan.sadhasivam@linaro.org \
--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