Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755458AbcJTUhA (ORCPT ); Thu, 20 Oct 2016 16:37:00 -0400 Received: from up.free-electrons.com ([163.172.77.33]:39130 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752476AbcJTUg6 (ORCPT ); Thu, 20 Oct 2016 16:36:58 -0400 Date: Thu, 20 Oct 2016 22:36:54 +0200 From: Maxime Ripard To: LABBE Corentin Cc: Jean-Francois Moine , robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org, devicetree@vger.kernel.org, linux@armlinux.org.uk, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: dt: sun8i-h3: Add sunxi-sid to dts for sun8i-h3 Message-ID: <20161020203654.2erph2mr73yzksla@lukather> References: <1475660904-7959-1-git-send-email-clabbe.montjoie@gmail.com> <20161005122130.8cc229ff5d4990149956b49c@free.fr> <20161019074016.GA31440@Red> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uodovxcj3qappxtk" Content-Disposition: inline In-Reply-To: <20161019074016.GA31440@Red> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2970 Lines: 83 --uodovxcj3qappxtk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 19, 2016 at 09:40:16AM +0200, LABBE Corentin wrote: > On Wed, Oct 05, 2016 at 12:21:30PM +0200, Jean-Francois Moine wrote: > > On Wed, 5 Oct 2016 11:48:24 +0200 > > Corentin Labbe wrote: > >=20 > > > This patch add support for the sunxi-sid driver to the device tree fo= r sun8i-h3. > > >=20 > > > Signed-off-by: Corentin Labbe > > > --- > > > arch/arm/boot/dts/sun8i-h3.dtsi | 5 +++++ > > > 1 file changed, 5 insertions(+) > > >=20 > > > diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8= i-h3.dtsi > > > index 9f58bb4..abfd29c 100644 > > > --- a/arch/arm/boot/dts/sun8i-h3.dtsi > > > +++ b/arch/arm/boot/dts/sun8i-h3.dtsi > > > @@ -211,6 +211,11 @@ > > > #size-cells =3D <0>; > > > }; > > > =20 > > > + sid: eeprom@01c14200 { > > > + compatible =3D "allwinner,sun7i-a20-sid"; > > > + reg =3D <0x01c14200 0x200>; > >=20 > > The datasheet says 1Kb starting at 0x01c14000. > > Is there any reason to reduce the area and to shift the offset? > >=20 >=20 > According to http://linux-sunxi.org/SID_Register_Guide "For > Allwinner A83T and H3 the SID address space starts at 0x01c14000, > and the e-fuses are at offset 0x200". > > So I use this offset, since the sunxi_sid driver need the base > address of e-fuses. >=20 > The easiest solution is to use 0x01c14200 since the other part of > sid is not used and not known (A83T/H3 user manual doesnt give any > information on all sid space, worse for A64 which reference SID only > in memory map). >=20 > So probably for H3/A64/A83T, there will never any usage of the rest > of the SID address space. And since we can't know that, and we have to maintain the DT ABI, using the whole address map and an offset, with a new compatible, is definetely the safest thing to do. Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --uodovxcj3qappxtk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJYCSreAAoJEBx+YmzsjxAgCq8QALCSwXeeTqTVPiV4D8qUfBZg w2/IIaXKL8xhDsQjdHvvxO3VNafgQi9AeQMr5qCwRox77YgxVgtoYVFwu0iNGClh Q2clzK+x+qRLPIeA2gq0zjRGEf5aRLXaQA2H4F+JgGsFGmr8v5Z0MzFaFdgvoQ7L eHqD8sv+CrySHJIIYcF5Ov0KeSFgxEul9RE3/WWPYjsCnPJq8k+UoVXZ6QTottGO lHul8sBTjlxTz0uy7usS8sVcZx/tdA1dzOjZYylnshJXZlmOvuoCEbbOoPdi2SBt 8u+zL92uF/q+WWk3Mj5kovXZvWflouuxudKgwfRrdCBxo/var9KtuLntjNF/gr4w L7jSXOoFqJ8+iwWI85ouADHLe9cvOn4IOmMp8tfK6osIArdBMXIHxdvs1B5SfcI/ vg4MihOELhr53rc3wBkF3KSORnZd4NyaD67SKVekCd1FNsfKY4Cpw/ZpID04c+sN XglFYlWHX0E/g7k0MMjRP/2f/52m9WOr08dbb0TsybD1JBoQcvTz1+UxGvZLKQUL U/TF2sWfH0psxlEfiSAt3eS7GblqN/7ZIHytR0Xewmz/nDHdWp7Fper9cJYB+Acy uF9qsqgb02ujZIm/ngvLplUzPzUIZA1YH+yuWP5sVt7ToIf7dQmnC7wZdMGE7DmX EYF35QXryl63u2UXtnBZ =ugGQ -----END PGP SIGNATURE----- --uodovxcj3qappxtk--