Skip to contentSkip to conversation

arm64: dts: Add Variscite DART-SD410 Evaluation board dts

PATCH RESEND In review Leonid Segal 3 participants 6 messages Aug 13, 2017 – Aug 27, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 arm64: dts: Add Variscite DART-SD410 Evaluation board dts

Add initial device tree support for Variscite DART-SD410 Evalueation board. This board is also known as VAR-SD410CustomBoard.

---
 arch/arm64/boot/dts/qcom/Makefile                  |   1 +
 .../boot/dts/qcom/apq8016-var-dart-pmic-pins.dtsi  |  53 +++
 .../boot/dts/qcom/apq8016-var-dart-soc-pins.dtsi   |  88 ++++
 arch/arm64/boot/dts/qcom/apq8016-var-dart.dts      |  21 +
 arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi     | 525
+++++++++++++++++++++
 5 files changed, 688 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/apq8016-var-dart-pmic-pins.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/apq8016-var-dart-soc-pins.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/apq8016-var-dart.dts
 create mode 100644 arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi
(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/Makefile
index cc0f02d9dd02..0cf2fa44d96a 100644

arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-mtp.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8992-bullhead-rev-101.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8994-angler-rev-101.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8996-mtp.dtb
+dtb-$(CONFIG_ARCH_QCOM) += apq8016-var-dart.dtb
 
 always		:= $(dtb-y)
 subdir-y	:= $(dts-dirs)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/apq8016-var-dart-pmic-pins.dtsi new file mode 100644
index 000000000000..d94640812194

arch/arm64/boot/dts/qcom/apq8016-var-dart-pmic-pins.dtsi new file +53 -0

53 lines not on this page · raw message

(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/apq8016-var-dart-soc-pins.dtsi new file mode 100644
index 000000000000..185388de914c

arch/arm64/boot/dts/qcom/apq8016-var-dart-soc-pins.dtsi new file +88 -0

88 lines not on this page · raw message

(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/apq8016-var-dart.dts
new file mode 100644
index 000000000000..7ea8eaa2754a

arch/arm64/boot/dts/qcom/apq8016-var-dart.dts new file +21 -0
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2015, The Linux Foundation. All rights reserved.
+ *
+ * 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 "apq8016-var-dart.dtsi"
+
+/ {
+	model = "Variscite LTD. VAR-DART410";
+	compatible = "qcom,apq8016-dart", "qcom,apq8016", "qcom,dart";
+};
(quoted diff) +0 -0

b/arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi
new file mode 100644
index 000000000000..f214d0b101a4

arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi new file +101 -0

101 lines not on this page · raw message

<&dsi0_out>;
+ };
+ };
+
+ port at 1 {
+ reg = <1>;
+ adv7533_out: endpoint {
+ remote-endpoint =
<&hdmi_con>;
+ };
+ };
+ };
+ };
+ };
+
+ i2c at 78ba000 {
+ /* On Low speed expansion */
+ label = "LS-I2C1";
+ status = "okay";
+ };
+
+ spi at 78b7000 {
+ /* On High speed expansion */
+ label = "HS-SPI1";
+ status = "okay";
+ };
+
+ spi at 78b9000 {
+ /* On Low speed expansion */
+ label = "LS-SPI0";
+ status = "okay";
+ };
+
+ leds {
+ pinctrl-names = "default";
+ pinctrl-0 = <&msmgpio_leds>,
+ <&pm8916_gpios_leds>,
+ <&pm8916_mpps_leds>;
+
+ compatible = "gpio-leds";
+
+ led at 1 {
+ label = "apq8016-sbc:green:user1";
+ gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "heartbeat";
+ default-state = "off";
+ };
+
+ led at 2 {
+ label = "apq8016-sbc:green:user2";
+ gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "mmc0";
+ default-state = "off";
+ };
+
+ led at 3 {
+ label = "apq8016-sbc:green:user3";
+ gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "mmc1";
+ default-state = "off";
+ };
+
+ led at 4 {
+ label = "apq8016-sbc:green:user4";
+ gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "none";
+ default-state = "off";
+ };
+
+ led at 5 {
+ label = "apq8016-sbc:yellow:wlan";
+ gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "phy0rx";
+ default-state = "off";
+ };
+
+ led at 6 {
+ label = "apq8016-sbc:blue:bt";
+ gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "hci0-power";
+ default-state = "off";
+ };
+ };
+
+ sdhci at 07824000 {
+ vmmc-supply = <&pm8916_l8>;
+ vqmmc-supply = <&pm8916_l5>;
+
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&sdc1_clk_on>,
+ <&sdc1_cmd_on>,
+ <&sdc1_data_on>;
+ pinctrl-1 = <&sdc1_clk_off>,
+ <&sdc1_cmd_off>,
+ <&sdc1_data_off>;
+ status = "okay";
+ };
+
+ sdhci at 07864000 {
+ vmmc-supply = <&pm8916_l11>;
+ vqmmc-supply = <&pm8916_l12>;
+
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&sdc2_clk_on>,

+				    <&sdc2_cmd_on>,
+				    <&sdc2_data_on>,
+				    <&sdc2_cd_on>;
+			pinctrl-1 = <&sdc2_clk_off>,
+				    <&sdc2_cmd_off>,
+				    <&sdc2_data_off>,
+				    <&sdc2_cd_off>;

+
+ cd-gpios = <&msmgpio 38 0x1>;
+ status = "okay";
+ };
+
+ usb at 78d9000 {
+ extcon = <&usb_id>, <&usb_id>;
+ status = "okay";
+ };
+
+ ehci at 78d9000 {
+ status = "okay";
+ };
+
+ phy at 78d9000 {
+ v1p8-supply = <&pm8916_l7>;
+ v3p3-supply = <&pm8916_l13>;
+ vddcx-supply = <&pm8916_s1>;
+ extcon = <&usb_id>, <&usb_id>;
+ dr_mode = "otg";
+ status = "okay";
+ switch-gpio = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_sw_sel_pm>;
+ };
+
+ lpass at 07708000 {
+ status = "okay";
+ };
+
+ mdss at 1a00000 {
+ status = "okay";
+
+ mdp at 1a01000 {
+ status = "okay";
+ };
+
+ dsi at 1a98000 {
+ status = "okay";
+
+ vdda-supply = <&pm8916_l2>;
+ vddio-supply = <&pm8916_l6>;
+
+ ports {
+ port at 1 {
+ endpoint {
+ remote-endpoint =
<&adv7533_in>;
+ data-lanes = <0 1 2
3>;
+ };
+ };
+ };
+ };
+
+ dsi-phy at 1a98300 {
+ status = "okay";
+
+ vddio-supply = <&pm8916_l6>;
+ };
+ };
+
+ lpass_codec: codec{
+ status = "okay";
+ };
+
+ sound: sound {
+ compatible = "qcom,apq8016-sbc-sndcard";
+ reg = <0x07702000 0x4>, <0x07702004 0x4>;
+ reg-names = "mic-iomux", "spkr-iomux";
+
+ status = "okay";
+ pinctrl-0 = <&cdc_pdm_lines_act>,
+ <&ext_sec_tlmm_lines_act>,
+ <&ext_mclk_tlmm_lines_act>;
+ pinctrl-1 = <&cdc_pdm_lines_sus>,
+ <&ext_sec_tlmm_lines_sus>,
+ <&ext_mclk_tlmm_lines_sus>;
+ pinctrl-names = "default", "sleep";
+ qcom,model = "DB410c";
+ qcom,audio-routing =
+ "AMIC2", "MIC BIAS Internal2",
+ "AMIC3", "MIC BIAS External1";
+ external-dai-link at 0 {
+ link-name = "ADV7533";
+ cpu { /* QUAT */
+ sound-dai = <&lpass
MI2S_QUATERNARY>;
+ };
+ codec {
+ sound-dai = <&adv_bridge 0>;
+ };
+ };
+
+ /* I2S - Internal codec */
+ internal-codec-playback-dai-link at 0 {
+ link-name = "WCD";
+ cpu { /* PRIMARY */
+ sound-dai = <&lpass MI2S_PRIMARY>;
+ };
+ codec {
+ sound-dai = <&lpass_codec 0>,
+ <&wcd_codec 0>;
+ };
+ };
+
+ /* I2S - Internal codec */
+ internal-codec-capture-dai-link at 0 {
+ link-name = "WCD-Capture";
+ cpu { /* PRIMARY */
+ sound-dai = <&lpass MI2S_TERTIARY>;
+ };
+ codec {
+ sound-dai = <&lpass_codec 1>,
+ <&wcd_codec 1>;
+ };
+ };
+ };
+
+ wcnss at a21b000 {
+ status = "okay";
+ };
+
+ camera_vdddo_1v8: fixedregulator at 0 {
+ compatible = "regulator-fixed";
+ regulator-name = "camera_vdddo";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ camera_vdda_2v8: fixedregulator at 1 {
+ compatible = "regulator-fixed";
+ regulator-name = "camera_vdda";
+ regulator-min-microvolt = <2800000>;
+ regulator-max-microvolt = <2800000>;
+ regulator-always-on;
+ };
+
+ camera_vddd_1v5: fixedregulator at 2 {
+ compatible = "regulator-fixed";
+ regulator-name = "camera_vddd";
+ regulator-min-microvolt = <1500000>;
+ regulator-max-microvolt = <1500000>;
+ regulator-always-on;
+ };
+ };
+
+ usb2513 {
+ compatible = "smsc,usb3503";
+ reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>;
+ initial-mode = <1>;
+ };
+
+ usb_id: usb-id {
+ compatible = "linux,extcon-usb-gpio";
+ id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_id_default>;
+ };
+
+ hdmi-out {
+ compatible = "hdmi-connector";
+ type = "a";
+
+ port {
+ hdmi_con: endpoint {
+ remote-endpoint = <&adv7533_out>;
+ };
+ };
+ };
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&msm_key_volp_n_default>;
+
+ button at 0 {
+ label = "Volume Up";
+ linux,code = <KEY_VOLUMEUP>;
+ gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&blsp_i2c6 {
+ status = "ok";
+};
+
+&wcd_codec {
+ status = "okay";
+ clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>;
+ clock-names = "mclk";
+};
+
+&smd_rpm_regulators {
+ vdd_l1_l2_l3-supply = <&pm8916_s3>;
+ vdd_l5-supply = <&pm8916_s3>;
+ vdd_l4_l5_l6-supply = <&pm8916_s4>;
+ vdd_l7-supply = <&pm8916_s4>;
+
+ s1 {
+ regulator-min-microvolt = <375000>;
+ regulator-max-microvolt = <1562000>;
+ };
+
+ s3 {
+ regulator-min-microvolt = <375000>;
+ regulator-max-microvolt = <1562000>;
+ };
+
+ s4 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
+ l1 {
+ regulator-min-microvolt = <375000>;
+ regulator-max-microvolt = <1525000>;
+ };
+
+ l2 {
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1200000>;
+ };
+
+ l3 {
+ regulator-min-microvolt = <375000>;
+ regulator-max-microvolt = <1525000>;
+ };
+
+ l4 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ l5 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ l6 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ l7 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ l8 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ l9 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ l10 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ l11 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ l12 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ l13 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ l14 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ /**
+ * 1.8v required on LS expansion
+ * for mezzanine boards
+ */
+ l15 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ regulator-always-on;
+ };
+
+ l16 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+
+ l17 {
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
+ l18 {
+ regulator-min-microvolt = <1750000>;
+ regulator-max-microvolt = <3337000>;
+ };
+};

Signature · 1 line
2.13.0
#1 lore raw
Quoted 4 lines · Leonid Segal

Add initial device tree support for Variscite DART-SD410 Evalueation board. This board is also known as VAR-SD410CustomBoard.

No need to resend this. You originally posted this on 08/05. That's a little late in the cycle for me to pick it up. If I can review this in depth over the next -rc or so I might throw it in a second pull request.

Regards,

Andy Gross

#2 lore raw
In reply to Leonid Segal
Quoted 5 lines · Leonid Segal

Add initial device tree support for Variscite DART-SD410 Evalueation board. This board is also known as VAR-SD410CustomBoard.

---

A few comments, mainly about your documentation on the Variscite website. Specifically the schematics. Please tell your hardware people to be consistent in your naming conventions for pins.

MPP_GPIO/PM_GPIO appear to be interchangeable. And it's usually best to split out the PMIC pins from the non-pmic. That's my 2 cents at least.

Quoted 5 lines
 arch/arm64/boot/dts/qcom/Makefile                  |   1 +
 .../boot/dts/qcom/apq8016-var-dart-pmic-pins.dtsi  |  53 +++
 .../boot/dts/qcom/apq8016-var-dart-soc-pins.dtsi   |  88 ++++
 arch/arm64/boot/dts/qcom/apq8016-var-dart.dts      |  21 +
 arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi     | 525

<snip>

arch/arm64/boot/dts/qcom/apq8016-var-dart-soc-pins.dtsi line 76

Quoted 10 lines
arch/arm64/boot/dts/qcom/apq8016-var-dart-soc-pins.dtsi new file +10 -0
+			pins = "gpio32";
+		};
+		pinconf {
+			pins = "gpio32";
+			drive-strength = <2>;
+			bias-disable;
+		};
+	};
+
+	msm_key_volp_n_default: msm_key_volp_n_default {

Schematics show this to be a Home button. If so this needs to be updated to reflect that.

Quoted 13 lines
arch/arm64/boot/dts/qcom/apq8016-var-dart-soc-pins.dtsi new file +12 -0
+		pinmux {
+			function = "gpio";
+			pins = "gpio107";
+		};
+		pinconf {
+			pins = "gpio107";
+			drive-strength = <8>;
+			input-enable;
+			bias-pull-up;
+		};
+	};
+};
(quoted diff) +0 -0

<snip>

arch/arm64/boot/dts/qcom/apq8016-var-dart.dts line 20

Quoted 7 lines
arch/arm64/boot/dts/qcom/apq8016-var-dart.dts new file +7 -0
+/dts-v1/;
+
+#include "apq8016-var-dart.dtsi"
+
+/ {
+	model = "Variscite LTD. VAR-DART410";
+	compatible = "qcom,apq8016-dart", "qcom,apq8016", "qcom,dart";

qcom isnt making this board. Please use something like "variscite,dart", "qcom,apq8016"

Quoted 7 lines
(quoted diff) +1 -0
+};
arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi new file +0 -0
new file mode 100644
index 000000000000..f214d0b101a4

<snip>

arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi line 45

Quoted 8 lines
arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi new file +8 -0
+
+		usb at 78d9000 {
+			extcon = <&usb_id>, <&usb_id>;
+			status = "okay";
+		};
+
+		ehci at 78d9000 {
+			status = "okay";

Can you try removing the echi and using the chipidea instead. Take a look at the current db410c in -next. Try it out and see if that works for you. If it does, modify your nodes to match up.

arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi

Quoted 12 lines
arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi new file +12 -0
+		};
+
+		phy at 78d9000 {
+			v1p8-supply = <&pm8916_l7>;
+			v3p3-supply = <&pm8916_l13>;
+			vddcx-supply = <&pm8916_s1>;
+			extcon = <&usb_id>, <&usb_id>;
+			dr_mode = "otg";
+			status = "okay";
+			switch-gpio = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&usb_sw_sel_pm>;

Same here, I think some things changed here. Need to update. switch-gpio went away.

arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi line 42

Quoted 6 lines
arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi new file +6 -0
+		};
+
+		lpass at 07708000 {
+			status = "okay";
+		};
+

<snip>

Regards,

Andy Gross

#3 lore raw

Hello,
Thank you very much for the tips.
I have updated the documentation and schematics of our web site.
I also tried to implement all other fixes, but seems that I cannot file the git you are talking about.
The patches i sent were done to:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
and there is no -next branch.
I tried to check out the linaro git:
http://git.linaro.org/landing-teams/working/qualcomm/kernel.git
there is a -next branch, but the USB section is in old format.

I tried to complile the latest version from
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
the usb there in new format, but nothing works (even LEDS) on Dragonboard too. So, I think I am missing something global on the way.

If you can help me with it, I will appreciate it.
Thank you, Leonid.

Quoted 116 lines · Andy Gross
Quoted 5 lines · Leonid Segal

Add initial device tree support for Variscite DART-SD410 Evalueation board. This board is also known as VAR-SD410CustomBoard.

---

A few comments, mainly about your documentation on the Variscite website. Specifically the schematics. Please tell your hardware people to be consistent in your naming conventions for pins.

MPP_GPIO/PM_GPIO appear to be interchangeable. And it's usually best to split out the PMIC pins from the non-pmic. That's my 2 cents at least.

Quoted 5 lines
 arch/arm64/boot/dts/qcom/Makefile                  |   1 +
 .../boot/dts/qcom/apq8016-var-dart-pmic-pins.dtsi  |  53 +++
 .../boot/dts/qcom/apq8016-var-dart-soc-pins.dtsi   |  88 ++++
 arch/arm64/boot/dts/qcom/apq8016-var-dart.dts      |  21 +
 arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi     | 525

<snip>

Quoted 10 lines

+ pins = "gpio32";
+ };
+ pinconf {
+ pins = "gpio32";
+ drive-strength = <2>;
+ bias-disable;
+ };
+ };
+
+ msm_key_volp_n_default: msm_key_volp_n_default {

Schematics show this to be a Home button. If so this needs to be updated to reflect that.

Quoted 13 lines

+ pinmux {
+ function = "gpio";
+ pins = "gpio107";
+ };
+ pinconf {
+ pins = "gpio107";
+ drive-strength = <8>;
+ input-enable;
+ bias-pull-up;
+ };
+ };

(quoted diff) +1 -0
+};
(quoted diff) +0 -0

<snip>

arch/arm64/boot/dts/qcom/apq8016-var-dart.dts line 20

Quoted 7 lines
arch/arm64/boot/dts/qcom/apq8016-var-dart.dts new file +7 -0
+/dts-v1/;
+
+#include "apq8016-var-dart.dtsi"
+
+/ {
+ model = "Variscite LTD. VAR-DART410";
+ compatible = "qcom,apq8016-dart", "qcom,apq8016", "qcom,dart";

qcom isnt making this board. Please use something like "variscite,dart", "qcom,apq8016"

Quoted 7 lines
(quoted diff) +1 -0
+};
arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi new file +0 -0
new file mode 100644
index 000000000000..f214d0b101a4

<snip>

arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi line 45

Quoted 8 lines
arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi new file +8 -0
+
+ usb at 78d9000 {
+ extcon = <&usb_id>, <&usb_id>;
+ status = "okay";
+ };
+
+ ehci at 78d9000 {
+ status = "okay";

Can you try removing the echi and using the chipidea instead. Take a look at the current db410c in -next. Try it out and see if that works for you. If it does, modify your nodes to match up.

Quoted 4 lines

+ };
+
+ phy at 78d9000 {
+ v1p8-supply = <&pm8916_l7>;

Quoted 8 lines

+ v3p3-supply = <&pm8916_l13>;
+ vddcx-supply = <&pm8916_s1>;
+ extcon = <&usb_id>, <&usb_id>;
+ dr_mode = "otg";
+ status = "okay";
+ switch-gpio = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_sw_sel_pm>;

Same here, I think some things changed here. Need to update. switch-gpio went away.

arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi line 42

Quoted 6 lines

+ };

arch/arm64/boot/dts/qcom/apq8016-var-dart.dtsi new file +5 -0
+
+ lpass at 07708000 {
+ status = "okay";
+ };
+

<snip>

Regards,

Andy Gross

#4 lore raw

Hi Leonid,

Quoted 11 lines · Leonid Segal

Thank you very much for the tips.
I have updated the documentation and schematics of our web site.
I also tried to implement all other fixes, but seems that I cannot file the git you are talking about.
The patches i sent were done to:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
and there is no -next branch.
I tried to check out the linaro git:
http://git.linaro.org/landing-teams/working/qualcomm/kernel.git
there is a -next branch, but the USB section is in old format.

Quoted 6 lines

I tried to complile the latest version from
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
the usb there in new format, but nothing works (even LEDS) on Dragonboard too. So, I think I am missing something global on the way.

If you can help me with it, I will appreciate it.

The linux-next tree is at [1]. Stephen Rothwell generates this tree on a daily basis semi-automatically from subsystem maintainers branches that feed the -next tree. Read more about it in the linux-next web page[2]. The branch that feeds the arm64 changes is for-next/core[3]. See the full list in the Next/Trees file in the -next tree.

Hope this helps,
baruch

[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git

[2] https://www.kernel.org/doc/man-pages/linux-next.html

[3] git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux#for-next/core

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#5 lore raw
Quoted 27 lines · Baruch Siach

Hi Leonid,

Quoted 11 lines · Leonid Segal

Thank you very much for the tips.
I have updated the documentation and schematics of our web site.
I also tried to implement all other fixes, but seems that I cannot file the git you are talking about.
The patches i sent were done to:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
and there is no -next branch.
I tried to check out the linaro git:
http://git.linaro.org/landing-teams/working/qualcomm/kernel.git
there is a -next branch, but the USB section is in old format.

Quoted 6 lines

I tried to complile the latest version from
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
the usb there in new format, but nothing works (even LEDS) on Dragonboard too. So, I think I am missing something global on the way.

If you can help me with it, I will appreciate it.

The linux-next tree is at [1]. Stephen Rothwell generates this tree on a daily basis semi-automatically from subsystem maintainers branches that feed the -next tree. Read more about it in the linux-next web page[2]. The branch that feeds the arm64 changes is for-next/core[3]. See the full list in the Next/Trees file in the -next tree.

Quoted 4 lines

Hope this helps,
baruch

[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git

Thanks for sending this. I should have been more clear.

Once you pull the current next tag from linux-next, take a look at the SBC dtsi. Specifically this excerpt from the file:

	usb at 78d9000 {
		extcon = <&usb_id>;
		status = "okay";
		adp-disable;
		hnp-disable;
		srp-disable;
		dr_mode = "host";
		pinctrl-names = "default";
		pinctrl-0 = <&usb_sw_sel_pm>;
		ulpi {
			phy {
				v1p8-supply = <&pm8916_l7>;
				v3p3-supply = <&pm8916_l13>;
				extcon = <&usb_id>;
			};
		};
	};

	usb2513 {
		compatible = "smsc,usb3503";
		reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>;
		initial-mode = <1>;
	};

	usb_id: usb-id {
		compatible = "linux,extcon-usb-gpio";
		vbus-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
		pinctrl-names = "default";
		pinctrl-0 = <&usb_id_default>;

Looking at the Dart, you are using a USB2514, but it should be similar.

Regards,

Andy Gross