Hi,
thanks to both of you, my GPIO’s work now. I added them to the dtsi file like hpalacios said.
But now I have an other Problem. I tried the same with the ADC Pins, but everytime I add a second Pin, the device (iio:device1) in the sysfs disappeared.
I tried to add the Pins to the dts file and also I tried to add them to the dtsi file, like the GPIOs, but everytime the same Problem.
If i change the “num-channels” in “imx6ul.dtsi”, should then several be displayed in the sysfs? (I read this in a nxp forum)
That’s what I changed:
- in my dts file and/or in the imx6ul-ccimx6ulstarter.dtsi file
&adc1 {
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_adc1>;
adc-ch-list = <0 1 4 5>;
status = “okay”;
};
&iomuxc {
imx6ul-ccimx6ul {
pinctrl_adc1: adc1grp {
fsl,pins = <
MX6UL_PAD_GPIO1_IO00__GPIO1_IO00 0xb0
MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0xb0
MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0xb0
MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0xb0
>;
};
};
};
- in the imx6ul.dtsi
adc1: adc@02198000 {
compatible = “fsl,imx6ul-adc”, “fsl,vf610-adc”;
reg = <0x02198000 0x4000>;
interrupts = ;
clocks = <&clks IMX6UL_CLK_ADC1>;
num-channels = <5>;
clock-names = “adc”;
fsl,adck-max-frequency = <30000000>, <40000000>,
<20000000>;
status = “disabled”;
};