| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #include "bcm6318.dtsi" | 
 | 2 |  | 
 | 3 | #include <dt-bindings/input/input.h> | 
 | 4 |  | 
 | 5 | / { | 
 | 6 | 	model = "D-Link DSL-2750B/DSL-2751 rev D1"; | 
 | 7 | 	compatible = "d-link,dsl-275xb-d1", "brcm,bcm6318"; | 
 | 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 | 		wifi { | 
 | 28 | 			label = "wifi"; | 
 | 29 | 			gpios = <&pinctrl 2 1>; | 
 | 30 | 			linux,code = <KEY_WLAN>; | 
 | 31 | 			debounce-interval = <60>; | 
 | 32 | 		}; | 
 | 33 |  | 
 | 34 | 		wps { | 
 | 35 | 			label = "wps"; | 
 | 36 | 			gpios = <&pinctrl 33 1>; | 
 | 37 | 			linux,code = <KEY_WPS_BUTTON>; | 
 | 38 | 			debounce-interval = <60>; | 
 | 39 | 		}; | 
 | 40 |  | 
 | 41 | 		reset { | 
 | 42 | 			label = "reset"; | 
 | 43 | 			gpios = <&pinctrl 34 1>; | 
 | 44 | 			linux,code = <KEY_RESTART>; | 
 | 45 | 			debounce-interval = <60>; | 
 | 46 | 		}; | 
 | 47 | 	}; | 
 | 48 |  | 
 | 49 | 	leds { | 
 | 50 | 		compatible = "gpio-leds"; | 
 | 51 |  | 
 | 52 | 		led_power_green: power_green { | 
 | 53 | 			label = "green:power"; | 
 | 54 | 			gpios = <&pinctrl 3 1>; | 
 | 55 | 			default-state = "on"; | 
 | 56 | 		}; | 
 | 57 |  | 
 | 58 | 		inet_green { | 
 | 59 | 			label = "green:inet"; | 
 | 60 | 			gpios = <&pinctrl 8 1>; | 
 | 61 | 		}; | 
 | 62 |  | 
 | 63 | 		inet_red { | 
 | 64 | 			label = "red:inet-fail"; | 
 | 65 | 			gpios = <&pinctrl 9 1>; | 
 | 66 | 		}; | 
 | 67 |  | 
 | 68 | 		power_red { | 
 | 69 | 			label = "red:post-failed"; | 
 | 70 | 			gpios = <&pinctrl 11 1>; | 
 | 71 | 		}; | 
 | 72 |  | 
 | 73 | 		wps_blue { | 
 | 74 | 			label = "blue:wps"; | 
 | 75 | 			gpios = <&pinctrl 16 1>; | 
 | 76 | 		}; | 
 | 77 |  | 
 | 78 | 		dsl_green { | 
 | 79 | 			label = "green:dsl"; | 
 | 80 | 			gpios = <&pinctrl 17 1>; | 
 | 81 | 		}; | 
 | 82 |  | 
 | 83 | 		usb_green { | 
 | 84 | 			/* not user controllable? */ | 
 | 85 | 			label = "green:usb"; | 
 | 86 | 			gpios = <&pinctrl 49 1>; | 
 | 87 | 		}; | 
 | 88 | 	}; | 
 | 89 | }; | 
 | 90 |  | 
 | 91 | &hsspi { | 
 | 92 | 	status = "okay"; | 
 | 93 |  | 
 | 94 | 	flash@0 { | 
 | 95 | 		compatible = "jedec,spi-nor"; | 
 | 96 | 		spi-max-frequency = <62500000>; | 
 | 97 | 		spi-tx-bus-width = <2>; | 
 | 98 | 		spi-rx-bus-width = <2>; | 
 | 99 | 		reg = <0>; | 
 | 100 |  | 
 | 101 | 		#address-cells = <1>; | 
 | 102 | 		#size-cells = <1>; | 
 | 103 |  | 
 | 104 | 		partitions { | 
 | 105 | 			compatible = "fixed-partitions"; | 
 | 106 | 			#address-cells = <1>; | 
 | 107 | 			#size-cells = <1>; | 
 | 108 |  | 
 | 109 | 			cfe@0 { | 
 | 110 | 				reg = <0x000000 0x010000>; | 
 | 111 | 				label = "cfe"; | 
 | 112 | 				read-only; | 
 | 113 | 			}; | 
 | 114 |  | 
 | 115 | 			linux@10000 { | 
 | 116 | 				reg = <0x010000 0x7e0000>; | 
 | 117 | 				label = "linux"; | 
 | 118 | 				compatible = "brcm,bcm963xx-imagetag"; | 
 | 119 | 			}; | 
 | 120 |  | 
 | 121 | 			nvram@7f0000 { | 
 | 122 | 				reg = <0x7f0000 0x010000>; | 
 | 123 | 				label = "nvram"; | 
 | 124 | 			}; | 
 | 125 | 		}; | 
 | 126 | 	}; | 
 | 127 | }; | 
 | 128 |  | 
 | 129 | &pinctrl { | 
 | 130 | 	pinctrl-names = "default"; | 
 | 131 |  | 
 | 132 | 	pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led | 
 | 133 | 		     &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>; | 
 | 134 | }; | 
 | 135 |  | 
 | 136 | &uart0 { | 
 | 137 | 	status = "okay"; | 
 | 138 | }; |