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"; |
Jan Kundrát | bb4435a | 2018-02-26 15:22:31 +0100 | [diff] [blame] | 5 | /* FIXME: need to ensure that CS2 is high when probing for this... */ |
Jan Kundrát | 800fcf0 | 2017-11-14 13:27:44 +0100 | [diff] [blame] | 6 | }; |
Jan Kundrát | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 7 | |
| 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át | 8fd3c5d | 2017-12-16 00:45:57 +0100 | [diff] [blame] | 16 | |
| 17 | soc { |
Jan Kundrát | 5f75ea7 | 2018-01-15 16:22:32 +0100 | [diff] [blame] | 18 | internal-regs { |
| 19 | sdhci@d8000 { |
| 20 | /delete-property/ cd-gpios; |
| 21 | broken-cd; |
| 22 | }; |
| 23 | }; |
Jan Kundrát | 8fd3c5d | 2017-12-16 00:45:57 +0100 | [diff] [blame] | 24 | }; |
Jan Kundrát | 7f2ff83 | 2018-01-23 19:21:56 +0100 | [diff] [blame] | 25 | |
| 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át | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 42 | }; |
| 43 | |
Jan Kundrát | 23b1629 | 2017-11-28 08:56:48 +0100 | [diff] [blame] | 44 | &gpio1 { |
Jan Kundrát | da5d233 | 2018-01-29 11:11:21 +0100 | [diff] [blame] | 45 | spi_int { |
Jan Kundrát | 23b1629 | 2017-11-28 08:56:48 +0100 | [diff] [blame] | 46 | /* MPP54: this needs an external pull-up */ |
Jan Kundrát | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 47 | gpio-hog; |
Jan Kundrát | 23b1629 | 2017-11-28 08:56:48 +0100 | [diff] [blame] | 48 | gpios = <22 GPIO_ACTIVE_HIGH>; |
Jan Kundrát | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 49 | input; |
Jan Kundrát | da5d233 | 2018-01-29 11:11:21 +0100 | [diff] [blame] | 50 | line-name = "SPI-INT"; |
Jan Kundrát | 4e36c34 | 2018-01-25 16:29:24 +0100 | [diff] [blame] | 51 | }; |
| 52 | }; |
| 53 | |
Jan Kundrát | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 54 | &spi1 { |
Jan Kundrát | b54b452 | 2018-02-26 16:28:14 +0100 | [diff] [blame] | 55 | cs-gpios = <0>, <&gpio0 22 GPIO_ACTIVE_HIGH>, <0>, <&gpio0 29 GPIO_ACTIVE_HIGH>; |
Jan Kundrát | 4e36c34 | 2018-01-25 16:29:24 +0100 | [diff] [blame] | 56 | |
Jan Kundrát | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 57 | max14830: max14830@2 { |
| 58 | compatible = "maxim,max14830"; |
| 59 | reg = <2>; |
| 60 | clocks = <&spi_uart_clk>; |
| 61 | clock-names = "xtal"; |
Jan Kundrát | 23b1629 | 2017-11-28 08:56:48 +0100 | [diff] [blame] | 62 | interrupt-parent = <&gpio1>; |
| 63 | interrupts = <22 IRQ_TYPE_LEVEL_LOW>; |
Jan Kundrát | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 64 | gpio-controller; |
| 65 | #gpio-cells = <2>; |
| 66 | spi-max-frequency = <26000000>; |
Jan Kundrát | ddc9a75 | 2018-02-08 15:16:15 +0100 | [diff] [blame] | 67 | |
| 68 | gpio-line-names = |
| 69 | "EVM-GPIO0", |
| 70 | "", |
| 71 | "", |
| 72 | "EVM-LED1", |
| 73 | "EVM-GPIO4", |
| 74 | "", |
| 75 | "", |
| 76 | "EVM-LED2", |
| 77 | "EVM-GPIO8", |
| 78 | "", |
| 79 | "", |
| 80 | "EVM-LED3", |
| 81 | "EVM-GPIO12", |
| 82 | "", |
| 83 | "", |
| 84 | "EVM-LED4" |
| 85 | ; |
Jan Kundrát | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 86 | }; |
Jan Kundrát | 4e36c34 | 2018-01-25 16:29:24 +0100 | [diff] [blame] | 87 | |
| 88 | gpio_spi_chips: gpio@1 { |
| 89 | compatible = "microchip,mcp23s17"; |
| 90 | reg = <1>; |
| 91 | interrupt-parent = <&gpio1>; |
| 92 | interrupts = <22 IRQ_TYPE_LEVEL_LOW>; |
| 93 | interrupt-controller; |
| 94 | #interrupt-cells = <2>; |
| 95 | gpio-controller; |
| 96 | #gpio-cells = <2>; |
| 97 | microchip,spi-present-mask = <0x06>; /* extra addresses 1 and 2 */ |
| 98 | microchip,irq-mirror; |
Jan Kundrát | 55e085e | 2018-02-26 16:30:14 +0100 | [diff] [blame] | 99 | drive-open-drain; |
Jan Kundrát | 4e36c34 | 2018-01-25 16:29:24 +0100 | [diff] [blame] | 100 | spi-max-frequency = <10000000>; |
Jan Kundrát | 889f549 | 2018-02-08 15:18:38 +0100 | [diff] [blame] | 101 | |
| 102 | gpio-line-names = |
Jan Kundrát | f007ca1 | 2018-02-08 14:19:35 +0100 | [diff] [blame] | 103 | "OCM-HS_out", |
| 104 | "OCM-HS_in", |
Jan Kundrát | 889f549 | 2018-02-08 15:18:38 +0100 | [diff] [blame] | 105 | "1-A2", |
| 106 | "1-A3", |
| 107 | "1-A4", |
| 108 | "1-A5", |
| 109 | "1-A6", |
| 110 | "1-A7", |
| 111 | |
| 112 | "1-B0", |
| 113 | "1-B1", |
| 114 | "1-B2", |
| 115 | "1-B3", |
| 116 | "1-B4", |
| 117 | "1-B5", |
| 118 | "1-B6", |
| 119 | "1-B7", |
| 120 | |
| 121 | "2-A0", |
| 122 | "2-A1", |
| 123 | "2-A2", |
| 124 | "2-A3", |
| 125 | "2-A4", |
| 126 | "2-A5", |
| 127 | "2-A6", |
| 128 | "2-A7", |
| 129 | |
| 130 | "2-B0", |
| 131 | "2-B1", |
| 132 | "2-B2", |
| 133 | "2-B3", |
| 134 | "2-B4", |
| 135 | "2-B5", |
| 136 | "2-B6", |
| 137 | "2-B7" |
| 138 | ; |
Jan Kundrát | 4e36c34 | 2018-01-25 16:29:24 +0100 | [diff] [blame] | 139 | }; |
Jan Kundrát | f007ca1 | 2018-02-08 14:19:35 +0100 | [diff] [blame] | 140 | |
| 141 | spidev@3 { |
| 142 | compatible = "spidev"; |
| 143 | reg = <3>; |
| 144 | spi-max-frequency = <12000000>; |
Jan Kundrát | 6003782 | 2018-02-26 16:27:07 +0100 | [diff] [blame] | 145 | // NOTE: the HW appears to have troubles with CPOL=1 toggling -> let's use a physical invertor |
Jan Kundrát | f007ca1 | 2018-02-08 14:19:35 +0100 | [diff] [blame] | 146 | linux,spi-wdelay = /bits/ 16 <3>; |
| 147 | }; |
Jan Kundrát | 28658c9 | 2017-11-13 19:32:04 +0100 | [diff] [blame] | 148 | }; |