blob: 8e4794aa488731de83bbe862d8da471b1541cc0e [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átebb7a0c2018-01-30 14:38:49 +010044&gpio0 {
45 spi_reset {
46 /* MPP29: defaults to 0 at boot time */
47 gpio-hog;
48 gpios = <29 GPIO_ACTIVE_LOW>;
49 output-low;
50 line-name = "SPI-reset";
51 };
52};
53
Jan Kundrát23b16292017-11-28 08:56:48 +010054&gpio1 {
Jan Kundrátda5d2332018-01-29 11:11:21 +010055 spi_int {
Jan Kundrát23b16292017-11-28 08:56:48 +010056 /* MPP54: this needs an external pull-up */
Jan Kundrát28658c92017-11-13 19:32:04 +010057 gpio-hog;
Jan Kundrát23b16292017-11-28 08:56:48 +010058 gpios = <22 GPIO_ACTIVE_HIGH>;
Jan Kundrát28658c92017-11-13 19:32:04 +010059 input;
Jan Kundrátda5d2332018-01-29 11:11:21 +010060 line-name = "SPI-INT";
Jan Kundrát4e36c342018-01-25 16:29:24 +010061 };
62};
63
Jan Kundrát28658c92017-11-13 19:32:04 +010064&spi1 {
Jan Kundrátf007ca12018-02-08 14:19:35 +010065 cs-gpios = <0>, <&gpio0 22 GPIO_ACTIVE_HIGH>, <0>, <&gpio1 16 GPIO_ACTIVE_HIGH>;
Jan Kundrát4e36c342018-01-25 16:29:24 +010066
Jan Kundrát28658c92017-11-13 19:32:04 +010067 max14830: max14830@2 {
68 compatible = "maxim,max14830";
69 reg = <2>;
70 clocks = <&spi_uart_clk>;
71 clock-names = "xtal";
Jan Kundrát23b16292017-11-28 08:56:48 +010072 interrupt-parent = <&gpio1>;
73 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
Jan Kundrát28658c92017-11-13 19:32:04 +010074 gpio-controller;
75 #gpio-cells = <2>;
76 spi-max-frequency = <26000000>;
Jan Kundrátddc9a752018-02-08 15:16:15 +010077
78 gpio-line-names =
79 "EVM-GPIO0",
80 "",
81 "",
82 "EVM-LED1",
83 "EVM-GPIO4",
84 "",
85 "",
86 "EVM-LED2",
87 "EVM-GPIO8",
88 "",
89 "",
90 "EVM-LED3",
91 "EVM-GPIO12",
92 "",
93 "",
94 "EVM-LED4"
95 ;
Jan Kundrát28658c92017-11-13 19:32:04 +010096 };
Jan Kundrát4e36c342018-01-25 16:29:24 +010097
98 gpio_spi_chips: gpio@1 {
99 compatible = "microchip,mcp23s17";
100 reg = <1>;
101 interrupt-parent = <&gpio1>;
102 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
103 interrupt-controller;
104 #interrupt-cells = <2>;
105 gpio-controller;
106 #gpio-cells = <2>;
107 microchip,spi-present-mask = <0x06>; /* extra addresses 1 and 2 */
108 microchip,irq-mirror;
109 microchip,irq-open-drain;
110 spi-max-frequency = <10000000>;
Jan Kundrát889f5492018-02-08 15:18:38 +0100111
112 gpio-line-names =
Jan Kundrátf007ca12018-02-08 14:19:35 +0100113 "OCM-HS_out",
114 "OCM-HS_in",
Jan Kundrát889f5492018-02-08 15:18:38 +0100115 "1-A2",
116 "1-A3",
117 "1-A4",
118 "1-A5",
119 "1-A6",
120 "1-A7",
121
122 "1-B0",
123 "1-B1",
124 "1-B2",
125 "1-B3",
126 "1-B4",
127 "1-B5",
128 "1-B6",
129 "1-B7",
130
131 "2-A0",
132 "2-A1",
133 "2-A2",
134 "2-A3",
135 "2-A4",
136 "2-A5",
137 "2-A6",
138 "2-A7",
139
140 "2-B0",
141 "2-B1",
142 "2-B2",
143 "2-B3",
144 "2-B4",
145 "2-B5",
146 "2-B6",
147 "2-B7"
148 ;
Jan Kundrát4e36c342018-01-25 16:29:24 +0100149 };
Jan Kundrátf007ca12018-02-08 14:19:35 +0100150
151 spidev@3 {
152 compatible = "spidev";
153 reg = <3>;
154 spi-max-frequency = <12000000>;
155 spi-cpol;
156 linux,spi-wdelay = /bits/ 16 <3>;
157 };
Jan Kundrát28658c92017-11-13 19:32:04 +0100158};