From patchwork Wed Jan 22 03:04:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 205492 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34E69C2D0CE for ; Wed, 22 Jan 2020 03:04:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07DFF2087E for ; Wed, 22 Jan 2020 03:04:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="koV50QBV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729021AbgAVDEL (ORCPT ); Tue, 21 Jan 2020 22:04:11 -0500 Received: from mail-pg1-f169.google.com ([209.85.215.169]:39664 "EHLO mail-pg1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729012AbgAVDEL (ORCPT ); Tue, 21 Jan 2020 22:04:11 -0500 Received: by mail-pg1-f169.google.com with SMTP id 4so2655420pgd.6; Tue, 21 Jan 2020 19:04:11 -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=0SgiOt+hWDrUJ2H9rOs1JAEu1IZXM2ocd/78f9wvQ84=; b=koV50QBVgySF3KMuXhQQ8bnc58nCFKyNTB8MtrYnAnkRYio8FIb4MKQh1iygOsf0nB 4bnoeHg7P9pKsKhxsMvDnWGrG23omrL1gdxZrC77/enZAFs6gbav5PTjJAnghtOZyFQi PWJCUDj402i2bDZPFq5wUHIEHtXk8EpXSsBSUw/8hwbGopZ1NqMIZp9DlBR69JfO6ceD h8WVraiBDyM6c5uc//+Q6MmSNeTYCdEWf+CFUWzPltGqUKqr4x+JCI+9Ma/MriTpHFZW W7YRtq02mAqRHZCAmn4QhaIstcyY0p1isn8P5Wj3PrvLB/bF2UzeX3g0PdLWTvrfo3ra dbRg== 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=0SgiOt+hWDrUJ2H9rOs1JAEu1IZXM2ocd/78f9wvQ84=; b=c97TM8diauLrm7hQ/XGwBL0UPImRpJGIpTdiYICMisGDS8VqELkWAxZG7YMzoOfzBG plWbqvHfHsNl9idkf9jL+vr1PVQhc/HqURZuWesqsS5Xz0LSePewxBIOj9iSvOlyXuz3 FkSSKIOso4TBaNZpK/z0IrA7Sx95SWQMF3DX1ojWvYVKT0XxW2k5sF0YoqSu++tdqV66 ViiTBatpLlFnzmfrB6G9f4Q2Cw9c6qTjP+Tjgkupq8O7tTXftI9L5tfBgL7mS+oGKivp UYMzV//rTvnLhQoPFpkFAOZ5M3q1im431MUkAbMrPH/Ycuajub3oiBjQK5uHbf++Ip/d kt9g== X-Gm-Message-State: APjAAAVTK+IAXr4DhHlJ9WAbCckG6FjofCiXXJ4y3sIbzXA6ZZktd/tI nSBQNi1TYHFbx7Vodgr+L1o= X-Google-Smtp-Source: APXvYqxF0WrvM/zRnaFp42yrhqYqywcqAB4hi/5/ov0YcbddGVknBeQa7auqxAbtMthg87SOwiel8g== X-Received: by 2002:aa7:9aeb:: with SMTP id y11mr637332pfp.63.1579662250728; Tue, 21 Jan 2020 19:04:10 -0800 (PST) Received: from localhost.localdomain (S0106d80d17472dbd.wp.shawcable.net. [24.79.253.190]) by smtp.gmail.com with ESMTPSA id w123sm45129850pfb.167.2020.01.21.19.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 19:04:10 -0800 (PST) From: jassisinghbrar@gmail.com To: balbi@kernel.org, gregkh@linuxfoundation.org, robh+dt@kernel.org, mark.rutland@arm.com, masami.hiramatsu@linaro.org Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jassi Brar , Rob Herring Subject: [PATCH v3 1/2] dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC Date: Tue, 21 Jan 2020 21:04:07 -0600 Message-Id: <20200122030407.7525-1-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200122030136.7300-1-jassisinghbrar@gmail.com> References: <20200122030136.7300-1-jassisinghbrar@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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>; + }; + };