1
0
mirror of https://github.com/physwizz/a155-U-u1.git synced 2025-08-25 21:42:22 +00:00
Files
physwizz 99537be4e2 first
2024-03-11 06:53:12 +11:00

302 lines
8.8 KiB
Plaintext

// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
* Copyright (c) 2021 MediaTek Inc.
*/
#include <dt-bindings/iio/mt635x-auxadc.h>
#include <dt-bindings/spmi/spmi.h>
&spmi {
second_pmic@5 {
compatible = "mediatek,mt6368";
reg = <0x5 SPMI_USID>;
interrupts = <5>;
#address-cells = <1>;
#size-cells = <0>;
interrupt-controller;
#interrupt-cells = <2>;
mtk-spmi-pmic-debug {
compatible = "mediatek,spmi-pmic-debug";
};
accdet: accdet {
compatible = "mediatek,mt6368-accdet";
accdet-name = "mt63xx-accdet";
accdet-mic-vol = <8>;
accdet-plugout-debounce = <1>;
accdet-mic-mode = <2>;
eint_use_ext_res = <0>;
headset-mode-setting = <0x500 0x500 1 0x1f0
0x800 0x800 0x20 0x44
0x4 0x1
0x5 0x3 0x3 0x5 0xe>;
headset-use-ap-eint = <0>;
headset-eint-num = <0>;
headset-eint-trig-mode = <1>;
headset-key-mode = <0>;
headset-three-key-threshold = <0 80 220 400>;
headset-three-key-threshold-CDD = <0 121 192 600>;
headset-four-key-threshold = <0 58 121 192 400>;
io-channels = <&mt6368_adc AUXADC_ACCDET>;
io-channel-names = "pmic_accdet";
nvmem = <&mt6368_efuse>;
nvmem-names = "mt63xx-accdet-efuse";
status = "okay";
};
mt6368_adc: mt6368-auxadc {
compatible = "mediatek,mt6368-auxadc";
#io-channel-cells = <1>;
chip_temp {
channel = <AUXADC_CHIP_TEMP>;
};
vcore_temp {
channel = <AUXADC_VCORE_TEMP>;
};
vproc_temp {
channel = <AUXADC_VPROC_TEMP>;
};
vgpu_temp {
channel = <AUXADC_VGPU_TEMP>;
};
accdet {
channel = <AUXADC_ACCDET>;
};
hpofs_cal {
channel = <AUXADC_HPOFS_CAL>;
avg-num = <256>;
};
vin1_open {
channel = <AUXADC_VIN1>;
pures = <ADC_PURES_OPEN>;
};
vin2_open {
channel = <AUXADC_VIN2>;
pures = <ADC_PURES_OPEN>;
};
};
mt6368_efuse: mt6368-efuse {
compatible = "mediatek,mt6368-efuse";
#address-cells = <1>;
#size-cells = <1>;
mt6368_thermal_efuse: mt6368_e_data {
reg = <0x52 10>;
};
};
mt6368_consys: mt6368-consys {
compatible = "mediatek,mt6368-consys";
};
mt6368codec: mt6368codec {
compatible = "mediatek,mt6368-sound";
mediatek,dmic-mode = <0>;
mediatek,mic-type = <3 3 3>;
io-channels = <&mt6368_adc AUXADC_HPOFS_CAL>;
io-channel-names = "pmic_hpofs_cal";
nvmem = <&mt6368_efuse>;
nvmem-names = "pmic-hp-efuse";
reg_vaud18-supply = <&mt6368_vaud18>;
};
regulators {
mt6368_vbuck1: VBUCK1 {
regulator-compatible = "VBUCK1";
regulator-name = "mt6368_vbuck1";
regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1193750>;
regulator-enable-ramp-delay = <200>;
regulator-allowed-modes = <0 1 2>;
};
mt6368_vbuck2: VBUCK2 {
regulator-compatible = "VBUCK2";
regulator-name = "mt6368_vbuck2";
regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1193750>;
regulator-enable-ramp-delay = <200>;
regulator-allowed-modes = <0 1 2>;
};
mt6368_vbuck3: VBUCK3 {
regulator-compatible = "VBUCK3";
regulator-name = "mt6368_vbuck3";
regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1193750>;
regulator-enable-ramp-delay = <180>;
regulator-allowed-modes = <0 1 2>;
};
mt6368_vbuck4: VBUCK4 {
regulator-compatible = "VBUCK4";
regulator-name = "mt6368_vbuck4";
regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1193750>;
regulator-enable-ramp-delay = <180>;
regulator-allowed-modes = <0 1 2>;
};
mt6368_vbuck5: VBUCK5 {
regulator-compatible = "VBUCK5";
regulator-name = "mt6368_vbuck5";
regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1193750>;
regulator-enable-ramp-delay = <180>;
regulator-allowed-modes = <0 1 2>;
};
mt6368_vbuck6: VBUCK6 {
regulator-compatible = "VBUCK6";
regulator-name = "mt6368_vbuck6";
regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1193750>;
regulator-enable-ramp-delay = <180>;
regulator-allowed-modes = <0 1 2>;
};
mt6368_vpa: VPA {
regulator-compatible = "VPA";
regulator-name = "mt6368_vpa";
regulator-min-microvolt = <600000>;
regulator-max-microvolt = <3600000>;
regulator-enable-ramp-delay = <200>;
regulator-allowed-modes = <0 1 2>;
};
mt6368_vusb: VUSB {
regulator-compatible = "VUSB";
regulator-name = "mt6368_vusb";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
regulator-always-on;
};
mt6368_vaux18: VAUX18 {
regulator-compatible = "VAUX18";
regulator-name = "mt6368_vaux18";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
regulator-enable-ramp-delay = <240>;
regulator-allowed-modes = <0 2>;
};
mt6368_vrf13_aif: VRF13_AIF {
regulator-compatible = "VRF13_AIF";
regulator-name = "mt6368_vrf13_aif";
regulator-min-microvolt = <600000>;
regulator-max-microvolt = <2100000>;
regulator-enable-ramp-delay = <200>;
regulator-allowed-modes = <0 2>;
};
mt6368_vrf18_aif: VRF18_AIF {
regulator-compatible = "VRF18_AIF";
regulator-name = "mt6368_vrf18_aif";
regulator-min-microvolt = <600000>;
regulator-max-microvolt = <2100000>;
regulator-enable-ramp-delay = <200>;
regulator-allowed-modes = <0 2>;
};
mt6368_vant18: VANT18 {
regulator-compatible = "VANT18";
regulator-name = "mt6368_vant18";
regulator-min-microvolt = <600000>;
regulator-max-microvolt = <2100000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vibr: VIBR {
regulator-compatible = "VIBR";
regulator-name = "mt6368_vibr";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vio28: VIO28 {
regulator-compatible = "VIO28";
regulator-name = "mt6368_vio28";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
regulator-always-on;
};
mt6368_vfp: VFP {
regulator-compatible = "VFP";
regulator-name = "mt6368_vfp";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vtp: VTP {
regulator-compatible = "VTP";
regulator-name = "mt6368_vtp";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vmch: VMCH {
regulator-compatible = "VMCH";
regulator-name = "mt6368_vmch";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vmc: VMC {
regulator-compatible = "VMC";
regulator-name = "mt6368_vmc";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vaud18: VAUD18 {
regulator-compatible = "VAUD18";
regulator-name = "mt6368_vaud18";
regulator-min-microvolt = <600000>;
regulator-max-microvolt = <2100000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vcn33_1: VCN33_1 {
regulator-compatible = "VCN33_1";
regulator-name = "mt6368_vcn33_1";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vcn33_2: VCN33_2 {
regulator-compatible = "VCN33_2";
regulator-name = "mt6368_vcn33_2";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vefuse: VEFUSE {
regulator-compatible = "VEFUSE";
regulator-name = "mt6368_vefuse";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vmch_eint_high: VMCH_EINT_HIGH {
regulator-compatible = "VMCH_EINT_HIGH";
regulator-name = "mt6368_vmch_eint_high";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
mt6368_vmch_eint_low: VMCH_EINT_LOW {
regulator-compatible = "VMCH_EINT_LOW";
regulator-name = "mt6368_vmch_eint_low";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3500000>;
regulator-enable-ramp-delay = <680>;
regulator-allowed-modes = <0 2>;
};
};
};
};