lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 10 Dec 2019 09:27:54 +0800
From:   zhouyanjie <zhouyanjie@...yeetech.com>
To:     Paul Cercueil <paul@...pouillou.net>
Cc:     linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
        devicetree@...r.kernel.org, robh+dt@...nel.org,
        paul.burton@...s.com, paulburton@...nel.org, jhogan@...nel.org,
        mripard@...nel.org, shawnguo@...nel.org, mark.rutland@....com,
        ebiederm@...ssion.com, ralf@...ux-mips.org, heiko@...ech.de,
        icenowy@...c.io, laurent.pinchart@...asonboard.com,
        krzk@...nel.org, geert+renesas@...der.be,
        prasannatsmkumar@...il.com, sernia.zhou@...mail.com,
        zhenwenjin@...il.com, 772753199@...com
Subject: Re: [PATCH v7 5/6] MIPS: X1000: Add missing X1000 nodes.

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@...yeetech.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@...yeetech.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@...02000 {
>> +        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@...03000 {
>> +        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@...10000 {
>>          compatible = "ingenic,x1000-pinctrl";
>>          reg = <0x10010000 0x800>;
>> @@ -173,4 +193,80 @@
>>
>>          status = "disabled";
>>      };
>> +
>> +    pdma: dma-controller@...20000 {
>> +        compatible = "ingenic,x1000-dma";
>> +        reg = <0x13420000 0x400
>> +               0x13421000 0x40>;
>> +        #dma-cells = <2>;
>> +
>> +        interrupt-parent = <&intc>;
>> +        interrupts = <10>;
>> +
>> +        clocks = <&cgu X1000_CLK_PDMA>;
>> +    };
>> +
>> +    mac: mac@...b0000 {
>
> Please name the nodes according to the devicetree specification; this 
> should be 'ethernet@...b0000'.
>

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@...50000 {
>
> This should be 'mmc@...50000'
>

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@...60000 {
>
> This should be 'mmc@...60000'.
>

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
>>
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ