Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3224293rdb; Tue, 26 Dec 2023 23:35:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8OnZrfIONqQ89Bipu59S1cOv/68/o3eahXtiLVkTktAxqU0io7VpxiL45W1GTbhaamUWu X-Received: by 2002:a05:620a:158f:b0:781:5db7:e1d3 with SMTP id d15-20020a05620a158f00b007815db7e1d3mr963218qkk.108.1703662556130; Tue, 26 Dec 2023 23:35:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703662556; cv=none; d=google.com; s=arc-20160816; b=gFE/cRAQDZQN7fMol+Z3LyDra+y2NmdiY08j6bStBYLKa0eb4z3e6sBPyMe5LlkVxk OSmFd3D80M8ABHmhJOiHmBmfvPFMWbmwVQPqDAncWouA0R3MBTzGP1DGPvHDWjlpFnNj SAgLFOX8iiA7Nl5uSUz5THCJWpdz176JSFCP14eaE8ZIJIjBCOGym/plF3yGrtsH19Px yfeFHl7ya9V73Rkvd4v8Czj37R++XoRw03zMabL+KfYwJ7wuQQiq1y/SkKFp+E9f2/Kc 51V4KZsEZ7QTWAayOMVVFjr4AzQZPE+Jpq0lOJbLlfLSGG/y8SjD+7mOC5vsACLRB7Lg mgfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=j0n+qAEBPiyG9ZBXxmkMErIapOslfZzRv1igP74DPiE=; fh=OyE/kWYyXslXf5LBPDOa6zlXbofapIzOz9IBNFfHTbw=; b=dbPNDAoO6qQFAKSflTy/0dJ/OJqkuB/ZlMCYgi2EeUJM3yRBYsLF4qEOBp+YjQ5XTc nIaJbLoInsqzd9ZnsNxidia3N2z6/4BBS5uwrVok/IxOix2wVLIfdZ9QKWUbU7tnVnes p2M5WwWKp0QcYAsozSyFSC8zC3aA+dBkdoQAkJZeMXz8I60exYyA7wGPD1uHml1MFu3H WYX0HYRvT983RB4afYExTCQvk5AoUt70Izx89bJGKL0AIOZRWFBqqtAT2ykkREFDlS4t LGVIvxNVH8vMflJjz6FbM8ORGFXpRt5SN2diR95a13l/5QOU6fErcmkoUss7mf+uh+YB jLpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RbnvaZ+u; spf=pass (google.com: domain of linux-kernel+bounces-11888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vu28-20020a05620a561c00b00781330cafb3si9390768qkn.25.2023.12.26.23.35.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 23:35:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RbnvaZ+u; spf=pass (google.com: domain of linux-kernel+bounces-11888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D9E641C22361 for ; Wed, 27 Dec 2023 07:35:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F8825687; Wed, 27 Dec 2023 07:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RbnvaZ+u" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FDE363C6; Wed, 27 Dec 2023 07:35:45 +0000 (UTC) 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 Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-593f7a1afd7so3016073eaf.0; Tue, 26 Dec 2023 23:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703662544; x=1704267344; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=j0n+qAEBPiyG9ZBXxmkMErIapOslfZzRv1igP74DPiE=; b=RbnvaZ+uDCkvzRLYDXBCV6rzxHF+bZU9+Pb+eGgUz6ATQmktFKPOGm7IQsNkQh8pae dxuWsWEdkKvvT2xkD8luldApLt1ttgeWkzEl5cJNjgxPRnZACa6F6R0R+SZzuCaWgbrG +JQFJlGGf2vXCnd6aThEfR7xVtzS1IfmXi1Os7NoAUVbrvJejO0KMR6X8Li0STILU/uV 9OJ0+nlmitDCkaVcIBH/ecVD/E5kcN3MrvWmG7HWvgCaGCcx9hs/Sjut/VQjrs5NJ8/7 iUDHUq6oq+pncnwQ8PTdNyF8gR7OcWhjKScq250K9ZhGgLv23FJrUZFJEw9aLJ3Iobi3 YS3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703662544; x=1704267344; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j0n+qAEBPiyG9ZBXxmkMErIapOslfZzRv1igP74DPiE=; b=tY7HC9zpQXgDnpRHunPLmD39cJgzRax5u8briubGWwZWWlk/emRFag233+8O/X2E2b ijV5RQXmxG8cb44FzP/DF254X9OTxJXDScSWVVyZrOtiic7KFKVgt4bnJCIDtnTmYHEB 4mYWE/RyFKJ8MqATwv+W/HsbwtzHRe4v5fHCYhJVORa87RX/dd+R/Hp0THpYt5Ly+10u zBZr3+CRoIruNl4i3M+iiyTGbf3lzEdMwiKsh6pqX3e/ffH6Y+Uye5z7B9/p7kOKpIaF fIquPZNvLGBV6Q/YXFgKWz1l3h1Jk4oC1kjGUcSrNKCb7n336jt9O27kZ9xY8+9kfGXA kQ8Q== X-Gm-Message-State: AOJu0Yw/Q2AMx78cRYpqjF0aHqAQagUqU4m2NmBRhkQtUoyrtmdq3C2i IeuzIHU9ERuFpxYF780OKOxo2fcR0pu6hmJhrO4= X-Received: by 2002:a05:6820:229b:b0:591:cabb:dd91 with SMTP id ck27-20020a056820229b00b00591cabbdd91mr4931528oob.13.1703662544255; Tue, 26 Dec 2023 23:35:44 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231226100431.331616-1-qiujingbao.dlmu@gmail.com> <20231226100431.331616-2-qiujingbao.dlmu@gmail.com> <8f5e5cc7-9795-4e17-8bb9-73448e960c3d@linaro.org> In-Reply-To: <8f5e5cc7-9795-4e17-8bb9-73448e960c3d@linaro.org> From: Jingbao Qiu Date: Wed, 27 Dec 2023 15:35:33 +0800 Message-ID: Subject: Re: [PATCH v3 1/4] dt-bindings: mfd: sophgo: add MFD subsys support for Sophgo CV1800 series SoC To: Krzysztof Kozlowski Cc: a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor@kernel.org, conor+dt@kernel.org, chao.wei@sophgo.com, unicorn_wang@outlook.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dlan@gentoo.org, inochiama@outlook.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 26, 2023 at 8:18=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 26/12/2023 11:04, Jingbao Qiu wrote: > > Add devicetree binding for Sophgo CV1800 SoC MFD subsys. > > Subject and commit msg: there is no such hardware as "MFD subsys". Is > this a PMIC? Does not look like. You must describe here hardware, not > Linux subsystem. > I don't think this is a PMIC device. the RTC restart and 8051 configure register share one common range address, and the address have other function that power manage= ment. the datasheet link: Link: https://github.com/milkv-duo/duo-files/blob/main/duo/datasheet/CV1800= B-CV1801B-Preliminary-Datasheet-full-en.pdf chapter: 3.9 RTC 3.12 8051 subsystem > > > > Signed-off-by: Jingbao Qiu > > --- > > Please mention the dependency here. Thanks,I will fix it. > > > .../bindings/mfd/sophgo,cv1800-subsys.yaml | 51 +++++++++++++++++++ > > 1 file changed, 51 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/mfd/sophgo,cv1800= -subsys.yaml > > > > diff --git a/Documentation/devicetree/bindings/mfd/sophgo,cv1800-subsys= .yaml b/Documentation/devicetree/bindings/mfd/sophgo,cv1800-subsys.yaml > > new file mode 100644 > > index 000000000000..c2a071c8a2de > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/mfd/sophgo,cv1800-subsys.yaml > > @@ -0,0 +1,51 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/mfd/sophgo,cv1800-subsys.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Sophgo CV1800 SoC subsys controller > > + > > +maintainers: > > + - Jingbao Qiu > > + > > +description: > > + The Sophgo CV1800 SoC subsys controller contains many functions > > What is "subsys"? Why is it in MFD directory? SoC components like > system-controllers do not go to MFD. This device has multiple different functions, because they have 8051 subsys= tem, so I named him "subsys". I will carefully consider and rename it. > > > + for example, RTC and restart. In addition, CV1800 has an 8051 > > + subsystem, which is configured through registers at this controller. > > + > > +properties: > > + compatible: > > + items: > > + - const: sophgo,cv1800b-subsys > > + - const: syscon > > + - const: simple-mfd > > + > > + reg: > > + maxItems: 1 > > + > > + rtc: > > + $ref: /schemas/rtc/sophgo,cv1800-rtc.yaml# > > Your patchset is not bisectable. What's more, you have dependency > between patches, so bindings cannot go via separate trees: mfd and rtc. > You need to make this *EXPLICIT* in the cover letter or patch changelog. ok,I will fix it. > > I do not see any resources in MFD block, so why having it as separate > node? What other devices you did not describe here? You mentioned > restart and 8051, so where are they? Which driver implements them? > I'am sorry for that other drivers have not been implemented yet. I will implement it after rtc. They have the same address range, so I use mfd to describe them. > > Best regards, > Krzysztof > Best regards, Jingbao Qiu