Jonas Jensen | 448e7ed | 2013-12-18 13:58:46 +0100 | [diff] [blame^] | 1 | /* moxart-uc7112lx.dts - Device Tree file for MOXA UC-7112-LX |
| 2 | * |
| 3 | * Copyright (C) 2013 Jonas Jensen <jonas.jensen@gmail.com> |
| 4 | * |
| 5 | * Licensed under GPLv2 or later. |
| 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | /include/ "moxart.dtsi" |
| 10 | |
| 11 | / { |
| 12 | model = "MOXA UC-7112-LX"; |
| 13 | compatible = "moxa,moxart-uc-7112-lx", "moxa,moxart"; |
| 14 | |
| 15 | memory { |
| 16 | device_type = "memory"; |
| 17 | reg = <0x0 0x2000000>; |
| 18 | }; |
| 19 | |
| 20 | flash@80000000,0 { |
| 21 | compatible = "numonyx,js28f128", "cfi-flash"; |
| 22 | reg = <0x80000000 0x1000000>; |
| 23 | bank-width = <2>; |
| 24 | #address-cells = <1>; |
| 25 | #size-cells = <1>; |
| 26 | partition@0 { |
| 27 | label = "bootloader"; |
| 28 | reg = <0x0 0x40000>; |
| 29 | }; |
| 30 | partition@40000 { |
| 31 | label = "linux kernel"; |
| 32 | reg = <0x40000 0x1C0000>; |
| 33 | }; |
| 34 | partition@200000 { |
| 35 | label = "root filesystem"; |
| 36 | reg = <0x200000 0x800000>; |
| 37 | }; |
| 38 | partition@a00000 { |
| 39 | label = "user filesystem"; |
| 40 | reg = <0xa00000 0x600000>; |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | leds { |
| 45 | compatible = "gpio-leds"; |
| 46 | user-led { |
| 47 | label = "ready-led"; |
| 48 | gpios = <&gpio 27 0x1>; |
| 49 | default-state = "on"; |
| 50 | linux,default-trigger = "default-on"; |
| 51 | }; |
| 52 | }; |
| 53 | |
| 54 | gpio_keys_polled { |
| 55 | compatible = "gpio-keys-polled"; |
| 56 | #address-cells = <1>; |
| 57 | #size-cells = <0>; |
| 58 | poll-interval = <500>; |
| 59 | button@25 { |
| 60 | label = "GPIO Reset"; |
| 61 | linux,code = <116>; |
| 62 | gpios = <&gpio 25 1>; |
| 63 | }; |
| 64 | }; |
| 65 | |
| 66 | chosen { |
| 67 | bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/mmcblk0p1 rw rootwait"; |
| 68 | }; |
| 69 | }; |
| 70 | |
| 71 | &clk_pll { |
| 72 | clocks = <&ref12>; |
| 73 | }; |
| 74 | |
| 75 | &sdhci { |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
| 79 | &mdio0 { |
| 80 | status = "okay"; |
| 81 | |
| 82 | ethphy0: ethernet-phy@1 { |
| 83 | device_type = "ethernet-phy"; |
| 84 | compatible = "moxa,moxart-rtl8201cp", "ethernet-phy-ieee802.3-c22"; |
| 85 | reg = <1>; |
| 86 | }; |
| 87 | }; |
| 88 | |
| 89 | &mdio1 { |
| 90 | status = "okay"; |
| 91 | |
| 92 | ethphy1: ethernet-phy@1 { |
| 93 | device_type = "ethernet-phy"; |
| 94 | compatible = "moxa,moxart-rtl8201cp", "ethernet-phy-ieee802.3-c22"; |
| 95 | reg = <1>; |
| 96 | }; |
| 97 | }; |
| 98 | |
| 99 | &mac0 { |
| 100 | status = "okay"; |
| 101 | }; |
| 102 | |
| 103 | &mac1 { |
| 104 | status = "okay"; |
| 105 | }; |
| 106 | |
| 107 | &uart0 { |
| 108 | status = "okay"; |
| 109 | }; |