Commit de93777d authored by Manuel Argüelles's avatar Manuel Argüelles Committed by Anas Nashif
Browse files

tests: drivers: gpio: enable tests for ucans32k1sic



Add DT overlays for running GPIO tests on ucans32k1sic board.

Signed-off-by: default avatarManuel Argüelles <manuel.arguelles@nxp.com>
parent 23053cfe
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
/*
 * Copyright 2023 NXP
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/ {
	resources {
		compatible = "test-gpio-basic-api";
		out-gpios = <&gpioa 0 0>;  /* P12.1 (silk PWM1) */
		in-gpios = <&gpioa 1 0>;   /* P14.1 (silk PWM2) */
	};
};
+35 −0
Original line number Diff line number Diff line
/*
 * Copyright 2023 NXP
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr/dt-bindings/gpio/gpio.h>

/ {
	zephyr,user {
		output-high-gpios = <&gpioa 3 GPIO_ACTIVE_LOW>;
		output-low-gpios = <&gpioa 2 GPIO_ACTIVE_HIGH>;
		input-gpios = <&gpioa 1 GPIO_ACTIVE_HIGH>;
	};
};

&gpioa {
	hog1 {
		gpio-hog;
		gpios = <3 GPIO_ACTIVE_LOW>;
		output-high;
	};

	hog2 {
		gpio-hog;
		gpios = <1 GPIO_ACTIVE_HIGH>;
		input;
	};

	hog3 {
		gpio-hog;
		gpios = <2 GPIO_ACTIVE_HIGH>;
		output-low;
	};
};