Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2448277pxv; Sat, 3 Jul 2021 09:03:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxo+uBS9uwNQV43zWQkSHIxZHq8a3mTTOjgPUTaw/7Aw7nKbJXoL/2MNVgcxFtc07UnZSW X-Received: by 2002:a02:ccab:: with SMTP id t11mr4302134jap.1.1625328221149; Sat, 03 Jul 2021 09:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625328221; cv=none; d=google.com; s=arc-20160816; b=r15HLNKjA0iouDC1280kW8xdAZCxJKOloeUiw0CEp/cIKZNUhtIGJ7PMoIS1fumuS5 2ByQG1hITXohSDHB2xqDqAodeOxZgbdCOPx/nccP+raJJ+4UwWUi4YWz9bQpc8aGyL9R GaYv4UCoxWT1EFQCV/QRmrjkRvbq5Bg/GDWs7WyOYsZs0KhZO5OCNEkSS5y74Ji9oe+m W/TfIZQI2vpM5tbhFVbcAQMGVfj2fkk9ElaPA1ooAMCf8q8Fp8/q7M4euClcjy2GSXV3 t2vxVWJo5YNhAOKw+Q7tmi2N6P08x7WpL3UhT0BP26wOrTx7tDK1tmY0SiBQjzqpJyKI uUxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GpME0tczG1NiIfdurPqt20TsT5owtElzgFBSfYXFmCQ=; b=qbLXYsEsgBLutu9bvCT/kwBwuYIv7qxqqff2fVLxnRnnxZg1aPsl8QwEryyJK/PaOY i4st9G5+HJZrars4N5zEPG8RQKlW+CKcTymqsrDP/6qt/LGmGr9oSuCZhSwFWLpqDL2Z 7nZyRHmjoiXrrX4j7SMvHPEPKEJiNtxnv1EevVBuuZlhHatx82Fu8A3uSDrSobaXDxoE iSj5KihNbdKI09T5IZ3qq+9XU3EpFvUZRKBz8YEDZHxn4TV9ErTxffJnUI1pBNxYViHr SQwHw5BC922jdF0h1jNASCBadrQRhIzf0PUhf60CtXeTfcJmSAmZEbm5K0P8bEROjP4x iGjQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q15si7832497jaj.59.2021.07.03.09.03.28; Sat, 03 Jul 2021 09:03:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbhGCQFN (ORCPT + 99 others); Sat, 3 Jul 2021 12:05:13 -0400 Received: from gate.crashing.org ([63.228.1.57]:47667 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbhGCQFN (ORCPT ); Sat, 3 Jul 2021 12:05:13 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 163Fs1rg021323; Sat, 3 Jul 2021 10:54:01 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 163FrvdE021319; Sat, 3 Jul 2021 10:53:57 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Sat, 3 Jul 2021 10:53:57 -0500 From: Segher Boessenkool To: Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Cc: Emmanuel Gil Peyrot , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Srinivas Kandagatla , Ash Logan , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 3/4] powerpc: wii.dts: Expose the OTP on this platform Message-ID: <20210703155357.GG1583@gate.crashing.org> References: <20210519095044.4109-1-linkmauve@linkmauve.fr> <20210519095044.4109-4-linkmauve@linkmauve.fr> <20210701195655.knbcikdga57a7epx@luna> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 02, 2021 at 08:56:31AM +0000, Jonathan Neuschäfer wrote: > On Thu, Jul 01, 2021 at 09:56:55PM +0200, Emmanuel Gil Peyrot wrote: > > On Sat, Jun 26, 2021 at 11:34:01PM +0000, Jonathan Neuschäfer wrote: > > > On Wed, May 19, 2021 at 11:50:43AM +0200, Emmanuel Gil Peyrot wrote: > [...] > > > > + otp@d8001ec { > > > > + compatible = "nintendo,hollywood-otp"; > > > > + reg = <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): > > [snip] > > > > I couldn’t get this to work, but additionally it looks like it should > > start 0x100 earlier and contain pic1@d800030 and gpio@d8000c0, given > > https://wiibrew.org/wiki/Hardware/Hollywood_Registers > > > > Would it make sense, for the time being, to reduce the size of this > > control@d800100 device to the single register currently being used by > > arch/powerpc/platforms/embedded6xx/wii.c (0xd800194, used to reboot the > > system) and leave the refactor of restart + OTP + PIC + GPIO for a > > future series? > > Makes sense to me! There is no benefit to pretending there is a "control" bus (there is no such thing), it only gets in the way. Segher