Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions arch/arm64/boot/dts/qcom/shikra.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,22 @@
#address-cells = <2>;
#size-cells = <2>;

bam_dmux: bam-dmux {
compatible = "qcom,bam-dmux";

interrupts-extended = <&modem_smsm 1 IRQ_TYPE_EDGE_BOTH>,
<&modem_smsm 11 IRQ_TYPE_EDGE_BOTH>;
interrupt-names = "pc",
"pc-ack";

qcom,smem-states = <&apps_smsm 1>, <&apps_smsm 11>;
qcom,smem-state-names = "pc",
"pc-ack";

dmas = <&bam_dmux_dma 4>, <&bam_dmux_dma 5>;
dma-names = "tx", "rx";
};

clocks {
xo_board: xo-board {
compatible = "fixed-clock";
Expand Down Expand Up @@ -485,6 +501,28 @@
};
};

smsm {
compatible = "qcom,smsm";

#address-cells = <1>;
#size-cells = <0>;

mboxes = <0>, <&apcs_glb 13>;

apps_smsm: apps@0 {
reg = <0>;
#qcom,smem-state-cells = <1>;
};

modem_smsm: modem@1 {
reg = <1>;
interrupts = <GIC_SPI 69 IRQ_TYPE_EDGE_RISING 0>;

interrupt-controller;
#interrupt-cells = <2>;
};
};

soc: soc@0 {
compatible = "simple-bus";

Expand Down Expand Up @@ -2068,6 +2106,18 @@
};
};

bam_dmux_dma: dma-controller@6044000 {
compatible = "qcom,bam-v1.7.0";
reg = <0x0 0x06044000 0x0 0x19000>;
interrupts = <GIC_SPI 74 IRQ_TYPE_EDGE_RISING 0>;
#dma-cells = <1>;
qcom,ee = <0>;

num-channels = <6>;
qcom,num-ees = <1>;
qcom,powered-remotely;
};

remoteproc_mpss: remoteproc@6080000 {
compatible = "qcom,shikra-mpss-pas";
reg = <0x0 0x06080000 0x0 0x100>;
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/configs/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ CONFIG_WLCORE_SDIO=m
CONFIG_WWAN=m
CONFIG_MHI_WWAN_CTRL=m
CONFIG_MHI_WWAN_MBIM=m
CONFIG_QCOM_BAM_DMUX=m
CONFIG_INPUT_EVDEV=y
CONFIG_KEYBOARD_ADC=m
CONFIG_KEYBOARD_GPIO=y
Expand Down
2 changes: 1 addition & 1 deletion drivers/dma/qcom/bam_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ static int bam_dma_probe(struct platform_device *pdev)
bam_channel_init(bdev, &bdev->channels[i], i);

ret = devm_request_irq(bdev->dev, bdev->irq, bam_dma_irq,
IRQF_TRIGGER_HIGH, "bam_dma", bdev);
IRQF_TRIGGER_NONE, "bam_dma", bdev);
if (ret)
goto err_bam_channel_exit;

Expand Down
2 changes: 1 addition & 1 deletion drivers/soc/qcom/smsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* Default sizes, in case SMEM_SMSM_SIZE_INFO is not found.
*/
#define SMSM_DEFAULT_NUM_ENTRIES 8
#define SMSM_DEFAULT_NUM_HOSTS 3
#define SMSM_DEFAULT_NUM_HOSTS 5

struct smsm_entry;
struct smsm_host;
Expand Down