Sebastian Hesselbarth | 1f5e6c6 | 2012-08-15 19:07:35 +0200 | [diff] [blame] | 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"; |
Sebastian Hesselbarth | e35e40c | 2012-12-27 23:21:10 +0100 | [diff] [blame] | 20 | pinctrl-0 = <&pmx_gpio_18>; |
| 21 | pinctrl-names = "default"; |
| 22 | |
Sebastian Hesselbarth | 1f5e6c6 | 2012-08-15 19:07:35 +0200 | [diff] [blame] | 23 | power { |
| 24 | label = "Power"; |
| 25 | gpios = <&gpio0 18 1>; |
| 26 | linux,default-trigger = "default-on"; |
| 27 | }; |
| 28 | }; |
Sebastian Hesselbarth | 41e364b | 2012-12-27 23:21:59 +0100 | [diff] [blame] | 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 | }; |
| 46 | }; |
Sebastian Hesselbarth | 53e9cb1 | 2013-04-30 19:24:35 +0200 | [diff] [blame] | 47 | |
| 48 | clocks { |
| 49 | /* 25MHz reference crystal */ |
| 50 | ref25: oscillator { |
| 51 | compatible = "fixed-clock"; |
| 52 | #clock-cells = <0>; |
| 53 | clock-frequency = <25000000>; |
| 54 | }; |
| 55 | }; |
Sebastian Hesselbarth | 1f5e6c6 | 2012-08-15 19:07:35 +0200 | [diff] [blame] | 56 | }; |
| 57 | |
| 58 | &uart0 { status = "okay"; }; |
Sebastian Hesselbarth | 1f5e6c6 | 2012-08-15 19:07:35 +0200 | [diff] [blame] | 59 | &sata0 { status = "okay"; }; |
Sebastian Hesselbarth | 4c3f6b8 | 2013-07-02 13:00:18 +0200 | [diff] [blame] | 60 | &mdio { status = "okay"; }; |
| 61 | ð { status = "okay"; }; |
| 62 | |
| 63 | ðphy { |
| 64 | compatible = "marvell,88e1310"; |
| 65 | reg = <1>; |
| 66 | }; |
Sebastian Hesselbarth | 53e9cb1 | 2013-04-30 19:24:35 +0200 | [diff] [blame] | 67 | |
| 68 | &i2c0 { |
| 69 | status = "okay"; |
| 70 | clock-frequency = <100000>; |
| 71 | |
| 72 | si5351: clock-generator { |
| 73 | compatible = "silabs,si5351a-msop"; |
| 74 | reg = <0x60>; |
| 75 | #address-cells = <1>; |
| 76 | #size-cells = <0>; |
| 77 | #clock-cells = <1>; |
| 78 | |
| 79 | /* connect xtal input to 25MHz reference */ |
| 80 | clocks = <&ref25>; |
| 81 | |
| 82 | /* connect xtal input as source of pll0 and pll1 */ |
| 83 | silabs,pll-source = <0 0>, <1 0>; |
| 84 | |
| 85 | clkout0 { |
| 86 | reg = <0>; |
| 87 | silabs,drive-strength = <8>; |
| 88 | silabs,multisynth-source = <0>; |
| 89 | silabs,clock-source = <0>; |
| 90 | silabs,pll-master; |
| 91 | }; |
| 92 | |
| 93 | clkout1 { |
| 94 | reg = <1>; |
| 95 | silabs,drive-strength = <8>; |
| 96 | silabs,multisynth-source = <1>; |
| 97 | silabs,clock-source = <0>; |
| 98 | silabs,pll-master; |
| 99 | }; |
| 100 | |
| 101 | clkout2 { |
| 102 | reg = <2>; |
| 103 | silabs,multisynth-source = <1>; |
| 104 | silabs,clock-source = <0>; |
| 105 | }; |
| 106 | }; |
| 107 | }; |
Sebastian Hesselbarth | 1f5e6c6 | 2012-08-15 19:07:35 +0200 | [diff] [blame] | 108 | |
Sebastian Hesselbarth | 9e1c96e | 2012-12-18 01:24:29 +0100 | [diff] [blame] | 109 | &sdio0 { |
| 110 | status = "okay"; |
| 111 | /* sdio0 card detect is connected to wrong pin on CuBox */ |
| 112 | cd-gpios = <&gpio0 12 1>; |
| 113 | }; |
| 114 | |
Sebastian Hesselbarth | 1f5e6c6 | 2012-08-15 19:07:35 +0200 | [diff] [blame] | 115 | &spi0 { |
| 116 | status = "okay"; |
| 117 | |
| 118 | /* spi0.0: 4M Flash Winbond W25Q32BV */ |
| 119 | spi-flash@0 { |
| 120 | compatible = "st,w25q32"; |
| 121 | spi-max-frequency = <20000000>; |
| 122 | reg = <0>; |
| 123 | }; |
| 124 | }; |
Sebastian Hesselbarth | e7cd8f8 | 2012-11-19 10:39:56 +0100 | [diff] [blame] | 125 | |
| 126 | &pinctrl { |
Sebastian Hesselbarth | 41e364b | 2012-12-27 23:21:59 +0100 | [diff] [blame] | 127 | pinctrl-0 = <&pmx_gpio_1 &pmx_gpio_12>; |
Sebastian Hesselbarth | e7cd8f8 | 2012-11-19 10:39:56 +0100 | [diff] [blame] | 128 | pinctrl-names = "default"; |
| 129 | |
Sebastian Hesselbarth | 41e364b | 2012-12-27 23:21:59 +0100 | [diff] [blame] | 130 | pmx_gpio_1: pmx-gpio-1 { |
| 131 | marvell,pins = "mpp1"; |
| 132 | marvell,function = "gpio"; |
| 133 | }; |
| 134 | |
Sebastian Hesselbarth | 9e1c96e | 2012-12-18 01:24:29 +0100 | [diff] [blame] | 135 | pmx_gpio_12: pmx-gpio-12 { |
| 136 | marvell,pins = "mpp12"; |
| 137 | marvell,function = "gpio"; |
| 138 | }; |
| 139 | |
Sebastian Hesselbarth | e7cd8f8 | 2012-11-19 10:39:56 +0100 | [diff] [blame] | 140 | pmx_gpio_18: pmx-gpio-18 { |
| 141 | marvell,pins = "mpp18"; |
| 142 | marvell,function = "gpio"; |
| 143 | }; |
| 144 | }; |