kernel-brax3-ubuntu-touch/arch/arm64/boot/dts/mediatek/mt6368.dtsi
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

293 lines
8.5 KiB
Text

// 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_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>;
};
};
};
};