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: 10484963 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 E15AA60230 for ; Mon, 25 Jun 2018 00:14:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC77828841 for ; Mon, 25 Jun 2018 00:14:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBF452886B; Mon, 25 Jun 2018 00:14:59 +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=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3183828841 for ; Mon, 25 Jun 2018 00:14:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=SkGeby4de8uA0AFeFUdhI6uA8k12rzRDn4drYMWVEXc=; b=jcCQZytiecKAb7TUb36YgU0bqr WSYS2PfJiQCKPM1vKCvq9+dJltKeTujH3K83Qaf/Nk7KKwkfWjUdwyJMKImJl7Xw+xqQmEfhhpUHP 5skuqgMsjFjJdI9GQlZ/cTfpMjHDLtIRj7uEamQ7Dpi8yNjdIsOYWGCZUYt+8fuZN9x1TtskEh6Wq bUob40xhmbHTz3L6Vmy0FnrqF77uIET7GXGK434TFiC8yqQ7b63Aq+81bZTV6bxmmLcfuCBqHdSq0 4F/ZX+Hy9qsqVxN/d5wnpmbwVdtJGbaIDsPcwI+s+Okj0VJxJeJlRO/29gknzkAl5L/XArT4FOtR/ GYDOAysw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXF9g-00071f-05; Mon, 25 Jun 2018 00:14:52 +0000 Received: from mail-io0-x242.google.com ([2607:f8b0:4001:c06::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXF7k-0005af-Se for linux-arm-kernel@lists.infradead.org; Mon, 25 Jun 2018 00:12:55 +0000 Received: by mail-io0-x242.google.com with SMTP id g22-v6so10839822iob.7 for ; 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=HVcOyC7pkZRWeu4nsJJ4gD+K1izkTC3U5vUpzYF0eoxV+uQeiYXHJ8EEAY9SsMTe5Q t56VqWARTsOaHqKdRvSwsWac9AeA5vorB7RaonAsPxLD/CBervRzb1KUtFtR1l1i35zk RAvCXGebHmOq9Mfpqot+J5ayL97PtKFgA6ECU9mFqMxCdXw8yt+3wT0BPihdTh0/qEzK HcVu7EwNzW3LXo5fAlIUa8/p6DnpTNfgTRFpc4b8zutk/aBw/2v0Itapou7IYgn5qc1o qGBVzazrbuoQ5cO63f7VX0D92SRzR1BbjzLT4HweX3gYMseEIsHzb8M7wlCRsXROQfmj QCEQ== X-Gm-Message-State: APt69E3AuZr/cuDDDfMdCs1khdZX289t8jIHfIfhdR7MqVG29slw2Pvu LGnOvE1BgkIunoAeC7eDJWE= 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180624_171252_964631_35EABB1E X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, tony@atomide.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux@armlinux.org.uk, robh+dt@kernel.org, bcousson@baylibre.com, linux-omap@vger.kernel.org, Adam Ford , b-liu@ti.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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), }, };