Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 MundoReader S.L. |
| 3 | * Author: Heiko Stuebner <heiko@sntech.de> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | /dts-v1/; |
| 17 | #include "rk3066a.dtsi" |
| 18 | |
| 19 | / { |
| 20 | model = "bq Curie 2"; |
Beniamino Galvani | ac4eba8 | 2014-05-06 19:10:11 +0200 | [diff] [blame] | 21 | compatible = "mundoreader,bq-curie2", "rockchip,rk3066a"; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 22 | |
| 23 | memory { |
| 24 | reg = <0x60000000 0x40000000>; |
| 25 | }; |
| 26 | |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame^] | 27 | uart0: serial@10124000 { |
| 28 | status = "okay"; |
| 29 | }; |
| 30 | |
| 31 | uart1: serial@10126000 { |
| 32 | status = "okay"; |
| 33 | }; |
| 34 | |
| 35 | uart2: serial@20064000 { |
| 36 | pinctrl-names = "default"; |
| 37 | pinctrl-0 = <&uart2_xfer>; |
| 38 | status = "okay"; |
| 39 | }; |
| 40 | |
| 41 | uart3: serial@20068000 { |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
| 45 | vcc_sd0: fixed-regulator { |
| 46 | compatible = "regulator-fixed"; |
| 47 | regulator-name = "sdmmc-supply"; |
| 48 | regulator-min-microvolt = <3000000>; |
| 49 | regulator-max-microvolt = <3000000>; |
| 50 | gpio = <&gpio3 7 GPIO_ACTIVE_LOW>; |
| 51 | startup-delay-us = <100000>; |
| 52 | }; |
| 53 | |
| 54 | dwmmc@10214000 { /* sdmmc */ |
| 55 | num-slots = <1>; |
| 56 | status = "okay"; |
| 57 | |
| 58 | pinctrl-names = "default"; |
| 59 | pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus4>; |
| 60 | vmmc-supply = <&vcc_sd0>; |
| 61 | |
| 62 | slot@0 { |
| 63 | reg = <0>; |
| 64 | bus-width = <4>; |
| 65 | disable-wp; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 66 | }; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame^] | 67 | }; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 68 | |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame^] | 69 | dwmmc@10218000 { /* wifi */ |
| 70 | num-slots = <1>; |
| 71 | status = "okay"; |
| 72 | non-removable; |
| 73 | |
| 74 | pinctrl-names = "default"; |
| 75 | pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>; |
| 76 | |
| 77 | slot@0 { |
| 78 | reg = <0>; |
| 79 | bus-width = <4>; |
| 80 | disable-wp; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 81 | }; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame^] | 82 | }; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 83 | |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame^] | 84 | gpio-keys { |
| 85 | compatible = "gpio-keys"; |
| 86 | #address-cells = <1>; |
| 87 | #size-cells = <0>; |
| 88 | autorepeat; |
| 89 | |
| 90 | button@0 { |
| 91 | gpios = <&gpio6 2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */ |
| 92 | linux,code = <116>; |
| 93 | label = "GPIO Key Power"; |
| 94 | linux,input-type = <1>; |
| 95 | gpio-key,wakeup = <1>; |
| 96 | debounce-interval = <100>; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 97 | }; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame^] | 98 | button@1 { |
| 99 | gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */ |
| 100 | linux,code = <104>; |
| 101 | label = "GPIO Key Vol-"; |
| 102 | linux,input-type = <1>; |
| 103 | gpio-key,wakeup = <0>; |
| 104 | debounce-interval = <100>; |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 105 | }; |
Heiko Stuebner | c3030d3 | 2014-07-26 18:44:35 +0200 | [diff] [blame^] | 106 | /* VOL+ comes somehow thru the ADC */ |
Heiko Stuebner | 95866096 | 2013-10-14 17:28:32 +0200 | [diff] [blame] | 107 | }; |
| 108 | }; |