x86/oprofile: Fix bogus GCC-8 warning in nmi_setup()
[cris-mirror.git] / arch / arm64 / boot / dts / amlogic / meson-gxl-s905x-libretech-cc.dts
blob9671f1e3c74a991b98b167f83062d63db4c1ad9d
1 /*
2  * Copyright (c) 2017 BayLibre, SAS.
3  * Author: Neil Armstrong <narmstrong@baylibre.com>
4  * Author: Jerome Brunet <jbrunet@baylibre.com>
5  *
6  * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7  */
9 /dts-v1/;
11 #include <dt-bindings/input/input.h>
13 #include "meson-gxl-s905x.dtsi"
15 / {
16         compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl";
17         model = "Libre Technology CC";
19         aliases {
20                 serial0 = &uart_AO;
21         };
23         chosen {
24                 stdout-path = "serial0:115200n8";
25         };
27         cvbs-connector {
28                 compatible = "composite-video-connector";
30                 port {
31                         cvbs_connector_in: endpoint {
32                                 remote-endpoint = <&cvbs_vdac_out>;
33                         };
34                 };
35         };
37         emmc_pwrseq: emmc-pwrseq {
38                 compatible = "mmc-pwrseq-emmc";
39                 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
40         };
42         hdmi-connector {
43                 compatible = "hdmi-connector";
44                 type = "a";
46                 port {
47                         hdmi_connector_in: endpoint {
48                                 remote-endpoint = <&hdmi_tx_tmds_out>;
49                         };
50                 };
51         };
53         leds {
54                 compatible = "gpio-leds";
56                 system {
57                         label = "librecomputer:system-status";
58                         gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
59                         default-state = "on";
60                         panic-indicator;
61                 };
63                 blue {
64                         label = "librecomputer:blue";
65                         gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
66                         linux,default-trigger = "heartbeat";
67                 };
68         };
70         memory@0 {
71                 device_type = "memory";
72                 reg = <0x0 0x0 0x0 0x80000000>;
73         };
75         hdmi_5v: regulator-hdmi-5v {
76                 compatible = "regulator-fixed";
78                 regulator-name = "HDMI_5V";
79                 regulator-min-microvolt = <5000000>;
80                 regulator-max-microvolt = <5000000>;
82                 gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>;
83                 enable-active-high;
84                 regulator-always-on;
85         };
87         vcc_3v3: regulator-vcc_3v3 {
88                 compatible = "regulator-fixed";
89                 regulator-name = "VCC_3V3";
90                 regulator-min-microvolt = <3300000>;
91                 regulator-max-microvolt = <3300000>;
92         };
94         vcc_card: regulator-vcc-card {
95                 compatible = "regulator-gpio";
97                 regulator-name = "VCC_CARD";
98                 regulator-min-microvolt = <1800000>;
99                 regulator-max-microvolt = <3300000>;
101                 gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
102                 gpios-states = <0>;
104                 states = <3300000 0>,
105                          <1800000 1>;
107                 regulator-settling-time-up-us = <200>;
108                 regulator-settling-time-down-us = <50000>;
109         };
111         vddio_ao18: regulator-vddio_ao18 {
112                 compatible = "regulator-fixed";
113                 regulator-name = "VDDIO_AO18";
114                 regulator-min-microvolt = <1800000>;
115                 regulator-max-microvolt = <1800000>;
116         };
118         vddio_boot: regulator-vddio_boot {
119                 compatible = "regulator-fixed";
120                 regulator-name = "VDDIO_BOOT";
121                 regulator-min-microvolt = <3300000>;
122                 regulator-max-microvolt = <3300000>;
123         };
126 &cec_AO {
127         status = "okay";
128         pinctrl-0 = <&ao_cec_pins>;
129         pinctrl-names = "default";
130         hdmi-phandle = <&hdmi_tx>;
133 &cvbs_vdac_port {
134         cvbs_vdac_out: endpoint {
135                 remote-endpoint = <&cvbs_connector_in>;
136         };
139 &ethmac {
140         status = "okay";
143 &internal_phy {
144         pinctrl-0 = <&eth_link_led_pins>, <&eth_act_led_pins>;
145         pinctrl-names = "default";
148 &ir {
149         status = "okay";
150         pinctrl-0 = <&remote_input_ao_pins>;
151         pinctrl-names = "default";
154 &hdmi_tx {
155         status = "okay";
156         pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
157         pinctrl-names = "default";
160 &hdmi_tx_tmds_port {
161         hdmi_tx_tmds_out: endpoint {
162                 remote-endpoint = <&hdmi_connector_in>;
163         };
166 &pinctrl_aobus {
167         gpio-line-names = "UART TX",
168                           "UART RX",
169                           "Blue LED",
170                           "SDCard Voltage Switch",
171                           "7J1 Header Pin5",
172                           "7J1 Header Pin3",
173                           "7J1 Header Pin12",
174                           "IR In",
175                           "9J3 Switch HDMI CEC/7J1 Header Pin11",
176                           "7J1 Header Pin13",
177                           /* GPIO_TEST_N */
178                           "7J1 Header Pin15";
181 &pinctrl_periphs {
182         gpio-line-names = /* Bank GPIOZ */
183                           "", "", "", "", "", "", "",
184                           "", "", "", "", "", "", "",
185                           "Eth Link LED", "Eth Activity LED",
186                           /* Bank GPIOH */
187                           "HDMI HPD", "HDMI SDA", "HDMI SCL",
188                           "HDMI_5V_EN", "9J1 Header Pin2",
189                           "Analog Audio Mute",
190                           "2J3 Header Pin6",
191                           "2J3 Header Pin5",
192                           "2J3 Header Pin4",
193                           "2J3 Header Pin3",
194                           /* Bank BOOT */
195                           "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3",
196                           "eMMC D4", "eMMC D5", "eMMC D6", "eMMC D7",
197                           "eMMC Clk", "eMMC Reset", "eMMC CMD",
198                           "ALT BOOT MODE", "", "", "", "eMMC Data Strobe",
199                           /* Bank CARD */
200                           "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
201                           "SDCard D3", "SDCard D2", "SDCard Det",
202                           /* Bank GPIODV */
203                           "", "", "", "", "", "", "", "", "", "", "", "",
204                           "", "", "", "", "", "", "", "", "", "", "", "",
205                           "Green LED", "VCCK Enable",
206                           "7J1 Header Pin27", "7J1 Header Pin28",
207                           "VCCK Regulator", "VDDEE Regulator",
208                           /* Bank GPIOX */
209                           "7J1 Header Pin22", "7J1 Header Pin26",
210                           "7J1 Header Pin36", "7J1 Header Pin38",
211                           "7J1 Header Pin40", "7J1 Header Pin37",
212                           "7J1 Header Pin33", "7J1 Header Pin35",
213                           "7J1 Header Pin19", "7J1 Header Pin21",
214                           "7J1 Header Pin24", "7J1 Header Pin23",
215                           "7J1 Header Pin8", "7J1 Header Pin10",
216                           "7J1 Header Pin16", "7J1 Header Pin18",
217                           "7J1 Header Pin32", "7J1 Header Pin29",
218                           "7J1 Header Pin31",
219                           /* Bank GPIOCLK */
220                           "7J1 Header Pin7", "";
223 &saradc {
224         status = "okay";
225         vref-supply = <&vddio_ao18>;
228 /* SD card */
229 &sd_emmc_b {
230         status = "okay";
231         pinctrl-0 = <&sdcard_pins>;
232         pinctrl-1 = <&sdcard_clk_gate_pins>;
233         pinctrl-names = "default", "clk-gate";
235         bus-width = <4>;
236         cap-sd-highspeed;
237         sd-uhs-sdr12;
238         sd-uhs-sdr25;
239         sd-uhs-sdr50;
240         max-frequency = <100000000>;
241         disable-wp;
243         cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
244         cd-inverted;
246         vmmc-supply = <&vcc_3v3>;
247         vqmmc-supply = <&vcc_card>;
250 /* eMMC */
251 &sd_emmc_c {
252         status = "okay";
253         pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
254         pinctrl-1 = <&emmc_clk_gate_pins>;
255         pinctrl-names = "default", "clk-gate";
257         bus-width = <8>;
258         cap-mmc-highspeed;
259         mmc-ddr-3_3v;
260         max-frequency = <50000000>;
261         non-removable;
262         disable-wp;
264         mmc-pwrseq = <&emmc_pwrseq>;
265         vmmc-supply = <&vcc_3v3>;
266         vqmmc-supply = <&vddio_boot>;
269 &uart_AO {
270         status = "okay";
271         pinctrl-0 = <&uart_ao_a_pins>;
272         pinctrl-names = "default";