hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/arch/arm64/boot/dts/nvidia/tegra132-norrin.dts
....@@ -18,7 +18,7 @@
1818 stdout-path = "serial0:115200n8";
1919 };
2020
21
- memory {
21
+ memory@80000000 {
2222 device_type = "memory";
2323 reg = <0x0 0x80000000 0x0 0x80000000>;
2424 };
....@@ -38,6 +38,9 @@
3838
3939 sor@54540000 {
4040 status = "okay";
41
+
42
+ avdd-io-hdmi-dp-supply = <&vdd_3v3_hdmi>;
43
+ vdd-hdmi-dp-pll-supply = <&vdd_hdmi_pll>;
4144
4245 nvidia,dpaux = <&dpaux>;
4346 nvidia,panel = <&panel>;
....@@ -671,7 +674,7 @@
671674 regulator-boot-on;
672675 };
673676
674
- ldo0 {
677
+ avdd_1v05_run: ldo0 {
675678 regulator-name = "+1.05_RUN_AVDD";
676679 regulator-min-microvolt = <1050000>;
677680 regulator-max-microvolt = <1050000>;
....@@ -781,7 +784,6 @@
781784 battery: smart-battery {
782785 compatible = "sbs,sbs-battery";
783786 reg = <0xb>;
784
- battery-name = "battery";
785787 sbs,i2c-retry-count = <2>;
786788 sbs,poll-retry-count = <10>;
787789 /* power-supplies = <&charger>; */
....@@ -893,13 +895,108 @@
893895 nvidia,reset-gpio = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
894896 };
895897
898
+ usb@70090000 {
899
+ phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, /* 1st USB A */
900
+ <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, /* Internal USB */
901
+ <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, /* 2nd USB A */
902
+ <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>, /* 1st USB A */
903
+ <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>; /* 2nd USB A */
904
+ phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0", "usb3-1";
905
+
906
+ avddio-pex-supply = <&vdd_1v05_run>;
907
+ dvddio-pex-supply = <&vdd_1v05_run>;
908
+ avdd-usb-supply = <&vdd_3v3_lp0>;
909
+ hvdd-usb-ss-supply = <&vdd_3v3_lp0>;
910
+
911
+ status = "okay";
912
+ };
913
+
914
+ padctl@7009f000 {
915
+ avdd-pll-utmip-supply = <&vddio_1v8>;
916
+ avdd-pll-erefe-supply = <&avdd_1v05_run>;
917
+ avdd-pex-pll-supply = <&vdd_1v05_run>;
918
+ hvdd-pex-pll-e-supply = <&vdd_3v3_lp0>;
919
+
920
+ pads {
921
+ usb2 {
922
+ status = "okay";
923
+
924
+ lanes {
925
+ usb2-0 {
926
+ nvidia,function = "xusb";
927
+ status = "okay";
928
+ };
929
+
930
+ usb2-1 {
931
+ nvidia,function = "xusb";
932
+ status = "okay";
933
+ };
934
+
935
+ usb2-2 {
936
+ nvidia,function = "xusb";
937
+ status = "okay";
938
+ };
939
+ };
940
+ };
941
+
942
+ pcie {
943
+ status = "okay";
944
+
945
+ lanes {
946
+ pcie-0 {
947
+ nvidia,function = "usb3-ss";
948
+ status = "okay";
949
+ };
950
+
951
+ pcie-1 {
952
+ nvidia,function = "usb3-ss";
953
+ status = "okay";
954
+ };
955
+ };
956
+ };
957
+ };
958
+
959
+ ports {
960
+ usb2-0 {
961
+ status = "okay";
962
+ mode = "otg";
963
+
964
+ vbus-supply = <&vdd_usb1_vbus>;
965
+ };
966
+
967
+ usb2-1 {
968
+ status = "okay";
969
+ mode = "host";
970
+
971
+ vbus-supply = <&vdd_run_cam>;
972
+ };
973
+
974
+ usb2-2 {
975
+ status = "okay";
976
+ mode = "host";
977
+
978
+ vbus-supply = <&vdd_usb3_vbus>;
979
+ };
980
+
981
+ usb3-0 {
982
+ nvidia,usb2-companion = <0>;
983
+ status = "okay";
984
+ };
985
+
986
+ usb3-1 {
987
+ nvidia,usb2-companion = <2>;
988
+ status = "okay";
989
+ };
990
+ };
991
+ };
992
+
896993 /* WIFI/BT module */
897
- sdhci@700b0000 {
994
+ mmc@700b0000 {
898995 status = "disabled";
899996 };
900997
901998 /* external SD/MMC */
902
- sdhci@700b0400 {
999
+ mmc@700b0400 {
9031000 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
9041001 power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
9051002 wp-gpios = <&gpio TEGRA_GPIO(Q, 4) GPIO_ACTIVE_HIGH>;
....@@ -909,37 +1006,10 @@
9091006 };
9101007
9111008 /* EMMC 4.51 */
912
- sdhci@700b0600 {
1009
+ mmc@700b0600 {
9131010 status = "okay";
9141011 bus-width = <8>;
9151012 non-removable;
916
- };
917
-
918
- usb@7d000000 {
919
- status = "okay";
920
- };
921
-
922
- usb-phy@7d000000 {
923
- status = "okay";
924
- vbus-supply = <&vdd_usb1_vbus>;
925
- };
926
-
927
- usb@7d004000 {
928
- status = "okay";
929
- };
930
-
931
- usb-phy@7d004000 {
932
- status = "okay";
933
- vbus-supply = <&vdd_run_cam>;
934
- };
935
-
936
- usb@7d008000 {
937
- status = "okay";
938
- };
939
-
940
- usb-phy@7d008000 {
941
- status = "okay";
942
- vbus-supply = <&vdd_usb3_vbus>;
9431013 };
9441014
9451015 backlight: backlight {
....@@ -955,17 +1025,10 @@
9551025 backlight-boot-off;
9561026 };
9571027
958
- clocks {
959
- compatible = "simple-bus";
960
- #address-cells = <1>;
961
- #size-cells = <0>;
962
-
963
- clk32k_in: clock@0 {
964
- compatible = "fixed-clock";
965
- reg=<0>;
966
- #clock-cells = <0>;
967
- clock-frequency = <32768>;
968
- };
1028
+ clk32k_in: clock@0 {
1029
+ compatible = "fixed-clock";
1030
+ clock-frequency = <32768>;
1031
+ #clock-cells = <0>;
9691032 };
9701033
9711034 gpio-keys {
....@@ -990,147 +1053,145 @@
9901053 };
9911054
9921055 panel: panel {
993
- compatible = "innolux,n116bge", "simple-panel";
1056
+ compatible = "innolux,n116bge";
1057
+ power-supply = <&vdd_3v3_panel>;
9941058 backlight = <&backlight>;
9951059 ddc-i2c-bus = <&dpaux>;
9961060 };
9971061
998
- regulators {
999
- compatible = "simple-bus";
1000
- #address-cells = <1>;
1001
- #size-cells = <0>;
1062
+ vdd_mux: regulator@0 {
1063
+ compatible = "regulator-fixed";
1064
+ regulator-name = "+VDD_MUX";
1065
+ regulator-min-microvolt = <19000000>;
1066
+ regulator-max-microvolt = <19000000>;
1067
+ regulator-always-on;
1068
+ regulator-boot-on;
1069
+ };
10021070
1003
- vdd_mux: regulator@0 {
1004
- compatible = "regulator-fixed";
1005
- reg = <0>;
1006
- regulator-name = "+VDD_MUX";
1007
- regulator-min-microvolt = <19000000>;
1008
- regulator-max-microvolt = <19000000>;
1009
- regulator-always-on;
1010
- regulator-boot-on;
1011
- };
1071
+ vdd_5v0_sys: regulator@1 {
1072
+ compatible = "regulator-fixed";
1073
+ regulator-name = "+5V_SYS";
1074
+ regulator-min-microvolt = <5000000>;
1075
+ regulator-max-microvolt = <5000000>;
1076
+ regulator-always-on;
1077
+ regulator-boot-on;
1078
+ vin-supply = <&vdd_mux>;
1079
+ };
10121080
1013
- vdd_5v0_sys: regulator@1 {
1014
- compatible = "regulator-fixed";
1015
- reg = <1>;
1016
- regulator-name = "+5V_SYS";
1017
- regulator-min-microvolt = <5000000>;
1018
- regulator-max-microvolt = <5000000>;
1019
- regulator-always-on;
1020
- regulator-boot-on;
1021
- vin-supply = <&vdd_mux>;
1022
- };
1081
+ vdd_3v3_sys: regulator@2 {
1082
+ compatible = "regulator-fixed";
1083
+ regulator-name = "+3.3V_SYS";
1084
+ regulator-min-microvolt = <3300000>;
1085
+ regulator-max-microvolt = <3300000>;
1086
+ regulator-always-on;
1087
+ regulator-boot-on;
1088
+ vin-supply = <&vdd_mux>;
1089
+ };
10231090
1024
- vdd_3v3_sys: regulator@2 {
1025
- compatible = "regulator-fixed";
1026
- reg = <2>;
1027
- regulator-name = "+3.3V_SYS";
1028
- regulator-min-microvolt = <3300000>;
1029
- regulator-max-microvolt = <3300000>;
1030
- regulator-always-on;
1031
- regulator-boot-on;
1032
- vin-supply = <&vdd_mux>;
1033
- };
1091
+ vdd_3v3_run: regulator@3 {
1092
+ compatible = "regulator-fixed";
1093
+ regulator-name = "+3.3V_RUN";
1094
+ regulator-min-microvolt = <3300000>;
1095
+ regulator-max-microvolt = <3300000>;
1096
+ regulator-always-on;
1097
+ regulator-boot-on;
1098
+ gpio = <&as3722 1 GPIO_ACTIVE_HIGH>;
1099
+ enable-active-high;
1100
+ vin-supply = <&vdd_3v3_sys>;
1101
+ };
10341102
1035
- vdd_3v3_run: regulator@3 {
1036
- compatible = "regulator-fixed";
1037
- reg = <3>;
1038
- regulator-name = "+3.3V_RUN";
1039
- regulator-min-microvolt = <3300000>;
1040
- regulator-max-microvolt = <3300000>;
1041
- regulator-always-on;
1042
- regulator-boot-on;
1043
- gpio = <&as3722 1 GPIO_ACTIVE_HIGH>;
1044
- enable-active-high;
1045
- vin-supply = <&vdd_3v3_sys>;
1046
- };
1103
+ vdd_3v3_hdmi: regulator@4 {
1104
+ compatible = "regulator-fixed";
1105
+ regulator-name = "+3.3V_AVDD_HDMI_AP_GATED";
1106
+ regulator-min-microvolt = <3300000>;
1107
+ regulator-max-microvolt = <3300000>;
1108
+ vin-supply = <&vdd_3v3_run>;
1109
+ };
10471110
1048
- vdd_3v3_hdmi: regulator@4 {
1049
- compatible = "regulator-fixed";
1050
- reg = <4>;
1051
- regulator-name = "+3.3V_AVDD_HDMI_AP_GATED";
1052
- regulator-min-microvolt = <3300000>;
1053
- regulator-max-microvolt = <3300000>;
1054
- vin-supply = <&vdd_3v3_run>;
1055
- };
1111
+ vdd_led: regulator@5 {
1112
+ compatible = "regulator-fixed";
1113
+ regulator-name = "+VDD_LED";
1114
+ regulator-min-microvolt = <3300000>;
1115
+ regulator-max-microvolt = <3300000>;
1116
+ gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
1117
+ enable-active-high;
1118
+ vin-supply = <&vdd_mux>;
1119
+ };
10561120
1057
- vdd_led: regulator@5 {
1058
- compatible = "regulator-fixed";
1059
- reg = <5>;
1060
- regulator-name = "+VDD_LED";
1061
- regulator-min-microvolt = <3300000>;
1062
- regulator-max-microvolt = <3300000>;
1063
- gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
1064
- enable-active-high;
1065
- vin-supply = <&vdd_mux>;
1066
- };
1121
+ vdd_usb1_vbus: regulator@6 {
1122
+ compatible = "regulator-fixed";
1123
+ regulator-name = "+5V_USB_HS";
1124
+ regulator-min-microvolt = <5000000>;
1125
+ regulator-max-microvolt = <5000000>;
1126
+ gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
1127
+ enable-active-high;
1128
+ gpio-open-drain;
1129
+ vin-supply = <&vdd_5v0_sys>;
1130
+ };
10671131
1068
- vdd_usb1_vbus: regulator@6 {
1069
- compatible = "regulator-fixed";
1070
- reg = <6>;
1071
- regulator-name = "+5V_USB_HS";
1072
- regulator-min-microvolt = <5000000>;
1073
- regulator-max-microvolt = <5000000>;
1074
- gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
1075
- enable-active-high;
1076
- gpio-open-drain;
1077
- vin-supply = <&vdd_5v0_sys>;
1078
- };
1132
+ vdd_usb3_vbus: regulator@7 {
1133
+ compatible = "regulator-fixed";
1134
+ regulator-name = "+5V_USB_SS";
1135
+ regulator-min-microvolt = <5000000>;
1136
+ regulator-max-microvolt = <5000000>;
1137
+ gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
1138
+ enable-active-high;
1139
+ gpio-open-drain;
1140
+ vin-supply = <&vdd_5v0_sys>;
1141
+ };
10791142
1080
- vdd_usb3_vbus: regulator@7 {
1081
- compatible = "regulator-fixed";
1082
- reg = <7>;
1083
- regulator-name = "+5V_USB_SS";
1084
- regulator-min-microvolt = <5000000>;
1085
- regulator-max-microvolt = <5000000>;
1086
- gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
1087
- enable-active-high;
1088
- gpio-open-drain;
1089
- vin-supply = <&vdd_5v0_sys>;
1090
- };
1143
+ vdd_3v3_panel: regulator@8 {
1144
+ compatible = "regulator-fixed";
1145
+ regulator-name = "+3.3V_PANEL";
1146
+ regulator-min-microvolt = <3300000>;
1147
+ regulator-max-microvolt = <3300000>;
1148
+ gpio = <&as3722 4 GPIO_ACTIVE_HIGH>;
1149
+ enable-active-high;
1150
+ vin-supply = <&vdd_3v3_sys>;
1151
+ };
10911152
1092
- vdd_3v3_panel: regulator@8 {
1093
- compatible = "regulator-fixed";
1094
- reg = <8>;
1095
- regulator-name = "+3.3V_PANEL";
1096
- regulator-min-microvolt = <3300000>;
1097
- regulator-max-microvolt = <3300000>;
1098
- gpio = <&as3722 4 GPIO_ACTIVE_HIGH>;
1099
- enable-active-high;
1100
- vin-supply = <&vdd_3v3_sys>;
1101
- };
1153
+ vdd_hdmi_pll: regulator@9 {
1154
+ compatible = "regulator-fixed";
1155
+ regulator-name = "+1.05V_RUN_AVDD_HDMI_PLL_AP_GATE";
1156
+ regulator-min-microvolt = <1050000>;
1157
+ regulator-max-microvolt = <1050000>;
1158
+ gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>;
1159
+ vin-supply = <&vdd_1v05_run>;
1160
+ };
11021161
1103
- vdd_hdmi_pll: regulator@9 {
1104
- compatible = "regulator-fixed";
1105
- reg = <9>;
1106
- regulator-name = "+1.05V_RUN_AVDD_HDMI_PLL_AP_GATE";
1107
- regulator-min-microvolt = <1050000>;
1108
- regulator-max-microvolt = <1050000>;
1109
- gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>;
1110
- vin-supply = <&vdd_1v05_run>;
1111
- };
1162
+ vdd_5v0_hdmi: regulator@10 {
1163
+ compatible = "regulator-fixed";
1164
+ regulator-name = "+5V_HDMI_CON";
1165
+ regulator-min-microvolt = <5000000>;
1166
+ regulator-max-microvolt = <5000000>;
1167
+ gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
1168
+ enable-active-high;
1169
+ vin-supply = <&vdd_5v0_sys>;
1170
+ };
11121171
1113
- vdd_5v0_hdmi: regulator@10 {
1114
- compatible = "regulator-fixed";
1115
- reg = <10>;
1116
- regulator-name = "+5V_HDMI_CON";
1117
- regulator-min-microvolt = <5000000>;
1118
- regulator-max-microvolt = <5000000>;
1119
- gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
1120
- enable-active-high;
1121
- vin-supply = <&vdd_5v0_sys>;
1122
- };
1172
+ vdd_5v0_ts: regulator@11 {
1173
+ compatible = "regulator-fixed";
1174
+ regulator-name = "+5V_VDD_TS";
1175
+ regulator-min-microvolt = <5000000>;
1176
+ regulator-max-microvolt = <5000000>;
1177
+ regulator-always-on;
1178
+ regulator-boot-on;
1179
+ gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>;
1180
+ enable-active-high;
1181
+ };
11231182
1124
- vdd_5v0_ts: regulator@11 {
1125
- compatible = "regulator-fixed";
1126
- reg = <11>;
1127
- regulator-name = "+5V_VDD_TS";
1128
- regulator-min-microvolt = <5000000>;
1129
- regulator-max-microvolt = <5000000>;
1130
- regulator-always-on;
1131
- regulator-boot-on;
1132
- gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>;
1133
- enable-active-high;
1134
- };
1183
+ vdd_3v3_lp0: regulator@12 {
1184
+ compatible = "regulator-fixed";
1185
+ regulator-name = "+3.3V_LP0";
1186
+ regulator-min-microvolt = <3300000>;
1187
+ regulator-max-microvolt = <3300000>;
1188
+ /*
1189
+ * TODO: find a way to wire this up with the USB EHCI
1190
+ * controllers so that it can be enabled on demand.
1191
+ */
1192
+ regulator-always-on;
1193
+ gpio = <&as3722 2 GPIO_ACTIVE_HIGH>;
1194
+ enable-active-high;
1195
+ vin-supply = <&vdd_3v3_sys>;
11351196 };
11361197 };