1/* 2 * Copyright (c) 2024, STRIM, ALC 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7&pinctrl { 8 pinmux_flexio3spi0: pinmux_flexio3spi0 { 9 group0 { 10 pinmux = 11 <&iomuxc_gpio_ad_b0_03_gpio1_io03>, /* cs */ 12 <&iomuxc_gpio_ad_b1_10_flexio3_flexio10>, /* sck */ 13 <&iomuxc_gpio_ad_b1_01_flexio3_flexio01>, /* sdo */ 14 <&iomuxc_gpio_ad_b1_04_flexio3_flexio04>; /* sdi */ 15 drive-strength = "r0-6"; 16 slew-rate = "slow"; 17 nxp,speed = "150-mhz"; 18 }; 19 }; 20 pinmux_flexio3spi1: pinmux_flexio3spi1 { 21 group0 { 22 pinmux = 23 <&iomuxc_gpio_ad_b0_02_gpio1_io02>, /* cs */ 24 <&iomuxc_gpio_ad_b1_11_flexio3_flexio11>, /* sck */ 25 <&iomuxc_gpio_ad_b1_00_flexio3_flexio00>, /* sdo */ 26 <&iomuxc_gpio_ad_b1_05_flexio3_flexio05>; /* sdi */ 27 drive-strength = "r0-6"; 28 slew-rate = "slow"; 29 nxp,speed = "150-mhz"; 30 }; 31 }; 32}; 33 34&flexio3 { 35 status = "okay"; 36 flexio3_spi0: flexio3_spi0 { 37 compatible = "nxp,flexio-spi"; 38 status = "okay"; 39 #address-cells = <1>; 40 #size-cells = <0>; 41 cs-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; 42 sdo-pin = <1>; 43 sdi-pin = <4>; 44 sck-pin = <10>; 45 pinctrl-0 = <&pinmux_flexio3spi0>; 46 pinctrl-names = "default"; 47 slow@0 { 48 status = "okay"; 49 compatible = "test-spi-loopback-slow"; 50 reg = <0>; 51 spi-max-frequency = <500000>; 52 }; 53 }; 54 flexio3_spi1: flexio3_spi1 { 55 compatible = "nxp,flexio-spi"; 56 status = "okay"; 57 #address-cells = <1>; 58 #size-cells = <0>; 59 cs-gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; 60 sdo-pin = <0>; 61 sdi-pin = <5>; 62 sck-pin = <11>; 63 pinctrl-0 = <&pinmux_flexio3spi1>; 64 pinctrl-names = "default"; 65 fast@0 { 66 status = "okay"; 67 compatible = "test-spi-loopback-fast"; 68 reg = <0>; 69 spi-max-frequency = <4000000>; 70 }; 71 }; 72}; 73 74/* pinmux_lpspi3 overlaps pinmux_flexio3spi1 */ 75&lpspi3 { 76 status = "disabled"; 77}; 78