All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kever Yang <kever.yang@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/7] rockchip: dts: rk3328: update dmc node for driver
Date: Mon, 5 Aug 2019 21:02:53 +0800	[thread overview]
Message-ID: <5dd09682-a963-8af1-e84a-cf27349e5d1f@rock-chips.com> (raw)
In-Reply-To: <20190802074004.4301-4-matwey.kornilov@gmail.com>


On 2019/8/2 下午3:40, Matwey V. Kornilov wrote:
> From: Kever Yang <kever.yang@rock-chips.com>
>
> Update dmc node for full feature driver.
>
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> [cherry picked from commit https://github.com/rockchip-linux/u-boot/commit/1e1495636574c78ea9d3af3e0aae95d5204612d6 with minor modifications]
> Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>   arch/arm/dts/rk3328-evb-u-boot.dtsi        |   2 +
>   arch/arm/dts/rk3328-rock64-u-boot.dtsi     |   2 +
>   arch/arm/dts/rk3328-sdram-ddr3-666.dtsi    | 215 +++++++++++++++++++++++++++++
>   arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi | 215 +++++++++++++++++++++++++++++
>   arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi  | 215 +++++++++++++++++++++++++++++
>   arch/arm/dts/rk3328.dtsi                   |  11 +-
>   6 files changed, 657 insertions(+), 3 deletions(-)
>   create mode 100644 arch/arm/dts/rk3328-sdram-ddr3-666.dtsi
>   create mode 100644 arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi
>   create mode 100644 arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi
>
> diff --git a/arch/arm/dts/rk3328-evb-u-boot.dtsi b/arch/arm/dts/rk3328-evb-u-boot.dtsi
> index 22bfaef72a..58ebf52b4b 100644
> --- a/arch/arm/dts/rk3328-evb-u-boot.dtsi
> +++ b/arch/arm/dts/rk3328-evb-u-boot.dtsi
> @@ -3,6 +3,8 @@
>    * (C) Copyright 2016 Rockchip Electronics Co., Ltd
>    */
>   
> +#include "rk3328-sdram-ddr3-666.dtsi"
> +
>   / {
>   	aliases {
>   		mmc0 = &emmc;
> diff --git a/arch/arm/dts/rk3328-rock64-u-boot.dtsi b/arch/arm/dts/rk3328-rock64-u-boot.dtsi
> index b077436cbc..a01f758e9f 100644
> --- a/arch/arm/dts/rk3328-rock64-u-boot.dtsi
> +++ b/arch/arm/dts/rk3328-rock64-u-boot.dtsi
> @@ -4,6 +4,8 @@
>    * SPDX-License-Identifier:     GPL-2.0+
>    */
>   
> +#include "rk3328-sdram-lpddr3-1600.dtsi"
> +
>   / {
>   	aliases {
>   		mmc0 = &emmc;
> diff --git a/arch/arm/dts/rk3328-sdram-ddr3-666.dtsi b/arch/arm/dts/rk3328-sdram-ddr3-666.dtsi
> new file mode 100644
> index 0000000000..d99e7e0352
> --- /dev/null
> +++ b/arch/arm/dts/rk3328-sdram-ddr3-666.dtsi
> @@ -0,0 +1,215 @@
> +/*
> + * (C) Copyright 2017 Rockchip Electronics Co., Ltd
> + *
> + * SPDX-License-Identifier:     GPL-2.0+
> + */
> +
> +&dmc {
> +	rockchip,sdram-params = <
> +		0x1
> +		0xC
> +		0x3
> +		0x1
> +		0x0
> +		0x0
> +		0x10
> +		0x10
> +		0
> +
> +		0x9028b189
> +		0x00000000
> +		0x00000021
> +		0x00000482
> +		0x00000015
> +		0x00000222
> +		0x000000ff
> +
> +		333
> +		3
> +		0
> +
> +		0x00000000
> +		0x43041001
> +		0x00000064
> +		0x0028003b
> +		0x000000d0
> +		0x00020053
> +		0x000000d4
> +		0x00020000
> +		0x000000d8
> +		0x00000100
> +		0x000000dc
> +		0x03200000
> +		0x000000e0
> +		0x00000000
> +		0x000000e4
> +		0x00090000
> +		0x000000f4
> +		0x000f011f
> +		0x00000100
> +		0x07090b06
> +		0x00000104
> +		0x00050209
> +		0x00000108
> +		0x03030407
> +		0x0000010c
> +		0x00202006
> +		0x00000110
> +		0x03020204
> +		0x00000114
> +		0x03030202
> +		0x00000120
> +		0x00000903
> +		0x00000180
> +		0x00800020
> +		0x00000184
> +		0x00000000
> +		0x00000190
> +		0x07010001
> +		0x00000198
> +		0x05001100
> +		0x000001a0
> +		0xc0400003
> +		0x00000240
> +		0x06000604
> +		0x00000244
> +		0x00000201
> +		0x00000250
> +		0x00000f00
> +		0x00000490
> +		0x00000001
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +
> +		0x00000004
> +		0x0000000a
> +		0x00000028
> +		0x00000006
> +		0x0000002c
> +		0x00000000
> +		0x00000030
> +		0x00000005
> +		0xffffffff
> +		0xffffffff
> +
> +		0x77
> +		0x88
> +		0x79
> +		0x79
> +		0x87
> +		0x97
> +		0x87
> +		0x78
> +		0x77
> +		0x78
> +		0x87
> +		0x88
> +		0x87
> +		0x87
> +		0x77
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x79
> +		0x9
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x79
> +		0x9
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x79
> +		0x9
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x79
> +		0x9
> +	>;
> +};
> diff --git a/arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi b/arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi
> new file mode 100644
> index 0000000000..cc0011cf7b
> --- /dev/null
> +++ b/arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi
> @@ -0,0 +1,215 @@
> +/*
> + * (C) 2017 Theobroma Systems Design und Consulting GmbH
> + *
> + * SPDX-License-Identifier:     GPL-2.0+
> + */
> +
> +&dmc {
> +	rockchip,sdram-params = <
> +		0x1
> +		0xC
> +		0x3
> +		0x1
> +		0x0
> +		0x0
> +		0x10
> +		0x10
> +		0
> +
> +		0x98899459
> +		0x00000000
> +		0x0000002e
> +		0x00000544
> +		0x00000015
> +		0x00000432
> +		0x000000ff
> +
> +		800
> +		6
> +		1
> +
> +		0x00000000
> +		0x43041008
> +		0x00000064
> +		0x00300054
> +		0x000000d0
> +		0x00500002
> +		0x000000d4
> +		0x00010000
> +		0x000000d8
> +		0x00000e03
> +		0x000000dc
> +		0x0043001a
> +		0x000000e0
> +		0x00010000
> +		0x000000e4
> +		0x000e0005
> +		0x000000f4
> +		0x000f011f
> +		0x00000100
> +		0x0b141b11
> +		0x00000104
> +		0x0003031a
> +		0x00000108
> +		0x03060809
> +		0x0000010c
> +		0x00606000
> +		0x00000110
> +		0x08020409
> +		0x00000114
> +		0x01010606
> +		0x00000118
> +		0x02020004
> +		0x00000120
> +		0x00000404
> +		0x00000138
> +		0x00000058
> +		0x00000180
> +		0x00900024
> +		0x00000184
> +		0x01400000
> +		0x00000190
> +		0x07050002
> +		0x00000198
> +		0x05001100
> +		0x000001a0
> +		0xc0400003
> +		0x00000240
> +		0x0a020b28
> +		0x00000244
> +		0x00000101
> +		0x00000250
> +		0x00000f00
> +		0x00000490
> +		0x00000001
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +
> +		0x00000004
> +		0x0000000b
> +		0x00000028
> +		0x0000000c
> +		0x0000002c
> +		0x00000000
> +		0x00000030
> +		0x00000006
> +		0xffffffff
> +		0xffffffff
> +
> +		0x77
> +		0x88
> +		0x79
> +		0x79
> +		0x87
> +		0x97
> +		0x87
> +		0x78
> +		0x77
> +		0x78
> +		0x87
> +		0x88
> +		0x87
> +		0x87
> +		0x77
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x79
> +		0x9
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x79
> +		0x9
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x79
> +		0x9
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x79
> +		0x9
> +	>;
> +};
> diff --git a/arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi b/arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi
> new file mode 100644
> index 0000000000..62d809e833
> --- /dev/null
> +++ b/arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi
> @@ -0,0 +1,215 @@
> +/*
> + * (C) Copyright 2017 Rockchip Electronics Co., Ltd
> + *
> + * SPDX-License-Identifier:     GPL-2.0+
> + */
> +
> +&dmc {
> +	rockchip,sdram-params = <
> +		0x1
> +		0xC
> +		0x3
> +		0x1
> +		0x0
> +		0x0
> +		0x10
> +		0x10
> +		0
> +
> +		0x0c48a18a
> +		0x00000000
> +		0x00000021
> +		0x00000482
> +		0x00000015
> +		0x0000021a
> +		0x000000ff
> +
> +		333
> +		6
> +		0
> +
> +		0x00000000
> +		0xc3040008
> +		0x00000064
> +		0x00140023
> +		0x000000d0
> +		0x00220002
> +		0x000000d4
> +		0x00010000
> +		0x000000d8
> +		0x00000703
> +		0x000000dc
> +		0x00830004
> +		0x000000e0
> +		0x00010000
> +		0x000000e4
> +		0x00070003
> +		0x00000100
> +		0x06090b07
> +		0x00000104
> +		0x0002020b
> +		0x00000108
> +		0x02030506
> +		0x0000010c
> +		0x00505000
> +		0x00000110
> +		0x03020204
> +		0x00000114
> +		0x01010303
> +		0x00000118
> +		0x02020003
> +		0x00000120
> +		0x00000303
> +		0x00000138
> +		0x00000025
> +		0x00000180
> +		0x003c000f
> +		0x00000184
> +		0x00900000
> +		0x00000190
> +		0x07020000
> +		0x00000198
> +		0x05001100
> +		0x000001a0
> +		0xc0400003
> +		0x00000240
> +		0x0900090c
> +		0x00000244
> +		0x00000101
> +		0x00000250
> +		0x00000f00
> +		0x00000490
> +		0x00000001
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +		0xffffffff
> +
> +		0x00000004
> +		0x0000000b
> +		0x00000028
> +		0x00000006
> +		0x0000002c
> +		0x00000000
> +		0x00000030
> +		0x00000003
> +		0xffffffff
> +		0xffffffff
> +
> +		0x77
> +		0x88
> +		0x79
> +		0x79
> +		0x87
> +		0x97
> +		0x87
> +		0x78
> +		0x77
> +		0x78
> +		0x87
> +		0x88
> +		0x87
> +		0x87
> +		0x77
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x79
> +		0x9
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x79
> +		0x9
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x78
> +		0x77
> +		0x79
> +		0x9
> +
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x78
> +		0x69
> +		0x9
> +
> +		0x77
> +		0x78
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x77
> +		0x79
> +		0x9
> +	>;
> +};
> diff --git a/arch/arm/dts/rk3328.dtsi b/arch/arm/dts/rk3328.dtsi
> index 2d80addbb0..a080ae8d69 100644
> --- a/arch/arm/dts/rk3328.dtsi
> +++ b/arch/arm/dts/rk3328.dtsi
> @@ -351,10 +351,15 @@
>   		status = "disabled";
>   	};
>   
> -	dmc: dmc at ff400000 {
> +	dmc: dmc {
>   		u-boot,dm-pre-reloc;
> -		compatible = "rockchip,rk3328-dmc", "syscon";
> -		reg = <0x0 0xff400000 0x0 0x1000>;
> +		compatible = "rockchip,rk3328-dmc";
> +		reg = <0x0 0xff400000 0x0 0x1000
> +		       0x0 0xff780000 0x0 0x3000
> +		       0x0 0xff100000 0x0 0x1000
> +		       0x0 0xff440000 0x0 0x1000
> +		       0x0 0xff720000 0x0 0x1000
> +		       0x0 0xff798000 0x0 0x1000>;
>   	};
>   
>   	cru: clock-controller at ff440000 {

  reply	other threads:[~2019-08-05 13:02 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-31 16:01 [U-Boot] [PATCH 0/7] Add TPL support for Pine64 Rock64 board Matwey V. Kornilov
2019-07-31 16:01 ` [U-Boot] [PATCH 1/7] rockchip: ram: add full feature rk3328 DRAM driver Matwey V. Kornilov
2019-07-31 16:01 ` [U-Boot] [PATCH 2/7] rockchip: dts: rk3328: update dmc node for driver Matwey V. Kornilov
2019-08-01  2:38   ` Kever Yang
2019-07-31 16:01 ` [U-Boot] [PATCH 3/7] rockchip: dts: rk3328: enable the drivers need by TPL/SPL Matwey V. Kornilov
2019-08-01  2:39   ` Kever Yang
2019-07-31 16:01 ` [U-Boot] [PATCH 4/7] rockchip: Kconfig: enable TPL support for rk3328 Matwey V. Kornilov
2019-08-01  2:40   ` Kever Yang
2019-07-31 16:01 ` [U-Boot] [PATCH 5/7] rockchip: evb-rk3328: enable defconfig options for TPL/SPL Matwey V. Kornilov
2019-07-31 16:01 ` [U-Boot] [PATCH 6/7] configs: rk3328: enable TPL for rock64-rk3328_defconfig Matwey V. Kornilov
2019-08-01  2:42   ` Kever Yang
2019-07-31 16:01 ` [U-Boot] [PATCH 7/7] doc: rockchip: Adapt Pine64 Rock64 board instructions Matwey V. Kornilov
2019-08-01  2:42   ` Kever Yang
2019-08-01  2:36 ` [U-Boot] [PATCH 0/7] Add TPL support for Pine64 Rock64 board Kever Yang
2019-08-02  7:09   ` Matwey V. Kornilov
2019-08-02  7:39   ` [U-Boot] [PATCH v2 " Matwey V. Kornilov
2019-08-02  7:39     ` [U-Boot] [PATCH v2 1/7] rockchip: dts: rk3328: Add rk3328-evb-u-boot.dtsi Matwey V. Kornilov
2019-08-05 13:01       ` Kever Yang
2019-08-02  7:39     ` [U-Boot] [PATCH v2 2/7] rockchip: ram: add full feature rk3328 DRAM driver Matwey V. Kornilov
2019-08-05 13:02       ` Kever Yang
2019-08-05 13:04       ` Philipp Tomsich
2019-08-06  1:46         ` Kever Yang
2019-08-02  7:40     ` [U-Boot] [PATCH v2 3/7] rockchip: dts: rk3328: update dmc node for driver Matwey V. Kornilov
2019-08-05 13:02       ` Kever Yang [this message]
2019-08-02  7:40     ` [U-Boot] [PATCH v2 4/7] rockchip: Kconfig: enable TPL support for rk3328 Matwey V. Kornilov
2019-08-05 13:03       ` Kever Yang
2019-08-02  7:40     ` [U-Boot] [PATCH v2 5/7] rockchip: evb-rk3328: enable defconfig options for TPL/SPL Matwey V. Kornilov
2019-08-05 13:03       ` Kever Yang
2019-08-02  7:40     ` [U-Boot] [PATCH v2 6/7] configs: rk3328: enable TPL for rock64-rk3328_defconfig Matwey V. Kornilov
2019-08-05 13:03       ` Kever Yang
2019-08-02  7:40     ` [U-Boot] [PATCH v2 7/7] doc: rockchip: Adapt Pine64 Rock64 board instructions Matwey V. Kornilov
2019-08-02 10:41     ` [U-Boot] [PATCH v2 0/7] Add TPL support for Pine64 Rock64 board Chen-Yu Tsai
2019-08-02 10:55       ` Matwey V. Kornilov
2019-08-02 11:21         ` Chen-Yu Tsai

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=5dd09682-a963-8af1-e84a-cf27349e5d1f@rock-chips.com \
    --to=kever.yang@rock-chips.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.