Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF794C433F5 for ; Mon, 8 Nov 2021 21:27:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B7BE561361 for ; Mon, 8 Nov 2021 21:27:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240289AbhKHVam (ORCPT ); Mon, 8 Nov 2021 16:30:42 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:57570 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239237AbhKHVak (ORCPT ); Mon, 8 Nov 2021 16:30:40 -0500 Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id EE45F3F1E6 for ; Mon, 8 Nov 2021 21:27:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1636406874; bh=gsSzukojkEIKbZ4C7biaTDNc7cqvWWRMW5pLSQwL88I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JT4LEpH0Gjm/WdKMODlCGfqfLqQQk3akNtYh+6+AB1ohlestkwIFbdAqD556fejah 6OJU9MwRRz0NMXzLa3pHDXkWBnxR04zj5SmOKX8Te00u/Xan6Oc6DW+Fyykw0v90II YvgUKKU9XcF36rovuYn524D5MiTzchdybXHJIP8VUYcXMcdByCRG7lZmaiXsQz5Voa 6Snqz28wElEyksrMqYh4P0yQTQEY9Y+byBDGkH53HZy4oyQ1DY7F/JwTRJJGa2niRx NU/rhyo3q5J5Zl50E4BjvpueJrW3Shushii2K6GgTusQuk5A9/R8XbM0Zyf0QzzHdK oE5+9H174wjWw== Received: by mail-lf1-f71.google.com with SMTP id i1-20020a056512340100b003fdd5b951e0so6998364lfr.22 for ; Mon, 08 Nov 2021 13:27:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=gsSzukojkEIKbZ4C7biaTDNc7cqvWWRMW5pLSQwL88I=; b=Uczu4nsX3AfqJeKdt2E0HoxoRA7Mr19Kj4ZbJaftcx/u5K7lydPKxqxUYdPunQalgM 4YHhR0D/RflD6+VvL8X6ojszC/jM6uWuQsuJ3HA/Z+tYTEceceechCoNWGFzXstw6G4T Q4XocsraeKMvKyHGsRksTaEaA4iMyHYPrjaYNOxEcQC1CpqOPRBxl/zUMWlQYVnnM/s7 uriGjvbXarbUys1fKIrX+l0iwP0R/39OSaUPpFQjgZcaXSH5xOxqRE4JQ0SOvBXUIh4L Ol9pyuVVGq3/29PnkcFSA+d4hcJ3TRgWCPobvov12PsFUBnZQ6bmDJKE+lI5Zprb18la JziA== X-Gm-Message-State: AOAM532Itqse8IR+EJUF/S5oBgnRWvURpjQdgMxAogkYeunwRVg3Knxc AkYt6+BAVOj/AXaTJ/wPN4XdVbbjTQQbPh9H8M7ywDqWsh5WN3GhEDhAn71lK2NfRPlheZoLSLB /qE25Uy6kM9eOo3gHTkqzLvy0wrpnt5BNiobsAygKpQ== X-Received: by 2002:a05:6512:10c5:: with SMTP id k5mr2126567lfg.677.1636406863691; Mon, 08 Nov 2021 13:27:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGKgvZJkQA/4SyxVeMlcPDkjIat9cPad52UQIcFQ9i8k9Fl9QQidq5il9q/ZKjlaYE9irTVQ== X-Received: by 2002:a05:6512:10c5:: with SMTP id k5mr2126517lfg.677.1636406863498; Mon, 08 Nov 2021 13:27:43 -0800 (PST) Received: from [192.168.3.67] (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id o10sm1060383ljd.30.2021.11.08.13.27.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Nov 2021 13:27:43 -0800 (PST) Message-ID: <6e8065cc-5688-b820-0bdd-6fb887ae3261@canonical.com> Date: Mon, 8 Nov 2021 22:27:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH 11/13] dt-bindings: usb: add bindings for microchip mpfs musb Content-Language: en-US To: conor.dooley@microchip.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, robh+dt@kernel.org, jassisinghbrar@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, a.zummo@towertech.it, alexandre.belloni@bootlin.com, broonie@kernel.org, gregkh@linuxfoundation.org, lewis.hanly@microchip.com, daire.mcnamara@microchip.com, atish.patra@wdc.com, ivan.griffin@microchip.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-riscv@lists.infradead.org, linux-crypto@vger.kernel.org, linux-rtc@vger.kernel.org, linux-spi@vger.kernel.org, linux-usb@vger.kernel.org Cc: geert@linux-m68k.org, bin.meng@windriver.com References: <20211108150554.4457-1-conor.dooley@microchip.com> <20211108150554.4457-12-conor.dooley@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20211108150554.4457-12-conor.dooley@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/11/2021 16:05, conor.dooley@microchip.com wrote: > From: Conor Dooley > > Add device tree bindings for the usb controller on > the Microchip PolarFire SoC. > > Signed-off-by: Conor Dooley > --- > .../bindings/usb/microchip,mpfs-usb-host.yaml | 70 +++++++++++++++++++ > 1 file changed, 70 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/microchip,mpfs-usb-host.yaml > > diff --git a/Documentation/devicetree/bindings/usb/microchip,mpfs-usb-host.yaml b/Documentation/devicetree/bindings/usb/microchip,mpfs-usb-host.yaml > new file mode 100644 > index 000000000000..b867f49e7d70 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/microchip,mpfs-usb-host.yaml > @@ -0,0 +1,70 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/microchip,mpfs-usb-host.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microchip MPFS USB Controller Device Tree Bindings > + > +maintainers: > + - Conor Dooley > + > +description: | > + This USB controller is found on the Microchip PolarFire SoC. > + > +properties: > + compatible: > + enum: > + - microchip,mpfs-usb-host > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + interrupt-names: > + minItems: 2 minItems should not be needed because you define all expected items below. > + items: > + - const: dma > + - const: mc > + > + clocks: > + maxItems: 1 > + > + dr_mode: > + enum: > + - host > + - otg > + - peripheral > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupt-names > + - clocks > + - dr_mode > + > +additionalProperties: false > + > +examples: > + - | > + #include "dt-bindings/clock/microchip,mpfs-clock.h" > + #include "dt-bindings/interrupt-controller/microchip,mpfs-plic.h" > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + usb: usb@20201000 { > + compatible = "microchip,mpfs-usb-host"; > + reg = <0x0 0x20201000 0x0 0x1000>; > + clocks = <&clkcfg CLK_USB>; > + interrupt-parent = <&plic>; > + interrupts = ; > + interrupt-names = "dma","mc"; > + dr_mode = "host"; > + status = "disabled"; Skip disabled in example. > + }; > + }; > + > +... > Best regards, Krzysztof