xref: /linux/arch/arm64/boot/dts/allwinner/sun50i-a133-helperboard.dts (revision 67f8bc848ee31831336bd478e57d2f993551902e)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2025 Arm Ltd.
4 * Copyright (c) 2026 Alexander Sverdlin <alexander.sverdlin@gmail.com>
5 */
6
7/dts-v1/;
8
9#include "sun50i-a133-helperboard-core.dtsi"
10
11#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/input/linux-event-codes.h>
13#include <dt-bindings/leds/common.h>
14
15/{
16	model = "Baijie HelperBoard A133";
17	compatible = "baijie,helperboard-a133",
18		     "baijie,helperboard-a133-core",
19		     "allwinner,sun50i-a100";
20
21	aliases {
22		serial0 = &uart0;
23	};
24
25	chosen {
26		stdout-path = "serial0:115200n8";
27	};
28
29	leds {
30		compatible = "gpio-leds";
31
32		led {
33			function = LED_FUNCTION_INDICATOR;
34			color = <LED_COLOR_ID_GREEN>;
35			gpios = <&pio 7 13 GPIO_ACTIVE_LOW>;	/* PH13 */
36		};
37	};
38
39	reg_vdd5v: vdd5v {
40		/* board wide 5V supply from a 12V->5V regulator */
41		compatible = "regulator-fixed";
42		regulator-name = "vdd-5v";
43		regulator-min-microvolt = <5000000>;
44		regulator-max-microvolt = <5000000>;
45		regulator-always-on;
46	};
47};
48
49&ehci1 {
50	status = "okay";
51};
52
53&emac0 {
54	pinctrl-names = "default";
55	pinctrl-0 = <&rgmii0_pins>;
56	phy-handle = <&rgmii_phy>;
57	phy-mode = "rgmii-id";
58	allwinner,rx-delay-ps = <200>;
59	allwinner,tx-delay-ps = <200>;
60	status = "okay";
61};
62
63&lradc {
64	wakeup-source;
65	status = "okay";
66
67	button-115 {
68		label = "K1";
69		linux,code = <KEY_1>;
70		channel = <0>;
71		voltage = <114607>;
72	};
73
74	button-235 {
75		label = "K2";
76		linux,code = <KEY_2>;
77		channel = <0>;
78		voltage = <234783>;
79	};
80
81	button-360 {
82		label = "K3";
83		linux,code = <KEY_3>;
84		channel = <0>;
85		voltage = <360000>;
86	};
87
88	button-476 {
89		label = "K4";
90		linux,code = <KEY_4>;
91		channel = <0>;
92		voltage = <476471>;
93	};
94
95	button-592 {
96		label = "K5";
97		linux,code = <KEY_5>;
98		channel = <0>;
99		voltage = <591946>;
100	};
101};
102
103&mdio0 {
104	reset-gpios = <&pio 7 11 GPIO_ACTIVE_LOW>;	/* PH11 */
105	reset-delay-us = <10000>;
106	reset-post-delay-us = <150000>;
107
108	rgmii_phy: ethernet-phy@1 {
109		compatible = "ethernet-phy-ieee802.3-c22";
110		reg = <1>;
111	};
112};
113
114&mmc0 {
115	vmmc-supply = <&reg_dcdc1>;
116	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;	/* PF6 */
117	bus-width = <4>;
118	disable-wp;
119	status = "okay";
120};
121
122&ohci1 {
123	status = "okay";
124};
125
126&rgmii0_pins {
127	drive-strength = <30>;
128};
129
130&uart0 {
131	pinctrl-names = "default";
132	pinctrl-0 = <&uart0_pb_pins>;
133	status = "okay";
134};
135
136&usb_otg {
137	/*
138	 * Connected to a downstream port of an onboard hub, therefore only
139	 * "peripheral" mode will work here.
140	 */
141	dr_mode = "peripheral";
142	status = "okay";
143};
144
145&usbphy {
146	usb1_vbus-supply = <&reg_vdd5v>;
147	status = "okay";
148};
149