xref: /linux/scripts/dtc/include-prefixes/arm64/hisilicon/hikey970-pmic.dtsi (revision 6219b20e1ecd26296f02898b0aa53c7892f35a72)
1*6219b20eSMauro Carvalho Chehab// SPDX-License-Identifier: GPL-2.0
2*6219b20eSMauro Carvalho Chehab/*
3*6219b20eSMauro Carvalho Chehab * dts file for Hi6421v600 SPMI PMIC used at the HiKey970 Development Board
4*6219b20eSMauro Carvalho Chehab *
5*6219b20eSMauro Carvalho Chehab * Copyright (C) 2020, Huawei Tech. Co., Ltd.
6*6219b20eSMauro Carvalho Chehab */
7*6219b20eSMauro Carvalho Chehab
8*6219b20eSMauro Carvalho Chehab#include <dt-bindings/spmi/spmi.h>
9*6219b20eSMauro Carvalho Chehab
10*6219b20eSMauro Carvalho Chehab/ {
11*6219b20eSMauro Carvalho Chehab	spmi: spmi@fff24000 {
12*6219b20eSMauro Carvalho Chehab		compatible = "hisilicon,kirin970-spmi-controller";
13*6219b20eSMauro Carvalho Chehab		#address-cells = <2>;
14*6219b20eSMauro Carvalho Chehab		#size-cells = <0>;
15*6219b20eSMauro Carvalho Chehab		status = "okay";
16*6219b20eSMauro Carvalho Chehab		reg = <0x0 0xfff24000 0x0 0x1000>;
17*6219b20eSMauro Carvalho Chehab		hisilicon,spmi-channel = <2>;
18*6219b20eSMauro Carvalho Chehab
19*6219b20eSMauro Carvalho Chehab		pmic: pmic@0 {
20*6219b20eSMauro Carvalho Chehab			compatible = "hisilicon,hi6421-spmi";
21*6219b20eSMauro Carvalho Chehab			reg = <0 SPMI_USID>;
22*6219b20eSMauro Carvalho Chehab
23*6219b20eSMauro Carvalho Chehab			#interrupt-cells = <2>;
24*6219b20eSMauro Carvalho Chehab			interrupt-controller;
25*6219b20eSMauro Carvalho Chehab			gpios = <&gpio28 0 0>;
26*6219b20eSMauro Carvalho Chehab
27*6219b20eSMauro Carvalho Chehab			regulators {
28*6219b20eSMauro Carvalho Chehab				#address-cells = <1>;
29*6219b20eSMauro Carvalho Chehab				#size-cells = <0>;
30*6219b20eSMauro Carvalho Chehab
31*6219b20eSMauro Carvalho Chehab				ldo3: ldo3 { /* HDMI */
32*6219b20eSMauro Carvalho Chehab					regulator-name = "ldo3";
33*6219b20eSMauro Carvalho Chehab					regulator-min-microvolt = <1500000>;
34*6219b20eSMauro Carvalho Chehab					regulator-max-microvolt = <2000000>;
35*6219b20eSMauro Carvalho Chehab					regulator-boot-on;
36*6219b20eSMauro Carvalho Chehab				};
37*6219b20eSMauro Carvalho Chehab
38*6219b20eSMauro Carvalho Chehab				ldo4: ldo4 { /* 40 PIN */
39*6219b20eSMauro Carvalho Chehab					regulator-name = "ldo4";
40*6219b20eSMauro Carvalho Chehab					regulator-min-microvolt = <1725000>;
41*6219b20eSMauro Carvalho Chehab					regulator-max-microvolt = <1900000>;
42*6219b20eSMauro Carvalho Chehab					regulator-boot-on;
43*6219b20eSMauro Carvalho Chehab				};
44*6219b20eSMauro Carvalho Chehab
45*6219b20eSMauro Carvalho Chehab				ldo9: ldo9 { /* SDCARD I/O */
46*6219b20eSMauro Carvalho Chehab					regulator-name = "ldo9";
47*6219b20eSMauro Carvalho Chehab					regulator-min-microvolt = <1750000>;
48*6219b20eSMauro Carvalho Chehab					regulator-max-microvolt = <3300000>;
49*6219b20eSMauro Carvalho Chehab					regulator-boot-on;
50*6219b20eSMauro Carvalho Chehab				};
51*6219b20eSMauro Carvalho Chehab
52*6219b20eSMauro Carvalho Chehab				ldo15: ldo15 { /* UFS */
53*6219b20eSMauro Carvalho Chehab					regulator-name = "ldo15";
54*6219b20eSMauro Carvalho Chehab					regulator-min-microvolt = <1800000>;
55*6219b20eSMauro Carvalho Chehab					regulator-max-microvolt = <3000000>;
56*6219b20eSMauro Carvalho Chehab					regulator-always-on;
57*6219b20eSMauro Carvalho Chehab				};
58*6219b20eSMauro Carvalho Chehab
59*6219b20eSMauro Carvalho Chehab				ldo16: ldo16 { /* SD */
60*6219b20eSMauro Carvalho Chehab					regulator-name = "ldo16";
61*6219b20eSMauro Carvalho Chehab					regulator-min-microvolt = <1800000>;
62*6219b20eSMauro Carvalho Chehab					regulator-max-microvolt = <3000000>;
63*6219b20eSMauro Carvalho Chehab					regulator-boot-on;
64*6219b20eSMauro Carvalho Chehab				};
65*6219b20eSMauro Carvalho Chehab
66*6219b20eSMauro Carvalho Chehab				ldo17: ldo17 { /* USB HUB */
67*6219b20eSMauro Carvalho Chehab					regulator-name = "ldo17";
68*6219b20eSMauro Carvalho Chehab					regulator-min-microvolt = <2500000>;
69*6219b20eSMauro Carvalho Chehab					regulator-max-microvolt = <3300000>;
70*6219b20eSMauro Carvalho Chehab				};
71*6219b20eSMauro Carvalho Chehab
72*6219b20eSMauro Carvalho Chehab				ldo33: ldo33 { /* PEX8606 */
73*6219b20eSMauro Carvalho Chehab					regulator-name = "ldo33";
74*6219b20eSMauro Carvalho Chehab					regulator-min-microvolt = <2500000>;
75*6219b20eSMauro Carvalho Chehab					regulator-max-microvolt = <3300000>;
76*6219b20eSMauro Carvalho Chehab				};
77*6219b20eSMauro Carvalho Chehab
78*6219b20eSMauro Carvalho Chehab				ldo34: ldo34 { /* GPS AUX IN VDD */
79*6219b20eSMauro Carvalho Chehab					regulator-name = "ldo34";
80*6219b20eSMauro Carvalho Chehab					regulator-min-microvolt = <2600000>;
81*6219b20eSMauro Carvalho Chehab					regulator-max-microvolt = <3300000>;
82*6219b20eSMauro Carvalho Chehab				};
83*6219b20eSMauro Carvalho Chehab			};
84*6219b20eSMauro Carvalho Chehab		};
85*6219b20eSMauro Carvalho Chehab	};
86*6219b20eSMauro Carvalho Chehab};
87