| 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 = "Inventel Livebox 1"; |
| 7 | compatible = "inventel,livebox-1", "brcm,bcm6348"; |
| 8 | |
| 9 | aliases { |
| 10 | led-boot = &led_red_adsl_fail; |
| 11 | led-failsafe = &led_red_adsl_fail; |
| 12 | led-running = &led_red_adsl_fail; |
| 13 | led-upgrade = &led_red_adsl_fail; |
| 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 | button1 { |
| 28 | label = "1"; |
| 29 | gpios = <&pinctrl 36 1>; |
| 30 | linux,code = <KEY_RESTART>; |
| 31 | debounce-interval = <60>; |
| 32 | }; |
| 33 | |
| 34 | button2 { |
| 35 | label = "2"; |
| 36 | gpios = <&pinctrl 7 1>; |
| 37 | linux,code = <BTN_2>; |
| 38 | debounce-interval = <60>; |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | leds { |
| 43 | compatible = "gpio-leds"; |
| 44 | |
| 45 | led_red_adsl_fail: red_adsl_fail { |
| 46 | label = "red:adsl-fail-power"; |
| 47 | gpios = <&pinctrl 0 0>; |
| 48 | default-state = "on"; |
| 49 | }; |
| 50 | |
| 51 | red_adsl { |
| 52 | label = "red:adsl"; |
| 53 | gpios = <&pinctrl 1 0>; |
| 54 | }; |
| 55 | |
| 56 | red_traffic { |
| 57 | label = "red:traffic"; |
| 58 | gpios = <&pinctrl 2 0>; |
| 59 | }; |
| 60 | |
| 61 | red_phone { |
| 62 | label = "red:phone"; |
| 63 | gpios = <&pinctrl 3 0>; |
| 64 | }; |
| 65 | |
| 66 | red_wifi { |
| 67 | label = "red:wifi"; |
| 68 | gpios = <&pinctrl 4 0>; |
| 69 | }; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | &pflash { |
| 74 | reg = <0x1e400000 0x800000>; |
| 75 | status = "okay"; |
| 76 | |
| 77 | partitions { |
| 78 | compatible = "ecoscentric,redboot-fis-partitions"; |
| 79 | }; |
| 80 | }; |
| 81 | |
| 82 | &pinctrl { |
| 83 | pinctrl-names = "default"; |
| 84 | pinctrl-0 = <&pinctrl_pci &pinctrl_ext_mii &pinctrl_mii_pccard>; |
| 85 | }; |
| 86 | |
| 87 | &uart0 { |
| 88 | status = "okay"; |
| 89 | }; |