xref: /freebsd/sys/contrib/device-tree/src/arm64/allwinner/sun50i-h618-longan-module-3h.dtsi (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
101950c46SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
201950c46SEmmanuel Vadot/*
301950c46SEmmanuel Vadot * Copyright (C) Jisheng Zhang <jszhang@kernel.org>
401950c46SEmmanuel Vadot */
501950c46SEmmanuel Vadot
601950c46SEmmanuel Vadot#include "sun50i-h616.dtsi"
7*7d0873ebSEmmanuel Vadot#include "sun50i-h616-cpu-opp.dtsi"
8*7d0873ebSEmmanuel Vadot
9*7d0873ebSEmmanuel Vadot&cpu0 {
10*7d0873ebSEmmanuel Vadot	cpu-supply = <&reg_dcdc2>;
11*7d0873ebSEmmanuel Vadot};
1201950c46SEmmanuel Vadot
1301950c46SEmmanuel Vadot&mmc2 {
1401950c46SEmmanuel Vadot	pinctrl-names = "default";
1501950c46SEmmanuel Vadot	pinctrl-0 = <&mmc2_pins>;
1601950c46SEmmanuel Vadot	vmmc-supply = <&reg_dldo1>;
1701950c46SEmmanuel Vadot	vqmmc-supply = <&reg_aldo1>;
1801950c46SEmmanuel Vadot	bus-width = <8>;
1901950c46SEmmanuel Vadot	non-removable;
2001950c46SEmmanuel Vadot	cap-mmc-hw-reset;
2101950c46SEmmanuel Vadot	mmc-ddr-1_8v;
2201950c46SEmmanuel Vadot	mmc-hs200-1_8v;
2301950c46SEmmanuel Vadot	status = "okay";
2401950c46SEmmanuel Vadot};
2501950c46SEmmanuel Vadot
2601950c46SEmmanuel Vadot&r_i2c {
2701950c46SEmmanuel Vadot	status = "okay";
2801950c46SEmmanuel Vadot
2901950c46SEmmanuel Vadot	axp313: pmic@36 {
3001950c46SEmmanuel Vadot		compatible = "x-powers,axp313a";
3101950c46SEmmanuel Vadot		reg = <0x36>;
3201950c46SEmmanuel Vadot		#interrupt-cells = <1>;
3301950c46SEmmanuel Vadot		interrupt-controller;
3401950c46SEmmanuel Vadot
3501950c46SEmmanuel Vadot		regulators {
3601950c46SEmmanuel Vadot			reg_aldo1: aldo1 {
3701950c46SEmmanuel Vadot				regulator-always-on;
3801950c46SEmmanuel Vadot				regulator-min-microvolt = <1800000>;
3901950c46SEmmanuel Vadot				regulator-max-microvolt = <1800000>;
4001950c46SEmmanuel Vadot				regulator-name = "vcc-1v8-pll";
4101950c46SEmmanuel Vadot			};
4201950c46SEmmanuel Vadot
4301950c46SEmmanuel Vadot			reg_dldo1: dldo1 {
4401950c46SEmmanuel Vadot				regulator-always-on;
4501950c46SEmmanuel Vadot				regulator-min-microvolt = <3300000>;
4601950c46SEmmanuel Vadot				regulator-max-microvolt = <3300000>;
4701950c46SEmmanuel Vadot				regulator-name = "vcc-3v3-io";
4801950c46SEmmanuel Vadot			};
4901950c46SEmmanuel Vadot
5001950c46SEmmanuel Vadot			reg_dcdc1: dcdc1 {
5101950c46SEmmanuel Vadot				regulator-always-on;
5201950c46SEmmanuel Vadot				regulator-min-microvolt = <810000>;
5301950c46SEmmanuel Vadot				regulator-max-microvolt = <990000>;
5401950c46SEmmanuel Vadot				regulator-name = "vdd-gpu-sys";
5501950c46SEmmanuel Vadot			};
5601950c46SEmmanuel Vadot
5701950c46SEmmanuel Vadot			reg_dcdc2: dcdc2 {
5801950c46SEmmanuel Vadot				regulator-always-on;
5901950c46SEmmanuel Vadot				regulator-min-microvolt = <810000>;
6001950c46SEmmanuel Vadot				regulator-max-microvolt = <1100000>;
6101950c46SEmmanuel Vadot				regulator-name = "vdd-cpu";
6201950c46SEmmanuel Vadot			};
6301950c46SEmmanuel Vadot
6401950c46SEmmanuel Vadot			reg_dcdc3: dcdc3 {
6501950c46SEmmanuel Vadot				regulator-always-on;
6601950c46SEmmanuel Vadot				regulator-min-microvolt = <1100000>;
6701950c46SEmmanuel Vadot				regulator-max-microvolt = <1100000>;
6801950c46SEmmanuel Vadot				regulator-name = "vdd-dram";
6901950c46SEmmanuel Vadot			};
7001950c46SEmmanuel Vadot		};
7101950c46SEmmanuel Vadot	};
7201950c46SEmmanuel Vadot};
7301950c46SEmmanuel Vadot
7401950c46SEmmanuel Vadot&pio {
7501950c46SEmmanuel Vadot	vcc-pc-supply = <&reg_dldo1>;
7601950c46SEmmanuel Vadot	vcc-pf-supply = <&reg_dldo1>;
7701950c46SEmmanuel Vadot	vcc-pg-supply = <&reg_aldo1>;
7801950c46SEmmanuel Vadot	vcc-ph-supply = <&reg_dldo1>;
7901950c46SEmmanuel Vadot	vcc-pi-supply = <&reg_dldo1>;
8001950c46SEmmanuel Vadot};
81