From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796166757; b=Nrw2BPMEGQDFUclzusi/5tRZyUgCGV8SRnaxf6hd+mAwKBkqzXFGUokwJRobzLaiDU4/ jelabuVV9EcJO/ngNitBSre/33AprNkL/FXb/DdtoRHyLNkafqbssjxaKRaYhzmXOcJw9 P1PXFYAW6nWoYG/6VQg3m9L9I+3fyLt2QBO7kFM7XGlxxQaeOUunpaZthwMAladXWGZ71 SyZ9bGUR4tFsB0pXDKlnc5adjkSzNbSDyiMemsXucZlmXo8SFWeVmO0cWMz/QarQGgCP8 U3uK3bDNoFSv7xpC24C2Tpz7cASq3EWiFZyky29vPC0V8CeqHx0xuzuMVdGtCggTMGA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796166757; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=w7pi+9rKtOkgho6pQSlRPJTDxmfUJFeC6HV7ugGsZzY=; b=ksoIav5Xp8G+O8W6mXMlxVb/Jez0GcpCj/7uihIXV6nbwVS3V2ZyvfZXQcL7b3wGbDan UMDdCRgh8i8G8J0SjFcXGMQBlBp/tV7eyJOj5PVOOc4TmzX1vlSehbN0yFwCQc7dm5WqD MKa/fkrq6v4f3tBiP/mU+Ou+WbsthTl+HrpBo6IHinDaWZPo3Tntuk25ksHBThpibMLGM fMYW6RV8UiP8hYJ7P0bA8mH6mVuiCFoT2RI+edslXeaUG22h+yg2TLsbjsCpRGruzdBHX KWmz/XfUYgOV09nCBq1X53y/B2lU+ORB+2mZahdJ/KTVcA5d7ETsMEya/0VImbRyjEQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UgatPSI7; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD17B606A31A; Tue, 1 Dec 2026 23:12:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UgatPSI7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31E9A1F00893; Tue, 1 Dec 2026 23:12:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796166757; bh=w7pi+9rKtOkgho6pQSlRPJTDxmfUJFeC6HV7ugGsZzY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=UgatPSI71cF6TQ1FaJaGv+vSj+/4u2i3hbXNLOCbiBBVYhp4SrHU2plSkBsfoGXJ8 SW1hUIKY6o7xWKYLdJWxZ8zJ003JR2nK8OLdaY06WahuKg1F1rDuwfD2O3tvVHSMHi TX0rpRisrskj5vivD5PV5LhFqgbgOF9oXnpLTiaWTgrp6DRf2EieuB5lJLqoYv+Yo5 QAiT77w3Puzdj+S5iyhrZ7mSdTbvt8iUSMMlACyTY/cK1Ojp9hzJ77llgDCrH0rYzM hJSMJC59YpqI5s+SMMMSovgHN5WBEQh+EbgpzSVUvJIRurJ6b1TqOt4C24X4aiW3e5 XNA2RBKxzxEXw== Date: Tue, 1 Dec 2026 17:12:34 -0600 From: "Rob Herring (Arm)" To: Stefan =?iso-8859-1?Q?D=F6singer?= Cc: Agustin Santiago Isasmendi , Krzysztof Kozlowski , devicetree@vger.kernel.org, Lee Jones , linux-kernel@vger.kernel.org, Vinod Koul , Philipp Zabel , Navid Ghahremani , mfd@lists.linux.dev, Neil Armstrong , linux-phy@lists.infradead.org, Manivannan Sadhasivam , Conor Dooley , linux-pm@vger.kernel.org, Ulf Hansson , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/6] dt-bindings: soc: zte: Document zx297520v3 socsys controller Message-ID: <179616675409.512727.6767348342744799700.robh@kernel.org> References: <20261120-zx29usb-v1-0-b0433258e51b@gmail.com> <20261120-zx29usb-v1-1-b0433258e51b@gmail.com> X-Mailing-List: linux-pm@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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261120-zx29usb-v1-1-b0433258e51b@gmail.com> On Fri, 20 Nov 2026 22:20:50 +0300, Stefan Dösinger wrote: > The best way to sum up this controller is probably "misc". ZTE probably > put everything they didn't bother to put in its own mmio area here. > Documentation in ZTE's sources is very sparse and even the blobs only > touch a handful of registers. > > The controller contains power controls, resets, DMA multiplexing, > auxiliary USB phy controls, i2s controls, the proprietary DSP boot > address and many others. > > For power controls I could confirm that the USB/HSIC and a GSM-related > controls work. There are 5 bits mentioned in ZTE's kernel though and > there is a second register that is used in a very similar fashion by the > LTE blob. > > For the Ethernet PHY reset register there are 5 settable bits, > but only one of them produces an understood effect. I am using > reset-cells=1 because it is likely some of the other bits have an actual > meaning. > > Signed-off-by: Stefan Dösinger > > --- > > ZTE uses the name "SOC_SYS" in their downstream kernel. I am not > particularly thrilled by that name, but couldn't come up with a better > one yet. I am open to suggestions > > I do not want to commit to exposing the GSM related bits as power > domains just yet, so no handle for them is defined in this binding. They > are inside the RST/ISO/PWR registers just like their USB counterpart, > but the PWR bit does nothing and the client driver will have to assert > and deassert the reset to wake up the hardware. This is easier to do > with a reset controller than a power domain. The ISO bit kinda works > though, so I can't just pretend they are standalone resets. > > The hardware behind the GSM bits has a self-arming watchdog. After > 2.5ms it puts itself into a broken state and can only be recovered by > asserting and deasserting the reset in socsys. Like almost everything on > this board it is enabled on boot, so the client driver needs to assert > and deassert the reset before touching it. > > 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. > --- > .../bindings/soc/zte/zte,zx297520v3-socsys.yaml | 100 +++++++++++++++++++++ > MAINTAINERS | 1 + > include/dt-bindings/power/zte,zx297520v3-socsys.h | 11 +++ > include/dt-bindings/reset/zte,zx297520v3-reset.h | 2 + > 4 files changed, 114 insertions(+) > Reviewed-by: Rob Herring (Arm)