| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #include "bcm6328.dtsi" |
| 2 | |
| 3 | #include <dt-bindings/input/input.h> |
| 4 | |
| 5 | / { |
| 6 | model = "NuCom R5010UN v2"; |
| 7 | compatible = "nucom,r5010un-v2", "brcm,bcm6328"; |
| 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,jffs2 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 23 1>; |
| 30 | linux,code = <KEY_RESTART>; |
| 31 | debounce-interval = <60>; |
| 32 | }; |
| 33 | |
| 34 | wps { |
| 35 | label = "wps"; |
| 36 | gpios = <&pinctrl 24 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 1 1>; |
| 48 | }; |
| 49 | inet_fail_red { |
| 50 | label = "red:inet-fail"; |
| 51 | gpios = <&pinctrl 2 1>; |
| 52 | }; |
| 53 | dsl_red { |
| 54 | label = "green:dsl"; |
| 55 | gpios = <&pinctrl 3 1>; |
| 56 | }; |
| 57 | led_power_green: power_green { |
| 58 | label = "green:power"; |
| 59 | gpios = <&pinctrl 4 1>; |
| 60 | default-state = "on"; |
| 61 | }; |
| 62 | power_fail_red { |
| 63 | label = "red:power-fail"; |
| 64 | gpios = <&pinctrl 5 1>; |
| 65 | }; |
| 66 | wps_green { |
| 67 | label = "green:wps"; |
| 68 | gpios = <&pinctrl 10 1>; |
| 69 | }; |
| 70 | usb_green { |
| 71 | label = "green:usb"; |
| 72 | gpios = <&pinctrl 11 1>; |
| 73 | }; |
| 74 | }; |
| 75 | }; |
| 76 | |
| 77 | &hsspi { |
| 78 | status = "okay"; |
| 79 | |
| 80 | flash@0 { |
| 81 | compatible = "jedec,spi-nor"; |
| 82 | spi-max-frequency = <16666667>; |
| 83 | spi-tx-bus-width = <2>; |
| 84 | spi-rx-bus-width = <2>; |
| 85 | reg = <0>; |
| 86 | |
| 87 | #address-cells = <1>; |
| 88 | #size-cells = <1>; |
| 89 | |
| 90 | partitions { |
| 91 | compatible = "fixed-partitions"; |
| 92 | #address-cells = <1>; |
| 93 | #size-cells = <1>; |
| 94 | |
| 95 | partition@0 { |
| 96 | reg = <0x000000 0x010000>; |
| 97 | label = "cfe"; |
| 98 | read-only; |
| 99 | }; |
| 100 | |
| 101 | partition@10000 { |
| 102 | reg = <0x010000 0xfe0000>; |
| 103 | label = "linux"; |
| 104 | compatible = "brcm,bcm963xx-imagetag"; |
| 105 | }; |
| 106 | |
| 107 | partition@ff0000 { |
| 108 | reg = <0xff0000 0x010000>; |
| 109 | label = "nvram"; |
| 110 | }; |
| 111 | }; |
| 112 | }; |
| 113 | }; |
| 114 | |
| 115 | &uart0 { |
| 116 | status = "okay"; |
| 117 | }; |