Skip to content
Snippets Groups Projects
Commit c897f650 authored by Gianfranco Mariotti's avatar Gianfranco Mariotti Committed by Michele Cirinei
Browse files

[C43] add PCIe M.2 Key {E,B} W_DISABLE# support

parent 2a1cff21
No related branches found
No related tags found
1 merge request!160[C43] add PCIe M.2 Key {E,B} W_DISABLE# support
...@@ -259,6 +259,76 @@ ...@@ -259,6 +259,76 @@
regulator-boot-on; regulator-boot-on;
regulator-always-on; regulator-always-on;
}; };
/* PCIEA */
m2_keyb_w_dis1n: m2_keyb_w_dis1n {
compatible = "regulator-fixed";
regulator-name = "m2_keyb_w_dis1n";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
gpio = <&lsio_gpio0 1 GPIO_ACTIVE_HIGH>;
};
m2_keyb_w_dis1n_consumer: M2_KEYB_W_DIS1N {
compatible = "reg-userspace-consumer";
regulator-name = "M2_KEYB_W_DIS1#";
regulator-supplies = "m2_keyb_w_dis1n";
m2_keyb_w_dis1n-supply = <&m2_keyb_w_dis1n>;
regulator-boot-on;
};
m2_keyb_w_dis2n: m2_keyb_w_dis2n {
compatible = "regulator-fixed";
regulator-name = "m2_keyb_w_dis2n";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
gpio = <&lsio_gpio0 4 GPIO_ACTIVE_HIGH>;
};
m2_keyb_w_dis2n_consumer: M2_KEYB_W_DIS2N {
compatible = "reg-userspace-consumer";
regulator-name = "M2_KEYB_W_DIS2#";
regulator-supplies = "m2_keyb_w_dis2n";
m2_keyb_w_dis2n-supply = <&m2_keyb_w_dis2n>;
regulator-boot-on;
};
/* PCIEB */
m2_keye_w_dis1n: m2_keye_w_dis1n {
compatible = "regulator-fixed";
regulator-name = "m2_keye_w_dis1n";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
gpio = <&lsio_gpio0 0 GPIO_ACTIVE_HIGH>;
};
m2_keye_w_dis1n_consumer: M2_KEYE_W_DIS1N {
compatible = "reg-userspace-consumer";
regulator-name = "M2_KEYE_W_DIS1#";
regulator-supplies = "m2_keye_w_dis1n";
m2_keye_w_dis1n-supply = <&m2_keye_w_dis1n>;
regulator-boot-on;
};
m2_keye_w_dis2n: m2_keye_w_dis2n {
compatible = "regulator-fixed";
regulator-name = "m2_keye_w_dis2n";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
enable-active-high;
gpio = <&lsio_gpio0 2 GPIO_ACTIVE_HIGH>;
};
m2_keye_w_dis2n_consumer: M2_KEYE_W_DIS2N {
compatible = "reg-userspace-consumer";
regulator-name = "M2_KEYE_W_DIS2#";
regulator-supplies = "m2_keye_w_dis2n";
m2_keye_w_dis2n-supply = <&m2_keye_w_dis2n>;
regulator-boot-on;
};
}; };
modem_reset: modem-reset { modem_reset: modem-reset {
...@@ -854,7 +924,7 @@ ...@@ -854,7 +924,7 @@
&pciea{ &pciea{
ext_osc = <1>; ext_osc = <1>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pciea>; pinctrl-0 = <&pinctrl_pciea &pinctrl_pciea_w_dis>;
reset-gpio = <&lsio_gpio4 29 GPIO_ACTIVE_LOW>; reset-gpio = <&lsio_gpio4 29 GPIO_ACTIVE_LOW>;
clkreq-gpio = <&lsio_gpio4 27 GPIO_ACTIVE_LOW>; clkreq-gpio = <&lsio_gpio4 27 GPIO_ACTIVE_LOW>;
status = "okay"; status = "okay";
...@@ -863,7 +933,7 @@ ...@@ -863,7 +933,7 @@
&pcieb{ &pcieb{
ext_osc = <1>; ext_osc = <1>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pcieb>; pinctrl-0 = <&pinctrl_pcieb &pinctrl_pcieb_w_dis>;
reset-gpio = <&lsio_gpio5 0 GPIO_ACTIVE_LOW>; reset-gpio = <&lsio_gpio5 0 GPIO_ACTIVE_LOW>;
clkreq-gpio = <&lsio_gpio4 30 GPIO_ACTIVE_LOW>; clkreq-gpio = <&lsio_gpio4 30 GPIO_ACTIVE_LOW>;
status = "okay"; status = "okay";
...@@ -1324,6 +1394,20 @@ ldb1_backlight: lvds_backlight@0 { ...@@ -1324,6 +1394,20 @@ ldb1_backlight: lvds_backlight@0 {
>; >;
}; };
pinctrl_pciea_w_dis: pcieawdisgrp {
fsl,pins = <
IMX8QM_SIM0_RST_LSIO_GPIO0_IO01 0x00000021 /* M2_KEYB_W_DIS1# */
IMX8QM_SIM0_POWER_EN_LSIO_GPIO0_IO04 0x00000021 /* M2_KEYB_W_DIS2# */
>;
};
pinctrl_pcieb_w_dis: pciebwdisgrp {
fsl,pins = <
IMX8QM_SIM0_CLK_LSIO_GPIO0_IO00 0x00000021 /* M2_KEYE_W_DIS1# */
IMX8QM_SIM0_IO_LSIO_GPIO0_IO02 0x00000021 /* M2_KEYE_W_DIS2# */
>;
};
pinctrl_usdhc1: usdhc1grp { pinctrl_usdhc1: usdhc1grp {
fsl,pins = < fsl,pins = <
IMX8QM_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041 IMX8QM_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment