xref: /freebsd/sys/contrib/device-tree/src/arm64/microchip/sparx5_nand.dtsi (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
16be33864SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
26be33864SEmmanuel Vadot/*
36be33864SEmmanuel Vadot * Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.
46be33864SEmmanuel Vadot */
56be33864SEmmanuel Vadot
66be33864SEmmanuel Vadot&gpio {
76be33864SEmmanuel Vadot	cs14_pins: cs14-pins {
86be33864SEmmanuel Vadot		pins = "GPIO_44";
96be33864SEmmanuel Vadot		function = "si";
106be33864SEmmanuel Vadot	};
116be33864SEmmanuel Vadot};
126be33864SEmmanuel Vadot
136be33864SEmmanuel Vadot&spi0 {
146be33864SEmmanuel Vadot	pinctrl-0 = <&si2_pins>;
156be33864SEmmanuel Vadot	pinctrl-names = "default";
166be33864SEmmanuel Vadot	spi@e {
176be33864SEmmanuel Vadot		compatible = "spi-mux";
186be33864SEmmanuel Vadot		mux-controls = <&mux>;
196be33864SEmmanuel Vadot		#address-cells = <1>;
206be33864SEmmanuel Vadot		#size-cells = <0>;
216be33864SEmmanuel Vadot		reg = <14>; /* CS14 */
22*d5b0e70fSEmmanuel Vadot		flash@6 {
236be33864SEmmanuel Vadot			compatible = "spi-nand";
246be33864SEmmanuel Vadot			pinctrl-0 = <&cs14_pins>;
256be33864SEmmanuel Vadot			pinctrl-names = "default";
266be33864SEmmanuel Vadot			reg = <0x6>; /* SPI2 */
276be33864SEmmanuel Vadot			spi-max-frequency = <42000000>;
286be33864SEmmanuel Vadot			rx-sample-delay-ns = <7>;  /* Tune for speed */
296be33864SEmmanuel Vadot		};
306be33864SEmmanuel Vadot	};
316be33864SEmmanuel Vadot};
32