b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #include "bcm6368.dtsi" |
| 2 | |
| 3 | #include <dt-bindings/input/input.h> |
| 4 | |
| 5 | / { |
| 6 | model = "Actiontec R1000H"; |
| 7 | compatible = "actiontec,r1000h", "brcm,bcm6368"; |
| 8 | |
| 9 | aliases { |
| 10 | led-boot = &led_power_green; |
| 11 | led-failsafe = &led_power_green; |
| 12 | led-running = &led_power_green; |
| 13 | led-upgrade = &led_power_green; |
| 14 | }; |
| 15 | |
| 16 | chosen { |
| 17 | bootargs = "rootfstype=squashfs noinitrd console=ttyS0,115200"; |
| 18 | stdout-path = "serial0:115200n8"; |
| 19 | }; |
| 20 | |
| 21 | keys { |
| 22 | compatible = "gpio-keys-polled"; |
| 23 | #address-cells = <1>; |
| 24 | #size-cells = <0>; |
| 25 | poll-interval = <20>; |
| 26 | |
| 27 | reset { |
| 28 | label = "reset"; |
| 29 | gpios = <&pinctrl 34 1>; |
| 30 | linux,code = <KEY_RESTART>; |
| 31 | debounce-interval = <60>; |
| 32 | }; |
| 33 | |
| 34 | wps { |
| 35 | label = "wps"; |
| 36 | gpios = <&pinctrl 35 1>; |
| 37 | linux,code = <KEY_WPS_BUTTON>; |
| 38 | debounce-interval = <60>; |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | leds { |
| 43 | compatible = "gpio-leds"; |
| 44 | |
| 45 | inet_green { |
| 46 | label = "green:inet"; |
| 47 | gpios = <&pinctrl 5 0>; |
| 48 | }; |
| 49 | |
| 50 | usb_green { |
| 51 | label = "green:usb"; |
| 52 | gpios = <&pinctrl 21 1>; |
| 53 | }; |
| 54 | |
| 55 | led_power_green: power_green { |
| 56 | label = "green:power"; |
| 57 | gpios = <&pinctrl 22 0>; |
| 58 | default-state = "on"; |
| 59 | }; |
| 60 | |
| 61 | wps_green { |
| 62 | label = "green:wps"; |
| 63 | gpios = <&pinctrl 23 1>; |
| 64 | }; |
| 65 | |
| 66 | power_red { |
| 67 | label = "red:power"; |
| 68 | gpios = <&pinctrl 24 0>; |
| 69 | }; |
| 70 | |
| 71 | wps_red { |
| 72 | label = "red:wps"; |
| 73 | gpios = <&pinctrl 30 1>; |
| 74 | }; |
| 75 | |
| 76 | inet_red { |
| 77 | label = "red:inet"; |
| 78 | gpios = <&pinctrl 31 0>; |
| 79 | }; |
| 80 | }; |
| 81 | }; |
| 82 | |
| 83 | &pflash { |
| 84 | status = "okay"; |
| 85 | |
| 86 | partitions { |
| 87 | compatible = "fixed-partitions"; |
| 88 | #address-cells = <1>; |
| 89 | #size-cells = <1>; |
| 90 | |
| 91 | CFE@0 { |
| 92 | reg = <0x000000 0x020000>; |
| 93 | read-only; |
| 94 | }; |
| 95 | |
| 96 | linux@20000 { |
| 97 | reg = <0x020000 0x1fc0000>; |
| 98 | compatible = "brcm,bcm963xx-imagetag"; |
| 99 | }; |
| 100 | |
| 101 | nvram@1fe0000 { |
| 102 | reg = <0x1fe0000 0x20000>; |
| 103 | }; |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | &uart0 { |
| 108 | status = "okay"; |
| 109 | }; |
| 110 | |
| 111 | &uart1 { |
| 112 | status = "okay"; |
| 113 | }; |