@@ -142,6 +142,17 @@ pins {
<MT8365_PIN_116_I2S_BCK__FUNC_PWM_C>;
};
};
+
+ spi_pins: spi-pins {
+ pins {
+ pinmux = <MT8365_PIN_26_SPI_CS__FUNC_SPI_CSB>,
+ <MT8365_PIN_27_SPI_CK__FUNC_SPI_CLK>,
+ <MT8365_PIN_28_SPI_MI__FUNC_SPI_MI>,
+ <MT8365_PIN_29_SPI_MO__FUNC_SPI_MO>;
+ bias-disable;
+ };
+ };
+
};
&pwm {
@@ -150,6 +161,19 @@ &pwm {
status = "okay";
};
+&spi {
+ pinctrl-0 = <&spi_pins>;
+ pinctrl-names = "default";
+ mediatek,pad-select = <0>;
+ status = "okay";
+
+ spidev@0 {
+ compatible = "mediatek,genio";
+ spi-max-frequency = <5000000>;
+ reg = <0>;
+ };
+};
+
&uart0 {
pinctrl-0 = <&uart0_pins>;
pinctrl-names = "default";
Add SPI pins and spidev support for mt8365-evk. Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)