Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1048035pxv; Thu, 1 Jul 2021 15:59:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFYVUH/F+JdD1TE7SZ3uOrMPr7J01oaqxUXwgEsLiUZTaSct0V+2O1+1fZs2BKKCbuQqaK X-Received: by 2002:a05:6402:4408:: with SMTP id y8mr2850776eda.55.1625180360671; Thu, 01 Jul 2021 15:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625180360; cv=none; d=google.com; s=arc-20160816; b=DKy5IFGubRWRQ2LHqCl1ShjxzvB5Z3ifDRzr3i93ig99btJkkLl7zjavSkqo/D9y6i Nn+Ia91aF6NneeWepNl8L738UkPtXaCPzhBGPJyvrYbzqEj6/0nGlwkiAmAGx+9BoF12 MObIW+GG+WZh2DC23hco/HLdnngJM5WmafB7MI79hIwndpG+7jBVtHO2lAjzcYHyj6NO rNCzpwIXTg8chjjgWbaIpwRajKaZJqOsPpU/TnhxLv6SnKezVYySB7Thxy8dxcC2qYHj wFkAkb2Gwss+Bsb6822hddVggctlhUM3EBfsTUzMMLsYXpYMe2LHQbp8iX79L1sCA75Z 22yQ== 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=JVkYVnr8pfu334H+5OKQEsmKMA6oKpFHGpu+Q53NZ4E=; b=N5Sq8M3OewdbXLqUGqo7uBkecyebYCWWj6ycmFum4RfN4Twa6HrNp8uBVp7k5/EBuo olwUEe/8dqzySDsWyXFkYs4Tc17aikmlJFp++3F+5R1smZhuca6K1VPG4Hyk0aN+GLwd MYZVd0TymDOgu7Nmvd2948MGaCohzXlqs5SFUfaukW57IFzogix7c1pKkKNCH/rjwQ3H PUdcVnbn6r84wbiThVU+uq+XmdRDl6W7JRCjFsR3Z2ZFQziP8FlcBKHT9KCRYQM9m3FE msIfpMryOO2RS/BRnthXu2mYIaZAY0KCbypMB7wsOZ6wU7W6kUbz8Uwxxh2WmeP2Z8FE Fvqw== 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 i1si1154242edc.271.2021.07.01.15.58.55; Thu, 01 Jul 2021 15:59:20 -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 S234117AbhGAXA2 (ORCPT + 99 others); Thu, 1 Jul 2021 19:00:28 -0400 Received: from 82-65-109-163.subs.proxad.net ([82.65.109.163]:46328 "EHLO luna.linkmauve.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234097AbhGAXA2 (ORCPT ); Thu, 1 Jul 2021 19:00:28 -0400 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id B6836F40828; Fri, 2 Jul 2021 00:57:54 +0200 (CEST) From: Emmanuel Gil Peyrot To: Srinivas Kandagatla , linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org Cc: Emmanuel Gil Peyrot , Ash Logan , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Rob Herring , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linux-kernel@vger.kernel.org Subject: [PATCH v3 2/5] dt-bindings: nintendo-otp: Document the Wii and Wii U OTP support Date: Fri, 2 Jul 2021 00:57:40 +0200 Message-Id: <20210701225743.14631-3-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210701225743.14631-1-linkmauve@linkmauve.fr> References: <20210519095044.4109-1-linkmauve@linkmauve.fr> <20210701225743.14631-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..c39bd64b03b9 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/nintendo-otp.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: GPL-2.0 +%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