Commit 8b65237e authored by Gustave Monce's avatar Gustave Monce Committed by Bjorn Andersson

arm64: dts: qcom: msm8994-octagon: Configure Lattice iCE40 FPGA

Octagon devices have a Lattice iCE40 FPGA connected over SPI.
Configure it.
Signed-off-by: default avatarGustave Monce <gustave.monce@outlook.com>
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@somainline.org>
Link: https://lore.kernel.org/r/20210131013853.55810-13-konrad.dybcio@somainline.orgSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 09179fb6
......@@ -304,6 +304,27 @@ &blsp1_uart2 {
status = "okay";
};
&blsp2_spi4 {
status = "okay";
/*
* This device is a Lattice UC120 USB-C PD PHY.
* It is actually a Lattice iCE40 FPGA pre-programmed by
* the device firmware with a specific bitstream
* enabling USB Type C PHY functionality.
* Communication is done via a proprietary protocol over SPI.
*
* TODO: Once a proper driver is available, replace this.
*/
uc120: ice5lp2k@0 {
compatible = "lattice,ice40-fpga-mgr";
reg = <0>;
spi-max-frequency = <5000000>;
cdone-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
reset-gpios = <&pmi8994_gpios 4 GPIO_ACTIVE_LOW>;
};
};
&blsp2_uart2 {
status = "okay";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment