Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) Christian Hewitt <christianshewitt@gmail.com>
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "meson-gxm.dtsi"
0009 #include "meson-gx-p23x-q20x.dtsi"
0010 #include <dt-bindings/input/input.h>
0011 #include <dt-bindings/leds/common.h>
0012 
0013 / {
0014         compatible = "minix,neo-u9h", "amlogic,s912", "amlogic,meson-gxm";
0015         model = "Minix Neo U9-H";
0016 
0017         leds {
0018                 compatible = "gpio-leds";
0019 
0020                 led-white {
0021                         color = <LED_COLOR_ID_WHITE>;
0022                         function = LED_FUNCTION_POWER;
0023                         gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
0024                         default-state = "on";
0025                         panic-indicator;
0026                 };
0027         };
0028 
0029         adc-keys {
0030                 compatible = "adc-keys";
0031                 io-channels = <&saradc 0>;
0032                 io-channel-names = "buttons";
0033                 keyup-threshold-microvolt = <1710000>;
0034 
0035                 button-function {
0036                         label = "update";
0037                         linux,code = <KEY_VENDOR>;
0038                         press-threshold-microvolt = <10000>;
0039                 };
0040         };
0041 
0042         gpio-keys-polled {
0043                 compatible = "gpio-keys-polled";
0044                 poll-interval = <100>;
0045 
0046                 button {
0047                         label = "power";
0048                         linux,code = <KEY_POWER>;
0049                         gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
0050                 };
0051         };
0052 };
0053 
0054 &ethmac {
0055         pinctrl-0 = <&eth_pins>;
0056         pinctrl-names = "default";
0057         phy-handle = <&external_phy>;
0058         amlogic,tx-delay-ns = <2>;
0059         phy-mode = "rgmii";
0060 };
0061 
0062 &external_mdio {
0063         external_phy: ethernet-phy@0 {
0064                 /* Realtek RTL8211F (0x001cc916) */
0065                 reg = <0>;
0066                 max-speed = <1000>;
0067 
0068                 reset-assert-us = <10000>;
0069                 reset-deassert-us = <80000>;
0070                 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
0071 
0072                 interrupt-parent = <&gpio_intc>;
0073                 /* MAC_INTR on GPIOZ_15 */
0074                 interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
0075         };
0076 };
0077 
0078 &ir {
0079         linux,rc-map-name = "rc-minix-neo";
0080 };
0081 
0082 &i2c_B {
0083         status = "okay";
0084         pinctrl-0 = <&i2c_b_pins>;
0085         pinctrl-names = "default";
0086 
0087         rtc: rtc@51 {
0088                 status = "okay";
0089                 compatible = "haoyu,hym8563";
0090                 reg = <0x51>;
0091                 #clock-cells = <0>;
0092                 clock-frequency = <32768>;
0093                 clock-output-names = "xin32k";
0094                 wakeup-source;
0095         };
0096 };
0097 
0098 &sd_emmc_a {
0099         brcmf: wifi@1 {
0100                 reg = <1>;
0101                 compatible = "brcm,bcm4329-fmac";
0102         };
0103 };
0104 
0105 &uart_A {
0106         status = "okay";
0107         pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
0108         pinctrl-names = "default";
0109         uart-has-rtscts;
0110 
0111         bluetooth {
0112                 compatible = "brcm,bcm43438-bt";
0113                 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
0114                 max-speed = <2000000>;
0115                 clocks = <&wifi32k>;
0116                 clock-names = "lpo";
0117         };
0118 };