blob: 028b2e7885eca62799a67ba88da9cf8a506dc260 [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";
5};
Jan Kundrát28658c92017-11-13 19:32:04 +01006
7/ {
8 clocks {
9 spi_uart_clk: osc_max14830 {
10 compatible = "fixed-clock";
11 #clock-cells = <0>;
12 clock-frequency = <3686400>;
13 };
14 };
15};
16
17&uart1_pins {
18 status = "disabled";
19};
20
21&uart1 {
22 status = "disabled";
23};
24
25&pinctrl {
26 hack_pins: hack_pins {
27 marvell,pins = "mpp25";
28 marvell,function = "gpio";
29 };
30};
31
32&gpio0 {
33 mikrobus_uart_tx {
34 gpio-hog;
35 /* Mark this as "active high", i.e. "1 is 1", so that the interrupts act on the falling edge */
36 gpios = <25 GPIO_ACTIVE_HIGH>;
37 input;
38 line-name = "SPI-int";
39 };
40};
41
42&spi1 {
43 max14830: max14830@2 {
44 compatible = "maxim,max14830";
45 reg = <2>;
46 clocks = <&spi_uart_clk>;
47 clock-names = "xtal";
48 interrupt-parent = <&gpio0>;
Jan Kundrát9050b252017-12-16 00:45:19 +010049 interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
Jan Kundrát28658c92017-11-13 19:32:04 +010050 pinctrl-0 = <&hack_pins>;
51 pinctrl-names = "default";
52 gpio-controller;
53 #gpio-cells = <2>;
54 spi-max-frequency = <26000000>;
55 };
56};