18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci&gpio {
78c2ecf20Sopenharmony_ci	cs14_pins: cs14-pins {
88c2ecf20Sopenharmony_ci		pins = "GPIO_44";
98c2ecf20Sopenharmony_ci		function = "si";
108c2ecf20Sopenharmony_ci	};
118c2ecf20Sopenharmony_ci};
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci&spi0 {
148c2ecf20Sopenharmony_ci	pinctrl-0 = <&si2_pins>;
158c2ecf20Sopenharmony_ci	pinctrl-names = "default";
168c2ecf20Sopenharmony_ci	spi@e {
178c2ecf20Sopenharmony_ci		compatible = "spi-mux";
188c2ecf20Sopenharmony_ci		mux-controls = <&mux>;
198c2ecf20Sopenharmony_ci		#address-cells = <1>;
208c2ecf20Sopenharmony_ci		#size-cells = <0>;
218c2ecf20Sopenharmony_ci		reg = <14>; /* CS14 */
228c2ecf20Sopenharmony_ci		spi-flash@6 {
238c2ecf20Sopenharmony_ci			compatible = "spi-nand";
248c2ecf20Sopenharmony_ci			pinctrl-0 = <&cs14_pins>;
258c2ecf20Sopenharmony_ci			pinctrl-names = "default";
268c2ecf20Sopenharmony_ci			reg = <0x6>; /* SPI2 */
278c2ecf20Sopenharmony_ci			spi-max-frequency = <42000000>;
288c2ecf20Sopenharmony_ci			rx-sample-delay-ns = <7>;  /* Tune for speed */
298c2ecf20Sopenharmony_ci		};
308c2ecf20Sopenharmony_ci	};
318c2ecf20Sopenharmony_ci};
32