Received: by 2002:a05:7208:13ca:b0:7f:395a:35b6 with SMTP id r10csp14285rbe; Wed, 28 Feb 2024 09:08:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXziL5PLg1RGmVnC1bCBJ/RyAn0R3YBXpTrxoyFgnk3oFFFhmBmkw4cG9vRNtV1SuFiswS/Z+7YKFBe5heAEkTyy83Mv5A/7aq+WYT3Sg== X-Google-Smtp-Source: AGHT+IGwM8N61/11zeSwBTChbFn8hyvia/NbU5pVZU4ZHZ3szH1iRkMjE3GPYbj8IkLGpROhfwHK X-Received: by 2002:a17:906:af14:b0:a44:10e1:71e6 with SMTP id lx20-20020a170906af1400b00a4410e171e6mr170188ejb.62.1709140088449; Wed, 28 Feb 2024 09:08:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709140088; cv=pass; d=google.com; s=arc-20160816; b=M3rLbRTIuzU5Fba4y159mNK3HxaSQMJvTkDgY4ppYPJ4YXnsXgja65dl5gu9q84xTI aZDkWup49pNJMdE+kzUhgocvz1LMvm5VGkOcwWoXD/k5NZ2Sqk8FszxPO2ulXQlJNgRc U5etrt14Fvyq+MpknUKGryJOEp9Y3eP39jLjT9EU3ZiSm5Uhw0nwAiv0O5OEq9N2fVmE d+Ul6sF/AcrUtf7oTKQvNVtJDDuQGQ7H5JbWt/JB7YOpPEfZkCm+iiEoEIknwMsEpksP LpX0FoKYtHi5HT3WdlE4SKeGSp1+VqGtxgnBTVkarTo7WnRYjGcQbRDqJk2i6XKeue/U axkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lR6TX537s19Q8t6siS4J7Tqti9jnCuj7GU571eiIQiI=; fh=41NNB4hI94iCIowmSGLzuET2RNRHNmEyktCzfgUSjN0=; b=ykUNUD2vs5hccS2fTKaWKksRrnl1eT6oejxCFDXnEK6wQxhK4LT0/V9u+rx4f1q3r/ XwS4XgUPFAShRXYAOi/CiEI/tdkg7ejBzFM4DAeBIoyQZdh+0DkKiq2So0JqWoCpdH4Q 4EKSKLWRr75zWulRF6FI+g+aoOgW+KivNnr17SZp6n9HydHO4W0O/30t9yygFb4RhxVN P8WlaTXaN42ZeroEUTeNOzfCp1a9UAx8o1OVdo+8/6virRXSLP37d8frwKoRcXqU5nrQ iQdLVVamvckJav+wjNGmeUr9jtih6qi9W/TaJyV2Fk+0miiUCHwSq6+taDrw4IDAlWky IY4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DvJnUvPM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-85414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gt1-20020a170906f20100b00a43195a854esi1897993ejb.45.2024.02.28.09.08.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 09:08:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DvJnUvPM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-85414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 273181F21BCC for ; Wed, 28 Feb 2024 17:08:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 626543FBA4; Wed, 28 Feb 2024 17:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DvJnUvPM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 814EF208D2; Wed, 28 Feb 2024 17:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709140081; cv=none; b=Z2QI9/UanG4EUuhBoBISdrI42b4K6Yg1dq5rVpns/rQqzoEUMh0MUmOjPddz8Q1GLCjWn9lVNU3Rrryb/vhb5NoPAxwWEKcnKheGhpdh4jYnDzExzUnKtWdYatCeLvDwRq4lo8v97TEg/bnoeSbEUCCtT4M/hpc9dhSUt2QP6GA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709140081; c=relaxed/simple; bh=pOuRea6BcrpelSLBSjZEKw2v4BzFJQ/wIcZuMm258OA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OBig7xRXMukmutW7/d7DyQAV9pZ+u4gwGotx0DwMbjJ+FuuelFDH4hFPqb1BJgj1lOvF5QxkG4eYWLhAHn2ckhd1YQXmYOKV3s4BPbLAbBLb+r1mh+zm1+tQOx8X5+pBf3IxzweEv4TIjjclK1tt8OKmTamLBm4d9cUYE339Z64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DvJnUvPM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD3FAC433F1; Wed, 28 Feb 2024 17:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709140081; bh=pOuRea6BcrpelSLBSjZEKw2v4BzFJQ/wIcZuMm258OA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DvJnUvPMBab76WOE4uz6Op5Jr28ARmCElH2uanEQiw8HquYASy/RXP4FYBZImq3AL mMrhvnc9KME4g5YkWwALd0PvrWEoy4vMxznr5cY7Qa7IRWEn+7PVbRQapsn6JIITgA tq/spAh5kfCnULx56BMPqY9dA/UsgjT0HofMRWo3yuyUrmUOp/9MY/s4s56ypO9huf LHBqLFZW0a61icxbWCJk5vOyRe6PjOWT3mAuZ6btvxyIs7OpIeduP5KPDsFv3koBz7 SLQswe15efKH4qDOrXOtCBFm4BBvZyOwmdRLekgwdi51YtAU7WeT1+Kss9/fSWxhGu LH2sZIbaleLJA== Date: Wed, 28 Feb 2024 11:07:58 -0600 From: Rob Herring To: Inochi Amaoto Cc: Vinod Koul , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/4] dt-bindings: soc: sophgo: Add top misc controller of CV18XX/SG200X series SoC Message-ID: <20240228170758.GA282254-robh@kernel.org> References: <20240223003334.GA3981337-robh@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Feb 23, 2024 at 09:47:05AM +0800, Inochi Amaoto wrote: > On Thu, Feb 22, 2024 at 05:33:34PM -0700, Rob Herring wrote: > > On Tue, Feb 20, 2024 at 06:28:59PM +0800, Inochi Amaoto wrote: > > > CV18XX/SG200X series SoCs have a special top misc system controller, > > > which provides register access for several devices. In addition to > > > register access, this system controller also contains some subdevices > > > (such as dmamux). > > > > > > Add bindings for top misc controller of CV18XX/SG200X series SoC. > > > > > > Signed-off-by: Inochi Amaoto > > > --- > > > .../soc/sophgo/sophgo,cv1800-top-syscon.yaml | 48 +++++++++++++++++++ > > > 1 file changed, 48 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml > > > new file mode 100644 > > > index 000000000000..29825fee66d5 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml > > > @@ -0,0 +1,48 @@ > > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,cv1800-top-syscon.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Sophgo CV1800/SG2000 SoC top system controller > > > + > > > +maintainers: > > > + - Inochi Amaoto > > > + > > > +description: > > > + The Sophgo CV1800/SG2000 SoC top misc system controller provides > > > + register access to configure related modules. > > > + > > > +properties: > > > + compatible: > > > + items: > > > + - const: sophgo,cv1800-top-syscon > > > + - const: syscon > > > + - const: simple-mfd > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > +required: > > > + - compatible > > > + - reg > > > + > > > +additionalProperties: > > > + type: object > > > + > > > +examples: > > > + - | > > > + syscon@3000000 { > > > + compatible = "sophgo,cv1800-top-syscon", > > > + "syscon", "simple-mfd"; > > > + reg = <0x03000000 0x1000>; > > > + > > > + dma-router { > > > > Is there no defined register set you can put in 'reg' here? > > > > It has multiple registers in the syscon. But in fact, the dmamux > is a virtual device. And the syscon device only have some discrete > registers. This is why I did not put reg. It should access the > device using the offset defined in the patch 3. I would add: reg = <0x154 8>, <0x298 0x4>; (with appropriate "ranges" in parent) No requirement for Linux to use this either. Rob