Hi:
Im trying to set a basic group of GPIOs on the Kernel's device tree but nothing seems to work, if I set a pin as Input, applying voltage to it does nothing (gpioget always return 0), setting it as output also does nothing (gpioset gpiochip1 <pin number>=1/0, no change on the pin)
here is the relevant sections of the device tree
&main_pmx0 { ... gpio1_pins_default: gpio1-default-pins { pinctrl-single,pins = < AM62X_IOPAD(0x00ac, PIN_OUTPUT, 7) /* (L21) GPMC0_CSn1.GPIO0_42 */ AM62X_IOPAD(0x00b0, PIN_INPUT, 7) /* (K22) GPMC0_CSn2.GPIO0_43 */ AM62X_IOPAD(0x0168, PIN_OUTPUT, 7) /* (AE21) RGMII2_TXC.GPIO0_88 */ AM62X_IOPAD(0x00b8, PIN_OUTPUT, 7) /* (U22) VOUT0_DATA0.GPIO0_45 */ >; }; }; &main_gpio0 { status = "okay"; // pinctrl-names = "default"; pinctrl-0 = <&gpio1_pins_default>; gpio-line-names = "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "mcu_boot", "factory_reset", "", "test_pin", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "mcu_reset", "", "", ""; st_mcu_reset { gpios = <88 GPIO_ACTIVE_LOW>; output-low; line-name = "mcu_reset"; }; st_mcu_boot { gpios = <42 GPIO_ACTIVE_HIGH>; // gpio-hog; output-high; line-name = "mcu_boot"; }; factory_reset { gpios = <43 GPIO_ACTIVE_LOW>; input; line-name = "factory_reset"; }; test_pin { gpios = <45 GPIO_ACTIVE_HIGH>; output-high; line-name = "test_pin"; }; };
Your help is much appreciated.