1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2019 BayLibre SAS. All rights reserved. 4 */ 5 6/dts-v1/; 7 8#include "meson-g12a.dtsi" 9#include <dt-bindings/gpio/gpio.h> 10#include <dt-bindings/input/input.h> 11#include <dt-bindings/gpio/meson-g12a-gpio.h> 12 13/ { 14 compatible = "seirobotics,sei510", "amlogic,g12a"; 15 model = "SEI Robotics SEI510"; 16 17 aliases { 18 serial0 = &uart_AO; 19 }; 20 21 adc_keys { 22 compatible = "adc-keys"; 23 io-channels = <&saradc 0>; 24 io-channel-names = "buttons"; 25 keyup-threshold-microvolt = <1800000>; 26 27 button-onoff { 28 label = "On/Off"; 29 linux,code = <KEY_POWER>; 30 press-threshold-microvolt = <1700000>; 31 }; 32 }; 33 34 ao_5v: regulator-ao_5v { 35 compatible = "regulator-fixed"; 36 regulator-name = "AO_5V"; 37 regulator-min-microvolt = <5000000>; 38 regulator-max-microvolt = <5000000>; 39 vin-supply = <&dc_in>; 40 regulator-always-on; 41 }; 42 43 chosen { 44 stdout-path = "serial0:115200n8"; 45 }; 46 47 cvbs-connector { 48 compatible = "composite-video-connector"; 49 50 port { 51 cvbs_connector_in: endpoint { 52 remote-endpoint = <&cvbs_vdac_out>; 53 }; 54 }; 55 }; 56 57 dc_in: regulator-dc_in { 58 compatible = "regulator-fixed"; 59 regulator-name = "DC_IN"; 60 regulator-min-microvolt = <5000000>; 61 regulator-max-microvolt = <5000000>; 62 regulator-always-on; 63 }; 64 65 emmc_1v8: regulator-emmc_1v8 { 66 compatible = "regulator-fixed"; 67 regulator-name = "EMMC_1V8"; 68 regulator-min-microvolt = <1800000>; 69 regulator-max-microvolt = <1800000>; 70 vin-supply = <&vddao_3v3>; 71 regulator-always-on; 72 }; 73 74 hdmi-connector { 75 compatible = "hdmi-connector"; 76 type = "a"; 77 78 port { 79 hdmi_connector_in: endpoint { 80 remote-endpoint = <&hdmi_tx_tmds_out>; 81 }; 82 }; 83 }; 84 85 memory@0 { 86 device_type = "memory"; 87 reg = <0x0 0x0 0x0 0x40000000>; 88 }; 89 90 reserved-memory { 91 /* TEE Reserved Memory */ 92 bl32_reserved: bl32@5000000 { 93 reg = <0x0 0x05300000 0x0 0x2000000>; 94 no-map; 95 }; 96 }; 97 98 vddao_3v3: regulator-vddao_3v3 { 99 compatible = "regulator-fixed"; 100 regulator-name = "VDDAO_3V3"; 101 regulator-min-microvolt = <3300000>; 102 regulator-max-microvolt = <3300000>; 103 vin-supply = <&dc_in>; 104 regulator-always-on; 105 }; 106 107 vddao_3v3_t: regultor-vddao_3v3_t { 108 compatible = "regulator-fixed"; 109 regulator-name = "VDDAO_3V3_T"; 110 regulator-min-microvolt = <3300000>; 111 regulator-max-microvolt = <3300000>; 112 vin-supply = <&vddao_3v3>; 113 gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; 114 enable-active-high; 115 }; 116 117 vddio_ao1v8: regulator-vddio_ao1v8 { 118 compatible = "regulator-fixed"; 119 regulator-name = "VDDIO_AO1V8"; 120 regulator-min-microvolt = <1800000>; 121 regulator-max-microvolt = <1800000>; 122 vin-supply = <&vddao_3v3>; 123 regulator-always-on; 124 }; 125}; 126 127&cec_AO { 128 pinctrl-0 = <&cec_ao_a_h_pins>; 129 pinctrl-names = "default"; 130 status = "disabled"; 131 hdmi-phandle = <&hdmi_tx>; 132}; 133 134&cecb_AO { 135 pinctrl-0 = <&cec_ao_b_h_pins>; 136 pinctrl-names = "default"; 137 status = "okay"; 138 hdmi-phandle = <&hdmi_tx>; 139}; 140 141&cvbs_vdac_port { 142 cvbs_vdac_out: endpoint { 143 remote-endpoint = <&cvbs_connector_in>; 144 }; 145}; 146 147&saradc { 148 status = "okay"; 149 vref-supply = <&vddio_ao1v8>; 150}; 151 152&uart_A { 153 status = "okay"; 154 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; 155 pinctrl-names = "default"; 156 uart-has-rtscts; 157 158 bluetooth { 159 compatible = "brcm,bcm43438-bt"; 160 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; 161 }; 162}; 163 164&hdmi_tx { 165 status = "okay"; 166 pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; 167 pinctrl-names = "default"; 168}; 169 170&hdmi_tx_tmds_port { 171 hdmi_tx_tmds_out: endpoint { 172 remote-endpoint = <&hdmi_connector_in>; 173 }; 174}; 175 176&uart_AO { 177 status = "okay"; 178 pinctrl-0 = <&uart_ao_a_pins>; 179 pinctrl-names = "default"; 180}; 181 182&usb { 183 status = "okay"; 184 dr_mode = "host"; 185}; 186