Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Spreadtrum SP9860g board
0003  *
0004  * Copyright (C) 2017, Spreadtrum Communications Inc.
0005  *
0006  * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0007  */
0008 
0009 /dts-v1/;
0010 
0011 #include "sc9860.dtsi"
0012 #include "sc2731.dtsi"
0013 
0014 / {
0015         model = "Spreadtrum SP9860G 3GFHD Board";
0016 
0017         compatible = "sprd,sp9860g-1h10", "sprd,sc9860";
0018 
0019         aliases {
0020                 serial0 = &uart0; /* for Bluetooth */
0021                 serial1 = &uart1; /* UART console */
0022                 serial2 = &uart2; /* Reserved */
0023                 serial3 = &uart3; /* for GPS */
0024                 spi0 = &adi_bus;
0025         };
0026 
0027         memory{
0028                 device_type = "memory";
0029                 reg = <0x0 0x80000000 0 0x60000000>,
0030                       <0x1 0x80000000 0 0x60000000>;
0031         };
0032 
0033         chosen {
0034                 stdout-path = "serial1:115200n8";
0035         };
0036 
0037         reserved-memory {
0038                 #address-cells = <2>;
0039                 #size-cells = <2>;
0040                 ranges;
0041         };
0042 
0043         bat: battery {
0044                 compatible = "simple-battery";
0045                 charge-full-design-microamp-hours = <1900000>;
0046                 charge-term-current-microamp = <120000>;
0047                 constant_charge_voltage_max_microvolt = <4350000>;
0048                 internal-resistance-micro-ohms = <250000>;
0049                 ocv-capacity-celsius = <20>;
0050                 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
0051                         <4022000 85>, <3983000 80>, <3949000 75>,
0052                         <3917000 70>, <3889000 65>, <3864000 60>,
0053                         <3835000 55>, <3805000 50>, <3787000 45>,
0054                         <3777000 40>, <3773000 35>, <3770000 30>,
0055                         <3765000 25>, <3752000 20>, <3724000 15>,
0056                         <3680000 10>, <3605000 5>, <3400000 0>;
0057         };
0058 };
0059 
0060 &uart0 {
0061         status = "okay";
0062 };
0063 
0064 &uart1 {
0065         status = "okay";
0066 };
0067 
0068 &uart2 {
0069         status = "okay";
0070 };
0071 
0072 &uart3 {
0073         status = "okay";
0074 };