xref: /freebsd/sys/contrib/device-tree/src/arm/allwinner/sun7i-a20-icnova-a20.dtsi (revision 2f9966ff63d65bd474478888c9088eeae3f9c669)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2// Copyright (C) 2023 In-Circuit GmbH
3
4#include "sun7i-a20.dtsi"
5#include "sunxi-common-regulators.dtsi"
6
7#include <dt-bindings/interrupt-controller/irq.h>
8
9&cpu0 {
10	cpu-supply = <&reg_dcdc2>;
11};
12
13&gmac {
14	pinctrl-names = "default";
15	pinctrl-0 = <&gmac_mii_pins>;
16	phy-handle = <&phy1>;
17	phy-mode = "mii";
18	status = "okay";
19};
20
21&i2c0 {
22	status = "okay";
23
24	axp209: pmic@34 {
25		reg = <0x34>;
26		interrupt-parent = <&nmi_intc>;
27		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
28	};
29};
30
31&gmac_mdio {
32	phy1: ethernet-phy@1 {
33		reg = <1>;
34	};
35};
36
37#include "axp209.dtsi"
38
39&reg_dcdc2 {
40	regulator-always-on;
41	regulator-min-microvolt = <1000000>;
42	regulator-max-microvolt = <1400000>;
43	regulator-name = "vdd-cpu";
44};
45
46&reg_dcdc3 {
47	regulator-always-on;
48	regulator-min-microvolt = <1000000>;
49	regulator-max-microvolt = <1400000>;
50	regulator-name = "vdd-int-dll";
51};
52
53&reg_ldo1 {
54	regulator-name = "vdd-rtc";
55};
56
57&reg_ldo2 {
58	regulator-always-on;
59	regulator-min-microvolt = <3000000>;
60	regulator-max-microvolt = <3000000>;
61	regulator-name = "avcc";
62};
63