Qualcomm Arm32 DeviceTree updates for v6.10

The QCA8074 PHY package found in IPQ4019 is properly described.
 
 The Sony Xperia Z2 Tablet is cleaned up and improved, vibrator support
 is added, upon support for Sony Xperia Z3 is added.
 
 Also based on MSM8974, support for Samsung Galaxy S5 China is introduced.
 The WiFi board type is added for these "klte" Samsung devices, to select
 appropriate NVRAM firmware file.
 
 Based on MSM8226, support for Motorola Moto G (2013) is added.
 
 Nodes representing the PCIe bridges under existing controllers are added
 for APQ8064, IPQ4019, IPQ8064, and SDX55.
 
 A number of fixes throughout to improve compliance with DeviceTree
 bindings.
 -----BEGIN PGP SIGNATURE-----
 
 iQJJBAABCAAzFiEEBd4DzF816k8JZtUlCx85Pw2ZrcUFAmYtKW4VHGFuZGVyc3Nv
 bkBrZXJuZWwub3JnAAoJEAsfOT8Nma3FPiMP/jycFJVF5Sb6rG2PcZsziU61pKuJ
 8e98uHzQAh8WNqWbK0J0n9zZVHfHmk6+uBLNechwq9vOwvokLbD9DtdhcO7bvnj3
 HsQXaiPFkGdBNuKYOkdN5ZQ/3JTWRlQZhYMOp6JMetbUVEtgvN+rWDxfSwWFeIzW
 XmFmOzUCeUipQ6SqLbOVq0PnNd+7W89w/UzhTKtC/NHS1nZEpmpmovcKl2Vwqr9Z
 GIf8vIxH1FfokFZK1VeNvePpMBJh85OX8jzAhc9HPp6y2FNkg/H0dcnEO3263/Bn
 WoRAQ2LDMnIHa4mf4nYiD4Wk8vnTw8/RtmzqUmvKQ/NRsHHzxJux7ec7tTAwHqBV
 jZtcoM0CIRAr/HtbZfxL88pDZA5QvUWxcfefnruq63eLPg62feMhyDxYdFZQJTGh
 JqVGSpr6WvW4SAiJRI6XAIvLBDoRkhw/W4d8M+ClszPi+lHiGsqiSKSsQ7Hab1hO
 cCaPABCdZ3f/8HlB6vpAuYrzCSjblR8+6ns2cb616/1uGt58I4NKPUkJ/zF5Us5P
 4gokYhkkVIw2pwlA5esq0J4beOA+ku2ROJB9XOXp88ZixTJXicyGA4w1eLt6yumn
 AoD7w30jzCCw141O6a7BY5S4UtIc5GPcnYwGjJQ/Imqzqi2C6PfVbQ2nJsrH26QG
 lco6AtcNSBSVQPN4
 =qXDI
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEiK/NIGsWEZVxh/FrYKtH/8kJUicFAmYvr84ACgkQYKtH/8kJ
 Uifqyg/+N8lf8fxN1I6jcE7j1rUvEX0s6VypN8YfQfFZVI4v5qfjCwRUFs19sDF1
 7ItBUXIJTQvvC7N8u1WuvfsJ8FvAdeJ2+xC0KkyYFvu7PIpxvi8nEOyY7OV0bjLa
 cUXGlKfk4Dsb5ohUvkS7ELK1LsS0rEWIJskrjIuD0I960joSP9fgE3GUs+cRw6Wy
 TesK4H+0mztkgNDCIIBp1XHUgt6LFVrFxJ5wo8WYlwP+QKYcmtlMpYAdpHzJk3Wu
 ZAMGXY2MxzqCX1GTPzCFHYjoDRaVoMMVREmSvqy7121ZhxpQ4L1o6Z47YvgbzAE8
 weGXhAZrYKXpjrUo0UBm8fidob2RGfAOjt5AaKBbtUsldDkL9CNZMfscV+hQjHg9
 ooeLGVrWSs8wbIcPO/IPbCESLwpsGuH938csWVZ+HApoRe3Vv521WnRP9Tam7Ua2
 ST6I9VQ4bJT5v2oXTLNNHGA6qUvOXfbXd9hnMBe/qt631btxkmqCnY6FkoMUJgmD
 fH3Fcq/01TJjJcO7cnh0ygfNDScQ9E3WjC/IIG1MToFEMJRq948Egcw/Eqolh4g6
 uqTpDTyo5R+/kQki+7gD/2Qebljci4hCcMebOSji6nBRwkyJHKyh0c7TXsEkltfX
 1vyPkLZepa3xl4N/wDYl+XRiVwz340Qh1hJYH09Y36GwMHENxGc=
 =ejIZ
 -----END PGP SIGNATURE-----

Merge tag 'qcom-arm32-for-6.10' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into soc/dt

Qualcomm Arm32 DeviceTree updates for v6.10

The QCA8074 PHY package found in IPQ4019 is properly described.

The Sony Xperia Z2 Tablet is cleaned up and improved, vibrator support
is added, upon support for Sony Xperia Z3 is added.

Also based on MSM8974, support for Samsung Galaxy S5 China is introduced.
The WiFi board type is added for these "klte" Samsung devices, to select
appropriate NVRAM firmware file.

Based on MSM8226, support for Motorola Moto G (2013) is added.

Nodes representing the PCIe bridges under existing controllers are added
for APQ8064, IPQ4019, IPQ8064, and SDX55.

A number of fixes throughout to improve compliance with DeviceTree
bindings.

* tag 'qcom-arm32-for-6.10' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux: (22 commits)
  ARM: dts: qcom: msm8974: Add DTS for Samsung Galaxy S5 China (kltechn)
  ARM: dts: qcom: msm8974-klte-common: Pin WiFi board type
  ARM: dts: qcom: msm8974: Split out common part of samsung-klte
  ARM: dts: qcom: sdx55: Add PCIe bridge node
  ARM: dts: qcom: apq8064: Add PCIe bridge node
  ARM: dts: qcom: ipq4019: Add PCIe bridge node
  ARM: dts: qcom: ipq8064: Add PCIe bridge node
  ARM: dts: qcom: msm8974-sony-shinano: Enable vibrator
  ARM: dts: qcom: ipq4019: add QCA8075 PHY Package nodes
  ARM: dts: qcom: Add support for Motorola Moto G (2013)
  dt-bindings: arm: qcom: Add Motorola Moto G (2013)
  ARM: dts: qcom: msm8974: Add empty chosen node
  ARM: dts: qcom: msm8974: Add @0 to memory node name
  ARM: dts: qcom: Add Sony Xperia Z3 smartphone
  ARM: dts: qcom: msm8974-sony-castor: Split into shinano-common
  ARM: dts: qcom: msm8916: idle-state compatible require the generic idle-state
  ARM: dts: qcom: include cpu in idle-state node names
  ARM: dts: qcom: msm8974pro-castor: Rename wifi node name
  ARM: dts: qcom: msm8974pro-castor: Add debounce-interval for keys
  ARM: dts: qcom: msm8974pro-castor: Remove camera button definitions
  ...

Link: https://lore.kernel.org/r/20240427163625.1432458-1-andersson@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2024-04-29 16:33:49 +02:00
commit 80a02b1763
16 changed files with 1899 additions and 1377 deletions

View File

@ -137,6 +137,7 @@ properties:
- microsoft,dempsey
- microsoft,makepeace
- microsoft,moneypenny
- motorola,falcon
- samsung,s3ve3g
- const: qcom,msm8226

View File

@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_ARCH_QCOM) += \
msm8226-motorola-falcon.dtb \
qcom-apq8016-sbc.dtb \
qcom-apq8026-asus-sparrow.dtb \
qcom-apq8026-huawei-sturgeon.dtb \
@ -45,7 +46,9 @@ dtb-$(CONFIG_ARCH_QCOM) += \
qcom-msm8974pro-fairphone-fp2.dtb \
qcom-msm8974pro-oneplus-bacon.dtb \
qcom-msm8974pro-samsung-klte.dtb \
qcom-msm8974pro-samsung-kltechn.dtb \
qcom-msm8974pro-sony-xperia-shinano-castor.dtb \
qcom-msm8974pro-sony-xperia-shinano-leo.dtb \
qcom-mdm9615-wp8548-mangoh-green.dtb \
qcom-sdx55-mtp.dtb \
qcom-sdx55-t55.dtb \

View File

@ -0,0 +1,359 @@
// SPDX-License-Identifier: BSD-3-Clause
/dts-v1/;
#include "qcom-msm8226.dtsi"
#include "pm8226.dtsi"
/delete-node/ &smem_region;
/ {
model = "Motorola Moto G (2013)";
compatible = "motorola,falcon", "qcom,msm8226";
chassis-type = "handset";
aliases {
mmc0 = &sdhc_1;
};
chosen {
#address-cells = <1>;
#size-cells = <1>;
ranges;
framebuffer@3200000 {
compatible = "simple-framebuffer";
reg = <0x03200000 0x800000>;
width = <720>;
height = <1280>;
stride = <(720 * 3)>;
format = "r8g8b8";
vsp-supply = <&reg_lcd_pos>;
vsn-supply = <&reg_lcd_neg>;
vddio-supply = <&vddio_disp_vreg>;
};
};
gpio-keys {
compatible = "gpio-keys";
event-hall-sensor {
label = "Hall Effect Sensor";
gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
linux,input-type = <EV_SW>;
linux,code = <SW_LID>;
linux,can-disable;
};
key-volume-up {
label = "Volume Up";
gpios = <&tlmm 106 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
debounce-interval = <15>;
};
};
vddio_disp_vreg: regulator-vddio-disp {
compatible = "regulator-fixed";
regulator-name = "vddio_disp";
gpio = <&tlmm 34 GPIO_ACTIVE_HIGH>;
vin-supply = <&pm8226_l8>;
startup-delay-us = <300>;
enable-active-high;
regulator-boot-on;
};
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
framebuffer@3200000 {
reg = <0x03200000 0x800000>;
no-map;
};
dhob@f500000 {
reg = <0x0f500000 0x40000>;
no-map;
};
shob@f540000 {
reg = <0x0f540000 0x2000>;
no-map;
};
smem_region: smem@fa00000 {
reg = <0x0fa00000 0x100000>;
no-map;
};
/* Actually <0x0fa00000 0x500000>, but first 100000 is smem */
reserved@fb00000 {
reg = <0x0fb00000 0x400000>;
no-map;
};
};
};
&blsp1_i2c3 {
status = "okay";
regulator@3e {
compatible = "ti,tps65132";
reg = <0x3e>;
pinctrl-0 = <&reg_lcd_default>;
pinctrl-names = "default";
reg_lcd_pos: outp {
regulator-name = "outp";
regulator-min-microvolt = <4000000>;
regulator-max-microvolt = <6000000>;
regulator-active-discharge = <1>;
regulator-boot-on;
enable-gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
};
reg_lcd_neg: outn {
regulator-name = "outn";
regulator-min-microvolt = <4000000>;
regulator-max-microvolt = <6000000>;
regulator-active-discharge = <1>;
regulator-boot-on;
enable-gpios = <&tlmm 33 GPIO_ACTIVE_HIGH>;
};
};
temperature-sensor@48 {
compatible = "ti,tmp108";
reg = <0x48>;
interrupts-extended = <&tlmm 13 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&temp_alert_default>;
pinctrl-names = "default";
#thermal-sensor-cells = <0>;
};
};
&pm8226_resin {
linux,code = <KEY_VOLUMEDOWN>;
status = "okay";
};
&pm8226_vib {
status = "okay";
};
&rpm_requests {
regulators {
compatible = "qcom,rpm-pm8226-regulators";
pm8226_s3: s3 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1300000>;
};
pm8226_s4: s4 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2200000>;
};
pm8226_s5: s5 {
regulator-min-microvolt = <1150000>;
regulator-max-microvolt = <1150000>;
};
pm8226_l1: l1 {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
};
pm8226_l2: l2 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pm8226_l3: l3 {
regulator-min-microvolt = <750000>;
regulator-max-microvolt = <1337500>;
};
pm8226_l4: l4 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pm8226_l5: l5 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pm8226_l6: l6 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-allow-set-load;
};
pm8226_l7: l7 {
regulator-min-microvolt = <1850000>;
regulator-max-microvolt = <1850000>;
};
pm8226_l8: l8 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8226_l9: l9 {
regulator-min-microvolt = <2050000>;
regulator-max-microvolt = <2050000>;
};
pm8226_l10: l10 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8226_l12: l12 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8226_l14: l14 {
regulator-min-microvolt = <2750000>;
regulator-max-microvolt = <2750000>;
};
pm8226_l15: l15 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
};
pm8226_l16: l16 {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3350000>;
};
pm8226_l17: l17 {
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
};
pm8226_l18: l18 {
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
};
pm8226_l19: l19 {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <2850000>;
};
pm8226_l20: l20 {
regulator-min-microvolt = <3075000>;
regulator-max-microvolt = <3075000>;
};
pm8226_l21: l21 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
regulator-allow-set-load;
};
pm8226_l22: l22 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pm8226_l23: l23 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pm8226_l24: l24 {
regulator-min-microvolt = <1300000>;
regulator-max-microvolt = <1350000>;
};
pm8226_l25: l25 {
regulator-min-microvolt = <1775000>;
regulator-max-microvolt = <2125000>;
};
pm8226_l26: l26 {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
};
pm8226_l27: l27 {
regulator-min-microvolt = <2050000>;
regulator-max-microvolt = <2050000>;
};
pm8226_l28: l28 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3400000>;
regulator-boot-on;
};
pm8226_lvs1: lvs1 {
regulator-always-on;
};
};
};
&sdhc_1 {
vmmc-supply = <&pm8226_l17>;
vqmmc-supply = <&pm8226_l6>;
bus-width = <8>;
non-removable;
status = "okay";
};
&smbb {
qcom,fast-charge-safe-current = <2000000>;
qcom,fast-charge-current-limit = <1900000>;
qcom,fast-charge-safe-voltage = <4400000>;
qcom,minimum-input-voltage = <4300000>;
status = "okay";
};
&tlmm {
reg_lcd_default: reg-lcd-default-state {
pins = "gpio31", "gpio33";
function = "gpio";
drive-strength = <2>;
bias-disable;
output-high;
};
reg_vddio_disp_default: reg-vddio-disp-default-state {
pins = "gpio34";
function = "gpio";
drive-strength = <2>;
bias-disable;
output-high;
};
temp_alert_default: temp-alert-default-state {
pins = "gpio13";
function = "gpio";
drive-strength = <2>;
bias-disable;
output-disable;
};
};
&usb {
extcon = <&smbb>;
dr_mode = "peripheral";
status = "okay";
};
&usb_hs_phy {
extcon = <&smbb>;
v1p8-supply = <&pm8226_l10>;
v3p3-supply = <&pm8226_l20>;
};

View File

@ -87,7 +87,7 @@
};
idle-states {
CPU_SPC: spc {
CPU_SPC: cpu-spc {
compatible = "qcom,idle-state-spc",
"arm,idle-state";
entry-latency-us = <400>;
@ -1334,6 +1334,16 @@
<&gcc PCIE_PHY_RESET>;
reset-names = "axi", "ahb", "por", "pci", "phy";
status = "disabled";
pcie@0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
bus-range = <0x01 0xff>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
};
};
hdmi: hdmi-tx@4a00000 {

View File

@ -79,7 +79,7 @@
};
idle-states {
CPU_SPC: spc {
CPU_SPC: cpu-spc {
compatible = "qcom,idle-state-spc",
"arm,idle-state";
entry-latency-us = <150>;

View File

@ -470,6 +470,16 @@
"phy_ahb";
status = "disabled";
pcie@0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
bus-range = <0x01 0xff>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
};
};
qpic_bam: dma-controller@7984000 {
@ -598,24 +608,33 @@
reg = <0x90000 0x64>;
status = "disabled";
ethphy0: ethernet-phy@0 {
ethernet-phy-package@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "qcom,qca8075-package";
reg = <0>;
};
ethphy1: ethernet-phy@1 {
reg = <1>;
};
qcom,tx-drive-strength-milliwatt = <300>;
ethphy2: ethernet-phy@2 {
reg = <2>;
};
ethphy0: ethernet-phy@0 {
reg = <0>;
};
ethphy3: ethernet-phy@3 {
reg = <3>;
};
ethphy1: ethernet-phy@1 {
reg = <1>;
};
ethphy4: ethernet-phy@4 {
reg = <4>;
ethphy2: ethernet-phy@2 {
reg = <2>;
};
ethphy3: ethernet-phy@3 {
reg = <3>;
};
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
};

View File

@ -1121,6 +1121,16 @@
status = "disabled";
perst-gpios = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
pcie@0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
bus-range = <0x01 0xff>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
};
};
pcie1: pcie@1b700000 {
@ -1172,6 +1182,16 @@
status = "disabled";
perst-gpios = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
pcie@0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
bus-range = <0x01 0xff>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
};
};
pcie2: pcie@1b900000 {
@ -1223,6 +1243,16 @@
status = "disabled";
perst-gpios = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
pcie@0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
bus-range = <0x01 0xff>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
};
};
qsgmii_csr: syscon@1bb00000 {

View File

@ -26,7 +26,7 @@
};
&CPU_SLEEP_0 {
compatible = "qcom,idle-state-spc";
compatible = "qcom,idle-state-spc", "arm,idle-state";
};
&cpu0_acc {

View File

@ -14,6 +14,8 @@
#size-cells = <1>;
interrupt-parent = <&intc>;
chosen { };
clocks {
xo_board: xo_board {
compatible = "fixed-clock";
@ -85,7 +87,7 @@
};
idle-states {
CPU_SPC: spc {
CPU_SPC: cpu-spc {
compatible = "qcom,idle-state-spc",
"arm,idle-state";
entry-latency-us = <150>;
@ -103,7 +105,7 @@
};
};
memory {
memory@0 {
device_type = "memory";
reg = <0x0 0x0>;
};

View File

@ -0,0 +1,818 @@
// SPDX-License-Identifier: GPL-2.0
#include "qcom-msm8974pro.dtsi"
#include "pma8084.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/leds/common.h>
/ {
chassis-type = "handset";
aliases {
serial0 = &blsp1_uart1;
mmc0 = &sdhc_1; /* SDC1 eMMC slot */
mmc1 = &sdhc_3; /* SDC2 SD card slot */
};
chosen {
stdout-path = "serial0:115200n8";
};
gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&gpio_keys_pin_a>;
key-volume-down {
label = "volume_down";
gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_VOLUMEDOWN>;
debounce-interval = <15>;
};
key-home {
label = "home_key";
gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_HOMEPAGE>;
wakeup-source;
debounce-interval = <15>;
};
key-volume-up {
label = "volume_up";
gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_VOLUMEUP>;
debounce-interval = <15>;
};
};
i2c-gpio-touchkey {
compatible = "i2c-gpio";
#address-cells = <1>;
#size-cells = <0>;
sda-gpios = <&tlmm 95 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&tlmm 96 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
pinctrl-names = "default";
pinctrl-0 = <&i2c_touchkey_pins>;
touchkey@20 {
compatible = "cypress,tm2-touchkey";
reg = <0x20>;
interrupt-parent = <&pma8084_gpios>;
interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
pinctrl-names = "default";
pinctrl-0 = <&touchkey_pin>;
vcc-supply = <&max77826_ldo15>;
vdd-supply = <&pma8084_l19>;
linux,keycodes = <KEY_APPSELECT KEY_BACK>;
};
};
i2c_led_gpio: i2c-gpio-led {
compatible = "i2c-gpio";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2c_led_gpioex_pins>;
i2c-gpio,delay-us = <2>;
gpio_expander: gpio@20 {
compatible = "nxp,pcal6416";
reg = <0x20>;
gpio-controller;
#gpio-cells = <2>;
vcc-supply = <&pma8084_s4>;
pinctrl-names = "default";
pinctrl-0 = <&gpioex_pin>;
reset-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
};
led-controller@30 {
compatible = "panasonic,an30259a";
reg = <0x30>;
#address-cells = <1>;
#size-cells = <0>;
led@1 {
reg = <1>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_RED>;
};
led@2 {
reg = <2>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
};
led@3 {
reg = <3>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
};
};
};
vreg_wlan: wlan-regulator {
compatible = "regulator-fixed";
regulator-name = "wl-reg";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio_expander 8 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
vreg_panel: panel-regulator {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&panel_en_pin>;
regulator-name = "panel-vddr-reg";
regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <1500000>;
gpio = <&pma8084_gpios 14 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
vreg_vph_pwr: vreg-vph-pwr {
compatible = "regulator-fixed";
regulator-name = "vph-pwr";
regulator-min-microvolt = <3600000>;
regulator-max-microvolt = <3600000>;
regulator-always-on;
};
};
&blsp1_i2c2 {
status = "okay";
touchscreen@20 {
compatible = "syna,rmi4-i2c";
reg = <0x20>;
interrupt-parent = <&pma8084_gpios>;
interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&max77826_ldo13>;
vio-supply = <&pma8084_lvs2>;
pinctrl-names = "default";
pinctrl-0 = <&touch_pin>;
syna,startup-delay-ms = <100>;
#address-cells = <1>;
#size-cells = <0>;
rmi4-f01@1 {
reg = <0x1>;
syna,nosleep-mode = <1>;
};
rmi4-f12@12 {
reg = <0x12>;
syna,sensor-type = <1>;
};
};
};
&blsp1_i2c6 {
status = "okay";
pmic@60 {
reg = <0x60>;
compatible = "maxim,max77826";
regulators {
max77826_ldo1: LDO1 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
max77826_ldo2: LDO2 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1000000>;
};
max77826_ldo3: LDO3 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
max77826_ldo4: LDO4 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
max77826_ldo5: LDO5 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
max77826_ldo6: LDO6 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
};
max77826_ldo7: LDO7 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
max77826_ldo8: LDO8 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
};
max77826_ldo9: LDO9 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
max77826_ldo10: LDO10 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2950000>;
};
max77826_ldo11: LDO11 {
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <2950000>;
};
max77826_ldo12: LDO12 {
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <3300000>;
};
max77826_ldo13: LDO13 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
max77826_ldo14: LDO14 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
max77826_ldo15: LDO15 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
max77826_buck: BUCK {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
};
max77826_buckboost: BUCKBOOST {
regulator-min-microvolt = <3400000>;
regulator-max-microvolt = <3400000>;
};
};
};
};
&blsp1_uart2 {
status = "okay";
};
&blsp2_i2c6 {
status = "okay";
fuelgauge@36 {
compatible = "maxim,max17048";
reg = <0x36>;
maxim,double-soc;
maxim,rcomp = /bits/ 8 <0x56>;
interrupt-parent = <&pma8084_gpios>;
interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&fuelgauge_pin>;
};
};
&blsp2_uart2 {
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&blsp2_uart2_pins_active>;
pinctrl-1 = <&blsp2_uart2_pins_sleep>;
bluetooth {
compatible = "brcm,bcm43540-bt";
max-speed = <3000000>;
pinctrl-names = "default";
pinctrl-0 = <&bt_pins>;
device-wakeup-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>;
shutdown-gpios = <&gpio_expander 9 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&tlmm>;
interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "host-wakeup";
};
};
&gpu {
status = "okay";
};
&mdss {
status = "okay";
};
&mdss_dsi0 {
status = "okay";
vdda-supply = <&pma8084_l2>;
vdd-supply = <&pma8084_l22>;
vddio-supply = <&pma8084_l12>;
panel: panel@0 {
reg = <0>;
compatible = "samsung,s6e3fa2";
pinctrl-names = "default";
pinctrl-0 = <&panel_te_pin &panel_rst_pin>;
iovdd-supply = <&pma8084_lvs4>;
vddr-supply = <&vreg_panel>;
reset-gpios = <&pma8084_gpios 17 GPIO_ACTIVE_LOW>;
port {
panel_in: endpoint {
remote-endpoint = <&mdss_dsi0_out>;
};
};
};
};
&mdss_dsi0_out {
remote-endpoint = <&panel_in>;
data-lanes = <0 1 2 3>;
};
&mdss_dsi0_phy {
status = "okay";
vddio-supply = <&pma8084_l12>;
};
&pma8084_gpios {
gpio_keys_pin_a: gpio-keys-active-state {
pins = "gpio2", "gpio3", "gpio5";
function = "normal";
bias-pull-up;
power-source = <PMA8084_GPIO_S4>;
};
touchkey_pin: touchkey-int-state {
pins = "gpio6";
function = "normal";
bias-disable;
input-enable;
power-source = <PMA8084_GPIO_S4>;
};
touch_pin: touchscreen-int-state {
pins = "gpio8";
function = "normal";
bias-disable;
input-enable;
power-source = <PMA8084_GPIO_S4>;
};
panel_en_pin: panel-en-state {
pins = "gpio14";
function = "normal";
bias-pull-up;
power-source = <PMA8084_GPIO_S4>;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
};
wlan_sleep_clk_pin: wlan-sleep-clk-state {
pins = "gpio16";
function = "func2";
output-high;
power-source = <PMA8084_GPIO_S4>;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
};
panel_rst_pin: panel-rst-state {
pins = "gpio17";
function = "normal";
bias-disable;
power-source = <PMA8084_GPIO_S4>;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
};
fuelgauge_pin: fuelgauge-int-state {
pins = "gpio21";
function = "normal";
bias-disable;
input-enable;
power-source = <PMA8084_GPIO_S4>;
};
};
&remoteproc_adsp {
status = "okay";
cx-supply = <&pma8084_s2>;
};
&remoteproc_mss {
status = "okay";
cx-supply = <&pma8084_s2>;
mss-supply = <&pma8084_s6>;
mx-supply = <&pma8084_s1>;
pll-supply = <&pma8084_l12>;
};
&rpm_requests {
regulators-0 {
compatible = "qcom,rpm-pma8084-regulators";
pma8084_s1: s1 {
regulator-min-microvolt = <675000>;
regulator-max-microvolt = <1050000>;
regulator-always-on;
};
pma8084_s2: s2 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
};
pma8084_s3: s3 {
regulator-min-microvolt = <1300000>;
regulator-max-microvolt = <1300000>;
};
pma8084_s4: s4 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_s5: s5 {
regulator-min-microvolt = <2150000>;
regulator-max-microvolt = <2150000>;
};
pma8084_s6: s6 {
regulator-min-microvolt = <1050000>;
regulator-max-microvolt = <1050000>;
};
pma8084_l1: l1 {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
};
pma8084_l2: l2 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pma8084_l3: l3 {
regulator-min-microvolt = <1050000>;
regulator-max-microvolt = <1200000>;
};
pma8084_l4: l4 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1225000>;
};
pma8084_l5: l5 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_l6: l6 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_l7: l7 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_l8: l8 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_l9: l9 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pma8084_l10: l10 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pma8084_l11: l11 {
regulator-min-microvolt = <1300000>;
regulator-max-microvolt = <1300000>;
};
pma8084_l12: l12 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
pma8084_l13: l13 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pma8084_l14: l14 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_l15: l15 {
regulator-min-microvolt = <2050000>;
regulator-max-microvolt = <2050000>;
};
pma8084_l16: l16 {
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <2700000>;
};
pma8084_l17: l17 {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <2850000>;
};
pma8084_l18: l18 {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <2850000>;
};
pma8084_l19: l19 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
pma8084_l20: l20 {
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
regulator-system-load = <200000>;
regulator-allow-set-load;
};
pma8084_l21: l21 {
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
regulator-system-load = <200000>;
regulator-allow-set-load;
};
pma8084_l22: l22 {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3300000>;
};
pma8084_l23: l23 {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
};
pma8084_l24: l24 {
regulator-min-microvolt = <3075000>;
regulator-max-microvolt = <3075000>;
};
pma8084_l25: l25 {
regulator-min-microvolt = <2100000>;
regulator-max-microvolt = <2100000>;
};
pma8084_l26: l26 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2050000>;
};
pma8084_l27: l27 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1225000>;
};
pma8084_lvs1: lvs1 {};
pma8084_lvs2: lvs2 {};
pma8084_lvs3: lvs3 {};
pma8084_lvs4: lvs4 {};
pma8084_5vs1: 5vs1 {};
};
};
&sdhc_1 {
status = "okay";
vmmc-supply = <&pma8084_l20>;
vqmmc-supply = <&pma8084_s4>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc1_on>;
pinctrl-1 = <&sdc1_off>;
};
&sdhc_2 {
status = "okay";
max-frequency = <100000000>;
vmmc-supply = <&vreg_wlan>;
vqmmc-supply = <&pma8084_s4>;
non-removable;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc2_on>;
pinctrl-1 = <&sdc2_off>;
wifi@1 {
reg = <1>;
compatible = "brcm,bcm4329-fmac";
/*
* Allow all klte* variants to load the same NVRAM file,
* as they have little difference in the WiFi part.
*/
brcm,board-type = "samsung,klte";
interrupt-parent = <&tlmm>;
interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "host-wake";
pinctrl-names = "default";
pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
};
};
&sdhc_3 {
status = "okay";
max-frequency = <100000000>;
vmmc-supply = <&pma8084_l21>;
vqmmc-supply = <&pma8084_l13>;
/*
* cd-gpio is intentionally disabled. If enabled, an SD card
* present during boot is not initialized correctly. Without
* cd-gpios the driver resorts to polling, so hotplug works.
*/
pinctrl-names = "default";
pinctrl-0 = <&sdc3_on /* &sdhc3_cd_pin */>;
/* cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>; */
};
&tlmm {
/* This seems suspicious, but somebody with this device should look into it. */
blsp2_uart2_pins_active: blsp2-uart2-pins-active-state {
pins = "gpio45", "gpio46", "gpio47", "gpio48";
function = "blsp_uart8";
drive-strength = <8>;
bias-disable;
};
blsp2_uart2_pins_sleep: blsp2-uart2-pins-sleep-state {
pins = "gpio45", "gpio46", "gpio47", "gpio48";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};
bt_pins: bt-pins-state {
hostwake-pins {
pins = "gpio75";
function = "gpio";
drive-strength = <16>;
};
devwake-pins {
pins = "gpio91";
function = "gpio";
drive-strength = <2>;
};
};
sdc1_on: sdhc1-on-state {
clk-pins {
pins = "sdc1_clk";
drive-strength = <4>;
bias-disable;
};
cmd-data-pins {
pins = "sdc1_cmd", "sdc1_data";
drive-strength = <4>;
bias-pull-up;
};
};
sdc3_on: sdc3-on-state {
pins = "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40";
function = "sdc3";
drive-strength = <8>;
bias-disable;
};
sdhc3_cd_pin: sdc3-cd-on-state {
pins = "gpio62";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
sdc2_on: sdhc2-on-state {
clk-pins {
pins = "sdc2_clk";
drive-strength = <6>;
bias-disable;
};
cmd-data-pins {
pins = "sdc2_cmd", "sdc2_data";
drive-strength = <6>;
bias-pull-up;
};
};
i2c_touchkey_pins: i2c-touchkey-state {
pins = "gpio95", "gpio96";
function = "gpio";
bias-pull-up;
};
i2c_led_gpioex_pins: i2c-led-gpioex-state {
function = "gpio";
bias-pull-down;
};
gpioex_pin: gpioex-state {
pins = "gpio145";
function = "gpio";
bias-pull-up;
drive-strength = <2>;
};
wifi_pin: wifi-state {
pins = "gpio92";
function = "gpio";
bias-pull-down;
};
panel_te_pin: panel-state {
pins = "gpio12";
function = "mdp_vsync";
drive-strength = <2>;
bias-disable;
};
};
&usb {
status = "okay";
phys = <&usb_hs1_phy>;
phy-select = <&tcsr 0xb000 0>;
hnp-disable;
srp-disable;
adp-disable;
};
&usb_hs1_phy {
status = "okay";
v1p8-supply = <&pma8084_l6>;
v3p3-supply = <&pma8084_l24>;
qcom,init-seq = /bits/ 8 <0x1 0x64>;
};

View File

@ -1,817 +1,16 @@
// SPDX-License-Identifier: GPL-2.0
#include "qcom-msm8974pro.dtsi"
#include "pma8084.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/leds/common.h>
#include "qcom-msm8974pro-samsung-klte-common.dtsi"
/ {
model = "Samsung Galaxy S5";
compatible = "samsung,klte", "qcom,msm8974pro", "qcom,msm8974";
chassis-type = "handset";
aliases {
serial0 = &blsp1_uart1;
mmc0 = &sdhc_1; /* SDC1 eMMC slot */
mmc1 = &sdhc_3; /* SDC2 SD card slot */
};
chosen {
stdout-path = "serial0:115200n8";
};
gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&gpio_keys_pin_a>;
key-volume-down {
label = "volume_down";
gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_VOLUMEDOWN>;
debounce-interval = <15>;
};
key-home {
label = "home_key";
gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_HOMEPAGE>;
wakeup-source;
debounce-interval = <15>;
};
key-volume-up {
label = "volume_up";
gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_VOLUMEUP>;
debounce-interval = <15>;
};
};
i2c-gpio-touchkey {
compatible = "i2c-gpio";
#address-cells = <1>;
#size-cells = <0>;
sda-gpios = <&tlmm 95 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&tlmm 96 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
pinctrl-names = "default";
pinctrl-0 = <&i2c_touchkey_pins>;
touchkey@20 {
compatible = "cypress,tm2-touchkey";
reg = <0x20>;
interrupt-parent = <&pma8084_gpios>;
interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
pinctrl-names = "default";
pinctrl-0 = <&touchkey_pin>;
vcc-supply = <&max77826_ldo15>;
vdd-supply = <&pma8084_l19>;
linux,keycodes = <KEY_APPSELECT KEY_BACK>;
};
};
i2c-gpio-led {
compatible = "i2c-gpio";
#address-cells = <1>;
#size-cells = <0>;
scl-gpios = <&tlmm 121 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
sda-gpios = <&tlmm 120 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
pinctrl-names = "default";
pinctrl-0 = <&i2c_led_gpioex_pins>;
i2c-gpio,delay-us = <2>;
gpio_expander: gpio@20 {
compatible = "nxp,pcal6416";
reg = <0x20>;
gpio-controller;
#gpio-cells = <2>;
vcc-supply = <&pma8084_s4>;
pinctrl-names = "default";
pinctrl-0 = <&gpioex_pin>;
reset-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
};
led-controller@30 {
compatible = "panasonic,an30259a";
reg = <0x30>;
#address-cells = <1>;
#size-cells = <0>;
led@1 {
reg = <1>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_RED>;
};
led@2 {
reg = <2>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
};
led@3 {
reg = <3>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
};
};
};
vreg_wlan: wlan-regulator {
compatible = "regulator-fixed";
regulator-name = "wl-reg";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio_expander 8 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
vreg_panel: panel-regulator {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&panel_en_pin>;
regulator-name = "panel-vddr-reg";
regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <1500000>;
gpio = <&pma8084_gpios 14 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
vreg_vph_pwr: vreg-vph-pwr {
compatible = "regulator-fixed";
regulator-name = "vph-pwr";
regulator-min-microvolt = <3600000>;
regulator-max-microvolt = <3600000>;
regulator-always-on;
};
};
&blsp1_i2c2 {
status = "okay";
touchscreen@20 {
compatible = "syna,rmi4-i2c";
reg = <0x20>;
interrupt-parent = <&pma8084_gpios>;
interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&max77826_ldo13>;
vio-supply = <&pma8084_lvs2>;
pinctrl-names = "default";
pinctrl-0 = <&touch_pin>;
syna,startup-delay-ms = <100>;
#address-cells = <1>;
#size-cells = <0>;
rmi4-f01@1 {
reg = <0x1>;
syna,nosleep-mode = <1>;
};
rmi4-f12@12 {
reg = <0x12>;
syna,sensor-type = <1>;
};
};
&i2c_led_gpio {
scl-gpios = <&tlmm 121 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
sda-gpios = <&tlmm 120 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
};
&blsp1_i2c6 {
status = "okay";
pmic@60 {
reg = <0x60>;
compatible = "maxim,max77826";
regulators {
max77826_ldo1: LDO1 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
max77826_ldo2: LDO2 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1000000>;
};
max77826_ldo3: LDO3 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
max77826_ldo4: LDO4 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
max77826_ldo5: LDO5 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
max77826_ldo6: LDO6 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
};
max77826_ldo7: LDO7 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
max77826_ldo8: LDO8 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
};
max77826_ldo9: LDO9 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
max77826_ldo10: LDO10 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2950000>;
};
max77826_ldo11: LDO11 {
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <2950000>;
};
max77826_ldo12: LDO12 {
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <3300000>;
};
max77826_ldo13: LDO13 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
max77826_ldo14: LDO14 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
max77826_ldo15: LDO15 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
max77826_buck: BUCK {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
};
max77826_buckboost: BUCKBOOST {
regulator-min-microvolt = <3400000>;
regulator-max-microvolt = <3400000>;
};
};
};
};
&blsp1_uart2 {
status = "okay";
};
&blsp2_i2c6 {
status = "okay";
fuelgauge@36 {
compatible = "maxim,max17048";
reg = <0x36>;
maxim,double-soc;
maxim,rcomp = /bits/ 8 <0x56>;
interrupt-parent = <&pma8084_gpios>;
interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&fuelgauge_pin>;
};
};
&blsp2_uart2 {
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&blsp2_uart2_pins_active>;
pinctrl-1 = <&blsp2_uart2_pins_sleep>;
bluetooth {
compatible = "brcm,bcm43540-bt";
max-speed = <3000000>;
pinctrl-names = "default";
pinctrl-0 = <&bt_pins>;
device-wakeup-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>;
shutdown-gpios = <&gpio_expander 9 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&tlmm>;
interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "host-wakeup";
};
};
&gpu {
status = "okay";
};
&mdss {
status = "okay";
};
&mdss_dsi0 {
status = "okay";
vdda-supply = <&pma8084_l2>;
vdd-supply = <&pma8084_l22>;
vddio-supply = <&pma8084_l12>;
panel: panel@0 {
reg = <0>;
compatible = "samsung,s6e3fa2";
pinctrl-names = "default";
pinctrl-0 = <&panel_te_pin &panel_rst_pin>;
iovdd-supply = <&pma8084_lvs4>;
vddr-supply = <&vreg_panel>;
reset-gpios = <&pma8084_gpios 17 GPIO_ACTIVE_LOW>;
port {
panel_in: endpoint {
remote-endpoint = <&mdss_dsi0_out>;
};
};
};
};
&mdss_dsi0_out {
remote-endpoint = <&panel_in>;
data-lanes = <0 1 2 3>;
};
&mdss_dsi0_phy {
status = "okay";
vddio-supply = <&pma8084_l12>;
};
&pma8084_gpios {
gpio_keys_pin_a: gpio-keys-active-state {
pins = "gpio2", "gpio3", "gpio5";
function = "normal";
bias-pull-up;
power-source = <PMA8084_GPIO_S4>;
};
touchkey_pin: touchkey-int-state {
pins = "gpio6";
function = "normal";
bias-disable;
input-enable;
power-source = <PMA8084_GPIO_S4>;
};
touch_pin: touchscreen-int-state {
pins = "gpio8";
function = "normal";
bias-disable;
input-enable;
power-source = <PMA8084_GPIO_S4>;
};
panel_en_pin: panel-en-state {
pins = "gpio14";
function = "normal";
bias-pull-up;
power-source = <PMA8084_GPIO_S4>;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
};
wlan_sleep_clk_pin: wlan-sleep-clk-state {
pins = "gpio16";
function = "func2";
output-high;
power-source = <PMA8084_GPIO_S4>;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
};
panel_rst_pin: panel-rst-state {
pins = "gpio17";
function = "normal";
bias-disable;
power-source = <PMA8084_GPIO_S4>;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
};
fuelgauge_pin: fuelgauge-int-state {
pins = "gpio21";
function = "normal";
bias-disable;
input-enable;
power-source = <PMA8084_GPIO_S4>;
};
};
&remoteproc_adsp {
status = "okay";
cx-supply = <&pma8084_s2>;
};
&remoteproc_mss {
status = "okay";
cx-supply = <&pma8084_s2>;
mss-supply = <&pma8084_s6>;
mx-supply = <&pma8084_s1>;
pll-supply = <&pma8084_l12>;
};
&rpm_requests {
regulators-0 {
compatible = "qcom,rpm-pma8084-regulators";
pma8084_s1: s1 {
regulator-min-microvolt = <675000>;
regulator-max-microvolt = <1050000>;
regulator-always-on;
};
pma8084_s2: s2 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
};
pma8084_s3: s3 {
regulator-min-microvolt = <1300000>;
regulator-max-microvolt = <1300000>;
};
pma8084_s4: s4 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_s5: s5 {
regulator-min-microvolt = <2150000>;
regulator-max-microvolt = <2150000>;
};
pma8084_s6: s6 {
regulator-min-microvolt = <1050000>;
regulator-max-microvolt = <1050000>;
};
pma8084_l1: l1 {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
};
pma8084_l2: l2 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pma8084_l3: l3 {
regulator-min-microvolt = <1050000>;
regulator-max-microvolt = <1200000>;
};
pma8084_l4: l4 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1225000>;
};
pma8084_l5: l5 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_l6: l6 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_l7: l7 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_l8: l8 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_l9: l9 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pma8084_l10: l10 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pma8084_l11: l11 {
regulator-min-microvolt = <1300000>;
regulator-max-microvolt = <1300000>;
};
pma8084_l12: l12 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
pma8084_l13: l13 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pma8084_l14: l14 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pma8084_l15: l15 {
regulator-min-microvolt = <2050000>;
regulator-max-microvolt = <2050000>;
};
pma8084_l16: l16 {
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <2700000>;
};
pma8084_l17: l17 {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <2850000>;
};
pma8084_l18: l18 {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <2850000>;
};
pma8084_l19: l19 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
pma8084_l20: l20 {
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
regulator-system-load = <200000>;
regulator-allow-set-load;
};
pma8084_l21: l21 {
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
regulator-system-load = <200000>;
regulator-allow-set-load;
};
pma8084_l22: l22 {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3300000>;
};
pma8084_l23: l23 {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
};
pma8084_l24: l24 {
regulator-min-microvolt = <3075000>;
regulator-max-microvolt = <3075000>;
};
pma8084_l25: l25 {
regulator-min-microvolt = <2100000>;
regulator-max-microvolt = <2100000>;
};
pma8084_l26: l26 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2050000>;
};
pma8084_l27: l27 {
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1225000>;
};
pma8084_lvs1: lvs1 {};
pma8084_lvs2: lvs2 {};
pma8084_lvs3: lvs3 {};
pma8084_lvs4: lvs4 {};
pma8084_5vs1: 5vs1 {};
};
};
&sdhc_1 {
status = "okay";
vmmc-supply = <&pma8084_l20>;
vqmmc-supply = <&pma8084_s4>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc1_on>;
pinctrl-1 = <&sdc1_off>;
};
&sdhc_2 {
status = "okay";
max-frequency = <100000000>;
vmmc-supply = <&vreg_wlan>;
vqmmc-supply = <&pma8084_s4>;
non-removable;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc2_on>;
pinctrl-1 = <&sdc2_off>;
wifi@1 {
reg = <1>;
compatible = "brcm,bcm4329-fmac";
interrupt-parent = <&tlmm>;
interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "host-wake";
pinctrl-names = "default";
pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
};
};
&sdhc_3 {
status = "okay";
max-frequency = <100000000>;
vmmc-supply = <&pma8084_l21>;
vqmmc-supply = <&pma8084_l13>;
/*
* cd-gpio is intentionally disabled. If enabled, an SD card
* present during boot is not initialized correctly. Without
* cd-gpios the driver resorts to polling, so hotplug works.
*/
pinctrl-names = "default";
pinctrl-0 = <&sdc3_on /* &sdhc3_cd_pin */>;
/* cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>; */
};
&tlmm {
/* This seems suspicious, but somebody with this device should look into it. */
blsp2_uart2_pins_active: blsp2-uart2-pins-active-state {
pins = "gpio45", "gpio46", "gpio47", "gpio48";
function = "blsp_uart8";
drive-strength = <8>;
bias-disable;
};
blsp2_uart2_pins_sleep: blsp2-uart2-pins-sleep-state {
pins = "gpio45", "gpio46", "gpio47", "gpio48";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};
bt_pins: bt-pins-state {
hostwake-pins {
pins = "gpio75";
function = "gpio";
drive-strength = <16>;
};
devwake-pins {
pins = "gpio91";
function = "gpio";
drive-strength = <2>;
};
};
sdc1_on: sdhc1-on-state {
clk-pins {
pins = "sdc1_clk";
drive-strength = <4>;
bias-disable;
};
cmd-data-pins {
pins = "sdc1_cmd", "sdc1_data";
drive-strength = <4>;
bias-pull-up;
};
};
sdc3_on: sdc3-on-state {
pins = "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40";
function = "sdc3";
drive-strength = <8>;
bias-disable;
};
sdhc3_cd_pin: sdc3-cd-on-state {
pins = "gpio62";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
sdc2_on: sdhc2-on-state {
clk-pins {
pins = "sdc2_clk";
drive-strength = <6>;
bias-disable;
};
cmd-data-pins {
pins = "sdc2_cmd", "sdc2_data";
drive-strength = <6>;
bias-pull-up;
};
};
i2c_touchkey_pins: i2c-touchkey-state {
pins = "gpio95", "gpio96";
function = "gpio";
bias-pull-up;
};
i2c_led_gpioex_pins: i2c-led-gpioex-state {
pins = "gpio120", "gpio121";
function = "gpio";
bias-pull-down;
};
gpioex_pin: gpioex-state {
pins = "gpio145";
function = "gpio";
bias-pull-up;
drive-strength = <2>;
};
wifi_pin: wifi-state {
pins = "gpio92";
function = "gpio";
bias-pull-down;
};
panel_te_pin: panel-state {
pins = "gpio12";
function = "mdp_vsync";
drive-strength = <2>;
bias-disable;
};
};
&usb {
status = "okay";
phys = <&usb_hs1_phy>;
phy-select = <&tcsr 0xb000 0>;
hnp-disable;
srp-disable;
adp-disable;
};
&usb_hs1_phy {
status = "okay";
v1p8-supply = <&pma8084_l6>;
v3p3-supply = <&pma8084_l24>;
qcom,init-seq = /bits/ 8 <0x1 0x64>;
&i2c_led_gpioex_pins {
pins = "gpio120", "gpio121";
};

View File

@ -0,0 +1,16 @@
// SPDX-License-Identifier: GPL-2.0
#include "qcom-msm8974pro-samsung-klte-common.dtsi"
/ {
model = "Samsung Galaxy S5 China";
compatible = "samsung,kltechn", "samsung,klte", "qcom,msm8974pro", "qcom,msm8974";
};
&i2c_led_gpio {
scl-gpios = <&tlmm 61 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
sda-gpios = <&tlmm 60 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
};
&i2c_led_gpioex_pins {
pins = "gpio60", "gpio61";
};

View File

@ -1,60 +1,11 @@
// SPDX-License-Identifier: GPL-2.0
#include "qcom-msm8974pro.dtsi"
#include "pm8841.dtsi"
#include "pm8941.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include "qcom-msm8974pro-sony-xperia-shinano-common.dtsi"
/ {
model = "Sony Xperia Z2 Tablet";
compatible = "sony,xperia-castor", "qcom,msm8974pro", "qcom,msm8974";
chassis-type = "tablet";
aliases {
serial0 = &blsp1_uart2;
serial1 = &blsp2_uart1;
};
chosen {
stdout-path = "serial0:115200n8";
};
gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&gpio_keys_pin_a>;
key-volume-down {
label = "volume_down";
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_VOLUMEDOWN>;
};
key-camera-snapshot {
label = "camera_snapshot";
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_CAMERA>;
};
key-camera-focus {
label = "camera_focus";
gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_CAMERA_FOCUS>;
};
key-volume-up {
label = "volume_up";
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_VOLUMEUP>;
};
};
vreg_bl_vddio: lcd-backlight-vddio {
compatible = "regulator-fixed";
regulator-name = "vreg_bl_vddio";
@ -67,108 +18,16 @@
vin-supply = <&pm8941_s3>;
startup-delay-us = <70000>;
pinctrl-names = "default";
pinctrl-0 = <&lcd_backlight_en_pin_a>;
};
vreg_vsp: lcd-dcdc-regulator {
compatible = "regulator-fixed";
regulator-name = "vreg_vsp";
regulator-min-microvolt = <5600000>;
regulator-max-microvolt = <5600000>;
gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-names = "default";
pinctrl-0 = <&lcd_dcdc_en_pin_a>;
};
vreg_boost: vreg-boost {
compatible = "regulator-fixed";
regulator-name = "vreg-boost";
regulator-min-microvolt = <3150000>;
regulator-max-microvolt = <3150000>;
regulator-always-on;
regulator-boot-on;
gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-names = "default";
pinctrl-0 = <&boost_bypass_n_pin>;
};
vreg_vph_pwr: vreg-vph-pwr {
compatible = "regulator-fixed";
regulator-name = "vph-pwr";
regulator-min-microvolt = <3600000>;
regulator-max-microvolt = <3600000>;
regulator-always-on;
};
vreg_wlan: wlan-regulator {
compatible = "regulator-fixed";
regulator-name = "wl-reg";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-names = "default";
pinctrl-0 = <&wlan_regulator_pin>;
};
};
&blsp1_uart2 {
status = "okay";
};
&blsp2_i2c2 {
status = "okay";
clock-frequency = <355000>;
synaptics@2c {
compatible = "syna,rmi4-i2c";
reg = <0x2c>;
interrupt-parent = <&tlmm>;
interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
#address-cells = <1>;
#size-cells = <0>;
vdd-supply = <&pm8941_l22>;
vio-supply = <&pm8941_lvs3>;
pinctrl-names = "default";
pinctrl-0 = <&ts_int_pin>;
syna,startup-delay-ms = <100>;
rmi4-f01@1 {
reg = <0x1>;
syna,nosleep-mode = <1>;
};
rmi4-f11@11 {
reg = <0x11>;
syna,sensor-type = <1>;
touchscreen-inverted-x;
};
};
};
&blsp2_i2c5 {
status = "okay";
clock-frequency = <355000>;
status = "okay";
lp8566_wled: backlight@2c {
compatible = "ti,lp8556";
reg = <0x2c>;
@ -182,42 +41,52 @@
rom-addr = /bits/ 8 <0xa0>;
rom-val = /bits/ 8 <0xff>;
};
rom-a1h {
rom-addr = /bits/ 8 <0xa1>;
rom-val = /bits/ 8 <0x3f>;
};
rom-a2h {
rom-addr = /bits/ 8 <0xa2>;
rom-val = /bits/ 8 <0x20>;
};
rom-a3h {
rom-addr = /bits/ 8 <0xa3>;
rom-val = /bits/ 8 <0x5e>;
};
rom-a4h {
rom-addr = /bits/ 8 <0xa4>;
rom-val = /bits/ 8 <0x02>;
};
rom-a5h {
rom-addr = /bits/ 8 <0xa5>;
rom-val = /bits/ 8 <0x04>;
};
rom-a6h {
rom-addr = /bits/ 8 <0xa6>;
rom-val = /bits/ 8 <0x80>;
};
rom-a7h {
rom-addr = /bits/ 8 <0xa7>;
rom-val = /bits/ 8 <0xf7>;
};
rom-a9h {
rom-addr = /bits/ 8 <0xa9>;
rom-val = /bits/ 8 <0x80>;
};
rom-aah {
rom-addr = /bits/ 8 <0xaa>;
rom-val = /bits/ 8 <0x0f>;
};
rom-aeh {
rom-addr = /bits/ 8 <0xae>;
rom-val = /bits/ 8 <0x0f>;
@ -232,8 +101,8 @@
compatible = "brcm,bcm43438-bt";
max-speed = <3000000>;
pinctrl-names = "default";
pinctrl-0 = <&bt_host_wake_pin>, <&bt_dev_wake_pin>, <&bt_reg_on_pin>;
pinctrl-names = "default";
host-wakeup-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
device-wakeup-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
@ -241,339 +110,26 @@
};
};
&pm8941_coincell {
status = "okay";
qcom,rset-ohms = <2100>;
qcom,vset-millivolts = <3000>;
};
&pm8941_gpios {
gpio_keys_pin_a: gpio-keys-active-state {
pins = "gpio2", "gpio5";
function = "normal";
bias-pull-up;
power-source = <PM8941_GPIO_S3>;
};
bt_reg_on_pin: bt-reg-on-state {
pins = "gpio16";
function = "normal";
output-low;
power-source = <PM8941_GPIO_S3>;
};
wlan_sleep_clk_pin: wl-sleep-clk-state {
pins = "gpio17";
function = "func2";
output-high;
power-source = <PM8941_GPIO_S3>;
};
wlan_regulator_pin: wl-reg-active-state {
pins = "gpio18";
function = "normal";
bias-disable;
power-source = <PM8941_GPIO_S3>;
};
lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
pins = "gpio20";
function = "normal";
bias-disable;
power-source = <PM8941_GPIO_S3>;
input-disable;
output-low;
};
};
&pm8941_lpg {
status = "okay";
qcom,power-source = <1>;
multi-led {
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
#address-cells = <1>;
#size-cells = <0>;
led@5 {
reg = <5>;
color = <LED_COLOR_ID_BLUE>;
};
led@6 {
reg = <6>;
color = <LED_COLOR_ID_GREEN>;
};
led@7 {
reg = <7>;
color = <LED_COLOR_ID_RED>;
};
};
};
&remoteproc_adsp {
cx-supply = <&pm8841_s2>;
status = "okay";
};
&remoteproc_mss {
cx-supply = <&pm8841_s2>;
mss-supply = <&pm8841_s3>;
mx-supply = <&pm8841_s1>;
pll-supply = <&pm8941_l12>;
status = "okay";
};
&rpm_requests {
regulators-0 {
compatible = "qcom,rpm-pm8841-regulators";
pm8841_s1: s1 {
regulator-min-microvolt = <675000>;
regulator-max-microvolt = <1050000>;
};
pm8841_s2: s2 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
};
pm8841_s3: s3 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
};
pm8841_s4: s4 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
};
};
regulators-1 {
compatible = "qcom,rpm-pm8941-regulators";
vdd_l1_l3-supply = <&pm8941_s1>;
vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
vdd_l4_l11-supply = <&pm8941_s1>;
vdd_l5_l7-supply = <&pm8941_s2>;
vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
vdd_l21-supply = <&vreg_boost>;
pm8941_s1: s1 {
regulator-min-microvolt = <1300000>;
regulator-max-microvolt = <1300000>;
regulator-always-on;
regulator-boot-on;
};
pm8941_s2: s2 {
regulator-min-microvolt = <2150000>;
regulator-max-microvolt = <2150000>;
regulator-boot-on;
};
pm8941_s3: s3 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-system-load = <154000>;
regulator-always-on;
regulator-boot-on;
};
pm8941_s4: s4 {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
};
pm8941_l1: l1 {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
regulator-always-on;
regulator-boot-on;
};
pm8941_l2: l2 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pm8941_l3: l3 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pm8941_l4: l4 {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
};
pm8941_l5: l5 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8941_l6: l6 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-boot-on;
};
pm8941_l7: l7 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-boot-on;
};
pm8941_l8: l8 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8941_l9: l9 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pm8941_l11: l11 {
regulator-min-microvolt = <1300000>;
regulator-max-microvolt = <1350000>;
};
pm8941_l12: l12 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
regulator-boot-on;
};
pm8941_l13: l13 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
regulator-boot-on;
};
pm8941_l14: l14 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8941_l15: l15 {
regulator-min-microvolt = <2050000>;
regulator-max-microvolt = <2050000>;
};
pm8941_l16: l16 {
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <2700000>;
};
pm8941_l17: l17 {
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <2700000>;
};
pm8941_l18: l18 {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <2850000>;
};
pm8941_l19: l19 {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <2850000>;
};
pm8941_l20: l20 {
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
regulator-system-load = <500000>;
regulator-allow-set-load;
regulator-boot-on;
};
pm8941_l21: l21 {
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
regulator-boot-on;
};
pm8941_l22: l22 {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
};
pm8941_l23: l23 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
};
pm8941_l24: l24 {
regulator-min-microvolt = <3075000>;
regulator-max-microvolt = <3075000>;
regulator-boot-on;
};
pm8941_lvs3: lvs3 {};
};
};
&sdhc_1 {
status = "okay";
vmmc-supply = <&pm8941_l20>;
vqmmc-supply = <&pm8941_s3>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc1_on>;
pinctrl-1 = <&sdc1_off>;
};
&sdhc_2 {
status = "okay";
vmmc-supply = <&pm8941_l21>;
vqmmc-supply = <&pm8941_l13>;
cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc2_on>;
pinctrl-1 = <&sdc2_off>;
};
&sdhc_3 {
status = "okay";
max-frequency = <100000000>;
vmmc-supply = <&vreg_wlan>;
non-removable;
pinctrl-names = "default";
pinctrl-0 = <&sdc3_on>;
#address-cells = <1>;
#size-cells = <0>;
bcrmf@1 {
compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
reg = <1>;
brcm,drive-strength = <10>;
pinctrl-names = "default";
pinctrl-0 = <&wlan_sleep_clk_pin>;
};
};
@ -591,75 +147,13 @@
status = "okay";
};
&synaptics_touchscreen {
vio-supply = <&pm8941_lvs3>;
};
&tlmm {
lcd_backlight_en_pin_a: lcd-backlight-vddio-state {
pins = "gpio69";
function = "gpio";
drive-strength = <10>;
output-low;
bias-disable;
};
sdc1_on: sdc1-on-state {
clk-pins {
pins = "sdc1_clk";
drive-strength = <16>;
bias-disable;
};
cmd-data-pins {
pins = "sdc1_cmd", "sdc1_data";
drive-strength = <10>;
bias-pull-up;
};
};
sdc2_on: sdc2-on-state {
clk-pins {
pins = "sdc2_clk";
drive-strength = <6>;
bias-disable;
};
cmd-data-pins {
pins = "sdc2_cmd", "sdc2_data";
drive-strength = <6>;
bias-pull-up;
};
cd-pins {
pins = "gpio62";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
};
sdc3_on: sdc3-on-state {
clk-pins {
pins = "gpio40";
function = "sdc3";
drive-strength = <10>;
bias-disable;
};
cmd-pins {
pins = "gpio39";
function = "sdc3";
drive-strength = <10>;
bias-pull-up;
};
data-pins {
pins = "gpio35", "gpio36", "gpio37", "gpio38";
function = "sdc3";
drive-strength = <10>;
bias-pull-up;
};
};
ts_int_pin: ts-int-pin-state {
pins = "gpio86";
bt_dev_wake_pin: bt-dev-wake-state {
pins = "gpio96";
function = "gpio";
drive-strength = <2>;
bias-disable;
@ -673,33 +167,11 @@
output-low;
};
bt_dev_wake_pin: bt-dev-wake-state {
pins = "gpio96";
lcd_backlight_en_pin_a: lcd-backlight-vddio-state {
pins = "gpio69";
function = "gpio";
drive-strength = <2>;
drive-strength = <10>;
output-low;
bias-disable;
};
};
&usb {
status = "okay";
phys = <&usb_hs1_phy>;
phy-select = <&tcsr 0xb000 0>;
extcon = <&smbb>, <&usb_id>;
vbus-supply = <&chg_otg>;
hnp-disable;
srp-disable;
adp-disable;
};
&usb_hs1_phy {
status = "okay";
v1p8-supply = <&pm8941_l6>;
v3p3-supply = <&pm8941_l24>;
extcon = <&smbb>;
qcom,init-seq = /bits/ 8 <0x1 0x64>;
};

View File

@ -0,0 +1,539 @@
// SPDX-License-Identifier: GPL-2.0
#include "qcom-msm8974pro.dtsi"
#include "pm8841.dtsi"
#include "pm8941.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
/ {
aliases {
mmc0 = &sdhc_1;
mmc1 = &sdhc_2;
serial0 = &blsp1_uart2;
serial1 = &blsp2_uart1;
};
chosen {
stdout-path = "serial0:115200n8";
};
gpio-keys {
compatible = "gpio-keys";
pinctrl-0 = <&gpio_keys_pin_a>;
pinctrl-names = "default";
key-volume-down {
label = "volume_down";
gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEDOWN>;
debounce-interval = <15>;
};
key-volume-up {
label = "volume_up";
gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
debounce-interval = <15>;
};
};
vreg_vsp: lcd-dcdc-regulator {
compatible = "regulator-fixed";
regulator-name = "vreg_vsp";
regulator-min-microvolt = <5600000>;
regulator-max-microvolt = <5600000>;
gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-0 = <&lcd_dcdc_en_pin_a>;
pinctrl-names = "default";
};
vreg_boost: vreg-boost {
compatible = "regulator-fixed";
regulator-name = "vreg-boost";
regulator-min-microvolt = <3150000>;
regulator-max-microvolt = <3150000>;
regulator-always-on;
regulator-boot-on;
gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-names = "default";
pinctrl-0 = <&boost_bypass_n_pin>;
};
vreg_vph_pwr: vreg-vph-pwr {
compatible = "regulator-fixed";
regulator-name = "vph-pwr";
regulator-min-microvolt = <3600000>;
regulator-max-microvolt = <3600000>;
regulator-always-on;
};
vreg_wlan: wlan-regulator {
compatible = "regulator-fixed";
regulator-name = "wl-reg";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
enable-active-high;
pinctrl-0 = <&wlan_regulator_pin>;
pinctrl-names = "default";
};
};
&blsp1_uart2 {
status = "okay";
};
&blsp2_i2c2 {
clock-frequency = <355000>;
status = "okay";
synaptics_touchscreen: synaptics@2c {
compatible = "syna,rmi4-i2c";
reg = <0x2c>;
interrupt-parent = <&tlmm>;
interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
#address-cells = <1>;
#size-cells = <0>;
vdd-supply = <&pm8941_l22>;
/* vio-supply is set in dts */
pinctrl-0 = <&ts_int_pin>;
pinctrl-names = "default";
syna,startup-delay-ms = <100>;
rmi4-f01@1 {
reg = <0x1>;
syna,nosleep-mode = <1>;
};
rmi4-f11@11 {
reg = <0x11>;
syna,sensor-type = <1>;
touchscreen-inverted-x;
};
};
};
&pm8941_coincell {
qcom,rset-ohms = <2100>;
qcom,vset-millivolts = <3000>;
status = "okay";
};
&pm8941_gpios {
gpio_keys_pin_a: gpio-keys-active-state {
pins = "gpio2", "gpio5";
function = "normal";
bias-pull-up;
power-source = <PM8941_GPIO_S3>;
};
wlan_sleep_clk_pin: wl-sleep-clk-state {
pins = "gpio17";
function = "func2";
output-high;
power-source = <PM8941_GPIO_S3>;
};
wlan_regulator_pin: wl-reg-active-state {
pins = "gpio18";
function = "normal";
bias-disable;
power-source = <PM8941_GPIO_S3>;
};
lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
pins = "gpio20";
function = "normal";
bias-disable;
power-source = <PM8941_GPIO_S3>;
input-disable;
output-low;
};
};
&pm8941_lpg {
qcom,power-source = <1>;
status = "okay";
multi-led {
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
#address-cells = <1>;
#size-cells = <0>;
led@5 {
reg = <5>;
color = <LED_COLOR_ID_BLUE>;
};
led@6 {
reg = <6>;
color = <LED_COLOR_ID_GREEN>;
};
led@7 {
reg = <7>;
color = <LED_COLOR_ID_RED>;
};
};
};
&pm8941_vib {
status = "okay";
};
&remoteproc_adsp {
cx-supply = <&pm8841_s2>;
status = "okay";
};
&remoteproc_mss {
cx-supply = <&pm8841_s2>;
mss-supply = <&pm8841_s3>;
mx-supply = <&pm8841_s1>;
pll-supply = <&pm8941_l12>;
status = "okay";
};
&rpm_requests {
regulators-0 {
compatible = "qcom,rpm-pm8841-regulators";
pm8841_s1: s1 {
regulator-min-microvolt = <675000>;
regulator-max-microvolt = <1050000>;
};
pm8841_s2: s2 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
};
pm8841_s3: s3 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
};
pm8841_s4: s4 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1050000>;
};
};
regulators-1 {
compatible = "qcom,rpm-pm8941-regulators";
vdd_l1_l3-supply = <&pm8941_s1>;
vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
vdd_l4_l11-supply = <&pm8941_s1>;
vdd_l5_l7-supply = <&pm8941_s2>;
vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
vdd_l21-supply = <&vreg_boost>;
pm8941_s1: s1 {
regulator-min-microvolt = <1300000>;
regulator-max-microvolt = <1300000>;
regulator-always-on;
regulator-boot-on;
};
pm8941_s2: s2 {
regulator-min-microvolt = <2150000>;
regulator-max-microvolt = <2150000>;
regulator-boot-on;
};
pm8941_s3: s3 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-system-load = <154000>;
regulator-always-on;
regulator-boot-on;
};
pm8941_s4: s4 {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
};
pm8941_l1: l1 {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
regulator-always-on;
regulator-boot-on;
};
pm8941_l2: l2 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pm8941_l3: l3 {
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
};
pm8941_l4: l4 {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
};
pm8941_l5: l5 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8941_l6: l6 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-boot-on;
};
pm8941_l7: l7 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-boot-on;
};
pm8941_l8: l8 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8941_l9: l9 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
};
pm8941_l12: l12 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
regulator-boot-on;
};
pm8941_l13: l13 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <2950000>;
regulator-boot-on;
};
pm8941_l14: l14 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
pm8941_l15: l15 {
regulator-min-microvolt = <2050000>;
regulator-max-microvolt = <2050000>;
};
pm8941_l16: l16 {
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <2700000>;
};
pm8941_l17: l17 {
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <2700000>;
};
pm8941_l18: l18 {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <2850000>;
};
pm8941_l20: l20 {
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
regulator-system-load = <500000>;
regulator-allow-set-load;
regulator-boot-on;
};
pm8941_l21: l21 {
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
regulator-boot-on;
};
pm8941_l22: l22 {
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
};
pm8941_l23: l23 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
};
pm8941_l24: l24 {
regulator-min-microvolt = <3075000>;
regulator-max-microvolt = <3075000>;
regulator-boot-on;
};
pm8941_lvs3: lvs3 {};
};
};
&sdhc_1 {
vmmc-supply = <&pm8941_l20>;
vqmmc-supply = <&pm8941_s3>;
pinctrl-0 = <&sdc1_on>;
pinctrl-1 = <&sdc1_off>;
pinctrl-names = "default", "sleep";
status = "okay";
};
&sdhc_2 {
vmmc-supply = <&pm8941_l21>;
vqmmc-supply = <&pm8941_l13>;
cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&sdc2_on>;
pinctrl-1 = <&sdc2_off>;
pinctrl-names = "default", "sleep";
status = "okay";
};
&sdhc_3 {
max-frequency = <100000000>;
vmmc-supply = <&vreg_wlan>;
non-removable;
pinctrl-0 = <&sdc3_on>;
pinctrl-names = "default";
status = "okay";
wifi@1 {
compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
reg = <1>;
brcm,drive-strength = <10>;
pinctrl-0 = <&wlan_sleep_clk_pin>;
pinctrl-names = "default";
};
};
&tlmm {
sdc1_on: sdc1-on-state {
clk-pins {
pins = "sdc1_clk";
drive-strength = <16>;
bias-disable;
};
cmd-data-pins {
pins = "sdc1_cmd", "sdc1_data";
drive-strength = <10>;
bias-pull-up;
};
};
sdc2_on: sdc2-on-state {
clk-pins {
pins = "sdc2_clk";
drive-strength = <6>;
bias-disable;
};
cmd-data-pins {
pins = "sdc2_cmd", "sdc2_data";
drive-strength = <6>;
bias-pull-up;
};
cd-pins {
pins = "gpio62";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
};
sdc3_on: sdc3-on-state {
clk-pins {
pins = "gpio40";
function = "sdc3";
drive-strength = <10>;
bias-disable;
};
cmd-pins {
pins = "gpio39";
function = "sdc3";
drive-strength = <10>;
bias-pull-up;
};
data-pins {
pins = "gpio35", "gpio36", "gpio37", "gpio38";
function = "sdc3";
drive-strength = <10>;
bias-pull-up;
};
};
ts_int_pin: ts-int-pin-state {
pins = "gpio86";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
};
&usb {
phys = <&usb_hs1_phy>;
phy-select = <&tcsr 0xb000 0>;
extcon = <&smbb>, <&usb_id>;
vbus-supply = <&chg_otg>;
hnp-disable;
srp-disable;
adp-disable;
status = "okay";
};
&usb_hs1_phy {
v1p8-supply = <&pm8941_l6>;
v3p3-supply = <&pm8941_l24>;
extcon = <&smbb>;
qcom,init-seq = /bits/ 8 <0x1 0x64>;
status = "okay";
};

View File

@ -0,0 +1,44 @@
// SPDX-License-Identifier: GPL-2.0
#include "qcom-msm8974pro-sony-xperia-shinano-common.dtsi"
/ {
model = "Sony Xperia Z3";
compatible = "sony,xperia-leo", "qcom,msm8974pro", "qcom,msm8974";
chassis-type = "handset";
gpio-keys {
key-camera-snapshot {
label = "camera_snapshot";
gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_CAMERA>;
debounce-interval = <15>;
};
key-camera-focus {
label = "camera_focus";
gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
linux,code = <KEY_CAMERA_FOCUS>;
debounce-interval = <15>;
};
};
};
&gpio_keys_pin_a {
pins = "gpio2", "gpio3", "gpio4", "gpio5";
};
&smbb {
usb-charge-current-limit = <1500000>;
qcom,fast-charge-safe-current = <3000000>;
qcom,fast-charge-current-limit = <2150000>;
qcom,fast-charge-safe-voltage = <4400000>;
qcom,fast-charge-high-threshold-voltage = <4350000>;
qcom,auto-recharge-threshold-voltage = <4280000>;
qcom,minimum-input-voltage = <4200000>;
status = "okay";
};
&synaptics_touchscreen {
vio-supply = <&pm8941_s3>;
};

View File

@ -378,6 +378,16 @@
phy-names = "pciephy";
status = "disabled";
pcie@0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
bus-range = <0x01 0xff>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
};
};
pcie_ep: pcie-ep@1c00000 {