Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1783792pxa; Sun, 16 Aug 2020 10:57:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8jFYVhBHAzAvHJVb6YmyDd0ZdsSecd0vqdGFwevT6Wsbiihy6swkhwjsna8jU4qRZKfLM X-Received: by 2002:a17:906:a153:: with SMTP id bu19mr11484884ejb.142.1597600672345; Sun, 16 Aug 2020 10:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597600672; cv=none; d=google.com; s=arc-20160816; b=I8xFA5aL75Uuu8vUS7Uoed+4OaqLCroN9yhrPnhTOZ0VjU0vrWAGipVLYZzCNEAKPM TCJTUtkXmpKNUgvAc0z19mPYpkIVby9H2wCRuXGJKvj7elvdf7nF3flCZ0prbF6xAhQP cYU4oZxcwAmP20+0ghH3ph/Ly0IYUT4LEA1xA1vU8YJ6GQyLTpPxr1xEchgzXwY8VAFF QtUvglF7aVmRi2Se5JezwzyLBIo4z8WUzZxJW34MKZU3/9QQasExTQw+95q/GaOkUeDr 7lmxvxgpuT3csmyb3O4MiVGLqddsTD/9iIsmygpv2iFvsV6Th1Iw4MdBq+cmtlfEzEDd Zb8g== 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 :subject:message-id:cc:to:from:date:dkim-signature; bh=fFg+yOI86gXXhmSNLal3y6xWuCA7tvRJk3uvQWOzwvc=; b=MQI1IrElX6D7Ky+w00Y75QOgJCXctTvAf3aJb5Sh3eSxdILB7P+HEYyE+lx6vR1+aE 2vsuBIagWAnuOxpQj6k15lPAuKt0NWr7KBRNYHXRLaCelfGGqdDwDMnGkfb8kPxUprAx ud1pqqXZQlnhMUadm+N3/NviUZIvnPrjo8fEU9AxAGGe9EBSUpM2zcq7uuzddWLffzSq dHWrOy0wsfW6oZoev2l4pn+RjyFsBkNPT8WLsftk6UyJAaG8O6/SayOGVidGZzSB6QKO TSJZXizl+aKRJauNUCtNCNf9VlE8B8IVFxaUdRovjTW/ASIbTQRBhv2P/oZUm4Goe/iz s46g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tutanota.com header.s=s1 header.b=dJK0hecX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tutanota.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m29si11712779edb.298.2020.08.16.10.57.29; Sun, 16 Aug 2020 10:57:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@tutanota.com header.s=s1 header.b=dJK0hecX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tutanota.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729315AbgHPRQ5 (ORCPT + 99 others); Sun, 16 Aug 2020 13:16:57 -0400 Received: from w1.tutanota.de ([81.3.6.162]:39246 "EHLO w1.tutanota.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726699AbgHPRQx (ORCPT ); Sun, 16 Aug 2020 13:16:53 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id ADF43FA03C7; Sun, 16 Aug 2020 17:16:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1597598210; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=fFg+yOI86gXXhmSNLal3y6xWuCA7tvRJk3uvQWOzwvc=; b=dJK0hecXw7dRZq4TTfMeFTX4bwq7NRvLeLxmF7gwf09Aj/u1cRxnh72rJMt+M3Gj mgFaBZvdiYDhkUUnwovAWRupa1TqReN/9n1kXekRiYaTxtM8IAqED7btDhq9jdpZRu9 6mImnu0Oo1+8AXu1e0ciKCNwRm7VoOtyxBbtnDjnR0rA1MCysXSlch8jUKocap4Qk+U y5fcwU0Z2wKBXmGt8BIZzTtZEON+t2BYkrjy/wdJZMoGOtzVS3wPDjkicDG5xgBofDh vYgKopqg5gOBK+c7RjgFXLWxZUnpxhyiFdAxaHyaNJJ0Mm1+aCZtLaZEbPgZrt9i312 g6wYPDrVeA== Date: Sun, 16 Aug 2020 19:16:50 +0200 (CEST) From: Cameron Nemo To: Devicetree , Linux Arm Kernel , Linux Rockchip , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: robh+dt@kernel.org, Heiko , balbi@kernel.org, gregkh@linuxfoundation.org Message-ID: Subject: [PATCH 1/3] usb: dwc3: of-simple: Add compatible for rk3328 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a compatible to be hooked into by the Rockchip rk3328 device tree. The rk3399 compatible cannot be reused because the rk3328 SoCs may require a specialized driver in the future, and old device trees must remain commpatible with newer kernels. Signed-off-by: Cameron Nemo --- drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-s= imple.c index 7df115012935..54f38e434028 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -49,7 +49,8 @@ static int dwc3_of_simple_probe(struct platform_device *p= dev) * Some controllers need to toggle the usb3-otg reset before trying to * initialize the PHY, otherwise the PHY times out. */ -=09if (of_device_is_compatible(np, "rockchip,rk3399-dwc3")) +=09if (of_device_is_compatible(np, "rockchip,rk3399-dwc3") || +=09=C2=A0=C2=A0=C2=A0 of_device_is_compatible(np, "rockchip,rk3328-dwc3")) simple->need_reset =3D true; simple->resets =3D of_reset_control_array_get(np, false, true, @@ -171,6 +172,7 @@ static const struct dev_pm_ops dwc3_of_simple_dev_pm_op= s =3D { }; static const struct of_device_id of_dwc3_simple_match[] =3D { +=09{ .compatible =3D "rockchip,rk3328-dwc3" }, { .compatible =3D "rockchip,rk3399-dwc3" }, { .compatible =3D "xlnx,zynqmp-dwc3" }, { .compatible =3D "cavium,octeon-7130-usb-uctl" }, -- 2.28.0