Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: moxart: add MOXA ART SoC device tree files

Add a generic (dtsi) include file for MOXA ART SoCs.

Also add a file for UC-7112-LX.

Signed-off-by: Jonas Jensen <jonas.jensen@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>

authored by

Jonas Jensen and committed by
Olof Johansson
448e7ede 31d95612

+276
+12
Documentation/devicetree/bindings/arm/moxart.txt
··· 1 + MOXA ART device tree bindings 2 + 3 + Boards with the MOXA ART SoC shall have the following properties: 4 + 5 + Required root node property: 6 + 7 + compatible = "moxa,moxart"; 8 + 9 + Boards: 10 + 11 + - UC-7112-LX: embedded computer 12 + compatible = "moxa,moxart-uc-7112-lx", "moxa,moxart"
+1
arch/arm/boot/dts/Makefile
··· 108 108 kirkwood-ts219-6281.dtb \ 109 109 kirkwood-ts219-6282.dtb 110 110 dtb-$(CONFIG_ARCH_MARCO) += marco-evb.dtb 111 + dtb-$(CONFIG_ARCH_MOXART) += moxart-uc7112lx.dtb 111 112 dtb-$(CONFIG_ARCH_MSM) += qcom-msm8660-surf.dtb \ 112 113 qcom-msm8960-cdp.dtb 113 114 dtb-$(CONFIG_ARCH_MVEBU) += armada-370-db.dtb \
+109
arch/arm/boot/dts/moxart-uc7112lx.dts
··· 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 + };
+154
arch/arm/boot/dts/moxart.dtsi
··· 1 + /* moxart.dtsi - Device Tree Include file for MOXA ART family SoC 2 + * 3 + * Copyright (C) 2013 Jonas Jensen <jonas.jensen@gmail.com> 4 + * 5 + * Licensed under GPLv2 or later. 6 + */ 7 + 8 + /include/ "skeleton.dtsi" 9 + 10 + / { 11 + compatible = "moxa,moxart"; 12 + model = "MOXART"; 13 + interrupt-parent = <&intc>; 14 + 15 + cpus { 16 + #address-cells = <1>; 17 + #size-cells = <0>; 18 + 19 + cpu@0 { 20 + device_type = "cpu"; 21 + compatible = "faraday,fa526"; 22 + reg = <0>; 23 + }; 24 + }; 25 + 26 + clocks { 27 + #address-cells = <1>; 28 + #size-cells = <0>; 29 + 30 + ref12: ref12M { 31 + compatible = "fixed-clock"; 32 + #clock-cells = <0>; 33 + clock-frequency = <12000000>; 34 + }; 35 + }; 36 + 37 + soc { 38 + compatible = "simple-bus"; 39 + #address-cells = <1>; 40 + #size-cells = <1>; 41 + reg = <0x90000000 0x10000000>; 42 + ranges; 43 + 44 + intc: interrupt-controller@98800000 { 45 + compatible = "moxa,moxart-ic"; 46 + reg = <0x98800000 0x38>; 47 + interrupt-controller; 48 + #interrupt-cells = <2>; 49 + interrupt-mask = <0x00080000>; 50 + }; 51 + 52 + clk_pll: clk_pll@98100000 { 53 + compatible = "moxa,moxart-pll-clock"; 54 + #clock-cells = <0>; 55 + reg = <0x98100000 0x34>; 56 + }; 57 + 58 + clk_apb: clk_apb@98100000 { 59 + compatible = "moxa,moxart-apb-clock"; 60 + #clock-cells = <0>; 61 + reg = <0x98100000 0x34>; 62 + clocks = <&clk_pll>; 63 + }; 64 + 65 + timer: timer@98400000 { 66 + compatible = "moxa,moxart-timer"; 67 + reg = <0x98400000 0x42>; 68 + interrupts = <19 1>; 69 + clocks = <&clk_apb>; 70 + }; 71 + 72 + gpio: gpio@98700000 { 73 + gpio-controller; 74 + #gpio-cells = <2>; 75 + compatible = "moxa,moxart-gpio"; 76 + reg = <0x98700000 0xC>; 77 + }; 78 + 79 + rtc: rtc { 80 + compatible = "moxa,moxart-rtc"; 81 + gpio-rtc-sclk = <&gpio 5 0>; 82 + gpio-rtc-data = <&gpio 6 0>; 83 + gpio-rtc-reset = <&gpio 7 0>; 84 + }; 85 + 86 + dma: dma@90500000 { 87 + compatible = "moxa,moxart-dma"; 88 + reg = <0x90500080 0x40>; 89 + interrupts = <24 0>; 90 + #dma-cells = <1>; 91 + }; 92 + 93 + watchdog: watchdog@98500000 { 94 + compatible = "moxa,moxart-watchdog"; 95 + reg = <0x98500000 0x10>; 96 + clocks = <&clk_apb>; 97 + }; 98 + 99 + sdhci: sdhci@98e00000 { 100 + compatible = "moxa,moxart-sdhci"; 101 + reg = <0x98e00000 0x5C>; 102 + interrupts = <5 0>; 103 + clocks = <&clk_apb>; 104 + dmas = <&dma 5>, 105 + <&dma 5>; 106 + dma-names = "tx", "rx"; 107 + status = "disabled"; 108 + }; 109 + 110 + mdio0: mdio@90900090 { 111 + compatible = "moxa,moxart-mdio"; 112 + reg = <0x90900090 0x8>; 113 + #address-cells = <1>; 114 + #size-cells = <0>; 115 + status = "disabled"; 116 + }; 117 + 118 + mdio1: mdio@92000090 { 119 + compatible = "moxa,moxart-mdio"; 120 + reg = <0x92000090 0x8>; 121 + #address-cells = <1>; 122 + #size-cells = <0>; 123 + status = "disabled"; 124 + }; 125 + 126 + mac0: mac@90900000 { 127 + compatible = "moxa,moxart-mac"; 128 + reg = <0x90900000 0x90>; 129 + interrupts = <25 0>; 130 + phy-handle = <&ethphy0>; 131 + phy-mode = "mii"; 132 + status = "disabled"; 133 + }; 134 + 135 + mac1: mac@92000000 { 136 + compatible = "moxa,moxart-mac"; 137 + reg = <0x92000000 0x90>; 138 + interrupts = <27 0>; 139 + phy-handle = <&ethphy1>; 140 + phy-mode = "mii"; 141 + status = "disabled"; 142 + }; 143 + 144 + uart0: uart@98200000 { 145 + compatible = "ns16550a"; 146 + reg = <0x98200000 0x20>; 147 + interrupts = <31 8>; 148 + reg-shift = <2>; 149 + reg-io-width = <4>; 150 + clock-frequency = <14745600>; 151 + status = "disabled"; 152 + }; 153 + }; 154 + };