diff --git a/arch/arm64/boot/dts/seco/seco-imx8qm-c43.dts b/arch/arm64/boot/dts/seco/seco-imx8qm-c43.dts index 4bc4af451df444db7030ad332490535fff94d575..4dd308b2468e32601529c9e967e37f4796afb4e7 100644 --- a/arch/arm64/boot/dts/seco/seco-imx8qm-c43.dts +++ b/arch/arm64/boot/dts/seco/seco-imx8qm-c43.dts @@ -259,6 +259,76 @@ regulator-boot-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 { @@ -854,7 +924,7 @@ &pciea{ ext_osc = <1>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_pciea>; + pinctrl-0 = <&pinctrl_pciea &pinctrl_pciea_w_dis>; reset-gpio = <&lsio_gpio4 29 GPIO_ACTIVE_LOW>; clkreq-gpio = <&lsio_gpio4 27 GPIO_ACTIVE_LOW>; status = "okay"; @@ -863,7 +933,7 @@ &pcieb{ ext_osc = <1>; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_pcieb>; + pinctrl-0 = <&pinctrl_pcieb &pinctrl_pcieb_w_dis>; reset-gpio = <&lsio_gpio5 0 GPIO_ACTIVE_LOW>; clkreq-gpio = <&lsio_gpio4 30 GPIO_ACTIVE_LOW>; status = "okay"; @@ -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 { fsl,pins = < IMX8QM_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041