Hi,
1.
We installed PIN tool but IMX8dx/qxp database didn't find.
https://www.nxp.com/pages/pins-tool-for-i.mx-application-processors:PINS-TOOL-IMX
2. fsl-imx8dx.dtsi : has imx8qm only.
gpio1: gpio@5d090000 {
compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
reg = <0x0 0x5d090000 0x0 0x10000>;
interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller;
#gpio-cells = <2>;
power-domains = <&pd_lsio_gpio1>;
interrupt-controller;
#interrupt-cells = <2>;
};
gpio2: gpio@5d0a0000 {
compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
reg = <0x0 0x5d0a0000 0x0 0x10000>;
interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller;
#gpio-cells = <2>;
power-domains = <&pd_lsio_gpio2>;
interrupt-controller;
#interrupt-cells = <2>;
};
gpio3: gpio@5d0b0000 {
compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
reg = <0x0 0x5d0b0000 0x0 0x10000>;
interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller;
#gpio-cells = <2>;
power-domains = <&pd_lsio_gpio3>;
interrupt-controller;
#interrupt-cells = <2>;
};
gpio4: gpio@5d0c0000 {
compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
reg = <0x0 0x5d0c0000 0x0 0x10000>;
interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller;
#gpio-cells = <2>;
power-domains = <&pd_lsio_gpio4>;
interrupt-controller;
#interrupt-cells = <2>;
};
gpio5: gpio@5d0d0000 {
compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
reg = <0x0 0x5d0d0000 0x0 0x10000>;
interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller;
#gpio-cells = <2>;
power-domains = <&pd_lsio_gpio5>;
interrupt-controller;
#interrupt-cells = <2>;
};
3#: NO DRIVER FOR GPIOS
didnt find the gpio driver in the kernel in "/drivers/gpio/"
which has got errors: Not able to export. any GPIO.
[ 115.430117] export_store: invalid GPIO 73
[ 184.114083] export_store: invalid GPIO 105
[ 342.974089] export_store: invalid GPIO 73
4#: GPIO DTS file config.
Please correct me if my DTS file config is wrong:
GPIO3_IO13 Output
GPIO3_IO09 Output
GPIO3_IO10 Output
GPIO3_IO11 Input / Open drain ?
GPIO3_IO12 Input / Open drain ?
GPIO3_IO18 Output
GPIO1_IO20 Output
GPIO1_IO19 Output
GPIO1.IO13 Input - ADC Input <--ADC
few GPIOs are INPUT and few are OUTPUT.
fsl,pins = <
SC_P_QSPI0A_DQS_LSIO_GPIO3_IO13 0x20000021 as a Output is thos config value is correct ??
SC_P_QSPI0A_DATA0_LSIO_GPIO3_IO09 0x20000021
SC_P_QSPI0A_DATA2_LSIO_GPIO3_IO11 0x24000021 /* No pullup, OPEN_DRAIN_INPUT, LSIO_GPIO3_IO11*/
SC_P_QSPI0A_DATA3_LSIO_GPIO3_IO12 0x24000021 /* No pullup, OPEN_DRAIN_INPUT, LSIO_GPIO3_IO11*/
SC_P_QSPI0B_DATA0_LSIO_GPIO3_IO18 0x20000021
/*SC_P_FLEXCAN2_TX_LSIO_GPIO1_IO20 0x00000021 */
SC_P_FLEXCAN2_RX_LSIO_GPIO1_IO19 0x20000021
SC_P_ADC_IN5_ADMA_ADC_IN5 0x04000006 /*Drive select 12mA, OPEN_DRAIN_INPUT, ADMA_ADC_IN5 */
>;
Regards,
Viswa