summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHoegeun Kwon <hoegeun.kwon@samsung.com>2016-08-17 15:58:31 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:52:38 +0900
commit4e02b1c22f86fc769bfba96d7b4b1827eb881a21 (patch)
tree17fcc7383bb655121444b04805c30c8ef3900ce4 /arch
parentcb345f2621f8a34d408dfe5be1c4b62779433674 (diff)
arm64: dts: exynos5433: add BCM4773 sensorhub dt node for tm2(e)
Add support for the BCM4773 in the exynos5433 tm2 and tm2e boards as spi_0 nodes. Move the GPIO initialization pins in the board section. Change-Id: Ia4567598527d5169c6669c791fcf40e5d7693b70 Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com> Signed-off-by: Andi Shyti <andi.shyti@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/boot/dts/exynos/exynos5433-tm2.dts82
-rw-r--r--arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts82
2 files changed, 156 insertions, 8 deletions
diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
index 11cfe760f467..7d35f9fc6ca1 100644
--- a/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
+++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2.dts
@@ -175,6 +175,14 @@
};
};
+ gps {
+ compatible = "samsung,exynos54xx-bcm4753";
+ gpios = <&gpg2 0 0x1 &gpa1 0 0xf>;
+ status = "okay";
+ pinctrl-names ="default";
+ pinctrl-0 = <&ssp_gps_pwr_en &ssp_host_wake>;
+ };
+
irda_regulator: irda-regulator {
compatible = "regulator-fixed";
enable-active-high;
@@ -314,6 +322,41 @@
status = "okay";
};
+&spi_0 {
+ cs-gpios = <&gpd8 1 0>;
+ status = "okay";
+
+ bcm4773@0 {
+ compatible = "ssp,BCM4773";
+ reg = <0>;
+ spi-max-frequency = <26000000>;
+ spi-cpol;
+ spi-cpha;
+
+ clocks = <&s2mps13_osc 0>;
+ clock-names = "xtal";
+
+ pinctrl-names ="default";
+ pinctrl-0 = <&ssp_irq &ssp_mcu_req &ssp_mcu_resp>;
+
+ ssp-irq = <&gpa3 3 0x01>;
+ ssp-mcu-req = <&gpf2 3 0x01>;
+ ssp-mcu-resp = <&gpf2 2 0x00>;
+ ssp-acc-position = <5>;
+ ssp-mag-position = <3>;
+ ssp-sns-combination = <0>;
+ ssp,prox-hi_thresh = <130>;
+ ssp,prox-low_thresh = <90>;
+ ssp-ap-rev = <1>;
+ ssp-mag-array = <10196 176 (-21) 516 10378 20 (-774) 1027 9454>;
+ ssp-hw-rev = <9>;
+
+ controller-data {
+ samsung,spi-feedback-delay = <0>;
+ };
+ };
+};
+
&spi_1 {
cs-gpios = <&gpd6 3 0>; /* CODEC_SPI_SSN */
status = "okay";
@@ -1323,7 +1366,6 @@
PIN(IN, gpa3-0, DOWN, LV1); /* HDMI_HPD */
PIN(IN, gpa3-1, DOWN, LV1); /* PWRRST_D_N */
PIN(IN, gpa3-2, NONE, LV1); /* TOUCH_INT */
- PIN(IN, gpa3-3, DOWN, LV1); /* MCU_HOST_REQ */
PIN(IN, gpa3-4, NONE, LV1); /* AMP_INT_R */
PIN(IN, gpa3-5, DOWN, LV1); /* WCINOKB */
PIN(IN, gpa3-6, DOWN, LV1); /* COVER_DET */
@@ -1339,8 +1381,6 @@
PIN(IN, gpf2-0, DOWN, LV1); /* TSP_ID */
PIN(IN, gpf2-1, DOWN, LV1); /* OCTA_ID */
- PIN(IN, gpf2-2, DOWN, LV1); /* MCU_AP_INT_2_1.8V */
- PIN(IN, gpf2-3, DOWN, LV1); /* AP_MCU_INT_1.8V */
PIN(IN, gpf3-0, DOWN, LV1); /* NC */
PIN(IN, gpf3-1, DOWN, LV1); /* WLAN_HOST_WAKE */
@@ -1495,7 +1535,6 @@
PIN(IN, gpg1-3, DOWN, LV1); /* NC */
PIN(IN, gpg1-4, DOWN, LV1); /* NC */
- PIN(IN, gpg2-0, DOWN, LV1); /* GPS_HUB_EN */
PIN(IN, gpg2-1, DOWN, LV1); /* PDA_ACTIVE */
PIN(IN, gpg3-0, DOWN, LV1); /* NC */
@@ -1535,6 +1574,13 @@
samsung,pin-pud = <1>;
samsung,pin-drv = <2>;
};
+
+ ssp_gps_pwr_en: ssp-gps-pwr-en {
+ samsung,pins = "gpg2-0";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <1>;
+ samsung,pin-drv = <3>;
+ };
};
&pinctrl_touch {
@@ -1547,6 +1593,34 @@
};
&pinctrl_alive {
+ ssp_irq: ssp-irq {
+ samsung,pins = "gpa3-3";
+ samsung,pin-function = <0xf>;
+ samsung,pin-pud = <1>;
+ samsung,pin-drv = <3>;
+ };
+
+ ssp_mcu_req: ssp-mcu-req {
+ samsung,pins = "gpf2-3";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <1>;
+ samsung,pin-drv = <3>;
+ };
+
+ ssp_mcu_resp: ssp-mcu-resp {
+ samsung,pins = "gpf2-2";
+ samsung,pin-function = <0>;
+ samsung,pin-pud = <3>;
+ samsung,pin-drv = <3>;
+ };
+
+ ssp_host_wake: ssp-host-wake {
+ samsung,pins = "gpa1-0";
+ samsung,pin-function = <0>;
+ samsung,pin-pud = <3>;
+ samsung,pin-drv = <3>;
+ };
+
te_irq: te_irq {
samsung,pins = "gpf1-3";
samsung,pin-function = <0xf>;
diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts b/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts
index 6299cf7482ce..34e009154aba 100644
--- a/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts
+++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2e.dts
@@ -175,6 +175,14 @@
};
};
+ gps {
+ compatible = "samsung,exynos54xx-bcm4753";
+ gpios = <&gpg2 0 0x1 &gpa1 0 0xf>;
+ status = "okay";
+ pinctrl-names ="default";
+ pinctrl-0 = <&ssp_gps_pwr_en &ssp_host_wake>;
+ };
+
irda_regulator: irda-regulator {
compatible = "regulator-fixed";
enable-active-high;
@@ -314,6 +322,41 @@
status = "okay";
};
+&spi_0 {
+ cs-gpios = <&gpd8 1 0>;
+ status = "okay";
+
+ bcm4773@0 {
+ compatible = "ssp,BCM4773";
+ reg = <0>;
+ spi-max-frequency = <26000000>;
+ spi-cpol;
+ spi-cpha;
+
+ clocks = <&s2mps13_osc 0>;
+ clock-names = "xtal";
+
+ pinctrl-names ="default";
+ pinctrl-0 = <&ssp_irq &ssp_mcu_req &ssp_mcu_resp>;
+
+ ssp-irq = <&gpa3 3 0x01>;
+ ssp-mcu-req = <&gpf2 3 0x01>;
+ ssp-mcu-resp = <&gpf2 2 0x00>;
+ ssp-acc-position = <5>;
+ ssp-mag-position = <3>;
+ ssp-sns-combination = <0>;
+ ssp,prox-hi_thresh = <130>;
+ ssp,prox-low_thresh = <90>;
+ ssp-ap-rev = <1>;
+ ssp-mag-array = <10196 176 (-21) 516 10378 20 (-774) 1027 9454>;
+ ssp-hw-rev = <9>;
+
+ controller-data {
+ samsung,spi-feedback-delay = <0>;
+ };
+ };
+};
+
&spi_1 {
cs-gpios = <&gpd6 3 0>; /* CODEC_SPI_SSN */
status = "okay";
@@ -1309,7 +1352,6 @@
PIN(IN, gpa3-0, DOWN, LV1); /* HDMI_HPD */
PIN(IN, gpa3-1, DOWN, LV1); /* PWRRST_D_N */
PIN(IN, gpa3-2, NONE, LV1); /* TOUCH_INT */
- PIN(IN, gpa3-3, DOWN, LV1); /* MCU_HOST_REQ */
PIN(IN, gpa3-4, NONE, LV1); /* AMP_INT_R */
PIN(IN, gpa3-5, DOWN, LV1); /* WCINOKB */
PIN(IN, gpa3-6, DOWN, LV1); /* COVER_DET */
@@ -1325,8 +1367,6 @@
PIN(IN, gpf2-0, DOWN, LV1); /* TSP_ID */
PIN(IN, gpf2-1, DOWN, LV1); /* OCTA_ID */
- PIN(IN, gpf2-2, DOWN, LV1); /* MCU_AP_INT_2_1.8V */
- PIN(IN, gpf2-3, DOWN, LV1); /* AP_MCU_INT_1.8V */
PIN(IN, gpf3-0, DOWN, LV1); /* NC */
PIN(IN, gpf3-1, DOWN, LV1); /* WLAN_HOST_WAKE */
@@ -1481,7 +1521,6 @@
PIN(IN, gpg1-3, DOWN, LV1); /* NC */
PIN(IN, gpg1-4, DOWN, LV1); /* NC */
- PIN(IN, gpg2-0, DOWN, LV1); /* GPS_HUB_EN */
PIN(IN, gpg2-1, DOWN, LV1); /* PDA_ACTIVE */
PIN(IN, gpg3-0, DOWN, LV1); /* NC */
@@ -1521,6 +1560,13 @@
samsung,pin-pud = <1>;
samsung,pin-drv = <2>;
};
+
+ ssp_gps_pwr_en: ssp-gps-pwr-en {
+ samsung,pins = "gpg2-0";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <1>;
+ samsung,pin-drv = <3>;
+ };
};
&pinctrl_touch {
@@ -1533,6 +1579,34 @@
};
&pinctrl_alive {
+ ssp_irq: ssp-irq {
+ samsung,pins = "gpa3-3";
+ samsung,pin-function = <0xf>;
+ samsung,pin-pud = <1>;
+ samsung,pin-drv = <3>;
+ };
+
+ ssp_mcu_req: ssp-mcu-req {
+ samsung,pins = "gpf2-3";
+ samsung,pin-function = <1>;
+ samsung,pin-pud = <1>;
+ samsung,pin-drv = <3>;
+ };
+
+ ssp_mcu_resp: ssp-mcu-resp {
+ samsung,pins = "gpf2-2";
+ samsung,pin-function = <0>;
+ samsung,pin-pud = <3>;
+ samsung,pin-drv = <3>;
+ };
+
+ ssp_host_wake: ssp-host-wake {
+ samsung,pins = "gpa1-0";
+ samsung,pin-function = <0>;
+ samsung,pin-pud = <3>;
+ samsung,pin-drv = <3>;
+ };
+
te_irq: te_irq {
samsung,pins = "gpf1-3";
samsung,pin-function = <0xf>;