Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp20915754ybl; Sun, 5 Jan 2020 14:56:49 -0800 (PST) X-Google-Smtp-Source: APXvYqzlgmGLwSXuVeswdqORzY06nWSf3hcJKYSQjNmGUJLM3cdeJ+9S5nKkP5+GVT4hID8wBcTS X-Received: by 2002:a05:6830:1d6a:: with SMTP id l10mr115186029oti.233.1578265009785; Sun, 05 Jan 2020 14:56:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578265009; cv=none; d=google.com; s=arc-20160816; b=MHGwY1/SR5Ox0YMAPWf8gzMT9RU6QlMU3zLNt1cV1w8aD9ncDtwvVbLQewnwjaLZSi Yx0oliBZySqrcmOvm+ovWbMJ3vU64/U43D4CfvCCaNGVaZTLvmBxxf0oxbp+teSlmA1i QCvRn3NLHavQiIKlcUp9EzTxILNvs2WvBaHUC7cil9CY2dy1CIs2Kv1UGl87cIC3HdSl fF7LI2Np0wchvwqaiDT4wR5+tQgfrAULIcV7VhyVCK2VrzCu+c3CPcdzWFP3uNaQKcCD P4MiRTpFYVVkrYmN7cWmlh4XTmBaJgK2tQXIqYr/tIq3TbjRflAGNUGZPFmhqqMWOTb8 vn+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lW2uboRnXvfhL7FVns0D8fckxqyy6VZHvjNPojQU+3g=; b=J4VXVlxeJ98WC0Wsjac41gjfGqMYG8+Mb/9WSdXjpKK5ur5TzO0hFrWYlrld9Vf8Dl u+UlMF77kJarAt7yL1TwN+myKUheDQEZC6KPm2GxxfCrepJDQYB3zLvjet9Pkw35jGp6 iVJInFNq6i9RkixOZuwPhyZA9Ap0C8hiPZRU6qILcsEZRZpKAmotxvJrH4rZyQGgf1oS O1pu5jJVkMKXa4isknjrkStSa3PrBiPr7GA5u86nbp1yo43/ZgVQEuQbSWStLPh7sntj QnI46HqUMzWOMKcZzuUFifK8Xvjvx2Gy5sVjKtYWES+q1qLzrt21I4b0nBnPXQ8Sy/Qy qfvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pt8o+iUL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si30723155otf.91.2020.01.05.14.56.38; Sun, 05 Jan 2020 14:56:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pt8o+iUL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727223AbgAEWzw (ORCPT + 99 others); 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-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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jassi Brar Add YAML dt bindings for Maxim MAX3420 UDC controller. Signed-off-by: Jassi Brar --- .../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>; + }; + }; -- 2.20.1