Message ID | 1401261843-6964-2-git-send-email-phil.edworthy@renesas.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Hi Phil, Thank you for the patch. On Wednesday 28 May 2014 08:23:56 Phil Edworthy wrote: > This patch adds the device tree clock nodes for PCIe > > Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> > --- > arch/arm/boot/dts/r8a7790.dtsi | 6 +++--- > include/dt-bindings/clock/r8a7790-clock.h | 1 + > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi > index 7ff2960..ae7d3da 100644 > --- a/arch/arm/boot/dts/r8a7790.dtsi > +++ b/arch/arm/boot/dts/r8a7790.dtsi > @@ -754,17 +754,17 @@ > reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>; > clocks = <&hp_clk>, <&cp_clk>, <&mmc1_clk>, <&sd3_clk>, > <&sd2_clk>, <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks > R8A7790_CLK_SD0>, <&mmc0_clk>, > - <&hp_clk>, <&hp_clk>, <&rclk_clk>; > + <&hp_clk>, <&hp_clk>, <&rclk_clk>, <&mp_clk>; > #clock-cells = <1>; > renesas,clock-indices = < > R8A7790_CLK_IIC2 R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 > R8A7790_CLK_SDHI3 > R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0 > R8A7790_CLK_MMCIF0 > - R8A7790_CLK_IIC0 R8A7790_CLK_IIC1 R8A7790_CLK_CMT1 > + R8A7790_CLK_IIC0 R8A7790_CLK_IIC1 R8A7790_CLK_CMT1 > R8A7790_CLK_PCIE We try to keep the entries sorted by bit number. Could you this please insert the PCIE clock at the right position (between IIC0 and IIC1) ? Don't forget to update the clocks and clock-output-names properties accordingly. > >; > > clock-output-names = > "iic2", "tpu0", "mmcif1", "sdhi3", > "sdhi2", "sdhi1", "sdhi0", "mmcif0", > - "iic0", "iic1", "cmt1"; > + "iic0", "iic1", "cmt1", "pcie"; > }; > mstp5_clks: mstp5_clks@e6150144 { > compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp- clocks"; > diff --git a/include/dt-bindings/clock/r8a7790-clock.h > b/include/dt-bindings/clock/r8a7790-clock.h index 1118f7a..e0a6e38 100644 > --- a/include/dt-bindings/clock/r8a7790-clock.h > +++ b/include/dt-bindings/clock/r8a7790-clock.h > @@ -59,6 +59,7 @@ > #define R8A7790_CLK_SDHI0 14 > #define R8A7790_CLK_MMCIF0 15 > #define R8A7790_CLK_IIC0 18 > +#define R8A7790_CLK_PCIE 19 The datasheet documents the MSTP bit as "PCIEC". Would it make sense to use the same name here, and in the clock-output-names property ? The same comments apply to patch 2/8. > #define R8A7790_CLK_IIC1 23 > #define R8A7790_CLK_SSUSB 28 > #define R8A7790_CLK_CMT1 29
Hi Laurent, On 09 June 2014 11:29, Laurent wrote: > On Wednesday 28 May 2014 08:23:56 Phil Edworthy wrote: > > This patch adds the device tree clock nodes for PCIe > > > > Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> > > --- > > arch/arm/boot/dts/r8a7790.dtsi | 6 +++--- > > include/dt-bindings/clock/r8a7790-clock.h | 1 + > > 2 files changed, 4 insertions(+), 3 deletions(-) > > > > diff --git a/arch/arm/boot/dts/r8a7790.dtsi > b/arch/arm/boot/dts/r8a7790.dtsi > > index 7ff2960..ae7d3da 100644 > > --- a/arch/arm/boot/dts/r8a7790.dtsi > > +++ b/arch/arm/boot/dts/r8a7790.dtsi > > @@ -754,17 +754,17 @@ > > reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>; > > clocks = <&hp_clk>, <&cp_clk>, <&mmc1_clk>, > <&sd3_clk>, > > <&sd2_clk>, <&cpg_clocks > R8A7790_CLK_SD1>, <&cpg_clocks > > R8A7790_CLK_SD0>, <&mmc0_clk>, > > - <&hp_clk>, <&hp_clk>, <&rclk_clk>; > > + <&hp_clk>, <&hp_clk>, <&rclk_clk>, > <&mp_clk>; > > #clock-cells = <1>; > > renesas,clock-indices = < > > R8A7790_CLK_IIC2 R8A7790_CLK_TPU0 > R8A7790_CLK_MMCIF1 > > R8A7790_CLK_SDHI3 > > R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 > R8A7790_CLK_SDHI0 > > R8A7790_CLK_MMCIF0 > > - R8A7790_CLK_IIC0 R8A7790_CLK_IIC1 > R8A7790_CLK_CMT1 > > + R8A7790_CLK_IIC0 R8A7790_CLK_IIC1 > R8A7790_CLK_CMT1 > > R8A7790_CLK_PCIE > > We try to keep the entries sorted by bit number. Could you this please insert > the PCIE clock at the right position (between IIC0 and IIC1) ? Don't forget to > update the clocks and clock-output-names properties accordingly. No problem, will do. > > >; > > > > clock-output-names = > > "iic2", "tpu0", "mmcif1", "sdhi3", > > "sdhi2", "sdhi1", "sdhi0", "mmcif0", > > - "iic0", "iic1", "cmt1"; > > + "iic0", "iic1", "cmt1", "pcie"; > > }; > > mstp5_clks: mstp5_clks@e6150144 { > > compatible = "renesas,r8a7790-mstp-clocks", > "renesas,cpg-mstp- > clocks"; > > diff --git a/include/dt-bindings/clock/r8a7790-clock.h > > b/include/dt-bindings/clock/r8a7790-clock.h index 1118f7a..e0a6e38 > 100644 > > --- a/include/dt-bindings/clock/r8a7790-clock.h > > +++ b/include/dt-bindings/clock/r8a7790-clock.h > > @@ -59,6 +59,7 @@ > > #define R8A7790_CLK_SDHI0 14 > > #define R8A7790_CLK_MMCIF0 15 > > #define R8A7790_CLK_IIC0 18 > > +#define R8A7790_CLK_PCIE 19 > > The datasheet documents the MSTP bit as "PCIEC". Would it make sense to > use > the same name here, and in the clock-output-names property ? > > The same comments apply to patch 2/8. Sure. > > #define R8A7790_CLK_IIC1 23 > > #define R8A7790_CLK_SSUSB 28 > > #define R8A7790_CLK_CMT1 29 Thanks Phil -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 7ff2960..ae7d3da 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -754,17 +754,17 @@ reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>; clocks = <&hp_clk>, <&cp_clk>, <&mmc1_clk>, <&sd3_clk>, <&sd2_clk>, <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>, <&mmc0_clk>, - <&hp_clk>, <&hp_clk>, <&rclk_clk>; + <&hp_clk>, <&hp_clk>, <&rclk_clk>, <&mp_clk>; #clock-cells = <1>; renesas,clock-indices = < R8A7790_CLK_IIC2 R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3 R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0 R8A7790_CLK_MMCIF0 - R8A7790_CLK_IIC0 R8A7790_CLK_IIC1 R8A7790_CLK_CMT1 + R8A7790_CLK_IIC0 R8A7790_CLK_IIC1 R8A7790_CLK_CMT1 R8A7790_CLK_PCIE >; clock-output-names = "iic2", "tpu0", "mmcif1", "sdhi3", "sdhi2", "sdhi1", "sdhi0", "mmcif0", - "iic0", "iic1", "cmt1"; + "iic0", "iic1", "cmt1", "pcie"; }; mstp5_clks: mstp5_clks@e6150144 { compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks"; diff --git a/include/dt-bindings/clock/r8a7790-clock.h b/include/dt-bindings/clock/r8a7790-clock.h index 1118f7a..e0a6e38 100644 --- a/include/dt-bindings/clock/r8a7790-clock.h +++ b/include/dt-bindings/clock/r8a7790-clock.h @@ -59,6 +59,7 @@ #define R8A7790_CLK_SDHI0 14 #define R8A7790_CLK_MMCIF0 15 #define R8A7790_CLK_IIC0 18 +#define R8A7790_CLK_PCIE 19 #define R8A7790_CLK_IIC1 23 #define R8A7790_CLK_SSUSB 28 #define R8A7790_CLK_CMT1 29
This patch adds the device tree clock nodes for PCIe Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> --- arch/arm/boot/dts/r8a7790.dtsi | 6 +++--- include/dt-bindings/clock/r8a7790-clock.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-)