Skip to content

Commit

Permalink
arm: msm: Add Shinano platform
Browse files Browse the repository at this point in the history
  • Loading branch information
kholk committed Jan 17, 2015
1 parent 28fd5f0 commit 60e1a24
Show file tree
Hide file tree
Showing 87 changed files with 27,248 additions and 76 deletions.
56 changes: 56 additions & 0 deletions README_Xperia
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

37 changes: 9 additions & 28 deletions arch/arm/boot/dts/qcom/Makefile
Original file line number Diff line number Diff line change
@@ -1,33 +1,14 @@
ifeq ($(CONFIG_OF),y)

dtb-$(CONFIG_ARCH_MSM8974) += msm8974-v1-cdp.dtb \
msm8974-v1-fluid.dtb \
msm8974-v1-liquid.dtb \
msm8974-v1-mtp.dtb \
msm8974-v1-rumi.dtb \
msm8974-v1-sim.dtb \
msm8974-v2.0-1-cdp.dtb \
msm8974-v2.0-1-fluid.dtb \
msm8974-v2.0-1-liquid.dtb \
msm8974-v2.0-1-mtp.dtb \
apq8074-v2.0-1-cdp.dtb \
apq8074-v2.0-1-liquid.dtb \
apq8074-v2.0-1-dragonboard.dtb \
apq8074-v2.2-cdp.dtb \
apq8074-v2.2-liquid.dtb \
apq8074-v2.2-dragonboard.dtb \
msm8974-v2.2-cdp.dtb \
msm8974-v2.2-fluid.dtb \
msm8974-v2.2-liquid.dtb \
msm8974-v2.2-mtp.dtb \
msm8974pro-ab-pm8941-cdp.dtb \
msm8974pro-ab-pm8941-fluid.dtb \
msm8974pro-ab-pm8941-liquid.dtb \
msm8974pro-ab-pm8941-mtp.dtb \
msm8974pro-ac-pm8941-cdp.dtb \
msm8974pro-ac-pm8941-liquid.dtb \
msm8974pro-ac-pm8941-mtp.dtb \
msm8974pro-ac-pma8084-pm8941-mtp.dtb
# MSM8974
dtb-$(CONFIG_MACH_SONY_SIRIUS) += msm8974pro-ab-shinano_sirius.dtb
dtb-$(CONFIG_MACH_SONY_CASTOR) += msm8974pro-ab-shinano_castor.dtb
dtb-$(CONFIG_MACH_SONY_CASTOR_WINDY) += apq8074pro-ab-shinano_castor_windy.dtb
dtb-$(CONFIG_MACH_SONY_LEO) += msm8974pro-ac-shinano_leo.dtb
dtb-$(CONFIG_MACH_SONY_ARIES) += msm8974pro-ac-shinano_aries.dtb
dtb-$(CONFIG_MACH_SONY_SCORPION) += msm8974pro-ac-shinano_scorpion.dtb
dtb-$(CONFIG_MACH_SONY_SCORPION_WINDY) += apq8074pro-ac-shinano_scorpion_windy.dtb
# Other
dtb-$(CONFIG_ARCH_MSM8916) += msm8916-sim.dtb \
msm8916-rumi.dtb
dtb-$(CONFIG_ARCH_MSM8226) += msm8226-sim.dtb \
Expand Down
31 changes: 31 additions & 0 deletions arch/arm/boot/dts/qcom/apq8074pro-ab-shinano_castor_windy.dts
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 arch/arm/boot/dts/qcom/apq8074pro-ab-shinano_castor_windy.dtsi
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 arch/arm/boot/dts/qcom/apq8074pro-ac-shinano_scorpion_windy.dts
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 arch/arm/boot/dts/qcom/apq8074pro-ac-shinano_scorpion_windy.dtsi
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>;
};
Loading

0 comments on commit 60e1a24

Please sign in to comment.