1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) << 2 /* 1 /* 3 * Spreadtrum SP9860g board 2 * Spreadtrum SP9860g board 4 * 3 * 5 * Copyright (C) 2017, Spreadtrum Communicatio 4 * Copyright (C) 2017, Spreadtrum Communications Inc. >> 5 * >> 6 * SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 */ 7 */ 7 8 8 /dts-v1/; 9 /dts-v1/; 9 10 10 #include "sc9860.dtsi" 11 #include "sc9860.dtsi" 11 #include "sc2731.dtsi" 12 #include "sc2731.dtsi" 12 13 13 / { 14 / { 14 model = "Spreadtrum SP9860G 3GFHD Boar 15 model = "Spreadtrum SP9860G 3GFHD Board"; 15 16 16 compatible = "sprd,sp9860g-1h10", "spr 17 compatible = "sprd,sp9860g-1h10", "sprd,sc9860"; 17 18 18 aliases { 19 aliases { 19 serial0 = &uart0; /* for Bluet 20 serial0 = &uart0; /* for Bluetooth */ 20 serial1 = &uart1; /* UART cons 21 serial1 = &uart1; /* UART console */ 21 serial2 = &uart2; /* Reserved 22 serial2 = &uart2; /* Reserved */ 22 serial3 = &uart3; /* for GPS * 23 serial3 = &uart3; /* for GPS */ 23 spi0 = &adi_bus; 24 spi0 = &adi_bus; 24 }; 25 }; 25 26 26 memory@80000000 { 27 memory@80000000 { 27 device_type = "memory"; 28 device_type = "memory"; 28 reg = <0x0 0x80000000 0 0x6000 29 reg = <0x0 0x80000000 0 0x60000000>, 29 <0x1 0x80000000 0 0x6000 30 <0x1 0x80000000 0 0x60000000>; 30 }; 31 }; 31 32 32 chosen { 33 chosen { 33 stdout-path = "serial1:115200n 34 stdout-path = "serial1:115200n8"; 34 }; 35 }; 35 36 36 gpio-keys { 37 gpio-keys { 37 compatible = "gpio-keys"; 38 compatible = "gpio-keys"; 38 39 39 key-volumedown { 40 key-volumedown { 40 label = "Volume Down K 41 label = "Volume Down Key"; 41 linux,code = <KEY_VOLU 42 linux,code = <KEY_VOLUMEDOWN>; 42 gpios = <&eic_debounce 43 gpios = <&eic_debounce 2 GPIO_ACTIVE_LOW>; 43 debounce-interval = <2 44 debounce-interval = <2>; 44 wakeup-source; 45 wakeup-source; 45 }; 46 }; 46 47 47 key-volumeup { 48 key-volumeup { 48 label = "Volume Up Key 49 label = "Volume Up Key"; 49 linux,code = <KEY_VOLU 50 linux,code = <KEY_VOLUMEUP>; 50 gpios = <&pmic_eic 10 51 gpios = <&pmic_eic 10 GPIO_ACTIVE_HIGH>; 51 debounce-interval = <2 52 debounce-interval = <2>; 52 wakeup-source; 53 wakeup-source; 53 }; 54 }; 54 55 55 key-power { 56 key-power { 56 label = "Power Key"; 57 label = "Power Key"; 57 linux,code = <KEY_POWE 58 linux,code = <KEY_POWER>; 58 gpios = <&pmic_eic 1 G 59 gpios = <&pmic_eic 1 GPIO_ACTIVE_HIGH>; 59 debounce-interval = <2 60 debounce-interval = <2>; 60 wakeup-source; 61 wakeup-source; 61 }; 62 }; 62 }; 63 }; 63 64 64 reserved-memory { 65 reserved-memory { 65 #address-cells = <2>; 66 #address-cells = <2>; 66 #size-cells = <2>; 67 #size-cells = <2>; 67 ranges; 68 ranges; 68 }; 69 }; 69 70 70 bat: battery { 71 bat: battery { 71 compatible = "simple-battery"; 72 compatible = "simple-battery"; 72 charge-full-design-microamp-ho 73 charge-full-design-microamp-hours = <1900000>; 73 charge-term-current-microamp = 74 charge-term-current-microamp = <120000>; 74 constant_charge_voltage_max_mi 75 constant_charge_voltage_max_microvolt = <4350000>; 75 internal-resistance-micro-ohms 76 internal-resistance-micro-ohms = <250000>; 76 ocv-capacity-celsius = <20>; 77 ocv-capacity-celsius = <20>; 77 ocv-capacity-table-0 = <418500 78 ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>, 78 <4022000 85>, <3983000 79 <4022000 85>, <3983000 80>, <3949000 75>, 79 <3917000 70>, <3889000 80 <3917000 70>, <3889000 65>, <3864000 60>, 80 <3835000 55>, <3805000 81 <3835000 55>, <3805000 50>, <3787000 45>, 81 <3777000 40>, <3773000 82 <3777000 40>, <3773000 35>, <3770000 30>, 82 <3765000 25>, <3752000 83 <3765000 25>, <3752000 20>, <3724000 15>, 83 <3680000 10>, <3605000 84 <3680000 10>, <3605000 5>, <3400000 0>; 84 }; 85 }; 85 }; 86 }; 86 87 87 &uart0 { 88 &uart0 { 88 status = "okay"; 89 status = "okay"; 89 }; 90 }; 90 91 91 &uart1 { 92 &uart1 { 92 status = "okay"; 93 status = "okay"; 93 }; 94 }; 94 95 95 &uart2 { 96 &uart2 { 96 status = "okay"; 97 status = "okay"; 97 }; 98 }; 98 99 99 &uart3 { 100 &uart3 { 100 status = "okay"; 101 status = "okay"; 101 }; 102 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.