From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754351AbcBVKUP (ORCPT ); Mon, 22 Feb 2016 05:20:15 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:35215 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753830AbcBVKUM (ORCPT ); Mon, 22 Feb 2016 05:20:12 -0500 Subject: Re: [PATCH v2 2/8] arm64: dts: qcom: apq8016-sbc: add usb support To: Bjorn Andersson References: <1455104164-29356-1-git-send-email-srinivas.kandagatla@linaro.org> <1455104202-10560-1-git-send-email-srinivas.kandagatla@linaro.org> <20160222055124.GG21240@tuxbot> Cc: Andy Gross , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org From: Srinivas Kandagatla Message-ID: <56CAE0DD.304@linaro.org> Date: Mon, 22 Feb 2016 10:20:13 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160222055124.GG21240@tuxbot> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the review, On 22/02/16 05:51, Bjorn Andersson wrote: > On Wed 10 Feb 03:36 PST 2016, Srinivas Kandagatla wrote: > >> Signed-off-by: Srinivas Kandagatla >> --- >> 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. Oops, Will remove this and resend the patch. > >> + 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. Yep, will clean this up in next version. > >> + 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 Thanks, srini > > Regards, > Bjorn >