blob: 983773cdd2aadf56a99469790133e4ce0f7c56a1 [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 {
21 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
22 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
23 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
24 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
25 MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000
26 /* all above is from the upstream DTS */
27
28 /* maybe-default mappings for SPI1 CS0 from the datasheet */
29 MBUS_ID(0x01, 0x1a) 0 0xd4000000 0x4000000
30 /* SPI1 CS1 */
31 MBUS_ID(0x01, 0x5a) 0 0xd8000000 0x4000000
32 /* SPI1 CS2 */
33 MBUS_ID(0x01, 0x9a) 0 0xd0000000 0x4000000
34 >;
Jan Kundrát5f75ea72018-01-15 16:22:32 +010035
36 internal-regs {
37 sdhci@d8000 {
38 /delete-property/ cd-gpios;
39 broken-cd;
40 };
41 };
Jan Kundrát8fd3c5d2017-12-16 00:45:57 +010042 };
Jan Kundrát7f2ff832018-01-23 19:21:56 +010043
44 gpio_i2c {
45 compatible = "i2c-gpio";
46 sda-gpios = <&gpio0 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
47 scl-gpios = <&gpio0 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
48 i2c-gpio.delay-us = <1>;
49 #address-cells = <1>;
50 #size-cells = <0>;
51 };
52};
53
54&uart1_pins {
55 status = "disabled";
56};
57
58&uart1 {
59 status = "disabled";
Jan Kundrát28658c92017-11-13 19:32:04 +010060};
61
Jan Kundrát23b16292017-11-28 08:56:48 +010062&gpio1 {
63 mikrobus_pwm {
64 /* MPP54: this needs an external pull-up */
Jan Kundrát28658c92017-11-13 19:32:04 +010065 gpio-hog;
Jan Kundrát23b16292017-11-28 08:56:48 +010066 gpios = <22 GPIO_ACTIVE_HIGH>;
Jan Kundrát28658c92017-11-13 19:32:04 +010067 input;
Jan Kundrát23b16292017-11-28 08:56:48 +010068 line-name = "MAX14830-int";
Jan Kundrát28658c92017-11-13 19:32:04 +010069 };
70};
71
72&spi1 {
Jan Kundrát8fd3c5d2017-12-16 00:45:57 +010073 reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50> /* control */
74 , <MBUS_ID(0x01, 0x1a) 0 0xffffffff> /* CS0 */
75 , <MBUS_ID(0x01, 0x5a) 0 0xffffffff> /* CS1 */
76 , <MBUS_ID(0x01, 0x9a) 0 0xffffffff> /* CS2 */
77 , <MBUS_ID(0x01, 0xda) 0 0xffffffff> /* CS3 */
78 ;
79
Jan Kundrát28658c92017-11-13 19:32:04 +010080 max14830: max14830@2 {
81 compatible = "maxim,max14830";
82 reg = <2>;
83 clocks = <&spi_uart_clk>;
84 clock-names = "xtal";
Jan Kundrát23b16292017-11-28 08:56:48 +010085 interrupt-parent = <&gpio1>;
86 interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
Jan Kundrát28658c92017-11-13 19:32:04 +010087 gpio-controller;
88 #gpio-cells = <2>;
89 spi-max-frequency = <26000000>;
90 };
91};