Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: meson: add initial device-tree for Minix NEO U9-H

Minix NEO U9-H is based on the Amlogic Q200 reference board with an
S912-H chip and the following specs:

- 2GB DDR3 RAM
- 16GB eMMC
- 10/100/1000 Base-T Ethernet
- AP6356S Wireless (802.11 a/b/g/n/ac, BT 4.1)
- RTC chip
- HDMI 2.1 video
- S/PDIF optical output
- ES8323 audio codec
- Analogue headphone output
- 3x USB 2.0 ports (1x OTG)
- IR receiver
- 1x Power LED (white)
- 1x Power button (rear)
- 1x Update/Reset button (underside)
- 1x micro SD card slot

Tested-by: Wes Bradley <komplex@live.ie>
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20210201210508.1528-2-christianshewitt@gmail.com

authored by

Christian Hewitt and committed by
Kevin Hilman
0e9fed92 15c4dd13

+121
+1
arch/arm64/boot/dts/amlogic/Makefile
··· 38 38 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-tx3-mini.dtb 39 39 dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-libretech-pc.dtb 40 40 dtb-$(CONFIG_ARCH_MESON) += meson-gxm-khadas-vim2.dtb 41 + dtb-$(CONFIG_ARCH_MESON) += meson-gxm-minix-neo-u9h.dtb 41 42 dtb-$(CONFIG_ARCH_MESON) += meson-gxm-nexbox-a1.dtb 42 43 dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q200.dtb 43 44 dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q201.dtb
+120
arch/arm64/boot/dts/amlogic/meson-gxm-minix-neo-u9h.dts
··· 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 + 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 + };