b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #include "bcm6348.dtsi" |
| 2 | |
| 3 | #include <dt-bindings/input/input.h> |
| 4 | |
| 5 | / { |
| 6 | model = "TECOM GW6200"; |
| 7 | compatible = "tecom,gw6200", "brcm,bcm6348"; |
| 8 | |
| 9 | aliases { |
| 10 | led-boot = &led_line1_green; |
| 11 | led-failsafe = &led_line1_green; |
| 12 | led-running = &led_line1_green; |
| 13 | led-upgrade = &led_line1_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 36 1>; |
| 30 | linux,code = <KEY_RESTART>; |
| 31 | debounce-interval = <60>; |
| 32 | }; |
| 33 | }; |
| 34 | |
| 35 | leds { |
| 36 | compatible = "gpio-leds"; |
| 37 | |
| 38 | led_line1_green: line1_green { |
| 39 | label = "green:line1"; |
| 40 | gpios = <&pinctrl 4 1>; |
| 41 | }; |
| 42 | line2_green { |
| 43 | label = "green:line2"; |
| 44 | gpios = <&pinctrl 5 1>; |
| 45 | }; |
| 46 | line3_green { |
| 47 | label = "green:line3"; |
| 48 | gpios = <&pinctrl 6 1>; |
| 49 | }; |
| 50 | tel_green { |
| 51 | label = "green:tel"; |
| 52 | gpios = <&pinctrl 7 1>; |
| 53 | }; |
| 54 | }; |
| 55 | }; |
| 56 | |
| 57 | &pflash { |
| 58 | status = "okay"; |
| 59 | |
| 60 | partitions { |
| 61 | compatible = "fixed-partitions"; |
| 62 | #address-cells = <1>; |
| 63 | #size-cells = <1>; |
| 64 | |
| 65 | cfe@0 { |
| 66 | label = "CFE"; |
| 67 | reg = <0x000000 0x010000>; |
| 68 | read-only; |
| 69 | }; |
| 70 | |
| 71 | linux@10000 { |
| 72 | label = "linux"; |
| 73 | reg = <0x010000 0x7e0000>; |
| 74 | compatible = "brcm,bcm963xx-imagetag"; |
| 75 | }; |
| 76 | |
| 77 | nvram@7f0000 { |
| 78 | label = "nvram"; |
| 79 | reg = <0x7f0000 0x010000>; |
| 80 | }; |
| 81 | }; |
| 82 | }; |
| 83 | |
| 84 | &pinctrl { |
| 85 | pinctrl-names = "default"; |
| 86 | pinctrl-0 = <&pinctrl_pci &pinctrl_ext_mii &pinctrl_mii_pccard>; |
| 87 | }; |
| 88 | |
| 89 | &uart0 { |
| 90 | status = "okay"; |
| 91 | }; |