PROCESSOR-SDK-AM62X: GPIO Configuration

Part Number: PROCESSOR-SDK-AM62X

Tool/software:

I am working on GPIO configuration where I have added the config for two pins as below:

// SPDX-License-Identifier: GPL-2.0-only OR MIT
/*
 * Not actually "common", but alternative to k3-am62x-sk-common - baseline for 
 * CBC-9000 prototype hardware without SK/Development board settings
 *
 * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
 */

#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/net/ti-dp83867.h>
#include "k3-am625.dtsi"

/ {
	aliases {
		gpio = &main_pmx0;
	};

	sensor {
		compatible = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&gpio_pins_default>;

		close {
			label = "Close";
			gpios = <&main_gpio1 10 GPIO_ACTIVE_LOW>;
			// linux,code = <KEY_ENTER>;
		};

		open {
			label = "Open";
			gpios = <&main_gpio1 9 GPIO_ACTIVE_LOW>;
			// linux,code = <KEY_ENTER>;
		};
	};
};

&main_pmx0 {
	gpio_pins_default: gpio-default-pins {
		bootph-all;
		pinctrl-single,pins = <
			AM62X_IOPAD(0x1A0, PIN_INPUT, 7) /* (E18) */
			AM62X_IOPAD(0x19C, PIN_INPUT, 7) /* (B18) */
		>;
	};
};

But I am not able to get and set the GPIOs, I need help on how I can do that.