blob: 5b9620aff8a9bbaa0fd6467a5753d334f82cee91 [file] [log] [blame]
Jan Kundrát90bd7a02017-11-14 17:40:37 +01001#include "armada-388-clearfog-base.dts"
Jan Kundrát800fcf02017-11-14 13:27:44 +01002
3&w25q32 {
4 status = "okay";
Jan Kundrátbb4435a2018-02-26 15:22:31 +01005 /* FIXME: need to ensure that CS2 is high when probing for this... */
Jan Kundrát800fcf02017-11-14 13:27:44 +01006};
Jan Kundrát28658c92017-11-13 19:32:04 +01007
8/ {
9 clocks {
10 spi_uart_clk: osc_max14830 {
11 compatible = "fixed-clock";
12 #clock-cells = <0>;
13 clock-frequency = <3686400>;
14 };
15 };
Jan Kundrát8fd3c5d2017-12-16 00:45:57 +010016
17 soc {
Jan Kundrát5f75ea72018-01-15 16:22:32 +010018 internal-regs {
19 sdhci@d8000 {
20 /delete-property/ cd-gpios;
21 broken-cd;
22 };
23 };
Jan Kundrát8fd3c5d2017-12-16 00:45:57 +010024 };
Jan Kundrát7f2ff832018-01-23 19:21:56 +010025
26 gpio_i2c {
27 compatible = "i2c-gpio";
28 sda-gpios = <&gpio0 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
29 scl-gpios = <&gpio0 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
30 i2c-gpio.delay-us = <1>;
31 #address-cells = <1>;
32 #size-cells = <0>;
33 };
34};
35
36&uart1_pins {
37 status = "disabled";
38};
39
40&uart1 {
41 status = "disabled";
Jan Kundrát28658c92017-11-13 19:32:04 +010042};
43
Jan Kundrát23b16292017-11-28 08:56:48 +010044&gpio1 {
Jan Kundrátda5d2332018-01-29 11:11:21 +010045 spi_int {
Jan Kundrát23b16292017-11-28 08:56:48 +010046 /* MPP54: this needs an external pull-up */
Jan Kundrát28658c92017-11-13 19:32:04 +010047 gpio-hog;
Jan Kundrát23b16292017-11-28 08:56:48 +010048 gpios = <22 GPIO_ACTIVE_HIGH>;
Jan Kundrát28658c92017-11-13 19:32:04 +010049 input;
Jan Kundrátda5d2332018-01-29 11:11:21 +010050 line-name = "SPI-INT";
Jan Kundrát4e36c342018-01-25 16:29:24 +010051 };
52};
53
Jan Kundrát28658c92017-11-13 19:32:04 +010054&spi1 {
Jan Kundrátb54b4522018-02-26 16:28:14 +010055 cs-gpios = <0>, <&gpio0 22 GPIO_ACTIVE_HIGH>, <0>, <&gpio0 29 GPIO_ACTIVE_HIGH>;
Jan Kundrát4e36c342018-01-25 16:29:24 +010056
Jan Kundrát28658c92017-11-13 19:32:04 +010057 max14830: max14830@2 {
58 compatible = "maxim,max14830";
59 reg = <2>;
60 clocks = <&spi_uart_clk>;
61 clock-names = "xtal";
Jan Kundrát23b16292017-11-28 08:56:48 +010062 interrupt-parent = <&gpio1>;
63 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
Jan Kundrát28658c92017-11-13 19:32:04 +010064 gpio-controller;
65 #gpio-cells = <2>;
66 spi-max-frequency = <26000000>;
Jan Kundrátddc9a752018-02-08 15:16:15 +010067
68 gpio-line-names =
69 "EVM-GPIO0",
70 "",
71 "",
72 "EVM-LED1",
73 "EVM-GPIO4",
74 "",
75 "",
76 "EVM-LED2",
77 "EVM-GPIO8",
78 "",
79 "",
80 "EVM-LED3",
81 "EVM-GPIO12",
82 "",
83 "",
84 "EVM-LED4"
85 ;
Jan Kundrát28658c92017-11-13 19:32:04 +010086 };
Jan Kundrát4e36c342018-01-25 16:29:24 +010087
88 gpio_spi_chips: gpio@1 {
89 compatible = "microchip,mcp23s17";
90 reg = <1>;
91 interrupt-parent = <&gpio1>;
92 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
93 interrupt-controller;
94 #interrupt-cells = <2>;
95 gpio-controller;
96 #gpio-cells = <2>;
97 microchip,spi-present-mask = <0x06>; /* extra addresses 1 and 2 */
98 microchip,irq-mirror;
Jan Kundrát55e085e2018-02-26 16:30:14 +010099 drive-open-drain;
Jan Kundrát4e36c342018-01-25 16:29:24 +0100100 spi-max-frequency = <10000000>;
Jan Kundrát889f5492018-02-08 15:18:38 +0100101
102 gpio-line-names =
Jan Kundrátf007ca12018-02-08 14:19:35 +0100103 "OCM-HS_out",
104 "OCM-HS_in",
Jan Kundrát889f5492018-02-08 15:18:38 +0100105 "1-A2",
106 "1-A3",
107 "1-A4",
108 "1-A5",
109 "1-A6",
110 "1-A7",
111
112 "1-B0",
113 "1-B1",
114 "1-B2",
115 "1-B3",
116 "1-B4",
117 "1-B5",
118 "1-B6",
119 "1-B7",
120
121 "2-A0",
122 "2-A1",
123 "2-A2",
124 "2-A3",
125 "2-A4",
126 "2-A5",
127 "2-A6",
128 "2-A7",
129
130 "2-B0",
131 "2-B1",
132 "2-B2",
133 "2-B3",
134 "2-B4",
135 "2-B5",
136 "2-B6",
137 "2-B7"
138 ;
Jan Kundrát4e36c342018-01-25 16:29:24 +0100139 };
Jan Kundrátf007ca12018-02-08 14:19:35 +0100140
141 spidev@3 {
142 compatible = "spidev";
143 reg = <3>;
144 spi-max-frequency = <12000000>;
Jan Kundrát60037822018-02-26 16:27:07 +0100145 // NOTE: the HW appears to have troubles with CPOL=1 toggling -> let's use a physical invertor
Jan Kundrátf007ca12018-02-08 14:19:35 +0100146 linux,spi-wdelay = /bits/ 16 <3>;
147 };
Jan Kundrát28658c92017-11-13 19:32:04 +0100148};