Cannot compile stm32 zephyr C++

so if I am not wrong if I wanted to define a led in PB7 I would have to define something like ?

	leds {
		compatible = "gpio-leds";
		green_led_2: led_2 {
			gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
			label = "User LD2";
		};
	};