Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1257937

Re: [PATCH V5 Base on RC7 3/3] Add reset controller for hi6220 SoC platform.

From Philipp Zabel <p.zabel@pengutronix.de>
Newsgroups linux.kernel
Subject Re: [PATCH V5 Base on RC7 3/3] Add reset controller for hi6220 SoC platform.
Date 2015-10-28 12:50 +0100
Message-ID <qoxoS-255-17@gated-at.bofh.it> (permalink)
References <qo9cR-3CL-7@gated-at.bofh.it> <qo9cT-3CL-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Am Dienstag, den 27.10.2015, 17:51 +0800 schrieb Chen Feng:
> reset: add driver for hi6220 reset controller
> 
> Signed-off-by: Chen Feng <puck.chen@hisilicon.com>
> ---
>  arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
> index 3f03380..3f055e2 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
> +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi
> @@ -167,5 +167,12 @@
>  			clocks = <&ao_ctrl 36>, <&ao_ctrl 36>;
>  			clock-names = "uartclk", "apb_pclk";
>  		};
> +
> +		reset_ctrl: reset_ctrl@f7030000 {
> +			compatible = "hisilicon,hi6220-reset-ctl";
> +			reg = <0x0 0xf7030000 0x0 0x1000>;
> +			#reset-cells = <1>;
> +		};
> +

While applying I just noticed that the device tree already contains a
node claiming the same address space:

	sys_ctrl: sys_ctrl@f7030000 {
		compatible = "hisilicon,hi6220-sysctrl", "syscon";
		reg = <0x0 0xf7030000 0x0 0x2000>;
		#clock-cells = <1>;
	};

It is documented in
Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt and
Documentation/devicetree/bindings/clock/hi6220-clock.txt.

Could you clarify whether the reset controls are just part of the
sys_ctrl block? If so, I think you should add #reset-cells = <1> to the
sys_ctrl node instead.

regards
Philipp

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V5 Base on RC7 1/3] Add DT bindings documentation for hi6220 SoC reset controller. Chen Feng <puck.chen@hisilicon.com> - 2015-10-27 11:00 +0100
  [PATCH V5 Base on RC7 3/3] Add reset controller for hi6220 SoC platform. Chen Feng <puck.chen@hisilicon.com> - 2015-10-27 11:00 +0100
    Re: [PATCH V5 Base on RC7 3/3] Add reset controller for hi6220 SoC  platform. Philipp Zabel <p.zabel@pengutronix.de> - 2015-10-28 12:50 +0100
      Re: [PATCH V5 Base on RC7 3/3] Add reset controller for hi6220 SoC  platform. chenfeng <puck.chen@hisilicon.com> - 2015-10-29 09:40 +0100
  [PATCH V5 Base on RC7 2/3] Add reset controller for hi6220 SoC platform. Chen Feng <puck.chen@hisilicon.com> - 2015-10-27 11:00 +0100

csiph-web