1b4b8f2c9SClément Péron// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2cabbaed7SClément Péron// Copyright 2017 Icenowy Zheng <icenowy@aosc.xyz>
34c0a8475SIcenowy Zheng
44c0a8475SIcenowy Zheng/*
54c0a8475SIcenowy Zheng * AXP803 Integrated Power Management Chip
64c0a8475SIcenowy Zheng * http://files.pine64.org/doc/datasheet/pine64/AXP803_Datasheet_V1.0.pdf
74c0a8475SIcenowy Zheng */
84c0a8475SIcenowy Zheng
94c0a8475SIcenowy Zheng&axp803 {
104c0a8475SIcenowy Zheng	interrupt-controller;
114c0a8475SIcenowy Zheng	#interrupt-cells = <1>;
124c0a8475SIcenowy Zheng
13*44d52206SMaxime Ripard	ac_power_supply: ac-power {
1474221150SOskari Lemmela		compatible = "x-powers,axp803-ac-power-supply",
1574221150SOskari Lemmela			     "x-powers,axp813-ac-power-supply";
1674221150SOskari Lemmela		status = "disabled";
1774221150SOskari Lemmela	};
1874221150SOskari Lemmela
1974221150SOskari Lemmela	axp_adc: adc {
2074221150SOskari Lemmela		compatible = "x-powers,axp803-adc", "x-powers,axp813-adc";
2174221150SOskari Lemmela		#io-channel-cells = <1>;
2274221150SOskari Lemmela	};
2374221150SOskari Lemmela
2474221150SOskari Lemmela	axp_gpio: gpio {
2574221150SOskari Lemmela		compatible = "x-powers,axp803-gpio", "x-powers,axp813-gpio";
2674221150SOskari Lemmela		gpio-controller;
2774221150SOskari Lemmela		#gpio-cells = <2>;
2874221150SOskari Lemmela	};
2974221150SOskari Lemmela
30*44d52206SMaxime Ripard	battery_power_supply: battery-power {
3174221150SOskari Lemmela		compatible = "x-powers,axp803-battery-power-supply",
3274221150SOskari Lemmela			     "x-powers,axp813-battery-power-supply";
3374221150SOskari Lemmela		status = "disabled";
3474221150SOskari Lemmela	};
3574221150SOskari Lemmela
364c0a8475SIcenowy Zheng	regulators {
374c0a8475SIcenowy Zheng		/* Default work frequency for buck regulators */
384c0a8475SIcenowy Zheng		x-powers,dcdc-freq = <3000>;
394c0a8475SIcenowy Zheng
404c0a8475SIcenowy Zheng		reg_aldo1: aldo1 {
414c0a8475SIcenowy Zheng			regulator-name = "aldo1";
424c0a8475SIcenowy Zheng		};
434c0a8475SIcenowy Zheng
444c0a8475SIcenowy Zheng		reg_aldo2: aldo2 {
454c0a8475SIcenowy Zheng			regulator-name = "aldo2";
464c0a8475SIcenowy Zheng		};
474c0a8475SIcenowy Zheng
484c0a8475SIcenowy Zheng		reg_aldo3: aldo3 {
494c0a8475SIcenowy Zheng			regulator-name = "aldo3";
504c0a8475SIcenowy Zheng		};
514c0a8475SIcenowy Zheng
524c0a8475SIcenowy Zheng		reg_dc1sw: dc1sw {
534c0a8475SIcenowy Zheng			regulator-name = "dc1sw";
544c0a8475SIcenowy Zheng		};
554c0a8475SIcenowy Zheng
564c0a8475SIcenowy Zheng		reg_dcdc1: dcdc1 {
574c0a8475SIcenowy Zheng			regulator-name = "dcdc1";
584c0a8475SIcenowy Zheng		};
594c0a8475SIcenowy Zheng
604c0a8475SIcenowy Zheng		reg_dcdc2: dcdc2 {
614c0a8475SIcenowy Zheng			regulator-name = "dcdc2";
624c0a8475SIcenowy Zheng		};
634c0a8475SIcenowy Zheng
644c0a8475SIcenowy Zheng		reg_dcdc3: dcdc3 {
654c0a8475SIcenowy Zheng			regulator-name = "dcdc3";
664c0a8475SIcenowy Zheng		};
674c0a8475SIcenowy Zheng
684c0a8475SIcenowy Zheng		reg_dcdc4: dcdc4 {
694c0a8475SIcenowy Zheng			regulator-name = "dcdc4";
704c0a8475SIcenowy Zheng		};
714c0a8475SIcenowy Zheng
724c0a8475SIcenowy Zheng		reg_dcdc5: dcdc5 {
734c0a8475SIcenowy Zheng			regulator-name = "dcdc5";
744c0a8475SIcenowy Zheng		};
754c0a8475SIcenowy Zheng
764c0a8475SIcenowy Zheng		reg_dcdc6: dcdc6 {
774c0a8475SIcenowy Zheng			regulator-name = "dcdc6";
784c0a8475SIcenowy Zheng		};
794c0a8475SIcenowy Zheng
804c0a8475SIcenowy Zheng		reg_dldo1: dldo1 {
814c0a8475SIcenowy Zheng			regulator-name = "dldo1";
824c0a8475SIcenowy Zheng		};
834c0a8475SIcenowy Zheng
844c0a8475SIcenowy Zheng		reg_dldo2: dldo2 {
854c0a8475SIcenowy Zheng			regulator-name = "dldo2";
864c0a8475SIcenowy Zheng		};
874c0a8475SIcenowy Zheng
884c0a8475SIcenowy Zheng		reg_dldo3: dldo3 {
894c0a8475SIcenowy Zheng			regulator-name = "dldo3";
904c0a8475SIcenowy Zheng		};
914c0a8475SIcenowy Zheng
924c0a8475SIcenowy Zheng		reg_dldo4: dldo4 {
934c0a8475SIcenowy Zheng			regulator-name = "dldo4";
944c0a8475SIcenowy Zheng		};
954c0a8475SIcenowy Zheng
964c0a8475SIcenowy Zheng		reg_eldo1: eldo1 {
974c0a8475SIcenowy Zheng			regulator-name = "eldo1";
984c0a8475SIcenowy Zheng		};
994c0a8475SIcenowy Zheng
1004c0a8475SIcenowy Zheng		reg_eldo2: eldo2 {
1014c0a8475SIcenowy Zheng			regulator-name = "eldo2";
1024c0a8475SIcenowy Zheng		};
1034c0a8475SIcenowy Zheng
1044c0a8475SIcenowy Zheng		reg_eldo3: eldo3 {
1054c0a8475SIcenowy Zheng			regulator-name = "eldo3";
1064c0a8475SIcenowy Zheng		};
1074c0a8475SIcenowy Zheng
1084c0a8475SIcenowy Zheng		reg_fldo1: fldo1 {
1094c0a8475SIcenowy Zheng			regulator-name = "fldo1";
1104c0a8475SIcenowy Zheng		};
1114c0a8475SIcenowy Zheng
1124c0a8475SIcenowy Zheng		reg_fldo2: fldo2 {
1134c0a8475SIcenowy Zheng			regulator-name = "fldo2";
1144c0a8475SIcenowy Zheng		};
1154c0a8475SIcenowy Zheng
1164c0a8475SIcenowy Zheng		reg_ldo_io0: ldo-io0 {
1174c0a8475SIcenowy Zheng			regulator-name = "ldo-io0";
1184c0a8475SIcenowy Zheng			status = "disabled";
1194c0a8475SIcenowy Zheng		};
1204c0a8475SIcenowy Zheng
1214c0a8475SIcenowy Zheng		reg_ldo_io1: ldo-io1 {
1224c0a8475SIcenowy Zheng			regulator-name = "ldo-io1";
1234c0a8475SIcenowy Zheng			status = "disabled";
1244c0a8475SIcenowy Zheng		};
1254c0a8475SIcenowy Zheng
1264c0a8475SIcenowy Zheng		reg_rtc_ldo: rtc-ldo {
1274c0a8475SIcenowy Zheng			/* RTC_LDO is a fixed, always-on regulator */
1284c0a8475SIcenowy Zheng			regulator-always-on;
1294c0a8475SIcenowy Zheng			regulator-min-microvolt = <3000000>;
1304c0a8475SIcenowy Zheng			regulator-max-microvolt = <3000000>;
1314c0a8475SIcenowy Zheng			regulator-name = "rtc-ldo";
1324c0a8475SIcenowy Zheng		};
13361e9e15fSJagan Teki
13461e9e15fSJagan Teki		reg_drivevbus: drivevbus {
13561e9e15fSJagan Teki			regulator-name = "drivevbus";
13661e9e15fSJagan Teki			status = "disabled";
13761e9e15fSJagan Teki		};
1384c0a8475SIcenowy Zheng	};
139d7274dc4SChen-Yu Tsai
140*44d52206SMaxime Ripard	usb_power_supply: usb-power {
141d7274dc4SChen-Yu Tsai		compatible = "x-powers,axp803-usb-power-supply",
142d7274dc4SChen-Yu Tsai			     "x-powers,axp813-usb-power-supply";
143d7274dc4SChen-Yu Tsai		status = "disabled";
144d7274dc4SChen-Yu Tsai	};
1454c0a8475SIcenowy Zheng};
146