Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp742868pxy; Sun, 1 Aug 2021 00:40:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSy0tsqDVqvkqa0r0XR0gqRzAuBM4LElukDTw5O4Ad5o8qFJP8/3/Aevt7+2hsV3JaVJwf X-Received: by 2002:a5e:c006:: with SMTP id u6mr7758034iol.66.1627803653788; Sun, 01 Aug 2021 00:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627803653; cv=none; d=google.com; s=arc-20160816; b=J++InWulioBwWuAFKqxBv7zShn8QLcV+kNOlrmu+IrvrFLKlpOTKTbGWvBZZsWTPt7 q2W4ClmVmn8MIXBE6BMxN7+AyoITbMYAsGP5WayAgngoUM4qGCkJZGMobmfMj31nnQL1 VKiLyICnnkwj/Y4s3UkHiozmN/tPuaRXLCqVkDzeE18eN/3Y6mD8RFpyaA9blwceFS+K LNJkD451inXGA/kdIho/H2VJ0diMKQWL7olytIdARNneccvxA7aekvAZYw5Gvdz3s1rR thu+ZY0Bd3x9qKk09F4X7SNKe8N8tjzeIYknQupHyZxhkG5c1y9E73dsWYosf6UxC0oe h6zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Hn+x4tMiqX88dG351c0Xc4qEj7XWCMLqXMa8m1qK0cM=; b=Iqwaw3dg93nq1oQgocoOAJctcp1tBdZEUUoUmQwG1t13WBN+13johTvvEtozzsKAJF vrD8WNC/+Wa4qJq/A30rbT/BTWo1s3u7lyvUOw5gc57dg9f3I9Cx1NINCatq6hqOhENm rLfKyGPFTWmRBhDknvZ0NuSI080k2AvjwBbz9CpovF5FoWtO4nI95I1OxhpBbaNw2azy gZFihNomebDyTBbfaDqG3bhftO6hu4GKr2l/QqHiTP1oBakUPc4tH+7STEeilYzgrH7U LMD+9OToAmc9TIJ8/79I7yLVZ7ZdA8D/6pnEQGOQpzVJZ58P5lqbaCa4UUS26/+tNz6S DsVw== 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 b3si8208407iln.124.2021.08.01.00.40.42; Sun, 01 Aug 2021 00:40:53 -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 S230504AbhHAHim (ORCPT + 99 others); Sun, 1 Aug 2021 03:38:42 -0400 Received: from 82-65-109-163.subs.proxad.net ([82.65.109.163]:60480 "EHLO luna.linkmauve.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbhHAHij (ORCPT ); Sun, 1 Aug 2021 03:38:39 -0400 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id E65D9F409D0; Sun, 1 Aug 2021 09:38:30 +0200 (CEST) From: Emmanuel Gil Peyrot To: Rob Herring , linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org Cc: Emmanuel Gil Peyrot , Ash Logan , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Srinivas Kandagatla , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linux-kernel@vger.kernel.org Subject: [PATCH v4 3/5] powerpc: wii.dts: Reduce the size of the control area Date: Sun, 1 Aug 2021 09:38:20 +0200 Message-Id: <20210801073822.12452-4-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210801073822.12452-1-linkmauve@linkmauve.fr> References: <20210701225743.14631-1-linkmauve@linkmauve.fr> <20210801073822.12452-1-linkmauve@linkmauve.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is wrong, but needed in order to avoid overlapping ranges with the OTP area added in the next commit. A refactor of this part of the device tree is needed: according to Wiibrew[1], this area starts at 0x0d800000 and spans 0x400 bytes (that is, 0x100 32-bit registers), encompassing PIC and GPIO registers, amongst the ones already exposed in this device tree, which should become children of the control@d800000 node. [1] https://wiibrew.org/wiki/Hardware/Hollywood_Registers Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/boot/dts/wii.dts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts index aaa381da1906..c5fb54f8cc02 100644 --- a/arch/powerpc/boot/dts/wii.dts +++ b/arch/powerpc/boot/dts/wii.dts @@ -216,7 +216,13 @@ AVE: audio-video-encoder@70 { control@d800100 { compatible = "nintendo,hollywood-control"; - reg = <0x0d800100 0x300>; + /* + * Both the address and length are wrong, according to + * Wiibrew this should be <0x0d800000 0x400>, but it + * requires refactoring the PIC1 and GPIO nodes before + * changing that. + */ + reg = <0x0d800100 0xa0>; }; disk@d806000 { -- 2.32.0