Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758737AbbKSPbN (ORCPT ); Thu, 19 Nov 2015 10:31:13 -0500 Received: from hqemgate14.nvidia.com ([216.228.121.143]:3224 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757815AbbKSPbK (ORCPT ); Thu, 19 Nov 2015 10:31:10 -0500 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Thu, 19 Nov 2015 07:19:18 -0800 Date: Thu, 19 Nov 2015 16:30:59 +0100 From: Thierry Reding To: Andy Yan CC: Andy Yan , Rob Herring , , , , , , , , , , , , , , Subject: Re: [PATCH v3 2/5] dt-bindings: soc: add document for rockchip reboot notifier driver Message-ID: <20151119153057.GA12486@ulmo.nvidia.com> References: <1447840044-19689-1-git-send-email-andy.yan@rock-chips.com> <1447840410-19794-1-git-send-email-andy.yan@rock-chips.com> <20151118225904.GA5429@rob-hp-laptop> <564D2331.8070503@rock-chips.com> <20151119125643.GE21862@ulmo.nvidia.com> MIME-Version: 1.0 In-Reply-To: X-NVConfidentiality: public User-Agent: Mutt/1.5.23+102 (2ca89bed6448) (2014-03-12) X-Originating-IP: [10.2.70.143] X-ClientProxiedBy: UKMAIL102.nvidia.com (10.26.138.15) To UKMAIL101.nvidia.com (10.26.138.13) Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3220 Lines: 83 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 19, 2015 at 09:39:02PM +0800, Andy Yan wrote: > Hi Thierry: >=20 > 2015-11-19 20:56 GMT+08:00 Thierry Reding : >=20 > > On Thu, Nov 19, 2015 at 09:17:37AM +0800, Andy Yan wrote: > > > Hi Rob: > > > > > > On 2015=E5=B9=B411=E6=9C=8819=E6=97=A5 06:59, Rob Herring wrote: > > > >On Wed, Nov 18, 2015 at 05:53:30PM +0800, Andy Yan wrote: > > > >>Add devicetree binding document for rockchip reboot nofifier driver > > > >Just reading the subject this is way too specific to the Linux driver > > > >needs rather than a h/w description. Please don't create fake DT nod= es > > > >just to bind to drivers. Whatever &pmu is is probably what should ha= ve > > > >the DT node. Let the driver for it create child devices if you need > > > >that. > > > > > > This is note a fake DT nodes, we really need it to tell the driver > > > which register to use to store the reboot mode. Because rockchip > > > use different register file to store the reboot mode on different > > > platform, on rk3066,rk3188, rk3288,it use one of the PMU regist= er, > > on > > > the incoming RK3036, it use one of the GRF register, and it use > > one of > > > the PMUGRF register for arm64 platform rk3368. On the other hand, > > the > > > PMU/GRF/PMUGRF register file are mapped as "syscon", then refere= nced > > > by other DT nodes by phandle. So maybe let it as a separate DT n= ode > > > here > > > is better. > > > > In that case you should probably implement a reboot notifier in each of > > the drivers you list and depending on the generation of the SoC. You can > > easily parameterize this by matching on the compatible string. > > > > Thierry > > >=20 > There is no rockchip specific driver for PMU/GRF/PMUGRF register file I > list above=EF=BC=8C they > use the generic driver =E2=80=9Csyscon=E2=80=9D Well, just go and write specific drivers, then. Thierry --/04w6evG8XlLl3ft Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJWTesvAAoJEN0jrNd/PrOhHj4P/jgDFfnxGQJI2CsF8EZJH6NF pUjx/bezYfSUjx+pov2f1Di1Xhdikh4e6dmEyTHVNgh8dBBvpYRxRbOrdlQemJVt NKfzDgh3U1tnzospyjKq/X6Izbkti+MHdvSz/iAJsEmqo1NHOfN5oLViTiZW00RT ST+C/ANTDxQkX5GIoCZlcOdGDGMitXSKosXaj5cxygWGbdl2VOvDENgDU6AwF9KB IbU2AekQMcC7cvezGkgxjST/9gQAGlozZyO8Cj9Nh0lzXxj9MuKPe3xV9xl9H4Xi QPy7LPaPZTaaN6XKbcnU5o5TtrxCp2LANyH7zXdjOW/6MRGu9kdDHzGd0f0yrjqV gM34ayQJGoyLmNwuc/yb+317xkNL5sDH6ijKWnU2stKonmS9jYGhpQ0/Rujv4d/1 IWvVbviZtnob6lzGB6u4aQ7d9LVvYLfqCo/9BTTgzVHji1bEC60ULI8cSX7ybxmP EKC01Naj/lqZFGNIL7xyjm7L9GkvaKvgWHXEWsLYkqWyRKIDfXwGn10nl0B7gNWO 1J+3LwYX6/anXkpIwjsmkfyRS7hSWZIvQ/ZRQjlqtBN686SbtEodkWtlH22rcUtw g3pm+C4yMhbkqPvqCnwsGHX7khIe8ruLFLvf/zfFbxO4Zc1WgPLpeDcSJf7aoWf3 Osex/mp6Tn6FZpKLZmiz =Q2JU -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft-- -- 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/