Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 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 = "azw,gt1-ultimate", "amlogic,s912", "amlogic,meson-gxm"; |
| 15 | model = "Beelink GT1 Ultimate"; |
| 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 | |
| 43 | ðmac { |
| 44 | pinctrl-0 = <ð_pins>; |
| 45 | pinctrl-names = "default"; |
| 46 | phy-handle = <&external_phy>; |
| 47 | amlogic,tx-delay-ns = <2>; |
| 48 | phy-mode = "rgmii"; |
| 49 | }; |
| 50 | |
| 51 | &external_mdio { |
| 52 | external_phy: ethernet-phy@0 { |
| 53 | /* Realtek RTL8211F (0x001cc916) */ |
| 54 | reg = <0>; |
| 55 | max-speed = <1000>; |
| 56 | |
| 57 | reset-assert-us = <10000>; |
| 58 | reset-deassert-us = <80000>; |
| 59 | reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>; |
| 60 | |
| 61 | interrupt-parent = <&gpio_intc>; |
| 62 | /* MAC_INTR on GPIOZ_15 */ |
| 63 | interrupts = <25 IRQ_TYPE_LEVEL_LOW>; |
| 64 | }; |
| 65 | }; |
| 66 | |
| 67 | &ir { |
| 68 | linux,rc-map-name = "rc-beelink-gs1"; |
| 69 | }; |
| 70 | |
| 71 | &sd_emmc_a { |
| 72 | brcmf: wifi@1 { |
| 73 | reg = <1>; |
| 74 | compatible = "brcm,bcm4329-fmac"; |
| 75 | }; |
| 76 | }; |
| 77 | |
| 78 | &uart_A { |
| 79 | status = "okay"; |
| 80 | pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; |
| 81 | pinctrl-names = "default"; |
| 82 | uart-has-rtscts; |
| 83 | |
| 84 | bluetooth { |
| 85 | compatible = "brcm,bcm43438-bt"; |
| 86 | shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; |
| 87 | max-speed = <2000000>; |
| 88 | clocks = <&wifi32k>; |
| 89 | clock-names = "lpo"; |
| 90 | }; |
| 91 | }; |