1/* 2 * Copyright (c) 2017 Carlo Caione 3 * Copyright (c) 2016 BayLibre, Inc. 4 * Author: Neil Armstrong <narmstrong@kernel.org> 5 * 6 * SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 */ 8 9/dts-v1/; 10 11#include "meson-gxl-s905x.dtsi" 12 13/ { 14 compatible = "hwacom,amazetv", "amlogic,s905x", "amlogic,meson-gxl"; 15 model = "Hwacom AmazeTV (S905X)"; 16 17 aliases { 18 serial0 = &uart_AO; 19 ethernet0 = ðmac; 20 }; 21 22 chosen { 23 stdout-path = "serial0:115200n8"; 24 }; 25 26 memory@0 { 27 device_type = "memory"; 28 reg = <0x0 0x0 0x0 0x80000000>; 29 }; 30 31 vddio_card: gpio-regulator { 32 compatible = "regulator-gpio"; 33 34 regulator-name = "VDDIO_CARD"; 35 regulator-min-microvolt = <1800000>; 36 regulator-max-microvolt = <3300000>; 37 38 gpios = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>; 39 gpios-states = <1>; 40 41 /* Based on P200 schematics, signal CARD_1.8V/3.3V_CTR */ 42 states = <1800000 0 43 3300000 1>; 44 }; 45 46 vddio_boot: regulator-vddio_boot { 47 compatible = "regulator-fixed"; 48 regulator-name = "VDDIO_BOOT"; 49 regulator-min-microvolt = <1800000>; 50 regulator-max-microvolt = <1800000>; 51 }; 52 53 vddao_3v3: regulator-vddao_3v3 { 54 compatible = "regulator-fixed"; 55 regulator-name = "VDDAO_3V3"; 56 regulator-min-microvolt = <3300000>; 57 regulator-max-microvolt = <3300000>; 58 }; 59 60 vcc_3v3: regulator-vcc_3v3 { 61 compatible = "regulator-fixed"; 62 regulator-name = "VCC_3V3"; 63 regulator-min-microvolt = <3300000>; 64 regulator-max-microvolt = <3300000>; 65 }; 66 67 emmc_pwrseq: emmc-pwrseq { 68 compatible = "mmc-pwrseq-emmc"; 69 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; 70 }; 71 72 wifi32k: wifi32k { 73 compatible = "pwm-clock"; 74 #clock-cells = <0>; 75 clock-frequency = <32768>; 76 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ 77 }; 78 79 sdio_pwrseq: sdio-pwrseq { 80 compatible = "mmc-pwrseq-simple"; 81 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; 82 clocks = <&wifi32k>; 83 clock-names = "ext_clock"; 84 }; 85 86 cvbs-connector { 87 compatible = "composite-video-connector"; 88 89 port { 90 cvbs_connector_in: endpoint { 91 remote-endpoint = <&cvbs_vdac_out>; 92 }; 93 }; 94 }; 95}; 96 97&cvbs_vdac_port { 98 cvbs_vdac_out: endpoint { 99 remote-endpoint = <&cvbs_connector_in>; 100 }; 101}; 102 103ðmac { 104 status = "okay"; 105 phy-mode = "rmii"; 106 phy-handle = <&internal_phy>; 107}; 108 109&ir { 110 status = "okay"; 111 pinctrl-0 = <&remote_input_ao_pins>; 112 pinctrl-names = "default"; 113}; 114 115&pwm_ef { 116 status = "okay"; 117 pinctrl-0 = <&pwm_e_pins>; 118 pinctrl-names = "default"; 119 clocks = <&clkc CLKID_FCLK_DIV4>; 120 clock-names = "clkin0"; 121}; 122 123/* SD card */ 124&sd_emmc_b { 125 status = "okay"; 126 pinctrl-0 = <&sdcard_pins>; 127 pinctrl-1 = <&sdcard_clk_gate_pins>; 128 pinctrl-names = "default", "clk-gate"; 129 130 bus-width = <4>; 131 cap-sd-highspeed; 132 max-frequency = <100000000>; 133 disable-wp; 134 135 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>; 136 cd-inverted; 137 138 vmmc-supply = <&vddao_3v3>; 139 vqmmc-supply = <&vddio_card>; 140}; 141 142/* eMMC */ 143&sd_emmc_c { 144 status = "okay"; 145 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; 146 pinctrl-1 = <&emmc_clk_gate_pins>; 147 pinctrl-names = "default", "clk-gate"; 148 149 bus-width = <8>; 150 cap-mmc-highspeed; 151 max-frequency = <100000000>; 152 non-removable; 153 disable-wp; 154 mmc-ddr-1_8v; 155 mmc-hs200-1_8v; 156 157 mmc-pwrseq = <&emmc_pwrseq>; 158 vmmc-supply = <&vcc_3v3>; 159 vqmmc-supply = <&vddio_boot>; 160}; 161 162&uart_AO { 163 status = "okay"; 164 pinctrl-0 = <&uart_ao_a_pins>; 165 pinctrl-names = "default"; 166}; 167