public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Yu-Chun Lin [林祐君]" <eleanor.lin@realtek.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: "mturquette@baylibre.com" <mturquette@baylibre.com>,
	"sboyd@kernel.org" <sboyd@kernel.org>,
	"robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
	"Edgar Lee [李承諭]" <cylee12@realtek.com>,
	"Jyan Chou [周芷安]" <jyanchou@realtek.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"James Tai [戴志峰]" <james.tai@realtek.com>,
	"CY_Huang[黃鉦晏]" <cy.huang@realtek.com>,
	"Stanley Chang[昌育德]" <stanley_chang@realtek.com>
Subject: RE: [PATCH 1/9] dt-bindings: clock: Add Realtek RTD1625 Clock & Reset Controller
Date: Fri, 2 Jan 2026 05:46:17 +0000	[thread overview]
Message-ID: <8118fd07158e4730ab6d10b06f24f19c@realtek.com> (raw)
In-Reply-To: <20251230-yak-of-luxurious-holiness-fcbaf2@quoll>

> On Mon, Dec 29, 2025 at 03:53:05PM +0800, Yu-Chun Lin wrote:
> > Add DT binding schema for Realtek RTD1625 clock and reset controller
> >
> > Signed-off-by: Cheng-Yu Lee <cylee12@realtek.com>
> > Signed-off-by: Yu-Chun Lin <eleanor.lin@realtek.com>
> > ---
> >  .../bindings/clock/realtek,rtd1625-clk.yaml   |  53 ++++++
> >  MAINTAINERS                                   |   9 +
> >  .../dt-bindings/clock/realtek,rtd1625-clk.h   | 165 ++++++++++++++++++
> >  3 files changed, 227 insertions(+)
> >  create mode 100644
> > Documentation/devicetree/bindings/clock/realtek,rtd1625-clk.yaml
> >  create mode 100644 include/dt-bindings/clock/realtek,rtd1625-clk.h
> >
> > diff --git
> > a/Documentation/devicetree/bindings/clock/realtek,rtd1625-clk.yaml
> > b/Documentation/devicetree/bindings/clock/realtek,rtd1625-clk.yaml
> > new file mode 100644
> > index 000000000000..dd636c6e9c66
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/clock/realtek,rtd1625-clk.yaml
> > @@ -0,0 +1,53 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/clock/realtek,rtd1625-clk.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Realtek RTD1625 Clock & Reset Controller
> > +
> > +maintainers:
> > +  - Yu-Chun Lin <eleanor.lin@realtek.com>
> > +
> > +description: |
> > +  The Realtek RTD1625 Clock Controller manages and distributes clock
> > +  signals to various controllers and implements a Reset Controller
> > +for the
> > +  SoC peripherals.
> > +
> > +  Clocks are referenced by unique identifiers, which are defined as
> > + preprocessor macros in dt-bindings/clock/realtek,rtd1625-clk.h.
> > + Client
> 
> This part is fine, although too long for simple refernce to clock IDs.
> 
> > +  device nodes within the Device Tree use these identifiers to
> > + specify the  specific clock and reset signals they require.
> 
> This is completely redundant. Do not explain us how DTS works. We all know
> that.
> 

I will remove this.

> > +
> > +properties:
> > +  compatible:
> > +    enum:
> > +      - realtek,rtd1625-crt-clk
> > +      - realtek,rtd1625-iso-clk
> > +      - realtek,rtd1625-iso-s-clk
> 
> What is the difference between iso and iso-s?
> 

iso-s stands for iso-sys internally.

Although ISO and ISO-S share the same clock controller IP logic, they are
backed by different hardware blocks with distinct register layouts and
available clock/reset sets.

> > +
> > +  reg:
> > +    maxItems: 1
> > +
> > +  "#clock-cells":
> > +    const: 1
> > +
> > +  "#reset-cells":
> > +    const: 1
> > +
> > +required:
> > +  - compatible
> > +  - reg
> > +  - "#clock-cells"
> > +  - "#reset-cells"
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > +  - |
> > +    clock-controller@98000000 {
> > +      compatible = "realtek,rtd1625-crt-clk";
> > +      reg = <98000000 0x1000>;
> > +      #clock-cells = <1>;
> > +      #reset-cells = <1>;
> > +    };
> > diff --git a/MAINTAINERS b/MAINTAINERS index
> > 12f49de7fe03..9cc78e867a4e 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -21968,6 +21968,15 @@ S:   Maintained
> >  F:   Documentation/devicetree/bindings/net/dsa/realtek.yaml
> >  F:   drivers/net/dsa/realtek/*
> >
> > +REALTEK SOC CLOCK AND RESET BINDINGS
> > +M:   Cheng-Yu Lee <cylee12@realtek.com>
> > +M:   Yu-Chun Lin <eleanor.lin@realtek.com>
> > +L:   devicetree@vger.kernel.org
> > +L:   linux-clk@vger.kernel.org
> > +S:   Supported
> > +F:   Documentation/devicetree/bindings/clock/realtek*
> > +F:   include/dt-bindings/clock/realtek*
> > +
> >  REALTEK SPI-NAND
> >  M:   Chris Packham <chris.packham@alliedtelesis.co.nz>
> >  S:   Maintained
> > diff --git a/include/dt-bindings/clock/realtek,rtd1625-clk.h
> > b/include/dt-bindings/clock/realtek,rtd1625-clk.h
> > new file mode 100644
> > index 000000000000..553884d7806a
> > --- /dev/null
> > +++ b/include/dt-bindings/clock/realtek,rtd1625-clk.h
> > @@ -0,0 +1,165 @@
> > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
> > +/*
> > + * Copyright (C) 2025 Realtek Semiconductor Corp.
> > + */
> > +#ifndef __DT_BINDINGS_RTK_CLOCK_RTD1625_H #define
> > +__DT_BINDINGS_RTK_CLOCK_RTD1625_H
> > +
> > +#define RTD1625_CRT_CLK_EN_MISC           0
> > +#define RTD1625_CRT_CLK_EN_PCIE0          1
> > +#define RTD1625_CRT_CLK_EN_DIP            2
> > +#define RTD1625_CRT_CLK_EN_GSPI           3
> > +#define RTD1625_CRT_CLK_EN_ISO_MISC       5
> > +#define RTD1625_CRT_CLK_EN_SDS            6
> > +#define RTD1625_CRT_CLK_EN_HDMI           7
> > +#define RTD1625_CRT_CLK_EN_GPU            9
> > +#define RTD1625_CRT_CLK_EN_VE1            10
> > +#define RTD1625_CRT_CLK_EN_VE2            11
> > +#define RTD1625_CRT_CLK_EN_MD             18
> > +#define RTD1625_CRT_CLK_EN_TP             19
> > +#define RTD1625_CRT_CLK_EN_RCIC           20
> > +#define RTD1625_CRT_CLK_EN_NF             21
> > +#define RTD1625_CRT_CLK_EN_EMMC           22
> > +#define RTD1625_CRT_CLK_EN_SD             23
> > +#define RTD1625_CRT_CLK_EN_SDIO_IP        24
> > +#define RTD1625_CRT_CLK_EN_MIPI_CSI       25
> > +#define RTD1625_CRT_CLK_EN_EMMC_IP        26
> > +#define RTD1625_CRT_CLK_EN_SDIO           27
> > +#define RTD1625_CRT_CLK_EN_SD_IP          28
> > +#define RTD1625_CRT_CLK_EN_TPB            30
> > +#define RTD1625_CRT_CLK_EN_MISC_SC1       31
> > +#define RTD1625_CRT_CLK_EN_MISC_I2C_3     32
> > +#define RTD1625_CRT_CLK_EN_ACPU           33
> > +#define RTD1625_CRT_CLK_EN_JPEG           34
> > +#define RTD1625_CRT_CLK_EN_MISC_SC0       37
> > +#define RTD1625_CRT_CLK_EN_HDMIRX         45
> > +#define RTD1625_CRT_CLK_EN_HSE            46
> > +#define RTD1625_CRT_CLK_EN_FAN            49
> > +#define RTD1625_CRT_CLK_EN_SATA_WRAP_SYS  52 #define
> > +RTD1625_CRT_CLK_EN_SATA_WRAP_SYSH 53 #define
> > +RTD1625_CRT_CLK_EN_SATA_MAC_SYSH  54
> > +#define RTD1625_CRT_CLK_EN_R2RDSC         55
> > +#define RTD1625_CRT_CLK_EN_TPC            56
> > +#define RTD1625_CRT_CLK_EN_PCIE1          57
> > +#define RTD1625_CRT_CLK_EN_MISC_I2C_4     58
> > +#define RTD1625_CRT_CLK_EN_MISC_I2C_5     59
> > +#define RTD1625_CRT_CLK_EN_TSIO           60
> > +#define RTD1625_CRT_CLK_EN_VE4            61
> > +#define RTD1625_CRT_CLK_EN_EDP            62
> > +#define RTD1625_CRT_CLK_EN_TSIO_TRX       63
> > +#define RTD1625_CRT_CLK_EN_PCIE2          64
> > +#define RTD1625_CRT_CLK_EN_EARC           66
> > +#define RTD1625_CRT_CLK_EN_LITE           67
> > +#define RTD1625_CRT_CLK_EN_MIPI_DSI       68
> > +#define RTD1625_CRT_CLK_EN_NPUPP          69
> > +#define RTD1625_CRT_CLK_EN_NPU            70
> > +#define RTD1625_CRT_CLK_EN_AUCPU0         71
> > +#define RTD1625_CRT_CLK_EN_AUCPU1         72
> > +#define RTD1625_CRT_CLK_EN_NSRAM          73
> > +#define RTD1625_CRT_CLK_EN_HDMITOP        74
> > +#define RTD1625_CRT_CLK_EN_AUCPU_ISO_NPU  76
> > +#define RTD1625_CRT_CLK_EN_KEYLADDER      77
> > +#define RTD1625_CRT_CLK_EN_IFCP_KLM       78
> > +#define RTD1625_CRT_CLK_EN_IFCP           79
> > +#define RTD1625_CRT_CLK_EN_MDL_GENPW      80
> > +#define RTD1625_CRT_CLK_EN_MDL_CHIP       81
> > +#define RTD1625_CRT_CLK_EN_MDL_IP         82
> > +#define RTD1625_CRT_CLK_EN_MDLM2M         83
> > +#define RTD1625_CRT_CLK_EN_MDL_XTAL       84
> > +#define RTD1625_CRT_CLK_EN_TEST_MUX       85
> > +#define RTD1625_CRT_CLK_EN_DLA            86
> > +#define RTD1625_CRT_CLK_EN_TPCW           88
> > +#define RTD1625_CRT_CLK_EN_GPU_TS_SRC     89
> > +#define RTD1625_CRT_CLK_EN_VI             91
> > +#define RTD1625_CRT_CLK_EN_LVDS1          92
> > +#define RTD1625_CRT_CLK_EN_LVDS2          93
> > +#define RTD1625_CRT_CLK_EN_AUCPU          94
> > +#define RTD1625_CRT_CLK_EN_UR1            96
> > +#define RTD1625_CRT_CLK_EN_UR2            97
> > +#define RTD1625_CRT_CLK_EN_UR3            98
> > +#define RTD1625_CRT_CLK_EN_UR4            99
> > +#define RTD1625_CRT_CLK_EN_UR5            100
> > +#define RTD1625_CRT_CLK_EN_UR6            101
> > +#define RTD1625_CRT_CLK_EN_UR7            102
> > +#define RTD1625_CRT_CLK_EN_UR8            103
> > +#define RTD1625_CRT_CLK_EN_UR9            104
> > +#define RTD1625_CRT_CLK_EN_UR_TOP         105
> > +#define RTD1625_CRT_CLK_EN_MISC_I2C_7     110
> > +#define RTD1625_CRT_CLK_EN_MISC_I2C_6     111
> > +#define RTD1625_CRT_CLK_EN_SPI0           112
> > +#define RTD1625_CRT_CLK_EN_SPI1           113
> > +#define RTD1625_CRT_CLK_EN_SPI2           114
> > +#define RTD1625_CRT_CLK_EN_LSADC0         120
> > +#define RTD1625_CRT_CLK_EN_LSADC1         121
> > +#define RTD1625_CRT_CLK_EN_ISOMIS_DMA     122
> > +#define RTD1625_CRT_CLK_EN_DPTX           124
> > +#define RTD1625_CRT_CLK_EN_NPU_MIPI_CSI   125
> > +#define RTD1625_CRT_CLK_EN_EDPTX          126
> > +#define RTD1625_CRT_CLK_HIFI              128
> > +#define RTD1625_CRT_CLK_NPU_MIPI_CSI      129
> > +#define RTD1625_CRT_CLK_NPU               130
> > +#define RTD1625_CRT_CLK_NPU_SYSH          132
> > +#define RTD1625_CRT_CLK_HIFI_SCPU         133
> > +#define RTD1625_CRT_CLK_GPU               134
> > +#define RTD1625_CRT_CLK_GPU2D             135
> > +#define RTD1625_CRT_CLK_MIPI_DSI_PCLK     136
> > +#define RTD1625_CRT_CLK_VE1               137
> > +#define RTD1625_CRT_CLK_VE2               138
> > +#define RTD1625_CRT_CLK_VE4               139
> > +#define RTD1625_CRT_CLK_SYS               141
> > +#define RTD1625_CRT_CLK_SYSH              142
> > +#define RTD1625_CRT_PLL_SDIO_REF          145
> > +#define RTD1625_CRT_PLL_CR_REF            146
> > +#define RTD1625_CRT_PLL_EMMC_REF          147
> > +#define RTD1625_CRT_CLK_MIS_SC0           148
> > +#define RTD1625_CRT_CLK_MIS_SC1           149
> > +#define RTD1625_CRT_PLL_SCPU              150
> > +#define RTD1625_CRT_PLL_VE1               151
> > +#define RTD1625_CRT_PLL_DDSA              152
> > +#define RTD1625_CRT_PLL_PSAUDA1           153
> > +#define RTD1625_CRT_PLL_PSAUDA2           154
> > +#define RTD1625_CRT_PLL_BUS               155
> > +#define RTD1625_CRT_PLL_SDIO              156
> > +#define RTD1625_CRT_PLL_SDIO_VP0          157
> > +#define RTD1625_CRT_PLL_SDIO_VP1          158
> > +#define RTD1625_CRT_PLL_DCSB              159
> > +#define RTD1625_CRT_PLL_GPU               160
> > +#define RTD1625_CRT_PLL_NPU               161
> > +#define RTD1625_CRT_PLL_VE2               162
> > +#define RTD1625_CRT_PLL_HIFI              163
> > +#define RTD1625_CRT_PLL_SD                164
> > +#define RTD1625_CRT_PLL_SD_VP0            165
> > +#define RTD1625_CRT_PLL_SD_VP1            166
> > +#define RTD1625_CRT_PLL_EMMC              167
> > +#define RTD1625_CRT_PLL_EMMC_VP0          168
> > +#define RTD1625_CRT_PLL_EMMC_VP1          169
> > +#define RTD1625_CRT_PLL_ACPU              170
> > +#define RTD1625_CRT_CLK_DET               171
> > +#define RTD1625_CRT_CLK_MAX               172
> 
> Drop, not a binding (explained also many times on the mailing lists).
> 
> Blank line.
> 

Understood. I'll drop this definition here and move it into the driver instead.
Will also fix the blank line.

> > +#define RTD1625_ISO_CLK_EN_USB_P4         0
> > +#define RTD1625_ISO_CLK_EN_USB_P3         1
> > +#define RTD1625_ISO_CLK_EN_MISC_CEC0      2
> > +#define RTD1625_ISO_CLK_EN_CBUSRX_SYS     3
> > +#define RTD1625_ISO_CLK_EN_CBUSTX_SYS     4
> > +#define RTD1625_ISO_CLK_EN_CBUS_SYS       5
> > +#define RTD1625_ISO_CLK_EN_CBUS_OSC       6
> > +#define RTD1625_ISO_CLK_EN_MISC_UR0       8
> > +#define RTD1625_ISO_CLK_EN_I2C0           9
> > +#define RTD1625_ISO_CLK_EN_I2C1           10
> > +#define RTD1625_ISO_CLK_EN_ETN_250M       11
> > +#define RTD1625_ISO_CLK_EN_ETN_SYS        12
> > +#define RTD1625_ISO_CLK_EN_USB_DRD        13
> > +#define RTD1625_ISO_CLK_EN_USB_HOST       14
> > +#define RTD1625_ISO_CLK_EN_USB_U3_HOST    15
> > +#define RTD1625_ISO_CLK_EN_USB            16
> > +#define RTD1625_ISO_CLK_EN_VTC            17
> > +#define RTD1625_ISO_CLK_EN_MISC_VFD       18
> > +#define RTD1625_ISO_CLK_MAX               19
> 
> Ditto
> 
> > +#define RTD1625_ISO_S_CLK_EN_ISOM_MIS     0
> > +#define RTD1625_ISO_S_CLK_EN_ISOM_GPIOM   1
> > +#define RTD1625_ISO_S_CLK_EN_TIMER7       2
> > +#define RTD1625_ISO_S_CLK_EN_IRDA         3
> > +#define RTD1625_ISO_S_CLK_EN_UR10         4
> > +#define RTD1625_ISO_S_CLK_MAX             5
> 
> Drop
> 
> > +
> > +#endif /* __DT_BINDINGS_RTK_CLOCK_RTD1625_H */
> > --
> > 2.34.1
> >

  reply	other threads:[~2026-01-02  5:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-29  7:53 [PATCH 0/9] clk: realtek: Add RTD1625 Clock Support Yu-Chun Lin
2025-12-29  7:53 ` [PATCH 1/9] dt-bindings: clock: Add Realtek RTD1625 Clock & Reset Controller Yu-Chun Lin
2025-12-30 12:11   ` Krzysztof Kozlowski
2026-01-02  5:46     ` Yu-Chun Lin [林祐君] [this message]
2025-12-29  7:53 ` [PATCH 2/9] clk: realtek: Add basic reset support Yu-Chun Lin
2025-12-30 12:20   ` Krzysztof Kozlowski
2026-01-02  5:56     ` Yu-Chun Lin [林祐君]
2025-12-29  7:53 ` [PATCH 3/9] clk: realtek: Introduce a common probe() Yu-Chun Lin
2025-12-30 12:17   ` Krzysztof Kozlowski
2025-12-30 18:03   ` kernel test robot
2025-12-30 18:14   ` kernel test robot
2025-12-29  7:53 ` [PATCH 4/9] clk: realtek: Add support for phase locked loops (PLLs) Yu-Chun Lin
2025-12-30 20:18   ` kernel test robot
2025-12-29  7:53 ` [PATCH 5/9] clk: realtek: Add support for gate clock Yu-Chun Lin
2025-12-29  7:53 ` [PATCH 6/9] clk: realtek: Add support for mux clock Yu-Chun Lin
2026-01-05 12:04   ` Dan Carpenter
2025-12-29  7:53 ` [PATCH 7/9] clk: realtek: Add support for MMC-tuned PLL clocks Yu-Chun Lin
2025-12-29  7:53 ` [PATCH 8/9] clk: realtek: Add RTD1625-CRT clock controller driver Yu-Chun Lin
2025-12-30 12:15   ` Krzysztof Kozlowski
2025-12-29  7:53 ` [PATCH 9/9] clk: realtek: Add RTD1625-ISO " Yu-Chun Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8118fd07158e4730ab6d10b06f24f19c@realtek.com \
    --to=eleanor.lin@realtek.com \
    --cc=conor+dt@kernel.org \
    --cc=cy.huang@realtek.com \
    --cc=cylee12@realtek.com \
    --cc=devicetree@vger.kernel.org \
    --cc=james.tai@realtek.com \
    --cc=jyanchou@realtek.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=stanley_chang@realtek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox