Skip to content

Commit

Permalink
UPDATE KIIKA_POWER dts
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowCat6 committed Jun 2, 2018
1 parent 435e20e commit f54df57
Show file tree
Hide file tree
Showing 10 changed files with 4,551 additions and 16 deletions.
54 changes: 42 additions & 12 deletions arch/arm/boot/dts/KIICAA_POWER.dts
Expand Up @@ -4,6 +4,11 @@
#include "mt6580.dtsi"

/ {
pmu {
compatible = "arm,cortex-a7-pmu";
interrupts = <0x0 0x4 0x8 0x0 0x5 0x8 0x0 0x6 0x8 0x0 0x7 0x8>;
};

memory@80000000 {
device_type = "memory";
reg = <0 0x80000000 0 0x1E800000>;
Expand Down Expand Up @@ -80,8 +85,8 @@
atag,videolfb-lcmname= "nt35590_AUO";
};
/* start sensor */
cust_accel@0 {
compatible = "mediatek,cust_mxc400x";
cust_accel@1 {
compatible = "mediatek,mxc400x";
i2c_num = <0x2>;
i2c_addr = <0x15 0x0 0x0 0x0>;
direction = <0x3>;
Expand Down Expand Up @@ -113,10 +118,32 @@
mt-extmem@0 {
compatible = "mediatek,mt-extmem";
};
fingerprint@ {
compatible = "mediatek,fingerprint";
vfingerprint-supply = <0xe>;
pinctrl-names = "default", "state_spi_eint_init", "state_eint_pull_down", "state_eint_pull_disable", "state_spi_rst_low", "state_spi_rst_high", "state_spi_cs_init", "state_spi_ck_init", "state_spi_mosi_init", "state_spi_miso_init";
pinctrl-0 = <&gpiodefault>;
pinctrl-1 = <&spi_int_init>;
pinctrl-2 = <&spi_int_out0>;
pinctrl-3 = <&spi_int_out1>;
pinctrl-4 = <&spi_rst_out0>;
pinctrl-5 = <&spi_int_out1>;
pinctrl-6 = <&spi_cs_init>;
pinctrl-7 = <&spi_ck_init>;
pinctrl-8 = <&spi_mosi_init>;
pinctrl-9 = <&spi_miso_init>;
interrupt-parent = <&eintc>;
interrupts = <0xf 0x2>;
debounce = <0xf 0x0>;
status = "okay";
};

cdfinger_tee {
compatible = "cdfinger,fingerprint_tee";
};
};

#include "KIICAA_POWER_bat_setting.dtsi"

/* mmc start */
&mmc0 {
clk_src = /bits/ 8 <MSDC0_CLKSRC_208MHZ>;
Expand Down Expand Up @@ -932,71 +959,74 @@

/******* SPI FINGERPRINT *******/
&pio {
spi_int_init {
gpiodefault: gpiodefault {
};

spi_int_init: spi_int_init {
pins_cmd_dat {
pins = <PINMUX_GPIO15__FUNC_EINT15>;
slew-rate = <0x0>;
bias-disable;
};
};

spi_int_out0@0 {
spi_int_out0: spi_int_out0@0 {
pins_cmd_dat {
pins = <PINMUX_GPIO15__FUNC_GPIO15>;
slew-rate = <0x1>;
output-low;
};
};

spi_int_out1@1 {
spi_int_out1: spi_int_out1@1 {
pins_cmd_dat {
pins = <PINMUX_GPIO15__FUNC_GPIO15>;
slew-rate = <0x1>;
output-high;
};
};

spi_rst_out0@0 {
spi_rst_out0: spi_rst_out0@0 {
pins_cmd_dat {
pins = <PINMUX_GPIO19__FUNC_GPIO19>;
slew-rate = <0x1>;
output-low;
};
};

spi_rst_out1@1 {
spi_rst_out1: spi_rst_out1@1 {
pins_cmd_dat {
pins = <PINMUX_GPIO19__FUNC_GPIO19>;
slew-rate = <0x1>;
output-high;
};
};

spi_cs_init@0 {
spi_cs_init: spi_cs_init@0 {
pins_cmd_dat {
pins = <PINMUX_GPIO0__FUNC_SPI1_CS>;
slew-rate = <0x1>;
bias-pull-up = <0x0>;
};
};

spi_ck_init@0 {
spi_ck_init: spi_ck_init@0 {
pins_cmd_dat {
pins = <PINMUX_GPIO1__FUNC_SPI1_SCK>;
slew-rate = <0x1>;
bias-pull-up = <0x0>;
};
};

spi_mosi_init@0 {
spi_mosi_init: spi_mosi_init@0 {
pins_cmd_dat {
pins = <PINMUX_GPIO2__FUNC_SPI1_MOSI>;
slew-rate = <0x1>;
bias-pull-up = <0x0>;
};
};

spi_miso_init@0 {
spi_miso_init: spi_miso_init@0 {
pins_cmd_dat {
pins = <PINMUX_GPIO3__FUNC_SPI1_MISO>;
slew-rate = <0x0>;
Expand Down
9 changes: 5 additions & 4 deletions arch/arm/configs/KIICAA_POWER_defconfig
Expand Up @@ -228,6 +228,7 @@ CONFIG_MTK_VIBRATOR=y
CONFIG_MTK_AEE_FEATURE=y
CONFIG_MTK_CHIP=y
CONFIG_TRUSTONIC_TEE_SUPPORT=y
#CONFIG_MICROTRUST_TEE_SUPPORT=y
CONFIG_MTK_SEC_MODEM_NVRAM_ANTI_CLONE=y
CONFIG_MTPROF=y
CONFIG_MTK_RAM_CONSOLE=y
Expand Down Expand Up @@ -296,7 +297,7 @@ CONFIG_LEGACY_PTY_COUNT=16
# CONFIG_DEVKMEM is not set
# CONFIG_HW_RANDOM is not set
CONFIG_I2C=y
#CONFIG_SPI=y
CONFIG_SPI=y
#CONFIG_MTK_SPI=y
CONFIG_POWER_SUPPLY=y
CONFIG_POWER_RESET=y
Expand Down Expand Up @@ -467,9 +468,9 @@ CONFIG_MTK_LCM=y
CONFIG_CUSTOM_KERNEL_LCM="ili9881_hsd_hd720_5p0_hl_t592_otd"

#CONFIG_MTK_KXTJ2_1009_NEW=y
#CONFIG_MTK_MXC400X_NEW=y
#CONFIG_MTK_EPL2182_NEW=y
#CONFIG_MTK_LENS_DW9714AF_SUPPORT=y
CONFIG_MTK_MXC400X_NEW=y
CONFIG_MTK_EPL259X=y
CONFIG_MTK_LENS_DW9714AF_SUPPORT=y
CONFIG_TOUCHSCREEN_MTK_FT5X0X=y
CONFIG_HCT_TP_GESTRUE=y

1 change: 1 addition & 0 deletions drivers/misc/mediatek/alsps/Kconfig
Expand Up @@ -28,5 +28,6 @@ source "drivers/misc/mediatek/alsps/cm36686-new/Kconfig"
source "drivers/misc/mediatek/alsps/cm36558/Kconfig"
source "drivers/misc/mediatek/alsps/APDS9930-new/Kconfig"
source "drivers/misc/mediatek/alsps/EPL2182-new/Kconfig"
source "drivers/misc/mediatek/alsps/epl259x/Kconfig"
source "drivers/misc/mediatek/alsps/stk3x1x-new/Kconfig"
source "drivers/misc/mediatek/alsps/alspshub/Kconfig"
1 change: 1 addition & 0 deletions drivers/misc/mediatek/alsps/Makefile
Expand Up @@ -28,5 +28,6 @@ obj-$(CONFIG_MTK_STK3X1X_NEW) += stk3x1x-new/
obj-$(CONFIG_MTK_RPR410) += rpr410/
obj-$(CONFIG_MTK_TMD2771) += tmd2771/
obj-$(CONFIG_MTK_TMD2771_AUTO) += tmd2771_auto/
obj-$(CONFIG_MTK_EPL259X) += epl259x/
obj-$(CONFIG_MTK_STK3X1X_NEW) += stk3x1x-new/
endif
9 changes: 9 additions & 0 deletions drivers/misc/mediatek/alsps/epl259x/Kconfig
@@ -0,0 +1,9 @@

config MTK_EPL259X
bool "MTK_EPL259X for MediaTek package"
default n
help
It support different type sensor
in this platform. If this option
is set, it will support ambient
and light sensor MTK_EPL259X.
8 changes: 8 additions & 0 deletions drivers/misc/mediatek/alsps/epl259x/Makefile
@@ -0,0 +1,8 @@
ccflags-y += -I$(srctree)/drivers/misc/mediatek/alsps/inc
ccflags-y += -I$(srctree)/drivers/misc/mediatek/hwmon/include
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/mach/

obj-y := epl259x.o

0 comments on commit f54df57

Please sign in to comment.