forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 171
arm64: dts: qcom: msm8916-vivo-pd1505f: Add initial device tree #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
QuiXan
wants to merge
4
commits into
msm8916-mainline:wip/msm8916/7.0
Choose a base branch
from
QuiXan:wip/msm8916/7.0
base: wip/msm8916/7.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+318
−0
Open
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,313 @@ | ||
| // SPDX-License-Identifier: GPL-2.0-only | ||
|
|
||
| /dts-v1/; | ||
|
|
||
| #include "msm8916-pm8916.dtsi" | ||
| #include <dt-bindings/gpio/gpio.h> | ||
| #include <dt-bindings/input/input.h> | ||
| #include <dt-bindings/interrupt-controller/irq.h> | ||
| #include <dt-bindings/pwm/pwm.h> | ||
| #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> | ||
| #include <dt-bindings/pinctrl/qcom,pmic-mpp.h> | ||
| #include <dt-bindings/leds/common.h> | ||
|
QuiXan marked this conversation as resolved.
Outdated
|
||
|
|
||
| / { | ||
| model = "Vivo Y31A (PD1505F)"; | ||
| compatible = "pd1505f", "qcom,msm8916"; | ||
|
QuiXan marked this conversation as resolved.
Outdated
|
||
| chassis-type = "handset"; | ||
|
|
||
| aliases { | ||
| mmc0 = &sdhc_1; | ||
| mmc1 = &sdhc_2; | ||
| serial0 = &blsp_uart2; | ||
| }; | ||
|
|
||
| chosen { | ||
| stdout-path = "serial0"; | ||
| }; | ||
|
|
||
| gpio-keys { | ||
| compatible = "gpio-keys"; | ||
| pinctrl-0 = <&gpio_keys_default>; | ||
| pinctrl-names = "default"; | ||
| label = "GPIO Buttons"; | ||
|
|
||
| button-volume-up { | ||
| label = "Volume Up"; | ||
| gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; | ||
| linux,code = <KEY_VOLUMEUP>; | ||
| }; | ||
| }; | ||
|
|
||
| usb_id: usb-id { | ||
| compatible = "linux,extcon-usb-gpio"; | ||
| id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; | ||
| pinctrl-0 = <&usb_id_default>; | ||
| pinctrl-names = "default"; | ||
| }; | ||
|
|
||
| backlight: backlight { | ||
| compatible = "pwm-backlight"; | ||
| pwms = <&pm8916_pwm 0 40000>; | ||
| brightness-levels = <0 255>; | ||
| num-interpolated-steps = <255>; | ||
| default-brightness-level = <255>; | ||
| enable-gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>; | ||
| pinctrl-0 = <&lcd_bl_en_default>; | ||
| pinctrl-names = "default"; | ||
| post-pwm-on-delay-ms = <10>; | ||
| pwm-off-delay-ms = <10>; | ||
| }; | ||
|
|
||
| battery: battery-cell { | ||
| compatible = "simple-battery"; | ||
| voltage-min-design-microvolt = <3450000>; | ||
| voltage-max-design-microvolt = <4350000>; | ||
| energy-full-design-microwatt-hours = <8470000>; | ||
| charge-full-design-microamp-hours = <2200000>; | ||
|
|
||
| ocv-capacity-celsius = <25>; | ||
| ocv-capacity-table-0 = <4350000 100>, <4300000 95>, <4250000 90>, | ||
| <4200000 85>, <4150000 80>, <4100000 75>, | ||
| <4050000 70>, <4000000 65>, <3950000 60>, | ||
| <3900000 55>, <3850000 50>, <3820000 45>, | ||
| <3800000 40>, <3780000 35>, <3760000 30>, | ||
| <3740000 25>, <3720000 20>, <3700000 16>, | ||
| <3690000 13>, <3680000 11>, <3670000 10>, | ||
| <3660000 9>, <3650000 8>, <3640000 7>, | ||
| <3600000 6>, <3550000 5>, <3500000 4>, | ||
| <3450000 3>, <3400000 2>, <3300000 1>, | ||
| <3000000 0>; | ||
| }; | ||
|
QuiXan marked this conversation as resolved.
Outdated
|
||
| }; | ||
|
|
||
| &blsp_i2c2 { | ||
| status = "okay"; | ||
|
|
||
| accelerometer@18 { | ||
| compatible = "st,lis3dh-accel"; | ||
| reg = <0x18>; | ||
| interrupts-extended = <&tlmm 21 IRQ_TYPE_EDGE_RISING>; | ||
| vdd-supply = <&pm8916_l17>; | ||
| vddio-supply = <&pm8916_l6>; | ||
| pinctrl-0 = <&accel_int_default>; | ||
| pinctrl-names = "default"; | ||
| mount-matrix = "-1", "0", "0", | ||
| "0", "1", "0", | ||
| "0", "0", "1"; | ||
| }; | ||
|
|
||
| magnetormeter@2e { | ||
| compatible = "yamaha,yas533"; | ||
| reg = <0x2e>; | ||
| vdd-supply = <&pm8916_l17>; | ||
| vddio-supply = <&pm8916_l6>; | ||
| }; | ||
|
|
||
| light-sensor@39 { | ||
| compatible = "amstaos,tmd2772"; | ||
| reg = <0x39>; | ||
| interrupts-extended = <&tlmm 113 IRQ_TYPE_EDGE_FALLING>; | ||
| vdd-supply = <&pm8916_l17>; | ||
| vddio-supply = <&pm8916_l6>; | ||
| pinctrl-0 = <&light_int_default>; | ||
| pinctrl-names = "default"; | ||
| }; | ||
| }; | ||
|
|
||
| &blsp_i2c5 { | ||
| status = "okay"; | ||
|
|
||
| touchscreen@14 { | ||
| compatible = "goodix,gt928"; | ||
| reg = <0x14>; | ||
|
|
||
| interrup-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>; | ||
| irq-gpios = <&tlmm 13 GPIO_ACTIVE_LOW>; | ||
| reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>; | ||
|
|
||
| AVDD28-supply = <&pm8916_l16>; | ||
| touchscreen-size-x = <540>; | ||
| touchscreen-size-y = <960>; | ||
|
|
||
| pinctrl-0 = <&ts_int_default>, <&ts_rst_default>; | ||
| pinctrl-names = "default"; | ||
| }; | ||
| }; | ||
|
|
||
| &blsp_uart2 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &pm8916_bms { | ||
| monitored-battery = <&battery>; | ||
| status = "okay"; | ||
|
QuiXan marked this conversation as resolved.
|
||
| }; | ||
|
|
||
| &pm8916_resin { | ||
| linux,code = <KEY_VOLUMEDOWN>; | ||
| status = "okay"; | ||
|
QuiXan marked this conversation as resolved.
|
||
| }; | ||
|
|
||
| &pm8916_rpm_regulators { | ||
| pm8916_l16: l16 { | ||
| regulator-min-microvolt = <2850000>; | ||
| regulator-max-microvolt = <2850000>; | ||
| }; | ||
| pm8916_l17: l17 { | ||
| regulator-min-microvolt = <2850000>; | ||
| regulator-max-microvolt = <2850000>; | ||
| }; | ||
| }; | ||
|
|
||
| &sdhc_1 { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &sdhc_2 { | ||
| non-removable; | ||
| status = "okay"; | ||
|
QuiXan marked this conversation as resolved.
|
||
| }; | ||
|
|
||
| &usb { | ||
| extcon = <&usb_id>, <&usb_id>; | ||
| status = "okay"; | ||
|
QuiXan marked this conversation as resolved.
|
||
| }; | ||
|
|
||
| &usb_hs_phy { | ||
| extcon = <&usb_id>; | ||
| }; | ||
|
|
||
| &wcnss { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &wcnss_iris { | ||
| compatible = "qcom,wcn3620"; | ||
| }; | ||
|
|
||
| &wcnss_mem { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &tlmm { | ||
| accel_int_default: accel-int-default-state { | ||
| pins = "gpio21"; | ||
| function = "gpio"; | ||
| drive-strength = <2>; | ||
| bias-disable; | ||
| }; | ||
|
|
||
| gpio_keys_default: gpio-keys-default-state { | ||
| pins = "gpio107"; | ||
| function = "gpio"; | ||
| drive-strength = <2>; | ||
| bias-pull-up; | ||
| }; | ||
|
|
||
| light_int_default: light-int-default-state { | ||
| pins = "gpio113"; | ||
| function = "gpio"; | ||
| drive-strength = <2>; | ||
| bias-disable; | ||
| }; | ||
|
|
||
| lcd_bl_en_default: lcd-bl-en-default-state { | ||
| pins = "gpio8"; | ||
| function = "gpio"; | ||
| drive-strength = <2>; | ||
| bias-disable; | ||
| }; | ||
|
|
||
| mdss_default: mdss-default-state { | ||
| pins = "gpio25"; | ||
| function = "gpio"; | ||
| drive-strength = <8>; | ||
| bias-disable; | ||
| }; | ||
|
|
||
| mdss_sleep: mdss-sleep-state { | ||
| pins = "gpio25"; | ||
| function = "gpio"; | ||
| drive-strength = <2>; | ||
| bias-pull-down; | ||
| }; | ||
|
|
||
| usb_id_default: usb-id-default-state { | ||
| pins = "gpio110"; | ||
| function = "gpio"; | ||
| drive-strength = <8>; | ||
| bias-pull-up; | ||
| }; | ||
| ts_int_default: ts-int-default-state { | ||
| pins = "gpio13"; | ||
| function = "gpio"; | ||
| drive-strength = <2>; | ||
| bias-disable; | ||
| }; | ||
|
|
||
| ts_rst_default: ts-rst-default-state { | ||
| pins = "gpio12"; | ||
| function = "gpio"; | ||
| drive-strength = <2>; | ||
| bias-disable; | ||
| }; | ||
| }; | ||
|
|
||
| &pm8916_pwm { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &pm8916_mpps { | ||
| pwm_out: mpp4-state { | ||
| pins = "mpp4"; | ||
| function = "digital"; | ||
| power-source = <PM8916_MPP_VPH>; | ||
| output-low; | ||
| qcom,dtest = <1>; | ||
| }; | ||
| }; | ||
|
|
||
| &gpu { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &mdss { | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| &mdss_dsi0 { | ||
| pinctrl-0 = <&mdss_default>; | ||
| pinctrl-1 = <&mdss_sleep>; | ||
| pinctrl-names = "default", "sleep"; | ||
|
|
||
| panel@0 { | ||
| compatible = "vivo,pd1505f-panel"; | ||
| reg = <0>; | ||
|
|
||
| backlight = <&backlight>; | ||
| vdd-supply = <&pm8916_l17>; | ||
| vddio-supply = <&pm8916_l6>; | ||
| reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; | ||
|
|
||
| port { | ||
| panel_in: endpoint { | ||
| remote-endpoint = <&mdss_dsi0_out>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &mdss_dsi0_out { | ||
| data-lanes = <0 1>; | ||
| remote-endpoint = <&panel_in>; | ||
| }; | ||
|
|
||
| &mdss_dsi0_phy { | ||
| qcom,dsi-phy-regulator-ldo-mode; | ||
| }; | ||
|
|
||
| &bimc { | ||
| assigned-clocks = <&gcc BIMC_DDR_CLK_SRC>; | ||
| assigned-clock-rates = <400000000>; | ||
| }; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.