-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBONE-SPI0_0.dts
42 lines (37 loc) · 869 Bytes
/
BONE-SPI0_0.dts
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
41
42
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2022 BeagleBoard.org - https://beagleboard.org/
*
* https://docs.beagleboard.io/latest/boards/capes/cape-interface-spec.html#spi
*/
/dts-v1/;
/plugin/;
/*
* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
*/
&{/chosen} {
overlays {
BONE-SPI0_0.kernel = __TIMESTAMP__;
};
};
&bone_spi_0 {
/* tested with: sudo ./spidev_test -v --device /dev/spidev0.0 */
pinctrl-names = "default";
pinctrl-0 = <
&P9_17_spi_pin /* spi6_cs0 */
&P9_22_spi_pin /* spi6_clk */
&P9_21_spi_pin /* spi6_d0 */
&P9_18_spi_pin /* spi6_d1 */
>;
ti,spi-num-cs = <1>;
ti,pindir-d0-out-d1-in;
status = "okay";
spidev@0 {
symlink = "bone/spi/0.0";
compatible = "rohm,dh2228fv";
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <125000000>;
};
};