12eb4d8dcSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 22eb4d8dcSEmmanuel Vadot/* 32eb4d8dcSEmmanuel Vadot * Copyright (c) Christian Hewitt <christianshewitt@gmail.com> 42eb4d8dcSEmmanuel Vadot */ 52eb4d8dcSEmmanuel Vadot 62eb4d8dcSEmmanuel Vadot/dts-v1/; 72eb4d8dcSEmmanuel Vadot 82eb4d8dcSEmmanuel Vadot#include "meson-gxm.dtsi" 92eb4d8dcSEmmanuel Vadot#include "meson-gx-p23x-q20x.dtsi" 102eb4d8dcSEmmanuel Vadot#include <dt-bindings/input/input.h> 112eb4d8dcSEmmanuel Vadot#include <dt-bindings/leds/common.h> 122eb4d8dcSEmmanuel Vadot 132eb4d8dcSEmmanuel Vadot/ { 142eb4d8dcSEmmanuel Vadot compatible = "minix,neo-u9h", "amlogic,s912", "amlogic,meson-gxm"; 152eb4d8dcSEmmanuel Vadot model = "Minix Neo U9-H"; 162eb4d8dcSEmmanuel Vadot 172eb4d8dcSEmmanuel Vadot leds { 182eb4d8dcSEmmanuel Vadot compatible = "gpio-leds"; 192eb4d8dcSEmmanuel Vadot 202eb4d8dcSEmmanuel Vadot led-white { 212eb4d8dcSEmmanuel Vadot color = <LED_COLOR_ID_WHITE>; 222eb4d8dcSEmmanuel Vadot function = LED_FUNCTION_POWER; 232eb4d8dcSEmmanuel Vadot gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>; 242eb4d8dcSEmmanuel Vadot default-state = "on"; 252eb4d8dcSEmmanuel Vadot panic-indicator; 262eb4d8dcSEmmanuel Vadot }; 272eb4d8dcSEmmanuel Vadot }; 282eb4d8dcSEmmanuel Vadot 292eb4d8dcSEmmanuel Vadot adc-keys { 302eb4d8dcSEmmanuel Vadot compatible = "adc-keys"; 312eb4d8dcSEmmanuel Vadot io-channels = <&saradc 0>; 322eb4d8dcSEmmanuel Vadot io-channel-names = "buttons"; 332eb4d8dcSEmmanuel Vadot keyup-threshold-microvolt = <1710000>; 342eb4d8dcSEmmanuel Vadot 352eb4d8dcSEmmanuel Vadot button-function { 362eb4d8dcSEmmanuel Vadot label = "update"; 372eb4d8dcSEmmanuel Vadot linux,code = <KEY_VENDOR>; 382eb4d8dcSEmmanuel Vadot press-threshold-microvolt = <10000>; 392eb4d8dcSEmmanuel Vadot }; 402eb4d8dcSEmmanuel Vadot }; 412eb4d8dcSEmmanuel Vadot 422eb4d8dcSEmmanuel Vadot gpio-keys-polled { 432eb4d8dcSEmmanuel Vadot compatible = "gpio-keys-polled"; 442eb4d8dcSEmmanuel Vadot poll-interval = <100>; 452eb4d8dcSEmmanuel Vadot 46*b97ee269SEmmanuel Vadot button { 472eb4d8dcSEmmanuel Vadot label = "power"; 482eb4d8dcSEmmanuel Vadot linux,code = <KEY_POWER>; 492eb4d8dcSEmmanuel Vadot gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>; 502eb4d8dcSEmmanuel Vadot }; 512eb4d8dcSEmmanuel Vadot }; 522eb4d8dcSEmmanuel Vadot}; 532eb4d8dcSEmmanuel Vadot 542eb4d8dcSEmmanuel Vadotðmac { 552eb4d8dcSEmmanuel Vadot pinctrl-0 = <ð_pins>; 562eb4d8dcSEmmanuel Vadot pinctrl-names = "default"; 572eb4d8dcSEmmanuel Vadot phy-handle = <&external_phy>; 582eb4d8dcSEmmanuel Vadot amlogic,tx-delay-ns = <2>; 592eb4d8dcSEmmanuel Vadot phy-mode = "rgmii"; 602eb4d8dcSEmmanuel Vadot}; 612eb4d8dcSEmmanuel Vadot 622eb4d8dcSEmmanuel Vadot&external_mdio { 632eb4d8dcSEmmanuel Vadot external_phy: ethernet-phy@0 { 642eb4d8dcSEmmanuel Vadot /* Realtek RTL8211F (0x001cc916) */ 652eb4d8dcSEmmanuel Vadot reg = <0>; 662eb4d8dcSEmmanuel Vadot max-speed = <1000>; 672eb4d8dcSEmmanuel Vadot 682eb4d8dcSEmmanuel Vadot reset-assert-us = <10000>; 692eb4d8dcSEmmanuel Vadot reset-deassert-us = <80000>; 702eb4d8dcSEmmanuel Vadot reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; 712eb4d8dcSEmmanuel Vadot 722eb4d8dcSEmmanuel Vadot interrupt-parent = <&gpio_intc>; 732eb4d8dcSEmmanuel Vadot /* MAC_INTR on GPIOZ_15 */ 742eb4d8dcSEmmanuel Vadot interrupts = <25 IRQ_TYPE_LEVEL_LOW>; 752eb4d8dcSEmmanuel Vadot }; 762eb4d8dcSEmmanuel Vadot}; 772eb4d8dcSEmmanuel Vadot 782eb4d8dcSEmmanuel Vadot&ir { 792eb4d8dcSEmmanuel Vadot linux,rc-map-name = "rc-minix-neo"; 802eb4d8dcSEmmanuel Vadot}; 812eb4d8dcSEmmanuel Vadot 822eb4d8dcSEmmanuel Vadot&i2c_B { 832eb4d8dcSEmmanuel Vadot status = "okay"; 842eb4d8dcSEmmanuel Vadot pinctrl-0 = <&i2c_b_pins>; 852eb4d8dcSEmmanuel Vadot pinctrl-names = "default"; 862eb4d8dcSEmmanuel Vadot 872eb4d8dcSEmmanuel Vadot rtc: rtc@51 { 882eb4d8dcSEmmanuel Vadot status = "okay"; 892eb4d8dcSEmmanuel Vadot compatible = "haoyu,hym8563"; 902eb4d8dcSEmmanuel Vadot reg = <0x51>; 912eb4d8dcSEmmanuel Vadot #clock-cells = <0>; 922eb4d8dcSEmmanuel Vadot clock-output-names = "xin32k"; 932eb4d8dcSEmmanuel Vadot wakeup-source; 942eb4d8dcSEmmanuel Vadot }; 952eb4d8dcSEmmanuel Vadot}; 962eb4d8dcSEmmanuel Vadot 972eb4d8dcSEmmanuel Vadot&sd_emmc_a { 982eb4d8dcSEmmanuel Vadot brcmf: wifi@1 { 992eb4d8dcSEmmanuel Vadot reg = <1>; 1002eb4d8dcSEmmanuel Vadot compatible = "brcm,bcm4329-fmac"; 1012eb4d8dcSEmmanuel Vadot }; 1022eb4d8dcSEmmanuel Vadot}; 1032eb4d8dcSEmmanuel Vadot 1042eb4d8dcSEmmanuel Vadot&uart_A { 1052eb4d8dcSEmmanuel Vadot status = "okay"; 1062eb4d8dcSEmmanuel Vadot pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; 1072eb4d8dcSEmmanuel Vadot pinctrl-names = "default"; 1082eb4d8dcSEmmanuel Vadot uart-has-rtscts; 1092eb4d8dcSEmmanuel Vadot 1102eb4d8dcSEmmanuel Vadot bluetooth { 1112eb4d8dcSEmmanuel Vadot compatible = "brcm,bcm43438-bt"; 1122eb4d8dcSEmmanuel Vadot shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; 1132eb4d8dcSEmmanuel Vadot max-speed = <2000000>; 1142eb4d8dcSEmmanuel Vadot clocks = <&wifi32k>; 1152eb4d8dcSEmmanuel Vadot clock-names = "lpo"; 1162eb4d8dcSEmmanuel Vadot }; 1172eb4d8dcSEmmanuel Vadot}; 118