Commit 74a5599a authored by Piotr Krzyzanowski's avatar Piotr Krzyzanowski Committed by Mahesh Mahadevan
Browse files

samples: sensor: qdec: change pins used for qdec nrf54h20dk



Change pins that are used for qdec nrf54h20dk to align with shield
(loopbacks) used in internal CI. This change is needed to start
qdec driver power management testing.

Signed-off-by: default avatarPiotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
parent 075d5d30
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -13,10 +13,10 @@
	encoder-emulate {
		compatible = "gpio-leds";
		phase_a: phase_a {
			gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
			gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
		};
		phase_b: phase_b {
			gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
			gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
		};
	};
};
@@ -24,17 +24,13 @@
&pinctrl {
	qdec_pinctrl: qdec_pinctrl {
		group1 {
			psels = <NRF_PSEL(QDEC_A, 1, 0)>,
				<NRF_PSEL(QDEC_B, 1, 2)>;
			psels = <NRF_PSEL(QDEC_A, 2, 8)>,
				<NRF_PSEL(QDEC_B, 2, 10)>;
		};
	};
};

&gpio1 {
	status = "okay";
};

&gpio7 {
&gpio2 {
	status = "okay";
};

+7 −11
Original line number Diff line number Diff line
@@ -13,10 +13,10 @@
	encoder-emulate {
		compatible = "gpio-leds";
		phase_a: phase_a {
			gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
			gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
		};
		phase_b: phase_b {
			gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
			gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
		};
	};
};
@@ -24,25 +24,21 @@
&pinctrl {
	qdec_pinctrl: qdec_pinctrl {
		group1 {
			psels = <NRF_PSEL(QDEC_A, 1, 0)>,
				<NRF_PSEL(QDEC_B, 1, 2)>;
			psels = <NRF_PSEL(QDEC_A, 2, 8)>,
				<NRF_PSEL(QDEC_B, 2, 10)>;
		};
	};

	qdec_sleep_pinctrl: qdec_sleep_pinctrl {
		group1 {
			psels = <NRF_PSEL(QDEC_A, 1, 0)>,
				<NRF_PSEL(QDEC_B, 1, 2)>;
			psels = <NRF_PSEL(QDEC_A, 2, 8)>,
				<NRF_PSEL(QDEC_B, 2, 10)>;
			low-power-enable;
		};
	};
};

&gpio1 {
	status = "okay";
};

&gpio7 {
&gpio2 {
	status = "okay";
};