Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1457101rdb; Mon, 19 Feb 2024 17:15:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXU3JCbKbusUngmgoslZBdSHxnmhTCdowwhA0SrJlRTaWOQ4L/1/4N9AVDelPEfyuoHtn+99EGeej7X04mT12fMIvmoeFvLYyb7JiC6jw== X-Google-Smtp-Source: AGHT+IH/Pvi8KLfnxJ0RZHU80d+hGg9eCGGF/X/cdU3AQmfiwTb6JzrmLco3zompTfr/oyHwm/sN X-Received: by 2002:a05:6402:5165:b0:564:7a2c:ea55 with SMTP id d5-20020a056402516500b005647a2cea55mr2374529ede.42.1708391717461; Mon, 19 Feb 2024 17:15:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708391717; cv=pass; d=google.com; s=arc-20160816; b=fqYjnB1ro4kH2b1K5O08T4Z7tVdg+DpzSC7WVpv8r+/Wn7M8PeahCOHHt41dpIocn3 h5Q7QnmTBJT4taed0dibf9If/xaJfqxPznDRGtNgTPvNld20N2PaUKuKgx4/5UFbTwox L2bkqjUwZO3CFJnutfCSpzwJ9B0TRwSmtClc9VU+1prmHfCd5XFujgeeb4zK0PVe7HrF pjBLH/QVu7Xwadpx6gcOo8IAKUldsRwtblGWxBIVq5lyTjyr6UA0D9eJh04feVMCAjQ5 gatY+tNU0SBX67leIJa6bGtFMwQosTfgqjXQsTgf7Lp82xiFM25GGb+IMZis8PTfBrVL 4wsA== ARC-Message-Signature: i=2; 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=eRDupky8Cf7hzvH6DKfhnDr6RTaDpv1SHS/hJlvJltQ=; fh=pdiDRBy4fMWINLvDyHQEw5cW7pje8ClGnuEwFCoyu24=; b=ot+qpb5abTY4LxRnDOshIhHO/vg8wftXRE9QLsuIiBIfUR3lvktHV5E1zvkF21CKis NtN47E442KF4HcI2BIYaxvvUw1H4Lyd8i3RgKqWHbKefus1Ikj2e5uzO6rmbs2/lmrIa S/2/XakB3OGgxF7heizXWJ/9w2m/QMObhaK5TQ1kmgxGmRmmvlxOvnOwgLZcoQYfhehl fsWyOwdaIzQmVhWk534uX0fSfbz3vS9+5P5jBOOY1Hpsay5d23tCBCFPoovvXs1QutGO NHfJt+eiDsB5DzY4g2kACX7bIW1+pMoQop5aI0y1Xu8qcIE7Q2o2k0txpkFUtSohdL1w jl5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qzvkrcv7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72170-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a13-20020aa7d90d000000b005638e18497esi2857057edr.588.2024.02.19.17.15.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 17:15:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qzvkrcv7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72170-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 39D261F226C3 for ; Tue, 20 Feb 2024 01:15:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E369C1643D; Tue, 20 Feb 2024 01:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qzvkrcv7" 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 E73BBFC19; Tue, 20 Feb 2024 01:15:08 +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=1708391709; cv=none; b=mGqlclNeekNfK+M24D/iVq40cJpTdQRPCfT6IsT7tOHSm7dl/BVstFQxLjzVUBAk5aGps7fq41ixOj4l1XcEZ+wT+/QKW7X9nPF8A+laMJC7vKDWOgxhSOPz1UhLXl/dbwSNvM7haaQsmIosP1APDykmROgQNill/czVsHvkX94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708391709; c=relaxed/simple; bh=gRlACvq18RgH3+fWPOxkkUfB0U8xAoHtppyL5FDnKuE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fxlVAzp+fIp8B2aYzsKia1+WDjE6JtcGqZK41+8DX6SP/4UsjTmCGKN9TTdQL3PdkSQ3mbXgj38ScNfiFejbdrLXZZqVMvCsCnWf1/G5EA/NXcCQ8w6v48NW4FjPRPvTxrAPrCnH2fp8oe0+AmcSVox1xW8+FIgL9BtMv5hMn7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qzvkrcv7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC46FC433A6; Tue, 20 Feb 2024 01:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708391708; bh=gRlACvq18RgH3+fWPOxkkUfB0U8xAoHtppyL5FDnKuE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qzvkrcv7Y6I/ApWX7O7vOPeBl1rJSUDc4Vbe5uqu0wtQVVOHV/aPwJ7HNkQHvzjiK XQhP6w+uf0UDZX2nqSSmIiE2RRZkD58a2qZn5dwMdth+hKUvBKNP6jZDsFJ4stLfcS 3MxIkpG1V4NeydmpQoaBkHmYEYEH9QTw0cOVARWFpXCI0LLO5NPKklYdNPMaUXLrM1 PCBgyIa6IKDFCpVxvHmQU6RxNmAqthmk4RzPhcjDN13CvL9e3wND51/apSaZ9dU1jO TUl7ZcwQuD8rCzf4bt1N7R8g5cz4mMZOA9zVkh/uT0swvABuLhhKdIprcpC9rlEsB8 cO0WmxPRmqdIQ== Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-563d32ee33aso5062171a12.2; Mon, 19 Feb 2024 17:15:08 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXzBB4rXCYfRfoQ9FYhw4dM2IpANRNARQvrCg4Fzamr0vNa/ktlgykAvjrMmel90elAEG+W+vrA4JA/u2zgqytFNGl3gdyQCEWnmxlig/XrsM0BD7pxZ/THJQUdFrMDLx7cXp7xlInxEJd++eerhiCYpvfHCydG75OskoMQrnUFADEhRQ== X-Gm-Message-State: AOJu0Yx9/r9kpIoci5M5pgw+3tQQj9zRD/H3LakrbjuGiPHlgPmyvc8n /5teL4OMaDxVGdIOOtBxUyirq3WtZSYtJCGa5fd6P3++9Lj3pbYiwKKBkKGTttRBisK+KfvX79h 77Kn2ofi33mAur+4bdoLPHSSB22s= X-Received: by 2002:aa7:d0d5:0:b0:564:a1e2:edd2 with SMTP id u21-20020aa7d0d5000000b00564a1e2edd2mr1785583edo.9.1708391707015; Mon, 19 Feb 2024 17:15:07 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Guo Ren Date: Tue, 20 Feb 2024 09:14:55 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v10 1/5] dt-bindings: clock: sophgo: add pll clocks for SG2042 To: Chen Wang Cc: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, palmer@dabbelt.com, paul.walmsley@sifive.com, richardcochran@gmail.com, robh+dt@kernel.org, sboyd@kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com, jszhang@kernel.org, inochiama@outlook.com, samuel.holland@sifive.com, Chen Wang , Rob Herring Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 18, 2024 at 10:51=E2=80=AFAM Chen Wang wr= ote: > > From: Chen Wang > > Add bindings for the pll clocks for Sophgo SG2042. > > Signed-off-by: Chen Wang > Reviewed-by: Rob Herring > --- > .../bindings/clock/sophgo,sg2042-pll.yaml | 45 +++++++++++++++++++ > include/dt-bindings/clock/sophgo,sg2042-pll.h | 14 ++++++ > 2 files changed, 59 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/sophgo,sg2042= -pll.yaml > create mode 100644 include/dt-bindings/clock/sophgo,sg2042-pll.h > > diff --git a/Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.ya= ml b/Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.yaml > new file mode 100644 > index 000000000000..b9af733e8a73 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.yaml > @@ -0,0 +1,45 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/sophgo,sg2042-pll.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sophgo SG2042 PLL Clock Generator > + > +maintainers: > + - Chen Wang > + > +properties: > + compatible: > + const: sophgo,sg2042-pll > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: Oscillator(Clock Generation IC) for Main/Fixed PLL = (25 MHz) > + - description: Oscillator(Clock Generation IC) for DDR PLL 0 (25 M= Hz) > + - description: Oscillator(Clock Generation IC) for DDR PLL 1 (25 M= Hz) > + > + '#clock-cells': > + const: 1 > + description: > + See for valid indices. > + > +required: > + - compatible > + - reg > + - clocks > + - '#clock-cells' > + > +additionalProperties: false > + > +examples: > + - | > + clock-controller@10000000 { > + compatible =3D "sophgo,sg2042-pll"; > + reg =3D <0x10000000 0x10000>; > + clocks =3D <&cgi_main>, <&cgi_dpll0>, <&cgi_dpll1>; > + #clock-cells =3D <1>; > + }; > diff --git a/include/dt-bindings/clock/sophgo,sg2042-pll.h b/include/dt-b= indings/clock/sophgo,sg2042-pll.h > new file mode 100644 > index 000000000000..2d519b3bf51c > --- /dev/null > +++ b/include/dt-bindings/clock/sophgo,sg2042-pll.h > @@ -0,0 +1,14 @@ > +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ > +/* > + * Copyright (C) 2023 Sophgo Technology Inc. All rights reserved. > + */ > + > +#ifndef __DT_BINDINGS_SOPHGO_SG2042_PLL_H__ > +#define __DT_BINDINGS_SOPHGO_SG2042_PLL_H__ > + > +#define MPLL_CLK 0 > +#define FPLL_CLK 1 > +#define DPLL0_CLK 2 > +#define DPLL1_CLK 3 > + > +#endif /* __DT_BINDINGS_SOPHGO_SG2042_PLL_H__ */ > -- > 2.25.1 > Reviewed-by: Guo Ren --=20 Best Regards Guo Ren