LF-12210-8: arm64: dts: imx95: os08a20: Update dts to use the compatible from ox05b1s driver

Use the os08a20 implementation from ox05b1s driver.

It seems the deprecated of_get_named_gpio/gpio_set_value
did not take into account the GPIO_ACTIVE_LOW/HIGH from DT.
Instead, the new devm_gpiod_get/gpiod_set_value does.
Use GPIO_ACTIVE_LOW in DT to line up with the datasheet power up diagram.

Removed pinctrl, the error was:
ovraw 2-0036: Error applying setting, reverse things back

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
This commit is contained in:
Mirela Rabulea 2024-06-06 12:44:06 +03:00 committed by Laurentiu Palcu
parent 657cc0dc39
commit 0876b3b237

View File

@ -8,15 +8,6 @@
#include <dt-bindings/clock/fsl,imx95-clock.h>
#include <dt-bindings/gpio/gpio.h>
#include "imx95-pinfunc.h"
&scmi_iomuxc {
pinctrl_csi_mclk: csi_mclk {
fsl,pins = <
IMX95_PAD_CCM_CLKO1__CCMSRCGPCMIX_TOP_CLKO_1 0x39e
>;
};
};
&lpi2c3 {
#address-cells = <1>;
@ -24,20 +15,14 @@
status = "okay";
os08a20: os08a20_mipi@36 {
compatible = "ovti,os08a20_mipi";
compatible = "ovti,os08a20";
reg = <0x36>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi_mclk>;
clocks = <&scmi_clk IMX95_CLK_CCMCKO1>;
clock-names = "csi_mclk";
assigned-clocks = <&scmi_clk IMX95_CLK_CCMCKO1>;
assigned-clock-parents = <&scmi_clk IMX95_CLK_24M>;
assigned-clock-rates = <24000000>;
csi_id = <0>;
pwn-gpios = <&i2c3_gpio_expander_20 1 GPIO_ACTIVE_HIGH>;
rst-gpios = <&i2c3_gpio_expander_20 2 GPIO_ACTIVE_LOW>;
mclk = <24000000>;
mclk_source = <0>;
reset-gpios = <&i2c3_gpio_expander_20 2 GPIO_ACTIVE_LOW>;
status = "okay";
port {