mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 21:24:00 +08:00
1acbdeb92c
Freescale DSPI module will have two endianess in different platform, but ARM is little endian. So when DSPI in big endian, core in little endian, readl and writel can not adjust R/W register in this condition. This patch will remove general readl/writel, and import regmap mechanism. Data endian will be transfered in regmap APIs. Documents: dspi add bool "big-endian" in dts node if DSPI module work in big endian. Signed-off-by: Chao Fu <b44548@freescale.com> Reviewed-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
ARM Freescale DSPI controller
|
|
|
|
Required properties:
|
|
- compatible : "fsl,vf610-dspi"
|
|
- reg : Offset and length of the register set for the device
|
|
- interrupts : Should contain SPI controller interrupt
|
|
- clocks: from common clock binding: handle to dspi clock.
|
|
- clock-names: from common clock binding: Shall be "dspi".
|
|
- pinctrl-0: pin control group to be used for this controller.
|
|
- pinctrl-names: must contain a "default" entry.
|
|
- spi-num-chipselects : the number of the chipselect signals.
|
|
- bus-num : the slave chip chipselect signal number.
|
|
- big-endian : if DSPI modudle is big endian, the bool will be set in node.
|
|
Example:
|
|
|
|
dspi0@4002c000 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
compatible = "fsl,vf610-dspi";
|
|
reg = <0x4002c000 0x1000>;
|
|
interrupts = <0 67 0x04>;
|
|
clocks = <&clks VF610_CLK_DSPI0>;
|
|
clock-names = "dspi";
|
|
spi-num-chipselects = <5>;
|
|
bus-num = <0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_dspi0_1>;
|
|
big-endian;
|
|
status = "okay";
|
|
|
|
sflash: at26df081a@0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "atmel,at26df081a";
|
|
spi-max-frequency = <16000000>;
|
|
spi-cpol;
|
|
spi-cpha;
|
|
reg = <0>;
|
|
linux,modalias = "m25p80";
|
|
modal = "at26df081a";
|
|
};
|
|
};
|
|
|
|
|