Hi,
I have here an embedded system where i use a serial port as SD Card
interface as well as SPI interface. I select what i want to use
by setting a GPIO pin high or low.
Currently i'm using two different dts files, one that specifies the
serial port as SD Card interface and one that specifies the serial
port as SPI interface.
Now i would like to merge them into one file so that i can select
which mode to use at runtime. The documentation gave me the impression
that this should be possible, but i was not able to figure out how
to do it.
Would someone be so kind and point me to the documentation/example
i've missed?
The current configuration i use is either:
ssp0: ssp@80010000 {
compatible = "fsl,imx23-mmc";
pinctrl-names = "default";
pinctrl-0 = <&mmc0_8bit_pins_a &mmc1_pins_fixup>;
bus-width = <8>;
status = "okay";
};
or:
ssp0: ssp@80010000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx23-spi";
fsl,ssp-dma-channel = <1>;
pinctrl-names = "default";
pinctrl-0 = <&spi_pins_a>;
status = "okay";
};
Thanks in advance
Attila Kinali
--
It is upon moral qualities that a society is ultimately founded. All
the prosperity and technological sophistication in the world is of no
use without that foundation.
-- Miss Matheson, The Diamond Age, Neil Stephenson
_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss