From patchwork Mon Jun 25 00:12:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 10484939 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 95B9060230 for ; Mon, 25 Jun 2018 00:12:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8756128829 for ; Mon, 25 Jun 2018 00:12:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BE1F28866; Mon, 25 Jun 2018 00:12:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3000528829 for ; Mon, 25 Jun 2018 00:12:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752220AbeFYAMp (ORCPT ); Sun, 24 Jun 2018 20:12:45 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:37964 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752091AbeFYAMm (ORCPT ); Sun, 24 Jun 2018 20:12:42 -0400 Received: by mail-io0-f196.google.com with SMTP id l19-v6so10851648ioj.5; Sun, 24 Jun 2018 17:12:42 -0700 (PDT) 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; bh=NQ6mHZeVNMblVPGKZmZ/STZUILFHPtn5P2dhwsZEXRE=; b=G8XSZuTqXA3QuXX7iJzyjYNUAXGdfMu9vgnv1vW55EHGAqEocrOU/DE7DXOTBpib6l RdxSWaWEff21O7/jN77h/K+01pYSewQM48QXXDEskxUibQEAJA4mi+v+JaIvsR83JVo/ PwqcpH7GfR05XHvmQNFt4hsQoB4htzlHQR7dBQPlpOSliZK+3nLVJgiJArfEAm3V6o2A RjP8BzSAxW47NMWDcxrDynjwQiRgV6Axxk449utMKxi3OJDVzg9t+dO68pIc3uB9jpqv RlnUbZpPaIwTHXhbj4iE00jOI+obhnheL8IuqQn83+wvTwZtVLE5N2h/6TSNl2rCelVN GRtA== 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; bh=NQ6mHZeVNMblVPGKZmZ/STZUILFHPtn5P2dhwsZEXRE=; b=imyWrp1JC2hYkETuJY4KI0mp45Btg9AsCZ9OMHyVAxcU8VPlrI0Lu814pxEgPKqD6E a63OoVxXndSyb8hHHyN90XY+Lba3J4YGJFC7/BvSDpXaSp3IE3vIiKmrRb9/uSOodnTT hURjYX3HHmY4xfVlQvkWF7XcqBB764QksbzRyNFHUvmaq+1ucTKjoT4DagS3whEogRkU wow5wnKLLmdmOl4n+V52IgGpINMk95qaazfczDTFbj3ibHTEZSzSYYqzsorrnDlda143 kZKVqnIVOdExs5rmwTRmjjMRU1NZIWKNoLVBFplzFafdXSPneOwi4YmInB7WEwZkODfm oj6g== X-Gm-Message-State: APt69E2+Daf12Du6GfJ4KJfbn7kM+RpMSLxponsFGCPBj7gkUAt6cSyP +L0e9Kw5+zRLzk9KIN7DH00= X-Google-Smtp-Source: AAOMgpf+a9WHiRADWz4K6q9PH1BV/WkR+MvONt8YO2uGRddhmrhtW3/GJ2fJP0xNGGjMjgrRwD3k6g== X-Received: by 2002:a6b:14c9:: with SMTP id 192-v6mr1623286iou.103.1529885561605; Sun, 24 Jun 2018 17:12:41 -0700 (PDT) Received: from localhost.localdomain (c-75-73-34-135.hsd1.mn.comcast.net. [75.73.34.135]) by smtp.gmail.com with ESMTPSA id g191-v6sm3290340itg.0.2018.06.24.17.12.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jun 2018 17:12:41 -0700 (PDT) From: Adam Ford To: adam.ford@logicpd.com Cc: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, b-liu@ti.com, gregkh@linuxfoundation.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, Adam Ford Subject: [RFC 1/5] usb: musb: am35x: Add device tree support Date: Sun, 24 Jun 2018 19:12:29 -0500 Message-Id: <20180625001233.9785-2-aford173@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180625001233.9785-1-aford173@gmail.com> References: <20180625001233.9785-1-aford173@gmail.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The AM35x glue doesn't yet support device tree, so this patch adds the basics hooks so it doesn't haven't use pdata-quirks.c Signed-off-by: Adam Ford diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index 660641ab1545..a55db15a8457 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.c @@ -591,6 +591,16 @@ static int am35x_resume(struct device *dev) } #endif +#ifdef CONFIG_OF +static const struct of_device_id am35xx_id_table[] = { + { + .compatible = "ti,am35xx-musb" + }, + {}, +}; +MODULE_DEVICE_TABLE(of, am35xx_id_table); +#endif + static SIMPLE_DEV_PM_OPS(am35x_pm_ops, am35x_suspend, am35x_resume); static struct platform_driver am35x_driver = { @@ -599,6 +609,7 @@ static struct platform_driver am35x_driver = { .driver = { .name = "musb-am35x", .pm = &am35x_pm_ops, + .of_match_table = of_match_ptr(am35xx_id_table), }, };