-
-
Notifications
You must be signed in to change notification settings - Fork 437
Expand file tree
/
Copy pathrockchip-luckfox-lyra-plus-spi0-2cs-spidev.dts
More file actions
40 lines (35 loc) · 1.05 KB
/
rockchip-luckfox-lyra-plus-spi0-2cs-spidev.dts
File metadata and controls
40 lines (35 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Enable spidev on SPI0 with explicit RM_IO pinmux:
* MOSI = RM_IO6, MISO = RM_IO5, CLK = RM_IO7, CS0 = RM_IO8, CS1 = RM_IO11
* Retains compatibility with luckfox-pico-plus hats (CS0 = RM_IO8, CS1 = RM_IO11).
*/
/dts-v1/;
/plugin/;
/ {
metadata {
title = "Enable SPI0 spidev on luckfox-lyra-plus with two chipselects (CS0 = RM_IO8, CS1 = RM_IO11)";
compatible = "rockchip,rk3506g-lyra-plus";
category = "spi";
exclusive = "spi0", "RM_IO5", "RM_IO6", "RM_IO7", "RM_IO8", "RM_IO11";
description = "Enable SPI0 spidev using RM_IO6(MOSI), RM_IO5(MISO), RM_IO7(CLK), RM_IO8(CS0), RM_IO11(CS1).";
};
};
&spi0 {
status = "okay";
num-cs = <2>;
pinctrl-names = "default";
pinctrl-0 = <&rm_io7_spi0_clk &rm_io5_spi0_miso &rm_io6_spi0_mosi &rm_io8_spi0_csn0 &rm_io11_spi0_csn1>;
spi@0 {
compatible = "rockchip,spidev";
reg = <0>;
spi-max-frequency = <50000000>;
status = "okay";
};
spi@1 {
compatible = "rockchip,spidev";
reg = <1>;
spi-max-frequency = <50000000>;
status = "okay";
};
};