aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2017-06-19 01:28:48 -0400
committerOlof Johansson <olof@lixom.net>2017-06-19 01:28:48 -0400
commit9d03b29694638a61879fcaddcdf8992d00cc9dcc (patch)
treedbfe7448d7b95955c719ac41d21c613a20b2bf34
parente4b79c3b6b24173ccc2873abd249dcf3ea3f2011 (diff)
parent20afb8ec093ad71d72656a4714673b1021ea5876 (diff)
Merge tag 'qcom-arm64-for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux into next/dt64
Qualcomm ARM64 Updates for v4.13 * Fix APQ8016 SBC WLAN LED * Add MSM8996 CPU node * Add MSM8992 SMEM and fixed regulator * Fixup MSM8916 USB support * tag 'qcom-arm64-for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux: arm64: dts: apq8016-sbc: Correct WLAN LED default-trigger arm64: dts: msm8996: Add CPU clock controller node arm64: dts: smem enablement for msm8992 arm64: dts: msm8992 add fixed regulator arm64: dts: qcom: Collapse usb support into one node Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi36
-rw-r--r--arch/arm64/boot/dts/qcom/msm8916.dtsi62
-rw-r--r--arch/arm64/boot/dts/qcom/msm8992.dtsi53
-rw-r--r--arch/arm64/boot/dts/qcom/msm8996.dtsi6
4 files changed, 107 insertions, 50 deletions
diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
index a17f5b9a5de6..bd310ac1967a 100644
--- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
@@ -178,7 +178,7 @@
178 led@5 { 178 led@5 {
179 label = "apq8016-sbc:yellow:wlan"; 179 label = "apq8016-sbc:yellow:wlan";
180 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>; 180 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
181 linux,default-trigger = "wlan"; 181 linux,default-trigger = "phy0tx";
182 default-state = "off"; 182 default-state = "off";
183 }; 183 };
184 184
@@ -215,22 +215,16 @@
215 usb@78d9000 { 215 usb@78d9000 {
216 extcon = <&usb_id>, <&usb_id>; 216 extcon = <&usb_id>, <&usb_id>;
217 status = "okay"; 217 status = "okay";
218 }; 218 adp-disable;
219 219 hnp-disable;
220 ehci@78d9000 { 220 srp-disable;
221 status = "okay"; 221 ulpi {
222 }; 222 phy {
223 223 v1p8-supply = <&pm8916_l7>;
224 phy@78d9000 { 224 v3p3-supply = <&pm8916_l13>;
225 v1p8-supply = <&pm8916_l7>; 225 extcon = <&usb_id>;
226 v3p3-supply = <&pm8916_l13>; 226 };
227 vddcx-supply = <&pm8916_s1>; 227 };
228 extcon = <&usb_id>, <&usb_id>;
229 dr_mode = "otg";
230 status = "okay";
231 switch-gpio = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>;
232 pinctrl-names = "default";
233 pinctrl-0 = <&usb_sw_sel_pm>;
234 }; 228 };
235 229
236 lpass@07708000 { 230 lpass@07708000 {
@@ -348,6 +342,14 @@
348 pinctrl-0 = <&usb_id_default>; 342 pinctrl-0 = <&usb_id_default>;
349 }; 343 };
350 344
345 usb-switch {
346 compatible = "toshiba,tc7usb40mu";
347 switch-gpios = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>;
348 extcon = <&usb_id>;
349 pinctrl-names = "default";
350 pinctrl-0 = <&usb_sw_sel_pm>;
351 };
352
351 hdmi-out { 353 hdmi-out {
352 compatible = "hdmi-connector"; 354 compatible = "hdmi-connector";
353 type = "a"; 355 type = "a";
diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index ab3093995ded..c963ef2ec5f5 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -546,44 +546,40 @@
546 status = "disabled"; 546 status = "disabled";
547 }; 547 };
548 548
549 usb_dev: usb@78d9000 { 549 otg: usb@78d9000 {
550 compatible = "qcom,ci-hdrc"; 550 compatible = "qcom,ci-hdrc";
551 reg = <0x78d9000 0x400>; 551 reg = <0x78d9000 0x200>,
552 dr_mode = "peripheral"; 552 <0x78d9200 0x200>;
553 interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
554 usb-phy = <&usb_otg>;
555 status = "disabled";
556 };
557
558 usb_host: ehci@78d9000 {
559 compatible = "qcom,ehci-host";
560 reg = <0x78d9000 0x400>;
561 interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
562 usb-phy = <&usb_otg>;
563 status = "disabled";
564 };
565
566 usb_otg: phy@78d9000 {
567 compatible = "qcom,usb-otg-snps";
568 reg = <0x78d9000 0x400>;
569 interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>, 553 interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
570 <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>; 554 <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
571
572 qcom,vdd-levels = <500000 1000000 1320000>;
573 qcom,phy-init-sequence = <0x44 0x6B 0x24 0x13>;
574 dr_mode = "peripheral";
575 qcom,otg-control = <2>; // PMIC
576 qcom,manual-pullup;
577
578 clocks = <&gcc GCC_USB_HS_AHB_CLK>, 555 clocks = <&gcc GCC_USB_HS_AHB_CLK>,
579 <&gcc GCC_USB_HS_SYSTEM_CLK>, 556 <&gcc GCC_USB_HS_SYSTEM_CLK>;
580 <&gcc GCC_USB2A_PHY_SLEEP_CLK>; 557 clock-names = "iface", "core";
581 clock-names = "iface", "core", "sleep"; 558 assigned-clocks = <&gcc GCC_USB_HS_SYSTEM_CLK>;
582 559 assigned-clock-rates = <80000000>;
583 resets = <&gcc GCC_USB2A_PHY_BCR>, 560 resets = <&gcc GCC_USB_HS_BCR>;
584 <&gcc GCC_USB_HS_BCR>; 561 reset-names = "core";
585 reset-names = "phy", "link"; 562 phy_type = "ulpi";
563 dr_mode = "otg";
564 ahb-burst-config = <0>;
565 phy-names = "usb-phy";
566 phys = <&usb_hs_phy>;
586 status = "disabled"; 567 status = "disabled";
568 #reset-cells = <1>;
569
570 ulpi {
571 usb_hs_phy: phy {
572 compatible = "qcom,usb-hs-phy-msm8916",
573 "qcom,usb-hs-phy";
574 #phy-cells = <0>;
575 clocks = <&xo_board>, <&gcc GCC_USB2A_PHY_SLEEP_CLK>;
576 clock-names = "ref", "sleep";
577 resets = <&gcc GCC_USB2A_PHY_BCR>, <&otg 0>;
578 reset-names = "phy", "por";
579 qcom,init-seq = /bits/ 8 <0x0 0x44
580 0x1 0x6b 0x2 0x24 0x3 0x13>;
581 };
582 };
587 }; 583 };
588 584
589 intc: interrupt-controller@b000000 { 585 intc: interrupt-controller@b000000 {
diff --git a/arch/arm64/boot/dts/qcom/msm8992.dtsi b/arch/arm64/boot/dts/qcom/msm8992.dtsi
index 44b2d37d8c4b..171578747ed0 100644
--- a/arch/arm64/boot/dts/qcom/msm8992.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8992.dtsi
@@ -68,6 +68,30 @@
68 clock-frequency = <32768>; 68 clock-frequency = <32768>;
69 }; 69 };
70 70
71 vreg_vph_pwr: vreg-vph-pwr {
72 compatible = "regulator-fixed";
73 status = "okay";
74 regulator-name = "vph-pwr";
75
76 regulator-min-microvolt = <3600000>;
77 regulator-max-microvolt = <3600000>;
78
79 regulator-always-on;
80 };
81
82 sfpb_mutex: hwmutex {
83 compatible = "qcom,sfpb-mutex";
84 syscon = <&sfpb_mutex_regs 0x0 0x100>;
85 #hwlock-cells = <1>;
86 };
87
88 smem {
89 compatible = "qcom,smem";
90 memory-region = <&smem_region>;
91 qcom,rpm-msg-ram = <&rpm_msg_ram>;
92 hwlocks = <&sfpb_mutex 3>;
93 };
94
71 soc { 95 soc {
72 #address-cells = <1>; 96 #address-cells = <1>;
73 #size-cells = <1>; 97 #size-cells = <1>;
@@ -82,6 +106,11 @@
82 <0xf9002000 0x1000>; 106 <0xf9002000 0x1000>;
83 }; 107 };
84 108
109 apcs: syscon@f900d000 {
110 compatible = "syscon";
111 reg = <0xf900d000 0x2000>;
112 };
113
85 timer@f9020000 { 114 timer@f9020000 {
86 #address-cells = <1>; 115 #address-cells = <1>;
87 #size-cells = <1>; 116 #size-cells = <1>;
@@ -172,12 +201,36 @@
172 #power-domain-cells = <1>; 201 #power-domain-cells = <1>;
173 reg = <0xfc400000 0x2000>; 202 reg = <0xfc400000 0x2000>;
174 }; 203 };
204
205 rpm_msg_ram: memory@fc428000 {
206 compatible = "qcom,rpm-msg-ram";
207 reg = <0xfc428000 0x4000>;
208 };
209
210 sfpb_mutex_regs: syscon@fd484000 {
211 #address-cells = <1>;
212 #size-cells = <1>;
213 compatible = "syscon";
214 reg = <0xfd484000 0x400>;
215 };
175 }; 216 };
176 217
177 memory { 218 memory {
178 device_type = "memory"; 219 device_type = "memory";
179 reg = <0 0 0 0>; // bootloader will update 220 reg = <0 0 0 0>; // bootloader will update
180 }; 221 };
222
223 reserved-memory {
224 #address-cells = <2>;
225 #size-cells = <2>;
226 ranges;
227
228 smem_region: smem@6a00000 {
229 reg = <0x0 0x6a00000 0x0 0x200000>;
230 no-map;
231 };
232 };
233
181}; 234};
182 235
183 236
diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi
index 9bc9c857a000..8f085716e258 100644
--- a/arch/arm64/boot/dts/qcom/msm8996.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi
@@ -311,6 +311,12 @@
311 reg = <0x300000 0x90000>; 311 reg = <0x300000 0x90000>;
312 }; 312 };
313 313
314 kryocc: clock-controller@6400000 {
315 compatible = "qcom,apcc-msm8996";
316 reg = <0x6400000 0x90000>;
317 #clock-cells = <1>;
318 };
319
314 blsp1_spi0: spi@07575000 { 320 blsp1_spi0: spi@07575000 {
315 compatible = "qcom,spi-qup-v2.2.1"; 321 compatible = "qcom,spi-qup-v2.2.1";
316 reg = <0x07575000 0x600>; 322 reg = <0x07575000 0x600>;