blob: 3095880b95c4b4dfd0b7d588dab756964c8e0b28 [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 };
Jan Kundrát8fd3c5d2017-12-16 00:45:57 +010015
16 soc {
17 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
18 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
19 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
20 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
21 MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000
22 /* all above is from the upstream DTS */
23
24 /* maybe-default mappings for SPI1 CS0 from the datasheet */
25 MBUS_ID(0x01, 0x1a) 0 0xd4000000 0x4000000
26 /* SPI1 CS1 */
27 MBUS_ID(0x01, 0x5a) 0 0xd8000000 0x4000000
28 /* SPI1 CS2 */
29 MBUS_ID(0x01, 0x9a) 0 0xd0000000 0x4000000
30 >;
31 };
Jan Kundrát28658c92017-11-13 19:32:04 +010032};
33
34&uart1_pins {
35 status = "disabled";
36};
37
38&uart1 {
39 status = "disabled";
40};
41
42&pinctrl {
43 hack_pins: hack_pins {
44 marvell,pins = "mpp25";
45 marvell,function = "gpio";
46 };
47};
48
49&gpio0 {
50 mikrobus_uart_tx {
51 gpio-hog;
52 /* Mark this as "active high", i.e. "1 is 1", so that the interrupts act on the falling edge */
53 gpios = <25 GPIO_ACTIVE_HIGH>;
54 input;
55 line-name = "SPI-int";
56 };
57};
58
59&spi1 {
Jan Kundrát8fd3c5d2017-12-16 00:45:57 +010060 reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50> /* control */
61 , <MBUS_ID(0x01, 0x1a) 0 0xffffffff> /* CS0 */
62 , <MBUS_ID(0x01, 0x5a) 0 0xffffffff> /* CS1 */
63 , <MBUS_ID(0x01, 0x9a) 0 0xffffffff> /* CS2 */
64 , <MBUS_ID(0x01, 0xda) 0 0xffffffff> /* CS3 */
65 ;
66
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";
72 interrupt-parent = <&gpio0>;
Jan Kundrát9050b252017-12-16 00:45:19 +010073 interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
Jan Kundrát28658c92017-11-13 19:32:04 +010074 pinctrl-0 = <&hack_pins>;
75 pinctrl-names = "default";
76 gpio-controller;
77 #gpio-cells = <2>;
78 spi-max-frequency = <26000000>;
79 };
80};