Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1339143

Re: [PATCH v2 2/8] arm64: dts: qcom: apq8016-sbc: add usb support

From Bjorn Andersson <bjorn.andersson@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 2/8] arm64: dts: qcom: apq8016-sbc: add usb support
Date 2016-02-22 07:00 +0100
Message-ID <r4RHk-118-1@gated-at.bofh.it> (permalink)
References <r0BhL-1Cs-3@gated-at.bofh.it> <r0BhM-1Cs-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed 10 Feb 03:36 PST 2016, Srinivas Kandagatla wrote:

> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
>  arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi | 15 ++++++++++
>  arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi          | 35 ++++++++++++++++++++++
>  2 files changed, 50 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi
> index cbeee0b..4a79dd9 100644
> --- a/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi
> +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi
> @@ -10,4 +10,19 @@
>  			output-low;
>  		};
>  	};
> +
> +	usb_id_default: usb_id_default {

Labels are built with _, node names with -.

> +		pinmux {
> +			function = "gpio";
> +			pins = "gpio121";
> +		};

You don't need a separate node to specify function...

> +
> +		pinconf {
> +			pins = "gpio121";
> +			function = "gpio";

...but if you really want it, then you shouldn't specify the function
here.

> +			drive-strength = <8>;
> +			input-enable;
> +			bias-pull-up;
> +		};
> +	};
>  };
> diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
[..]
> +
> +	usb_id: usb-id {
> +		interrupt-parent = <&msmgpio>;

interrupt-parent is part of specifying an interrupt. You're not doing
that here, so no need to specify a parent.

> +		compatible = "linux,extcon-usb-gpio";
> +		id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&usb_id_default>;
>  	};
>  };

Apart from these two nits

Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Regards,
Bjorn

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 2/8] arm64: dts: qcom: apq8016-sbc: add usb support Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-02-10 12:40 +0100
  Re: [PATCH v2 2/8] arm64: dts: qcom: apq8016-sbc: add usb support Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-02-22 07:00 +0100
    Re: [PATCH v2 2/8] arm64: dts: qcom: apq8016-sbc: add usb support Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-02-22 11:30 +0100

csiph-web