]> Pileus Git - ~andy/linux/blob - arch/arm/boot/dts/dove-cubox.dts
ARM: dove: add common pinmux functions to DT
[~andy/linux] / arch / arm / boot / dts / dove-cubox.dts
1 /dts-v1/;
2
3 /include/ "dove.dtsi"
4
5 / {
6         model = "SolidRun CuBox";
7         compatible = "solidrun,cubox", "marvell,dove";
8
9         memory {
10                 device_type = "memory";
11                 reg = <0x00000000 0x40000000>;
12         };
13
14         chosen {
15                 bootargs = "console=ttyS0,115200n8 earlyprintk";
16         };
17
18         leds {
19                 compatible = "gpio-leds";
20                 pinctrl-0 = <&pmx_gpio_18>;
21                 pinctrl-names = "default";
22
23                 power {
24                         label = "Power";
25                         gpios = <&gpio0 18 1>;
26                         linux,default-trigger = "default-on";
27                 };
28         };
29
30         regulators {
31                 compatible = "simple-bus";
32                 #address-cells = <1>;
33                 #size-cells = <0>;
34
35                 usb_power: regulator@1 {
36                         compatible = "regulator-fixed";
37                         reg = <1>;
38                         regulator-name = "USB Power";
39                         regulator-min-microvolt = <5000000>;
40                         regulator-max-microvolt = <5000000>;
41                         enable-active-high;
42                         regulator-always-on;
43                         regulator-boot-on;
44                         gpio = <&gpio0 1 0>;
45                         pinctrl-0 = <&pmx_gpio_1>;
46                         pinctrl-names = "default";
47                 };
48         };
49
50         clocks {
51                 /* 25MHz reference crystal */
52                 ref25: oscillator {
53                         compatible = "fixed-clock";
54                         #clock-cells = <0>;
55                         clock-frequency = <25000000>;
56                 };
57         };
58 };
59
60 &uart0 { status = "okay"; };
61 &sata0 { status = "okay"; };
62 &mdio { status = "okay"; };
63 &eth { status = "okay"; };
64
65 &ethphy {
66         compatible = "marvell,88e1310";
67         reg = <1>;
68 };
69
70 &i2c0 {
71         status = "okay";
72         clock-frequency = <100000>;
73
74         si5351: clock-generator {
75                 compatible = "silabs,si5351a-msop";
76                 reg = <0x60>;
77                 #address-cells = <1>;
78                 #size-cells = <0>;
79                 #clock-cells = <1>;
80
81                 /* connect xtal input to 25MHz reference */
82                 clocks = <&ref25>;
83
84                 /* connect xtal input as source of pll0 and pll1 */
85                 silabs,pll-source = <0 0>, <1 0>;
86
87                 clkout0 {
88                         reg = <0>;
89                         silabs,drive-strength = <8>;
90                         silabs,multisynth-source = <0>;
91                         silabs,clock-source = <0>;
92                         silabs,pll-master;
93                 };
94
95                 clkout1 {
96                         reg = <1>;
97                         silabs,drive-strength = <8>;
98                         silabs,multisynth-source = <1>;
99                         silabs,clock-source = <0>;
100                         silabs,pll-master;
101                 };
102
103                 clkout2 {
104                         reg = <2>;
105                         silabs,multisynth-source = <1>;
106                         silabs,clock-source = <0>;
107                 };
108         };
109 };
110
111 &sdio0 {
112         status = "okay";
113         /* sdio0 card detect is connected to wrong pin on CuBox */
114         cd-gpios = <&gpio0 12 1>;
115         pinctrl-0 = <&pmx_sdio0 &pmx_gpio_12>;
116 };
117
118 &spi0 {
119         status = "okay";
120
121         /* spi0.0: 4M Flash Winbond W25Q32BV */
122         spi-flash@0 {
123                 compatible = "st,w25q32";
124                 spi-max-frequency = <20000000>;
125                 reg = <0>;
126         };
127 };