|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+) |
| 2 | + |
| 3 | +/dts-v1/; |
| 4 | + |
| 5 | +#include "ipq6018.dtsi" |
| 6 | +#include "ipq6018-upstreamable.dtsi" |
| 7 | +#include "ipq6018-ess.dtsi" |
| 8 | + |
| 9 | +#include <dt-bindings/input/input.h> |
| 10 | +#include <dt-bindings/gpio/gpio.h> |
| 11 | + |
| 12 | +/ { |
| 13 | + qcom,msm-id = <0x192 0x0>; |
| 14 | + |
| 15 | + aliases { |
| 16 | + serial0 = &blsp1_uart3; |
| 17 | + |
| 18 | + /* Aliases as required by u-boot to patch MAC addresses */ |
| 19 | + ethernet0 = &dp1; |
| 20 | + ethernet1 = &dp2; |
| 21 | + ethernet2 = &dp3; |
| 22 | + ethernet3 = &dp4; |
| 23 | + }; |
| 24 | + |
| 25 | + chosen { |
| 26 | + bootargs-append = " root=/dev/ubiblock0_1 swiotlb=1"; |
| 27 | + }; |
| 28 | + |
| 29 | + keys { |
| 30 | + compatible = "gpio-keys"; |
| 31 | + |
| 32 | + reset { |
| 33 | + label = "reset"; |
| 34 | + gpios = <&tlmm 60 GPIO_ACTIVE_LOW>; |
| 35 | + linux,code = <KEY_RESTART>; |
| 36 | + }; |
| 37 | + |
| 38 | + wps { |
| 39 | + label = "wps"; |
| 40 | + gpios = <&tlmm 9 GPIO_ACTIVE_LOW>; |
| 41 | + linux,code = <KEY_WPS_BUTTON>; |
| 42 | + }; |
| 43 | + }; |
| 44 | +}; |
| 45 | + |
| 46 | +&blsp1_uart3 { |
| 47 | + pinctrl-0 = <&serial_3_pins>; |
| 48 | + pinctrl-names = "default"; |
| 49 | + status = "okay"; |
| 50 | +}; |
| 51 | + |
| 52 | +&tlmm { |
| 53 | + mdio_pins: mdio-pins { |
| 54 | + mdc { |
| 55 | + pins = "gpio64"; |
| 56 | + function = "mdc"; |
| 57 | + drive-strength = <8>; |
| 58 | + bias-pull-up; |
| 59 | + }; |
| 60 | + |
| 61 | + mdio { |
| 62 | + pins = "gpio65"; |
| 63 | + function = "mdio"; |
| 64 | + drive-strength = <8>; |
| 65 | + bias-pull-up; |
| 66 | + }; |
| 67 | + }; |
| 68 | + |
| 69 | + button_pins: button_pins { |
| 70 | + wps_button { |
| 71 | + pins = "gpio9"; |
| 72 | + function = "gpio"; |
| 73 | + drive-strength = <8>; |
| 74 | + bias-pull-up; |
| 75 | + }; |
| 76 | + |
| 77 | + reset_button { |
| 78 | + pins = "gpio60"; |
| 79 | + function = "gpio"; |
| 80 | + drive-strength = <8>; |
| 81 | + bias-pull-up; |
| 82 | + }; |
| 83 | + }; |
| 84 | +}; |
| 85 | + |
| 86 | +&soc { |
| 87 | + dp1: dp@1 { |
| 88 | + compatible = "qcom,nss-dp"; |
| 89 | + reg = <0x0 0x3a001000 0x0 0x200>; |
| 90 | + qcom,mactype = <0>; |
| 91 | + qcom,id = <5>; |
| 92 | + local-mac-address = [000000000000]; |
| 93 | + phy-handle = <&phy_0>; |
| 94 | + phy-mode = "sgmii"; |
| 95 | + }; |
| 96 | + |
| 97 | + dp2: dp2 { |
| 98 | + compatible = "qcom,nss-dp"; |
| 99 | + reg = <0x0 0x3a001200 0x0 0x200>; |
| 100 | + qcom,mactype = <0>; |
| 101 | + qcom,id = <1>; |
| 102 | + local-mac-address = [000000000000]; |
| 103 | + phy-handle = <&phy_1>; |
| 104 | + phy-mode = "sgmii"; |
| 105 | + }; |
| 106 | + |
| 107 | + dp3: dp3 { |
| 108 | + compatible = "qcom,nss-dp"; |
| 109 | + reg = <0x0 0x3a001400 0x0 0x200>; |
| 110 | + qcom,mactype = <0>; |
| 111 | + qcom,id = <2>; |
| 112 | + local-mac-address = [000000000000]; |
| 113 | + phy-handle = <&phy_2>; |
| 114 | + phy-mode = "sgmii"; |
| 115 | + }; |
| 116 | + |
| 117 | + dp4: dp4 { |
| 118 | + compatible = "qcom,nss-dp"; |
| 119 | + reg = <0x0 0x3a001600 0x0 0x200>; |
| 120 | + qcom,mactype = <0>; |
| 121 | + qcom,id = <4>; |
| 122 | + local-mac-address = [000000000000]; |
| 123 | + phy-handle = <&phy_3>; |
| 124 | + phy-mode = "sgmii"; |
| 125 | + }; |
| 126 | +}; |
| 127 | + |
| 128 | +&edma { |
| 129 | + status = "okay"; |
| 130 | +}; |
| 131 | + |
| 132 | +&mdio { |
| 133 | + status = "okay"; |
| 134 | + pinctrl-0 = <&mdio_pins>; |
| 135 | + pinctrl-names = "default"; |
| 136 | + reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>; |
| 137 | + |
| 138 | + phy_0: ethernet-phy@0 { |
| 139 | + reg = <4>; |
| 140 | + }; |
| 141 | + |
| 142 | + phy_1: ethernet-phy@1 { |
| 143 | + reg = <0>; |
| 144 | + }; |
| 145 | + |
| 146 | + phy_2: ethernet-phy@2 { |
| 147 | + reg = <1>; |
| 148 | + }; |
| 149 | + |
| 150 | + phy_3: ethernet-phy@3 { |
| 151 | + reg = <3>; |
| 152 | + }; |
| 153 | +}; |
| 154 | + |
| 155 | +&switch { |
| 156 | + status = "okay"; |
| 157 | + |
| 158 | + switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/ |
| 159 | + switch_mac_mode1 = <0xff>; /* mac mode for uniphy instance1*/ |
| 160 | + switch_mac_mode2 = <0xff>; /* mac mode for uniphy instance2*/ |
| 161 | + |
| 162 | + qcom,port_phyinfo { |
| 163 | + port@0 { |
| 164 | + port_id = <0x01>; |
| 165 | + phy_address = <0x00>; |
| 166 | + }; |
| 167 | + port@1 { |
| 168 | + port_id = <0x02>; |
| 169 | + phy_address = <0x01>; |
| 170 | + }; |
| 171 | + port@2 { |
| 172 | + port_id = <0x04>; |
| 173 | + phy_address = <0x03>; |
| 174 | + }; |
| 175 | + port@3 { |
| 176 | + port_id = <0x05>; |
| 177 | + phy_address = <0x04>; |
| 178 | + }; |
| 179 | + }; |
| 180 | +}; |
| 181 | + |
| 182 | +&qpic_bam { |
| 183 | + status = "okay"; |
| 184 | +}; |
| 185 | + |
| 186 | +&qpic_nand { |
| 187 | + status = "okay"; |
| 188 | + |
| 189 | + nand@0 { |
| 190 | + reg = <0>; |
| 191 | + |
| 192 | + nand-ecc-strength = <4>; |
| 193 | + nand-ecc-step-size = <512>; |
| 194 | + nand-bus-width = <8>; |
| 195 | + }; |
| 196 | +}; |
| 197 | + |
| 198 | +&wifi { |
| 199 | + status = "okay"; |
| 200 | +}; |
0 commit comments