From patchwork Tue Dec 10 00:31:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 181098 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp5081992ile; Mon, 9 Dec 2019 16:31:32 -0800 (PST) X-Google-Smtp-Source: APXvYqz704WHUV5PNGUutYmvtp5QBYRisFc704q7oJRzLsXWP/jeF1UNIxGvgDpP5c/J863Zs+rS X-Received: by 2002:a05:6830:50:: with SMTP id d16mr24976731otp.155.1575937892086; Mon, 09 Dec 2019 16:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575937892; cv=none; d=google.com; s=arc-20160816; b=nBFS8VfESOvB3j9RqHbRZ7UsObtrf6SUWv15V9Ts/xty01k4gJ6cHnnTu/Oz5J2aDz g3WqXouzuvZyzEIF3zZZnk/bg7Y0G3lnCVXo5bEXN1BqeyrkSm0oX5LFkutys4m5e//P TWXqBKTDrkT34M8GSTW+zLR7wnG14QrovCi2+tc3rkgoXvETDSU8g2FVtRK629XUVL2i o76ZpKPkP/+umAnrni3CW3xa9ByU2M70RK1K+h/rHkuBGtD1yF3bNgfsBcbDzIfJq/DX H4uG5+NcGIuWaUP8tEx2iV4M9/I2lEXwwr85Z9yiI66pehydTkXxIq7U5+q/FRS//CvO Ih9g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=zjPlYsXto14p5C8VyRSUAcHDdeX9MtJK0hekckR4MXo=; b=N+ZbHWZ2NNDHeNCvL3dSvPL+YY9vr3QV9wUNog7ZmD8fcxZp0rfF6PxYDK06DrArE9 kCjiWH9nMpRJYlYvHuWdBAYU3edSKPp56wJkpYLkXgtB4hgtt8aZGk/YriJcSHpej2eb a0HzJHaQCv+ouVM/VAcUWT+udbILleCA33AGIM9pugh/AB6/2sY5/C5PY3bnBSSba1PR 6F1CipLKBLQjbfzq+c5DZgmSOfFlmrG7ScKPEmxmx+wwCS3xl1g0k8TC1/jLb+ePnTcJ iCDKW8KgjYhBaekpp+q0xwc+nbtBep1EiEjXPSOBNgqkLW1siscOJMOKvnSKFaGUmKQY DJuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g82o5qI7; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 8si890681ota.266.2019.12.09.16.31.31; Mon, 09 Dec 2019 16:31:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=g82o5qI7; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727111AbfLJAba (ORCPT + 8 others); Mon, 9 Dec 2019 19:31:30 -0500 Received: from mail-pg1-f182.google.com ([209.85.215.182]:45771 "EHLO mail-pg1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbfLJAba (ORCPT ); Mon, 9 Dec 2019 19:31:30 -0500 Received: by mail-pg1-f182.google.com with SMTP id b9so7565641pgk.12; Mon, 09 Dec 2019 16:31:30 -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:mime-version :content-transfer-encoding; bh=zjPlYsXto14p5C8VyRSUAcHDdeX9MtJK0hekckR4MXo=; b=g82o5qI7mDhodYDhxVUVWF29yNsIXatSkuuuG6dnNOlFU4Yx6F6L/CpNU++bVnI99t p3KFvDen0v+7zmqvLamKhgL4Mxb5ZwgqUEXnRri3QuqjKpDDFlE/5/rSppO9XXw/xlel +kWMFzxa1IoV09s3d9TPMn5+8hnjWqp3nGUNuyvApOPWCdjjxjWT4G7TapPXgedS3APa jTnXi8qSmdrirkpmuwRQXxJWy++btMmhc8+DDgFErq0hzHhXqGA+8K4hQJBFxrAF/Dg3 7Ufuu62XhGBnKLscX67DsmHAxJmxcuwMAnuAhZHlh20u89cMRoI93vEhFAkJCJyQ5lDv BKeA== 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:mime-version :content-transfer-encoding; bh=zjPlYsXto14p5C8VyRSUAcHDdeX9MtJK0hekckR4MXo=; b=Y8TpLXxyT3hN24/tL/AC09X7d9v7sAGlbVl+mV8Sa1PZiqdfcuSHOBsS+6zy9KBxMP 7JzrO9vBePH+wZqb3YwqKAimeysg8TXesZgZ6XvVKk2rF8ATLKgK4RNz87JrMiXaE9PD wEiJ2RSKBBV+kQ0smTNv7cy8tV4eHRV9s7bk5GFSHSzkLZa4439YuMndC4WVhyhZpIpS /udDB+vIEfcmzsZxZNmivw75Bzw2rZYT/zrVqBGWznj7+XE2xXHgrbO8sVRrh3URyujX pDinDffYL1QGQfwkOw7tokSotBG3egtFN+WQg/iem2cI/piv4LhCU86N+ywHkC48MC7h BuVQ== X-Gm-Message-State: APjAAAW/vXJmEakMYZQN5m82sfe9q5QXNtm9xlHhfvuIbdBzkgsKICUQ lDUH4/TmDqMAcwo1NTmgcAE= X-Received: by 2002:a63:5243:: with SMTP id s3mr20771167pgl.449.1575937889690; Mon, 09 Dec 2019 16:31:29 -0800 (PST) Received: from localhost.localdomain (S0106d80d17472dbd.wp.shawcable.net. [24.79.253.190]) by smtp.gmail.com with ESMTPSA id 5sm468157pjc.29.2019.12.09.16.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 16:31:29 -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: [PATCHv1 1/2] dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC Date: Mon, 9 Dec 2019 18:31:24 -0600 Message-Id: <20191210003124.32376-1-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.20.1 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 --- .../bindings/usb/maxim,max3420-udc.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml -- 2.20.1 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..cf4eec8a618e --- /dev/null +++ b/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0-only +%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: + minItems: 1 + maxItems: 2 + items: + - const: udc + - const: vbus + + spi-max-frequency: + maximum: 26000000 + +required: + - compatible + - reg + - interrupts + - interrupt-names + +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>; + }; + };