forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: dts: qcom: msm8909: add ZTE N818s sapphire
Signed-off-by: Kaesi Manakkal <[email protected]>
- Loading branch information
Showing
2 changed files
with
214 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
/dts-v1/; | ||
|
||
#include "qcom-msm8909-pm8909.dtsi" | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/input/input.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/leds/common.h> | ||
#include <dt-bindings/pinctrl/qcom,pmic-mpp.h> | ||
|
||
/ { | ||
model = "ZTE N818s"; | ||
compatible = "zte,sapphire", "qcom,msm8909"; | ||
chassis-type = "handset"; | ||
|
||
aliases { | ||
serial0 = &blsp_uart1; | ||
}; | ||
|
||
chosen { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges; | ||
stdout-path = "serial0"; | ||
|
||
framebuffer@83200036 { | ||
compatible = "simple-framebuffer"; | ||
|
||
/* The downstream bootloader gives us this unaligned framebuffer. | ||
We should also have a memory-region here, | ||
but due to this quirk, we can't */ | ||
|
||
reg = <0x83200036 (480 * 800 * 3)>; | ||
|
||
width = <480>; | ||
height = <800>; | ||
stride = <(480 * 3)>; | ||
format = "r8g8b8"; | ||
|
||
power-domains = <&gcc MDSS_GDSC>; | ||
|
||
clocks = <&gcc GCC_MDSS_AHB_CLK>, | ||
<&gcc GCC_MDSS_AXI_CLK>, | ||
<&gcc GCC_MDSS_VSYNC_CLK>, | ||
<&gcc GCC_MDSS_MDP_CLK>, | ||
<&gcc GCC_MDSS_BYTE0_CLK>, | ||
<&gcc GCC_MDSS_PCLK0_CLK>, | ||
<&gcc GCC_MDSS_ESC0_CLK>; | ||
}; | ||
}; | ||
|
||
reserved-memory { | ||
|
||
/* We should reserve 0x83200036 --> (480 * 800 * 3) | ||
However our framebuffer is unaligned, | ||
and memory reserves must align to page boundaries */ | ||
|
||
cont_splash_mem: memory@83200000 { | ||
reg = <0x83200000 (0x36 + (480 * 800 * 3))>; | ||
no-map; | ||
}; | ||
}; | ||
|
||
backlight: backlight { | ||
compatible = "pwm-backlight"; | ||
pwms = <&pm8909_pwm 0 100000>; | ||
|
||
brightness-levels = <0 255>; | ||
num-interpolated-steps = <255>; | ||
default-brightness-level = <255>; | ||
}; | ||
|
||
}; | ||
|
||
&blsp_uart1 { | ||
status = "okay"; | ||
}; | ||
|
||
&pm8909_usbin { | ||
status = "okay"; | ||
}; | ||
|
||
&pm8909_vib { | ||
status = "okay"; | ||
}; | ||
|
||
&sdhc_1 { | ||
status = "okay"; | ||
}; | ||
|
||
&sdhc_2 { | ||
non-removable; | ||
status = "okay"; | ||
}; | ||
|
||
&usb { | ||
extcon = <&pm8909_usbin>; | ||
dr_mode = "peripheral"; | ||
status = "okay"; | ||
}; | ||
|
||
&usb_hs_phy { | ||
extcon = <&pm8909_usbin>; | ||
}; | ||
|
||
&wcnss { | ||
status = "okay"; | ||
}; | ||
|
||
&wcnss_iris { | ||
compatible = "qcom,wcn3620"; | ||
}; | ||
|
||
&smd_rpm_regulators { | ||
s2 { | ||
regulator-min-microvolt = <1850000>; | ||
regulator-max-microvolt = <1850000>; | ||
}; | ||
|
||
l1 { | ||
regulator-min-microvolt = <1000000>; | ||
regulator-max-microvolt = <1000000>; | ||
}; | ||
|
||
l2 { | ||
regulator-min-microvolt = <1200000>; | ||
regulator-max-microvolt = <1200000>; | ||
}; | ||
|
||
l4 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
|
||
l5 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
|
||
l6 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
|
||
l7 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
|
||
l8 { | ||
regulator-min-microvolt = <2850000>; | ||
regulator-max-microvolt = <2900000>; | ||
}; | ||
|
||
l9 { | ||
regulator-min-microvolt = <3000000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
|
||
l10 { | ||
regulator-min-microvolt = <1225000>; | ||
regulator-max-microvolt = <1300000>; | ||
}; | ||
|
||
l11 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <2950000>; | ||
regulator-system-load = <200000>; | ||
regulator-allow-set-load; | ||
}; | ||
|
||
l12 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <2950000>; | ||
}; | ||
|
||
l13 { | ||
regulator-min-microvolt = <3075000>; | ||
regulator-max-microvolt = <3075000>; | ||
}; | ||
|
||
l14 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <3000000>; | ||
}; | ||
|
||
l15 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <3000000>; | ||
}; | ||
|
||
l17 { | ||
regulator-min-microvolt = <2850000>; | ||
regulator-max-microvolt = <2850000>; | ||
}; | ||
|
||
l18 { | ||
regulator-min-microvolt = <2700000>; | ||
regulator-max-microvolt = <2700000>; | ||
}; | ||
}; | ||
|
||
&pm8909_mpps { | ||
pwm_out: mpp2-state { | ||
pins = "mpp2"; | ||
function = "digital"; | ||
power-source = <PM8916_MPP_VPH>; | ||
output-low; | ||
qcom,dtest = <1>; | ||
}; | ||
}; |