From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795202469; b=rpb/YwXPSJialjLuW1UTICIZzKG+UIGlM7DKOXrJcvBPJ+kvKxK24JPVfIekpSR51H2J MvO++VvG0ivpLheR/nxvmPJmbgeDj/JmlSZHxwXFbki+R0XTfkMwal9cxTImU6Kh/TFN4 y7kx6tj6G0QoBq0hiMTJlWWIK+xHFcZIlSSED39btM9GHmU+LTSzdKYptu5B0EG8xmGwL QksMNLeEFi7txd5WADHIaeJQrjSTEhm77TwvEFKgu2PFZIioV5nw/oqrLaQcJDaiicBWC FuekadcXVIkcXR/BWL3A3VLQCQFjxHqmxcs33rKStqeLCqmWhpZSlcOmk119N/Z2K3Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795202469; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:Subject:Date: Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding: X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature: X-Developer-Key; bh=Ba1LZYpNSjXVJ+zOLl8k2Tar0vWRwRjXeVxP97+SFE0=; b=mlnCsS9bSRC3c4GE5ITNx390+69OlDldElqr6NHR4evSFw6gYFiqZaAVvtUMMAs0gMMN KQ/BfZKtP2WostBSu+KdHDhTHLlTDuFIMWeQlvMHoRAf3eEKOchqu2KCNAhuDBbw0CYtq W8d5nYoDInNnN6sprSJhNIbk/8whXcRmKuGtF4c/j5uEeXt3KyZyWuQVVyPbdFMpYuYoW J+ekPXnYnPMLtK9EeDDTHQsMfc6u6TDZBjLanPvXs2Kwg1C4JaXIeIqkTtVP3s6bZRF0p d0hRRpEd2dotBvzu3sR7ihErFxSbqkXKzwuFYBJ4Gmtcg6pkDtb1lQv1pP6vprpNhvg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=iVa9bfr8; arc=none smtp.remote-ip=209.85.221.50 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B063B606A33B for ; Fri, 20 Nov 2026 19:21:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B063B606A33B Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=iVa9bfr8 Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-48e20ed3b9dso1128775f8f.2 for ; Fri, 20 Nov 2026 11:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795202466; x=1795807266; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Ba1LZYpNSjXVJ+zOLl8k2Tar0vWRwRjXeVxP97+SFE0=; b=iVa9bfr8WG30k/MSJdiEdmZdZ4egBy+7f5rc5VMTzKP1F1/pbxM/nmWrWTj4wJEBTd tO3ZduowcMfo+P6jvecbjsKTCQS+Lb8ElXNZ36Uj+rvbWT0JvQ/5ItV0ucDe9lm4cJqW LITa7FW+S4Va4KD0ngnWVHvWob1H03G4iHy+tzS2UV/Foiwb1YJaYjE2OfQEnRHZtNHn OqS6TlHEiRagXYOi/P5Omb/3cCq84Wi/aDSppob7iUYjI6z97kHxCLF/9gWfINuG3Kka KdUoevvtkMmJgo0jT6EDaGaUaIg9GL0X4ueAtjoYCA0Wt9oydxWSBM4Pu5+0GfP74zAb 4ykA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795202466; x=1795807266; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=Ba1LZYpNSjXVJ+zOLl8k2Tar0vWRwRjXeVxP97+SFE0=; b=MpzoK6SqkT2fhJD5pYKjvwpWUKWKY+0PYhMJA/aqChA49bEThr1JvrdgH0XdlVL9z8 Mg1vC6fog3VZfpZV3l32AibrMgsG7Fp2DkgNYX6GRPzy8U7h6eXfqBcuY+toG3dy8RXd jAv2SuxxkxSTTFOkUqMRic5pwmbn39oxpZeAWfXRmtFscpygxR3MRY6N8m/VZJOcT6O0 UgUWPgKw69F9Iy8gwe1ZdIMEOn2QWXep3gXegVe/rbdR6sGJJEU7VgzVo+EUrFKr964B T94KCdjm+XGmkqWH3oQ1WFD0KJjoIEM/6Rhv48a8CEW6CGXfN6lYNSpSUoNj/nXl1J1N 2Agw== X-Gm-Message-State: APuU4Z88ASueuuK1g9svl2mlm51OHj/2md3IJjZA7D7v0ILBgLNdyZ1h LcU0GbZs3QF6ArNgz7AMEJBDlyX86ucBKY6LxboQfaQIbx8v2Ahd2lVM X-Gm-Gg: AZFdTZetsgeMLhWIULYEp4OXitren4pyyvCfOPHx7aicZvIT3o87uSbC0a1U/HfVopm mfbSOv42Ravb7Gp/jmQiZ+ID+9zkj+BiO1PLU0qc9aMAgXB5a/4BpUdkOf1CTyz7+ijCk3VCtdG uwgZZC+ECb8HTWnp6IiNoM5+YwrHxkwB1FYXgMarcsFa2kbQ7NvLb67R0/xfVAWZbc9PqC3XgsS E/912cXXnq6mImEE3AXlrYYUoafFWbnNApAQaHfzO3kOhIHvnAM+wKAi0aiG4Lhovtdaw05IQ9k 31qavXt76F9uDon3xTH14oTbSnTL9pAIU+DPt5wtczdr15clTFskuCB0OIlStTSd+8OPmn685UF prLfeypGtU6IQPwTOmougDrYZtIj1ZcL5qkhLMIFeoWApPJIaFWm8He5JRkvZEq9B3X2Dto82xT UeZdNMWFZHICrf6PVzr74QB3/UVekEjxVaGU6skS7Y0xs4BoBo/BC0KEXczVlRLoGm0QegRuqEa eOn22Ay8+BhpnI9oQt5WMS89lr7+K3wU0ZWFGx2QXJgjml+Z4yrmwn1ETvEOuyraCveuOf4suyW Ewec0OOkSmkodApoKepNBIKRk/23z8/szBlCvqc+ X-Received: by 2002:a05:6000:4541:b0:48c:4658:602b with SMTP id ffacd0b85a97d-4abb400bbf3mr6410831f8f.10.1795202465920; Fri, 20 Nov 2026 11:21:05 -0800 (PST) Received: from [192.168.0.2] ([197.250.160.206]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6a67f204sm8405703f8f.21.2026.11.20.11.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 11:21:05 -0800 (PST) From: =?utf-8?q?Stefan_D=C3=B6singer?= Subject: [PATCH 0/6] ZTE zx297520v3 USB support Date: Fri, 20 Nov 2026 22:20:49 +0300 Message-Id: <20261120-zx29usb-v1-0-b0433258e51b@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/0WOXQ6CMBAGr9Lss036I2B7FcNDW1atCmhbCJFwd yuQ+DjJ7Hw7Q8TgMYImMwQcffR9l4EfCLib6a5IfZMZBBMl57yin0moIVrqpFHM2ELJ4gjZfgW 8+GktneuN42Dv6NLvfDcCvoc8kTbtv6DJ1mente+eDyotq6RVjRBNqUe+blgTkbq+bX3SpMMp0 f0tBfWyfAEDtdoxzAAAAA== X-Change-ID: 20261117-zx29usb-c3a90ab59354 To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Stefan_D=C3=B6singer?= , Philipp Zabel , Lee Jones , Ulf Hansson , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Agustin Santiago Isasmendi , Navid Ghahremani Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mfd@lists.linux.dev, linux-pm@vger.kernel.org, linux-phy@lists.infradead.org X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3961; i=stefandoesinger@gmail.com; h=from:subject:message-id; bh=FWQb+bD4+CzUS89QtQFZvvJ9rtMw5c8LSvVgJ2lgW6o=; b=owEBiQJ2/ZANAwAIAT0TvMhUTxoiAcsmYgBrAJ2WLxQfwJwf3UU2/2ZG/baKj8e+AcifMVpgO DzUx5mh4amJAk8EAAEIADkWIQRDFvS2qgVbJ5UyXWw9E7zIVE8aIgUCawCdlhsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMiwyLDIACgkQPRO8yFRPGiIY7BAAjh6uYVRLaiV6bbaXmSFHRPt6/PfvQKT vnjZ0TnBwX/y9aoG++Jm4tUH+wbRUU8ehmzojZRpUZ7JXcHDq55bO1AyB5pOaH57BIN4gZIebfh r3LdzDmBhjlXwe6Jq1Vh6M1lGMqj7zOnCUkA7KAhKFT5V/i+o/Ho4HkU++cMFmF+uakN5UA65O8 MrhBnKtCvBafYQgDA0S2Y7hMRfUvWfPlXGTzi94rCBZE9CX6JzvyZW625HI+vhLRchX1cxvm1JK J6auyg2Bc6BXE+DlDcGvmmGzfUt+gvNcGVIBTkb+c+AMnkARc/IkZ8o3LgPowZEeXWp8+bYE5Cg /zT+Te6JV6qqnCopAErFnF5Wn9Vrobq++ZPlG35Sbp8BJIzVKaE9Wwlzz+hRR5NrFd6B7FpVDVv DzHCDbvNOL7+6T9JsExO1mMskdl7JiWSEJyjKcAAG9IZaeNBwRG8yaaKK0Y6eDzLcn6kG5V8EeU ic88V1VXgF+UA/OlSAMJ2U/6AfzTjnmDGRbrnkaeGP7CnsW64JDQD1kz1eQMWl7okCNKuDEwSpN g7fHe91pG8duQy7BZQvncNoS2Zm2MO3h5UZ02gvAaH+Dn69f6VNM01R4Fxd6lhD7BZ+31sPRrPi fs3Dug01rMorlaA8eUHw2y3MjpEiul4iA3bwKz/s9BChfh2WolHk= X-Developer-Key: i=stefandoesinger@gmail.com; a=openpgp; fpr=4F9C2C8728019633893EBBB98CB81F9A72BBA155 Hi, This series expands the device tree and drivers for the zx297520v3 board enough to enable the DWC2 USB controller found on this board. This series depends on the zx29clk MFD driver that has been accepted into the MFD tree, but not yet merged into linux-next. The individual patches contain a description of what they do and the rationale for design decisions. Here is a quick overview: Patch 1: DT bindings for the node containing the necessary power controls Patch 2: Add the socsys node to the MFD driver Patch 3: The power domain driver Patch 4: A minimal USB PHY driver Patch 5, 6: Link it together in the DTS Dependencies: 1-4-5 depend on each other at build / DTS validation time. 2, 3, 4 are build time independent but need their previous patches to be enabled at runtime. The MAINTAINERS additions are going to cause issues though. Once the patches have been reviewed I can either take them out or create an immutable branch. The open questions: 1) How much documentation is appropriate in the binding .yaml? I want to document the identified registers *somewhere*, and since the yaml lives in Documentation/ I put it there. I do understand though if the Linux kernel doesn't want to be a backup SoC datasheet. 2) Power domain vs reset: The pm domain controller has a reset, isolation and power register for each of the 5 (maybe more) devices it controls. My binding links them together into #power-domain-cells. To start up the GSM controller, its driver will have to assert and deassert the reset. The GSM controller (Derived from an Infineon PMB8877) has a self-arming watchdog and after 2.5 ms it stops responding. With the power domain it is somewhat awkward: devm_pm_runtime_set_active_enabled() pm_runtime_get_noresume() pm_runtime_put_sync_suspend() pm_runtime_resume_and_get() And hope nothing else is holding the device and that runtime PM is actually compiled into the kernel. Life would be easier if I expose the GSM reset bits as #reset-cells. Otoh, I'd prefer not to do that for USB, as USB already has 3 different reset controls already and adding another is awkward. I could of course also hide the USB reset and expose the GSM resets. For now I postponed the issue and don't add GSM related controls to the bindings at all. --- Stefan Dösinger (6): dt-bindings: soc: zte: Document zx297520v3 socsys controller mfd: zx297520v3: Add socsys to the mfd host driver pmdomain: zte: Add a zx297520v3 power domain driver phy: zte: Add a zx29 USB PHY driver. ARM: dts: zte: Declare nodes to enable the board's dwc2 controller ARM: dts: zte: Declare the HSIC controller node .../bindings/soc/zte/zte,zx297520v3-socsys.yaml | 100 +++++++ MAINTAINERS | 3 + arch/arm/boot/dts/zte/zx297520v3.dtsi | 42 +++ drivers/mfd/zte-zx297520v3-crm.c | 12 + drivers/phy/Kconfig | 11 + drivers/phy/Makefile | 1 + drivers/phy/phy-zx29-usb.c | 183 +++++++++++++ drivers/pmdomain/Kconfig | 1 + drivers/pmdomain/Makefile | 1 + drivers/pmdomain/zte/Kconfig | 15 ++ drivers/pmdomain/zte/Makefile | 2 + drivers/pmdomain/zte/zx297520v3-pm-domain.c | 286 +++++++++++++++++++++ include/dt-bindings/power/zte,zx297520v3-socsys.h | 11 + include/dt-bindings/reset/zte,zx297520v3-reset.h | 2 + 14 files changed, 670 insertions(+) --- base-commit: d785d132202e8e8e93335ebf74ad5b29fca0951f change-id: 20261117-zx29usb-c3a90ab59354 prerequisite-change-id: 20261108-zx29clk-3b073b9d22d6:v14 prerequisite-patch-id: 3ea4ed11578625d6aadf59c5b542e788882eab2f Best regards, -- Stefan Dösinger