Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3127110rwb; Sun, 20 Nov 2022 07:48:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf551v7M8cbc1tG3iSAJ19WGnn8GfQr97zia/D9f9vhSyzHBEpjVeJkINHfHrW2Lp2kDOLGe X-Received: by 2002:a05:6a00:1c81:b0:573:588b:68b0 with SMTP id y1-20020a056a001c8100b00573588b68b0mr1533085pfw.30.1668959320700; Sun, 20 Nov 2022 07:48:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668959320; cv=none; d=google.com; s=arc-20160816; b=Q5Z63Dz+JoT3Wt9CyzU9EGTgmsCV51KKNHGRL3ovBMWs2ClFv1C4WOvbLCShvUoAPI jfwTJlllMnMbINW3fZZyvqb1s0bjCFmtVbF2QpdJpUwzaipRqGtk13DpakFzm68UIY+V YKSmNEVLkc6I6XAJHKS79Xf4R/i10WL3H3cvRxRufHb5HSMmeCO3u7J5C7VY5vgFukcf mgif62lsmrMyCrHb6bIKm9KpkXMzil+ZvAXbjq27wbU60kWA9z4yW+J0ZCBFPvJetRhQ JQ6G+WeUL5vKe9gtcl/NIkXLGTZc/c2cKkUf0lrcN1u2ZGDnWfd4KQotsNotircpet8o qnLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=JVXsWKmUu84AHlrYVgKd8m6jeh7lnHZqLNxGPaZlsRo=; b=Babm9lotX0iwnsFsgRywYWvfxzrVSQHzmzy8OuV3GT1aFLRs8CbbCLO+gh2DWNX36u myS+ACydHP2Y5K/sw8vJFJm6VHRoX4zpXFZLfWixVW7JmVyidj9fZ9WS12LgFVjcMPiF iSS79y3a0m2g8DIlYOXcXnwbra+CgsRQmFsoRz+J7dGpJpOwoqnF3VTQch7+LR0zHAjk CQoSlFeLmnfzWGtipBUUrkkDiKVDTDeWeEJZXtDEtVaZZhct1RN3uYUXaaFA/YU3m1Mg IzmeSkT99x/VtrIjUXap7QB4nrKi9VgsnSXqvMkzLfdVVpxHyHSlyb8T+/JrSH4Q/+GP IjBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a056a000a0c00b00562331a3562si9330266pfh.130.2022.11.20.07.48.29; Sun, 20 Nov 2022 07:48:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbiKTPax (ORCPT + 91 others); Sun, 20 Nov 2022 10:30:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiKTPav (ORCPT ); Sun, 20 Nov 2022 10:30:51 -0500 Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 390B52B610; Sun, 20 Nov 2022 07:30:50 -0800 (PST) Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-13bd2aea61bso11285237fac.0; Sun, 20 Nov 2022 07:30:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JVXsWKmUu84AHlrYVgKd8m6jeh7lnHZqLNxGPaZlsRo=; b=AtBT8D5GWJHj5jqdFOIIkKNDVCUq1KyXWXmvYAxFWBFgJD0+BA9kOH7rmuBFZMxx1g ZxBrhdpB0BpL3d80deCiXweD9OO95SLaMQMzywBT1Fjux/5Tgfw7vpYvjoo1eLXxJBWt vPaw0R8DjyjgNCoRP7lJo848prQ/mxl43Fm6Mo6V1nx/ULvL9u+35H1I0bVZ6rl9+60b YKfqi0IdSILblPnLm+AKdIRMb3BKlsPANfXyBXumwogrtzNxTK3bX6LvXTPsq0BWeG4A ATeTdklIFiP6BVug8bVh1kquc2ScIYWSnD36ELhpE9TBjHd7p48P3hUVBXDu/FeqGJqk K9dg== X-Gm-Message-State: ANoB5pkLr8Dn32at3Zk4Yn5dUoT5qWbo+Mb2BQopD6axZoWTjoXFPdXs nonrPhW8WBXEDms2cJ0kJ3utSQEBtA== X-Received: by 2002:a05:6870:ab06:b0:142:d9b9:c4ae with SMTP id gu6-20020a056870ab0600b00142d9b9c4aemr1120231oab.179.1668958249285; Sun, 20 Nov 2022 07:30:49 -0800 (PST) Received: from robh_at_kernel.org ([2605:ef80:80f6:1a48:29f6:113d:266f:a78e]) by smtp.gmail.com with ESMTPSA id a18-20020a056870d61200b0012b298699dbsm4808953oaq.1.2022.11.20.07.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 07:30:48 -0800 (PST) Received: (nullmailer pid 3092241 invoked by uid 1000); Sun, 20 Nov 2022 15:30:49 -0000 Date: Sun, 20 Nov 2022 09:30:49 -0600 From: Rob Herring To: Ash Logan Cc: krzysztof.kozlowski+dt@linaro.org, paulus@samba.org, mpe@ellerman.id.au, christophe.leroy@csgroup.eu, benh@kernel.crashing.org, segher@kernel.crashing.org, pali@kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, j.ne@posteo.net, linkmauve@linkmauve.fr, rw-r-r-0644@protonmail.com, devicetree@vger.kernel.org, joel@jms.id.au Subject: Re: [PATCH v4 01/11] dt-bindings: wiiu: Document the Nintendo Wii U devicetree Message-ID: <20221120153049.GA3081277-robh@kernel.org> References: <20220628133144.142185-1-ash@heyquark.com> <20221119113041.284419-1-ash@heyquark.com> <20221119113041.284419-2-ash@heyquark.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221119113041.284419-2-ash@heyquark.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 19, 2022 at 10:30:31PM +1100, Ash Logan wrote: > Adds schema for the various Wii U devicetree nodes used. > > Signed-off-by: Ash Logan > --- > v3->v4: Rework to match expected style and conciceness. > > .../bindings/powerpc/nintendo/wiiu.yaml | 25 +++++++++ > .../powerpc/nintendo/wiiu/espresso-pic.yaml | 48 ++++++++++++++++ > .../bindings/powerpc/nintendo/wiiu/gpu7.yaml | 42 ++++++++++++++ > .../powerpc/nintendo/wiiu/latte-ahci.yaml | 50 +++++++++++++++++ > .../powerpc/nintendo/wiiu/latte-dsp.yaml | 35 ++++++++++++ > .../powerpc/nintendo/wiiu/latte-pic.yaml | 55 +++++++++++++++++++ > .../powerpc/nintendo/wiiu/latte-sdhci.yaml | 46 ++++++++++++++++ > .../bindings/powerpc/nintendo/wiiu/latte.yaml | 31 +++++++++++ > .../devicetree/bindings/usb/generic-ehci.yaml | 1 + > 9 files changed, 333 insertions(+) > create mode 100644 Documentation/devicetree/bindings/powerpc/nintendo/wiiu.yaml > create mode 100644 Documentation/devicetree/bindings/powerpc/nintendo/wiiu/espresso-pic.yaml > create mode 100644 Documentation/devicetree/bindings/powerpc/nintendo/wiiu/gpu7.yaml > create mode 100644 Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-ahci.yaml > create mode 100644 Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-dsp.yaml > create mode 100644 Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-pic.yaml > create mode 100644 Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-sdhci.yaml > create mode 100644 Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte.yaml > > diff --git a/Documentation/devicetree/bindings/powerpc/nintendo/wiiu.yaml b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu.yaml > new file mode 100644 > index 000000000000..23703b1052d0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu.yaml > @@ -0,0 +1,25 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/powerpc/nintendo/wiiu.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Nintendo Wii U bindings Everything is a binding, so drop 'bindings'. > + > +maintainers: > + - Ash Logan > + - Emmanuel Gil Peyrot > + > +description: | Don't need '|' if no formatting. > + Nintendo Wii U video game console binding. > + > +properties: > + $nodename: > + const: "/" > + > + compatible: > + const: nintendo,wiiu > + > +additionalProperties: true > + > +... > diff --git a/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/espresso-pic.yaml b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/espresso-pic.yaml > new file mode 100644 > index 000000000000..476a8ccda7a1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/espresso-pic.yaml > @@ -0,0 +1,48 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/powerpc/nintendo/wiiu/espresso-pic.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Nintendo Wii U "Espresso" interrupt controller > + > +maintainers: > + - Ash Logan > + - Emmanuel Gil Peyrot > + > +description: | > + Interrupt controller found on the Nintendo Wii U for the "Espresso" processor. > + > +allOf: > + - $ref: "/schemas/interrupt-controller.yaml#" Drop quotes. > + > +properties: > + compatible: > + const: nintendo,espresso-pic > + > + '#interrupt-cells': > + # Interrupt numbers 0-32 in one cell > + const: 1 > + > + interrupt-controller: true > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - '#interrupt-cells' > + - interrupt-controller > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + interrupt-controller@c000078 { > + compatible = "nintendo,espresso-pic"; > + reg = <0x0c000078 0x18>; > + #interrupt-cells = <1>; > + interrupt-controller; > + }; > +... > diff --git a/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/gpu7.yaml b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/gpu7.yaml > new file mode 100644 > index 000000000000..d44ebe0d866c > --- /dev/null > +++ b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/gpu7.yaml > @@ -0,0 +1,42 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/powerpc/nintendo/wiiu/gpu7.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Nintendo Wii U Latte "GPU7" graphics processor > + > +maintainers: > + - Ash Logan > + - Emmanuel Gil Peyrot > + > +description: | > + GPU7 graphics processor, also known as "GX2", found in the Latte multifunction chip of the Wrap lines at 80 unless some advantage to 100. > + Nintendo Wii U. > + > +properties: > + compatible: > + const: nintendo,latte-gpu7 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + gpu@c200000 { > + compatible = "nintendo,latte-gpu7"; > + reg = <0x0c200000 0x80000>; > + interrupts = <2>; > + interrupt-parent = <&espresso_pic>; > + }; > +... > diff --git a/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-ahci.yaml b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-ahci.yaml > new file mode 100644 > index 000000000000..a53971a11e89 > --- /dev/null > +++ b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-ahci.yaml > @@ -0,0 +1,50 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/powerpc/nintendo/wiiu/latte-ahci.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Nintendo Wii U Latte AHCI controller > + > +maintainers: > + - Ash Logan > + - Emmanuel Gil Peyrot > + > +description: | > + Nintendo Wii U AHCI SATA controller, as found in the Latte chip. > + > +allOf: > + - $ref: "/schemas/ata/ahci-common.yaml#" > + > +properties: > + compatible: > + const: nintendo,latte-ahci > + > + reg: > + items: > + - description: | > + HBA memory registers. Note that unlike the spec, space for only 6 ports exist, with 2 vendor > + registers afterwards, thus register space should be 0x408 long (0x100+0x80*6+0x8). > + > + interrupts: > + items: > + - description: Main HBA interrupt > + - description: Vendor debugging interrupt > + > +required: > + - compatible > + - reg > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + sata@d160400 { > + compatible = "nintendo,latte-ahci"; > + reg = <0x0d160400 0x408>; > + > + interrupt-parent = <&latte_pic>; > + interrupts = <38>, <28>; > + }; > +... > diff --git a/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-dsp.yaml b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-dsp.yaml > new file mode 100644 > index 000000000000..772afe0c298c > --- /dev/null > +++ b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-dsp.yaml > @@ -0,0 +1,35 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/powerpc/nintendo/wiiu/latte-dsp.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Nintendo Wii U Latte DSP > + > +maintainers: > + - Ash Logan > + - Emmanuel Gil Peyrot > + > +description: | > + Nintendo Wii U digital signal processor, as found in the Latte chip. > + > +properties: > + compatible: > + const: nintendo,latte-dsp > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + dsp@c005000 { > + compatible = "nintendo,latte-dsp"; > + reg = <0x0c005000 0x200>; > + }; > +... > diff --git a/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-pic.yaml b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-pic.yaml > new file mode 100644 > index 000000000000..4b71d6b9b14d > --- /dev/null > +++ b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-pic.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/powerpc/nintendo/wiiu/latte-pic.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Nintendo Wii U Latte interrupt controller > + > +maintainers: > + - Ash Logan > + - Emmanuel Gil Peyrot > + > +description: | > + Interrupt controller found on the Nintendo Wii U for the "Latte" devices. > + > +allOf: > + - $ref: "/schemas/interrupt-controller.yaml#" > + > +properties: > + compatible: > + const: nintendo,latte-pic > + > + '#interrupt-cells': > + # Interrupt numbers 0-64 in one cell. > + const: 1 > + > + interrupt-controller: true > + > + reg: > + maxItems: 1 > + > + interrupts: > + items: > + - description: Cascade interrupt for Espresso PIC > + > +required: > + - compatible > + - '#interrupt-cells' > + - interrupt-controller > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + interrupt-controller@d800440 { > + compatible = "nintendo,latte-pic"; > + #interrupt-cells = <1>; > + interrupt-controller; > + reg = <0x0d800440 0x30>; > + > + interrupt-parent = <&espresso_pic>; > + interrupts = <24>; > + }; > +... > diff --git a/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-sdhci.yaml b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-sdhci.yaml > new file mode 100644 > index 000000000000..25d474fca679 > --- /dev/null > +++ b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte-sdhci.yaml > @@ -0,0 +1,46 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/powerpc/nintendo/wiiu/latte-sdhci.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Nintendo Wii U Latte SD Host controller > + > +maintainers: > + - Ash Logan > + - Emmanuel Gil Peyrot > + > +description: | > + SDHCI hosts found on the Nintendo Wii U's Latte SoC for SD cards and SDIO devices. > + > +allOf: > + - $ref: "/schemas/mmc/mmc-controller.yaml#" > + > +properties: > + compatible: > + items: > + - const: nintendo,latte-sdhci > + - const: sdhci Just 'sdhci' is not too useful. *All* SDHCI controllers have quirks. > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + mmc@d070000 { > + compatible = "nintendo,latte-sdhci", "sdhci"; > + reg = <0x0d070000 0x200>; > + interrupts = <7>; > + interrupt-parent = <&latte_pic>; > + }; > +... > diff --git a/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte.yaml b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte.yaml > new file mode 100644 > index 000000000000..6fdf93622fcc > --- /dev/null > +++ b/Documentation/devicetree/bindings/powerpc/nintendo/wiiu/latte.yaml > @@ -0,0 +1,31 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/powerpc/nintendo/wiiu/latte.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Latte system bus > + > +maintainers: > + - Ash Logan > + - Emmanuel Gil Peyrot > + > +description: | > + Latte multi-function SoC, containing many of the devices found on the Nintendo Wii U. > + > +allOf: > + - $ref: "/schemas/simple-bus.yaml#" > + > +properties: > + compatible: > + items: > + - const: nintendo,latte > + - const: simple-bus If truly 'simple', then you don't need 'nintendo,latte'. Otherwise, you need a custom 'select' schema to not select all cases of 'simple-bus'. > + > + one blank line > +required: > + - compatible > + > +additionalProperties: true > + > +... > diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Documentation/devicetree/bindings/usb/generic-ehci.yaml > index c5f629c5bc61..9f69b5ab21ff 100644 > --- a/Documentation/devicetree/bindings/usb/generic-ehci.yaml > +++ b/Documentation/devicetree/bindings/usb/generic-ehci.yaml > @@ -69,6 +69,7 @@ properties: > - ibm,usb-ehci-440epx > - ibm,usb-ehci-460ex > - nintendo,hollywood-usb-ehci > + - nintendo,latte-ehci > - st,spear600-ehci > - const: usb-ehci > - enum: > -- > 2.38.1 > >