[PATCH v2 1/2] arm64: dts: mediatek: add spidev support for mt8365-evk board
Alexandre Mergnat
amergnat at baylibre.com
Thu Jan 19 09:28:19 PST 2023
Add SPI pins and spidev support for mt8365-evk.
Signed-off-by: Amjad Ouled-Ameur <aouledameur at baylibre.com>
Signed-off-by: Alexandre Mergnat <amergnat at baylibre.com>
---
arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
index 275ea3a0e708..c1d603cb129a 100644
--- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts
@@ -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 at 0 {
+ compatible = "mediatek,genio";
+ spi-max-frequency = <5000000>;
+ reg = <0>;
+ };
+};
+
&uart0 {
pinctrl-0 = <&uart0_pins>;
pinctrl-names = "default";
--
b4 0.10.1
More information about the Linux-mediatek
mailing list