mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 18:25:04 +07:00
912a3395df
This patch adds the HDMI, CVBS and CEC attributes and nodes to support full display on the SEI510 STB. AO-CEC-B is used by default and AO-CEC-A is disabled. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
186 lines
3.6 KiB
Plaintext
186 lines
3.6 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2019 BayLibre SAS. All rights reserved.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "meson-g12a.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
|
|
|
/ {
|
|
compatible = "seirobotics,sei510", "amlogic,g12a";
|
|
model = "SEI Robotics SEI510";
|
|
|
|
aliases {
|
|
serial0 = &uart_AO;
|
|
};
|
|
|
|
adc_keys {
|
|
compatible = "adc-keys";
|
|
io-channels = <&saradc 0>;
|
|
io-channel-names = "buttons";
|
|
keyup-threshold-microvolt = <1800000>;
|
|
|
|
button-onoff {
|
|
label = "On/Off";
|
|
linux,code = <KEY_POWER>;
|
|
press-threshold-microvolt = <1700000>;
|
|
};
|
|
};
|
|
|
|
ao_5v: regulator-ao_5v {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "AO_5V";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <&dc_in>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
cvbs-connector {
|
|
compatible = "composite-video-connector";
|
|
|
|
port {
|
|
cvbs_connector_in: endpoint {
|
|
remote-endpoint = <&cvbs_vdac_out>;
|
|
};
|
|
};
|
|
};
|
|
|
|
dc_in: regulator-dc_in {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "DC_IN";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
emmc_1v8: regulator-emmc_1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "EMMC_1V8";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&vddao_3v3>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
hdmi-connector {
|
|
compatible = "hdmi-connector";
|
|
type = "a";
|
|
|
|
port {
|
|
hdmi_connector_in: endpoint {
|
|
remote-endpoint = <&hdmi_tx_tmds_out>;
|
|
};
|
|
};
|
|
};
|
|
|
|
memory@0 {
|
|
device_type = "memory";
|
|
reg = <0x0 0x0 0x0 0x40000000>;
|
|
};
|
|
|
|
reserved-memory {
|
|
/* TEE Reserved Memory */
|
|
bl32_reserved: bl32@5000000 {
|
|
reg = <0x0 0x05300000 0x0 0x2000000>;
|
|
no-map;
|
|
};
|
|
};
|
|
|
|
vddao_3v3: regulator-vddao_3v3 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDDAO_3V3";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&dc_in>;
|
|
regulator-always-on;
|
|
};
|
|
|
|
vddao_3v3_t: regultor-vddao_3v3_t {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDDAO_3V3_T";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vddao_3v3>;
|
|
gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>;
|
|
enable-active-high;
|
|
};
|
|
|
|
vddio_ao1v8: regulator-vddio_ao1v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "VDDIO_AO1V8";
|
|
regulator-min-microvolt = <1800000>;
|
|
regulator-max-microvolt = <1800000>;
|
|
vin-supply = <&vddao_3v3>;
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
|
|
&cec_AO {
|
|
pinctrl-0 = <&cec_ao_a_h_pins>;
|
|
pinctrl-names = "default";
|
|
status = "disabled";
|
|
hdmi-phandle = <&hdmi_tx>;
|
|
};
|
|
|
|
&cecb_AO {
|
|
pinctrl-0 = <&cec_ao_b_h_pins>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
hdmi-phandle = <&hdmi_tx>;
|
|
};
|
|
|
|
&cvbs_vdac_port {
|
|
cvbs_vdac_out: endpoint {
|
|
remote-endpoint = <&cvbs_connector_in>;
|
|
};
|
|
};
|
|
|
|
&saradc {
|
|
status = "okay";
|
|
vref-supply = <&vddio_ao1v8>;
|
|
};
|
|
|
|
&uart_A {
|
|
status = "okay";
|
|
pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
|
|
pinctrl-names = "default";
|
|
uart-has-rtscts;
|
|
|
|
bluetooth {
|
|
compatible = "brcm,bcm43438-bt";
|
|
shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
|
|
&hdmi_tx {
|
|
status = "okay";
|
|
pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
&hdmi_tx_tmds_port {
|
|
hdmi_tx_tmds_out: endpoint {
|
|
remote-endpoint = <&hdmi_connector_in>;
|
|
};
|
|
};
|
|
|
|
&uart_AO {
|
|
status = "okay";
|
|
pinctrl-0 = <&uart_ao_a_pins>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
&usb {
|
|
status = "okay";
|
|
dr_mode = "host";
|
|
};
|