Set pinmuxing for spidev
- We had spidev enabled for the 40-pin header, but didn't actually
set up any muxing -- so whatever you try to do never makes it to the
pins. This corrects that oversight.
Change-Id: I8fcee61017c7c2e5e5e234018858778d3bbbc2c6
diff --git a/arch/arm64/boot/dts/mediatek/mt8167-coral.dts b/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
index 73d29a4..c08bb12 100644
--- a/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
@@ -297,6 +297,16 @@
};
};
+ spi_pins: spi {
+ pins1 {
+ pinmux = <MT8167_PIN_3_EINT3__FUNC_SPI_MI>,
+ <MT8167_PIN_4_EINT4__FUNC_SPI_MO>,
+ <MT8167_PIN_5_EINT5__FUNC_SPI_CSB>,
+ <MT8167_PIN_6_EINT6__FUNC_SPI_CLK>;
+ bias-disable;
+ };
+ };
+
pwm_pins: pwm {
pins1 {
pinmux = <MT8167_PIN_11_EINT11__FUNC_PWM_C>,
@@ -635,6 +645,8 @@
&spi {
status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi_pins>;
spidev@0 {
#address-cells = <1>;
#size-cells = <1>;