Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / ricoh619.dtsi
1 /*
2  * Copyright (C) 2014 Ricoh Electronic Devices Co., Ltd. - http://www.rioch.com/LSI
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8
9 /*
10  * Integrated Power Management Chip
11  * http://www.ricoh.com/LSI/product_pmic/multiple-pmu/rc5t619/
12  */
13
14 &ricoh619
15 {
16         compatible = "ricoh,ricoh619";
17         interrupt-controller;
18         #interrupt-cells = <0>;
19         
20         pwrkey: pwrkey@0 {
21                 compatible = "ricoh,ricoh619-pwrkey";
22                 ricoh,pwrkey-delay-ms = <20>;           
23         };
24
25         rtc {
26                 compatible = "ricoh,ricoh619-rtc";
27                 ricoh,rtc-tm-year = <2014>;
28                 ricoh,rtc-tm-month = <1>;
29                 ricoh,rtc-tm-mday = <1>;
30                 ricoh,rtc-tm-hour = <8>;
31                 ricoh,rtc-tm-min = <0>;
32                 ricoh,rtc-tm-sec = <0>;
33         };
34
35         battery {
36                 compatible = "ricoh,ricoh619-battery";
37                 ricoh,alarm-vol-mv = <3300>;
38                 ricoh,multiple = <100>;
39                 ricoh,monitor-time = <1>;
40
41                 ricoh,ch-vfchg = <0xff>;/* VFCHG        = 0 - 4 (4.05v, 4.10v, 4.15v, 4.20v, 4.35v) */
42                 ricoh,ch-vrchg = <0xff>;/* VRCHG        = 0 - 4 (3.85v, 3.90v, 3.95v, 4.00v, 4.10v) */
43                 ricoh,ch-vbatovset = <0xff>;/* VBATOVSET        = 0 or 1 (0 : 4.38v(up)/3.95v(down) 1: 4.53v(up)/4.10v(down)) */
44                 ricoh,ch-ichg = <0xff>;/* ICHG          = 0 - 0x1D (100mA - 3000mA) */
45                 ricoh,ch-ilim-adp = <0xff>;/* ILIM_ADP  = 0 - 0x1D (100mA - 3000mA) */
46                 ricoh,ch-ilim-usb = <0xff>;/* ILIM_USB  = 0 - 0x1D (100mA - 3000mA) */
47                 ricoh,ch-icchg = <0x03>;/* ICCHG        = 0 - 3 (50mA 100mA 150mA 200mA) */
48                 ricoh,fg-target-vsys = <3000>;/* This value is the target one to DSOC=0% */
49                 ricoh,fg-target-ibat = <1000>;/* This value is the target one to DSOC=0% */
50                 ricoh,fg-poff-vbat = <0>;/* setting value of 0 per Vbat */
51                 ricoh,jt-en = <0>;/* JEITA Enable         = 0 or 1 (1:enable, 0:disable) */
52                 ricoh,jt-hw-sw = <1>;/* JEITA HW or SW = 0 or 1 (1:HardWare, 0:SoftWare) */
53                 ricoh,jt-temp-h = <50>;/* degree C */
54                 ricoh,jt-temp-l = <12>;/* degree C */
55                 ricoh,jt-vfchg-h = <0x03>;/* VFCHG High         = 0 - 4 (4.05v, 4.10v, 4.15v, 4.20v, 4.35v) */
56                 ricoh,jt-vfchg-l = <0>;/* VFCHG High    = 0 - 4 (4.05v, 4.10v, 4.15v, 4.20v, 4.35v) */
57                 ricoh,jt-ichg-h = <0x0D>;/* VFCHG Low   = 0 - 4 (4.05v, 4.10v, 4.15v, 4.20v, 4.35v) */
58                 ricoh,jt-ichg-l = <0x09>;/* ICHG Low    = 0 - 0x1D (100mA - 3000mA) */
59         };
60
61         regulators {
62                 #address-cells = <1>;
63                 #size-cells = <0>;      
64                 
65                 ricoh619_dcdc1_reg: regulator@0 {
66                         reg = <0>;
67                         regulator-compatible = "ricoh619_dc1";
68                         regulator-always-on;
69                         regulator-boot-on;
70                 };
71                 ricoh619_dcdc2_reg: regulator@1 {
72                         reg = <1>;
73                         regulator-compatible = "ricoh619_dc2";
74                         regulator-always-on;
75                         regulator-boot-on;
76                 };
77                 ricoh619_dcdc3_reg: regulator@2 {
78                         reg = <2>;
79                         regulator-compatible = "ricoh619_dc3";
80                         regulator-always-on;
81                         regulator-boot-on;
82                 };
83                 ricoh619_dcdc4_reg: regulator@3 {
84                         reg = <3>;
85                         regulator-compatible = "ricoh619_dc4";
86                         regulator-always-on;
87                         regulator-boot-on;
88                 };
89                 ricoh619_dcdc5_reg: regulator@4 {
90                         reg = <4>;
91                         regulator-compatible = "ricoh619_dc5";
92                         regulator-always-on;
93                         regulator-boot-on;
94                 };
95                 ricoh619_ldo1_reg: regulator@5  {
96                         reg = <5>;
97                         regulator-compatible = "ricoh619_ldo1";
98                         regulator-always-on;
99                         regulator-boot-on;
100                 };
101                 ricoh619_ldo2_reg: regulator@6  {
102                         reg = <6>;
103                         regulator-compatible = "ricoh619_ldo2";
104                         regulator-always-on;
105                         regulator-boot-on;
106                 };
107                 ricoh619_ldo3_reg: regulator@7  {
108                         reg = <7>;
109                         regulator-compatible = "ricoh619_ldo3";
110                         regulator-always-on;
111                         regulator-boot-on;
112                 };
113                 ricoh619_ldo4_reg: regulator@8  {
114                         reg = <8>;
115                         regulator-compatible = "ricoh619_ldo4";
116                         regulator-always-on;
117                         regulator-boot-on;
118                 };
119                 ricoh619_ldo5_reg: regulator@9  {
120                         reg = <9>;
121                         regulator-compatible = "ricoh619_ldo5";
122                         regulator-always-on;
123                         regulator-boot-on;
124                 };
125                 ricoh619_ldo6_reg: regulator@10  {
126                         reg = <10>;
127                         regulator-compatible = "ricoh619_ldo6";
128                         regulator-always-on;
129                         regulator-boot-on;
130                 };
131                 ricoh619_ldo7_reg: regulator@11  {
132                         reg = <11>;
133                         regulator-compatible = "ricoh619_ldo7";
134                         regulator-always-on;
135                         regulator-boot-on;
136                 };
137                 ricoh619_ldo8_reg: regulator@12  {
138                         reg = <12>;
139                         regulator-compatible = "ricoh619_ldo8";
140                         regulator-always-on;
141                         regulator-boot-on;
142                 };
143                 ricoh619_ldo9_reg: regulator@13  {
144                         reg = <13>;
145                         regulator-compatible = "ricoh619_ldo9";
146                         regulator-always-on;
147                         regulator-boot-on;
148                 };
149                 ricoh619_ldo10_reg: regulator@14  {
150                         reg = <14>;
151                         regulator-compatible = "ricoh619_ldo10";
152                         regulator-always-on;
153                         regulator-boot-on;
154                 };
155                 ricoh619_ldortc1_reg: regulator@15  {
156                         reg = <15>;
157                         regulator-compatible = "ricoh619_ldortc1";
158                         regulator-always-on;
159                         regulator-boot-on;
160                 };
161                 ricoh619_ldortc2_reg: regulator@16  {
162                         reg = <16>;
163                         regulator-compatible = "ricoh619_ldortc2";
164                         regulator-always-on;
165                         regulator-boot-on;
166                 };
167         };
168 };
169