From patchwork Thu Sep 17 06:59:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11781701 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4FFC06CA for ; Thu, 17 Sep 2020 07:00:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 34B1C2065C for ; Thu, 17 Sep 2020 07:00:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="wifFBUQy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbgIQHA0 (ORCPT ); Thu, 17 Sep 2020 03:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbgIQHAF (ORCPT ); Thu, 17 Sep 2020 03:00:05 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50074C061756 for ; Thu, 17 Sep 2020 00:00:00 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id t10so798990wrv.1 for ; Wed, 16 Sep 2020 23:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AYO9vI1jssWFcgU0C4Kub0Gl3FwLz/cFiMnc7N/ZW8M=; b=wifFBUQy+ttQ5Td1dl7VKNfBfS1AhjM4edEBr+Q8ZvPNeGybfd68skZoMlLwAwzCSX B+QDjxln57NaBDmolZ1oCx7SocjTeiAQtD1oB+9nEzpZZd0cOZXeNJZEthygcKm9EuvT nrB1dQzYuhUPHy6+TGWhs/vyWQ46B/pXi2M3OUT/7JAnIkmjvp/EIEkZlWJ0sN4ymo/n dXYbGHzg2ou8am6oaD6a5FwA3mkN6e0DPLXYtJnF73U2hIkwBPjk8YGSoJDVvRN+kxgo El7B8mMDQMuBn7+eD7ogF6WajlCFtRgnXpAzrDj4BenoFMA4FzNFvH5JLpjf6THsji6b U+JA== 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:mime-version :content-transfer-encoding; bh=AYO9vI1jssWFcgU0C4Kub0Gl3FwLz/cFiMnc7N/ZW8M=; b=p4zEjdCwnO2aDp/1T7QlPldDBlSGRtVL71g7+gtu90MCaMhaQAiVzwOHUF29SvxP1h EWAjlYjCmSLCauY/8xg7867gy610gTWcJCDJ6uW9dggmBqWfQfzaKMCpt61OyE61q3BK nH0HSDIL3qtRgW/HaZOYyswobfh37o34iYBxRT/6oB+mgDxl4wQnfGp9jUxOcBb9toXo cRooQlGLblv4pvE5thbAWxGqCaftlD6vZzTqoMSJSbM3LaV1bDL7Nh/SxJbAunpxCuTK TL9xjoM9OlzzWlwqyoceBIHMSv5h0CRqhuT4ZC52QaftPPj1IJXRO8V5rFAswpY3Y5MR QJ7g== X-Gm-Message-State: AOAM530sItXuIC+Zii+/zgfUjMLU9hfffAWytCcDnYUT0lnsn4N8jjV4 B+nJ4F/kq6mliL2c9VmZk3kJAA== X-Google-Smtp-Source: ABdhPJz8bKW3OvFfUb/6QzuoM+0dCijwwS3cJjUsFtm6QbvCnlA4iVmILfLpLhYU5ZyBMa9zQTuP9w== X-Received: by 2002:adf:e8c3:: with SMTP id k3mr30942832wrn.228.1600325998448; Wed, 16 Sep 2020 23:59:58 -0700 (PDT) Received: from bender.baylibre.local (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id z14sm35709055wrh.14.2020.09.16.23.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 23:59:57 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, kishon@ti.com, balbi@kernel.org, martin.blumenstingl@googlemail.com Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong , linux-usb@vger.kernel.org Subject: [PATCH v2 0/5] usb: dwc-meson-g12a: Add support for USB on S400 board Date: Thu, 17 Sep 2020 08:59:44 +0200 Message-Id: <20200917065949.3476-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The Amlogic AXG is close to the GXL Glue but with a single OTG PHY. It needs the same init sequence as GXL & GXM, but it seems it doesn't need the host disconnect bit. The Glue driver reuses the already implemented GXL & GXM work. The USB2 PHY driver needs a slight tweak to keep the OTG detection working. Changes since v1 at [1]: - s/close from/close to/g - collected review tags - added small comment about phy management in patch 3 - removed status = "okay" in patch 4 - removed invalid phy-supply of phy1 in patch 5 [1] http://lore.kernel.org/r/20200909160409.8678-1-narmstrong@baylibre.com Neil Armstrong (5): phy: amlogic: phy-meson-gxl-usb2: keep ID pull-up even in Host mode dt-bindings: usb: amlogic,meson-g12a-usb-ctrl: add the Amlogic AXG Families USB Glue Bindings usb: dwc-meson-g12a: Add support for USB on AXG SoCs arm64: dts: meson-axg: add USB nodes arm64: dts: meson-axg-s400: enable USB OTG .../usb/amlogic,meson-g12a-usb-ctrl.yaml | 22 +++++++- .../arm64/boot/dts/amlogic/meson-axg-s400.dts | 6 +++ arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 50 +++++++++++++++++++ drivers/phy/amlogic/phy-meson-gxl-usb2.c | 3 +- drivers/usb/dwc3/dwc3-meson-g12a.c | 18 +++++++ 5 files changed, 97 insertions(+), 2 deletions(-) Reviewed-by: Rob Herring