|
|
|
@ -42,7 +42,145 @@
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
soc {
|
|
|
|
|
pinmux@800000 {
|
|
|
|
|
mdio0: mdio@37000000 {
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
|
|
compatible = "qcom,ipq8064-mdio", "syscon";
|
|
|
|
|
reg = <0x37000000 0x200000>;
|
|
|
|
|
resets = <&gcc GMAC_CORE1_RESET>;
|
|
|
|
|
reset-names = "stmmaceth";
|
|
|
|
|
clocks = <&gcc GMAC_CORE1_CLK>;
|
|
|
|
|
clock-names = "stmmaceth";
|
|
|
|
|
|
|
|
|
|
pinctrl-0 = <&mdio0_pins>;
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
|
reg = <0>;
|
|
|
|
|
qca,ar8327-initvals = <
|
|
|
|
|
0x00004 0x7600000 /* PAD0_MODE */
|
|
|
|
|
0x00008 0x1000000 /* PAD5_MODE */
|
|
|
|
|
0x0000c 0x80 /* PAD6_MODE */
|
|
|
|
|
0x000e4 0xaa545 /* MAC_POWER_SEL */
|
|
|
|
|
0x000e0 0xc74164de /* SGMII_CTRL */
|
|
|
|
|
0x0007c 0x4e /* PORT0_STATUS */
|
|
|
|
|
0x00094 0x4e /* PORT6_STATUS */
|
|
|
|
|
0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
|
|
|
|
|
0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
|
|
|
|
|
0x00978 0x19008643 /* QM_PORT1_CTRL0 */
|
|
|
|
|
0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
|
|
|
|
|
0x00980 0x19008643 /* QM_PORT2_CTRL0 */
|
|
|
|
|
0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
|
|
|
|
|
0x00988 0x19008643 /* QM_PORT3_CTRL0 */
|
|
|
|
|
0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
|
|
|
|
|
0x00990 0x19008643 /* QM_PORT4_CTRL0 */
|
|
|
|
|
0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
|
|
|
|
|
0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
|
|
|
|
|
0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
|
|
|
|
|
0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
|
|
|
|
|
0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
|
|
|
|
|
>;
|
|
|
|
|
qca,ar8327-vlans = <
|
|
|
|
|
0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
|
|
|
|
|
0x2 0x21 /* VLAN2 Ports 0/5 */
|
|
|
|
|
>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
phy4: ethernet-phy@4 {
|
|
|
|
|
reg = <4>;
|
|
|
|
|
qca,ar8327-initvals = <
|
|
|
|
|
0x000e4 0x6a545 /* MAC_POWER_SEL */
|
|
|
|
|
0x0000c 0x80 /* PAD6_MODE */
|
|
|
|
|
>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
keys {
|
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
pinctrl-0 = <&button_pins>;
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
|
|
wifi {
|
|
|
|
|
label = "wifi";
|
|
|
|
|
gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
|
|
|
|
|
linux,code = <KEY_RFKILL>;
|
|
|
|
|
debounce-interval = <60>;
|
|
|
|
|
wakeup-source;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
reset {
|
|
|
|
|
label = "reset";
|
|
|
|
|
gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
|
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
|
debounce-interval = <60>;
|
|
|
|
|
wakeup-source;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
wps {
|
|
|
|
|
label = "wps";
|
|
|
|
|
gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
|
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
|
debounce-interval = <60>;
|
|
|
|
|
wakeup-source;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
leds {
|
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
pinctrl-0 = <&led_pins>;
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
|
|
power_white: power_white {
|
|
|
|
|
label = "r7800:white:power";
|
|
|
|
|
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
default-state = "keep";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
power_amber: power_amber {
|
|
|
|
|
label = "r7800:amber:power";
|
|
|
|
|
gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
wan_white {
|
|
|
|
|
label = "r7800:white:wan";
|
|
|
|
|
gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
wan_amber {
|
|
|
|
|
label = "r7800:amber:wan";
|
|
|
|
|
gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
usb1 {
|
|
|
|
|
label = "r7800:white:usb1";
|
|
|
|
|
gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
usb2 {
|
|
|
|
|
label = "r7800:white:usb2";
|
|
|
|
|
gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
esata {
|
|
|
|
|
label = "r7800:white:esata";
|
|
|
|
|
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
wifi {
|
|
|
|
|
label = "r7800:white:wifi";
|
|
|
|
|
gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
wps {
|
|
|
|
|
label = "r7800:white:wps";
|
|
|
|
|
gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
&qcom_pinmux {
|
|
|
|
|
button_pins: button_pins {
|
|
|
|
|
mux {
|
|
|
|
|
pins = "gpio6", "gpio54", "gpio65";
|
|
|
|
@ -79,14 +217,12 @@
|
|
|
|
|
drive-strength = <10>;
|
|
|
|
|
bias-disable;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
pullups {
|
|
|
|
|
pins = "gpio39";
|
|
|
|
|
function = "nand";
|
|
|
|
|
drive-strength = <10>;
|
|
|
|
|
bias-pull-up;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
hold {
|
|
|
|
|
pins = "gpio40", "gpio41", "gpio42",
|
|
|
|
|
"gpio43", "gpio44", "gpio45",
|
|
|
|
@ -207,12 +343,14 @@
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gsbi@16300000 {
|
|
|
|
|
&gsbi4 {
|
|
|
|
|
qcom,mode = <GSBI_PROT_I2C_UART>;
|
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
|
|
serial@16340000 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* The i2c device on gsbi4 should not be enabled.
|
|
|
|
|
* On ipq806x designs gsbi4 i2c is meant for exclusive
|
|
|
|
@ -221,69 +359,7 @@
|
|
|
|
|
*/
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
sata-phy@1b400000 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
sata@29000000 {
|
|
|
|
|
ports-implemented = <0x1>;
|
|
|
|
|
status = "okay";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
usb3_0: usb3@110f8800 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
|
|
pinctrl-0 = <&usb0_pwr_en_pins>;
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
usb3_1: usb3@100f8800 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
|
|
pinctrl-0 = <&usb1_pwr_en_pins>;
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
pcie0: pci@1b500000 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
|
|
bridge@0,0 {
|
|
|
|
|
reg = <0x00000000 0 0 0 0>;
|
|
|
|
|
#address-cells = <3>;
|
|
|
|
|
#size-cells = <2>;
|
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
|
|
wifi@1,0 {
|
|
|
|
|
compatible = "pci168c,0046";
|
|
|
|
|
reg = <0x00010000 0 0 0 0>;
|
|
|
|
|
|
|
|
|
|
mtd-mac-address = <&art 6>;
|
|
|
|
|
mtd-mac-address-increment = <(1)>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
pcie1: pci@1b700000 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
force_gen1 = <1>;
|
|
|
|
|
|
|
|
|
|
bridge@0,0 {
|
|
|
|
|
reg = <0x00000000 0 0 0 0>;
|
|
|
|
|
#address-cells = <3>;
|
|
|
|
|
#size-cells = <2>;
|
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
|
|
wifi@1,0 {
|
|
|
|
|
compatible = "pci168c,0046";
|
|
|
|
|
reg = <0x00010000 0 0 0 0>;
|
|
|
|
|
|
|
|
|
|
mtd-mac-address = <&art 6>;
|
|
|
|
|
mtd-mac-address-increment = <(2)>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nand-controller@1ac00000 {
|
|
|
|
|
&nand_controller {
|
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
|
|
pinctrl-0 = <&nand_pins>;
|
|
|
|
@ -351,61 +427,7 @@
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
mdio0: mdio@37000000 {
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
|
|
compatible = "qcom,ipq8064-mdio", "syscon";
|
|
|
|
|
reg = <0x37000000 0x200000>;
|
|
|
|
|
resets = <&gcc GMAC_CORE1_RESET>;
|
|
|
|
|
reset-names = "stmmaceth";
|
|
|
|
|
clocks = <&gcc GMAC_CORE1_CLK>;
|
|
|
|
|
clock-names = "stmmaceth";
|
|
|
|
|
|
|
|
|
|
pinctrl-0 = <&mdio0_pins>;
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
|
reg = <0>;
|
|
|
|
|
qca,ar8327-initvals = <
|
|
|
|
|
0x00004 0x7600000 /* PAD0_MODE */
|
|
|
|
|
0x00008 0x1000000 /* PAD5_MODE */
|
|
|
|
|
0x0000c 0x80 /* PAD6_MODE */
|
|
|
|
|
0x000e4 0xaa545 /* MAC_POWER_SEL */
|
|
|
|
|
0x000e0 0xc74164de /* SGMII_CTRL */
|
|
|
|
|
0x0007c 0x4e /* PORT0_STATUS */
|
|
|
|
|
0x00094 0x4e /* PORT6_STATUS */
|
|
|
|
|
0x00970 0x1e864443 /* QM_PORT0_CTRL0 */
|
|
|
|
|
0x00974 0x000001c6 /* QM_PORT0_CTRL1 */
|
|
|
|
|
0x00978 0x19008643 /* QM_PORT1_CTRL0 */
|
|
|
|
|
0x0097c 0x000001c6 /* QM_PORT1_CTRL1 */
|
|
|
|
|
0x00980 0x19008643 /* QM_PORT2_CTRL0 */
|
|
|
|
|
0x00984 0x000001c6 /* QM_PORT2_CTRL1 */
|
|
|
|
|
0x00988 0x19008643 /* QM_PORT3_CTRL0 */
|
|
|
|
|
0x0098c 0x000001c6 /* QM_PORT3_CTRL1 */
|
|
|
|
|
0x00990 0x19008643 /* QM_PORT4_CTRL0 */
|
|
|
|
|
0x00994 0x000001c6 /* QM_PORT4_CTRL1 */
|
|
|
|
|
0x00998 0x1e864443 /* QM_PORT5_CTRL0 */
|
|
|
|
|
0x0099c 0x000001c6 /* QM_PORT5_CTRL1 */
|
|
|
|
|
0x009a0 0x1e864443 /* QM_PORT6_CTRL0 */
|
|
|
|
|
0x009a4 0x000001c6 /* QM_PORT6_CTRL1 */
|
|
|
|
|
>;
|
|
|
|
|
qca,ar8327-vlans = <
|
|
|
|
|
0x1 0x5e /* VLAN1 Ports 1/2/3/4/6 */
|
|
|
|
|
0x2 0x21 /* VLAN2 Ports 0/5 */
|
|
|
|
|
>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
phy4: ethernet-phy@4 {
|
|
|
|
|
reg = <4>;
|
|
|
|
|
qca,ar8327-initvals = <
|
|
|
|
|
0x000e4 0x6a545 /* MAC_POWER_SEL */
|
|
|
|
|
0x0000c 0x80 /* PAD6_MODE */
|
|
|
|
|
>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gmac1: ethernet@37200000 {
|
|
|
|
|
&gmac1 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
|
qcom,id = <1>;
|
|
|
|
@ -428,7 +450,7 @@
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
gmac2: ethernet@37400000 {
|
|
|
|
|
&gmac2 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
|
qcom,id = <2>;
|
|
|
|
@ -447,91 +469,69 @@
|
|
|
|
|
full-duplex;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
keys {
|
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
pinctrl-0 = <&button_pins>;
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
|
|
wifi {
|
|
|
|
|
label = "wifi";
|
|
|
|
|
gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
|
|
|
|
|
linux,code = <KEY_RFKILL>;
|
|
|
|
|
debounce-interval = <60>;
|
|
|
|
|
wakeup-source;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
reset {
|
|
|
|
|
label = "reset";
|
|
|
|
|
gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
|
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
|
debounce-interval = <60>;
|
|
|
|
|
wakeup-source;
|
|
|
|
|
&adm_dma {
|
|
|
|
|
status = "okay";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
wps {
|
|
|
|
|
label = "wps";
|
|
|
|
|
gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
|
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
|
debounce-interval = <60>;
|
|
|
|
|
wakeup-source;
|
|
|
|
|
};
|
|
|
|
|
&sata_phy {
|
|
|
|
|
status = "okay";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
leds {
|
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
pinctrl-0 = <&led_pins>;
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
|
|
power_white: power_white {
|
|
|
|
|
label = "r7800:white:power";
|
|
|
|
|
gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
default-state = "keep";
|
|
|
|
|
&sata {
|
|
|
|
|
ports-implemented = <0x1>;
|
|
|
|
|
status = "okay";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
power_amber: power_amber {
|
|
|
|
|
label = "r7800:amber:power";
|
|
|
|
|
gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
&usb3_0 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
|
|
wan_white {
|
|
|
|
|
label = "r7800:white:wan";
|
|
|
|
|
gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
pinctrl-0 = <&usb0_pwr_en_pins>;
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
wan_amber {
|
|
|
|
|
label = "r7800:amber:wan";
|
|
|
|
|
gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
&usb3_1 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
|
|
usb1 {
|
|
|
|
|
label = "r7800:white:usb1";
|
|
|
|
|
gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
pinctrl-0 = <&usb1_pwr_en_pins>;
|
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
usb2 {
|
|
|
|
|
label = "r7800:white:usb2";
|
|
|
|
|
gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
&pcie0 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
|
|
esata {
|
|
|
|
|
label = "r7800:white:esata";
|
|
|
|
|
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
bridge@0,0 {
|
|
|
|
|
reg = <0x00000000 0 0 0 0>;
|
|
|
|
|
#address-cells = <3>;
|
|
|
|
|
#size-cells = <2>;
|
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
|
|
wifi {
|
|
|
|
|
label = "r7800:white:wifi";
|
|
|
|
|
gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
};
|
|
|
|
|
wifi@1,0 {
|
|
|
|
|
compatible = "pci168c,0046";
|
|
|
|
|
reg = <0x00010000 0 0 0 0>;
|
|
|
|
|
|
|
|
|
|
wps {
|
|
|
|
|
label = "r7800:white:wps";
|
|
|
|
|
gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
mtd-mac-address = <&art 6>;
|
|
|
|
|
mtd-mac-address-increment = <(1)>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
&adm_dma {
|
|
|
|
|
&pcie1 {
|
|
|
|
|
status = "okay";
|
|
|
|
|
force_gen1 = <1>;
|
|
|
|
|
|
|
|
|
|
bridge@0,0 {
|
|
|
|
|
reg = <0x00000000 0 0 0 0>;
|
|
|
|
|
#address-cells = <3>;
|
|
|
|
|
#size-cells = <2>;
|
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
|
|
wifi@1,0 {
|
|
|
|
|
compatible = "pci168c,0046";
|
|
|
|
|
reg = <0x00010000 0 0 0 0>;
|
|
|
|
|
|
|
|
|
|
mtd-mac-address = <&art 6>;
|
|
|
|
|
mtd-mac-address-increment = <(2)>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|