-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
qualcommax: ipq60xx: add glinet gl-ax1800 & gl-axt1800 support #14806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6000-gl-ax1800.dts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| // SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
|
||
| /dts-v1/; | ||
|
|
||
| #include "ipq6000-glinet.dtsi" | ||
|
|
||
| / { | ||
| model = "GL Technologies, Inc. AX1800"; | ||
| compatible = "glinet,gl-ax1800", "qcom,ipq6018"; | ||
|
|
||
| aliases { | ||
| ethernet3 = &dp4; | ||
| ethernet4 = &dp5; | ||
| }; | ||
| }; | ||
|
|
||
| &qca8075 { | ||
| qca8075_3: ethernet-phy@3 { | ||
| compatible = "ethernet-phy-ieee802.3-c22"; | ||
| reg = <3>; | ||
| }; | ||
|
|
||
| qca8075_4: ethernet-phy@4 { | ||
| compatible = "ethernet-phy-ieee802.3-c22"; | ||
| reg = <4>; | ||
| }; | ||
| }; | ||
|
|
||
| &switch { | ||
| switch_lan_bmp = <(ESS_PORT2|ESS_PORT3|ESS_PORT4|ESS_PORT5)>; /* lan port bitmap */ | ||
|
|
||
| qcom,port_phyinfo { | ||
| port@3 { | ||
| port_id = <4>; | ||
| phy_address = <3>; | ||
| }; | ||
| port@4 { | ||
| port_id = <5>; | ||
| phy_address = <4>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &dp4 { | ||
| phy-handle = <&qca8075_3>; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &dp5 { | ||
| phy-handle = <&qca8075_4>; | ||
| phy-mode = "psgmii"; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &wifi { | ||
| qcom,ath11k-calibration-variant = "GL-iNet-GL-AX1800"; | ||
| }; |
115 changes: 115 additions & 0 deletions
115
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq6000-gl-axt1800.dts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| // SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
|
||
| /dts-v1/; | ||
|
|
||
| #include "ipq6000-glinet.dtsi" | ||
|
|
||
| / { | ||
| model = "GL Technologies, Inc. AXT1800"; | ||
| compatible = "glinet,gl-axt1800", "qcom,ipq6018"; | ||
|
|
||
| aliases { | ||
| sdhc0 = &sdhc_1; | ||
| }; | ||
|
|
||
| V30:V30 { | ||
| compatible = "regulator-fixed"; | ||
| regulator-name = "vmmc-supply"; | ||
| regulator-min-microvolt = <3000000>; | ||
| regulator-max-microvolt = <3000000>; | ||
| regulator-always-on; | ||
| }; | ||
|
|
||
| V18:V18 { | ||
| compatible = "regulator-fixed"; | ||
| regulator-name = "vqmmc-supply"; | ||
| regulator-min-microvolt = <1800000>; | ||
| regulator-max-microvolt = <1800000>; | ||
| regulator-always-on; | ||
| }; | ||
| }; | ||
|
|
||
|
|
||
| &tlmm { | ||
|
|
||
| sd_pins: sd_pins { | ||
| sd { | ||
| pins = "gpio62"; | ||
| function = "sd_card"; | ||
| bias-pull-up; | ||
| }; | ||
| ldo { | ||
| pins = "gpio66"; | ||
| function = "gpio"; | ||
| bias-pull-up; | ||
| }; | ||
| }; | ||
|
|
||
| pwm_pins: pwm_pinmux { | ||
| pwm { | ||
| pins = "gpio30"; | ||
| function = "pwm13"; | ||
| drive-strength = <8>; | ||
| }; | ||
| }; | ||
|
|
||
| fan_pins: fan_pins { | ||
| pwr { | ||
| pins = "gpio29"; | ||
| function = "gpio"; | ||
| bias-pull-up; | ||
| output-high; | ||
| }; | ||
| speed { | ||
| pins = "gpio31"; | ||
| function = "gpio"; | ||
| drive-strength = <8>; | ||
| bias-pull-down; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &soc { | ||
| fan0: pwm-fan { | ||
| compatible = "pwm-fan"; | ||
| pinctrl-0 = <&fan_pins>; | ||
| pinctrl-names = "default"; | ||
| cooling-min-state = <0>; | ||
| cooling-max-state = <255>; | ||
| #cooling-cells = <2>; | ||
| pwms = <&pwm 1 40000 0>; | ||
| cooling-levels = <0 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 | ||
| 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 37 38 39 | ||
| 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | ||
| 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | ||
| 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | ||
| 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | ||
| 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | ||
| 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | ||
| 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | ||
| 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | ||
| 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | ||
| 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | ||
| 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>; | ||
| }; | ||
| }; | ||
|
|
||
| &pwm{ | ||
| pinctrl-0 = <&pwm_pins>; | ||
| pinctrl-names = "default"; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &sdhc_1 { | ||
| pinctrl-0 = <&sd_pins>; | ||
| pinctrl-names = "default"; | ||
| cd-gpios = <&tlmm 62 1>; | ||
| sd-ldo-gpios = <&tlmm 66 1>; | ||
| vqmmc-supply = <&V18>; | ||
| vmmc-supply = <&V30>; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &wifi { | ||
| qcom,ath11k-calibration-variant = "GL-iNet-GL-AXT1800"; | ||
| }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix indentation all through the DTS files, its broken in so many places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed