Skip to content

Commit b2a4132

Browse files
committed
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 <[email protected]>
1 parent 9a18dfb commit b2a4132

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/arm/boot/dts/overlays/imx500-overlay.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
};
8383

8484
clk_aicam_gated: clk-aicam-gated1 {
85-
compatible = "gpio-gate-clock";
85+
compatible = "gpio-gate-clock-releasing";
8686
clocks = <&clk_aicam>;
8787
#clock-cells = <0>;
8888
enable-gpios = <&spi_bridge 21 GPIO_ACTIVE_HIGH>;

arch/arm/boot/dts/overlays/imx500-pi5-overlay.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
};
8686

8787
clk_aicam_gated: clk-aicam-gated1 {
88-
compatible = "gpio-gate-clock";
88+
compatible = "gpio-gate-clock-releasing";
8989
clocks = <&clk_aicam>;
9090
#clock-cells = <0>;
9191
enable-gpios = <&spi_bridge 21 GPIO_ACTIVE_HIGH>;

0 commit comments

Comments
 (0)