| 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 = "ADB P.DG A4001N1"; |
| 7 | compatible = "adb,a4001n1", "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 = "wlan"; |
| 36 | gpios = <&pinctrl 24 1>; |
| 37 | linux,code = <KEY_WLAN>; |
| 38 | debounce-interval = <60>; |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | leds { |
| 43 | compatible = "gpio-leds"; |
| 44 | |
| 45 | inet_red { |
| 46 | label = "red:inet"; |
| 47 | gpios = <&pinctrl 2 1>; |
| 48 | }; |
| 49 | ppp_green { |
| 50 | label = "green:ppp"; |
| 51 | gpios = <&pinctrl 3 1>; |
| 52 | }; |
| 53 | led_power_green: power_green { |
| 54 | label = "green:power"; |
| 55 | gpios = <&pinctrl 4 1>; |
| 56 | default-state = "on"; |
| 57 | }; |
| 58 | ppp_red { |
| 59 | label = "red:ppp"; |
| 60 | gpios = <&pinctrl 5 1>; |
| 61 | }; |
| 62 | usb_green { |
| 63 | label = "green:3g"; |
| 64 | gpios = <&pinctrl 6 1>; |
| 65 | }; |
| 66 | usb_red { |
| 67 | label = "red:3g"; |
| 68 | gpios = <&pinctrl 7 1>; |
| 69 | }; |
| 70 | power_red { |
| 71 | label = "red:power"; |
| 72 | gpios = <&pinctrl 8 1>; |
| 73 | }; |
| 74 | wlan_green { |
| 75 | label = "green:wlan"; |
| 76 | gpios = <&pinctrl 9 1>; |
| 77 | }; |
| 78 | wlan_red { |
| 79 | label = "red:wlan"; |
| 80 | gpios = <&pinctrl 10 1>; |
| 81 | }; |
| 82 | inet_green { |
| 83 | label = "green:inet"; |
| 84 | gpios = <&pinctrl 11 1>; |
| 85 | }; |
| 86 | eth_red { |
| 87 | label = "red:eth"; |
| 88 | gpios = <&pinctrl 20 1>; |
| 89 | }; |
| 90 | eth_green { |
| 91 | label = "green:eth"; |
| 92 | gpios = <&pinctrl 31 1>; |
| 93 | }; |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | &hsspi { |
| 98 | status = "okay"; |
| 99 | |
| 100 | flash@0 { |
| 101 | compatible = "jedec,spi-nor"; |
| 102 | spi-max-frequency = <16666667>; |
| 103 | spi-tx-bus-width = <2>; |
| 104 | spi-rx-bus-width = <2>; |
| 105 | reg = <0>; |
| 106 | |
| 107 | #address-cells = <1>; |
| 108 | #size-cells = <1>; |
| 109 | |
| 110 | partitions { |
| 111 | compatible = "fixed-partitions"; |
| 112 | #address-cells = <1>; |
| 113 | #size-cells = <1>; |
| 114 | |
| 115 | cfe@0 { |
| 116 | reg = <0x000000 0x010000>; |
| 117 | label = "cfe"; |
| 118 | read-only; |
| 119 | }; |
| 120 | |
| 121 | linux@10000 { |
| 122 | reg = <0x010000 0xfe0000>; |
| 123 | label = "linux"; |
| 124 | compatible = "brcm,bcm963xx-imagetag"; |
| 125 | }; |
| 126 | |
| 127 | nvram@ff0000 { |
| 128 | reg = <0xff0000 0x010000>; |
| 129 | label = "nvram"; |
| 130 | }; |
| 131 | }; |
| 132 | }; |
| 133 | }; |
| 134 | |
| 135 | &uart0 { |
| 136 | status = "okay"; |
| 137 | }; |