xref: /freebsd/sys/contrib/device-tree/src/arm64/amlogic/meson-gxm-minix-neo-u9h.dts (revision f5f40dd63bc7acbb5312b26ac1ea1103c12352a6)
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		poll-interval = <100>;
45
46		button {
47			label = "power";
48			linux,code = <KEY_POWER>;
49			gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
50		};
51	};
52};
53
54&ethmac {
55	pinctrl-0 = <&eth_pins>;
56	pinctrl-names = "default";
57	phy-handle = <&external_phy>;
58	amlogic,tx-delay-ns = <2>;
59	phy-mode = "rgmii";
60};
61
62&external_mdio {
63	external_phy: ethernet-phy@0 {
64		/* Realtek RTL8211F (0x001cc916) */
65		reg = <0>;
66		max-speed = <1000>;
67
68		reset-assert-us = <10000>;
69		reset-deassert-us = <80000>;
70		reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
71
72		interrupt-parent = <&gpio_intc>;
73		/* MAC_INTR on GPIOZ_15 */
74		interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
75	};
76};
77
78&ir {
79	linux,rc-map-name = "rc-minix-neo";
80};
81
82&i2c_B {
83	status = "okay";
84	pinctrl-0 = <&i2c_b_pins>;
85	pinctrl-names = "default";
86
87	rtc: rtc@51 {
88		status = "okay";
89		compatible = "haoyu,hym8563";
90		reg = <0x51>;
91		#clock-cells = <0>;
92		clock-output-names = "xin32k";
93		wakeup-source;
94	};
95};
96
97&sd_emmc_a {
98	brcmf: wifi@1 {
99		reg = <1>;
100		compatible = "brcm,bcm4329-fmac";
101	};
102};
103
104&uart_A {
105	status = "okay";
106	pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
107	pinctrl-names = "default";
108	uart-has-rtscts;
109
110	bluetooth {
111		compatible = "brcm,bcm43438-bt";
112		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
113		max-speed = <2000000>;
114		clocks = <&wifi32k>;
115		clock-names = "lpo";
116	};
117};
118