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