From patchwork Sat May 20 14:12:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9738633 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 6E574600C8 for ; Sat, 20 May 2017 14:13:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B59928585 for ; Sat, 20 May 2017 14:13:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EF6928689; Sat, 20 May 2017 14:13:40 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 8E6A928585 for ; Sat, 20 May 2017 14:13:39 +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=mgEKwuVc7uWfmcLOhvzydr+vkXfIjmXKnho9NGfbDX0=; b=Hcv693SqiBOJq+C3q0Yx1ADtHE 3WVbEvMpJMU/uj+Z8Kr2fbtSYFxo3Mtxz1sp3N9dfzZ5zaLfoGiQ7uhN/na15vUBWHM9zhVRNk5Oc tB/INWYP2MOUTIsMwtV9iKFReIxWSm/Fw1viiqEN+iwvJ+rEtaZU+HsWLu0g2y9i5EnQ/ffRA30xL 8KMZIOTRFlYEa+l3XbaIQbIdlsn52V+g87VKY1LNTxF7ASsDQM9syspx+AdROn6sCBwQ3pOdEfypb gSByWjjOS6plITY11cat2JytEEkdof1pk2m9NeegATIV/NYIpseSXhy3it9gTVF4dwLrwFOsAd/Tb QmQnqzIA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dC58S-0002mE-Jm; Sat, 20 May 2017 14:13:36 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dC58M-0002io-Nx; Sat, 20 May 2017 14:13:32 +0000 Received: by mail-wm0-x242.google.com with SMTP id k15so21912926wmh.3; Sat, 20 May 2017 07:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cEG3WSu0MFRqdZA2Qs0BkdffZ2k0YeFfhw9eTFM37Ms=; b=hM70/3dTSR7nGU6a8YOPxqYvrkn4eg10SR3q1P51P/6+0V55EP2N8LZzlEUBkZucbr MCptAtO/iY/LfVt3lkNHrhicgSynDrNz6lRrQgTqK4U7LC6vxsB6E5b8p9xFhKiftTjg BJy/HayvXKmzJXUd3h+WJBolO20qE9kT2EHYAxCjWx3K4/D90aymyF5WZDBPaNZKTYGq 7o2buLyLn0xYfkcEUvXwsiCujjrNX2gyiE8xDLMMDBLK64Uf44va+Y4VmpSdWaPLQlTg PLA7/sHdMoHfT/1dd3YNAzQGGEDsry4aKplt9G6rFrTuVlXED7ugA7ue+C0BAGsAN7IU JZbA== 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=cEG3WSu0MFRqdZA2Qs0BkdffZ2k0YeFfhw9eTFM37Ms=; b=iP+a3Id0LLptALcMcg2Py1YHsvR/b4ipW59nyLzhIE40FE4ri6RM4WAY6TryktmE3W n318NstFgGDhinnWTqEkxlIlaJ6PIeVdLn1ZyfR61Roxa86AbEA8TQWLohBucfkNJGd+ PRuSGfPBwi4YiA9VQiqyhyi73Wu2vOtVKHaQK5OgQ1FwVaclOaxlknWk1gYiN16eDAfQ 0+Xv3oZhWpEqt8BDER+N/yfUdpp/hLS7TS0w9rQKYA1jDyjZUqAP+QWZTJMNEvygVk4Q h5ZGP8Ko9uZpO6SUcp46QYQu8sm6RN31i0Uoa12Td+LlmZCF2U8eP2iLyWPNTBt/Doca N4ug== X-Gm-Message-State: AODbwcBLOCaqt3ZciEmeLlWzCs+wKiRK5NDTCCADFPo5m/SmAL+X57QL NMfwEdlIwUFQSQ== X-Received: by 10.28.143.70 with SMTP id r67mr19819166wmd.1.1495289590150; Sat, 20 May 2017 07:13:10 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3DD030491E0C62CA950102B.dip0.t-ipconnect.de. [2003:dc:d3dd:304:91e0:c62c:a950:102b]) by smtp.googlemail.com with ESMTPSA id w96sm7038009wrc.14.2017.05.20.07.13.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 May 2017 07:13:09 -0700 (PDT) From: Martin Blumenstingl To: robh+dt@kernel.org, mark.rutland@arm.com, kishon@ti.com, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org Subject: [PATCH v2 1/2] phy: meson8b-usb2: add support for the USB PHY on Meson8 SoCs Date: Sat, 20 May 2017 16:12:49 +0200 Message-Id: <20170520141250.27388-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170520141250.27388-1-martin.blumenstingl@googlemail.com> References: <20170506173625.19501-1-martin.blumenstingl@googlemail.com> <20170520141250.27388-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170520_071330_939098_E32DBF11 X-CRM114-Status: GOOD ( 11.80 ) 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: carlo@caione.org, khilman@baylibre.com, johnyoun@synopsys.com, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl 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 Meson8 uses the same USB PHY as found on the Meson8b and GXBB SoCs. Add a new of_device_id to indicate this. Also update the Kconfig option and MODULE_DESCRIPTION accordingly. Signed-off-by: Martin Blumenstingl --- drivers/phy/amlogic/Kconfig | 6 +++--- drivers/phy/amlogic/phy-meson8b-usb2.c | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/phy/amlogic/Kconfig b/drivers/phy/amlogic/Kconfig index 2044211c5b86..cb8f4501652b 100644 --- a/drivers/phy/amlogic/Kconfig +++ b/drivers/phy/amlogic/Kconfig @@ -2,15 +2,15 @@ # Phy drivers for Amlogic platforms # config PHY_MESON8B_USB2 - tristate "Meson8b and GXBB USB2 PHY driver" + tristate "Meson8, Meson8b and GXBB USB2 PHY driver" default ARCH_MESON depends on OF && (ARCH_MESON || COMPILE_TEST) depends on USB_SUPPORT select USB_COMMON select GENERIC_PHY help - Enable this to support the Meson USB2 PHYs found in Meson8b - and GXBB SoCs. + Enable this to support the Meson USB2 PHYs found in Meson8, + Meson8b and GXBB SoCs. If unsure, say N. config PHY_MESON_GXL_USB2 diff --git a/drivers/phy/amlogic/phy-meson8b-usb2.c b/drivers/phy/amlogic/phy-meson8b-usb2.c index 30f56a6a411f..9c01b7e19b06 100644 --- a/drivers/phy/amlogic/phy-meson8b-usb2.c +++ b/drivers/phy/amlogic/phy-meson8b-usb2.c @@ -1,5 +1,5 @@ /* - * Meson8b and GXBB USB2 PHY driver + * Meson8, Meson8b and GXBB USB2 PHY driver * * Copyright (C) 2016 Martin Blumenstingl * @@ -266,6 +266,7 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev) } static const struct of_device_id phy_meson8b_usb2_of_match[] = { + { .compatible = "amlogic,meson8-usb2-phy", }, { .compatible = "amlogic,meson8b-usb2-phy", }, { .compatible = "amlogic,meson-gxbb-usb2-phy", }, { }, @@ -282,5 +283,5 @@ static struct platform_driver phy_meson8b_usb2_driver = { module_platform_driver(phy_meson8b_usb2_driver); MODULE_AUTHOR("Martin Blumenstingl "); -MODULE_DESCRIPTION("Meson8b and GXBB USB2 PHY driver"); +MODULE_DESCRIPTION("Meson8, Meson8b and GXBB USB2 PHY driver"); MODULE_LICENSE("GPL");