Commit e9269650 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Bjorn Andersson

arm64: dts: qcom: qrb5165-rb5: switch into using GPIO for SPI0 CS

On the GENI SPI controller is is not very efficient if the chip select
line is controlled by the QUP itself (see 37dd4b77 ("arm64: dts:
qcom: sc7180: Provide pinconf for SPI to use GPIO for CS") for the
details). Configure SPI0 CS pin as a GPIO.
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20210210133458.1201066-5-dmitry.baryshkov@linaro.orgSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent eb97ccbb
...@@ -949,7 +949,8 @@ codec { ...@@ -949,7 +949,8 @@ codec {
&spi0 { &spi0 {
status = "okay"; status = "okay";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&qup_spi0_data_clk>, <&qup_spi0_cs>; pinctrl-0 = <&qup_spi0_data_clk>, <&qup_spi0_cs_gpio>;
cs-gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
can@0 { can@0 {
compatible = "microchip,mcp2518fd"; compatible = "microchip,mcp2518fd";
...@@ -1352,7 +1353,7 @@ &vamacro { ...@@ -1352,7 +1353,7 @@ &vamacro {
}; };
/* PINCTRL - additions to nodes defined in sm8250.dtsi */ /* PINCTRL - additions to nodes defined in sm8250.dtsi */
&qup_spi0_cs { &qup_spi0_cs_gpio {
drive-strength = <6>; drive-strength = <6>;
bias-disable; bias-disable;
}; };
......
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