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
243 changes: 3 additions & 240 deletions arch/arm64/boot/dts/qcom/sdm636-xiaomi-tulip.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,13 @@
/dts-v1/;

#include "sdm636.dtsi"
#include "pm660.dtsi"
#include "pm660l.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/gpio-keys.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/sound/qcom,q6afe.h>
#include <dt-bindings/sound/qcom,q6asm.h>
#include "sdm660-xiaomi-common.dtsi"

/ {
model = "Xiaomi Redmi Note 6 Pro";
compatible = "xiaomi,tulip", "qcom,sdm636";
chassis-type = "handset";

aliases {
serial0 = &blsp1_uart2; /* Debug UART */
serial1 = &blsp2_uart1; /* Bluetooth UART */
};

battery: battery {
compatible = "simple-battery";

Expand All @@ -37,8 +24,6 @@
#size-cells = <2>;
ranges;

stdout-path = "serial0:115200n8";

framebuffer0: framebuffer@9d400000 {
compatible = "simple-framebuffer";
reg = <0 0x9d400000 0x0 (1080 * 2280 * 4)>;
Expand All @@ -49,36 +34,6 @@
};
};

gpio-hall-sensor {
compatible = "gpio-keys";

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

switch {
label = "Hall Effect Sensor";
gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
linux,input-type = <EV_SW>;
linux,code = <SW_LID>;
linux,can-disable;
wakeup-source;
};
};

gpio-keys {
compatible = "gpio-keys";

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

key-volup {
label = "Volume Up";
gpios = <&pm660l_gpios 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
debounce-interval = <15>;
};
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
Expand All @@ -99,16 +54,6 @@
};
};

vph_pwr: vph-pwr-regulator {
compatible = "regulator-fixed";
regulator-name = "vph_pwr";
regulator-min-microvolt = <3700000>;
regulator-max-microvolt = <3700000>;

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

/*
* This is here until we have a driver for QPNP LCDB regulator.
* It can emulate both positive LDO and negative NCP supplies for panel.
Expand All @@ -127,12 +72,8 @@
};
};

&adreno_gpu {
status = "okay";
};

&adreno_gpu_zap {
firmware-name = "a512_zap.mbn";
firmware-name = "qcom/sdm660/xiaomi/tulip/a512_zap.mdt";
};

&blsp_i2c1 {
Expand Down Expand Up @@ -164,31 +105,14 @@
status = "okay";
};

&blsp1_uart2 {
&gpio_hall_sensor {
status = "okay";
};

&blsp2_uart1 {
status = "okay";

bluetooth {
compatible = "qcom,wcn3990-bt";
vddxo-supply = <&vreg_l9a_1p8>; // downstream: vdd-core-supply
vddrf-supply = <&vreg_l6a_1p3>; // vdd-pa-supply
vddch0-supply = <&vreg_l19a_3p3>; // vdd-ldo-supply
vddio-supply = <&vreg_l13a_1p8>; // chip-pwd-supply ? // TODO: check
max-speed = <3200000>;
};
};

&lpass_codec {
status = "okay";
};

&mdss {
status = "okay";
};

&mdss_dsi0 {
status = "okay";

Expand Down Expand Up @@ -232,10 +156,6 @@
status = "okay";
};

&mmss_smmu {
status = "okay";
};

&pm660_charger {
monitored-battery = <&battery>;

Expand All @@ -249,100 +169,15 @@
status = "okay";
};

&pm660_haptics {
status = "okay";
};

&pm660_rradc {
status = "okay";
};

&pm660l_codec {
vdd-cdc-io-supply = <&vreg_s4a_2p04>;
vdd-cdc-tx-rx-cx-supply = <&vreg_s4a_2p04>;
vdd-micbias-supply = <&vreg_l7b_3p125>;

qcom,micbias-lvl = <2600>;
qcom,micbias1-ext-cap;

status = "okay";
};

&pm660l_gpios {
vol_up_default: vol-up-default-state {
pins = "gpio7";
function = PMIC_GPIO_FUNC_NORMAL;
bias-pull-up;
input-enable;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
};
};

&pm660l_lpg {
#address-cells = <1>;
#size-cells = <0>;
qcom,power-source = <1>;

status = "okay";

led@3 {
reg = <3>;
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_STATUS;
};
};

&pm660l_wled {
qcom,switching-freq = <800>;
qcom,current-limit-microamp = <20000>;
qcom,num-strings = <2>;

status = "okay";
};

&pon_pwrkey {
status = "okay";
};

&pon_resin {
linux,code = <KEY_VOLUMEDOWN>;

status = "okay";
};

&q6afedai {
dai@81 {
reg = <INT0_MI2S_RX>;
qcom,sd-lines = <0 1>;
};

dai@88 {
reg = <INT3_MI2S_TX>;
qcom,sd-lines = <0 1>;
};
};

&q6asmdai {
dai@0 {
reg = <0>;
};

dai@1 {
reg = <1>;
};
};

&qusb2phy0 {
vdd-supply = <&vreg_l1b_0p925>;
vdda-pll-supply = <&vreg_l10a_1p8>;
vdda-phy-dpdm-supply = <&vreg_l7b_3p125>;

status = "okay";
};

&remoteproc_mss {
firmware-name = "mba.mbn", "modem.mdt";

status = "okay";
};

Expand Down Expand Up @@ -600,42 +435,7 @@
};
};

&sdc2_state_on {
sd-cd-pins {
pins = "gpio54";
function = "gpio";
bias-pull-up;
drive-strength = <2>;
};
};

&sdc2_state_off {
sd-cd-pins {
pins = "gpio54";
function = "gpio";
bias-disable;
drive-strength = <2>;
};
};

&sdhc_1 {
supports-cqe;

mmc-hs200-1_8v;
mmc-hs400-1_8v;
mmc-hs400-enhanced-strobe;

vmmc-supply = <&vreg_l4b_2p95>;
vqmmc-supply = <&vreg_l8a_1p8>;

status = "okay";
};

&sdhc_2 {
cd-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
vmmc-supply = <&vreg_l5b_2p95>;
vqmmc-supply = <&vreg_l2b_2p95>;

status = "okay";
};

Expand Down Expand Up @@ -713,15 +513,6 @@
};

&tlmm {
gpio-reserved-ranges = <8 4>;

gpio_hall_sensor_default: gpio-hall-sensor-default-state {
pins = "gpio75";
function = "gpio";
drive-strength = <6>;
bias-pull-up;
};

mdss_dsi_active: mdss-dsi-active-state {
function = "gpio";
pins = "gpio53";
Expand Down Expand Up @@ -758,31 +549,3 @@
};
};

&usb3 {
qcom,select-utmi-as-pipe-clk;

status = "okay";
};

&usb3_dwc3 {
maximum-speed = "high-speed";
phys = <&qusb2phy0>;
phy-names = "usb2-phy";
dr_mode = "peripheral";
};

&venus {
firmware-name = "qcom/venus-4.4/venus.mdt";

status = "okay";
};

&wifi {
vdd-0.8-cx-mx-supply = <&vreg_l5a_0p848>;
vdd-1.8-xo-supply = <&vreg_l9a_1p8>;
vdd-1.3-rfa-supply = <&vreg_l6a_1p3>;
vdd-3.3-ch0-supply = <&vreg_l19a_3p3>;
vdd-3.3-ch1-supply = <&vreg_l19a_3p3>;

status = "okay";
};
Loading
Loading