18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2016 Martin Blumenstingl <martin.blumenstingl@googlemail.com>. 48c2ecf20Sopenharmony_ci * Based on meson-gx-p23x-q20x.dtsi: 58c2ecf20Sopenharmony_ci * - Copyright (c) 2016 Endless Computers, Inc. 68c2ecf20Sopenharmony_ci * Author: Carlo Caione <carlo@endlessm.com> 78c2ecf20Sopenharmony_ci * - Copyright (c) 2016 BayLibre, SAS. 88c2ecf20Sopenharmony_ci * Author: Neil Armstrong <narmstrong@baylibre.com> 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* Common DTSI for devices which are based on the P212 reference board. */ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include "meson-gxl-s905x.dtsi" 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci/ { 168c2ecf20Sopenharmony_ci aliases { 178c2ecf20Sopenharmony_ci serial0 = &uart_AO; 188c2ecf20Sopenharmony_ci ethernet0 = ðmac; 198c2ecf20Sopenharmony_ci }; 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci chosen { 228c2ecf20Sopenharmony_ci stdout-path = "serial0:115200n8"; 238c2ecf20Sopenharmony_ci }; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci memory@0 { 268c2ecf20Sopenharmony_ci device_type = "memory"; 278c2ecf20Sopenharmony_ci reg = <0x0 0x0 0x0 0x80000000>; 288c2ecf20Sopenharmony_ci }; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci hdmi_5v: regulator-hdmi-5v { 318c2ecf20Sopenharmony_ci compatible = "regulator-fixed"; 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci regulator-name = "HDMI_5V"; 348c2ecf20Sopenharmony_ci regulator-min-microvolt = <5000000>; 358c2ecf20Sopenharmony_ci regulator-max-microvolt = <5000000>; 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci gpio = <&gpio GPIOH_3 GPIO_ACTIVE_HIGH>; 388c2ecf20Sopenharmony_ci enable-active-high; 398c2ecf20Sopenharmony_ci regulator-always-on; 408c2ecf20Sopenharmony_ci }; 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci vddio_boot: regulator-vddio_boot { 438c2ecf20Sopenharmony_ci compatible = "regulator-fixed"; 448c2ecf20Sopenharmony_ci regulator-name = "VDDIO_BOOT"; 458c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 468c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 478c2ecf20Sopenharmony_ci }; 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci vddao_3v3: regulator-vddao_3v3 { 508c2ecf20Sopenharmony_ci compatible = "regulator-fixed"; 518c2ecf20Sopenharmony_ci regulator-name = "VDDAO_3V3"; 528c2ecf20Sopenharmony_ci regulator-min-microvolt = <3300000>; 538c2ecf20Sopenharmony_ci regulator-max-microvolt = <3300000>; 548c2ecf20Sopenharmony_ci }; 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci vddio_ao18: regulator-vddio_ao18 { 578c2ecf20Sopenharmony_ci compatible = "regulator-fixed"; 588c2ecf20Sopenharmony_ci regulator-name = "VDDIO_AO18"; 598c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 608c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 618c2ecf20Sopenharmony_ci }; 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci vcc_3v3: regulator-vcc_3v3 { 648c2ecf20Sopenharmony_ci compatible = "regulator-fixed"; 658c2ecf20Sopenharmony_ci regulator-name = "VCC_3V3"; 668c2ecf20Sopenharmony_ci regulator-min-microvolt = <3300000>; 678c2ecf20Sopenharmony_ci regulator-max-microvolt = <3300000>; 688c2ecf20Sopenharmony_ci }; 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci emmc_pwrseq: emmc-pwrseq { 718c2ecf20Sopenharmony_ci compatible = "mmc-pwrseq-emmc"; 728c2ecf20Sopenharmony_ci reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; 738c2ecf20Sopenharmony_ci }; 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci wifi32k: wifi32k { 768c2ecf20Sopenharmony_ci compatible = "pwm-clock"; 778c2ecf20Sopenharmony_ci #clock-cells = <0>; 788c2ecf20Sopenharmony_ci clock-frequency = <32768>; 798c2ecf20Sopenharmony_ci pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ 808c2ecf20Sopenharmony_ci }; 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci sdio_pwrseq: sdio-pwrseq { 838c2ecf20Sopenharmony_ci compatible = "mmc-pwrseq-simple"; 848c2ecf20Sopenharmony_ci reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; 858c2ecf20Sopenharmony_ci clocks = <&wifi32k>; 868c2ecf20Sopenharmony_ci clock-names = "ext_clock"; 878c2ecf20Sopenharmony_ci }; 888c2ecf20Sopenharmony_ci}; 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ciðmac { 918c2ecf20Sopenharmony_ci status = "okay"; 928c2ecf20Sopenharmony_ci}; 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ci&ir { 958c2ecf20Sopenharmony_ci status = "okay"; 968c2ecf20Sopenharmony_ci pinctrl-0 = <&remote_input_ao_pins>; 978c2ecf20Sopenharmony_ci pinctrl-names = "default"; 988c2ecf20Sopenharmony_ci}; 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci&saradc { 1018c2ecf20Sopenharmony_ci status = "okay"; 1028c2ecf20Sopenharmony_ci vref-supply = <&vddio_ao18>; 1038c2ecf20Sopenharmony_ci}; 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci/* Wireless SDIO Module */ 1068c2ecf20Sopenharmony_ci&sd_emmc_a { 1078c2ecf20Sopenharmony_ci status = "okay"; 1088c2ecf20Sopenharmony_ci pinctrl-0 = <&sdio_pins>; 1098c2ecf20Sopenharmony_ci pinctrl-1 = <&sdio_clk_gate_pins>; 1108c2ecf20Sopenharmony_ci pinctrl-names = "default", "clk-gate"; 1118c2ecf20Sopenharmony_ci #address-cells = <1>; 1128c2ecf20Sopenharmony_ci #size-cells = <0>; 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_ci bus-width = <4>; 1158c2ecf20Sopenharmony_ci cap-sd-highspeed; 1168c2ecf20Sopenharmony_ci max-frequency = <50000000>; 1178c2ecf20Sopenharmony_ci 1188c2ecf20Sopenharmony_ci non-removable; 1198c2ecf20Sopenharmony_ci disable-wp; 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci /* WiFi firmware requires power to be kept while in suspend */ 1228c2ecf20Sopenharmony_ci keep-power-in-suspend; 1238c2ecf20Sopenharmony_ci 1248c2ecf20Sopenharmony_ci mmc-pwrseq = <&sdio_pwrseq>; 1258c2ecf20Sopenharmony_ci 1268c2ecf20Sopenharmony_ci vmmc-supply = <&vddao_3v3>; 1278c2ecf20Sopenharmony_ci vqmmc-supply = <&vddio_boot>; 1288c2ecf20Sopenharmony_ci}; 1298c2ecf20Sopenharmony_ci 1308c2ecf20Sopenharmony_ci/* SD card */ 1318c2ecf20Sopenharmony_ci&sd_emmc_b { 1328c2ecf20Sopenharmony_ci status = "okay"; 1338c2ecf20Sopenharmony_ci pinctrl-0 = <&sdcard_pins>; 1348c2ecf20Sopenharmony_ci pinctrl-1 = <&sdcard_clk_gate_pins>; 1358c2ecf20Sopenharmony_ci pinctrl-names = "default", "clk-gate"; 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_ci bus-width = <4>; 1388c2ecf20Sopenharmony_ci cap-sd-highspeed; 1398c2ecf20Sopenharmony_ci max-frequency = <50000000>; 1408c2ecf20Sopenharmony_ci disable-wp; 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_ci cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; 1438c2ecf20Sopenharmony_ci 1448c2ecf20Sopenharmony_ci vmmc-supply = <&vddao_3v3>; 1458c2ecf20Sopenharmony_ci vqmmc-supply = <&vddio_boot>; 1468c2ecf20Sopenharmony_ci}; 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_ci/* eMMC */ 1498c2ecf20Sopenharmony_ci&sd_emmc_c { 1508c2ecf20Sopenharmony_ci status = "okay"; 1518c2ecf20Sopenharmony_ci pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; 1528c2ecf20Sopenharmony_ci pinctrl-1 = <&emmc_clk_gate_pins>; 1538c2ecf20Sopenharmony_ci pinctrl-names = "default", "clk-gate"; 1548c2ecf20Sopenharmony_ci 1558c2ecf20Sopenharmony_ci bus-width = <8>; 1568c2ecf20Sopenharmony_ci cap-mmc-highspeed; 1578c2ecf20Sopenharmony_ci max-frequency = <200000000>; 1588c2ecf20Sopenharmony_ci non-removable; 1598c2ecf20Sopenharmony_ci disable-wp; 1608c2ecf20Sopenharmony_ci mmc-ddr-1_8v; 1618c2ecf20Sopenharmony_ci mmc-hs200-1_8v; 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ci mmc-pwrseq = <&emmc_pwrseq>; 1648c2ecf20Sopenharmony_ci vmmc-supply = <&vcc_3v3>; 1658c2ecf20Sopenharmony_ci vqmmc-supply = <&vddio_boot>; 1668c2ecf20Sopenharmony_ci}; 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_ci&pwm_ef { 1698c2ecf20Sopenharmony_ci status = "okay"; 1708c2ecf20Sopenharmony_ci pinctrl-0 = <&pwm_e_pins>; 1718c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1728c2ecf20Sopenharmony_ci clocks = <&clkc CLKID_FCLK_DIV4>; 1738c2ecf20Sopenharmony_ci clock-names = "clkin0"; 1748c2ecf20Sopenharmony_ci}; 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci/* This is connected to the Bluetooth module: */ 1778c2ecf20Sopenharmony_ci&uart_A { 1788c2ecf20Sopenharmony_ci status = "okay"; 1798c2ecf20Sopenharmony_ci pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; 1808c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1818c2ecf20Sopenharmony_ci uart-has-rtscts; 1828c2ecf20Sopenharmony_ci 1838c2ecf20Sopenharmony_ci bluetooth { 1848c2ecf20Sopenharmony_ci compatible = "brcm,bcm43438-bt"; 1858c2ecf20Sopenharmony_ci shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; 1868c2ecf20Sopenharmony_ci max-speed = <2000000>; 1878c2ecf20Sopenharmony_ci clocks = <&wifi32k>; 1888c2ecf20Sopenharmony_ci clock-names = "lpo"; 1898c2ecf20Sopenharmony_ci }; 1908c2ecf20Sopenharmony_ci}; 1918c2ecf20Sopenharmony_ci 1928c2ecf20Sopenharmony_ci&uart_AO { 1938c2ecf20Sopenharmony_ci status = "okay"; 1948c2ecf20Sopenharmony_ci pinctrl-0 = <&uart_ao_a_pins>; 1958c2ecf20Sopenharmony_ci pinctrl-names = "default"; 1968c2ecf20Sopenharmony_ci}; 1978c2ecf20Sopenharmony_ci 1988c2ecf20Sopenharmony_ci&usb { 1998c2ecf20Sopenharmony_ci status = "okay"; 2008c2ecf20Sopenharmony_ci dr_mode = "host"; 2018c2ecf20Sopenharmony_ci}; 2028c2ecf20Sopenharmony_ci 2038c2ecf20Sopenharmony_ci&usb2_phy0 { 2048c2ecf20Sopenharmony_ci /* 2058c2ecf20Sopenharmony_ci * HDMI_5V is also used as supply for the USB VBUS. 2068c2ecf20Sopenharmony_ci */ 2078c2ecf20Sopenharmony_ci phy-supply = <&hdmi_5v>; 2088c2ecf20Sopenharmony_ci}; 209