Re: [PATCH v2 1/3] arm64: dts: rockchip: px30: Move dmc into -u-boot.dtsi

2021-12-23 Thread Kever Yang



On 2021/11/16 上午1:38, Jagan Teki wrote:

dmc node is specific to U-Boot, it is always better practice
to maintain U-Boot specific nodes into -u-boot.dtsi files
in order to maintain Linux dts file sync compatibility.

Move the dmc into px30-u-boot.dtsi, also add dmc node
explicitly in rk3326-odroid-go2-u-boot.dtsi since it is
using px30.dts.

Signed-off-by: Jagan Teki 

Reviewed-by: Kever Yang 

Thanks,
- Kever

---
Changes for v2:
- none

  arch/arm/dts/px30-u-boot.dtsi  | 10 ++
  arch/arm/dts/px30.dtsi |  5 -
  arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 10 ++
  3 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/arch/arm/dts/px30-u-boot.dtsi b/arch/arm/dts/px30-u-boot.dtsi
index 029c8fbd8d..bbed7dcde5 100644
--- a/arch/arm/dts/px30-u-boot.dtsi
+++ b/arch/arm/dts/px30-u-boot.dtsi
@@ -13,6 +13,12 @@
u-boot,spl-boot-order = , 
};
  
+	dmc {

+   u-boot,dm-pre-reloc;
+   compatible = "rockchip,px30-dmc", "syscon";
+   reg = <0x0 0xff2a 0x0 0x1000>;
+   };
+
rng: rng@ff0b {
compatible = "rockchip,cryptov2-rng";
reg = <0x0 0xff0b 0x0 0x4000>;
@@ -20,10 +26,6 @@
};
  };
  
- {

-   u-boot,dm-pre-reloc;
-};
-
   {
clock-frequency = <2400>;
u-boot,dm-pre-reloc;
diff --git a/arch/arm/dts/px30.dtsi b/arch/arm/dts/px30.dtsi
index ef706486dc..ef77b7b997 100644
--- a/arch/arm/dts/px30.dtsi
+++ b/arch/arm/dts/px30.dtsi
@@ -151,11 +151,6 @@
interrupt-affinity = <>, <>, <>, <>;
};
  
-	dmc: dmc {

-   compatible = "rockchip,px30-dmc", "syscon";
-   reg = <0x0 0xff2a 0x0 0x1000>;
-   };
-
display_subsystem: display-subsystem {
compatible = "rockchip,display-subsystem";
ports = <_out>, <_out>;
diff --git a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi 
b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
index bffaa3edf3..63d87e16e1 100644
--- a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
+++ b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
@@ -16,6 +16,12 @@
serial2 = 
spi0 = 
};
+
+   dmc {
+   u-boot,dm-pre-reloc;
+   compatible = "rockchip,px30-dmc", "syscon";
+   reg = <0x0 0xff2a 0x0 0x1000>;
+   };
  };
  
  /* U-Boot clk driver for px30 cannot set GPU_CLK */

@@ -32,10 +38,6 @@
<1>, <1700>;
  };
  
- {

-   u-boot,dm-pre-reloc;
-};
-
   {
u-boot,dm-pre-reloc;
  };





Re: [PATCH v2 1/3] arm64: dts: rockchip: px30: Move dmc into -u-boot.dtsi

2021-12-23 Thread Jagan Teki
On Wed, Dec 8, 2021 at 10:50 AM Jagan Teki  wrote:
>
> Hi Kever,
>
> On Mon, Nov 15, 2021 at 11:08 PM Jagan Teki  
> wrote:
> >
> > dmc node is specific to U-Boot, it is always better practice
> > to maintain U-Boot specific nodes into -u-boot.dtsi files
> > in order to maintain Linux dts file sync compatibility.
> >
> > Move the dmc into px30-u-boot.dtsi, also add dmc node
> > explicitly in rk3326-odroid-go2-u-boot.dtsi since it is
> > using px30.dts.
> >
> > Signed-off-by: Jagan Teki 
> > ---
> > Changes for v2:
> > - none
> >
> >  arch/arm/dts/px30-u-boot.dtsi  | 10 ++
> >  arch/arm/dts/px30.dtsi |  5 -
> >  arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 10 ++
> >  3 files changed, 12 insertions(+), 13 deletions(-)
> >
> > diff --git a/arch/arm/dts/px30-u-boot.dtsi b/arch/arm/dts/px30-u-boot.dtsi
> > index 029c8fbd8d..bbed7dcde5 100644
> > --- a/arch/arm/dts/px30-u-boot.dtsi
> > +++ b/arch/arm/dts/px30-u-boot.dtsi
> > @@ -13,6 +13,12 @@
> > u-boot,spl-boot-order = , 
> > };
> >
> > +   dmc {
> > +   u-boot,dm-pre-reloc;
> > +   compatible = "rockchip,px30-dmc", "syscon";
> > +   reg = <0x0 0xff2a 0x0 0x1000>;
> > +   };
> > +
> > rng: rng@ff0b {
> > compatible = "rockchip,cryptov2-rng";
> > reg = <0x0 0xff0b 0x0 0x4000>;
> > @@ -20,10 +26,6 @@
> > };
> >  };
> >
> > - {
> > -   u-boot,dm-pre-reloc;
> > -};
> > -
> >   {
> > clock-frequency = <2400>;
> > u-boot,dm-pre-reloc;
> > diff --git a/arch/arm/dts/px30.dtsi b/arch/arm/dts/px30.dtsi
> > index ef706486dc..ef77b7b997 100644
> > --- a/arch/arm/dts/px30.dtsi
> > +++ b/arch/arm/dts/px30.dtsi
> > @@ -151,11 +151,6 @@
> > interrupt-affinity = <>, <>, <>, <>;
> > };
> >
> > -   dmc: dmc {
> > -   compatible = "rockchip,px30-dmc", "syscon";
> > -   reg = <0x0 0xff2a 0x0 0x1000>;
> > -   };
> > -
> > display_subsystem: display-subsystem {
> > compatible = "rockchip,display-subsystem";
> > ports = <_out>, <_out>;
> > diff --git a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi 
> > b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
> > index bffaa3edf3..63d87e16e1 100644
> > --- a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
> > +++ b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
> > @@ -16,6 +16,12 @@
> > serial2 = 
> > spi0 = 
> > };
> > +
> > +   dmc {
> > +   u-boot,dm-pre-reloc;
> > +   compatible = "rockchip,px30-dmc", "syscon";
> > +   reg = <0x0 0xff2a 0x0 0x1000>;
> > +   };
> >  };
> >
> >  /* U-Boot clk driver for px30 cannot set GPU_CLK */
> > @@ -32,10 +38,6 @@
> > <1>, <1700>;
> >  };
> >
> > - {
> > -   u-boot,dm-pre-reloc;
> > -};
> > -
> >   {
> > u-boot,dm-pre-reloc;
> >  };
> > --
> > 2.25.1
> >
>
> Any chance to apply these?

Gentle ping!


Re: [PATCH v2 1/3] arm64: dts: rockchip: px30: Move dmc into -u-boot.dtsi

2021-12-07 Thread Jagan Teki
Hi Kever,

On Mon, Nov 15, 2021 at 11:08 PM Jagan Teki  wrote:
>
> dmc node is specific to U-Boot, it is always better practice
> to maintain U-Boot specific nodes into -u-boot.dtsi files
> in order to maintain Linux dts file sync compatibility.
>
> Move the dmc into px30-u-boot.dtsi, also add dmc node
> explicitly in rk3326-odroid-go2-u-boot.dtsi since it is
> using px30.dts.
>
> Signed-off-by: Jagan Teki 
> ---
> Changes for v2:
> - none
>
>  arch/arm/dts/px30-u-boot.dtsi  | 10 ++
>  arch/arm/dts/px30.dtsi |  5 -
>  arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 10 ++
>  3 files changed, 12 insertions(+), 13 deletions(-)
>
> diff --git a/arch/arm/dts/px30-u-boot.dtsi b/arch/arm/dts/px30-u-boot.dtsi
> index 029c8fbd8d..bbed7dcde5 100644
> --- a/arch/arm/dts/px30-u-boot.dtsi
> +++ b/arch/arm/dts/px30-u-boot.dtsi
> @@ -13,6 +13,12 @@
> u-boot,spl-boot-order = , 
> };
>
> +   dmc {
> +   u-boot,dm-pre-reloc;
> +   compatible = "rockchip,px30-dmc", "syscon";
> +   reg = <0x0 0xff2a 0x0 0x1000>;
> +   };
> +
> rng: rng@ff0b {
> compatible = "rockchip,cryptov2-rng";
> reg = <0x0 0xff0b 0x0 0x4000>;
> @@ -20,10 +26,6 @@
> };
>  };
>
> - {
> -   u-boot,dm-pre-reloc;
> -};
> -
>   {
> clock-frequency = <2400>;
> u-boot,dm-pre-reloc;
> diff --git a/arch/arm/dts/px30.dtsi b/arch/arm/dts/px30.dtsi
> index ef706486dc..ef77b7b997 100644
> --- a/arch/arm/dts/px30.dtsi
> +++ b/arch/arm/dts/px30.dtsi
> @@ -151,11 +151,6 @@
> interrupt-affinity = <>, <>, <>, <>;
> };
>
> -   dmc: dmc {
> -   compatible = "rockchip,px30-dmc", "syscon";
> -   reg = <0x0 0xff2a 0x0 0x1000>;
> -   };
> -
> display_subsystem: display-subsystem {
> compatible = "rockchip,display-subsystem";
> ports = <_out>, <_out>;
> diff --git a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi 
> b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
> index bffaa3edf3..63d87e16e1 100644
> --- a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
> +++ b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
> @@ -16,6 +16,12 @@
> serial2 = 
> spi0 = 
> };
> +
> +   dmc {
> +   u-boot,dm-pre-reloc;
> +   compatible = "rockchip,px30-dmc", "syscon";
> +   reg = <0x0 0xff2a 0x0 0x1000>;
> +   };
>  };
>
>  /* U-Boot clk driver for px30 cannot set GPU_CLK */
> @@ -32,10 +38,6 @@
> <1>, <1700>;
>  };
>
> - {
> -   u-boot,dm-pre-reloc;
> -};
> -
>   {
> u-boot,dm-pre-reloc;
>  };
> --
> 2.25.1
>

Any chance to apply these?


[PATCH v2 1/3] arm64: dts: rockchip: px30: Move dmc into -u-boot.dtsi

2021-11-15 Thread Jagan Teki
dmc node is specific to U-Boot, it is always better practice
to maintain U-Boot specific nodes into -u-boot.dtsi files
in order to maintain Linux dts file sync compatibility.

Move the dmc into px30-u-boot.dtsi, also add dmc node
explicitly in rk3326-odroid-go2-u-boot.dtsi since it is
using px30.dts.

Signed-off-by: Jagan Teki 
---
Changes for v2:
- none

 arch/arm/dts/px30-u-boot.dtsi  | 10 ++
 arch/arm/dts/px30.dtsi |  5 -
 arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 10 ++
 3 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/arch/arm/dts/px30-u-boot.dtsi b/arch/arm/dts/px30-u-boot.dtsi
index 029c8fbd8d..bbed7dcde5 100644
--- a/arch/arm/dts/px30-u-boot.dtsi
+++ b/arch/arm/dts/px30-u-boot.dtsi
@@ -13,6 +13,12 @@
u-boot,spl-boot-order = , 
};
 
+   dmc {
+   u-boot,dm-pre-reloc;
+   compatible = "rockchip,px30-dmc", "syscon";
+   reg = <0x0 0xff2a 0x0 0x1000>;
+   };
+
rng: rng@ff0b {
compatible = "rockchip,cryptov2-rng";
reg = <0x0 0xff0b 0x0 0x4000>;
@@ -20,10 +26,6 @@
};
 };
 
- {
-   u-boot,dm-pre-reloc;
-};
-
  {
clock-frequency = <2400>;
u-boot,dm-pre-reloc;
diff --git a/arch/arm/dts/px30.dtsi b/arch/arm/dts/px30.dtsi
index ef706486dc..ef77b7b997 100644
--- a/arch/arm/dts/px30.dtsi
+++ b/arch/arm/dts/px30.dtsi
@@ -151,11 +151,6 @@
interrupt-affinity = <>, <>, <>, <>;
};
 
-   dmc: dmc {
-   compatible = "rockchip,px30-dmc", "syscon";
-   reg = <0x0 0xff2a 0x0 0x1000>;
-   };
-
display_subsystem: display-subsystem {
compatible = "rockchip,display-subsystem";
ports = <_out>, <_out>;
diff --git a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi 
b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
index bffaa3edf3..63d87e16e1 100644
--- a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
+++ b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
@@ -16,6 +16,12 @@
serial2 = 
spi0 = 
};
+
+   dmc {
+   u-boot,dm-pre-reloc;
+   compatible = "rockchip,px30-dmc", "syscon";
+   reg = <0x0 0xff2a 0x0 0x1000>;
+   };
 };
 
 /* U-Boot clk driver for px30 cannot set GPU_CLK */
@@ -32,10 +38,6 @@
<1>, <1700>;
 };
 
- {
-   u-boot,dm-pre-reloc;
-};
-
  {
u-boot,dm-pre-reloc;
 };
-- 
2.25.1