Sumit Garg | 89a8ec9 | 2022-07-12 12:42:12 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Qualcomm QCS404 based evaluation board device tree source |
| 4 | * |
| 5 | * (C) Copyright 2022 Sumit Garg <sumit.garg@linaro.org> |
| 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | #include "skeleton64.dtsi" |
| 11 | #include <dt-bindings/gpio/gpio.h> |
Sumit Garg | 89a8ec9 | 2022-07-12 12:42:12 +0530 | [diff] [blame] | 12 | #include <dt-bindings/clock/qcom,gcc-qcs404.h> |
| 13 | |
| 14 | / { |
| 15 | model = "Qualcomm Technologies, Inc. QCS404 EVB"; |
| 16 | compatible = "qcom,qcs404-evb", "qcom,qcs404"; |
| 17 | #address-cells = <0x2>; |
| 18 | #size-cells = <0x2>; |
| 19 | |
| 20 | chosen { |
| 21 | stdout-path = "serial0:115200n8"; |
| 22 | }; |
| 23 | |
| 24 | aliases { |
| 25 | serial0 = &debug_uart; |
Sumit Garg | d337c1f | 2023-02-01 19:29:01 +0530 | [diff] [blame] | 26 | i2c0 = &blsp1_i2c0; |
| 27 | i2c1 = &blsp1_i2c1; |
| 28 | i2c2 = &blsp1_i2c2; |
| 29 | i2c3 = &blsp1_i2c3; |
| 30 | i2c4 = &blsp1_i2c4; |
Sumit Garg | 89a8ec9 | 2022-07-12 12:42:12 +0530 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | memory { |
| 34 | device_type = "memory"; |
| 35 | reg = <0 0x80000000 0 0x40000000>; |
| 36 | }; |
| 37 | |
| 38 | soc { |
| 39 | #address-cells = <0x1>; |
| 40 | #size-cells = <0x1>; |
| 41 | ranges = <0x0 0x0 0x0 0xffffffff>; |
| 42 | compatible = "simple-bus"; |
| 43 | |
Sumit Garg | f974485 | 2023-02-01 19:28:56 +0530 | [diff] [blame] | 44 | soc_gpios: pinctrl_north@1300000 { |
Sumit Garg | b7572e5 | 2022-07-27 13:52:04 +0530 | [diff] [blame] | 45 | compatible = "qcom,qcs404-pinctrl"; |
Sumit Garg | 89a8ec9 | 2022-07-12 12:42:12 +0530 | [diff] [blame] | 46 | reg = <0x1300000 0x200000>; |
Sumit Garg | 8ed952d | 2023-02-01 19:28:49 +0530 | [diff] [blame] | 47 | gpio-controller; |
| 48 | gpio-count = <120>; |
| 49 | gpio-bank-name="soc"; |
| 50 | #gpio-cells = <2>; |
Sumit Garg | 89a8ec9 | 2022-07-12 12:42:12 +0530 | [diff] [blame] | 51 | |
| 52 | blsp1_uart2: uart { |
| 53 | pins = "GPIO_17", "GPIO_18"; |
| 54 | function = "blsp_uart2"; |
| 55 | }; |
Sumit Garg | f974485 | 2023-02-01 19:28:56 +0530 | [diff] [blame] | 56 | |
Sumit Garg | d337c1f | 2023-02-01 19:29:01 +0530 | [diff] [blame] | 57 | blsp1_i2c0_default: blsp1-i2c0-default { |
| 58 | pins = "GPIO_32", "GPIO_33"; |
| 59 | function = "blsp_i2c0"; |
| 60 | }; |
| 61 | |
| 62 | blsp1_i2c1_default: blsp1-i2c1-default { |
| 63 | pins = "GPIO_24", "GPIO_25"; |
| 64 | function = "blsp_i2c1"; |
| 65 | }; |
| 66 | |
| 67 | blsp1_i2c2_default: blsp1-i2c2-default { |
| 68 | sda { |
| 69 | pins = "GPIO_19"; |
| 70 | function = "blsp_i2c_sda_a2"; |
| 71 | }; |
| 72 | |
| 73 | scl { |
| 74 | pins = "GPIO_20"; |
| 75 | function = "blsp_i2c_scl_a2"; |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | blsp1_i2c3_default: blsp1-i2c3-default { |
| 80 | pins = "GPIO_84", "GPIO_85"; |
| 81 | function = "blsp_i2c3"; |
| 82 | }; |
| 83 | |
| 84 | blsp1_i2c4_default: blsp1-i2c4-default { |
| 85 | pins = "GPIO_117", "GPIO_118"; |
| 86 | function = "blsp_i2c4"; |
| 87 | }; |
| 88 | |
Sumit Garg | f974485 | 2023-02-01 19:28:56 +0530 | [diff] [blame] | 89 | ethernet_defaults: ethernet-defaults { |
| 90 | int { |
| 91 | pins = "GPIO_61"; |
| 92 | function = "rgmii_int"; |
| 93 | bias-disable; |
| 94 | drive-strength = <2>; |
| 95 | }; |
| 96 | mdc { |
| 97 | pins = "GPIO_76"; |
| 98 | function = "rgmii_mdc"; |
| 99 | bias-pull-up; |
| 100 | }; |
| 101 | mdio { |
| 102 | pins = "GPIO_75"; |
| 103 | function = "rgmii_mdio"; |
| 104 | bias-pull-up; |
| 105 | }; |
| 106 | tx { |
| 107 | pins = "GPIO_67", "GPIO_66", "GPIO_65", "GPIO_64"; |
| 108 | function = "rgmii_tx"; |
| 109 | bias-pull-up; |
| 110 | drive-strength = <16>; |
| 111 | }; |
| 112 | rx { |
| 113 | pins = "GPIO_73", "GPIO_72", "GPIO_71", "GPIO_70"; |
| 114 | function = "rgmii_rx"; |
| 115 | bias-disable; |
| 116 | drive-strength = <2>; |
| 117 | }; |
| 118 | tx-ctl { |
| 119 | pins = "GPIO_68"; |
| 120 | function = "rgmii_ctl"; |
| 121 | bias-pull-up; |
| 122 | drive-strength = <16>; |
| 123 | }; |
| 124 | rx-ctl { |
| 125 | pins = "GPIO_74"; |
| 126 | function = "rgmii_ctl"; |
| 127 | bias-disable; |
| 128 | drive-strength = <2>; |
| 129 | }; |
| 130 | tx-ck { |
| 131 | pins = "GPIO_63"; |
| 132 | function = "rgmii_ck"; |
| 133 | bias-pull-up; |
| 134 | drive-strength = <16>; |
| 135 | }; |
| 136 | rx-ck { |
| 137 | pins = "GPIO_69"; |
| 138 | function = "rgmii_ck"; |
| 139 | bias-disable; |
| 140 | drive-strength = <2>; |
| 141 | }; |
| 142 | }; |
Sumit Garg | 89a8ec9 | 2022-07-12 12:42:12 +0530 | [diff] [blame] | 143 | }; |
| 144 | |
Sumit Garg | d337c1f | 2023-02-01 19:29:01 +0530 | [diff] [blame] | 145 | blsp1_i2c0: i2c@78b5000 { |
| 146 | compatible = "qcom,i2c-qup-v2.2.1"; |
| 147 | reg = <0x078b5000 0x600>; |
| 148 | clocks = <&gcc GCC_BLSP1_AHB_CLK>, |
| 149 | <&gcc GCC_BLSP1_QUP0_I2C_APPS_CLK>; |
| 150 | clock-names = "iface", "core"; |
| 151 | pinctrl-names = "default"; |
| 152 | pinctrl-0 = <&blsp1_i2c0_default>; |
| 153 | #address-cells = <1>; |
| 154 | #size-cells = <0>; |
| 155 | }; |
| 156 | |
| 157 | blsp1_i2c1: i2c@78b6000 { |
| 158 | compatible = "qcom,i2c-qup-v2.2.1"; |
| 159 | reg = <0x078b6000 0x600>; |
| 160 | clocks = <&gcc GCC_BLSP1_AHB_CLK>, |
| 161 | <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>; |
| 162 | clock-names = "iface", "core"; |
| 163 | pinctrl-names = "default"; |
| 164 | pinctrl-0 = <&blsp1_i2c1_default>; |
| 165 | #address-cells = <1>; |
| 166 | #size-cells = <0>; |
| 167 | }; |
| 168 | |
| 169 | blsp1_i2c2: i2c@78b7000 { |
| 170 | compatible = "qcom,i2c-qup-v2.2.1"; |
| 171 | reg = <0x078b7000 0x600>; |
| 172 | clocks = <&gcc GCC_BLSP1_AHB_CLK>, |
| 173 | <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; |
| 174 | clock-names = "iface", "core"; |
| 175 | pinctrl-names = "default"; |
| 176 | pinctrl-0 = <&blsp1_i2c2_default>; |
| 177 | #address-cells = <1>; |
| 178 | #size-cells = <0>; |
| 179 | }; |
| 180 | |
| 181 | blsp1_i2c3: i2c@78b8000 { |
| 182 | compatible = "qcom,i2c-qup-v2.2.1"; |
| 183 | reg = <0x078b8000 0x600>; |
| 184 | clocks = <&gcc GCC_BLSP1_AHB_CLK>, |
| 185 | <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>; |
| 186 | clock-names = "iface", "core"; |
| 187 | pinctrl-names = "default"; |
| 188 | pinctrl-0 = <&blsp1_i2c3_default>; |
| 189 | #address-cells = <1>; |
| 190 | #size-cells = <0>; |
| 191 | }; |
| 192 | |
| 193 | blsp1_i2c4: i2c@78b9000 { |
| 194 | compatible = "qcom,i2c-qup-v2.2.1"; |
| 195 | reg = <0x078b9000 0x600>; |
| 196 | clocks = <&gcc GCC_BLSP1_AHB_CLK>, |
| 197 | <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>; |
| 198 | clock-names = "iface", "core"; |
| 199 | pinctrl-names = "default"; |
| 200 | pinctrl-0 = <&blsp1_i2c4_default>; |
| 201 | #address-cells = <1>; |
| 202 | #size-cells = <0>; |
| 203 | }; |
| 204 | |
Sumit Garg | 89a8ec9 | 2022-07-12 12:42:12 +0530 | [diff] [blame] | 205 | gcc: clock-controller@1800000 { |
| 206 | compatible = "qcom,gcc-qcs404"; |
| 207 | reg = <0x1800000 0x80000>; |
| 208 | #address-cells = <0x1>; |
| 209 | #size-cells = <0x0>; |
Sumit Garg | d15d670 | 2022-08-04 19:57:16 +0530 | [diff] [blame] | 210 | #clock-cells = <1>; |
Sumit Garg | 89a8ec9 | 2022-07-12 12:42:12 +0530 | [diff] [blame] | 211 | }; |
| 212 | |
Sumit Garg | dc160a7 | 2022-08-04 19:57:13 +0530 | [diff] [blame] | 213 | reset: gcc-reset@1800000 { |
| 214 | compatible = "qcom,gcc-reset-qcs404"; |
| 215 | reg = <0x1800000 0x80000>; |
| 216 | #reset-cells = <1>; |
| 217 | }; |
| 218 | |
Sumit Garg | 89a8ec9 | 2022-07-12 12:42:12 +0530 | [diff] [blame] | 219 | debug_uart: serial@78b1000 { |
| 220 | compatible = "qcom,msm-uartdm-v1.4"; |
| 221 | reg = <0x78b1000 0x200>; |
| 222 | clock = <&gcc GCC_BLSP1_UART2_APPS_CLK>, |
| 223 | <&gcc GCC_BLSP1_AHB_CLK>; |
| 224 | bit-rate = <0xFF>; |
| 225 | pinctrl-names = "uart"; |
| 226 | pinctrl-0 = <&blsp1_uart2>; |
| 227 | }; |
| 228 | |
| 229 | sdhci@7804000 { |
| 230 | compatible = "qcom,sdhci-msm-v5"; |
| 231 | reg = <0x7804000 0x1000 0x7805000 0x1000>; |
| 232 | clock = <&gcc GCC_SDCC1_APPS_CLK>, |
| 233 | <&gcc GCC_SDCC1_AHB_CLK>; |
| 234 | bus-width = <0x8>; |
| 235 | index = <0x0>; |
| 236 | non-removable; |
| 237 | mmc-ddr-1_8v; |
| 238 | mmc-hs400-1_8v; |
| 239 | }; |
Sumit Garg | d15d670 | 2022-08-04 19:57:16 +0530 | [diff] [blame] | 240 | |
| 241 | usb3_phy: phy@78000 { |
| 242 | compatible = "qcom,usb-ss-28nm-phy"; |
| 243 | #phy-cells = <0>; |
| 244 | reg = <0x78000 0x400>; |
| 245 | clocks = <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>, |
| 246 | <&gcc GCC_USB3_PHY_PIPE_CLK>; |
| 247 | clock-names = "ahb", "pipe"; |
| 248 | resets = <&reset GCC_USB3_PHY_BCR>, |
| 249 | <&reset GCC_USB3PHY_PHY_BCR>; |
| 250 | reset-names = "com", "phy"; |
| 251 | }; |
| 252 | |
| 253 | usb2_phy_prim: phy@7a000 { |
| 254 | compatible = "qcom,usb-hs-28nm-femtophy"; |
| 255 | #phy-cells = <0>; |
| 256 | reg = <0x7a000 0x200>; |
| 257 | clocks = <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>, |
| 258 | <&gcc GCC_USB2A_PHY_SLEEP_CLK>; |
| 259 | clock-names = "ahb", "sleep"; |
| 260 | resets = <&reset GCC_USB_HS_PHY_CFG_AHB_BCR>, |
| 261 | <&reset GCC_USB2A_PHY_BCR>; |
| 262 | reset-names = "phy", "por"; |
| 263 | }; |
| 264 | |
| 265 | usb2_phy_sec: phy@7c000 { |
| 266 | compatible = "qcom,usb-hs-28nm-femtophy"; |
| 267 | #phy-cells = <0>; |
| 268 | reg = <0x7c000 0x200>; |
| 269 | clocks = <&gcc GCC_USB_HS_PHY_CFG_AHB_CLK>, |
| 270 | <&gcc GCC_USB2A_PHY_SLEEP_CLK>; |
| 271 | clock-names = "ahb", "sleep"; |
| 272 | resets = <&reset GCC_QUSB2_PHY_BCR>, |
| 273 | <&reset GCC_USB2_HS_PHY_ONLY_BCR>; |
| 274 | reset-names = "phy", "por"; |
| 275 | }; |
| 276 | |
| 277 | usb3: usb@7678800 { |
| 278 | compatible = "qcom,dwc3"; |
| 279 | reg = <0x7678800 0x400>; |
| 280 | #address-cells = <1>; |
| 281 | #size-cells = <1>; |
| 282 | ranges; |
| 283 | clocks = <&gcc GCC_USB30_MASTER_CLK>, |
| 284 | <&gcc GCC_SYS_NOC_USB3_CLK>, |
| 285 | <&gcc GCC_USB30_SLEEP_CLK>, |
| 286 | <&gcc GCC_USB30_MOCK_UTMI_CLK>; |
| 287 | clock-names = "core", "iface", "sleep", "mock_utmi"; |
| 288 | |
| 289 | dwc3@7580000 { |
| 290 | compatible = "snps,dwc3"; |
| 291 | reg = <0x7580000 0xcd00>; |
| 292 | phys = <&usb2_phy_prim>, <&usb3_phy>; |
| 293 | phy-names = "usb2-phy", "usb3-phy"; |
| 294 | dr_mode = "host"; |
| 295 | snps,has-lpm-erratum; |
| 296 | snps,hird-threshold = /bits/ 8 <0x10>; |
| 297 | snps,usb3_lpm_capable; |
| 298 | maximum-speed = "super-speed"; |
| 299 | }; |
| 300 | }; |
| 301 | |
| 302 | usb2: usb@79b8800 { |
| 303 | compatible = "qcom,dwc3"; |
| 304 | reg = <0x79b8800 0x400>; |
| 305 | #address-cells = <1>; |
| 306 | #size-cells = <1>; |
| 307 | ranges; |
| 308 | clocks = <&gcc GCC_USB_HS_SYSTEM_CLK>, |
| 309 | <&gcc GCC_PCNOC_USB2_CLK>, |
| 310 | <&gcc GCC_USB_HS_INACTIVITY_TIMERS_CLK>, |
| 311 | <&gcc GCC_USB20_MOCK_UTMI_CLK>; |
| 312 | clock-names = "core", "iface", "sleep", "mock_utmi"; |
| 313 | |
| 314 | dwc3@78c0000 { |
| 315 | compatible = "snps,dwc3"; |
| 316 | reg = <0x78c0000 0xcc00>; |
| 317 | phys = <&usb2_phy_sec>; |
| 318 | phy-names = "usb2-phy"; |
| 319 | dr_mode = "peripheral"; |
| 320 | snps,has-lpm-erratum; |
| 321 | snps,hird-threshold = /bits/ 8 <0x10>; |
| 322 | snps,usb3_lpm_capable; |
| 323 | maximum-speed = "high-speed"; |
| 324 | }; |
| 325 | }; |
Sumit Garg | d04a52e | 2022-08-04 19:57:19 +0530 | [diff] [blame] | 326 | |
Sumit Garg | f974485 | 2023-02-01 19:28:56 +0530 | [diff] [blame] | 327 | ethernet: ethernet@7a80000 { |
| 328 | compatible = "qcom,qcs404-ethqos"; |
| 329 | reg = <0x07a80000 0x10000>, |
| 330 | <0x07a96000 0x100>; |
| 331 | reg-names = "stmmaceth", "rgmii"; |
| 332 | clock-names = "stmmaceth", "pclk", "ptp_ref", "rgmii"; |
| 333 | clocks = <&gcc GCC_ETH_AXI_CLK>, |
| 334 | <&gcc GCC_ETH_SLAVE_AHB_CLK>, |
| 335 | <&gcc GCC_ETH_PTP_CLK>, |
| 336 | <&gcc GCC_ETH_RGMII_CLK>; |
| 337 | |
| 338 | resets = <&reset GCC_EMAC_BCR>; |
| 339 | reset-names = "emac"; |
| 340 | |
| 341 | snps,tso; |
| 342 | rx-fifo-depth = <4096>; |
| 343 | tx-fifo-depth = <4096>; |
| 344 | |
| 345 | snps,reset-gpio = <&soc_gpios 60 GPIO_ACTIVE_LOW>; |
| 346 | snps,reset-active-low; |
| 347 | snps,reset-delays-us = <0 10000 10000>; |
| 348 | |
| 349 | pinctrl-names = "default"; |
| 350 | pinctrl-0 = <ðernet_defaults>; |
| 351 | |
| 352 | phy-handle = <&phy1>; |
| 353 | phy-mode = "rgmii"; |
| 354 | max-speed = <1000>; |
| 355 | |
| 356 | mdio { |
| 357 | #address-cells = <0x1>; |
| 358 | #size-cells = <0x0>; |
| 359 | compatible = "snps,dwmac-mdio"; |
| 360 | phy1: phy@3 { |
| 361 | compatible = "ethernet-phy-ieee802.3-c22"; |
| 362 | device_type = "ethernet-phy"; |
| 363 | reg = <0x3>; |
| 364 | }; |
| 365 | }; |
| 366 | }; |
| 367 | |
Sumit Garg | d04a52e | 2022-08-04 19:57:19 +0530 | [diff] [blame] | 368 | spmi@200f000 { |
| 369 | compatible = "qcom,spmi-pmic-arb"; |
| 370 | reg = <0x200f000 0x1000 |
| 371 | 0x2400000 0x400000 |
| 372 | 0x2c00000 0x400000>; |
| 373 | #address-cells = <0x1>; |
| 374 | #size-cells = <0x1>; |
| 375 | |
| 376 | pms405_0: pms405@0 { |
| 377 | compatible = "qcom,spmi-pmic"; |
| 378 | reg = <0x0 0x1>; |
| 379 | #address-cells = <0x1>; |
| 380 | #size-cells = <0x1>; |
| 381 | |
| 382 | pms405_gpios: pms405_gpios@c000 { |
| 383 | compatible = "qcom,pms405-gpio"; |
| 384 | reg = <0xc000 0x400>; |
| 385 | gpio-controller; |
| 386 | gpio-count = <12>; |
| 387 | #gpio-cells = <2>; |
| 388 | gpio-bank-name="pmic"; |
| 389 | }; |
| 390 | }; |
| 391 | }; |
Sumit Garg | 89a8ec9 | 2022-07-12 12:42:12 +0530 | [diff] [blame] | 392 | }; |
| 393 | }; |
| 394 | |
| 395 | #include "qcs404-evb-uboot.dtsi" |