From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B770606A31A for ; Tue, 1 Dec 2026 23:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=jjUTX9VG; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UgatPSI7 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=w7pi+9rKtOkgho6pQSlRPJTDxmfUJFeC6HV7ugGsZzY=; b=jjUTX9VG6yaeLG+pyy9703550e gzWWa2qRNx+93+i/To564k1fYAtU8HWG96b8KFWAzrOwJgzNnZZgDrk2ucoFgqZcnrE8xvHD6JkYb k7OfrgUxNeXGevhFaikxoUPVR/N+AYYLy83iOlw4CdMlZVAdVj9uwKK/Q35M2JCKLIXIdZsa59jKi Absd+yst5Pk04sqvLMWI3tCB4vWw19a9+Rv6Wyuhvmf2zBqs4Sw/VMNfZAhNEF7nKfxOtDy/7r+eV zBTdnn2xoAwd6wylixWO/CYaXvI14+oYvHYMUmcFyTjDe435pZa9Df4h4kYlpeKL3wlIjyghbY16l blEkN+/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYX1b-00000009cg1-2sUk; Tue, 01 Dec 2026 23:12:39 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYX1a-00000009cfb-0DWm; Tue, 01 Dec 2026 23:12:38 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 89EF64245F; Tue, 1 Dec 2026 23:12:37 +0000 (UTC) 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-Archived-By: 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> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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)