linux/Documentation/devicetree/bindings/serial
Alex Elder a1b51534b5 dt-bindings: serial: 8250: allow "main" and "uart" as clock names
There are two compatible strings defined in "8250.yaml" that require
two clocks to be specified, along with their names:
  - "spacemit,k1-uart", used in "spacemit/k1.dtsi"
  - "nxp,lpc1850-uart", used in "lpc/lpc18xx.dtsi"

When only one clock is used, the name is not required.  However there
are two places that do specify a name:
  - In "mediatek/mt7623.dtsi", the clock for the "mediatek,mtk-btif"
    compatible serial device is named "main"
  - In "qca/ar9132.dtsi", the clock for the "ns8250" compatible
    serial device is named "uart"

In commit d2db0d7815 ("dt-bindings: serial: 8250: allow clock
'uartclk' and 'reg' for nxp,lpc1850-uart"), Frank Li added the
restriction that two named clocks be used for the NXP platform
mentioned above.

Change that logic, so that an additional condition for (only) the
SpacemiT platform similarly restricts the two clocks to have the
names "core" and "bus".

Finally, add "main" and "uart" as allowed names when a single clock is
specified.

Fixes: 2c0594f9f0 ("dt-bindings: serial: 8250: support an optional second clock")
Cc: stable <stable@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202507160314.wrC51lXX-lkp@intel.com/
Signed-off-by: Alex Elder <elder@riscstar.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20250813031338.2328392-1-elder@riscstar.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-14 12:12:31 +02:00
..
8250.yaml dt-bindings: serial: 8250: allow "main" and "uart" as clock names 2025-08-14 12:12:31 +02:00
8250_omap.yaml dt-bindings: serial: 8250_omap: Drop redundant properties 2025-05-21 13:37:05 +02:00
actions,owl-uart.yaml
altr,juart-1.0.yaml dt-bindings: serial: Convert altr,juart-1.0 to DT schema 2025-06-11 17:43:11 -05:00
altr,uart-1.0.yaml dt-bindings: serial: Convert altr,uart-1.0 to DT schema 2025-06-11 17:43:11 -05:00
amlogic,meson-uart.yaml dt-bindings: serial: amlogic,meson-uart: Add compatible string for S6/S7/S7D 2025-04-25 13:45:16 +02:00
arm,dcc.yaml
arm,mps2-uart.yaml dt-bindings: serial: Convert arm,mps2-uart to DT schema 2025-05-21 13:36:32 +02:00
arm,sbsa-uart.yaml dt-bindings: serial: Convert arm,sbsa-uart to DT schema 2025-05-21 13:36:49 +02:00
atmel,at91-usart.yaml dt-bindings: serial: atmel,at91-usart: add microchip,sama7d65-usart 2025-05-21 13:35:15 +02:00
brcm,bcm2835-aux-uart.yaml
brcm,bcm6345-uart.yaml
brcm,bcm7271-uart.yaml dt-bindings: serial: brcm,bcm7271-uart: Constrain clocks 2025-08-14 12:12:09 +02:00
cdns,uart.yaml dt-bindings: serial: cdns: add Axiado AX3000 UART controller 2025-07-22 22:30:17 +02:00
cirrus,ep7209-uart.yaml dt-bindings: serial: Convert cirrus,ep7209-uart to DT schema 2025-05-21 13:36:34 +02:00
cnxt,cx92755-usart.yaml dt-bindings: serial: Convert cnxt,cx92755-usart to DT schema 2025-05-21 13:36:26 +02:00
esp,esp32-acm.yaml
esp,esp32-uart.yaml
fsl,s32-linflexuart.yaml
fsl-imx-uart.yaml
fsl-lpuart.yaml dt-bindings: serial: fsl-lpuart: support i.MX94 2025-03-20 08:05:55 -07:00
fsl-mxs-auart.yaml
ingenic,uart.yaml
lantiq,asc.yaml dt-bindings: serial: Convert lantiq,asc to DT schema 2025-05-21 13:36:37 +02:00
litex,liteuart.yaml
marvell,armada-3700-uart.yaml dt-bindings: serial: Convert marvell,armada-3700-uart to DT schema 2025-05-21 13:36:39 +02:00
maxim,max310x.yaml
mediatek,uart.yaml dt-bindings: serial: mediatek,uart: add MT6572 2025-07-01 10:47:03 +02:00
microchip,pic32mzda-uart.yaml dt-bindings: serial: Convert microchip,pic32mzda-uart to DT schema 2025-05-21 13:36:55 +02:00
nuvoton,ma35d1-serial.yaml
nvidia,tegra20-hsuart.yaml
nvidia,tegra194-tcu.yaml
nvidia,tegra264-utc.yaml dt-bindings: serial: Add bindings for nvidia,tegra264-utc 2025-02-14 10:06:50 +01:00
nxp,lpc3220-hsuart.yaml dt-bindings: serial: Convert nxp,lpc3220-hsuart to DT schema 2025-05-21 13:36:29 +02:00
nxp,sc16is7xx.yaml dt-bindings: serial: sc16is7xx: Add description for polling mode 2025-01-10 16:07:45 +01:00
pl011.yaml dt-bindings: serial: pl011: Add optional power-domains property 2025-02-04 14:39:48 +01:00
qca,ar9330-uart.yaml
qcom,msm-uart.yaml
qcom,msm-uartdm.yaml
qcom,sa8255p-geni-uart.yaml dt-bindings: serial: describe SA8255p 2025-07-22 18:52:50 +02:00
qcom,serial-geni-qcom.yaml
rda,8810pl-uart.yaml
renesas,em-uart.yaml
renesas,hscif.yaml dt-bindings: serial: sh-sci: Document r8a78000 bindings 2025-07-09 13:45:01 +02:00
renesas,rsci.yaml dt-bindings: serial: rsci: Update maintainer entry 2025-07-09 13:45:30 +02:00
renesas,sci.yaml
renesas,scif.yaml dt-bindings: serial: renesas: Document RZ/V2N SCIF 2025-07-21 17:38:14 +02:00
renesas,scifa.yaml
renesas,scifb.yaml
rs485.txt
rs485.yaml
samsung_uart.yaml dt-bindings: serial: samsung: add samsung,exynos2200-uart compatible 2025-07-24 11:40:30 +02:00
serial-peripheral-props.yaml
serial.yaml
sifive-serial.yaml
snps,arc-uart.yaml dt-bindings: serial: Convert snps,arc-uart to DT schema 2025-05-21 13:36:42 +02:00
snps-dw-apb-uart.yaml dt-bindings: serial: snps-dw-apb-uart: Allow use of a power-domain 2025-07-24 11:41:01 +02:00
socionext,milbeaut-usio-uart.yaml dt-bindings: serial: Convert socionext,milbeaut-usio-uart to DT schema 2025-05-21 13:36:58 +02:00
socionext,uniphier-uart.yaml
sprd-uart.yaml dt-bindings: serial: Add a new compatible string for UMS9632 2025-02-04 14:39:15 +01:00
st,asc.yaml
st,stm32-uart.yaml
sunplus,sp7021-uart.yaml
via,vt8500-uart.yaml
xlnx,opb-uartlite.yaml