GPIO1 on custom board

Hi, I am trying with coap_client/server example programs on a custom board. I created a custom board for Zephyr and it is compiled without errors. I have a single button switch on GPIO1-9. So I enabled gpio1 from the board overlay file as follows.

/ {
	chosen {
		zephyr,entropy = &rng;
	};
};
.
.
&gpio1 {
	status = "okay";
};

Then the buttons node is set as follows in the board dts file.

	buttons {
		compatible = "gpio-keys";
		button0: button_0 {
			gpios = <&gpio1 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;	
			label = "Push button switch 0";
		};
		/*
		button1: button_1 {
			gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
			label = "Push button switch 1";
		};
		button2: button_2 {
			gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
			label = "Push button switch 2";
		};
		button3: button_3 {
			gpios = <&gpio0 20 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
			label = "Push button switch 3";
		}; */
	};

I tried this on button example project, but the button press is not recognized. 

I have verified the actual voltage change on the pin.

Thanks,

Related