• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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- clock-names: should contain "ps_clk", "send_clk" and "send_dly_clk"
12- clocks: should contain 3 entries for the "ps_clk", "send_clk" and
13	  "send_dly_clk" clocks
14
15Optional properties:
16- interrupts: interrupt line connected to the SPI controller
17
18Example:
19
20	spi@43c30000 {
21		compatible = "mxicy,mx25f0a-spi";
22		reg = <0x43c30000 0x10000>, <0xa0000000 0x20000000>;
23		reg-names = "regs", "dirmap";
24		clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 18>;
25		clock-names = "send_clk", "send_dly_clk", "ps_clk";
26		#address-cells = <1>;
27		#size-cells = <0>;
28
29		flash@0 {
30			compatible = "jedec,spi-nor";
31			reg = <0>;
32			spi-max-frequency = <25000000>;
33			spi-tx-bus-width = <4>;
34			spi-rx-bus-width = <4>;
35		};
36	};
37