xref: /linux/arch/arm/boot/dts/cros-ec-sbs.dtsi (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1*6802b787SChris Zhong/*
2*6802b787SChris Zhong * Smart battery dts fragment for devices that use cros-ec-sbs
3*6802b787SChris Zhong *
4*6802b787SChris Zhong * Copyright (c) 2015 Google, Inc
5*6802b787SChris Zhong *
6*6802b787SChris Zhong * This file is dual-licensed: you can use it either under the terms
7*6802b787SChris Zhong * of the GPL or the X11 license, at your option. Note that this dual
8*6802b787SChris Zhong * licensing only applies to this file, and not this project as a
9*6802b787SChris Zhong * whole.
10*6802b787SChris Zhong *
11*6802b787SChris Zhong *  a) This file is free software; you can redistribute it and/or
12*6802b787SChris Zhong *     modify it under the terms of the GNU General Public License as
13*6802b787SChris Zhong *     published by the Free Software Foundation; either version 2 of the
14*6802b787SChris Zhong *     License, or (at your option) any later version.
15*6802b787SChris Zhong *
16*6802b787SChris Zhong *     This file is distributed in the hope that it will be useful,
17*6802b787SChris Zhong *     but WITHOUT ANY WARRANTY; without even the implied warranty of
18*6802b787SChris Zhong *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19*6802b787SChris Zhong *     GNU General Public License for more details.
20*6802b787SChris Zhong *
21*6802b787SChris Zhong * Or, alternatively,
22*6802b787SChris Zhong *
23*6802b787SChris Zhong *  b) Permission is hereby granted, free of charge, to any person
24*6802b787SChris Zhong *     obtaining a copy of this software and associated documentation
25*6802b787SChris Zhong *     files (the "Software"), to deal in the Software without
26*6802b787SChris Zhong *     restriction, including without limitation the rights to use,
27*6802b787SChris Zhong *     copy, modify, merge, publish, distribute, sublicense, and/or
28*6802b787SChris Zhong *     sell copies of the Software, and to permit persons to whom the
29*6802b787SChris Zhong *     Software is furnished to do so, subject to the following
30*6802b787SChris Zhong *     conditions:
31*6802b787SChris Zhong *
32*6802b787SChris Zhong *     The above copyright notice and this permission notice shall be
33*6802b787SChris Zhong *     included in all copies or substantial portions of the Software.
34*6802b787SChris Zhong *
35*6802b787SChris Zhong *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36*6802b787SChris Zhong *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37*6802b787SChris Zhong *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38*6802b787SChris Zhong *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39*6802b787SChris Zhong *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40*6802b787SChris Zhong *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41*6802b787SChris Zhong *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42*6802b787SChris Zhong *     OTHER DEALINGS IN THE SOFTWARE.
43*6802b787SChris Zhong */
44*6802b787SChris Zhong
45*6802b787SChris Zhong&i2c_tunnel {
46*6802b787SChris Zhong	battery: sbs-battery@b {
47*6802b787SChris Zhong		compatible = "sbs,sbs-battery";
48*6802b787SChris Zhong		reg = <0xb>;
49*6802b787SChris Zhong		sbs,i2c-retry-count = <2>;
50*6802b787SChris Zhong		sbs,poll-retry-count = <1>;
51*6802b787SChris Zhong	};
52*6802b787SChris Zhong};
53