Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: media: nxp,imx-mipi-csi2: Mark clock-frequency as deprecated

Usage of the clock-frequency property, which is already optional, is
discouraged in favour of using assigned-clock-rates (and
assigned-clock-parents where needed). Mark the property as deprecated,
and update the examples accordingly.

Link: https://lore.kernel.org/r/20250822002734.23516-11-laurent.pinchart@ideasonboard.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Laurent Pinchart and committed by
Hans Verkuil
06cff2c4 65673c6e

+9 -2
+9 -2
Documentation/devicetree/bindings/media/nxp,imx-mipi-csi2.yaml
··· 66 66 clock-frequency: 67 67 description: The desired external clock ("wrap") frequency, in Hz 68 68 default: 166000000 69 + deprecated: true 69 70 70 71 ports: 71 72 $ref: /schemas/graph.yaml#/properties/ports ··· 148 147 <&clks IMX7D_MIPI_CSI_ROOT_CLK>, 149 148 <&clks IMX7D_MIPI_DPHY_ROOT_CLK>; 150 149 clock-names = "pclk", "wrap", "phy"; 151 - clock-frequency = <166000000>; 150 + 151 + assigned-clocks = <&clks IMX7D_MIPI_CSI_ROOT_CLK>; 152 + assigned-clock-rates = <166000000>; 152 153 153 154 power-domains = <&pgc_mipi_phy>; 154 155 phy-supply = <&reg_1p0d>; ··· 188 185 compatible = "fsl,imx8mm-mipi-csi2"; 189 186 reg = <0x32e30000 0x1000>; 190 187 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; 191 - clock-frequency = <333000000>; 188 + 192 189 clocks = <&clk IMX8MM_CLK_DISP_APB_ROOT>, 193 190 <&clk IMX8MM_CLK_CSI1_ROOT>, 194 191 <&clk IMX8MM_CLK_CSI1_PHY_REF>, 195 192 <&clk IMX8MM_CLK_DISP_AXI_ROOT>; 196 193 clock-names = "pclk", "wrap", "phy", "axi"; 194 + 195 + assigned-clocks = <&clk IMX8MM_CLK_CSI1_ROOT>; 196 + assigned-clock-rates = <250000000>; 197 + 197 198 power-domains = <&mipi_pd>; 198 199 199 200 ports {