Neil Armstrong | 0767a5c | 2016-03-03 10:53:57 +0100 | [diff] [blame] | 1 | /* |
| 2 | * wd-mbwe.dtsi - Device tree file for Western Digital My Book World Edition |
| 3 | * |
| 4 | * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com> |
| 5 | * |
| 6 | * Licensed under GPLv2 or later |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | #include "ox810se.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "Western Digital My Book World Edition"; |
| 14 | |
| 15 | compatible = "wd,mbwe", "oxsemi,ox810se"; |
| 16 | |
| 17 | chosen { |
| 18 | bootargs = "console=ttyS1,115200n8 earlyprintk=serial"; |
| 19 | }; |
| 20 | |
| 21 | memory { |
| 22 | /* 128Mbytes DDR */ |
| 23 | reg = <0x48000000 0x8000000>; |
| 24 | }; |
| 25 | |
| 26 | aliases { |
| 27 | serial1 = &uart1; |
| 28 | gpio0 = &gpio0; |
| 29 | gpio1 = &gpio1; |
| 30 | }; |
| 31 | |
| 32 | gpio-keys-polled { |
| 33 | compatible = "gpio-keys-polled"; |
| 34 | #address-cells = <1>; |
| 35 | #size-cells = <0>; |
| 36 | poll-interval = <100>; |
| 37 | |
| 38 | power { |
| 39 | label = "power"; |
| 40 | gpios = <&gpio0 0 1>; |
| 41 | linux,code = <0x198>; |
| 42 | }; |
| 43 | |
| 44 | recovery { |
| 45 | label = "recovery"; |
| 46 | gpios = <&gpio0 4 1>; |
| 47 | linux,code = <0xab>; |
| 48 | }; |
| 49 | }; |
| 50 | |
| 51 | leds { |
| 52 | compatible = "gpio-leds"; |
| 53 | |
| 54 | a0 { |
| 55 | label = "activity0"; |
| 56 | gpios = <&gpio0 25 0>; |
| 57 | default-state = "keep"; |
| 58 | }; |
| 59 | |
| 60 | a1 { |
| 61 | label = "activity1"; |
| 62 | gpios = <&gpio0 26 0>; |
| 63 | default-state = "keep"; |
| 64 | }; |
| 65 | |
| 66 | a2 { |
| 67 | label = "activity2"; |
| 68 | gpios = <&gpio0 5 0>; |
| 69 | default-state = "keep"; |
| 70 | }; |
| 71 | |
| 72 | a3 { |
| 73 | label = "activity3"; |
| 74 | gpios = <&gpio0 6 0>; |
| 75 | default-state = "keep"; |
| 76 | }; |
| 77 | |
| 78 | a4 { |
| 79 | label = "activity4"; |
| 80 | gpios = <&gpio0 7 0>; |
| 81 | default-state = "keep"; |
| 82 | }; |
| 83 | |
| 84 | a5 { |
| 85 | label = "activity5"; |
| 86 | gpios = <&gpio1 2 0>; |
| 87 | default-state = "keep"; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | i2c-gpio { |
| 92 | compatible = "i2c-gpio"; |
| 93 | gpios = <&gpio0 3 0 /* sda */ |
| 94 | &gpio0 2 0 /* scl */ |
| 95 | >; |
| 96 | i2c-gpio,delay-us = <2>; /* ~100 kHz */ |
| 97 | #address-cells = <1>; |
| 98 | #size-cells = <0>; |
| 99 | |
| 100 | rtc0: rtc@48 { |
| 101 | compatible = "st,m41t00"; |
| 102 | reg = <0x68>; |
| 103 | }; |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | &uart1 { |
| 108 | status = "okay"; |
| 109 | |
| 110 | pinctrl-names = "default"; |
| 111 | pinctrl-0 = <&pinctrl_uart1>; |
| 112 | }; |