Hello,
IMX8QXP MEK Board, android_O8.1.0_1.1.0_AUTO-EAR.
I can control SC_P_MIPI_CSI0_GPIO0_00_MIPI_CSI0_GPIO0_IO00 using the codes below.
now I need to control SC_P_MIPI_DSI0_GPIO0_00_MIPI_DSI0_GPIO0_IO00,
How can I get the boldfaced words's information ? please.
Thanks.
gpio0_mipi_csi0: gpio@58222000 {
compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
reg = <0x0 0x58222000 0x0 0x1000>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&irqsteer_csi>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
power-domains = <&pd_mipi_csi>;
clocks = <&clk IMX8QXP_CSI0_IPG_CLK_S>;
clock-names = "ipg";
};
pinctrl_mipi_csi0_gpio: mipicsi0gpiogrp{
fsl,pins = <
SC_P_MIPI_CSI0_GPIO0_00_MIPI_CSI0_GPIO0_IO00 0x00000021
SC_P_MIPI_CSI0_GPIO0_01_MIPI_CSI0_GPIO0_IO01 0x00000021
>;
};
&gpio0_mipi_csi0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mipi_csi0_gpio>;
};
pwn-gpios = <&gpio0_mipi_csi0 0 GPIO_ACTIVE_HIGH>;
max9286_data->pwn_gpio = of_get_named_gpio(dev->of_node, "pwn-gpios", 0);
if (!gpio_is_valid(max9286_data->pwn_gpio)) {
dev_err(dev, "no sensor pwdn pin available\n");
return -ENODEV;
}
retval = devm_gpio_request_one(dev, max9286_data->pwn_gpio, GPIOF_OUT_INIT_LOW,
"max9286_pwd");
pr_err("XXCC set r1237--\n");
while(1)
{
gpio_set_value(max9286_data->pwn_gpio, 1);
msleep(2000);
gpio_set_value(max9286_data->pwn_gpio, 0);
msleep(2000);
}
Solved! Go to Solution.
Hi,
please take a look here GPIO configuration
If you are interested in developing a kernel module to handle GPIOs I can share a snippet, just let me know because I have to find it.
Regards,
Carlos
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,
please take a look here GPIO configuration
If you are interested in developing a kernel module to handle GPIOs I can share a snippet, just let me know because I have to find it.
Regards,
Carlos
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Carlos,
Thanks for your reply,and it's helpful.
Thanks & Regards
Chuan