From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753447AbbCBJyJ (ORCPT ); Mon, 2 Mar 2015 04:54:09 -0500 Received: from down.free-electrons.com ([37.187.137.238]:51565 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750824AbbCBJyF (ORCPT ); Mon, 2 Mar 2015 04:54:05 -0500 Date: Mon, 2 Mar 2015 10:53:59 +0100 From: Alexandre Belloni To: Wenyou Yang Cc: nicolas.ferre@atmel.com, mark.rutland@arm.com, devicetree@vger.kernel.org, linux@arm.linux.org.uk, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, linux-kernel@vger.kernel.org, robh+dt@kernel.org, galak@codeaurora.org, linux@maxim.org.za, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: dts: at919260/at91sam9g20: fix SRAM device tree node Message-ID: <20150302095359.GJ4094@piout.net> References: <1425276209-4899-1-git-send-email-wenyou.yang@atmel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425276209-4899-1-git-send-email-wenyou.yang@atmel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wenyou, I'd prefer fixing the sram lookup in pm.c. I'll propose something however, I can't test on my side. On 02/03/2015 at 14:03:29 +0800, Wenyou Yang wrote : > Fix PM does not work on the at91sam9g20ek board > --->8--- > at91_pm_sram_init: failed to find sram device! > ---<8--- > > Signed-off-by: Wenyou Yang > --- > arch/arm/boot/dts/at91sam9260.dtsi | 9 +++++++-- > arch/arm/boot/dts/at91sam9g20.dtsi | 9 +++++---- > 2 files changed, 12 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/boot/dts/at91sam9260.dtsi b/arch/arm/boot/dts/at91sam9260.dtsi > index fff0ee6..d1eb27c 100644 > --- a/arch/arm/boot/dts/at91sam9260.dtsi > +++ b/arch/arm/boot/dts/at91sam9260.dtsi > @@ -69,9 +69,14 @@ > }; > }; > > - sram0: sram@002ff000 { > + sram0: sram@00200000 { > compatible = "mmio-sram"; > - reg = <0x002ff000 0x2000>; > + reg = <0x00200000 0x1000>; > + }; > + > + sram1: sram@00300000 { > + compatible = "mmio-sram"; > + reg = <0x00300000 0x1000>; > }; > > ahb { > diff --git a/arch/arm/boot/dts/at91sam9g20.dtsi b/arch/arm/boot/dts/at91sam9g20.dtsi > index f593016..eb9a62d 100644 > --- a/arch/arm/boot/dts/at91sam9g20.dtsi > +++ b/arch/arm/boot/dts/at91sam9g20.dtsi > @@ -16,13 +16,14 @@ > reg = <0x20000000 0x08000000>; > }; > > - sram0: sram@002ff000 { > - status = "disabled"; > + sram0: sram@00200000 { > + compatible = "mmio-sram"; > + reg = <0x00200000 0x4000>; > }; > > - sram1: sram@002fc000 { > + sram1: sram@00300000 { > compatible = "mmio-sram"; > - reg = <0x002fc000 0x8000>; > + reg = <0x00300000 0x4000>; > }; > > ahb { > -- > 1.7.9.5 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com