1c337a718SKomal Bajaj// SPDX-License-Identifier: BSD-3-Clause 2c337a718SKomal Bajaj/* 3c337a718SKomal Bajaj * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. 4c337a718SKomal Bajaj */ 5c337a718SKomal Bajaj 6c337a718SKomal Bajaj#include <dt-bindings/gpio/gpio.h> 7c337a718SKomal Bajaj#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 8c337a718SKomal Bajaj 9c337a718SKomal Bajaj#include "shikra.dtsi" 10c337a718SKomal Bajaj#include "pm4125.dtsi" 11c337a718SKomal Bajaj#include "pm8005.dtsi" 12c337a718SKomal Bajaj 13c337a718SKomal Bajaj/ { 14320670a8SKomal Bajaj aliases { 15320670a8SKomal Bajaj serial1 = &uart8; 16320670a8SKomal Bajaj }; 17320670a8SKomal Bajaj 18c337a718SKomal Bajaj gpio-keys { 19c337a718SKomal Bajaj compatible = "gpio-keys"; 20c337a718SKomal Bajaj label = "gpio-keys"; 21c337a718SKomal Bajaj pinctrl-0 = <&vol_up_n>; 22c337a718SKomal Bajaj pinctrl-names = "default"; 23c337a718SKomal Bajaj 24c337a718SKomal Bajaj key-volume-up { 25c337a718SKomal Bajaj label = "Volume Up"; 26c337a718SKomal Bajaj gpios = <&pm4125_gpios 9 GPIO_ACTIVE_LOW>; 27c337a718SKomal Bajaj linux,input-type = <1>; 28c337a718SKomal Bajaj linux,code = <KEY_VOLUMEUP>; 29c337a718SKomal Bajaj wakeup-source; 30c337a718SKomal Bajaj debounce-interval = <15>; 31c337a718SKomal Bajaj linux,can-disable; 32c337a718SKomal Bajaj }; 33c337a718SKomal Bajaj }; 34320670a8SKomal Bajaj 35320670a8SKomal Bajaj wcn3988-pmu { 36320670a8SKomal Bajaj compatible = "qcom,wcn3988-pmu"; 37320670a8SKomal Bajaj 38320670a8SKomal Bajaj pinctrl-0 = <&sw_ctrl_default>; 39320670a8SKomal Bajaj pinctrl-names = "default"; 40320670a8SKomal Bajaj 41320670a8SKomal Bajaj swctrl-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; 42320670a8SKomal Bajaj 43320670a8SKomal Bajaj vddio-supply = <&pm4125_l7>; 44320670a8SKomal Bajaj vddxo-supply = <&pm4125_l13>; 45320670a8SKomal Bajaj vddrf-supply = <&pm4125_l10>; 46320670a8SKomal Bajaj vddch0-supply = <&pm4125_l22>; 47320670a8SKomal Bajaj 48320670a8SKomal Bajaj regulators { 49320670a8SKomal Bajaj vreg_pmu_io: ldo0 { 50320670a8SKomal Bajaj regulator-name = "vreg_pmu_io"; 51320670a8SKomal Bajaj }; 52320670a8SKomal Bajaj 53320670a8SKomal Bajaj vreg_pmu_xo: ldo1 { 54320670a8SKomal Bajaj regulator-name = "vreg_pmu_xo"; 55320670a8SKomal Bajaj }; 56320670a8SKomal Bajaj 57320670a8SKomal Bajaj vreg_pmu_rf: ldo2 { 58320670a8SKomal Bajaj regulator-name = "vreg_pmu_rf"; 59320670a8SKomal Bajaj }; 60320670a8SKomal Bajaj 61320670a8SKomal Bajaj vreg_pmu_ch0: ldo3 { 62320670a8SKomal Bajaj regulator-name = "vreg_pmu_ch0"; 63320670a8SKomal Bajaj }; 64320670a8SKomal Bajaj 65320670a8SKomal Bajaj vreg_pmu_ch1: ldo4 { 66320670a8SKomal Bajaj regulator-name = "vreg_pmu_ch1"; 67320670a8SKomal Bajaj }; 68320670a8SKomal Bajaj }; 69320670a8SKomal Bajaj }; 70c337a718SKomal Bajaj}; 71c337a718SKomal Bajaj 72c337a718SKomal Bajaj&pm4125_gpios { 73c337a718SKomal Bajaj vol_up_n: vol-up-n-state { 74c337a718SKomal Bajaj pins = "gpio9"; 75c337a718SKomal Bajaj function = PMIC_GPIO_FUNC_NORMAL; 76c337a718SKomal Bajaj input-enable; 77c337a718SKomal Bajaj bias-pull-up; 78c337a718SKomal Bajaj power-source = <0>; 79c337a718SKomal Bajaj }; 80c337a718SKomal Bajaj}; 81c337a718SKomal Bajaj 82c337a718SKomal Bajaj&pm4125_resin { 83c337a718SKomal Bajaj linux,code = <KEY_VOLUMEDOWN>; 84c337a718SKomal Bajaj 85c337a718SKomal Bajaj status = "okay"; 86c337a718SKomal Bajaj}; 87c337a718SKomal Bajaj 88c337a718SKomal Bajaj&pm8005_regulators { 89c337a718SKomal Bajaj status = "disabled"; 90c337a718SKomal Bajaj}; 91c337a718SKomal Bajaj 92c337a718SKomal Bajaj&rpm_requests { 93c337a718SKomal Bajaj regulators { 94c337a718SKomal Bajaj compatible = "qcom,rpm-pm2250-regulators"; 95c337a718SKomal Bajaj 96c337a718SKomal Bajaj pm4125_s2: s2 { 97c337a718SKomal Bajaj regulator-min-microvolt = <1000000>; 98c337a718SKomal Bajaj regulator-max-microvolt = <1200000>; 99c337a718SKomal Bajaj }; 100c337a718SKomal Bajaj 101c337a718SKomal Bajaj pm4125_l3: l3 { 102c337a718SKomal Bajaj regulator-min-microvolt = <624000>; 103c337a718SKomal Bajaj regulator-max-microvolt = <650000>; 104c337a718SKomal Bajaj }; 105c337a718SKomal Bajaj 106c337a718SKomal Bajaj pm4125_l4: l4 { 107c337a718SKomal Bajaj regulator-min-microvolt = <1800000>; 108c337a718SKomal Bajaj regulator-max-microvolt = <2960000>; 109c337a718SKomal Bajaj }; 110c337a718SKomal Bajaj 111c337a718SKomal Bajaj pm4125_l5: l5 { 112c337a718SKomal Bajaj regulator-min-microvolt = <1232000>; 113c337a718SKomal Bajaj regulator-max-microvolt = <1304000>; 114c337a718SKomal Bajaj }; 115c337a718SKomal Bajaj 116c337a718SKomal Bajaj pm4125_l6: l6 { 117c337a718SKomal Bajaj regulator-min-microvolt = <788000>; 118c337a718SKomal Bajaj regulator-max-microvolt = <1050000>; 119c337a718SKomal Bajaj }; 120c337a718SKomal Bajaj 121c337a718SKomal Bajaj pm4125_l7: l7 { 122c337a718SKomal Bajaj regulator-min-microvolt = <664000>; 123c337a718SKomal Bajaj regulator-max-microvolt = <664000>; 124c337a718SKomal Bajaj }; 125c337a718SKomal Bajaj 126c337a718SKomal Bajaj pm4125_l8: l8 { 127c337a718SKomal Bajaj regulator-min-microvolt = <928000>; 128c337a718SKomal Bajaj regulator-max-microvolt = <1000000>; 129c337a718SKomal Bajaj }; 130c337a718SKomal Bajaj 131c337a718SKomal Bajaj pm4125_l9: l9 { 132c337a718SKomal Bajaj regulator-min-microvolt = <875000>; 133c337a718SKomal Bajaj regulator-max-microvolt = <1000000>; 134c337a718SKomal Bajaj }; 135c337a718SKomal Bajaj 136c337a718SKomal Bajaj pm4125_l10: l10 { 137c337a718SKomal Bajaj regulator-min-microvolt = <1304000>; 138c337a718SKomal Bajaj regulator-max-microvolt = <1304000>; 139c337a718SKomal Bajaj }; 140c337a718SKomal Bajaj 141c337a718SKomal Bajaj pm4125_l12: l12 { 142c337a718SKomal Bajaj regulator-min-microvolt = <928000>; 143c337a718SKomal Bajaj regulator-max-microvolt = <975000>; 144c337a718SKomal Bajaj }; 145c337a718SKomal Bajaj 146c337a718SKomal Bajaj pm4125_l13: l13 { 147c337a718SKomal Bajaj regulator-min-microvolt = <1800000>; 148c337a718SKomal Bajaj regulator-max-microvolt = <1800000>; 149c337a718SKomal Bajaj }; 150c337a718SKomal Bajaj 151c337a718SKomal Bajaj pm4125_l14: l14 { 152c337a718SKomal Bajaj regulator-min-microvolt = <1800000>; 153c337a718SKomal Bajaj regulator-max-microvolt = <1800000>; 154c337a718SKomal Bajaj }; 155c337a718SKomal Bajaj 156c337a718SKomal Bajaj pm4125_l15: l15 { 157c337a718SKomal Bajaj regulator-min-microvolt = <1800000>; 158c337a718SKomal Bajaj regulator-max-microvolt = <1800000>; 159c337a718SKomal Bajaj }; 160c337a718SKomal Bajaj 161c337a718SKomal Bajaj pm4125_l16: l16 { 162c337a718SKomal Bajaj regulator-min-microvolt = <1800000>; 163c337a718SKomal Bajaj regulator-max-microvolt = <1800000>; 164c337a718SKomal Bajaj }; 165c337a718SKomal Bajaj 166c337a718SKomal Bajaj pm4125_l17: l17 { 167c337a718SKomal Bajaj regulator-min-microvolt = <3000000>; 168c337a718SKomal Bajaj regulator-max-microvolt = <3544000>; 169c337a718SKomal Bajaj }; 170c337a718SKomal Bajaj 171c337a718SKomal Bajaj pm4125_l18: l18 { 172c337a718SKomal Bajaj regulator-min-microvolt = <1800000>; 173c337a718SKomal Bajaj regulator-max-microvolt = <2960000>; 174c337a718SKomal Bajaj }; 175c337a718SKomal Bajaj 176c337a718SKomal Bajaj pm4125_l19: l19 { 177c337a718SKomal Bajaj regulator-min-microvolt = <1800000>; 178c337a718SKomal Bajaj regulator-max-microvolt = <2960000>; 179c337a718SKomal Bajaj }; 180c337a718SKomal Bajaj 181c337a718SKomal Bajaj pm4125_l20: l20 { 182c337a718SKomal Bajaj regulator-min-microvolt = <2952000>; 183c337a718SKomal Bajaj regulator-max-microvolt = <2952000>; 184c337a718SKomal Bajaj }; 185c337a718SKomal Bajaj 186c337a718SKomal Bajaj pm4125_l21: l21 { 187c337a718SKomal Bajaj regulator-min-microvolt = <3000000>; 188c337a718SKomal Bajaj regulator-max-microvolt = <3056000>; 189c337a718SKomal Bajaj }; 190c337a718SKomal Bajaj 191c337a718SKomal Bajaj pm4125_l22: l22 { 192c337a718SKomal Bajaj regulator-min-microvolt = <3304000>; 193c337a718SKomal Bajaj regulator-max-microvolt = <3304000>; 194c337a718SKomal Bajaj }; 195c337a718SKomal Bajaj }; 196c337a718SKomal Bajaj}; 197320670a8SKomal Bajaj 198320670a8SKomal Bajaj&tlmm { 199*779aead2SKomal Bajaj gpio-reserved-ranges = <6 4>, /* Fingerprint SPI */ 200*779aead2SKomal Bajaj <14 4>, /* eSE SPI */ 201*779aead2SKomal Bajaj <30 2>, /* NFC SPI */ 202*779aead2SKomal Bajaj <138 1>, /* NFC Secure IO */ 203*779aead2SKomal Bajaj <155 11>; /* eMMC Boot */ 204*779aead2SKomal Bajaj 205320670a8SKomal Bajaj sw_ctrl_default: sw-ctrl-default-state { 206320670a8SKomal Bajaj pins = "gpio88"; 207320670a8SKomal Bajaj function = "gpio"; 208320670a8SKomal Bajaj bias-pull-down; 209320670a8SKomal Bajaj }; 210320670a8SKomal Bajaj}; 211320670a8SKomal Bajaj 212320670a8SKomal Bajaj&uart8 { 213320670a8SKomal Bajaj status = "okay"; 214320670a8SKomal Bajaj 215320670a8SKomal Bajaj bluetooth { 216320670a8SKomal Bajaj compatible = "qcom,wcn3988-bt"; 217320670a8SKomal Bajaj max-speed = <3200000>; 218320670a8SKomal Bajaj 219320670a8SKomal Bajaj vddio-supply = <&vreg_pmu_io>; 220320670a8SKomal Bajaj vddxo-supply = <&vreg_pmu_xo>; 221320670a8SKomal Bajaj vddrf-supply = <&vreg_pmu_rf>; 222320670a8SKomal Bajaj vddch0-supply = <&vreg_pmu_ch0>; 223320670a8SKomal Bajaj }; 224320670a8SKomal Bajaj}; 225320670a8SKomal Bajaj 226320670a8SKomal Bajaj&wifi { 227320670a8SKomal Bajaj vdd-0.8-cx-mx-supply = <&pm4125_l7>; 228320670a8SKomal Bajaj vdd-1.8-xo-supply = <&vreg_pmu_xo>; 229320670a8SKomal Bajaj vdd-1.3-rfa-supply = <&vreg_pmu_rf>; 230320670a8SKomal Bajaj vdd-3.3-ch0-supply = <&vreg_pmu_ch0>; 231320670a8SKomal Bajaj 232320670a8SKomal Bajaj qcom,calibration-variant = "Shikra_EVK"; 233320670a8SKomal Bajaj firmware-name = "shikra"; 234320670a8SKomal Bajaj 235320670a8SKomal Bajaj status = "okay"; 236320670a8SKomal Bajaj}; 237