16802b787SChris Zhong/* 26802b787SChris Zhong * Smart battery dts fragment for devices that use cros-ec-sbs 36802b787SChris Zhong * 46802b787SChris Zhong * Copyright (c) 2015 Google, Inc 56802b787SChris Zhong * 66802b787SChris Zhong * This file is dual-licensed: you can use it either under the terms 76802b787SChris Zhong * of the GPL or the X11 license, at your option. Note that this dual 86802b787SChris Zhong * licensing only applies to this file, and not this project as a 96802b787SChris Zhong * whole. 106802b787SChris Zhong * 116802b787SChris Zhong * a) This file is free software; you can redistribute it and/or 126802b787SChris Zhong * modify it under the terms of the GNU General Public License as 136802b787SChris Zhong * published by the Free Software Foundation; either version 2 of the 146802b787SChris Zhong * License, or (at your option) any later version. 156802b787SChris Zhong * 166802b787SChris Zhong * This file is distributed in the hope that it will be useful, 176802b787SChris Zhong * but WITHOUT ANY WARRANTY; without even the implied warranty of 186802b787SChris Zhong * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 196802b787SChris Zhong * GNU General Public License for more details. 206802b787SChris Zhong * 216802b787SChris Zhong * Or, alternatively, 226802b787SChris Zhong * 236802b787SChris Zhong * b) Permission is hereby granted, free of charge, to any person 246802b787SChris Zhong * obtaining a copy of this software and associated documentation 256802b787SChris Zhong * files (the "Software"), to deal in the Software without 266802b787SChris Zhong * restriction, including without limitation the rights to use, 276802b787SChris Zhong * copy, modify, merge, publish, distribute, sublicense, and/or 286802b787SChris Zhong * sell copies of the Software, and to permit persons to whom the 296802b787SChris Zhong * Software is furnished to do so, subject to the following 306802b787SChris Zhong * conditions: 316802b787SChris Zhong * 326802b787SChris Zhong * The above copyright notice and this permission notice shall be 336802b787SChris Zhong * included in all copies or substantial portions of the Software. 346802b787SChris Zhong * 356802b787SChris Zhong * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 366802b787SChris Zhong * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 376802b787SChris Zhong * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 386802b787SChris Zhong * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 396802b787SChris Zhong * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 406802b787SChris Zhong * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 416802b787SChris Zhong * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 426802b787SChris Zhong * OTHER DEALINGS IN THE SOFTWARE. 436802b787SChris Zhong */ 446802b787SChris Zhong 456802b787SChris Zhong&i2c_tunnel { 466802b787SChris Zhong battery: sbs-battery@b { 476802b787SChris Zhong compatible = "sbs,sbs-battery"; 486802b787SChris Zhong reg = <0xb>; 496802b787SChris Zhong sbs,i2c-retry-count = <2>; 506802b787SChris Zhong sbs,poll-retry-count = <1>; 516802b787SChris Zhong }; 526802b787SChris Zhong}; 53