1/*
2 * Copyright (c) 2022 Kumar Gala <galak@kernel.org>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7&pinctrl {
8	spim2_loopback: spim2_loopback {
9		group1 {
10			pinmux = <SPIM2_MISO_GPIO2>;
11			output-enable; /* Enable internal loopback */
12		};
13		group2 {
14			pinmux = <SPIM2_MOSI_GPIO2>;
15			input-enable; /* Enable internal loopback */
16		};
17		group3 {
18			pinmux = <SPIM2_SCLK_GPIO6>,
19				<SPIM2_CSEL_GPIO10>;
20		};
21	};
22};
23
24&spi2 {
25	slow@0 {
26		compatible = "test-spi-loopback-slow";
27		reg = <0>;
28		spi-max-frequency = <500000>;
29	};
30	fast@0 {
31		compatible = "test-spi-loopback-fast";
32		reg = <0>;
33		spi-max-frequency = <16000000>;
34	};
35};
36
37&spi2 {
38	#address-cells = <1>;
39	#size-cells = <0>;
40	dma-enabled;
41	pinctrl-0 = <&spim2_loopback>;
42	pinctrl-names = "default";
43	status = "okay";
44};
45