dts: 'AI Camera' uses releasing gated clock

The clock using by IMX500 in 'AI Camera' is gpio-gated. The GPIO used is
provided by an I2C-controlled rpi-rp2040-gpio-bridge on 'AI Camera'.
Both the IMX500 and gpio-bridge share a common regulator for their power
supply. Using 'gpio-gate-clock', the 'AI Camera' will never be
powered-down as the GPIO provided by the gpio-bridge is always claimed
by the clock driver. Switching to 'gpio-gate-clock-releasing' causes the
GPIO to be released by the clock driver when the clock is not needed.
This allows 'AI Camera' to be powered-down.

Signed-off-by: Richard Oliver <richard.oliver@raspberrypi.com>
This commit is contained in:
Richard Oliver
2025-06-05 11:05:12 +01:00
parent 9a18dfb4c0
commit b2a413260f
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@
};
clk_aicam_gated: clk-aicam-gated1 {
compatible = "gpio-gate-clock";
compatible = "gpio-gate-clock-releasing";
clocks = <&clk_aicam>;
#clock-cells = <0>;
enable-gpios = <&spi_bridge 21 GPIO_ACTIVE_HIGH>;

View File

@@ -85,7 +85,7 @@
};
clk_aicam_gated: clk-aicam-gated1 {
compatible = "gpio-gate-clock";
compatible = "gpio-gate-clock-releasing";
clocks = <&clk_aicam>;
#clock-cells = <0>;
enable-gpios = <&spi_bridge 21 GPIO_ACTIVE_HIGH>;