Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2016 Endless Computers, Inc.
0004  * Author: Carlo Caione <carlo@endlessm.com>
0005  */
0006 
0007 /dts-v1/;
0008 
0009 #include <dt-bindings/input/input.h>
0010 
0011 #include "meson-gxl-s905d.dtsi"
0012 #include "meson-gx-p23x-q20x.dtsi"
0013 
0014 / {
0015         compatible = "amlogic,p230", "amlogic,s905d", "amlogic,meson-gxl";
0016         model = "Amlogic Meson GXL (S905D) P230 Development Board";
0017 
0018         adc-keys {
0019                 compatible = "adc-keys";
0020                 io-channels = <&saradc 0>;
0021                 io-channel-names = "buttons";
0022                 keyup-threshold-microvolt = <1710000>;
0023 
0024                 button-function {
0025                         label = "Update";
0026                         linux,code = <KEY_VENDOR>;
0027                         press-threshold-microvolt = <10000>;
0028                 };
0029         };
0030 
0031         gpio-keys-polled {
0032                 compatible = "gpio-keys-polled";
0033                 poll-interval = <100>;
0034 
0035                 button {
0036                         label = "power";
0037                         linux,code = <KEY_POWER>;
0038                         gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
0039                 };
0040         };
0041 
0042         hdmi-connector {
0043                 compatible = "hdmi-connector";
0044                 type = "a";
0045 
0046                 port {
0047                         hdmi_connector_in: endpoint {
0048                                 remote-endpoint = <&hdmi_tx_tmds_out>;
0049                         };
0050                 };
0051         };
0052 };
0053 
0054 &cec_AO {
0055         status = "okay";
0056         pinctrl-0 = <&ao_cec_pins>;
0057         pinctrl-names = "default";
0058         hdmi-phandle = <&hdmi_tx>;
0059 };
0060 
0061 /* P230 has exclusive choice between internal or external PHY */
0062 &ethmac {
0063         pinctrl-0 = <&eth_pins>;
0064         pinctrl-names = "default";
0065 
0066         /* Select external PHY by default */
0067         phy-handle = <&external_phy>;
0068 
0069         amlogic,tx-delay-ns = <2>;
0070 
0071         /* External PHY is in RGMII */
0072         phy-mode = "rgmii";
0073 };
0074 
0075 &external_mdio {
0076         external_phy: ethernet-phy@0 {
0077                 /* Realtek RTL8211F (0x001cc916) */
0078                 reg = <0>;
0079                 max-speed = <1000>;
0080 
0081                 /* External PHY reset is shared with internal PHY Led signal */
0082                 reset-assert-us = <10000>;
0083                 reset-deassert-us = <80000>;
0084                 reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;
0085 
0086                 interrupt-parent = <&gpio_intc>;
0087                 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
0088                 eee-broken-1000t;
0089         };
0090 };
0091 
0092 &hdmi_tx {
0093         status = "okay";
0094         pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
0095         pinctrl-names = "default";
0096 };
0097 
0098 &hdmi_tx_tmds_port {
0099         hdmi_tx_tmds_out: endpoint {
0100                 remote-endpoint = <&hdmi_connector_in>;
0101         };
0102 };
0103 
0104 &sd_emmc_a {
0105         brcmf: wifi@1 {
0106                 reg = <1>;
0107                 compatible = "brcm,bcm4329-fmac";
0108         };
0109 };