Merge "msm: Copper: Add board and device tree support for SPI driver" into msm-3.0
This commit is contained in:
committed by
QuIC Gerrit Code Review
commit
eddc1d32f6
16
Documentation/devicetree/bindings/spi/spi_qsd.txt
Normal file
16
Documentation/devicetree/bindings/spi/spi_qsd.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
Qualcomm Serial Peripheral Interface (SPI)
|
||||
|
||||
Required properties:
|
||||
- compatible : should be "qcom,spi-qup-v2".
|
||||
- reg : offset and length of the QUP register map.
|
||||
- interrupts : should contain the QUP core interrupt.
|
||||
- spi-max-frequency : specifies maximum SPI clock frequency, Units - Hz.
|
||||
|
||||
Example:
|
||||
spi@f9924000 {
|
||||
compatible = "qcom,spi-qup-v2";
|
||||
reg = <0xf9924000 0x1000>;
|
||||
interrupts = <96>;
|
||||
spi-max-frequency = <24000000>;
|
||||
};
|
||||
|
||||
@@ -70,4 +70,10 @@
|
||||
qcom,bam-dma-res-pipes = <6>;
|
||||
};
|
||||
|
||||
spi@f9924000 {
|
||||
compatible = "qcom,spi-qup-v2";
|
||||
reg = <0xf9924000 0x1000>;
|
||||
interrupts = <96>;
|
||||
spi-max-frequency = <24000000>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -77,6 +77,8 @@ static struct clk_lookup msm_clocks_dummy[] = {
|
||||
CLK_DUMMY("dfab_clk", DFAB_CLK, NULL, 0),
|
||||
CLK_DUMMY("dma_bam_pclk", DMA_BAM_P_CLK, NULL, 0),
|
||||
CLK_DUMMY("mem_clk", NULL, NULL, 0),
|
||||
CLK_DUMMY("core_clk", SPI_CLK, "spi_qsd.1", OFF),
|
||||
CLK_DUMMY("iface_clk", SPI_P_CLK, "spi_qsd.1", OFF),
|
||||
};
|
||||
|
||||
struct clock_init_data msm_dummy_clock_init_data __initdata = {
|
||||
@@ -89,6 +91,8 @@ static struct of_dev_auxdata msm_copper_auxdata_lookup[] __initdata = {
|
||||
"msm_serial_hsl.0", NULL),
|
||||
OF_DEV_AUXDATA("qcom,hsusb-otg", 0xF9A55000, \
|
||||
"msm_otg", NULL),
|
||||
OF_DEV_AUXDATA("qcom,spi-qup-v2", 0xF9924000, \
|
||||
"spi_qsd.1", NULL),
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user