Closed M0Rf30 closed 1 year ago
Following this https://github.com/msm8953-mainline/linux/pull/95 hereby I only enable missing SPI interfaces
Please also send this patch upstream, no need to keep it in this repo only. Other than the two BAMs, LGTM
@M0Rf30 Can you add spi_5 also? Downstream node from ysl sources:
spi_5: spi@7af5000 { /* BLSP2 QUP1 */
compatible = "qcom,spi-qup-v2";
#address-cells = <1>;
#size-cells = <0>;
reg-names = "spi_physical", "spi_bam_physical";
reg = <0x7af5000 0x600>,
<0x07AC4000 0x1f000>;
interrupt-names = "spi_irq", "spi_bam_irq";
interrupts = <0 299 0>, <0 239 0>;
spi-max-frequency = <19200000>;
pinctrl-names = "spi_default", "spi_sleep";
pinctrl-0 = <&spi5_default &spi5_cs0_active>;
pinctrl-1 = <&spi5_sleep &spi5_cs0_sleep>;
clocks = <&clock_gcc clk_gcc_blsp2_ahb_clk>,
<&clock_gcc clk_gcc_blsp2_qup1_spi_apps_clk>;
clock-names = "iface_clk", "core_clk";
qcom,infinite-mode = <0>;
qcom,use-bam;
qcom,use-pinctrl;
qcom,ver-reg-exists;
qcom,bam-consumer-pipe-index = <4>;
qcom,bam-producer-pipe-index = <5>;
qcom,master-id = <84>;
};
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/commit/36039a35bfaf3e0fbfef78b5c70a6aa798e56363
@M0Rf30 Can you add spi_5 also? Downstream node from ysl sources:
spi_5: spi@7af5000 { /* BLSP2 QUP1 */ compatible = "qcom,spi-qup-v2"; #address-cells = <1>; #size-cells = <0>; reg-names = "spi_physical", "spi_bam_physical"; reg = <0x7af5000 0x600>, <0x07AC4000 0x1f000>; interrupt-names = "spi_irq", "spi_bam_irq"; interrupts = <0 299 0>, <0 239 0>; spi-max-frequency = <19200000>; pinctrl-names = "spi_default", "spi_sleep"; pinctrl-0 = <&spi5_default &spi5_cs0_active>; pinctrl-1 = <&spi5_sleep &spi5_cs0_sleep>; clocks = <&clock_gcc clk_gcc_blsp2_ahb_clk>, <&clock_gcc clk_gcc_blsp2_qup1_spi_apps_clk>; clock-names = "iface_clk", "core_clk"; qcom,infinite-mode = <0>; qcom,use-bam; qcom,use-pinctrl; qcom,ver-reg-exists; qcom,bam-consumer-pipe-index = <4>; qcom,bam-producer-pipe-index = <5>; qcom,master-id = <84>; };
Done
Now I see what you want to do https://github.com/mahajant99/kernel_xiaomi_msm8953-ysl/blob/5f6a4f9e1fad4822b00f33974ac27a437f996781/arch/arm64/boot/dts/qcom/ysl/ysl-mtp.dtsi#L177
Signed-off-by: Gianluca Boiano <morf3089@gmail.com