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