Skip to content

Commit

Permalink
arm64: dts: qcom: msm8916-samsung-on7: Add panel to dts
Browse files Browse the repository at this point in the history
Signed-off-by: Jasper Korten <[email protected]>
  • Loading branch information
jja2000 committed Mar 24, 2022
1 parent 1d6136b commit 5d8ee8e
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
67 changes: 67 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-on7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,54 @@
pinctrl-0 = <&muic_int_default>;
};
};

reg_lcd: regulator-lcd {
compatible = "regulator-fixed";
regulator-name = "lcd";
regulator-min-microvolt = <2100000>;
regulator-max-microvolt = <2100000>;

gpio = <&msmgpio 16 GPIO_ACTIVE_HIGH>;
enable-active-high;

pinctrl-names = "default";
pinctrl-0 = <&lcd_en_default>;
};
};

&blsp1_uart2 {
status = "okay";
};

&dsi0 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&mdss_default>;
pinctrl-1 = <&mdss_sleep>;

panel@0 {
compatible = "samsung,s6d7aa0x62-bv050hdm";
reg = <0>;

lcd-supply = <&reg_lcd>;
reset-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>;

port {
panel_in: endpoint {
remote-endpoint = <&dsi0_out>;
};
};
};
};

&dsi0_out {
data-lanes = <0 1 2 3>;
remote-endpoint = <&panel_in>;
};

&mdss {
status = "okay";
};

&pm8916_resin {
status = "okay";
linux,code = <KEY_VOLUMEDOWN>;
Expand Down Expand Up @@ -224,6 +266,31 @@
bias-pull-up;
};

lcd_en_default: lcd-en-default {
pins = "gpio16";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

mdss {
mdss_default: mdss-default {
pins = "gpio25";
function = "gpio";

drive-strength = <8>;
bias-disable;
};
mdss_sleep: mdss-sleep {
pins = "gpio25";
function = "gpio";

drive-strength = <2>;
bias-pull-down;
};
};

muic_i2c_default: muic-i2c-default {
pins = "gpio105", "gpio106";
function = "gpio";
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/configs/msm8916_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ CONFIG_DRM_MSM=m
# CONFIG_DRM_MSM_HDMI_HDCP is not set
# CONFIG_DRM_MSM_DP is not set
CONFIG_DRM_PANEL_SIMPLE=m
CONFIG_DRM_PANEL_SAMSUNG_S6D7AA0X62_BV050HDM=m
CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01=m
CONFIG_DRM_PANEL_MSM8916_GENERATED=m
CONFIG_DRM_DISPLAY_CONNECTOR=m
Expand Down

0 comments on commit 5d8ee8e

Please sign in to comment.