1/* 2 * Copyright 2024 NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* To test this sample, connect 8 * SDO(J2-3) --> SDI(J2-4) 9 */ 10 11&pinctrl { 12 pinmux_flexio_spi0: pinmux_flexio_spi0 { 13 group0 { 14 pinmux = <FXIO_D6_PTA8>, /* cs */ 15 <FXIO_D4_PTB8>, /* sck */ 16 <FXIO_D7_PTC3>, /* sdo */ 17 <FXIO_D1_PTB11>; /* sdi */ 18 drive-strength = "low"; 19 slew-rate = "slow"; 20 }; 21 }; 22}; 23 24&flexio { 25 status = "okay"; 26 27 flexio_spi0: flexio_spi0 { 28 compatible = "nxp,flexio-spi"; 29 status = "okay"; 30 #address-cells = <1>; 31 #size-cells = <0>; 32 cs-gpios = <&gpioa 8 GPIO_ACTIVE_LOW>; 33 sdo-pin = <7>; 34 sdi-pin = <1>; 35 sck-pin = <4>; 36 pinctrl-0 = <&pinmux_flexio_spi0>; 37 pinctrl-names = "default"; 38 slow@0 { 39 status = "okay"; 40 compatible = "test-spi-loopback-slow"; 41 reg = <0>; 42 spi-max-frequency = <500000>; 43 }; 44 fast@0 { 45 compatible = "test-spi-loopback-fast"; 46 reg = <0>; 47 spi-max-frequency = <4000000>; 48 }; 49 }; 50}; 51 52&gpioa { 53 status = "okay"; 54}; 55