Sumit Garg | d35b211 | 2022-07-12 12:42:08 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Qualcomm Robotics RB3 Development (dragonboard845c) board device |
| 4 | * tree source |
| 5 | * |
| 6 | * (C) Copyright 2022 Sumit Garg <sumit.garg@linaro.org> |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | |
Caleb Connolly | 7505ce1 | 2023-10-03 12:36:22 +0100 | [diff] [blame] | 11 | #include <dt-bindings/arm/qcom,ids.h> |
| 12 | |
Sumit Garg | d35b211 | 2022-07-12 12:42:08 +0530 | [diff] [blame] | 13 | #include "sdm845.dtsi" |
Caleb Connolly | 1a7474c | 2023-08-15 17:36:10 +0100 | [diff] [blame] | 14 | #include "pm8998.dtsi" |
Sumit Garg | d35b211 | 2022-07-12 12:42:08 +0530 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "Thundercomm Dragonboard 845c"; |
| 18 | compatible = "thundercomm,db845c", "qcom,sdm845"; |
Caleb Connolly | 7505ce1 | 2023-10-03 12:36:22 +0100 | [diff] [blame] | 19 | qcom,msm-id = <QCOM_ID_SDA845 0x20001>; |
| 20 | qcom,board-id = <QCOM_BOARD_ID(MTP, 0, 0) 0>; |
Sumit Garg | d35b211 | 2022-07-12 12:42:08 +0530 | [diff] [blame] | 21 | |
| 22 | chosen { |
| 23 | stdout-path = "serial0:115200n8"; |
| 24 | }; |
| 25 | |
| 26 | aliases { |
Vladimir Zapolskiy | 0e889a7 | 2023-04-21 20:50:41 +0300 | [diff] [blame] | 27 | serial0 = &uart9; |
Sumit Garg | d35b211 | 2022-07-12 12:42:08 +0530 | [diff] [blame] | 28 | }; |
| 29 | |
Caleb Connolly | 1a7474c | 2023-08-15 17:36:10 +0100 | [diff] [blame] | 30 | memory@80000000 { |
Sumit Garg | d35b211 | 2022-07-12 12:42:08 +0530 | [diff] [blame] | 31 | device_type = "memory"; |
| 32 | reg = <0 0x80000000 0 0xfdfa0000>; |
| 33 | }; |
Caleb Connolly | 3258149 | 2023-09-12 16:14:21 +0100 | [diff] [blame] | 34 | |
Caleb Connolly | 58e3277 | 2023-10-03 12:49:15 +0100 | [diff] [blame] | 35 | smbios { |
| 36 | compatible = "u-boot,sysinfo-smbios"; |
| 37 | |
| 38 | smbios { |
| 39 | system { |
| 40 | manufacturer = "Qualcomm Technologies, Inc."; |
| 41 | product = "Qualcomm Robotics Dragonboard 845c"; |
| 42 | }; |
| 43 | |
| 44 | baseboard { |
| 45 | manufacturer = "Thundercomm"; |
| 46 | product = "TurboX-845-SoM"; |
| 47 | }; |
| 48 | }; |
| 49 | }; |
| 50 | |
Caleb Connolly | 3258149 | 2023-09-12 16:14:21 +0100 | [diff] [blame] | 51 | pcie_usb_dual_pwr: vldo-3v3-regulator { |
| 52 | compatible = "regulator-gpio"; |
| 53 | regulator-name = "VLDO_3V3"; |
| 54 | |
| 55 | regulator-min-microvolt = <3300000>; |
| 56 | regulator-max-microvolt = <3300000>; |
| 57 | |
| 58 | enable-gpios = <&tlmm 90 GPIO_ACTIVE_HIGH>; |
| 59 | enable-active-high; |
| 60 | states = <0 0>, <1800000 1>; |
| 61 | }; |
Caleb Connolly | ebad404 | 2023-10-17 13:46:15 +0100 | [diff] [blame] | 62 | |
| 63 | gpio-keys { |
| 64 | compatible = "gpio-keys"; |
| 65 | |
| 66 | key-vol-up { |
| 67 | label = "Volume Up"; |
| 68 | linux,code = <KEY_UP>; |
| 69 | gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>; |
| 70 | }; |
| 71 | }; |
Sumit Garg | d35b211 | 2022-07-12 12:42:08 +0530 | [diff] [blame] | 72 | }; |
| 73 | |
Caleb Connolly | 5df679a | 2023-11-30 16:13:50 +0000 | [diff] [blame] | 74 | &pm8998_resin { |
| 75 | status = "okay"; |
| 76 | }; |
| 77 | |
Caleb Connolly | 1a7474c | 2023-08-15 17:36:10 +0100 | [diff] [blame] | 78 | &uart9 { |
| 79 | status = "okay"; |
| 80 | }; |
Caleb Connolly | 3258149 | 2023-09-12 16:14:21 +0100 | [diff] [blame] | 81 | |
Caleb Connolly | ff0a7b4 | 2023-10-03 12:48:21 +0100 | [diff] [blame] | 82 | &ufs_mem_hc { |
| 83 | status = "okay"; |
| 84 | }; |
| 85 | |
| 86 | &ufs_mem_phy { |
| 87 | status = "okay"; |
| 88 | }; |
| 89 | |
Caleb Connolly | 6d159ed | 2023-12-04 15:12:07 +0000 | [diff] [blame^] | 90 | &usb_1 { |
| 91 | status = "okay"; |
| 92 | qcom,select-utmi-as-pipe-clk; |
| 93 | }; |
| 94 | |
| 95 | &usb_1_dwc3 { |
| 96 | dr_mode = "peripheral"; |
| 97 | |
| 98 | /* We don't support superspeed in u-boot so remove the SSPHY */ |
| 99 | phys = <&usb_1_hsphy>; |
| 100 | phy-names = "usb2-phy"; |
| 101 | |
| 102 | /* fastest mode for USB 2 */ |
| 103 | maximum-speed = "high-speed"; |
| 104 | }; |
| 105 | |
| 106 | &usb_1_hsphy { |
| 107 | /* Remove ref clk because rmphcc isn't available */ |
| 108 | clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>; |
| 109 | clock-names = "cfg_ahb"; |
| 110 | |
| 111 | status = "okay"; |
| 112 | }; |
| 113 | |
Caleb Connolly | 3258149 | 2023-09-12 16:14:21 +0100 | [diff] [blame] | 114 | &usb_2 { |
| 115 | status = "okay"; |
| 116 | qcom,select-utmi-as-pipe-clk; |
| 117 | }; |
| 118 | |
| 119 | &usb_2_dwc3 { |
| 120 | dr_mode = "host"; |
| 121 | |
| 122 | /* We don't support superspeed in u-boot so remove the SSPHY */ |
| 123 | phys = <&usb_2_hsphy>; |
| 124 | phy-names = "usb2-phy"; |
| 125 | |
| 126 | /* fastest mode for USB 2 */ |
| 127 | maximum-speed = "high-speed"; |
| 128 | |
| 129 | vbus-supply = <&pcie_usb_dual_pwr>; |
| 130 | }; |
| 131 | |
| 132 | &usb_2_hsphy { |
| 133 | /* Remove ref clk because rmphcc isn't available */ |
| 134 | clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>; |
| 135 | clock-names = "cfg_ahb"; |
| 136 | |
| 137 | status = "okay"; |
| 138 | }; |