|
5 | 5 |
|
6 | 6 | /dts-v1/; |
7 | 7 |
|
| 8 | +#include <dt-bindings/leds/common.h> |
8 | 9 | #include "hamoa-iot-som.dtsi" |
9 | 10 | #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
10 | 11 |
|
|
59 | 60 | stdout-path = "serial0:115200n8"; |
60 | 61 | }; |
61 | 62 |
|
| 63 | + connector3 { |
| 64 | + compatible = "usb-a-connector"; |
| 65 | + label = "USB-3-Type-A"; |
| 66 | + power-role = "source"; |
| 67 | + |
| 68 | + vbus-supply = <®ulator_usb3_vbus>; |
| 69 | + |
| 70 | + port { |
| 71 | + connector_3_in: endpoint { |
| 72 | + }; |
| 73 | + }; |
| 74 | + }; |
| 75 | + |
| 76 | + connector6 { |
| 77 | + compatible = "usb-a-connector"; |
| 78 | + label = "USB-6-Type-A"; |
| 79 | + power-role = "source"; |
| 80 | + |
| 81 | + vbus-supply = <®ulator_usb6_vbus>; |
| 82 | + |
| 83 | + port { |
| 84 | + connector_4_in: endpoint { |
| 85 | + }; |
| 86 | + }; |
| 87 | + }; |
| 88 | + |
62 | 89 | pmic-glink { |
63 | 90 | compatible = "qcom,x1e80100-pmic-glink", |
64 | 91 | "qcom,sm8550-pmic-glink", |
|
178 | 205 | }; |
179 | 206 | }; |
180 | 207 |
|
181 | | - regulator-usb3-vbus { |
182 | | - compatible = "regulator-fixed"; |
183 | | - regulator-name = "USB3_VBUS"; |
184 | | - gpio = <&pm8550ve_9_gpios 4 GPIO_ACTIVE_HIGH>; |
185 | | - pinctrl-0 = <&usb3_en>; |
186 | | - pinctrl-names = "default"; |
187 | | - enable-active-high; |
188 | | - regulator-always-on; |
189 | | - }; |
190 | | - |
191 | | - regulator-usb6-vbus { |
192 | | - compatible = "regulator-fixed"; |
193 | | - regulator-name = "USB6_VBUS"; |
194 | | - gpio = <&pm8550ve_9_gpios 5 GPIO_ACTIVE_HIGH>; |
195 | | - pinctrl-0 = <&usb6_en>; |
196 | | - pinctrl-names = "default"; |
197 | | - enable-active-high; |
198 | | - regulator-always-on; |
199 | | - }; |
200 | | - |
201 | 208 | vreg_edp_3p3: regulator-edp-3p3 { |
202 | 209 | compatible = "regulator-fixed"; |
203 | 210 |
|
|
224 | 231 | gpio = <&pmc8380_3_gpios 10 GPIO_ACTIVE_HIGH>; |
225 | 232 | enable-active-high; |
226 | 233 |
|
227 | | - pinctrl-names = "default"; |
228 | 234 | pinctrl-0 = <&edp_bl_reg_en>; |
| 235 | + pinctrl-names = "default"; |
229 | 236 |
|
230 | 237 | regulator-boot-on; |
231 | 238 | }; |
|
433 | 440 | regulator-boot-on; |
434 | 441 | }; |
435 | 442 |
|
| 443 | + regulator_usb3_vbus: regulator-usb3-vbus { |
| 444 | + compatible = "regulator-fixed"; |
| 445 | + regulator-name = "USB3_VBUS"; |
| 446 | + gpio = <&pm8550ve_9_gpios 4 GPIO_ACTIVE_HIGH>; |
| 447 | + pinctrl-0 = <&usb3_en>; |
| 448 | + pinctrl-names = "default"; |
| 449 | + enable-active-high; |
| 450 | + regulator-always-on; |
| 451 | + }; |
| 452 | + |
| 453 | + regulator_usb6_vbus: regulator-usb6-vbus { |
| 454 | + compatible = "regulator-fixed"; |
| 455 | + regulator-name = "USB6_VBUS"; |
| 456 | + gpio = <&pm8550ve_9_gpios 5 GPIO_ACTIVE_HIGH>; |
| 457 | + pinctrl-0 = <&usb6_en>; |
| 458 | + pinctrl-names = "default"; |
| 459 | + enable-active-high; |
| 460 | + regulator-always-on; |
| 461 | + }; |
| 462 | + |
436 | 463 | vph_pwr: regulator-vph-pwr { |
437 | 464 | compatible = "regulator-fixed"; |
438 | 465 |
|
|
831 | 858 | }; |
832 | 859 |
|
833 | 860 | &lpass_tlmm { |
834 | | - spkr_01_sd_n_active: spkr-01-sd-n-active-state { |
| 861 | + spkr_0_sd_n_active: spkr-0-sd-n-active-state { |
835 | 862 | pins = "gpio12"; |
836 | 863 | function = "gpio"; |
837 | 864 | drive-strength = <16>; |
838 | 865 | bias-disable; |
839 | | - output-low; |
840 | 866 | }; |
841 | 867 |
|
842 | | - spkr_23_sd_n_active: spkr-23-sd-n-active-state { |
| 868 | + spkr_1_sd_n_active: spkr-1-sd-n-active-state { |
843 | 869 | pins = "gpio13"; |
844 | 870 | function = "gpio"; |
845 | 871 | drive-strength = <16>; |
846 | 872 | bias-disable; |
847 | | - output-low; |
| 873 | + }; |
| 874 | + |
| 875 | + spkr_2_sd_n_active: spkr-2-sd-n-active-state { |
| 876 | + pins = "gpio17"; |
| 877 | + function = "gpio"; |
| 878 | + drive-strength = <16>; |
| 879 | + bias-disable; |
| 880 | + }; |
| 881 | + |
| 882 | + spkr_3_sd_n_active: spkr-3-sd-n-active-state { |
| 883 | + pins = "gpio18"; |
| 884 | + function = "gpio"; |
| 885 | + drive-strength = <16>; |
| 886 | + bias-disable; |
848 | 887 | }; |
849 | 888 | }; |
850 | 889 |
|
|
922 | 961 | status = "okay"; |
923 | 962 | }; |
924 | 963 |
|
925 | | -&pcie3_port { |
| 964 | +&pcie3_port0 { |
926 | 965 | vpcie12v-supply = <&vreg_pcie_12v>; |
927 | 966 | vpcie3v3-supply = <&vreg_pcie_3v3>; |
928 | 967 | vpcie3v3aux-supply = <&vreg_pcie_3v3_aux>; |
| 968 | + |
| 969 | + reset-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; |
| 970 | + wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>; |
929 | 971 | }; |
930 | 972 |
|
931 | 973 | &pcie4_port0 { |
| 974 | + reset-gpios = <&tlmm 146 GPIO_ACTIVE_LOW>; |
| 975 | + wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>; |
| 976 | + |
932 | 977 | wifi@0 { |
933 | 978 | compatible = "pci17cb,1107"; |
934 | 979 | reg = <0x10000 0x0 0x0 0x0 0x0>; |
|
949 | 994 | vddpe-3v3-supply = <&vreg_wwan>; |
950 | 995 | }; |
951 | 996 |
|
| 997 | +&pcie5_port0 { |
| 998 | + reset-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>; |
| 999 | + wake-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>; |
| 1000 | +}; |
| 1001 | + |
952 | 1002 | &pcie6a { |
953 | 1003 | vddpe-3v3-supply = <&vreg_nvme>; |
954 | 1004 | }; |
955 | 1005 |
|
| 1006 | +&pcie6a_port0 { |
| 1007 | + reset-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>; |
| 1008 | + wake-gpios = <&tlmm 154 GPIO_ACTIVE_LOW>; |
| 1009 | +}; |
| 1010 | + |
956 | 1011 | &pm8550_gpios { |
957 | 1012 | rtmr0_default: rtmr0-reset-n-active-state { |
958 | 1013 | pins = "gpio10"; |
|
1011 | 1066 | }; |
1012 | 1067 | }; |
1013 | 1068 |
|
| 1069 | +&pm8550_pwm { |
| 1070 | + status = "okay"; |
| 1071 | + |
| 1072 | + multi-led { |
| 1073 | + color = <LED_COLOR_ID_MULTI>; |
| 1074 | + function = LED_FUNCTION_STATUS; |
| 1075 | + |
| 1076 | + #address-cells = <1>; |
| 1077 | + #size-cells = <0>; |
| 1078 | + |
| 1079 | + led@1 { |
| 1080 | + reg = <1>; |
| 1081 | + color = <LED_COLOR_ID_RED>; |
| 1082 | + }; |
| 1083 | + |
| 1084 | + led@2 { |
| 1085 | + reg = <2>; |
| 1086 | + color = <LED_COLOR_ID_GREEN>; |
| 1087 | + }; |
| 1088 | + }; |
| 1089 | +}; |
| 1090 | + |
1014 | 1091 | &pmc8380_3_gpios { |
1015 | 1092 | edp_bl_en: edp-bl-en-state { |
1016 | 1093 | pins = "gpio4"; |
|
1024 | 1101 | pins = "gpio10"; |
1025 | 1102 | function = "normal"; |
1026 | 1103 | }; |
| 1104 | +}; |
1027 | 1105 |
|
| 1106 | +&pmc8380_3_gpios { |
1028 | 1107 | pm_sde7_aux_3p3_en: pcie-aux-3p3-default-state { |
1029 | 1108 | pins = "gpio8"; |
1030 | 1109 | function = "normal"; |
1031 | 1110 | output-enable; |
1032 | | - output-high; |
1033 | 1111 | bias-pull-down; |
1034 | 1112 | power-source = <0>; |
1035 | 1113 | }; |
|
1038 | 1116 | pins = "gpio6"; |
1039 | 1117 | function = "normal"; |
1040 | 1118 | output-enable; |
1041 | | - output-high; |
1042 | 1119 | bias-pull-down; |
1043 | 1120 | power-source = <0>; |
1044 | 1121 | }; |
|
1106 | 1183 | &swr0 { |
1107 | 1184 | status = "okay"; |
1108 | 1185 |
|
1109 | | - pinctrl-0 = <&wsa_swr_active>, <&spkr_01_sd_n_active>; |
| 1186 | + pinctrl-0 = <&wsa_swr_active>; |
1110 | 1187 | pinctrl-names = "default"; |
1111 | 1188 |
|
1112 | 1189 | /* WSA8845, Left Woofer */ |
1113 | 1190 | left_woofer: speaker@0,0 { |
1114 | 1191 | compatible = "sdw20217020400"; |
| 1192 | + pinctrl-0 = <&spkr_0_sd_n_active>; |
| 1193 | + pinctrl-names = "default"; |
1115 | 1194 | reg = <0 0>; |
1116 | 1195 | reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; |
1117 | 1196 | #sound-dai-cells = <0>; |
|
1124 | 1203 | /* WSA8845, Left Tweeter */ |
1125 | 1204 | left_tweeter: speaker@0,1 { |
1126 | 1205 | compatible = "sdw20217020400"; |
| 1206 | + pinctrl-0 = <&spkr_1_sd_n_active>; |
| 1207 | + pinctrl-names = "default"; |
1127 | 1208 | reg = <0 1>; |
1128 | | - reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; |
| 1209 | + reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>; |
1129 | 1210 | #sound-dai-cells = <0>; |
1130 | 1211 | sound-name-prefix = "TweeterLeft"; |
1131 | 1212 | vdd-1p8-supply = <&vreg_l15b_1p8>; |
|
1159 | 1240 | &swr3 { |
1160 | 1241 | status = "okay"; |
1161 | 1242 |
|
1162 | | - pinctrl-0 = <&wsa2_swr_active>, <&spkr_23_sd_n_active>; |
| 1243 | + pinctrl-0 = <&wsa2_swr_active>; |
1163 | 1244 | pinctrl-names = "default"; |
1164 | 1245 |
|
1165 | 1246 | /* WSA8845, Right Woofer */ |
1166 | 1247 | right_woofer: speaker@0,0 { |
1167 | 1248 | compatible = "sdw20217020400"; |
| 1249 | + pinctrl-0 = <&spkr_2_sd_n_active>; |
| 1250 | + pinctrl-names = "default"; |
1168 | 1251 | reg = <0 0>; |
1169 | | - reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>; |
| 1252 | + reset-gpios = <&lpass_tlmm 17 GPIO_ACTIVE_LOW>; |
1170 | 1253 | #sound-dai-cells = <0>; |
1171 | 1254 | sound-name-prefix = "WooferRight"; |
1172 | 1255 | vdd-1p8-supply = <&vreg_l15b_1p8>; |
|
1177 | 1260 | /* WSA8845, Right Tweeter */ |
1178 | 1261 | right_tweeter: speaker@0,1 { |
1179 | 1262 | compatible = "sdw20217020400"; |
| 1263 | + pinctrl-0 = <&spkr_3_sd_n_active>; |
| 1264 | + pinctrl-names = "default"; |
1180 | 1265 | reg = <0 1>; |
1181 | | - reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>; |
| 1266 | + reset-gpios = <&lpass_tlmm 18 GPIO_ACTIVE_LOW>; |
1182 | 1267 | #sound-dai-cells = <0>; |
1183 | 1268 | sound-name-prefix = "TweeterRight"; |
1184 | 1269 | vdd-1p8-supply = <&vreg_l15b_1p8>; |
|
0 commit comments