lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJF2gTTAz1p-hXF5YCz0Hz5c+QMuSv6BGNbwpYW6Nvez0N7g6g@mail.gmail.com>
Date: Tue, 20 Feb 2024 09:14:55 +0800
From: Guo Ren <guoren@...nel.org>
To: Chen Wang <unicornxw@...il.com>
Cc: aou@...s.berkeley.edu, chao.wei@...hgo.com, conor@...nel.org, 
	krzysztof.kozlowski+dt@...aro.org, mturquette@...libre.com, 
	palmer@...belt.com, paul.walmsley@...ive.com, richardcochran@...il.com, 
	robh+dt@...nel.org, sboyd@...nel.org, devicetree@...r.kernel.org, 
	linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org, 
	linux-riscv@...ts.infradead.org, haijiao.liu@...hgo.com, 
	xiaoguang.xing@...hgo.com, jszhang@...nel.org, inochiama@...look.com, 
	samuel.holland@...ive.com, Chen Wang <unicorn_wang@...look.com>, 
	Rob Herring <robh@...nel.org>
Subject: Re: [PATCH v10 1/5] dt-bindings: clock: sophgo: add pll clocks for SG2042

On Sun, Feb 18, 2024 at 10:51 AM Chen Wang <unicornxw@...il.com> wrote:
>
> From: Chen Wang <unicorn_wang@...look.com>
>
> Add bindings for the pll clocks for Sophgo SG2042.
>
> Signed-off-by: Chen Wang <unicorn_wang@...look.com>
> Reviewed-by: Rob Herring <robh@...nel.org>
> ---
>  .../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.yaml 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 <unicorn_wang@...look.com>
> +
> +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 MHz)
> +      - description: Oscillator(Clock Generation IC) for DDR PLL 1 (25 MHz)
> +
> +  '#clock-cells':
> +    const: 1
> +    description:
> +      See <dt-bindings/clock/sophgo,sg2042-pll.h> for valid indices.
> +
> +required:
> +  - compatible
> +  - reg
> +  - clocks
> +  - '#clock-cells'
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    clock-controller@...00000 {
> +      compatible = "sophgo,sg2042-pll";
> +      reg = <0x10000000 0x10000>;
> +      clocks = <&cgi_main>, <&cgi_dpll0>, <&cgi_dpll1>;
> +      #clock-cells = <1>;
> +    };
> diff --git a/include/dt-bindings/clock/sophgo,sg2042-pll.h b/include/dt-bindings/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 <guoren@...nel.org>

-- 
Best Regards
 Guo Ren

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ