Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 188 additions & 0 deletions arch/arm64/boot/dts/qcom/glymur-crd.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

/dts-v1/;

#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>

#include "glymur.dtsi"
#include "pmcx0102.dtsi" /* SPMI0: SID-2/3 SPMI1: SID-2/3 */
#include "pmh0101.dtsi" /* SPMI0: SID-1 */
Expand Down Expand Up @@ -151,6 +153,39 @@
};
};

vreg_edp_3p3: regulator-edp-3p3 {
compatible = "regulator-fixed";

regulator-name = "VREG_EDP_3P3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;

gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>;
enable-active-high;

pinctrl-0 = <&edp_reg_en>;
pinctrl-names = "default";

regulator-boot-on;
};

vreg_misc_3p3: regulator-misc-3p3 {
compatible = "regulator-fixed";

regulator-name = "VREG_MISC_3P3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;

gpio = <&pmh0110_f_e0_gpios 6 GPIO_ACTIVE_HIGH>;
enable-active-high;

pinctrl-names = "default";
pinctrl-0 = <&misc_3p3_reg_en>;

regulator-boot-on;
regulator-always-on;
};

vreg_nvme: regulator-nvme {
compatible = "regulator-fixed";

Expand Down Expand Up @@ -458,6 +493,44 @@
};
};

&i2c0 {
clock-frequency = <400000>;

status = "okay";

touchpad@2c {
compatible = "hid-over-i2c";
reg = <0x2c>;

hid-descr-addr = <0x20>;
interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>;

vdd-supply = <&vreg_misc_3p3>;
vddl-supply = <&vreg_l15b_e0_1p8>;

pinctrl-0 = <&tpad_default>;
pinctrl-names = "default";

wakeup-source;
};

keyboard@3a {
compatible = "hid-over-i2c";
reg = <0x3a>;

hid-descr-addr = <0x1>;
interrupts-extended = <&tlmm 67 IRQ_TYPE_LEVEL_LOW>;

vdd-supply = <&vreg_misc_3p3>;
vddl-supply = <&vreg_l15b_e0_1p8>;

pinctrl-0 = <&kybd_default>;
pinctrl-names = "default";

wakeup-source;
};
};

&i2c5 {
clock-frequency = <400000>;

Expand Down Expand Up @@ -500,6 +573,67 @@
};
};

&i2c8 {
clock-frequency = <400000>;

status = "okay";

touchscreen@38 {
compatible = "hid-over-i2c";
reg = <0x38>;

hid-descr-addr = <0x1>;
interrupts-extended = <&tlmm 51 IRQ_TYPE_LEVEL_LOW>;

vdd-supply = <&vreg_misc_3p3>;
vddl-supply = <&vreg_l15b_e0_1p8>;

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

&mdss {
status = "okay";
};

&mdss_dp3 {
/delete-property/ #sound-dai-cells;

status = "okay";

aux-bus {
panel {
compatible = "samsung,atna60cl08", "samsung,atna33xc20";
enable-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
power-supply = <&vreg_edp_3p3>;

pinctrl-0 = <&edp_bl_en>;
pinctrl-names = "default";

port {
edp_panel_in: endpoint {
remote-endpoint = <&mdss_dp3_out>;
};
};
};
};
};

&mdss_dp3_out {
data-lanes = <0 1 2 3>;
link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;

remote-endpoint = <&edp_panel_in>;
};

&mdss_dp3_phy {
vdda-phy-supply = <&vreg_l2f_e1_0p83>;
vdda-pll-supply = <&vreg_l4f_e1_1p08>;

status = "okay";
};

&pcie3b {
vddpe-3v3-supply = <&vreg_nvmesec>;

Expand Down Expand Up @@ -609,6 +743,19 @@
};
};

&pmh0110_f_e0_gpios {
misc_3p3_reg_en: misc-3p3-reg-en-state {
pins = "gpio6";
function = "normal";
bias-disable;
input-disable;
output-enable;
drive-push-pull;
power-source = <1>; /* 1.8 V */
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
};
};

&pmk8850_rtc {
qcom,no-alarm;
};
Expand Down Expand Up @@ -652,6 +799,20 @@
<10 2>, /* OOB UART */
<44 4>; /* Security SPI (TPM) */

edp_bl_en: edp-bl-en-state {
pins = "gpio18";
function = "gpio";
drive-strength = <16>;
bias-disable;
};

edp_reg_en: edp-reg-en-state {
pins = "gpio70";
function = "gpio";
drive-strength = <16>;
bias-disable;
};

pcie4_default: pcie4-default-state {
clkreq-n-pins {
pins = "gpio147";
Expand All @@ -675,6 +836,33 @@
};
};

kybd_default: kybd-default-state {
pins = "gpio67";
function = "gpio";
bias-disable;
};

tpad_default: tpad-default-state {
pins = "gpio3";
function = "gpio";
bias-disable;
};

ts0_default: ts0-default-state {
int-n-pins {
pins = "gpio51";
function = "gpio";
bias-disable;
};

reset-n-pins {
pins = "gpio48";
function = "gpio";
output-high;
drive-strength = <16>;
};
};

pcie5_default: pcie5-default-state {
clkreq-n-pins {
pins = "gpio153";
Expand Down
Loading