1114abfe1SNeil Armstrong// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2da47515eSNeil Armstrong/* 3da47515eSNeil Armstrong * Copyright (c) 2016 Endless Computers, Inc. 4da47515eSNeil Armstrong * Author: Carlo Caione <carlo@endlessm.com> 5da47515eSNeil Armstrong */ 6da47515eSNeil Armstrong 7da47515eSNeil Armstrong/dts-v1/; 8da47515eSNeil Armstrong 982838e6fSNeil Armstrong#include <dt-bindings/input/input.h> 1082838e6fSNeil Armstrong 11bb51b535SNeil Armstrong#include "meson-gxl-s905d.dtsi" 12bb51b535SNeil Armstrong#include "meson-gx-p23x-q20x.dtsi" 13da47515eSNeil Armstrong 14da47515eSNeil Armstrong/ { 15da47515eSNeil Armstrong compatible = "amlogic,p230", "amlogic,s905d", "amlogic,meson-gxl"; 16da47515eSNeil Armstrong model = "Amlogic Meson GXL (S905D) P230 Development Board"; 1782838e6fSNeil Armstrong 1882838e6fSNeil Armstrong adc-keys { 1982838e6fSNeil Armstrong compatible = "adc-keys"; 2082838e6fSNeil Armstrong io-channels = <&saradc 0>; 2182838e6fSNeil Armstrong io-channel-names = "buttons"; 2282838e6fSNeil Armstrong keyup-threshold-microvolt = <1710000>; 2382838e6fSNeil Armstrong 2482838e6fSNeil Armstrong button-function { 2582838e6fSNeil Armstrong label = "Update"; 2682838e6fSNeil Armstrong linux,code = <KEY_VENDOR>; 2782838e6fSNeil Armstrong press-threshold-microvolt = <10000>; 2882838e6fSNeil Armstrong }; 2982838e6fSNeil Armstrong }; 3082838e6fSNeil Armstrong 3182838e6fSNeil Armstrong gpio-keys-polled { 3282838e6fSNeil Armstrong compatible = "gpio-keys-polled"; 3382838e6fSNeil Armstrong #address-cells = <1>; 3482838e6fSNeil Armstrong #size-cells = <0>; 3582838e6fSNeil Armstrong poll-interval = <100>; 3682838e6fSNeil Armstrong 3782838e6fSNeil Armstrong button@0 { 3882838e6fSNeil Armstrong label = "power"; 3982838e6fSNeil Armstrong linux,code = <KEY_POWER>; 4082838e6fSNeil Armstrong gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>; 4182838e6fSNeil Armstrong }; 4282838e6fSNeil Armstrong }; 4382838e6fSNeil Armstrong 445838a4d0SNeil Armstrong hdmi-connector { 455838a4d0SNeil Armstrong compatible = "hdmi-connector"; 465838a4d0SNeil Armstrong type = "a"; 475838a4d0SNeil Armstrong 485838a4d0SNeil Armstrong port { 495838a4d0SNeil Armstrong hdmi_connector_in: endpoint { 505838a4d0SNeil Armstrong remote-endpoint = <&hdmi_tx_tmds_out>; 515838a4d0SNeil Armstrong }; 525838a4d0SNeil Armstrong }; 535838a4d0SNeil Armstrong }; 54da47515eSNeil Armstrong}; 5573a5d99fSNeil Armstrong 56b16c71c9SNeil Armstrong&cec_AO { 57b16c71c9SNeil Armstrong status = "okay"; 58b16c71c9SNeil Armstrong pinctrl-0 = <&ao_cec_pins>; 59b16c71c9SNeil Armstrong pinctrl-names = "default"; 60b16c71c9SNeil Armstrong hdmi-phandle = <&hdmi_tx>; 61b16c71c9SNeil Armstrong}; 62b16c71c9SNeil Armstrong 6373a5d99fSNeil Armstrong/* P230 has exclusive choice between internal or external PHY */ 6473a5d99fSNeil Armstrongðmac { 6573a5d99fSNeil Armstrong pinctrl-0 = <ð_pins>; 6673a5d99fSNeil Armstrong pinctrl-names = "default"; 6773a5d99fSNeil Armstrong 6873a5d99fSNeil Armstrong /* Select external PHY by default */ 6973a5d99fSNeil Armstrong phy-handle = <&external_phy>; 7073a5d99fSNeil Armstrong 71093d23dbSMartin Blumenstingl amlogic,tx-delay-ns = <2>; 72093d23dbSMartin Blumenstingl 7373a5d99fSNeil Armstrong /* External PHY reset is shared with internal PHY Led signals */ 7473a5d99fSNeil Armstrong snps,reset-gpio = <&gpio GPIOZ_14 0>; 7573a5d99fSNeil Armstrong snps,reset-delays-us = <0 10000 1000000>; 7673a5d99fSNeil Armstrong snps,reset-active-low; 7773a5d99fSNeil Armstrong 7873a5d99fSNeil Armstrong /* External PHY is in RGMII */ 7973a5d99fSNeil Armstrong phy-mode = "rgmii"; 8073a5d99fSNeil Armstrong}; 8173a5d99fSNeil Armstrong 8273a5d99fSNeil Armstrong&external_mdio { 8373a5d99fSNeil Armstrong external_phy: ethernet-phy@0 { 8473a5d99fSNeil Armstrong compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22"; 8573a5d99fSNeil Armstrong reg = <0>; 8673a5d99fSNeil Armstrong max-speed = <1000>; 87b94d22d9SJerome Brunet interrupt-parent = <&gpio_intc>; 88b94d22d9SJerome Brunet interrupts = <29 IRQ_TYPE_LEVEL_LOW>; 8973a5d99fSNeil Armstrong }; 9073a5d99fSNeil Armstrong}; 9182838e6fSNeil Armstrong 925838a4d0SNeil Armstrong&hdmi_tx { 935838a4d0SNeil Armstrong status = "okay"; 945838a4d0SNeil Armstrong pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; 955838a4d0SNeil Armstrong pinctrl-names = "default"; 965838a4d0SNeil Armstrong}; 975838a4d0SNeil Armstrong 985838a4d0SNeil Armstrong&hdmi_tx_tmds_port { 995838a4d0SNeil Armstrong hdmi_tx_tmds_out: endpoint { 1005838a4d0SNeil Armstrong remote-endpoint = <&hdmi_connector_in>; 1015838a4d0SNeil Armstrong }; 1025838a4d0SNeil Armstrong}; 1031b2b1e75SMartin Blumenstingl 1041b2b1e75SMartin Blumenstingl&sd_emmc_a { 1051b2b1e75SMartin Blumenstingl brcmf: wifi@1 { 1061b2b1e75SMartin Blumenstingl reg = <1>; 1071b2b1e75SMartin Blumenstingl compatible = "brcm,bcm4329-fmac"; 1081b2b1e75SMartin Blumenstingl }; 1091b2b1e75SMartin Blumenstingl}; 110