xref: /freebsd/sys/contrib/device-tree/src/arm64/sprd/sp9860g-1h10.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot/*
2*c66ec88fSEmmanuel Vadot * Spreadtrum SP9860g board
3*c66ec88fSEmmanuel Vadot *
4*c66ec88fSEmmanuel Vadot * Copyright (C) 2017, Spreadtrum Communications Inc.
5*c66ec88fSEmmanuel Vadot *
6*c66ec88fSEmmanuel Vadot * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7*c66ec88fSEmmanuel Vadot */
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadot/dts-v1/;
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot#include "sc9860.dtsi"
12*c66ec88fSEmmanuel Vadot#include "sc2731.dtsi"
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot/ {
15*c66ec88fSEmmanuel Vadot	model = "Spreadtrum SP9860G 3GFHD Board";
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadot	compatible = "sprd,sp9860g-1h10", "sprd,sc9860";
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot	aliases {
20*c66ec88fSEmmanuel Vadot		serial0 = &uart0; /* for Bluetooth */
21*c66ec88fSEmmanuel Vadot		serial1 = &uart1; /* UART console */
22*c66ec88fSEmmanuel Vadot		serial2 = &uart2; /* Reserved */
23*c66ec88fSEmmanuel Vadot		serial3 = &uart3; /* for GPS */
24*c66ec88fSEmmanuel Vadot		spi0 = &adi_bus;
25*c66ec88fSEmmanuel Vadot	};
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot	memory{
28*c66ec88fSEmmanuel Vadot		device_type = "memory";
29*c66ec88fSEmmanuel Vadot		reg = <0x0 0x80000000 0 0x60000000>,
30*c66ec88fSEmmanuel Vadot		      <0x1 0x80000000 0 0x60000000>;
31*c66ec88fSEmmanuel Vadot	};
32*c66ec88fSEmmanuel Vadot
33*c66ec88fSEmmanuel Vadot	chosen {
34*c66ec88fSEmmanuel Vadot		stdout-path = "serial1:115200n8";
35*c66ec88fSEmmanuel Vadot	};
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot	reserved-memory {
38*c66ec88fSEmmanuel Vadot		#address-cells = <2>;
39*c66ec88fSEmmanuel Vadot		#size-cells = <2>;
40*c66ec88fSEmmanuel Vadot		ranges;
41*c66ec88fSEmmanuel Vadot	};
42*c66ec88fSEmmanuel Vadot
43*c66ec88fSEmmanuel Vadot	bat: battery {
44*c66ec88fSEmmanuel Vadot		compatible = "simple-battery";
45*c66ec88fSEmmanuel Vadot		charge-full-design-microamp-hours = <1900000>;
46*c66ec88fSEmmanuel Vadot		charge-term-current-microamp = <120000>;
47*c66ec88fSEmmanuel Vadot		constant_charge_voltage_max_microvolt = <4350000>;
48*c66ec88fSEmmanuel Vadot		internal-resistance-micro-ohms = <250000>;
49*c66ec88fSEmmanuel Vadot		ocv-capacity-celsius = <20>;
50*c66ec88fSEmmanuel Vadot		ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>,
51*c66ec88fSEmmanuel Vadot			<4022000 85>, <3983000 80>, <3949000 75>,
52*c66ec88fSEmmanuel Vadot			<3917000 70>, <3889000 65>, <3864000 60>,
53*c66ec88fSEmmanuel Vadot			<3835000 55>, <3805000 50>, <3787000 45>,
54*c66ec88fSEmmanuel Vadot			<3777000 40>, <3773000 35>, <3770000 30>,
55*c66ec88fSEmmanuel Vadot			<3765000 25>, <3752000 20>, <3724000 15>,
56*c66ec88fSEmmanuel Vadot			<3680000 10>, <3605000 5>, <3400000 0>;
57*c66ec88fSEmmanuel Vadot	};
58*c66ec88fSEmmanuel Vadot};
59*c66ec88fSEmmanuel Vadot
60*c66ec88fSEmmanuel Vadot&uart0 {
61*c66ec88fSEmmanuel Vadot	status = "okay";
62*c66ec88fSEmmanuel Vadot};
63*c66ec88fSEmmanuel Vadot
64*c66ec88fSEmmanuel Vadot&uart1 {
65*c66ec88fSEmmanuel Vadot	status = "okay";
66*c66ec88fSEmmanuel Vadot};
67*c66ec88fSEmmanuel Vadot
68*c66ec88fSEmmanuel Vadot&uart2 {
69*c66ec88fSEmmanuel Vadot	status = "okay";
70*c66ec88fSEmmanuel Vadot};
71*c66ec88fSEmmanuel Vadot
72*c66ec88fSEmmanuel Vadot&uart3 {
73*c66ec88fSEmmanuel Vadot	status = "okay";
74*c66ec88fSEmmanuel Vadot};
75