Neil Armstrong | 38d4a53 | 2016-09-09 12:24:38 +0200 | [diff] [blame] | 1 | /* |
| 2 | * cloudengines-pogoplug-series-3.dtsi - Device tree file for Cloud Engines PogoPlug Series 3 |
| 3 | * |
| 4 | * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com> |
| 5 | * |
| 6 | * Licensed under GPLv2 or later |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | #include "ox820.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "Cloud Engines PogoPlug Series 3"; |
| 14 | |
| 15 | compatible = "cloudengines,pogoplugv3", "oxsemi,ox820"; |
| 16 | |
| 17 | chosen { |
| 18 | bootargs = "earlyprintk"; |
| 19 | stdout-path = "serial0:115200n8"; |
| 20 | }; |
| 21 | |
| 22 | memory { |
| 23 | /* 128Mbytes DDR */ |
| 24 | reg = <0x60000000 0x8000000>; |
| 25 | }; |
| 26 | |
| 27 | aliases { |
| 28 | serial0 = &uart0; |
| 29 | gpio0 = &gpio0; |
| 30 | gpio1 = &gpio1; |
| 31 | }; |
| 32 | |
| 33 | leds { |
| 34 | compatible = "gpio-leds"; |
| 35 | |
| 36 | blue { |
| 37 | label = "pogoplug:blue"; |
| 38 | gpios = <&gpio0 2 0>; |
| 39 | default-state = "keep"; |
| 40 | }; |
| 41 | |
| 42 | orange { |
| 43 | label = "pogoplug:orange"; |
| 44 | gpios = <&gpio1 16 1>; |
| 45 | default-state = "keep"; |
| 46 | }; |
| 47 | |
| 48 | green { |
| 49 | label = "pogoplug:green"; |
| 50 | gpios = <&gpio1 17 1>; |
| 51 | default-state = "keep"; |
| 52 | }; |
| 53 | }; |
| 54 | }; |
| 55 | |
| 56 | &uart0 { |
| 57 | status = "okay"; |
| 58 | |
| 59 | pinctrl-names = "default"; |
| 60 | pinctrl-0 = <&pinctrl_uart0>; |
| 61 | }; |
| 62 | |
| 63 | &nandc { |
| 64 | status = "okay"; |
| 65 | |
| 66 | pinctrl-names = "default"; |
| 67 | pinctrl-0 = <&pinctrl_nand>; |
| 68 | |
| 69 | nand@0 { |
| 70 | reg = <0>; |
| 71 | #address-cells = <1>; |
| 72 | #size-cells = <1>; |
| 73 | nand-ecc-mode = "soft"; |
| 74 | nand-ecc-algo = "hamming"; |
| 75 | |
| 76 | partition@0 { |
| 77 | label = "boot"; |
| 78 | reg = <0x00000000 0x00e00000>; |
| 79 | read-only; |
| 80 | }; |
| 81 | |
| 82 | partition@e00000 { |
| 83 | label = "ubi"; |
| 84 | reg = <0x00e00000 0x07200000>; |
| 85 | }; |
| 86 | }; |
| 87 | }; |
| 88 | |
| 89 | ða { |
| 90 | status = "okay"; |
| 91 | |
| 92 | pinctrl-names = "default"; |
| 93 | pinctrl-0 = <&pinctrl_etha_mdio>; |
| 94 | }; |