xref: /freebsd/sys/contrib/device-tree/Bindings/spi/spi-mxic.txt (revision a90b9d0159070121c221b966469c3e36d912bf82)
1Macronix SPI controller Device Tree Bindings
2--------------------------------------------
3
4Required properties:
5- compatible: should be "mxicy,mx25f0a-spi"
6- #address-cells: should be 1
7- #size-cells: should be 0
8- reg: should contain 2 entries, one for the registers and one for the direct
9       mapping area
10- reg-names: should contain "regs" and "dirmap"
11- interrupts: interrupt line connected to the SPI controller
12- clock-names: should contain "ps_clk", "send_clk" and "send_dly_clk"
13- clocks: should contain 3 entries for the "ps_clk", "send_clk" and
14	  "send_dly_clk" clocks
15
16Example:
17
18	spi@43c30000 {
19		compatible = "mxicy,mx25f0a-spi";
20		reg = <0x43c30000 0x10000>, <0xa0000000 0x20000000>;
21		reg-names = "regs", "dirmap";
22		clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 18>;
23		clock-names = "send_clk", "send_dly_clk", "ps_clk";
24		#address-cells = <1>;
25		#size-cells = <0>;
26
27		flash@0 {
28			compatible = "jedec,spi-nor";
29			reg = <0>;
30			spi-max-frequency = <25000000>;
31			spi-tx-bus-width = <4>;
32			spi-rx-bus-width = <4>;
33		};
34	};
35