linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: zhouyanjie <zhouyanjie@wanyeetech.com>
To: Paul Cercueil <paul@crapouillou.net>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, robh+dt@kernel.org,
	paul.burton@mips.com, paulburton@kernel.org, jhogan@kernel.org,
	mripard@kernel.org, shawnguo@kernel.org, mark.rutland@arm.com,
	ebiederm@xmission.com, ralf@linux-mips.org, heiko@sntech.de,
	icenowy@aosc.io, laurent.pinchart@ideasonboard.com,
	krzk@kernel.org, geert+renesas@glider.be,
	prasannatsmkumar@gmail.com, sernia.zhou@foxmail.com,
	zhenwenjin@gmail.com, 772753199@qq.com
Subject: Re: [PATCH v7 5/6] MIPS: X1000: Add missing X1000 nodes.
Date: Tue, 10 Dec 2019 09:27:54 +0800	[thread overview]
Message-ID: <5DEEF49A.50306@wanyeetech.com> (raw)
In-Reply-To: <1575904518.3.3@crapouillou.net>

Hi Paul,

On 2019年12月09日 23:15, Paul Cercueil wrote:
> Hi Zhou,
>
>
> Le lun., déc. 9, 2019 at 21:00, 周琰杰 (Zhou Yanjie) 
> <zhouyanjie@wanyeetech.com> a écrit :
>> Add the appropriate DT node to probe pdma/msc/rtc/watchdog/ethernet
>> driver using the devicetree.
>>
>> Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
>> ---
>>
>> Notes:
>>     v7:
>>     New patch, merge[05/12],[07/12],[09/12],[11/12] in v6.
>>
>>  arch/mips/boot/dts/ingenic/x1000.dtsi | 96 
>> +++++++++++++++++++++++++++++++++++
>>  1 file changed, 96 insertions(+)
>>
>> diff --git a/arch/mips/boot/dts/ingenic/x1000.dtsi 
>> b/arch/mips/boot/dts/ingenic/x1000.dtsi
>> index 13a6c9ff..398a756 100644
>> --- a/arch/mips/boot/dts/ingenic/x1000.dtsi
>> +++ b/arch/mips/boot/dts/ingenic/x1000.dtsi
>> @@ -1,5 +1,6 @@
>>  // SPDX-License-Identifier: GPL-2.0
>>  #include <dt-bindings/clock/x1000-cgu.h>
>> +#include <dt-bindings/dma/x1000-dma.h>
>>
>>  / {
>>      #address-cells = <1>;
>> @@ -68,6 +69,25 @@
>>          interrupts = <27 26 25>;
>>      };
>>
>> +    wdt: watchdog@10002000 {
>> +        compatible = "ingenic,x1000-watchdog", 
>> "ingenic,jz4780-watchdog";
>> +        reg = <0x10002000 0x10>;
>> +
>> +        clocks = <&cgu X1000_CLK_RTCLK>;
>> +        clock-names = "rtc";
>> +    };
>
> The watchdog node should be a children of the TCU node, see
> Documentation/devicetree/bindings/timer/ingenic,tcu.txt
>

Sure, I'll check it and change this in v8.

>
>> +
>> +    rtc: rtc@10003000 {
>> +        compatible = "ingenic,x1000-rtc", "ingenic,jz4780-rtc";
>> +        reg = <0x10003000 0x4c>;
>> +
>> +        interrupt-parent = <&intc>;
>> +        interrupts = <32>;
>> +
>> +        clocks = <&cgu X1000_CLK_RTCLK>;
>> +        clock-names = "rtc";
>> +    };
>> +
>>      pinctrl: pin-controller@10010000 {
>>          compatible = "ingenic,x1000-pinctrl";
>>          reg = <0x10010000 0x800>;
>> @@ -173,4 +193,80 @@
>>
>>          status = "disabled";
>>      };
>> +
>> +    pdma: dma-controller@13420000 {
>> +        compatible = "ingenic,x1000-dma";
>> +        reg = <0x13420000 0x400
>> +               0x13421000 0x40>;
>> +        #dma-cells = <2>;
>> +
>> +        interrupt-parent = <&intc>;
>> +        interrupts = <10>;
>> +
>> +        clocks = <&cgu X1000_CLK_PDMA>;
>> +    };
>> +
>> +    mac: mac@134b0000 {
>
> Please name the nodes according to the devicetree specification; this 
> should be 'ethernet@134b0000'.
>

OK, I'll change it in v8.

>
>> +        compatible = "ingenic,x1000-mac", "snps,dwmac";
>> +        reg = <0x134b0000 0x2000>;
>> +
>> +        interrupt-parent = <&intc>;
>> +        interrupts = <55>;
>> +        interrupt-names = "macirq";
>> +
>> +        clocks = <&cgu X1000_CLK_MAC>;
>> +        clock-names = "stmmaceth";
>> +
>> +        status = "disabled";
>> +
>> +        mdio: mdio {
>> +            compatible = "snps,dwmac-mdio";
>> +            #address-cells = <1>;
>> +            #size-cells = <0>;
>> +
>> +            status = "disabled";
>> +        };
>> +    };
>> +
>> +    msc0: msc@13450000 {
>
> This should be 'mmc@13450000'
>

OK, I'll change it in v8.

>
>> +        compatible = "ingenic,x1000-mmc";
>> +        reg = <0x13450000 0x1000>;
>> +
>> +        interrupt-parent = <&intc>;
>> +        interrupts = <37>;
>> +
>> +        clocks = <&cgu X1000_CLK_MSC0>;
>> +        clock-names = "mmc";
>> +
>> +        cap-sd-highspeed;
>> +        cap-mmc-highspeed;
>> +        cap-sdio-irq;
>> +
>> +        dmas = <&pdma X1000_DMA_MSC0_RX 0xffffffff>,
>> +               <&pdma X1000_DMA_MSC0_TX 0xffffffff>;
>> +        dma-names = "rx", "tx";
>> +
>> +        status = "disabled";
>> +    };
>> +
>> +    msc1: msc@13460000 {
>
> This should be 'mmc@13460000'.
>

OK, I'll change it in v8.

Thanks and best regards!

> Cheers,
> -Paul
>
>> +        compatible = "ingenic,x1000-mmc";
>> +        reg = <0x13460000 0x1000>;
>> +
>> +        interrupt-parent = <&intc>;
>> +        interrupts = <36>;
>> +
>> +        clocks = <&cgu X1000_CLK_MSC1>;
>> +        clock-names = "mmc";
>> +
>> +        cap-sd-highspeed;
>> +        cap-mmc-highspeed;
>> +        cap-sdio-irq;
>> +
>> +        dmas = <&pdma X1000_DMA_MSC1_RX 0xffffffff>,
>> +               <&pdma X1000_DMA_MSC1_TX 0xffffffff>;
>> +        dma-names = "rx", "tx";
>> +
>> +        status = "disabled";
>> +    };
>>  };
>> -- 
>> 2.7.4
>>
>


  reply	other threads:[~2019-12-10  1:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-09 13:00 Add initial support for Ingenic X1000 SoC and Y&A CU Neo board v7 周琰杰 (Zhou Yanjie)
2019-12-09 13:00 ` [PATCH v7 1/6] MIPS: Ingenic: Initial X1000 support 周琰杰 (Zhou Yanjie)
2019-12-09 13:00 ` [PATCH v7 2/6] dt-bindings: Document yna vendor-prefix 周琰杰 (Zhou Yanjie)
2019-12-09 13:00 ` [PATCH v7 3/6] dt-bindings: MIPS: Add Ingenic XBurst based boards 周琰杰 (Zhou Yanjie)
2019-12-09 13:00 ` [PATCH v7 4/6] MIPS: Ingenic: Initial YSH & ATIL CU Neo board support 周琰杰 (Zhou Yanjie)
2019-12-09 13:00 ` [PATCH v7 5/6] MIPS: X1000: Add missing X1000 nodes 周琰杰 (Zhou Yanjie)
2019-12-09 15:15   ` Paul Cercueil
2019-12-10  1:27     ` zhouyanjie [this message]
2019-12-09 13:00 ` [PATCH v7 6/6] MIPS: CU1000: Add devicetree & config with PDMA/MSC/RTC/WDT/NET enabled 周琰杰 (Zhou Yanjie)
2019-12-09 15:07   ` Paul Cercueil
2019-12-10  1:30     ` zhouyanjie

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=5DEEF49A.50306@wanyeetech.com \
    --to=zhouyanjie@wanyeetech.com \
    --cc=772753199@qq.com \
    --cc=devicetree@vger.kernel.org \
    --cc=ebiederm@xmission.com \
    --cc=geert+renesas@glider.be \
    --cc=heiko@sntech.de \
    --cc=icenowy@aosc.io \
    --cc=jhogan@kernel.org \
    --cc=krzk@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mripard@kernel.org \
    --cc=paul.burton@mips.com \
    --cc=paul@crapouillou.net \
    --cc=paulburton@kernel.org \
    --cc=prasannatsmkumar@gmail.com \
    --cc=ralf@linux-mips.org \
    --cc=robh+dt@kernel.org \
    --cc=sernia.zhou@foxmail.com \
    --cc=shawnguo@kernel.org \
    --cc=zhenwenjin@gmail.com \
    /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).