diff options
| -rw-r--r-- | Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt | 7 | ||||
| -rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt index 5376de40f10b..cbbe16ed3874 100644 --- a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt +++ b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt | |||
| @@ -10,7 +10,12 @@ Required properties: | |||
| 10 | - pinctrl-names: must contain a "default" entry. | 10 | - pinctrl-names: must contain a "default" entry. |
| 11 | - spi-num-chipselects : the number of the chipselect signals. | 11 | - spi-num-chipselects : the number of the chipselect signals. |
| 12 | - bus-num : the slave chip chipselect signal number. | 12 | - bus-num : the slave chip chipselect signal number. |
| 13 | - big-endian : if DSPI modudle is big endian, the bool will be set in node. | 13 | |
| 14 | Optional property: | ||
| 15 | - big-endian: If present the dspi device's registers are implemented | ||
| 16 | in big endian mode, otherwise in native mode(same with CPU), for more | ||
| 17 | detail please see: Documentation/devicetree/bindings/regmap/regmap.txt. | ||
| 18 | |||
| 14 | Example: | 19 | Example: |
| 15 | 20 | ||
| 16 | dspi0@4002c000 { | 21 | dspi0@4002c000 { |
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 5021ddf03f60..ebc4d1fd76e2 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c | |||
| @@ -493,9 +493,6 @@ static int dspi_probe(struct platform_device *pdev) | |||
| 493 | } | 493 | } |
| 494 | 494 | ||
| 495 | dspi_regmap_config.lock_arg = dspi; | 495 | dspi_regmap_config.lock_arg = dspi; |
| 496 | dspi_regmap_config.val_format_endian = | ||
| 497 | of_property_read_bool(np, "big-endian") | ||
| 498 | ? REGMAP_ENDIAN_BIG : REGMAP_ENDIAN_DEFAULT; | ||
| 499 | dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dspi", base, | 496 | dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dspi", base, |
| 500 | &dspi_regmap_config); | 497 | &dspi_regmap_config); |
| 501 | if (IS_ERR(dspi->regmap)) { | 498 | if (IS_ERR(dspi->regmap)) { |
