Gregory CLEMENT | e3e37bc | 2012-10-27 18:22:45 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree file for Globalscale Mirabox |
| 3 | * |
| 4 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 5 | * |
| 6 | * This file is licensed under the terms of the GNU General Public |
| 7 | * License version 2. This program is licensed "as is" without any |
| 8 | * warranty of any kind, whether express or implied. |
| 9 | */ |
| 10 | |
| 11 | /dts-v1/; |
| 12 | /include/ "armada-370.dtsi" |
| 13 | |
| 14 | / { |
| 15 | model = "Globalscale Mirabox"; |
| 16 | compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp"; |
| 17 | |
| 18 | chosen { |
| 19 | bootargs = "console=ttyS0,115200 earlyprintk"; |
| 20 | }; |
| 21 | |
| 22 | memory { |
| 23 | device_type = "memory"; |
| 24 | reg = <0x00000000 0x20000000>; /* 512 MB */ |
| 25 | }; |
| 26 | |
| 27 | soc { |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 28 | internal-regs { |
| 29 | serial@12000 { |
| 30 | clock-frequency = <200000000>; |
| 31 | status = "okay"; |
Ryan Press | 51ab3fb | 2013-03-28 19:10:24 -0700 | [diff] [blame] | 32 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 33 | timer@20300 { |
| 34 | clock-frequency = <600000000>; |
Thomas Petazzoni | 488d1a6 | 2013-04-09 23:06:37 +0200 | [diff] [blame] | 35 | status = "okay"; |
| 36 | }; |
| 37 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 38 | pinctrl { |
| 39 | pwr_led_pin: pwr-led-pin { |
| 40 | marvell,pins = "mpp63"; |
| 41 | marvell,function = "gpo"; |
| 42 | }; |
| 43 | |
| 44 | stat_led_pins: stat-led-pins { |
| 45 | marvell,pins = "mpp64", "mpp65"; |
| 46 | marvell,function = "gpio"; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | gpio_leds { |
| 51 | compatible = "gpio-leds"; |
| 52 | pinctrl-names = "default"; |
| 53 | pinctrl-0 = <&pwr_led_pin &stat_led_pins>; |
| 54 | |
| 55 | green_pwr_led { |
| 56 | label = "mirabox:green:pwr"; |
| 57 | gpios = <&gpio1 31 1>; |
| 58 | linux,default-trigger = "heartbeat"; |
| 59 | }; |
| 60 | |
| 61 | blue_stat_led { |
| 62 | label = "mirabox:blue:stat"; |
| 63 | gpios = <&gpio2 0 1>; |
| 64 | linux,default-trigger = "cpu0"; |
| 65 | }; |
| 66 | |
| 67 | green_stat_led { |
| 68 | label = "mirabox:green:stat"; |
| 69 | gpios = <&gpio2 1 1>; |
| 70 | default-state = "off"; |
| 71 | }; |
| 72 | }; |
| 73 | |
| 74 | mdio { |
| 75 | phy0: ethernet-phy@0 { |
| 76 | reg = <0>; |
| 77 | }; |
| 78 | |
| 79 | phy1: ethernet-phy@1 { |
| 80 | reg = <1>; |
| 81 | }; |
| 82 | }; |
| 83 | ethernet@70000 { |
Thomas Petazzoni | 488d1a6 | 2013-04-09 23:06:37 +0200 | [diff] [blame] | 84 | status = "okay"; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 85 | phy = <&phy0>; |
| 86 | phy-mode = "rgmii-id"; |
| 87 | }; |
| 88 | ethernet@74000 { |
| 89 | status = "okay"; |
| 90 | phy = <&phy1>; |
| 91 | phy-mode = "rgmii-id"; |
| 92 | }; |
| 93 | |
| 94 | mvsdio@d4000 { |
| 95 | pinctrl-0 = <&sdio_pins3>; |
| 96 | pinctrl-names = "default"; |
| 97 | status = "okay"; |
| 98 | /* |
| 99 | * No CD or WP GPIOs: SDIO interface used for |
| 100 | * Wifi/Bluetooth chip |
| 101 | */ |
Simon Baatz | d87b5fb | 2013-05-13 23:18:58 +0200 | [diff] [blame] | 102 | broken-cd; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 103 | }; |
| 104 | |
| 105 | usb@50000 { |
| 106 | status = "okay"; |
| 107 | }; |
| 108 | |
| 109 | usb@51000 { |
| 110 | status = "okay"; |
| 111 | }; |
| 112 | |
| 113 | i2c@11000 { |
| 114 | status = "okay"; |
| 115 | clock-frequency = <100000>; |
| 116 | pca9505: pca9505@25 { |
| 117 | compatible = "nxp,pca9505"; |
| 118 | gpio-controller; |
| 119 | #gpio-cells = <2>; |
| 120 | reg = <0x25>; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | pcie-controller { |
| 125 | status = "okay"; |
| 126 | |
| 127 | /* Internal mini-PCIe connector */ |
| 128 | pcie@1,0 { |
| 129 | /* Port 0, Lane 0 */ |
| 130 | status = "okay"; |
| 131 | }; |
| 132 | |
| 133 | /* Connected on the PCB to a USB 3.0 XHCI controller */ |
| 134 | pcie@2,0 { |
| 135 | /* Port 1, Lane 0 */ |
| 136 | status = "okay"; |
| 137 | }; |
Thomas Petazzoni | 488d1a6 | 2013-04-09 23:06:37 +0200 | [diff] [blame] | 138 | }; |
| 139 | }; |
Gregory CLEMENT | e3e37bc | 2012-10-27 18:22:45 +0200 | [diff] [blame] | 140 | }; |
| 141 | }; |