Jan Kundrát | 90bd7a0 | 2017-11-14 17:40:37 +0100 | [diff] [blame] | 1 | #include "armada-388-clearfog-base.dts" |
Jan Kundrát | 800fcf0 | 2017-11-14 13:27:44 +0100 | [diff] [blame] | 2 | |
| 3 | &w25q32 { |
| 4 | status = "okay"; |
| 5 | }; |
Jan Kundrát | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 6 | |
| 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át | 9050b25 | 2017-12-16 00:45:19 +0100 | [diff] [blame^] | 49 | interrupts = <25 IRQ_TYPE_LEVEL_LOW>; |
Jan Kundrát | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 50 | pinctrl-0 = <&hack_pins>; |
| 51 | pinctrl-names = "default"; |
| 52 | gpio-controller; |
| 53 | #gpio-cells = <2>; |
| 54 | spi-max-frequency = <26000000>; |
| 55 | }; |
| 56 | }; |