Re: [PATCH 0/7] arm64: dts: fsl: use the new clockgen constants

2021-01-10 Thread Shawn Guo
On Tue, Dec 29, 2020 at 12:47:33PM +0100, Michael Walle wrote:
> Since commit 4cb15934ba05 ("clk: qoriq: provide constants for the type")
> there are constants for better readabilty. This series will use them for
> all arm64 device trees.
> 
> This is just a mechanical change. The change was done with the following
> script:
> 
> $ sed -e 's/<&clockgen 0 \([0-9]\)>/<\&clockgen QORIQ_CLK_SYSCLK \1>/g' \
>   -e 's/<&clockgen 1 \([0-9]\)>/<\&clockgen QORIQ_CLK_CMUX \1>/g' \
>   -e 's/<&clockgen 2 \([0-9]\)>/<\&clockgen QORIQ_CLK_HWACCEL \1>/g' \
>   -e 's/<&clockgen 3 \([0-9]\)>/<\&clockgen QORIQ_CLK_FMAN \1>/g' \
>   -e 's/<&clockgen 4 0>/<\&clockgen QORIQ_CLK_PLATFORM_PLL 
> QORIQ_CLK_PLL_DIV(1)>/g' \
>   -e 's/<&clockgen 4 1>/<\&clockgen QORIQ_CLK_PLATFORM_PLL 
> QORIQ_CLK_PLL_DIV(2)>/g' \
>   -e 's/<&clockgen 4 3>/<\&clockgen QORIQ_CLK_PLATFORM_PLL 
> QORIQ_CLK_PLL_DIV(4)>/g' \
>   -e 's/<&clockgen 4 7>/<\&clockgen QORIQ_CLK_PLATFORM_PLL 
> QORIQ_CLK_PLL_DIV(8)>/g' \
>   -e 's/<&clockgen 4 15>/<\&clockgen QORIQ_CLK_PLATFORM_PLL 
> QORIQ_CLK_PLL_DIV(16)>/g' \
>   -i \
>  arm64/boot/dts/freescale/fsl-ls1012a.dtsi \
>  arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts \
>  arm64/boot/dts/freescale/fsl-ls1028a.dtsi \
>  arm64/boot/dts/freescale/fsl-ls1043a.dtsi \
>  arm64/boot/dts/freescale/fsl-ls1046a.dtsi \
>  arm64/boot/dts/freescale/fsl-ls1088a.dtsi \
>  arm64/boot/dts/freescale/fsl-ls2080a.dtsi \
>  arm64/boot/dts/freescale/fsl-ls2088a.dtsi \
>  arm64/boot/dts/freescale/fsl-ls208xa.dtsi \
>  arm64/boot/dts/freescale/fsl-lx2160a.dtsi \
>  boot/dts/freescale/qoriq-fman3-0.dtsi
> 
> Afterwards the changes were manually clean-up for proper indendation, the
> include file was added and split into individual commits per SoC.
> 
> Michael Walle (7):
>   arm64: dts: ls1012a: use constants in the clockgen phandle
>   arm64: dts: ls1028a: use constants in the clockgen phandle
>   arm64: dts: ls1043a: use constants in the clockgen phandle
>   arm64: dts: ls1046a: use constants in the clockgen phandle
>   arm64: dts: ls1088a: use constants in the clockgen phandle
>   arm64: dts: ls208xa: use constants in the clockgen phandle
>   arm64: dts: lx2160a: use constants in the clockgen phandle

Applied all, thanks.


[PATCH 0/7] arm64: dts: fsl: use the new clockgen constants

2020-12-29 Thread Michael Walle
Since commit 4cb15934ba05 ("clk: qoriq: provide constants for the type")
there are constants for better readabilty. This series will use them for
all arm64 device trees.

This is just a mechanical change. The change was done with the following
script:

$ sed -e 's/<&clockgen 0 \([0-9]\)>/<\&clockgen QORIQ_CLK_SYSCLK \1>/g' \
  -e 's/<&clockgen 1 \([0-9]\)>/<\&clockgen QORIQ_CLK_CMUX \1>/g' \
  -e 's/<&clockgen 2 \([0-9]\)>/<\&clockgen QORIQ_CLK_HWACCEL \1>/g' \
  -e 's/<&clockgen 3 \([0-9]\)>/<\&clockgen QORIQ_CLK_FMAN \1>/g' \
  -e 's/<&clockgen 4 0>/<\&clockgen QORIQ_CLK_PLATFORM_PLL 
QORIQ_CLK_PLL_DIV(1)>/g' \
  -e 's/<&clockgen 4 1>/<\&clockgen QORIQ_CLK_PLATFORM_PLL 
QORIQ_CLK_PLL_DIV(2)>/g' \
  -e 's/<&clockgen 4 3>/<\&clockgen QORIQ_CLK_PLATFORM_PLL 
QORIQ_CLK_PLL_DIV(4)>/g' \
  -e 's/<&clockgen 4 7>/<\&clockgen QORIQ_CLK_PLATFORM_PLL 
QORIQ_CLK_PLL_DIV(8)>/g' \
  -e 's/<&clockgen 4 15>/<\&clockgen QORIQ_CLK_PLATFORM_PLL 
QORIQ_CLK_PLL_DIV(16)>/g' \
  -i \
 arm64/boot/dts/freescale/fsl-ls1012a.dtsi \
 arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts \
 arm64/boot/dts/freescale/fsl-ls1028a.dtsi \
 arm64/boot/dts/freescale/fsl-ls1043a.dtsi \
 arm64/boot/dts/freescale/fsl-ls1046a.dtsi \
 arm64/boot/dts/freescale/fsl-ls1088a.dtsi \
 arm64/boot/dts/freescale/fsl-ls2080a.dtsi \
 arm64/boot/dts/freescale/fsl-ls2088a.dtsi \
 arm64/boot/dts/freescale/fsl-ls208xa.dtsi \
 arm64/boot/dts/freescale/fsl-lx2160a.dtsi \
 boot/dts/freescale/qoriq-fman3-0.dtsi

Afterwards the changes were manually clean-up for proper indendation, the
include file was added and split into individual commits per SoC.

Michael Walle (7):
  arm64: dts: ls1012a: use constants in the clockgen phandle
  arm64: dts: ls1028a: use constants in the clockgen phandle
  arm64: dts: ls1043a: use constants in the clockgen phandle
  arm64: dts: ls1046a: use constants in the clockgen phandle
  arm64: dts: ls1088a: use constants in the clockgen phandle
  arm64: dts: ls208xa: use constants in the clockgen phandle
  arm64: dts: lx2160a: use constants in the clockgen phandle

 .../arm64/boot/dts/freescale/fsl-ls1012a.dtsi |  60 +--
 .../fsl-ls1028a-kontron-sl28-var3-ads2.dts|   5 +-
 .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 162 +-
 .../arm64/boot/dts/freescale/fsl-ls1043a.dtsi |  73 +---
 .../arm64/boot/dts/freescale/fsl-ls1046a.dtsi |  73 +---
 .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi |  91 +++---
 .../arm64/boot/dts/freescale/fsl-ls2080a.dtsi |  17 +-
 .../arm64/boot/dts/freescale/fsl-ls2088a.dtsi |  17 +-
 .../arm64/boot/dts/freescale/fsl-ls208xa.dtsi |  85 ++---
 .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi |  92 ++
 .../boot/dts/freescale/qoriq-fman3-0.dtsi |   6 +-
 11 files changed, 465 insertions(+), 216 deletions(-)

-- 
2.20.1