51 lines
1.2 KiB
Diff
51 lines
1.2 KiB
Diff
From ef2a8191ceec8bd0eb0c09930a40fc400cb492d9 Mon Sep 17 00:00:00 2001
|
|
From: Dongjin Kim <tobetter@gmail.com>
|
|
Date: Wed, 10 Feb 2021 07:10:06 +0000
|
|
Subject: [PATCH 080/109] ODROID-C4: arm64/dts: add SPI device entry to
|
|
'ODROID-C4'
|
|
|
|
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
|
|
Change-Id: Ia55c649297cd988ca19ae9b65fa7736d0f074352
|
|
---
|
|
.../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 17 +++++++++++++++++
|
|
1 file changed, 17 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
index 335a38ffb519..44687ec071b6 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
@@ -17,6 +17,7 @@ aliases {
|
|
i2c1 = &i2c3;
|
|
serial0 = &uart_AO;
|
|
serial1 = &uart_A;
|
|
+ spi0 = &spicc0;
|
|
};
|
|
|
|
chosen {
|
|
@@ -226,6 +227,22 @@ &sd_emmc_c {
|
|
vqmmc-supply = <&flash_1v8>;
|
|
};
|
|
|
|
+&spicc0 {
|
|
+ status = "okay";
|
|
+
|
|
+ pinctrl-names = "default","gpio_periphs";
|
|
+ pinctrl-0 = <&spicc0_x_pins>;
|
|
+ pinctrl-1 = <&spicc0_ss0_x_pins>;
|
|
+
|
|
+ spidev@0 {
|
|
+ status = "okay";
|
|
+
|
|
+ compatible = "linux,spidev";
|
|
+ reg = <0>;
|
|
+ spi-max-frequency = <100000000>;
|
|
+ };
|
|
+};
|
|
+
|
|
&tdmif_b {
|
|
status = "okay";
|
|
};
|
|
--
|
|
2.25.1
|
|
|