Skip to content

Commit

Permalink
arm64: dts: imx8qm-mek: add pwm and i2c in lvds subsystem
Browse files Browse the repository at this point in the history
Add pwm[0,1] and i2c[0,1] in lvds subsystem.

Reviewed-by: Peng Fan <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
  • Loading branch information
nxpfrankli authored and Shawn Guo committed Sep 4, 2024
1 parent 52c9971 commit d8b4804
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8qm-mek.dts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,22 @@
};
};

lvds_backlight0: backlight-lvds0 {
compatible = "pwm-backlight";
pwms = <&qm_pwm_lvds0 0 100000 0>;
brightness-levels = <0 100>;
num-interpolated-steps = <100>;
default-brightness-level = <80>;
};

lvds_backlight1: backlight-lvds1 {
compatible = "pwm-backlight";
pwms = <&pwm_lvds1 0 100000 0>;
brightness-levels = <0 100>;
num-interpolated-steps = <100>;
default-brightness-level = <80>;
};

reg_usdhc2_vmmc: usdhc2-vmmc {
compatible = "regulator-fixed";
regulator-name = "SD1_SPWR";
Expand Down Expand Up @@ -334,6 +350,20 @@
};
};

&i2c1_lvds0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lvds0_lpi2c1>;
clock-frequency = <100000>;
status = "okay";
};

&i2c1_lvds1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lvds1_lpi2c1>;
clock-frequency = <100000>;
status = "okay";
};

&flexcan1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_flexcan1>;
Expand Down Expand Up @@ -443,6 +473,18 @@
status = "okay";
};

&qm_pwm_lvds0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm_lvds0>;
status = "okay";
};

&pwm_lvds1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm_lvds1>;
status = "okay";
};

&usdhc1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc1>;
Expand Down Expand Up @@ -669,6 +711,32 @@
>;
};

pinctrl_lvds0_lpi2c1: lvds0lpi2c1grp {
fsl,pins = <
IMX8QM_LVDS0_I2C1_SCL_LVDS0_I2C1_SCL 0xc600004c
IMX8QM_LVDS0_I2C1_SDA_LVDS0_I2C1_SDA 0xc600004c
>;
};

pinctrl_lvds1_lpi2c1: lvds1lpi2c1grp {
fsl,pins = <
IMX8QM_LVDS1_I2C1_SCL_LVDS1_I2C1_SCL 0xc600004c
IMX8QM_LVDS1_I2C1_SDA_LVDS1_I2C1_SDA 0xc600004c
>;
};

pinctrl_pwm_lvds0: pwmlvds0grp {
fsl,pins = <
IMX8QM_LVDS0_GPIO00_LVDS0_PWM0_OUT 0x00000020
>;
};

pinctrl_pwm_lvds1: pwmlvds1grp {
fsl,pins = <
IMX8QM_LVDS1_GPIO00_LVDS1_PWM0_OUT 0x00000020
>;
};

pinctrl_sai0: sai0grp {
fsl,pins = <
IMX8QM_SPI0_CS1_AUD_SAI0_TXC 0x0600004c
Expand Down

0 comments on commit d8b4804

Please sign in to comment.