xref: /linux/arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts (revision 9f2c9170934eace462499ba0bfe042cc72900173)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 Hardkernel Co., Ltd
4 * Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH
5 * Copyright (c) 2022 Maya Matuszczyk <maccraft123mc@gmail.com>
6 */
7
8/dts-v1/;
9#include "rk3326-odroid-go.dtsi"
10
11/ {
12	model = "ODROID-GO Advance";
13	compatible = "hardkernel,rk3326-odroid-go2", "rockchip,rk3326";
14
15	analog_sticks: adc-joystick {
16		compatible = "adc-joystick";
17		io-channels = <&saradc 1>,
18			      <&saradc 2>;
19		poll-interval = <60>;
20		#address-cells = <1>;
21		#size-cells = <0>;
22
23		axis@0 {
24			reg = <0>;
25			abs-flat = <10>;
26			abs-fuzz = <10>;
27			abs-range = <172 772>;
28			linux,code = <ABS_X>;
29		};
30
31		axis@1 {
32			reg = <1>;
33			abs-flat = <10>;
34			abs-fuzz = <10>;
35			abs-range = <278 815>;
36			linux,code = <ABS_Y>;
37		};
38	};
39
40	battery: battery {
41		compatible = "simple-battery";
42		charge-full-design-microamp-hours = <3000000>;
43		charge-term-current-microamp = <300000>;
44		constant-charge-current-max-microamp = <2000000>;
45		constant-charge-voltage-max-microvolt = <4200000>;
46		factory-internal-resistance-micro-ohms = <180000>;
47		voltage-max-design-microvolt = <4100000>;
48		voltage-min-design-microvolt = <3500000>;
49
50		ocv-capacity-celsius = <20>;
51		ocv-capacity-table-0 =  <4046950 100>, <4001920 95>, <3967900 90>, <3919950 85>,
52					<3888450 80>, <3861850 75>, <3831540 70>, <3799130 65>,
53					<3768190 60>, <3745650 55>, <3726610 50>, <3711630 45>,
54					<3696720 40>, <3685660 35>, <3674950 30>, <3663050 25>,
55					<3649470 20>, <3635260 15>, <3616920 10>, <3592440 5>,
56					<3574170 0>;
57	};
58};
59
60&internal_display {
61	compatible = "elida,kd35t133";
62};
63
64&rk817_charger {
65	monitored-battery = <&battery>;
66};
67