Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2329489ybl; Thu, 19 Dec 2019 11:41:01 -0800 (PST) X-Google-Smtp-Source: APXvYqy4Tky87gw3qaie9QrL8jws9Xm+gcfQekS2U4RVAHauKvGBc7W68KmTUZ0Bu2aIXYvMgIpH X-Received: by 2002:a05:6830:1e10:: with SMTP id s16mr10944546otr.230.1576784461277; Thu, 19 Dec 2019 11:41:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576784461; cv=none; d=google.com; s=arc-20160816; b=JCY/Jo8CmC3FYuXsjLTET9hUWBn6vPPVlNhgPZ5c9xfJ2UYRKx14bN4IU1Eka/hmEC hfLBCLXTMSXHJaTaHpbogvwKCLCdGxbo8MaTQfvNANU5b1J26wBSjor6d7Bfgs9RIOzb 9cHIXx5H8aZ83vIn4AEZWLc6mgrGs5+e7L+JjraUA0kgvCxyO/0/MNs45BJBCWPRfAlF fEa5tol6E7tYyytmWYWXleG4DshsDjgo/M9RdvzkIu3gTK9zEeF/VqDQvNsJ6S6sb+pK Em4f0XEI2Gy06YAcAbM93ZDeprkwBte3qQWe0QsryZzQKvfx2MTsIwQuVWWujlHVlDPC z5gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4FD4E6VPRHSJlg1OMSyY98hDnZZOWMuHy6UnkVUj/RM=; b=Vn3QD/UZSfP6sXxGP90lVRW7EyU7tD3AELF4qsy9k1ulHy2zrJJ1rdb168LHADnKZZ xM+TveDLvTMDRBAicvZkmY8h2wj1GbncWeomvWw3NuuQJbp0ZHMtRXDSFE9BibkYJlJq VytFLKLrbDqRrFEWlrXPodg/Fdtl00RRgEmvo6prB/A6uoYfnECTzIQY0NKB7/CNV75Y 0tAj2fQjWaNK/VQcGjISGgc7PRJnyNkaAVqA3BNdzkuwNSiM49wYFfuW3IbwtPZSUFJ0 BW4f8/xxMi7gL8aXpGDCLO77N9/wSonPmlAxLCP2rPClalOfO8h94A8UsqVek7mHJe21 2BwQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si1900259otb.90.2019.12.19.11.40.50; Thu, 19 Dec 2019 11:41:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727411AbfLSTkE (ORCPT + 99 others); Thu, 19 Dec 2019 14:40:04 -0500 Received: from mail-ot1-f53.google.com ([209.85.210.53]:42791 "EHLO mail-ot1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727269AbfLSTkE (ORCPT ); Thu, 19 Dec 2019 14:40:04 -0500 Received: by mail-ot1-f53.google.com with SMTP id 66so8540457otd.9; Thu, 19 Dec 2019 11:40:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4FD4E6VPRHSJlg1OMSyY98hDnZZOWMuHy6UnkVUj/RM=; b=Ft/AdCzKPdyX3oHc5jvZBR4Kaqj4jpE7Q8XzPP0EYcT9xYnuC0/BZxUGrN8jhz8BIO DE98t7yJ+SogBLg95Hag1kDnoZddyigaNdDCBg9H+8JXJ1NmLbAyr217y/9EW2qAT2+T C/PGP32ENKQNE7zIEYfYF2Z3gkJLm8BJb1MFI3an9ZlgJ4XZWZ6MnsyZ+lk7q797Wn1a ML8MbTnqxl8pF8QJltuJVaeCJCHrLn5hzyA1QdN411K43iqS1wBJd5WmRoon8HDDCXeg HEMzuGB5YGI8ZfWMB+mGIvd0XvQjF9A2EnA2aoCYyMFYOUZ9euY4n0bii3QVIw94vISp kqZg== X-Gm-Message-State: APjAAAV2kp/deZwL4eO5qNhs/fHla/MiadhUp5MHmhJLcesuzz/7Cr77 b+ZaVLwdQfCrfonGmJXNuw== X-Received: by 2002:a05:6830:124b:: with SMTP id s11mr10297161otp.333.1576784402776; Thu, 19 Dec 2019 11:40:02 -0800 (PST) Received: from localhost ([2607:fb90:20de:fb54:3549:d84c:9720:edb4]) by smtp.gmail.com with ESMTPSA id s145sm2333734oie.44.2019.12.19.11.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 11:40:02 -0800 (PST) Date: Thu, 19 Dec 2019 13:40:00 -0600 From: Rob Herring To: jassisinghbrar@gmail.com Cc: balbi@kernel.org, gregkh@linuxfoundation.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jassi Brar Subject: Re: [PATCHv1 1/2] dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC Message-ID: <20191219194000.GA23698@bogus> References: <20191210003124.32376-1-jassisinghbrar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191210003124.32376-1-jassisinghbrar@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 09, 2019 at 06:31:24PM -0600, jassisinghbrar@gmail.com wrote: > 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 > > 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 Dual license new bindings please: (GPL-2.0-only 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. space ^ > + > + 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 interrupts are integers, not strings. Should be interrupt-names? > + > + spi-max-frequency: > + maximum: 26000000 > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupt-names Add: 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 >