-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
27,248 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
Configuration files can be found in arch/arm/configs. | ||
|
||
Xperia Z2 D6502/D6503/D6543/L50w => shinano_sirius_defconfig | ||
Xperia Z2 Tablet SGP521/SGP541 => shinano_castor_defconfig | ||
Xperia Z2 Tablet SGP551 => shinano_castor_brazil_defconfig | ||
Xperia Z2 Tablet SGP511/SGP512 => shinano_castor_windy_defconfig | ||
Xperia Z3 D6603/D6653/D6643 => shinano_leo_defconfig | ||
Xperia Z3 Compact D5803/D5833 => shinano_aries_defconfig | ||
Xperia Z3 Tablet Compact SGP621/SGP641 => shinano_scorpion_defconfig | ||
Xperia Z3 Tablet Compact SGP611/SGP612 => shinano_scorpion_windy_defconfig | ||
|
||
|
||
How to build your kernel: | ||
|
||
Prerequisites: | ||
|
||
* ramdisk.img - root fs | ||
|
||
* mkbootimg - boot.img generator | ||
|
||
* dtbTool - DTB combiner | ||
You can obtain it from various trusted sites including https://www.codeaurora.org/ | ||
|
||
* The ARM cross-compiler | ||
We recommend getting the CodeSourcery Lite compiler. | ||
Or, you can also use prebuild executable binary which is included in | ||
standard Android tree. | ||
|
||
|
||
Step 1: Build Your Kernel (zImage) | ||
$ cd kernel | ||
|
||
$ export ARCH=arm | ||
|
||
$ export CROSS_COMPILE=/opt/arm-2010q1/bin/arm-none-eabi- | ||
NOTE: Please set the location and the prefix of the ARM cross-compiler. | ||
|
||
$ make shinano_leo_defconfig | ||
NOTE: Please set a configuration file you want to build. | ||
|
||
$ make | ||
|
||
You can see arch/arm/boot/zImage if you succeed in building the kernel. | ||
|
||
|
||
Step 2: Prepare Device Tree Image (dt.img) | ||
(In the Linux Kernel directory) | ||
$ dtbTool -o dt.img -s 2048 -p scripts/dtc/ arch/arm/boot/ | ||
|
||
|
||
Step 3: Assembling the boot.img | ||
(In the Linux Kernel directory) | ||
$ mkbootimg --cmdline "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0xb7 ehci-hcd.park=3 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y" \ | ||
--base 0x00000000 --kernel arch/arm/boot/zImage --ramdisk ramdisk.img \ | ||
--ramdisk_offset 0x02000000 -o boot.img --dt dt.img --tags_offset 0x01E00000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
arch/arm/boot/dts/qcom/apq8074pro-ab-shinano_castor_windy.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* arch/arm/boot/dts/qcom/apq8074pro-ab-shinano_castor_windy.dts | ||
* | ||
* Copyright (c) 2013, The Linux Foundation. All rights reserved. | ||
* Copyright (C) 2013 Sony Mobile Communications Inc. | ||
* | ||
* Author: Kouhei Fujiya <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 and | ||
* only version 2 as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
/include/ "msm8974pro-ab-pm8941.dtsi" | ||
/include/ "msm8974-mtp.dtsi" | ||
/include/ "msm8974pro-ab-shinano_common.dtsi" | ||
/include/ "msm8974pro-ab-shinano_castor_common.dtsi" | ||
/include/ "apq8074pro-ab-shinano_castor_windy.dtsi" | ||
/include/ "dsi-panel-castor.dtsi" | ||
|
||
/ { | ||
model = "SoMC Castor WINDY"; | ||
compatible = "somc,castor-windy", "qcom,apq8074"; | ||
qcom,board-id = <8 0>, <9 0>; | ||
}; |
64 changes: 64 additions & 0 deletions
64
arch/arm/boot/dts/qcom/apq8074pro-ab-shinano_castor_windy.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* arch/arm/boot/dts/qcom/apq8074pro-ab-shinano_castor_windy.dtsi | ||
* | ||
* Copyright (C) 2013 Sony Mobile Communications Inc. | ||
* | ||
* Author: Kouhei Fujiya <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 and | ||
* only version 2 as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
*/ | ||
|
||
&soc { | ||
/* I2C : BLSP6 */ | ||
i2c@f9928000 { | ||
nfc@28 { | ||
compatible = "nxp,pn547"; | ||
reg = <0x28>; | ||
interrupt-parent = <&msmgpio>; | ||
interrupts = <24 0x1>; | ||
nxp,pvdd_en = <&pm8941_gpios 34 0x01>; | ||
nxp,irq_gpio = <&msmgpio 24 0x00>; | ||
nxp,dwld_en = <&msmgpio 57 0x00>; | ||
nxp,ven = <&pm8941_mpps 2 0x01>; | ||
dynamic_config; | ||
configure_gpio = <&pm8941_gpios 33 0x00>; | ||
configure_mpp = <&pm8941_mpps 2 0x00>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pm8941_gpios { | ||
/* GPIO_9: NC */ | ||
gpio@c800 { | ||
qcom,master-en = <0>; /* Disable */ | ||
status = "ok"; | ||
}; | ||
}; | ||
|
||
&pm8941_mpps { | ||
/* MPP_3: NC (TXDAC0_VREF) */ | ||
mpp@a200 { | ||
qcom,master-en = <0>; /* Disable */ | ||
status = "ok"; | ||
}; | ||
}; | ||
|
||
|
||
&spmi_bus { | ||
qcom,pm8941@1 { | ||
qcom,leds@d800 { | ||
status = "disabled"; | ||
}; | ||
}; | ||
}; | ||
|
||
&pm8941_iadc { | ||
qcom,rsense = <10000000>; | ||
}; | ||
|
31 changes: 31 additions & 0 deletions
31
arch/arm/boot/dts/qcom/apq8074pro-ac-shinano_scorpion_windy.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* arch/arm/boot/dts/qcom/apq8074pro-ac-shinano_scorpion_windy.dts | ||
* | ||
* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. | ||
* Copyright (C) 2014 Sony Mobile Communications AB. | ||
* | ||
* Author: Kouhei Fujiya <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 and | ||
* only version 2 as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
/include/ "msm8974pro-ac-pm8941.dtsi" | ||
/include/ "msm8974-mtp.dtsi" | ||
/include/ "msm8974pro-ac-shinano_common.dtsi" | ||
/include/ "msm8974pro-ac-shinano_scorpion_common.dtsi" | ||
/include/ "apq8074pro-ac-shinano_scorpion_windy.dtsi" | ||
/include/ "dsi-panel-scorpion.dtsi" | ||
|
||
/ { | ||
model = "SoMC Scorpion WINDY"; | ||
compatible = "somc,scorpion-windy", "qcom,apq8074"; | ||
qcom,board-id = <8 0>, <9 0>; | ||
}; |
81 changes: 81 additions & 0 deletions
81
arch/arm/boot/dts/qcom/apq8074pro-ac-shinano_scorpion_windy.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* arch/arm/boot/dts/qcom/apq8074pro-ac-shinano_scorpion_windy.dtsi | ||
* | ||
* Copyright (C) 2014 Sony Mobile Communications AB. | ||
* | ||
* Author: Kouhei Fujiya <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 and | ||
* only version 2 as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
*/ | ||
|
||
&soc { | ||
/* I2C : BLSP6 */ | ||
i2c@f9928000 { | ||
nfc@28 { | ||
compatible = "nxp,pn547"; | ||
reg = <0x28>; | ||
interrupt-parent = <&msmgpio>; | ||
interrupts = <24 0x1>; | ||
nxp,pvdd_en = <&pm8941_gpios 34 0x01>; | ||
nxp,irq_gpio = <&msmgpio 24 0x00>; | ||
nxp,dwld_en = <&msmgpio 57 0x00>; | ||
nxp,ven = <&pm8941_mpps 2 0x01>; | ||
dynamic_config; | ||
configure_gpio = <&pm8941_gpios 33 0x00>; | ||
configure_mpp = <&pm8941_mpps 2 0x00>; | ||
}; | ||
}; | ||
|
||
/* I2C : BLSP11 */ | ||
i2c@f9967000 { | ||
/delete-node/ ad7146@2f; | ||
}; | ||
|
||
gpio_keys { | ||
compatible = "gpio-keys"; | ||
sim_det { | ||
status = "disabled"; | ||
}; | ||
}; | ||
}; | ||
|
||
&pm8941_gpios { | ||
/* GPIO_9: NC */ | ||
gpio@c800 { | ||
qcom,master-en = <0>; /* Disable */ | ||
status = "ok"; | ||
}; | ||
}; | ||
|
||
&pm8941_mpps { | ||
/* MPP_3: NC */ | ||
mpp@a200 { | ||
qcom,master-en = <0>; /* Disable */ | ||
status = "ok"; | ||
}; | ||
}; | ||
|
||
&pm8941_l14 { | ||
status = "disabled"; | ||
}; | ||
|
||
&pm8941_l15 { | ||
status = "disabled"; | ||
}; | ||
|
||
&pm8941_l19 { | ||
status = "disabled"; | ||
}; | ||
|
||
&pm8941_bms { | ||
qcom,battery-vendor-name = "TDK", "SEND", "SANYO-PANASONIC", "LG", "5TH"; | ||
qcom,battery-vendor-adc-min = <1450 1330 1230 1110 960>; | ||
qcom,battery-vendor-adc-max = <1550 1430 1330 1210 1060>; | ||
qcom,battery-vendor-select = <0 1 0 0 0>; | ||
}; |
Oops, something went wrong.