From patchwork Sun Jan 5 22:55:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 11318531 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 17C50139A for ; Sun, 5 Jan 2020 22:55:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E9CCD20678 for ; Sun, 5 Jan 2020 22:55:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pt8o+iUL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727213AbgAEWzw (ORCPT ); Sun, 5 Jan 2020 17:55:52 -0500 Received: from mail-pg1-f172.google.com ([209.85.215.172]:36326 "EHLO mail-pg1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726851AbgAEWzv (ORCPT ); Sun, 5 Jan 2020 17:55:51 -0500 Received: by mail-pg1-f172.google.com with SMTP id k3so25992647pgc.3; Sun, 05 Jan 2020 14:55:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lW2uboRnXvfhL7FVns0D8fckxqyy6VZHvjNPojQU+3g=; b=pt8o+iULt5aNLrFM0Q+RqLx0k89+ZHEM1hI4yfylYr9EzhMOfX8iBK8KOXAuiLpNa3 o/Ot6Y/1iAhxF+beubVxJriC/O3vMYx13BazvRn+Kgz2FWd/ZytfCQjKUX520YqSE73G o2/G5pmSUf5lvNd1xX06gTDfV+Cs0Q2AOD8k+ZMKnYXUeLKbQ3RmzGOKI4WjXJQIeyQ1 yOXs5/TdvUoQRCtxVTlnxkCi2ImH2o3381RPP7o6brkKW0wKl7AU7lorjx6OOsgflKrn 7Bi9SslFv62FvbLZcqqBWDTaWt2TNJLl6KU6iUPmwy4h9ZazNcGz982IdiaGgxZsj5HH 6adA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lW2uboRnXvfhL7FVns0D8fckxqyy6VZHvjNPojQU+3g=; b=fgm+5zsD0JcWYm9V9BFb0Z7x02KljQY0sBJTTds4ROp7Rk8PoCl5ut2sfzR2iOc/za aVxIuEmmhGxDFFfORJ/IqM0/ZnWcu2q0lzYDmupuN8CZVrQRJW+dix2j/nymNRaKUUoF m8LCmIaDqo+0W8706ZnEzfTKUdNHLS8mYBC5RY+rr9zjcEChWHnRheVjNvuzpZEw5pAz 0B0B1FFjNqrN0PrC8RZj2EC5A+ANeJL3ggWvFzrtGooex7mju7J+3eUF5F1+7w/DRuxz oL2ilqQm/MEdlLfFUfhmDUIwIJ6ekbuuk3l1TsbPl2f7zap1CerKAsfIpcfNwgY/GQkT aZ7w== X-Gm-Message-State: APjAAAVkQR25CWRTSnxvBGAolE4vqKtTpv+AZ1th/ZxHKqA0Hh0rzi4S 748k78DcDhoK/mvi3q7QM4k= X-Google-Smtp-Source: APXvYqzvW+HTOJr5b72nj9RJFcdIKg2L2CTqYXhIKDjg2rU5qr2L4NG/5Sdt604iaViDYA7gAQQQbw== X-Received: by 2002:a62:e30f:: with SMTP id g15mr104372619pfh.124.1578264951178; Sun, 05 Jan 2020 14:55:51 -0800 (PST) Received: from localhost.localdomain (S0106d80d17472dbd.wp.shawcable.net. [24.79.253.190]) by smtp.gmail.com with ESMTPSA id l186sm70564400pge.31.2020.01.05.14.55.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jan 2020 14:55:50 -0800 (PST) From: jassisinghbrar@gmail.com To: balbi@kernel.org, gregkh@linuxfoundation.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jassi Brar Subject: [PATCH v2 1/2] dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC Date: Sun, 5 Jan 2020 16:55:47 -0600 Message-Id: <20200105225547.21672-1-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200105225509.21590-1-jassisinghbrar@gmail.com> References: <20200105225509.21590-1-jassisinghbrar@gmail.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Jassi Brar Add YAML dt bindings for Maxim MAX3420 UDC controller. Signed-off-by: Jassi Brar Reviewed-by: Rob Herring --- .../bindings/usb/maxim,max3420-udc.yaml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml diff --git a/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml b/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file mode 100644 index 000000000000..4241d38d5864 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/maxim,max3420-udc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAXIM MAX3420/1 USB Peripheral Controller + +maintainers: + - Jassi Brar + +description: | + The controller provices USB2.0 compliant FullSpeed peripheral + implementation over the SPI interface. + + Specifications about the part can be found at: + http://datasheets.maximintegrated.com/en/ds/MAX3420E.pdf + +properties: + compatible: + enum: + - maxim,max3420-udc + - maxim,max3421-udc + + reg: + maxItems: 1 + + interrupts: + items: + - description: usb irq from max3420 + - description: vbus detection irq + minItems: 1 + maxItems: 2 + + interrupt-names: + items: + - const: udc + - const: vbus + minItems: 1 + maxItems: 2 + + spi-max-frequency: + maximum: 26000000 + +required: + - compatible + - reg + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + #include + #include + spi0 { + #address-cells = <1>; + #size-cells = <0>; + + udc@0 { + compatible = "maxim,max3420-udc"; + reg = <0>; + interrupt-parent = <&gpio>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>; + interrupt-names = "udc", "vbus"; + spi-max-frequency = <12500000>; + }; + };