Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2309467pxv; Sat, 26 Jun 2021 16:34:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfhsOJniIKrKZSQ1M0YQSvnhk+sMfws8x1at3+k9b7Q6SWZW1hQveSez2Bphz6Q890LoKm X-Received: by 2002:a92:b506:: with SMTP id f6mr12526977ile.148.1624750488339; Sat, 26 Jun 2021 16:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624750488; cv=none; d=google.com; s=arc-20160816; b=PfQpgq6XSGzw2GAv0gce4eyxgWjOXO2Tt8ehYX3N39gTU1294r/1aVoodnpBYwngZT M/4Inzmgr+72nujydWLC7O1FTxuJX7+bdqbSLgTunXmuGGYokFaDfefXgMujzjyGhahj kNQxAlpKAOv6NMMcoBmxwlMMYd5BDTOX2FDiL7ejYmrxGEDw0cYTdHiPqFcUMlaMWJ6d jDJfIl64q+HoYP6Nm4i/eP7YhpGB6jPu8eSF+1Fi8pSuyp9Oy++QzifJFYrQTZtgY1Qf YOYjfIvYZ6GM2/izU+vihC+Q8/DHL9lrXq2tphDcRreyUwT5KOWbuWx92TMk9I/BQceJ agkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YOnsGzzWOlrHY0RCKEB+/+ZV533zQjZgkUIjEE4JgCU=; b=KJAb3mFk2lChLLpbwcgTmC8BC1NB73VvHby/7VNjwbblmrhRceeap9BevJierhwVJS UR+2xSHmNUkMt61X1qAbbjmGQcAfr5gRUMlWCANTmL5/Z8fbYgcSRO31Ef8cl6UBHhKR QTIKJ+0FGaqwfnuUcyE8fK0gVDlo0CqSoTvQbrN44nH0X1Zqab1wY9HvaKx/m7c7t5Di zIi0tKG7wMyHwB54JvQra36k8bCS9xxBaf6O1u+qMCIGEnUcvTw64ZOmsW/7ViyG/TSK nb7XASdnL8grshz/1BE2CUAj3saA9uPxW0SshjXnfs6t+8WXyEG3ki/JNyoJurCsydXY Xhkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=G0rvLrMD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n5si11820803ilj.6.2021.06.26.16.34.37; Sat, 26 Jun 2021 16:34:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=G0rvLrMD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230161AbhFZXg3 (ORCPT + 99 others); Sat, 26 Jun 2021 19:36:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56767 "EHLO mout02.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbhFZXg2 (ORCPT ); Sat, 26 Jun 2021 19:36:28 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 87E5D2400E5 for ; Sun, 27 Jun 2021 01:34:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1624750444; bh=JeORn0wzi/Pu/QO65imy4jO5dUBCfYL8bqgtjgUWze0=; h=Date:From:To:Cc:Subject:From; b=G0rvLrMD8U9cmFSF3dhOSHQs8Sgk7c12GaCw+B/FnCBkw/dbRDY87FMP8s58A0yP7 f7OQfF5t3lGh+vq5BcPML3l+5onT+kVHskAZEtsanYWU11+AZdzLl5syf7m80iqh+o I+Ae0rIh7kO71qPbZnBsDNGmC4TmIplCA0kLMLTLMxajevZK5nXQIZSQ2elwtfAbzM RdyfZPNk3xF/YuWPO5O8fyhwCzHCbLSZq9eBG6bngnGrZT7euEUTQj6YHZ0Y7oplt+ hq2Ob7QbrPLfBvR6Lr8N1nxfJbOiuDXN2lAYNvCz2NkxfZ10c0nY67cf8UdO01XHww Bdq3AYzwFttjA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GC9Dp28q1z9rxH; Sun, 27 Jun 2021 01:34:02 +0200 (CEST) Date: Sat, 26 Jun 2021 23:34:01 +0000 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: Emmanuel Gil Peyrot Cc: Srinivas Kandagatla , linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, Ash Logan , Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , Rob Herring , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/4] powerpc: wii.dts: Expose the OTP on this platform Message-ID: References: <20210519095044.4109-1-linkmauve@linkmauve.fr> <20210519095044.4109-4-linkmauve@linkmauve.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AdirIyIEOXEflO+W" Content-Disposition: inline In-Reply-To: <20210519095044.4109-4-linkmauve@linkmauve.fr> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --AdirIyIEOXEflO+W Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 19, 2021 at 11:50:43AM +0200, Emmanuel Gil Peyrot wrote: > This can be used by the newly-added nintendo-otp nvmem module. >=20 > Signed-off-by: Emmanuel Gil Peyrot > --- > arch/powerpc/boot/dts/wii.dts | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts > index aaa381da1906..7837c4a3f09c 100644 > --- a/arch/powerpc/boot/dts/wii.dts > +++ b/arch/powerpc/boot/dts/wii.dts > @@ -219,6 +219,11 @@ control@d800100 { > reg =3D <0x0d800100 0x300>; > }; > =20 > + otp@d8001ec { > + compatible =3D "nintendo,hollywood-otp"; > + reg =3D <0x0d8001ec 0x8>; The OTP registers overlap with the previous node, control@d800100. Not sure what's the best way to structure the devicetree in this case, maybe something roughly like the following (untested, unverified): control@d800100 { compatible =3D "nintendo,hollywood-control", "simple-mfd"; reg =3D <0x0d800100 0x300>; ranges; otp@d8001ec { compatible =3D "nintendo,hollywood-otp"; reg =3D <0x0d8001ec 0x8>; }; }; Thanks, Jonathan Neusch=C3=A4fer --AdirIyIEOXEflO+W Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEvHAHGBBjQPVy+qvDCDBEmo7zX9sFAmDXuWkACgkQCDBEmo7z X9tvzBAAhBVGIh0LX0XckUdyK/Mf844H2Sz6NoqeJvEeiEAgrqri2Lu+4fCoeXER d8Ll/zsvx97oEN7D5zpJd8OkDTVAJm/Mi+wGxJpEoAA9YpcwUgy6u6iHOGDne0Ad XObW1M5WEIoui+A520Rc4HWU8L18gAnGXS8gy8Ekh7SFkr7S+hQECo+x8ssLEX6d pct1h4Z5kPHvj38nTmIzNUhi8WWPihvVvlE+zhrhR+FOpFFQTBPBqe950/1tGic6 qOpPa1eeuQIk7T9NDlF5a7i3eMoPwL9OMfz8i/jhb5ALM45trbEo/A09GD1kjtLE fx1G86a4QidPN4ps64eMQbHgeE6ciI+nTtZl5ntXwFm+6N5lWxZRN52Kh0ibpUQK F8oFj+2i3eNA+KjO12TD3ZKpAGQiZhTx4JIrGni6STRPnvYrNwSJ9TfpiEzs0wJ0 L6ZLMf/yLzoLyHqk8N6DvZmQN79ZbvvF6tqAHg0qX/EIbx1k7kLuqJ3gd1spOtsh UE/3WQfqbZBxfFJIDewzCHtCWcFA22e1HSPgevKZXFL+fe2ePIiO4Q/c8MmXTY1P bpLjTyaFDrZ1mG9K3x5PwHOlBI3uOmpCzSm9zIysu5rOKVQo96CaNGhkHUOAdJNK MALu5woA7Chz0z4P9G7+pAuqOJBHzcqRaqLpdXZ/S0BHJibHLSQ= =EH1y -----END PGP SIGNATURE----- --AdirIyIEOXEflO+W--