xref: /freebsd/sys/contrib/device-tree/src/arm64/amlogic/meson-gxm-minix-neo-u9h.dts (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) Christian Hewitt <christianshewitt@gmail.com>
4 */
5
6/dts-v1/;
7
8#include "meson-gxm.dtsi"
9#include "meson-gx-p23x-q20x.dtsi"
10#include <dt-bindings/input/input.h>
11#include <dt-bindings/leds/common.h>
12
13/ {
14	compatible = "minix,neo-u9h", "amlogic,s912", "amlogic,meson-gxm";
15	model = "Minix Neo U9-H";
16
17	leds {
18		compatible = "gpio-leds";
19
20		led-white {
21			color = <LED_COLOR_ID_WHITE>;
22			function = LED_FUNCTION_POWER;
23			gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
24			default-state = "on";
25			panic-indicator;
26		};
27	};
28
29	adc-keys {
30		compatible = "adc-keys";
31		io-channels = <&saradc 0>;
32		io-channel-names = "buttons";
33		keyup-threshold-microvolt = <1710000>;
34
35		button-function {
36			label = "update";
37			linux,code = <KEY_VENDOR>;
38			press-threshold-microvolt = <10000>;
39		};
40	};
41
42	gpio-keys-polled {
43		compatible = "gpio-keys-polled";
44		#address-cells = <1>;
45		#size-cells = <0>;
46		poll-interval = <100>;
47
48		button@0 {
49			label = "power";
50			linux,code = <KEY_POWER>;
51			gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
52		};
53	};
54};
55
56&ethmac {
57	pinctrl-0 = <&eth_pins>;
58	pinctrl-names = "default";
59	phy-handle = <&external_phy>;
60	amlogic,tx-delay-ns = <2>;
61	phy-mode = "rgmii";
62};
63
64&external_mdio {
65	external_phy: ethernet-phy@0 {
66		/* Realtek RTL8211F (0x001cc916) */
67		reg = <0>;
68		max-speed = <1000>;
69
70		reset-assert-us = <10000>;
71		reset-deassert-us = <80000>;
72		reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
73
74		interrupt-parent = <&gpio_intc>;
75		/* MAC_INTR on GPIOZ_15 */
76		interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
77	};
78};
79
80&ir {
81	linux,rc-map-name = "rc-minix-neo";
82};
83
84&i2c_B {
85	status = "okay";
86	pinctrl-0 = <&i2c_b_pins>;
87	pinctrl-names = "default";
88
89	rtc: rtc@51 {
90		status = "okay";
91		compatible = "haoyu,hym8563";
92		reg = <0x51>;
93		#clock-cells = <0>;
94		clock-frequency = <32768>;
95		clock-output-names = "xin32k";
96		wakeup-source;
97	};
98};
99
100&sd_emmc_a {
101	brcmf: wifi@1 {
102		reg = <1>;
103		compatible = "brcm,bcm4329-fmac";
104	};
105};
106
107&uart_A {
108	status = "okay";
109	pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
110	pinctrl-names = "default";
111	uart-has-rtscts;
112
113	bluetooth {
114		compatible = "brcm,bcm43438-bt";
115		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
116		max-speed = <2000000>;
117		clocks = <&wifi32k>;
118		clock-names = "lpo";
119	};
120};
121