Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp937232pxb; Wed, 27 Oct 2021 15:36:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4Qs6MXvgZiRw9mA+g0YKP7wxTm2cgeOhX9fcmlr7BQPKO5OfBbi5zEhvbplcoAF+l+apu X-Received: by 2002:a17:902:d64d:b0:140:2cde:7f6d with SMTP id y13-20020a170902d64d00b001402cde7f6dmr302646plh.55.1635374216879; Wed, 27 Oct 2021 15:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635374216; cv=none; d=google.com; s=arc-20160816; b=Rmh/Q+0+AU+fv5ekUzWc0qkGujK7tDcSNNK39vYnh/2plTpZGjd22xkJ+xpBTZGH5n VzWYdGAv88/BmzyyHa5TTljo4yDQkEOPZzqIOQncRXvpYuIocVJaQo6kMpUaBptEeKXb ezd5RsmZbcY41SJHLtczRi9PfVQROo9LLjLxZqi9fqD+JW31zFvvl3xkt1EvfgmnuCxz z4inVI3UdD1sVXH/0CZKuLEtX190iYL3eVa72/Q5wA/sjo/bRRhs/0pwbRbK3mUqESZS t+nkRZ5gSAuYkegfKJvz0vCmb05N+o99Ek2zzi/ud2raUm1aOnsgNBmBQkAiqI/Fg91X /Jow== 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=wj2C8HiUPxN7dJOsIlvr4w/SlYPaRD4ctGdFyeTu67E=; b=x43a22edsbx/xD9u1EKq5i22FUZbNIfUu/75/eR4U5zg5qiCffps1mvJ0bsR8j6XL3 eTDJwKQYjf57W0Tax8zFQ/KtPELTaQ56DfeGVC+C4ztsBmOQ9O9WlgaFrxbo04mMFpQY onAjdzPNtfXmNrd15EB2FQpx2FM7ox8W33+57rC3PnjhLUHhPbzvW/ytbggAEVivyrwi RSYKKHx2u/RwakGdPUmJlKUXeAgM5yvVgkqxVLvixfIt8YZmuFLojjnz2vwoN6JbPumU hd9vnDSmDhyI/dSPz8wWze6JrgkQifiLmysmA0IctdcQeNNdjYC/hTydCH0iddUXQAmr QWaA== 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 lb10si8345899pjb.165.2021.10.27.15.36.44; Wed, 27 Oct 2021 15:36:56 -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 S230091AbhJ0WiC (ORCPT + 99 others); Wed, 27 Oct 2021 18:38:02 -0400 Received: from 82-65-109-163.subs.proxad.net ([82.65.109.163]:57430 "EHLO luna.linkmauve.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbhJ0Wh4 (ORCPT ); Wed, 27 Oct 2021 18:37:56 -0400 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id F2808F40CA4; Thu, 28 Oct 2021 00:35:23 +0200 (CEST) From: Emmanuel Gil Peyrot To: Alexandre Belloni , Alessandro Zummo Cc: Emmanuel Gil Peyrot , rw-r-r-0644 , Ash Logan , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Rob Herring , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org Subject: [PATCH v2 3/5] powerpc: wii.dts: Expose HW_SRNPROT on this platform Date: Thu, 28 Oct 2021 00:35:13 +0200 Message-Id: <20211027223516.2031-4-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211027223516.2031-1-linkmauve@linkmauve.fr> References: <20211014220524.9988-1-linkmauve@linkmauve.fr> <20211027223516.2031-1-linkmauve@linkmauve.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This Hollywood register isn’t properly understood, but can allow or reject access to the SRAM, which we need to set for RTC usage if it isn’t previously set correctly beforehand. See https://wiibrew.org/wiki/Hardware/Hollywood_Registers#HW_SRNPROT Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/boot/dts/wii.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts index c5720fdd0686..34d9732d5910 100644 --- a/arch/powerpc/boot/dts/wii.dts +++ b/arch/powerpc/boot/dts/wii.dts @@ -175,6 +175,11 @@ PIC1: pic1@d800030 { interrupts = <14>; }; + srnprot@d800060 { + compatible = "nintendo,hollywood-srnprot"; + reg = <0x0d800060 0x4>; + }; + GPIO: gpio@d8000c0 { #gpio-cells = <2>; compatible = "nintendo,hollywood-gpio"; -- 2.33.1