Lines Matching +full:imx8mq +full:- +full:iomuxc

1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018-2020 Purism SPC
6 /dts-v1/;
8 #include "dt-bindings/input/input.h"
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/leds/common.h>
11 #include "dt-bindings/pwm/pwm.h"
12 #include "dt-bindings/usb/pd.h"
13 #include "imx8mq.dtsi"
17 compatible = "purism,librem5", "fsl,imx8mq";
18 chassis-type = "handset";
20 backlight_dsi: backlight-dsi {
21 compatible = "led-backlight";
25 pmic_osc: clock-pmic {
26 compatible = "fixed-clock";
27 #clock-cells = <0>;
28 clock-frequency = <32768>;
29 clock-output-names = "pmic_osc";
33 stdout-path = &uart1;
36 gpio-keys {
37 compatible = "gpio-keys";
38 pinctrl-names = "default";
39 pinctrl-0 = <&pinctrl_keys>;
41 key-vol-down {
45 debounce-interval = <50>;
46 wakeup-source;
49 key-vol-up {
53 debounce-interval = <50>;
54 wakeup-source;
58 led-controller {
59 compatible = "pwm-leds";
61 led-0 {
64 max-brightness = <248>;
68 led-1 {
71 max-brightness = <248>;
75 led-2 {
78 max-brightness = <248>;
83 reg_aud_1v8: regulator-audio-1v8 {
84 compatible = "regulator-fixed";
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_audiopwr>;
87 regulator-name = "AUDIO_PWR_EN";
88 regulator-min-microvolt = <1800000>;
89 regulator-max-microvolt = <1800000>;
91 enable-active-high;
98 reg_csi_1v8: regulator-csi-1v8 {
99 compatible = "regulator-fixed";
100 regulator-name = "CAMERA_VDDIO_1V8";
101 regulator-min-microvolt = <1800000>;
102 regulator-max-microvolt = <1800000>;
103 vin-supply = <&reg_vdd_3v3>;
105 enable-active-high;
109 reg_vcam_1v2: regulator-vcam-1v2 {
110 compatible = "regulator-fixed";
111 regulator-name = "CAMERA_VDDD_1V2";
112 regulator-min-microvolt = <1200000>;
113 regulator-max-microvolt = <1200000>;
114 vin-supply = <&reg_vdd_1v8>;
115 enable-active-high;
118 reg_vcam_2v8: regulator-vcam-2v8 {
119 compatible = "regulator-fixed";
120 regulator-name = "CAMERA_VDDA_2V8";
121 regulator-min-microvolt = <2800000>;
122 regulator-max-microvolt = <2800000>;
123 vin-supply = <&reg_vdd_3v3>;
125 enable-active-high;
128 reg_gnss: regulator-gnss {
129 compatible = "regulator-fixed";
130 pinctrl-names = "default";
131 pinctrl-0 = <&pinctrl_gnsspwr>;
132 regulator-name = "GNSS";
133 regulator-min-microvolt = <3300000>;
134 regulator-max-microvolt = <3300000>;
136 enable-active-high;
139 reg_hub: regulator-hub {
140 compatible = "regulator-fixed";
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_hub_pwr>;
143 regulator-name = "HUB";
144 regulator-min-microvolt = <3300000>;
145 regulator-max-microvolt = <3300000>;
147 enable-active-high;
150 reg_lcd_1v8: regulator-lcd-1v8 {
151 compatible = "regulator-fixed";
152 pinctrl-names = "default";
153 pinctrl-0 = <&pinctrl_dsien>;
154 regulator-name = "LCD_1V8";
155 regulator-min-microvolt = <1800000>;
156 regulator-max-microvolt = <1800000>;
157 vin-supply = <&reg_vdd_1v8>;
159 enable-active-high;
161 regulator-always-on;
164 reg_lcd_3v4: regulator-lcd-3v4 {
165 compatible = "regulator-fixed";
166 regulator-name = "LCD_3V4";
167 pinctrl-names = "default";
168 pinctrl-0 = <&pinctrl_dsibiasen>;
169 vin-supply = <&reg_vsys_3v4>;
171 enable-active-high;
174 reg_vdd_sen: regulator-vdd-sen {
175 compatible = "regulator-fixed";
176 regulator-name = "VDD_SEN";
177 regulator-min-microvolt = <3300000>;
178 regulator-max-microvolt = <3300000>;
181 reg_vdd_1v8: regulator-vdd-1v8 {
182 compatible = "regulator-fixed";
183 regulator-name = "VDD_1V8";
184 regulator-min-microvolt = <1800000>;
185 regulator-max-microvolt = <1800000>;
186 vin-supply = <&buck7_reg>;
189 reg_vdd_3v3: regulator-vdd-3v3 {
190 compatible = "regulator-fixed";
191 regulator-name = "VDD_3V3";
192 regulator-min-microvolt = <3300000>;
193 regulator-max-microvolt = <3300000>;
196 reg_vsys_3v4: regulator-vsys-3v4 {
197 compatible = "regulator-fixed";
198 regulator-name = "VSYS_3V4";
199 regulator-min-microvolt = <3400000>;
200 regulator-max-microvolt = <3400000>;
201 regulator-always-on;
204 reg_wifi_3v3: regulator-wifi-3v3 {
205 compatible = "regulator-fixed";
206 pinctrl-names = "default";
207 pinctrl-0 = <&pinctrl_wifi_pwr>;
208 regulator-name = "3V3_WIFI";
209 regulator-min-microvolt = <3300000>;
210 regulator-max-microvolt = <3300000>;
212 enable-active-high;
213 vin-supply = <&reg_vdd_3v3>;
217 compatible = "simple-audio-card";
218 pinctrl-names = "default";
219 pinctrl-0 = <&pinctrl_hp>;
220 simple-audio-card,name = "Librem 5";
221 simple-audio-card,format = "i2s";
222 simple-audio-card,widgets =
227 simple-audio-card,routing =
235 simple-audio-card,hp-det-gpio = <&gpio3 9 GPIO_ACTIVE_HIGH>;
237 simple-audio-card,cpu {
238 sound-dai = <&sai2>;
241 simple-audio-card,codec {
242 sound-dai = <&codec>;
244 frame-master;
245 bitclock-master;
249 sound-wwan {
250 compatible = "simple-audio-card";
251 simple-audio-card,name = "Modem";
252 simple-audio-card,format = "i2s";
254 simple-audio-card,cpu {
255 sound-dai = <&sai6>;
256 frame-inversion;
259 simple-audio-card,codec {
260 sound-dai = <&bm818_codec>;
261 frame-master;
262 bitclock-master;
267 pinctrl-names = "default";
268 pinctrl-0 = <&pinctrl_bt>, <&pinctrl_wifi_disable>;
269 compatible = "mmc-pwrseq-simple";
270 reset-gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>,
274 bm818_codec: sound-wwan-codec {
276 #sound-dai-cells = <0>;
280 compatible = "pwm-vibrator";
282 pwm-names = "enable";
283 vcc-supply = <&reg_vdd_3v3>;
288 cpu-supply = <&buck2_reg>;
292 cpu-supply = <&buck2_reg>;
296 cpu-supply = <&buck2_reg>;
300 cpu-supply = <&buck2_reg>;
308 operating-points-v2 = <&ddrc_opp_table>;
311 ddrc_opp_table: opp-table {
312 compatible = "operating-points-v2";
314 opp-25M {
315 opp-hz = /bits/ 64 <25000000>;
318 opp-100M {
319 opp-hz = /bits/ 64 <100000000>;
322 opp-800M {
323 opp-hz = /bits/ 64 <800000000>;
333 pinctrl-names = "default";
334 pinctrl-0 = <&pinctrl_ecspi1>;
335 cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
336 #address-cells = <1>;
337 #size-cells = <0>;
341 compatible = "jedec,spi-nor";
343 spi-max-frequency = <1000000>;
344 #address-cells = <1>;
345 #size-cells = <1>;
350 read-only;
356 read-only;
362 pinctrl-names = "default";
363 pinctrl-0 = <&pinctrl_pmic_5v>;
365 pmic-5v-hog {
366 gpio-hog;
369 lane-mapping = "pmic-5v";
373 &iomuxc {
515 /* VOL- */
761 clock-frequency = <387000>;
762 pinctrl-names = "default";
763 pinctrl-0 = <&pinctrl_i2c1>;
766 typec_pd: usb-pd@3f {
769 pinctrl-names = "default";
770 pinctrl-0 = <&pinctrl_typec>, <&pinctrl_tcpc>;
771 interrupt-parent = <&gpio1>;
773 interrupt-names = "irq";
776 compatible = "usb-c-connector";
777 label = "USB-C";
778 data-role = "dual";
781 #address-cells = <1>;
782 #size-cells = <0>;
788 remote-endpoint = <&typec_hs>;
796 remote-endpoint = <&typec_ss>;
806 pinctrl-names = "default";
807 pinctrl-0 = <&pinctrl_pmic>, <&pinctrl_camera_pwr>;
809 clock-names = "osc";
810 clock-output-names = "pmic_clk";
811 interrupt-parent = <&gpio1>;
813 rohm,reset-snvs-powered;
817 regulator-name = "buck1";
818 regulator-min-microvolt = <700000>;
819 regulator-max-microvolt = <1300000>;
820 regulator-boot-on;
821 regulator-ramp-delay = <1250>;
822 rohm,dvs-run-voltage = <900000>;
823 rohm,dvs-idle-voltage = <850000>;
824 rohm,dvs-suspend-voltage = <800000>;
825 regulator-always-on;
829 regulator-name = "buck2";
830 regulator-min-microvolt = <700000>;
831 regulator-max-microvolt = <1300000>;
832 regulator-boot-on;
833 regulator-ramp-delay = <1250>;
834 rohm,dvs-run-voltage = <1000000>;
835 rohm,dvs-idle-voltage = <900000>;
836 regulator-always-on;
840 regulator-name = "buck3";
841 regulator-min-microvolt = <700000>;
842 regulator-max-microvolt = <1300000>;
843 regulator-boot-on;
844 rohm,dvs-run-voltage = <900000>;
848 regulator-name = "buck4";
849 regulator-min-microvolt = <700000>;
850 regulator-max-microvolt = <1300000>;
851 rohm,dvs-run-voltage = <1000000>;
855 regulator-name = "buck5";
856 regulator-min-microvolt = <700000>;
857 regulator-max-microvolt = <1350000>;
858 regulator-boot-on;
859 regulator-always-on;
863 regulator-name = "buck6";
864 regulator-min-microvolt = <3000000>;
865 regulator-max-microvolt = <3300000>;
866 regulator-boot-on;
867 regulator-always-on;
871 regulator-name = "buck7";
872 regulator-min-microvolt = <1605000>;
873 regulator-max-microvolt = <1995000>;
874 regulator-boot-on;
875 regulator-always-on;
879 regulator-name = "buck8";
880 regulator-min-microvolt = <800000>;
881 regulator-max-microvolt = <1400000>;
882 regulator-boot-on;
883 regulator-always-on;
887 regulator-name = "ldo1";
888 regulator-min-microvolt = <3000000>;
889 regulator-max-microvolt = <3300000>;
890 regulator-boot-on;
892 regulator-always-on;
896 regulator-name = "ldo2";
897 regulator-min-microvolt = <900000>;
898 regulator-max-microvolt = <900000>;
899 regulator-boot-on;
901 regulator-always-on;
905 regulator-name = "ldo3";
906 regulator-min-microvolt = <1800000>;
907 regulator-max-microvolt = <3300000>;
908 regulator-boot-on;
909 regulator-always-on;
913 regulator-name = "ldo4";
914 regulator-min-microvolt = <900000>;
915 regulator-max-microvolt = <1800000>;
916 regulator-boot-on;
917 regulator-always-on;
921 /* VDD_PHY_0V9 - MIPI and HDMI domains */
922 regulator-name = "ldo5";
923 regulator-min-microvolt = <1800000>;
924 regulator-max-microvolt = <3300000>;
925 regulator-always-on;
929 /* VDD_PHY_0V9 - MIPI, HDMI and USB domains */
930 regulator-name = "ldo6";
931 regulator-min-microvolt = <900000>;
932 regulator-max-microvolt = <1800000>;
933 regulator-boot-on;
934 regulator-always-on;
938 /* VDD_PHY_3V3 - USB domain */
939 regulator-name = "ldo7";
940 regulator-min-microvolt = <1800000>;
941 regulator-max-microvolt = <3300000>;
942 regulator-boot-on;
943 regulator-always-on;
951 pinctrl-names = "default";
952 pinctrl-0 = <&pinctrl_rtc>;
953 interrupt-parent = <&gpio1>;
959 clock-frequency = <387000>;
960 pinctrl-names = "default";
961 pinctrl-0 = <&pinctrl_i2c2>;
965 compatible = "st,lsm9ds1-magn";
967 pinctrl-names = "default";
968 pinctrl-0 = <&pinctrl_mag>;
969 interrupt-parent = <&gpio3>;
971 vdd-supply = <&reg_vdd_sen>;
972 vddio-supply = <&reg_vdd_1v8>;
980 regulator-name = "LCD_AVDD";
981 vin-supply = <&reg_lcd_3v4>;
985 regulator-name = "LCD_AVEE";
986 vin-supply = <&reg_lcd_3v4>;
993 pinctrl-names = "default";
994 pinctrl-0 = <&pinctrl_prox>;
995 interrupt-parent = <&gpio3>;
999 accel_gyro: accel-gyro@6a {
1000 compatible = "st,lsm9ds1-imu";
1002 vdd-supply = <&reg_vdd_sen>;
1003 vddio-supply = <&reg_vdd_1v8>;
1008 clock-frequency = <387000>;
1009 pinctrl-names = "default";
1010 pinctrl-0 = <&pinctrl_i2c3>;
1013 codec: audio-codec@1a {
1017 assigned-clocks = <&clk IMX8MQ_CLK_SAI2>;
1018 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
1019 assigned-clock-rates = <24576000>;
1020 #sound-dai-cells = <0>;
1021 mic-cfg = <0x200>;
1022 DCVDD-supply = <&reg_aud_1v8>;
1023 DBVDD-supply = <&reg_aud_1v8>;
1024 AVDD-supply = <&reg_aud_1v8>;
1025 CPVDD-supply = <&reg_aud_1v8>;
1026 MICVDD-supply = <&reg_aud_1v8>;
1027 PLLVDD-supply = <&reg_aud_1v8>;
1028 SPKVDD1-supply = <&reg_vsys_3v4>;
1029 SPKVDD2-supply = <&reg_vsys_3v4>;
1030 gpio-cfg = <
1043 pinctrl-names = "default";
1044 pinctrl-0 = <&pinctrl_csi1>;
1046 assigned-clocks = <&clk IMX8MQ_CLK_CLKO2>;
1047 assigned-clock-rates = <25000000>;
1048 reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
1049 vdda-supply = <&reg_vcam_2v8>;
1050 vddd-supply = <&reg_vcam_1v2>;
1051 vddio-supply = <&reg_csi_1v8>;
1057 data-lanes = <1 2>;
1058 link-frequencies = /bits/ 64
1060 remote-endpoint = <&mipi1_sensor_ep>;
1068 pinctrl-names = "default";
1069 pinctrl-0 = <&pinctrl_bl>;
1070 #address-cells = <1>;
1071 #size-cells = <0>;
1072 enable-gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
1073 vled-supply = <&reg_vsys_3v4>;
1074 ti,ovp-microvolt = <25000000>;
1079 linux,default-trigger = "backlight";
1080 led-max-microamp = <20000>;
1085 compatible = "edt,edt-ft5506";
1087 pinctrl-names = "default";
1088 pinctrl-0 = <&pinctrl_touch>;
1089 interrupt-parent = <&gpio1>;
1091 touchscreen-size-x = <720>;
1092 touchscreen-size-y = <1440>;
1093 vcc-supply = <&reg_lcd_1v8>;
1098 clock-frequency = <387000>;
1099 pinctrl-names = "default";
1100 pinctrl-0 = <&pinctrl_i2c4>;
1106 vcc-supply = <&reg_csi_1v8>;
1109 bat: fuel-gauge@36 {
1112 interrupt-parent = <&gpio3>;
1114 pinctrl-names = "default";
1115 pinctrl-0 = <&pinctrl_gauge>;
1116 power-supplies = <&bq25895>;
1117 maxim,over-heat-temp = <700>;
1118 maxim,over-volt = <4500>;
1119 maxim,rsns-microohm = <5000>;
1125 pinctrl-names = "default";
1126 pinctrl-0 = <&pinctrl_charger_in>;
1127 interrupt-parent = <&gpio3>;
1130 ti,precharge-current = <130000>; /* uA */
1131 ti,minimum-sys-voltage = <3700000>; /* uV */
1132 ti,boost-voltage = <5000000>; /* uV */
1133 ti,boost-max-current = <1500000>; /* uA */
1134 ti,use-vinmin-threshold = <1>; /* enable VINDPM */
1135 ti,vinmin-threshold = <3900000>; /* uV */
1136 monitored-battery = <&bat>;
1137 power-supplies = <&typec_pd>;
1153 remote-endpoint = <&camera1_ep>;
1154 data-lanes = <1 2>;
1161 #address-cells = <1>;
1162 #size-cells = <0>;
1166 compatible = "mantix,mlaf057we51-x";
1168 pinctrl-names = "default";
1169 pinctrl-0 = <&pinctrl_dsirst>;
1170 avdd-supply = <&reg_lcd_avdd>;
1171 avee-supply = <&reg_lcd_avee>;
1172 vddi-supply = <&reg_lcd_1v8>;
1174 reset-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
1175 mantix,tp-rstn-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
1179 remote-endpoint = <&mipi_dsi_out>;
1189 remote-endpoint = <&panel_in>;
1196 power-supply = <&buck3_reg>;
1200 power-supply = <&ldo5_reg>;
1204 power-supply = <&buck4_reg>;
1208 pinctrl-names = "default";
1209 pinctrl-0 = <&pinctrl_haptic>;
1214 pinctrl-names = "default";
1215 pinctrl-0 = <&pinctrl_led_b>;
1220 pinctrl-names = "default";
1221 pinctrl-0 = <&pinctrl_led_r>;
1226 pinctrl-names = "default";
1227 pinctrl-0 = <&pinctrl_led_g>;
1232 pinctrl-names = "default";
1233 pinctrl-0 = <&pinctrl_sai2>;
1234 assigned-clocks = <&clk IMX8MQ_CLK_SAI2>;
1235 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
1236 assigned-clock-rates = <24576000>;
1241 pinctrl-names = "default";
1242 pinctrl-0 = <&pinctrl_sai6>;
1243 assigned-clocks = <&clk IMX8MQ_CLK_SAI6>;
1244 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
1245 assigned-clock-rates = <24576000>;
1246 fsl,sai-synchronous-rx;
1259 pinctrl-names = "default";
1260 pinctrl-0 = <&pinctrl_uart1>;
1264 &uart2 { /* TPS - GPS - DEBUG */
1265 pinctrl-names = "default";
1266 pinctrl-0 = <&pinctrl_uart2>;
1271 vcc-supply = <&reg_gnss>;
1272 current-speed = <9600>;
1277 pinctrl-names = "default";
1278 pinctrl-0 = <&pinctrl_uart3>;
1283 pinctrl-names = "default";
1284 pinctrl-0 = <&pinctrl_uart4>;
1285 uart-has-rtscts;
1294 vbus-supply = <&reg_hub>;
1299 #address-cells = <1>;
1300 #size-cells = <0>;
1303 usb-role-switch;
1310 remote-endpoint = <&usb_con_hs>;
1318 remote-endpoint = <&usb_con_ss>;
1326 #address-cells = <1>;
1327 #size-cells = <0>;
1333 #address-cells = <1>;
1334 #size-cells = <0>;
1336 mass-storage@1 {
1344 assigned-clocks = <&clk IMX8MQ_CLK_USDHC1>;
1345 assigned-clock-rates = <400000000>;
1346 pinctrl-names = "default", "state_100mhz", "state_200mhz";
1347 pinctrl-0 = <&pinctrl_usdhc1>;
1348 pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
1349 pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
1350 bus-width = <8>;
1351 vmmc-supply = <&reg_vdd_3v3>;
1352 power-supply = <&reg_vdd_1v8>;
1353 non-removable;
1358 assigned-clocks = <&clk IMX8MQ_CLK_USDHC2>;
1359 assigned-clock-rates = <200000000>;
1360 pinctrl-names = "default", "state_100mhz", "state_200mhz";
1361 pinctrl-0 = <&pinctrl_usdhc2>;
1362 pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
1363 pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
1364 bus-width = <4>;
1365 vmmc-supply = <&reg_wifi_3v3>;
1366 mmc-pwrseq = <&usdhc2_pwrseq>;
1367 post-power-on-delay-ms = <1000>;
1368 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
1369 max-frequency = <50000000>;
1370 disable-wp;
1371 cap-sdio-irq;
1372 keep-power-in-suspend;
1373 wakeup-source;
1378 pinctrl-names = "default";
1379 pinctrl-0 = <&pinctrl_wdog>;
1380 fsl,ext-reset-output;