1*a4b3f197SStanislav Jakubek// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 23c0e3abdSOrson Zhai/* 33c0e3abdSOrson Zhai * Spreadtrum SP9860g board 43c0e3abdSOrson Zhai * 53c0e3abdSOrson Zhai * Copyright (C) 2017, Spreadtrum Communications Inc. 63c0e3abdSOrson Zhai */ 73c0e3abdSOrson Zhai 83c0e3abdSOrson Zhai/dts-v1/; 93c0e3abdSOrson Zhai 103c0e3abdSOrson Zhai#include "sc9860.dtsi" 119f068ac8SBaolin Wang#include "sc2731.dtsi" 123c0e3abdSOrson Zhai 133c0e3abdSOrson Zhai/ { 143c0e3abdSOrson Zhai model = "Spreadtrum SP9860G 3GFHD Board"; 153c0e3abdSOrson Zhai 163c0e3abdSOrson Zhai compatible = "sprd,sp9860g-1h10", "sprd,sc9860"; 173c0e3abdSOrson Zhai 183c0e3abdSOrson Zhai aliases { 193c0e3abdSOrson Zhai serial0 = &uart0; /* for Bluetooth */ 203c0e3abdSOrson Zhai serial1 = &uart1; /* UART console */ 213c0e3abdSOrson Zhai serial2 = &uart2; /* Reserved */ 223c0e3abdSOrson Zhai serial3 = &uart3; /* for GPS */ 23e254460aSBaolin Wang spi0 = &adi_bus; 243c0e3abdSOrson Zhai }; 253c0e3abdSOrson Zhai 265c04a5b0SRob Herring memory@80000000 { 273c0e3abdSOrson Zhai device_type = "memory"; 283c0e3abdSOrson Zhai reg = <0x0 0x80000000 0 0x60000000>, 293c0e3abdSOrson Zhai <0x1 0x80000000 0 0x60000000>; 303c0e3abdSOrson Zhai }; 313c0e3abdSOrson Zhai 323c0e3abdSOrson Zhai chosen { 333c0e3abdSOrson Zhai stdout-path = "serial1:115200n8"; 343c0e3abdSOrson Zhai }; 353c0e3abdSOrson Zhai 3674be4a8dSKrzysztof Kozlowski gpio-keys { 3774be4a8dSKrzysztof Kozlowski compatible = "gpio-keys"; 3874be4a8dSKrzysztof Kozlowski 3974be4a8dSKrzysztof Kozlowski key-volumedown { 4074be4a8dSKrzysztof Kozlowski label = "Volume Down Key"; 4174be4a8dSKrzysztof Kozlowski linux,code = <KEY_VOLUMEDOWN>; 4274be4a8dSKrzysztof Kozlowski gpios = <&eic_debounce 2 GPIO_ACTIVE_LOW>; 4374be4a8dSKrzysztof Kozlowski debounce-interval = <2>; 4474be4a8dSKrzysztof Kozlowski wakeup-source; 4574be4a8dSKrzysztof Kozlowski }; 4674be4a8dSKrzysztof Kozlowski 4774be4a8dSKrzysztof Kozlowski key-volumeup { 4874be4a8dSKrzysztof Kozlowski label = "Volume Up Key"; 4974be4a8dSKrzysztof Kozlowski linux,code = <KEY_VOLUMEUP>; 5074be4a8dSKrzysztof Kozlowski gpios = <&pmic_eic 10 GPIO_ACTIVE_HIGH>; 5174be4a8dSKrzysztof Kozlowski debounce-interval = <2>; 5274be4a8dSKrzysztof Kozlowski wakeup-source; 5374be4a8dSKrzysztof Kozlowski }; 5474be4a8dSKrzysztof Kozlowski 5574be4a8dSKrzysztof Kozlowski key-power { 5674be4a8dSKrzysztof Kozlowski label = "Power Key"; 5774be4a8dSKrzysztof Kozlowski linux,code = <KEY_POWER>; 5874be4a8dSKrzysztof Kozlowski gpios = <&pmic_eic 1 GPIO_ACTIVE_HIGH>; 5974be4a8dSKrzysztof Kozlowski debounce-interval = <2>; 6074be4a8dSKrzysztof Kozlowski wakeup-source; 6174be4a8dSKrzysztof Kozlowski }; 6274be4a8dSKrzysztof Kozlowski }; 6374be4a8dSKrzysztof Kozlowski 643c0e3abdSOrson Zhai reserved-memory { 653c0e3abdSOrson Zhai #address-cells = <2>; 663c0e3abdSOrson Zhai #size-cells = <2>; 673c0e3abdSOrson Zhai ranges; 683c0e3abdSOrson Zhai }; 69a4795409SBaolin Wang 70a4795409SBaolin Wang bat: battery { 71a4795409SBaolin Wang compatible = "simple-battery"; 72a4795409SBaolin Wang charge-full-design-microamp-hours = <1900000>; 73a4795409SBaolin Wang charge-term-current-microamp = <120000>; 74a4795409SBaolin Wang constant_charge_voltage_max_microvolt = <4350000>; 75a4795409SBaolin Wang internal-resistance-micro-ohms = <250000>; 76a4795409SBaolin Wang ocv-capacity-celsius = <20>; 77a4795409SBaolin Wang ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>, 78a4795409SBaolin Wang <4022000 85>, <3983000 80>, <3949000 75>, 79a4795409SBaolin Wang <3917000 70>, <3889000 65>, <3864000 60>, 80a4795409SBaolin Wang <3835000 55>, <3805000 50>, <3787000 45>, 81a4795409SBaolin Wang <3777000 40>, <3773000 35>, <3770000 30>, 82a4795409SBaolin Wang <3765000 25>, <3752000 20>, <3724000 15>, 83a4795409SBaolin Wang <3680000 10>, <3605000 5>, <3400000 0>; 84a4795409SBaolin Wang }; 853c0e3abdSOrson Zhai}; 863c0e3abdSOrson Zhai 873c0e3abdSOrson Zhai&uart0 { 883c0e3abdSOrson Zhai status = "okay"; 893c0e3abdSOrson Zhai}; 903c0e3abdSOrson Zhai 913c0e3abdSOrson Zhai&uart1 { 923c0e3abdSOrson Zhai status = "okay"; 933c0e3abdSOrson Zhai}; 943c0e3abdSOrson Zhai 953c0e3abdSOrson Zhai&uart2 { 963c0e3abdSOrson Zhai status = "okay"; 973c0e3abdSOrson Zhai}; 983c0e3abdSOrson Zhai 993c0e3abdSOrson Zhai&uart3 { 1003c0e3abdSOrson Zhai status = "okay"; 1013c0e3abdSOrson Zhai}; 102