From patchwork Tue Jan 17 09:11:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 643395 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp1050274pvb; Tue, 17 Jan 2023 01:12:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXsL2E+qjZyQgrHsHT719S+7VLX5ePcZtVAhG9xHyxt2B0lyKYc8wcelMQ7YLYCzTqBsHq+k X-Received: by 2002:a05:6871:b324:b0:15f:931:5aa9 with SMTP id bd36-20020a056871b32400b0015f09315aa9mr1026021oac.59.1673946721228; Tue, 17 Jan 2023 01:12:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673946721; cv=none; d=google.com; s=arc-20160816; b=DtleHPzvEaZQJLBDooZZ9Uiu99fchZoYsYmnPH/q25mdP2l3laYXTYn0HE94MvykmY KklnDyOQHdxinJZ6C4AP59pP9avh8B21iQhiCG6PW6HGOD7XQ+ZR0U3nD/bhzl7A3M5z RDfb14inl9In8sfYYigr6PEEAySWZzoL9+SQnisApz6Sbe0K5LCeiDWsxs1bhwHY8rKQ E+QeJDVBejrx8Z4Lmp1osrDSzk4U7SuPxsQr3RE6y9BwxYp011fY+SopAvmlMjAa0jKS U1ymNbgXizyXk4xPVkvHElg8plaseCQe3rXuGkNpRNGcjNuaRMW073/RfeoyL2VPb3Ps R0TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:content-transfer-encoding :mime-version:message-id:date:subject:from:dkim-signature; bh=SF5s2IX+3Xh7hC+IDwpzzbovesvDaJnFzQQWTrU1/IA=; b=y94bdMUWWK9pg+XuuKj1ARQ+ko1YgEXwtjccFJG30AJsKZSnhIkbRov0LyysjImo5s ukTbStjA/av8CWMHKNE/1dF1RPo645XEdKThH1nEDjoC7AVxA4PLx/GzlGY81DPPjHGQ PXuqOYNqS/BlHBuCMUYrOmCoxIlZ2ammqhPuSk3dHknpuUoC7GT8TALNf3c+QeH1jMVm BIpPJtHS17dxGH5GxsLCwCjsUYSp6r/vqR4gh4/Du662XqUZf69OokaP3V5BxN/DQYlH wnkYASvha6yo4SgxkPr6tMtIGjRC/w0It8ZTQAZ6lkiLa7/0QmEeM1qW+RL6vZq6stPI MEaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uBX7E8u0; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id c17-20020a056870479100b0014c79546be7si29171435oaq.106.2023.01.17.01.12.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 01:12:01 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uBX7E8u0; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C43F984DEB; Tue, 17 Jan 2023 10:11:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="uBX7E8u0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7DA7680F95; Tue, 17 Jan 2023 10:11:54 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4030C850D6 for ; Tue, 17 Jan 2023 10:11:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=neil.armstrong@linaro.org Received: by mail-wm1-x334.google.com with SMTP id q8so9883667wmo.5 for ; Tue, 17 Jan 2023 01:11:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=SF5s2IX+3Xh7hC+IDwpzzbovesvDaJnFzQQWTrU1/IA=; b=uBX7E8u02Dkhb5m/CpaD0TXNV0ZOqiqsgFT3sZ002Q+fMlYuhFmAqbHi91adJTnvIi VJupB67k7fPiqPZfOc6fj+gYgHvgoxHSoXsv2snzBfnQDJU8ytdI8/NUUo6cIhxW9Mpi WG1GRpsheG9rWa2dn84KA78w5A5jMoHfcKpYrIcaPavi+7WjEWEEaf8HXzeSR+rs5wSj fH8euvUrdng/zGxHwXu4rdKssa10E4wD8eWPN72svELVzfl/YJpgNGpcpBLiSpy9+410 47X80lc64QqN09N/LxnrGGZ+p1oVJIB/BMwmcMBlUAxx4KLub0L1SnFi5KGVtojjbKvi sXKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SF5s2IX+3Xh7hC+IDwpzzbovesvDaJnFzQQWTrU1/IA=; b=31DKrV75Ka2485z64saHSGh5USUYV54wnLWsxypQJwBmGkpt2RnVDUIuSe/MoCyl/L eqpxC3QLSfAbk1tnvOxNcv6ogvMEsyLbHli5ANlBpk0pAHuPx5S3XMTnv8sjlKBOmZcO 4AZx6gmrokIfPopUDYSD/sB/6EfVXAClAyXvh70s9TFfgG7MMVhyNc+PiigjC9cGbS5y 5yr+iuzVMyxKJ08I6rKDrhZf9CqEvXzmv+r34uWLph3lOzT68aaoThJ/HufZD2PWf2d2 uqlp5XWc5Ec5g7n8dt+whDAVypN97KD08QufgeiZMXMvhceLG+JvKpx0Ek8X/DNAc4SO AZww== X-Gm-Message-State: AFqh2kp9g0bIw85/oTHxT+7gLkXXaSAcc/4IYwUK36R9UWXtTELNOqSh 2teViCf9aMWPYtBBsn9qvpMISfhRddOKKtin X-Received: by 2002:a1c:7315:0:b0:3d3:5a4a:9101 with SMTP id d21-20020a1c7315000000b003d35a4a9101mr11036071wmb.23.1673946708745; Tue, 17 Jan 2023 01:11:48 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id u21-20020a7bc055000000b003d9aa76dc6asm47969334wmc.0.2023.01.17.01.11.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 01:11:48 -0800 (PST) From: Neil Armstrong Subject: [PATCH 0/2] mach-meson: port GXL & AXG dwc2_otg usage to CONFIG_DM_USB_GADGET=y Date: Tue, 17 Jan 2023 10:11:45 +0100 Message-Id: <20230117-u-boot-usb-gxl-otg-dm-v1-0-2853f6d75b06@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFFmxmMC/x2NQQqDMBAAvyJ77kJWD9p+pfSQ6DYupEnJGhHEv 3fpcQaGOUG5Cis8uhMq76JSsgHdOphXnyOjLMbQu35wRCM2DKVs2DRgPBKWLeLyQUcD8zTSRHcH 1gavjKH6PK9W55aSyW/ltxz/2fN1XT9pZH6hfAAAAA== To: Marek Vasut , Vyacheslav Bocharov Cc: u-boot-amlogic@groups.io, u-boot@lists.denx.de, Mattijs Korpershoek , Neil Armstrong X-Mailer: b4 0.11.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This is the port of Mattijs work at [1] for G12A over GXL & AXG. It uses the same design and should work as-is, it still needs to be be extensively tested over the main GXL & AXG boards. [1] https://lore.kernel.org/all/20221024-meson-dm-usb-v1-0-2ab077a503b9@baylibre.com/ To: Marek Vasut To: Vyacheslav Bocharov Cc: u-boot-amlogic@groups.io Cc: u-boot@lists.denx.de Cc: Mattijs Korpershoek Signed-off-by: Neil Armstrong --- Neil Armstrong (2): usb: dwc3-meson-gxl: force mode on child add/removal ARM: meson: switch AXG & GX dwc2 otg to DM arch/arm/mach-meson/board-axg.c | 129 --------------------------------- arch/arm/mach-meson/board-gx.c | 137 ----------------------------------- configs/jethub_j100_defconfig | 1 + configs/jethub_j80_defconfig | 1 + configs/khadas-vim2_defconfig | 1 + configs/khadas-vim_defconfig | 1 + configs/libretech-ac_defconfig | 1 + configs/libretech-cc_defconfig | 1 + configs/libretech-s905d-pc_defconfig | 1 + configs/libretech-s912-pc_defconfig | 1 + configs/s400_defconfig | 1 + configs/wetek-core2_defconfig | 1 + drivers/usb/dwc3/dwc3-meson-gxl.c | 18 +++++ 13 files changed, 28 insertions(+), 266 deletions(-) --- base-commit: b96640cbfb319071aea7915cfa2f7aefe08bbc08 change-id: 20230117-u-boot-usb-gxl-otg-dm-013ee8718190 Best regards,