Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp743092pxy; Sun, 1 Aug 2021 00:41:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmVhgfrY/XiZHqAhARnmtCzUizUKCKvYnQVlt+qu/gwbPNJNqwphqsaRQtTe9WB1c8mrTx X-Received: by 2002:a6b:3bc3:: with SMTP id i186mr195508ioa.64.1627803679695; Sun, 01 Aug 2021 00:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627803679; cv=none; d=google.com; s=arc-20160816; b=1FwBVs5BGP4K8n10ZNIOOukMsOFkEsFytCXWsdkpevv7pyg801OYo3KckHFWz980t8 RdF7SdNy18p8gOsHFyFejbhA8VYis0KUYmNdIujKknG3LIt1q31dk5K1o3Qt6KEMQO2v pBzWsuv2fPAcEM1mFmqcYWd2dOGUzXMgL0IQanlwURERlX5GiDvVzpJZkm3ZXuC5ryiw OPlgTJuwHSweI73Fi9CsC7Rv97au/6Wz/5eJTy2/qC1dbBzpvF7kYObMwB+pZlNfTKjR fJ2d9VXGQWHkwrHWEG0b12w0xY2jmcMpwirilaC3N7n3HVCa70eF8uD/oWkO3tVkHtAd mjTg== 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=WAI9QYFZIVtcIg6oY/3QkrO/ARbpPP6uOYkbxIvfWPc=; b=hmIR00wpzbXARyT0tS6ia/Z4e4qDuBD0aXQtaWtcHi/bSQcVykXBtMyBoxCPOr5WkI ksm/5n6zGyG6Fq6e8qQu54x7Q/Fc5lNx7/cZm7uctdGRyEabjtIPCUN+I7gHH5uWHad4 p3iJkzvpnxulwi4QpzMt1808SpUPxxDrW3aEi1DEc/hI4XfkR/zBLKyzq+giAxvikXw8 RprL63W+TpvetK9I/JO1aDStlzpRHK1NMYUZuC629b+hVUKoZgVhHsCAlUobcpWd0Di0 /AQCR4wsViU2QNlvTf/ZaTujb6YMA4lmMERJHfa2Jk+YWB4NB7NVYVabrKpDdRvS52vI QxKA== 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 q8si9473539ilo.95.2021.08.01.00.41.08; Sun, 01 Aug 2021 00:41:19 -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 S231220AbhHAHiu (ORCPT + 99 others); Sun, 1 Aug 2021 03:38:50 -0400 Received: from 82-65-109-163.subs.proxad.net ([82.65.109.163]:60462 "EHLO luna.linkmauve.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230408AbhHAHim (ORCPT ); Sun, 1 Aug 2021 03:38:42 -0400 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id 31F91F409C8; Sun, 1 Aug 2021 09:38:29 +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 2/5] dt-bindings: nintendo-otp: Document the Wii and Wii U OTP support Date: Sun, 1 Aug 2021 09:38:19 +0200 Message-Id: <20210801073822.12452-3-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both of these consoles use the exact same two registers, even at the same address, but the Wii U has eight banks of 128 bytes memory while the Wii only has one, hence the two compatible strings. Signed-off-by: Emmanuel Gil Peyrot --- .../bindings/nvmem/nintendo-otp.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/nintendo-otp.yaml diff --git a/Documentation/devicetree/bindings/nvmem/nintendo-otp.yaml b/Documentation/devicetree/bindings/nvmem/nintendo-otp.yaml new file mode 100644 index 000000000000..dbe4ffdd644c --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/nintendo-otp.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/nintendo-otp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nintendo Wii and Wii U OTP Device Tree Bindings + +description: | + This binding represents the OTP memory as found on a Nintendo Wii or Wii U, + which contains common and per-console keys, signatures and related data + required to access peripherals. + + See https://wiiubrew.org/wiki/Hardware/OTP + +maintainers: + - Emmanuel Gil Peyrot + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + enum: + - nintendo,hollywood-otp + - nintendo,latte-otp + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + otp@d8001ec { + compatible = "nintendo,latte-otp"; + reg = <0x0d8001ec 0x8>; + }; + +... -- 2.32.0