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