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