Skip to content

Instantly share code, notes, and snippets.

@iuncuim
Created May 13, 2023 05:09
Show Gist options
  • Save iuncuim/bd3b986e7a70307f08569b81d4599263 to your computer and use it in GitHub Desktop.
Save iuncuim/bd3b986e7a70307f08569b81d4599263 to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: BSD-3-Clause
/dts-v1/;
#include "msm8976.dtsi"
#include "pm8950.dtsi"
#include "pm8004.dtsi"
#include "pmi8950.dtsi"
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/gpio-keys.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/input/ti-drv260x.h>
/ {
model = "Leeco Le S2";
compatible = "leeco,s2", "qcom,msm8976";
qcom,msm-id = <278 0x10001>;
qcom,board-id = <8 0>;
chosen {
#address-cells = <2>;
#size-cells = <2>;
ranges;
stdout-path = "serial0:115200n8";
};
reserved-memory {
ramoops {
compatible = "removed-dma-pool", "ramoops";
no-map;
reg = <0 0x9ff00000 0 0x100000>;
record-size = <0x10000>;
console-size = <0x60000>;
ftrace-size = <0x10000>;
pmsg-size = <0x20000>;
ecc-size = <16>;
status = "okay";
};
/delete-node/ memory@83000000;
cont_splash_mem: memory@82000000 {
reg = <0x0 0x82000000 0x0 0x2800000>;
};
/delete-node/ ext-region@85b00000;
ext-region@84a00000 {
reg = <0x0 0x84a00000 0x0 0x1900000>;
no-map;
};
};
vph_pwr: vph-pwr-regulator {
compatible = "regulator-fixed";
regulator-name = "vph_pwr";
regulator-always-on;
regulator-boot-on;
};
gpio_keys {
compatible = "gpio-keys";
input-name = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
button@0 {
label = "Volume Up";
gpios = <&tlmm 113 GPIO_ACTIVE_LOW>;
linux,input-type = <EV_KEY>;
linux,code = <KEY_VOLUMEUP>;
wakeup-source;
debounce-interval = <15>;
};
};
};
&adreno_gpu{
status = "okay";
};
&sdhc_1 {
vmmc-supply = <&pm8950_l8>;
vqmmc-supply = <&pm8950_l5>;
status = "okay";
};
&pmi8950_wled {
status = "okay";
qcom,current-limit-microamp = <20000>;
qcom,enabled-strings = <0 1>;
qcom,ovp-millivolt = <29600>;
};
&dsi0 {
panel@0 {
compatible = "mdss,ili9885-lide-auo";
reg = <0>;
backlight = <&pmi8950_wled>;
supply-names = "vsp", "vsn";
vsp-supply = <&lab_vreg>;
vsn-supply = <&ibb_vreg>;
reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&pmx_mdss_default &mdss_te_default>;
pinctrl-1 = <&pmx_mdss_sleep &mdss_te_default>;
port {
panel_in: endpoint {
remote-endpoint = <&dsi0_out>;
};
};
};
};
&dsi0_out {
data-lanes = <0 1 2 3>;
remote-endpoint = <&panel_in>;
};
&dsi0_phy {
status = "okay";
vddio-supply = <&pm8950_l6>;
};
&dsi0 {
vdd-supply = <&pm8950_l17>;
vdda-supply = <&pm8950_l1>;
vddio-supply = <&pm8950_l6>;
};
&sound_card {
status = "disabled";
};
&blsp1_i2c2 {
status = "okay";
fusb302: fusb302@22 {
compatible = "fcs,fusb302";
reg = <0x22>;
pinctrl-0 = <&fusb302_irq_active &fusb302_irq_sleep>;
pinctrl-names = "default";
interrupt-parent = <&tlmm>;
/* FIXME */
interrupts = <133 IRQ_TYPE_NONE>;
status = "okay";
};
led-controller@45 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "awinic,aw2013";
reg = <0x45>;
vcc-supply = <&pm8950_l10>;
led@0 {
reg = <0>;
led-max-microamp = <5000>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <1>;
led-max-microamp = <5000>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <2>;
led-max-microamp = <5000>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_BLUE>;
};
};
};
&blsp1_i2c4 {
/* touch here */
status = "okay";
};
&blsp2_i2c2 {
status = "disabled";
};
&blsp2_i2c4 {
status = "disabled";
};
&pronto {
status = "okay";
vddpx-supply = <&pm8950_l5>;
};
&iris {
vddxo-supply = <&pm8950_l7>;
vddrfa-supply = <&pm8950_l19>;
vddpa-supply = <&pm8950_l9>;
vdddig-supply = <&pm8950_l5>;
};
&tlmm {
gpio-reserved-ranges = <0 4>, <8 4>;
cross_con_sus: cross_con_sus {
pins = "gpio69";
function = "gpio";
bias-pull-down;
drive-strength = <2>;
};
cross_con_act: cross_con_act {
pins = "gpio69";
function = "gpio";
bias-pull-down;
drive-strength = <8>;
};
mdp_vsync_p_gpio: mdp_sync_p_gpio {
pins = "gpio24";
function = "mdp_vsync";
drive-strength = <2>;
bias-disable;
};
pmx_mdss_default: pmx-mdss-default-pins {
pins = "gpio25";
function = "gpio";
drive-strength = <8>;
bias-disable;
output-high;
};
pmx_mdss_sleep: pmx-mdss-sleep-pins {
pins = "gpio25";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};
mdss_te_default: mdss-te-pins {
pins = "gpio24";
function = "mdp_vsync";
drive-strength = <2>;
bias-pull-down;
};
ts_reset: ts_reset {
pins = "gpio64";
function = "gpio";
drive-strength = <8>;
bias-pull-up;
};
ts_reset_suspend: ts_reset {
pins = "gpio64";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};
touch_int_default: touch_int_default {
pins = "gpio65";
function = "gpio";
drive-strength = <8>;
bias-pull-up;
};
touch_int_suspend: touch_int_suspend {
pins = "gpio65";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};
tlmm_pri_act: tlmm_quin_default {
pins = "gpio123", "gpio124", "gpio125", "gpio127";
function = "pri_mi2s";
drive-strength = <8>;
};
tlmm_pri_sus: tlmm_quin_sleep {
pins = "gpio123", "gpio124", "gpio125", "gpio127";
function = "pri_mi2s";
drive-strength = <2>;
bias-pull-down;
};
fusb302_irq_active: fusb302_irq_active {
pins = "gpio133";
function = "gpio";
drive-strength = <16>;
bias-pull-up;
};
fusb302_irq_sleep: fusb302_irq_sleep {
pins = "gpio133";
function = "gpio";
drive-strength = <16>;
bias-pull-up;
};
};
&pm8004_lsid5 {
status = "okay";
};
&gcc {
vdd_gfx-supply = <&pm8004_s5>;
};
&pm8004_spmi_regulators {
vdd_s2-supply = <&vph_pwr>;
vdd_s5-supply = <&vph_pwr>;
status = "okay";
pm8004_s2: s2 {
regulator-always-on;
regulator-boot-on;
regulator-name = "vdd_apc1";
regulator-min-microvolt = <950000>;
regulator-max-microvolt = <1165000>;
};
pm8004_s5: s5 {
regulator-name = "VDD_GFX";
regulator-min-microvolt = <950000>;
regulator-max-microvolt = <1165000>;
regulator-enable-ramp-delay = <500>;
regulator-always-on;
regulator-initial-mode = <1>;
regulator-allowed-modes = <1>, <2>, <3>;
};
};
&otg {
status = "okay";
extcon = <&fusb302>,<0>;
v1p8-supply = <&pm8950_l7>;
v3p3-supply = <&pm8950_l13>;
};
&usb_hs_phy_8916 {
status = "okay";
extcon = <&fusb302>,<0>;
v1p8-supply = <&pm8950_l7>;
v3p3-supply = <&pm8950_l13>;
};
&wcd_codec {
status="okay";
qcom,micbias1-ext-cap;
qcom,hphl-jack-type-normally-open;
qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
vdd-cdc-io-supply = <&pm8950_l5>;
vdd-cdc-tx-rx-cx-supply = <&pm8950_s4>;
vdd-micbias-supply = <&pm8950_l13>;
};
&rpm_requests {
pm8950_regulators: pm8950-regulators {
compatible = "qcom,rpm-pm8950-regulators";
vdd_s1-supply = <&vph_pwr>;
vdd_s2-supply = <&vph_pwr>;
vdd_s3-supply = <&vph_pwr>;
vdd_s4-supply = <&vph_pwr>;
vdd_s6-supply = <&vph_pwr>;
vdd_l1_l19-supply = <&pm8950_s3>;
vdd_l2_l23-supply = <&pm8950_s3>;
vdd_l3-supply = <&pm8950_s3>;
vdd_l5_l6_l7_l16-supply = <&pm8950_s4>;
vdd_l8_l11_l12_l17_l22-supply = <&vph_pwr>;
pm8950_s1: s1 {
regulator-min-microvolt = <863000>;
regulator-max-microvolt = <1162500>;
};
pm8950_s3: s3 {
regulator-min-microvolt = <1325000>;
regulator-max-microvolt = <1325000>;
};
pm8950_s4: s4 {
regulator-min-microvolt = <2050000>;
regulator-max-microvolt = <2050000>;
};
pm8950_l1: l1 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pm8950_l2: l2 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pm8950_l3: l3 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pm8950_l5: l5 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8950_l6: l6 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8950_l7: l7 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8950_l8: l8 {
regulator-min-microvolt = <2900000>;
regulator-max-microvolt = <2900000>;
};
pm8950_l9: l9 {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3300000>;
};
pm8950_l10: l10 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
};
pm8950_l11: l11 {
regulator-always-on;
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
};
pm8950_l12: l12 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pm8950_l13: l13 {
regulator-min-microvolt = <3075000>;
regulator-max-microvolt = <3075000>;
};
pm8950_l14: l14 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
};
pm8950_l15: l15 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
};
pm8950_l16: l16 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8950_l17: l17 {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <2850000>;
};
pm8950_l19: l19 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1350000>;
};
pm8950_l22: l22 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
};
pm8950_l23: l23 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
};
};
&tsens {
status = "disabled";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment