ARM64: dts: meson-gxl-p23x: Enable IR receiver
[linux-2.6/btrfs-unstable.git] / arch / arm64 / boot / dts / amlogic / meson-gxl-s905d-p23x.dtsi
blobbbe46a2b7f14ca1e1627e0913fc48cd8677b7594
1 /*
2  * Copyright (c) 2016 Endless Computers, Inc.
3  * Author: Carlo Caione <carlo@endlessm.com>
4  *
5  * This file is dual-licensed: you can use it either under the terms
6  * of the GPL or the X11 license, at your option. Note that this dual
7  * licensing only applies to this file, and not this project as a
8  * whole.
9  *
10  *  a) This library is free software; you can redistribute it and/or
11  *     modify it under the terms of the GNU General Public License as
12  *     published by the Free Software Foundation; either version 2 of the
13  *     License, or (at your option) any later version.
14  *
15  *     This library is distributed in the hope that it will be useful,
16  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  *     GNU General Public License for more details.
19  *
20  * Or, alternatively,
21  *
22  *  b) Permission is hereby granted, free of charge, to any person
23  *     obtaining a copy of this software and associated documentation
24  *     files (the "Software"), to deal in the Software without
25  *     restriction, including without limitation the rights to use,
26  *     copy, modify, merge, publish, distribute, sublicense, and/or
27  *     sell copies of the Software, and to permit persons to whom the
28  *     Software is furnished to do so, subject to the following
29  *     conditions:
30  *
31  *     The above copyright notice and this permission notice shall be
32  *     included in all copies or substantial portions of the Software.
33  *
34  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41  *     OTHER DEALINGS IN THE SOFTWARE.
42  */
44 #include "meson-gxl-s905d.dtsi"
46 / {
47         aliases {
48                 serial0 = &uart_AO;
49         };
51         chosen {
52                 stdout-path = "serial0:115200n8";
53         };
55         memory@0 {
56                 device_type = "memory";
57                 reg = <0x0 0x0 0x0 0x80000000>;
58         };
60         vddio_boot: regulator-vddio_boot {
61                 compatible = "regulator-fixed";
62                 regulator-name = "VDDIO_BOOT";
63                 regulator-min-microvolt = <1800000>;
64                 regulator-max-microvolt = <1800000>;
65         };
67         vddao_3v3: regulator-vddao_3v3 {
68                 compatible = "regulator-fixed";
69                 regulator-name = "VDDAO_3V3";
70                 regulator-min-microvolt = <3300000>;
71                 regulator-max-microvolt = <3300000>;
72         };
74         vcc_3v3: regulator-vcc_3v3 {
75                 compatible = "regulator-fixed";
76                 regulator-name = "VCC_3V3";
77                 regulator-min-microvolt = <3300000>;
78                 regulator-max-microvolt = <3300000>;
79         };
81         emmc_pwrseq: emmc-pwrseq {
82                 compatible = "mmc-pwrseq-emmc";
83                 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
84         };
86         wifi32k: wifi32k {
87                 compatible = "pwm-clock";
88                 #clock-cells = <0>;
89                 clock-frequency = <32768>;
90                 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
91         };
93         sdio_pwrseq: sdio-pwrseq {
94                 compatible = "mmc-pwrseq-simple";
95                 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
96                 clocks = <&wifi32k>;
97                 clock-names = "ext_clock";
98         };
101 /* This UART is brought out to the DB9 connector */
102 &uart_AO {
103         status = "okay";
104         pinctrl-0 = <&uart_ao_a_pins>;
105         pinctrl-names = "default";
108 &ir {
109         status = "okay";
110         pinctrl-0 = <&remote_input_ao_pins>;
111         pinctrl-names = "default";
114 /* Wireless SDIO Module */
115 &sd_emmc_a {
116         status = "okay";
117         pinctrl-0 = <&sdio_pins>;
118         pinctrl-names = "default";
119         #address-cells = <1>;
120         #size-cells = <0>;
122         bus-width = <4>;
123         cap-sd-highspeed;
124         max-frequency = <100000000>;
126         non-removable;
127         disable-wp;
129         mmc-pwrseq = <&sdio_pwrseq>;
131         vmmc-supply = <&vddao_3v3>;
132         vqmmc-supply = <&vddio_boot>;
134         brcmf: bcrmf@1 {
135                 reg = <1>;
136                 compatible = "brcm,bcm4329-fmac";
137         };
140 /* SD card */
141 &sd_emmc_b {
142         status = "okay";
143         pinctrl-0 = <&sdcard_pins>;
144         pinctrl-names = "default";
146         bus-width = <4>;
147         cap-sd-highspeed;
148         max-frequency = <100000000>;
149         disable-wp;
151         cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
152         cd-inverted;
154         vmmc-supply = <&vddao_3v3>;
155         vqmmc-supply = <&vddio_boot>;
158 /* eMMC */
159 &sd_emmc_c {
160         status = "okay";
161         pinctrl-0 = <&emmc_pins>;
162         pinctrl-names = "default";
164         bus-width = <8>;
165         cap-sd-highspeed;
166         cap-mmc-highspeed;
167         max-frequency = <200000000>;
168         non-removable;
169         disable-wp;
170         mmc-ddr-1_8v;
171         mmc-hs200-1_8v;
173         mmc-pwrseq = <&emmc_pwrseq>;
174         vmmc-supply = <&vcc_3v3>;
175         vqmmc-supply = <&vddio_boot>;
178 &pwm_ef {
179         status = "okay";
180         pinctrl-0 = <&pwm_e_pins>;
181         pinctrl-names = "default";
182         clocks = <&clkc CLKID_FCLK_DIV4>;
183         clock-names = "clkin0";