mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
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:
@@ -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>;
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user