1// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2/* 3 * Copyright (C) 2021 MediaTek Inc. 4 */ 5 6#include <dt-bindings/gpio/gpio.h> 7#include "mt8195.dtsi" 8#include "mt6359.dtsi" 9 10/ { 11 aliases { 12 serial0 = &uart0; 13 }; 14 15 chosen { 16 stdout-path = "serial0:115200n8"; 17 }; 18 19 memory@40000000 { 20 device_type = "memory"; 21 reg = <0 0x40000000 0 0x80000000>; 22 }; 23 24 /* system wide LDO 3.3V power rail */ 25 pp3300_z5: regulator-pp3300-ldo-z5 { 26 compatible = "regulator-fixed"; 27 regulator-name = "pp3300_ldo_z5"; 28 regulator-always-on; 29 regulator-boot-on; 30 regulator-min-microvolt = <3300000>; 31 regulator-max-microvolt = <3300000>; 32 vin-supply = <&ppvar_sys>; 33 }; 34 35 /* separately switched 3.3V power rail */ 36 pp3300_s3: regulator-pp3300-s3 { 37 compatible = "regulator-fixed"; 38 regulator-name = "pp3300_s3"; 39 /* automatically sequenced by PMIC EXT_PMIC_EN2 */ 40 regulator-always-on; 41 regulator-boot-on; 42 regulator-min-microvolt = <3300000>; 43 regulator-max-microvolt = <3300000>; 44 vin-supply = <&pp3300_z2>; 45 }; 46 47 /* system wide 3.3V power rail */ 48 pp3300_z2: regulator-pp3300-z2 { 49 compatible = "regulator-fixed"; 50 regulator-name = "pp3300_z2"; 51 /* EN pin tied to pp4200_z2, which is controlled by EC */ 52 regulator-always-on; 53 regulator-boot-on; 54 regulator-min-microvolt = <3300000>; 55 regulator-max-microvolt = <3300000>; 56 vin-supply = <&ppvar_sys>; 57 }; 58 59 /* system wide 4.2V power rail */ 60 pp4200_z2: regulator-pp4200-z2 { 61 compatible = "regulator-fixed"; 62 regulator-name = "pp4200_z2"; 63 /* controlled by EC */ 64 regulator-always-on; 65 regulator-boot-on; 66 regulator-min-microvolt = <4200000>; 67 regulator-max-microvolt = <4200000>; 68 vin-supply = <&ppvar_sys>; 69 }; 70 71 /* system wide switching 5.0V power rail */ 72 pp5000_s5: regulator-pp5000-s5 { 73 compatible = "regulator-fixed"; 74 regulator-name = "pp5000_s5"; 75 /* controlled by EC */ 76 regulator-always-on; 77 regulator-boot-on; 78 regulator-min-microvolt = <5000000>; 79 regulator-max-microvolt = <5000000>; 80 vin-supply = <&ppvar_sys>; 81 }; 82 83 /* system wide semi-regulated power rail from battery or USB */ 84 ppvar_sys: regulator-ppvar-sys { 85 compatible = "regulator-fixed"; 86 regulator-name = "ppvar_sys"; 87 regulator-always-on; 88 regulator-boot-on; 89 }; 90}; 91 92/* for CPU-L */ 93&mt6359_vcore_buck_reg { 94 regulator-always-on; 95}; 96 97/* for CORE */ 98&mt6359_vgpu11_buck_reg { 99 regulator-always-on; 100}; 101 102&mt6359_vgpu11_sshub_buck_reg { 103 regulator-always-on; 104 regulator-min-microvolt = <550000>; 105 regulator-max-microvolt = <550000>; 106}; 107 108/* for CORE SRAM */ 109&mt6359_vpu_buck_reg { 110 regulator-always-on; 111}; 112 113&mt6359_vrf12_ldo_reg { 114 regulator-always-on; 115}; 116 117/* for GPU SRAM */ 118&mt6359_vsram_others_ldo_reg { 119 regulator-always-on; 120 regulator-min-microvolt = <750000>; 121 regulator-max-microvolt = <750000>; 122}; 123 124&mt6359_vufs_ldo_reg { 125 regulator-always-on; 126}; 127 128&uart0 { 129 status = "okay"; 130}; 131