blob: 260ab3ba81aed1cfc127eb7f0ff3e528a2de9c76 [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át23339622017-12-22 20:05:35 +01005 /* The chip itself is rated up to 50MHz for regular reads, 60MHz for
6 * all other transactions, but somehow the mere presence of the
7 * MAX14830 EV board breaks these transfers. Changing the speed all the
8 * way down to 100kHz doesn't help. */
Jan Kundrát800fcf02017-11-14 13:27:44 +01009};
Jan Kundrát28658c92017-11-13 19:32:04 +010010
11/ {
12 clocks {
13 spi_uart_clk: osc_max14830 {
14 compatible = "fixed-clock";
15 #clock-cells = <0>;
16 clock-frequency = <3686400>;
17 };
18 };
Jan Kundrát8fd3c5d2017-12-16 00:45:57 +010019
20 soc {
Jan Kundrát5f75ea72018-01-15 16:22:32 +010021 internal-regs {
22 sdhci@d8000 {
23 /delete-property/ cd-gpios;
24 broken-cd;
25 };
26 };
Jan Kundrát8fd3c5d2017-12-16 00:45:57 +010027 };
Jan Kundrát7f2ff832018-01-23 19:21:56 +010028
29 gpio_i2c {
30 compatible = "i2c-gpio";
31 sda-gpios = <&gpio0 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
32 scl-gpios = <&gpio0 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
33 i2c-gpio.delay-us = <1>;
34 #address-cells = <1>;
35 #size-cells = <0>;
36 };
37};
38
39&uart1_pins {
40 status = "disabled";
41};
42
43&uart1 {
44 status = "disabled";
Jan Kundrát28658c92017-11-13 19:32:04 +010045};
46
Jan Kundrát23b16292017-11-28 08:56:48 +010047&gpio1 {
Jan Kundrátda5d2332018-01-29 11:11:21 +010048 spi_int {
Jan Kundrát23b16292017-11-28 08:56:48 +010049 /* MPP54: this needs an external pull-up */
Jan Kundrát28658c92017-11-13 19:32:04 +010050 gpio-hog;
Jan Kundrát23b16292017-11-28 08:56:48 +010051 gpios = <22 GPIO_ACTIVE_HIGH>;
Jan Kundrát28658c92017-11-13 19:32:04 +010052 input;
Jan Kundrátda5d2332018-01-29 11:11:21 +010053 line-name = "SPI-INT";
Jan Kundrát4e36c342018-01-25 16:29:24 +010054 };
55};
56
57&gpio0 {
58 gpio_cs {
59 gpio-hog;
60 gpios = <22 GPIO_ACTIVE_HIGH>;
61 output-high;
62 line-name = "MCP23S17-CS";
Jan Kundrát28658c92017-11-13 19:32:04 +010063 };
64};
65
66&spi1 {
Jan Kundrát4e36c342018-01-25 16:29:24 +010067 cs-gpios = <0>, <&gpio0 22 GPIO_ACTIVE_HIGH>, <0>;
68
Jan Kundrát28658c92017-11-13 19:32:04 +010069 max14830: max14830@2 {
70 compatible = "maxim,max14830";
71 reg = <2>;
72 clocks = <&spi_uart_clk>;
73 clock-names = "xtal";
Jan Kundrát23b16292017-11-28 08:56:48 +010074 interrupt-parent = <&gpio1>;
75 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
Jan Kundrát28658c92017-11-13 19:32:04 +010076 gpio-controller;
77 #gpio-cells = <2>;
78 spi-max-frequency = <26000000>;
79 };
Jan Kundrát4e36c342018-01-25 16:29:24 +010080
81 gpio_spi_chips: gpio@1 {
82 compatible = "microchip,mcp23s17";
83 reg = <1>;
84 interrupt-parent = <&gpio1>;
85 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
86 interrupt-controller;
87 #interrupt-cells = <2>;
88 gpio-controller;
89 #gpio-cells = <2>;
90 microchip,spi-present-mask = <0x06>; /* extra addresses 1 and 2 */
91 microchip,irq-mirror;
92 microchip,irq-open-drain;
93 spi-max-frequency = <10000000>;
94 };
Jan Kundrát28658c92017-11-13 19:32:04 +010095};