···66 - "ti,omap4-spi" for OMAP4+.77- ti,spi-num-cs : Number of chipselect supported by the instance.88- ti,hwmods: Name of the hwmod associated to the McSPI99-- ti,pindir-d0-in-d1-out: Select the D0 pin as input and D1 as1010- output. The default is D0 as output and1111- D1 as input.99+- ti,pindir-d0-out-d1-in: Select the D0 pin as output and D1 as1010+ input. The default is D0 as input and1111+ D1 as output.12121313Example:1414
+3-3
drivers/spi/spi-omap2-mcspi.c
···765765 /* standard 4-wire master mode: SCK, MOSI/out, MISO/in, nCS766766 * REVISIT: this controller could support SPI_3WIRE mode.767767 */768768- if (mcspi->pin_dir == MCSPI_PINDIR_D0_OUT_D1_IN) {768768+ if (mcspi->pin_dir == MCSPI_PINDIR_D0_IN_D1_OUT) {769769 l &= ~OMAP2_MCSPI_CHCONF_IS;770770 l &= ~OMAP2_MCSPI_CHCONF_DPE1;771771 l |= OMAP2_MCSPI_CHCONF_DPE0;···11871187 of_property_read_u32(node, "ti,spi-num-cs", &num_cs);11881188 master->num_chipselect = num_cs;11891189 master->bus_num = bus_num++;11901190- if (of_get_property(node, "ti,pindir-d0-in-d1-out", NULL))11911191- mcspi->pin_dir = MCSPI_PINDIR_D0_IN_D1_OUT;11901190+ if (of_get_property(node, "ti,pindir-d0-out-d1-in", NULL))11911191+ mcspi->pin_dir = MCSPI_PINDIR_D0_OUT_D1_IN;11921192 } else {11931193 pdata = pdev->dev.platform_data;11941194 master->num_chipselect = pdata->num_cs;