Skip to contentSkip to conversation

dt-bindings: mfd: convert lpc1850-creg-clk.txt pc1850-dmamux.txt phy-lpc18xx-usb-otg.txt to yaml format

PATCH Applied Frank Li 3 participants 3 messages Jun 2, 2025 – Jun 13, 2025

Subsystems (7)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: mfd: convert lpc1850-creg-clk.txt pc1850-dmamux.txt phy-lpc18xx-usb-otg.txt to yaml format

Combine lpc1850-creg-clk.txt pc1850-dmamux.txt and phy-lpc18xx-usb-otg.txt to one mfd yaml file.

Additional changes:
- remove label in example.
- remove dmamux consumer in example.
- remove clock consumer in example.

---
 .../bindings/clock/lpc1850-creg-clk.txt       |  52 ------
 .../bindings/dma/lpc1850-dmamux.txt           |  54 -------
 .../bindings/mfd/nxp,lpc1850-creg.yaml        | 148 ++++++++++++++++++
 .../bindings/phy/phy-lpc18xx-usb-otg.txt      |  26 ---
 4 files changed, 148 insertions(+), 132 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/clock/lpc1850-creg-clk.txt
 delete mode 100644 Documentation/devicetree/bindings/dma/lpc1850-dmamux.txt
 create mode 100644 Documentation/devicetree/bindings/mfd/nxp,lpc1850-creg.yaml
 delete mode 100644 Documentation/devicetree/bindings/phy/phy-lpc18xx-usb-otg.txt
Documentation/devicetree/bindings/clock/lpc1850-creg-clk.txt deleted +0 -52
deleted file mode 100644
index b6b2547a3d17a..0000000000000
@@ -1,52 +0,0 @@
-* NXP LPC1850 CREG clocks
-
-The NXP LPC18xx/43xx CREG (Configuration Registers) block contains
-control registers for two low speed clocks. One of the clocks is a
-32 kHz oscillator driver with power up/down and clock gating. Next
-is a fixed divider that creates a 1 kHz clock from the 32 kHz osc.
-
-These clocks are used by the RTC and the Event Router peripherals.
-The 32 kHz can also be routed to other peripherals to enable low
-power modes.
-
-This binding uses the common clock binding:
-    Documentation/devicetree/bindings/clock/clock-bindings.txt
-
-Required properties:
-- compatible:
-	Should be "nxp,lpc1850-creg-clk"
-- #clock-cells:
-	Shall have value <1>.
-- clocks:
-	Shall contain a phandle to the fixed 32 kHz crystal.
-
-The creg-clk node must be a child of the creg syscon node.
-
-The following clocks are available from the clock node.
-
-Clock ID	Name
-   0		 1 kHz clock
-   1		32 kHz Oscillator
-
-Example:
-soc {
-	creg: syscon@40043000 {
-		compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd";
-		reg = <0x40043000 0x1000>;
-
-		creg_clk: clock-controller {
-			compatible = "nxp,lpc1850-creg-clk";
-			clocks = <&xtal32>;
-			#clock-cells = <1>;
-		};
-
-		...
-	};
-
-	rtc: rtc@40046000 {
-		...
-		clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>;
-		clock-names = "rtc", "reg";
-		...
-	};
-};
Documentation/devicetree/bindings/dma/lpc1850-dmamux.txt deleted +0 -54

54 lines not on this page · raw message

Documentation/devicetree/bindings/mfd/nxp,lpc1850-creg.yaml new file +148 -0

148 lines not on this page · raw message

Documentation/devicetree/bindings/phy/phy-lpc18xx-usb-otg.txt deleted +0 -26
deleted file mode 100644
index 3bb821cd6a7f3..0000000000000
@@ -1,26 +0,0 @@
-NXP LPC18xx/43xx internal USB OTG PHY binding
----------------------------------------------
-
-This file contains documentation for the internal USB OTG PHY found
-in NXP LPC18xx and LPC43xx SoCs.
-
-Required properties:
-- compatible	: must be "nxp,lpc1850-usb-otg-phy"
-- clocks	: must be exactly one entry
-See: Documentation/devicetree/bindings/clock/clock-bindings.txt
-- #phy-cells	: must be 0 for this phy
-See: Documentation/devicetree/bindings/phy/phy-bindings.txt
-
-The phy node must be a child of the creg syscon node.
-
-Example:
-creg: syscon@40043000 {
-	compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd";
-	reg = <0x40043000 0x1000>;
-
-	usb0_otg_phy: phy {
-		compatible = "nxp,lpc1850-usb-otg-phy";
-		clocks = <&ccu1 CLK_USB0>;
-		#phy-cells = <0>;
-	};
-};
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Frank Li

Combine lpc1850-creg-clk.txt pc1850-dmamux.txt and phy-lpc18xx-usb-otg.txt to one mfd yaml file.

Additional changes:
- remove label in example.
- remove dmamux consumer in example.
- remove clock consumer in example.

Quoted 11 lines
---
 .../bindings/clock/lpc1850-creg-clk.txt       |  52 ------
 .../bindings/dma/lpc1850-dmamux.txt           |  54 -------
 .../bindings/mfd/nxp,lpc1850-creg.yaml        | 148 ++++++++++++++++++
 .../bindings/phy/phy-lpc18xx-usb-otg.txt      |  26 ---
 4 files changed, 148 insertions(+), 132 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/clock/lpc1850-creg-clk.txt
 delete mode 100644 Documentation/devicetree/bindings/dma/lpc1850-dmamux.txt
 create mode 100644 Documentation/devicetree/bindings/mfd/nxp,lpc1850-creg.yaml
 delete mode 100644 Documentation/devicetree/bindings/phy/phy-lpc18xx-usb-otg.txt
maintainer Applied
#2 lore raw

Re: (subset) [PATCH 1/1] dt-bindings: mfd: convert lpc1850-creg-clk.txt pc1850-dmamux.txt phy-lpc18xx-usb-otg.txt to yaml format

In reply to Frank Li
Quoted 9 lines · Frank Li

Combine lpc1850-creg-clk.txt pc1850-dmamux.txt and phy-lpc18xx-usb-otg.txt to one mfd yaml file.

Additional changes:
- remove label in example.
- remove dmamux consumer in example.
- remove clock consumer in example.

[...]

Applied, thanks!

[1/1] dt-bindings: mfd: convert lpc1850-creg-clk.txt pc1850-dmamux.txt phy-lpc18xx-usb-otg.txt to yaml format

      commit: 8a22d9e79cf039512d56bddeae038a249c26f977

--
Lee Jones [李琼斯]