Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1467674rdb; Sat, 10 Feb 2024 03:32:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWeblJG0negTilsyL2eyxsODnqLgU9JhLoeksyUFURNNT0RGG/ssGZPsh17HIjV0U2omMrGzC3DOWButGd8QDbGgp7/sMaGbtsU77J86A== X-Google-Smtp-Source: AGHT+IFxJ9V7LuntxsbOTNpuROQbrt/tJyYC/rY1b9AInfJ+3CKGg8ZCu3b0GPyxzeELiozyx9st X-Received: by 2002:a17:902:da88:b0:1d9:791b:7dda with SMTP id j8-20020a170902da8800b001d9791b7ddamr2203346plx.36.1707564762047; Sat, 10 Feb 2024 03:32:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707564762; cv=pass; d=google.com; s=arc-20160816; b=rtrXXRH0gKI427GoKshQU+5un4+JiX1MwFHHGjLLpQBUhyS/NBQd0sgJgZuuBhM78S Fjlg3TTvLLTkMoo5Ro06dZDZofRnC+7BfPi9epQUotwydm286OOvw7oKJvLOCbkVmBb7 bh/5QRn+6/dI2jp3L6KqFHinoqDsqJMNTvxxocE1LYkGiYmGy7CkNjIxCnZgnBg6S3O9 dpkBqroe8KU+PzJ1wW24GftOXNWndqp3oE9xcS08KoPvt3mDTC607cEno7rSxNdu/ajC v02UggaJ3Nb9BRKns7hAxBTvvr79/tCfbIo9rhOnk7hHrnRYFX8u0uueXyr/qkhvR8p2 QQqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=yfrY9Su7sNaNkmujlfv39yppTC8UzE/IjGvqkySYy7M=; fh=Vh9grxcEDRGIyC00umJ1VAPS30nOIAwc/7B2pZC1EAI=; b=M05bxFvGelII8nKX5/2dFxSJgOTKCEeEt19CduF5tymjYjWPXG8siGS67CZigcWVD/ eLpjCjt3uP/SuVmnCDlkn2i+V6NT2PzKLOxMjXXc05fbIXFq+buGRaJNCQ9Wp1TTI+lB 6rrpYnSSU5vu2JegqJJ2YZlaSWclRS2FtCU1iYXTkn77cAFwQAzQj4pQULNNBZqhkdZc KZ2oJlCKJbJvlNL3KNIpohvDrRWy6gtsMYYLRCqq6QOfN3d6OKAO0KFhpAoniw3zHOuq fQd60REMXi4JxD2cnJPnfGpudAu2Rv2d8fjdRKd+kXayt2FWTD3B4qJ4oyHeMVWQUvph /YZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eEiymRx3; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-60377-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60377-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCVO7BLVq8vR5+oGYjqOqS0T0k9WDyZQDantdaOYfMr/jbNmKYu8Z/cPhwE+PTLDjpx/8eIH8af7CZ3f6Xhhd3JRaNWa4NaIyFn5TpULrA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s18-20020a170902ea1200b001d7852b689csi3322531plg.461.2024.02.10.03.32.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 03:32:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60377-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eEiymRx3; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-60377-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60377-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 35BE5B24CC2 for ; Sat, 10 Feb 2024 11:30:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39BE53D553; Sat, 10 Feb 2024 11:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eEiymRx3" Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E1C731A8F for ; Sat, 10 Feb 2024 11:30:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707564617; cv=none; b=RTxo+U9KlCHp9lePOuWooyN+C/5EyPoyefhOYyLJ4K53lmXM1YWJefeze5bM4/uTduHwzHQ/ZAx/neXBQ5PF94qxjX6LWNkN7LeRer2kIbneSzalzCshnyTCEjPXGWCW7wjottemnZ2hlBgJMmujbXllzDFa+O4Vn4/O3gyqGnE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707564617; c=relaxed/simple; bh=r6mXK5irgXYNwUXBuVJYyBaJOtQdkAx2B8SbD35wMVo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=n90bsGLpLV4hZrttpND2nW3v5dfDKLoHimX1aYvbcE+2tfmPDlH1eP/19GEzJXGfjJN/J5rznyDmmVsWxO9PW6fUu9yehEHUdX0Mm2x3nRxjSTXKrhDhrSy/lSk3x/CvMDqLX9dodBGkQ/wSKGnDvnPeNN8VG3rQNpws7YN7QaU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=eEiymRx3; arc=none smtp.client-ip=209.85.219.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-dc742fc3b68so2039333276.2 for ; Sat, 10 Feb 2024 03:30:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707564614; x=1708169414; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yfrY9Su7sNaNkmujlfv39yppTC8UzE/IjGvqkySYy7M=; b=eEiymRx3LFgJU9ddDSIWhSKFdLLpenAEx7hnova7BFXM+UTm4lGDxCbpTxUR1xIRUr HWEvk/QWw81c7n2tXQlihY7om5KWFGUqUlT+XfAyqVcx8ZouuUVzTqP0paA5XMAecWHp ZV33xFHMXXdOwooTEMaRYT+FLAsQHVIw5RyiDfMptJZff0BG5S1vdNkK7exPR7BqNp1S bVQ6yWHe5BQo3tFY/i6PKd76WlTKSew1lJpXjGmF+uXn3dT7RAf83FoadTIkixnfhQNq nLGtet1A/Ip2U5/FvukxQidbmDe5z+SyzcSrQuz+BcuZzWJ1tgicATsyeE38lUFlycab Wj4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707564614; x=1708169414; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yfrY9Su7sNaNkmujlfv39yppTC8UzE/IjGvqkySYy7M=; b=hmkiQWiz2Gzd/CuvJgV70IxsT+hdULCqHLTZ9VMzLlpqWstnbw/YVqLnKoJ7ruusVl JRroP3us5AonJqEOzYKI97Lv0zktoxI2u987UF19uuxnGVJT/LTd31jZar3eGR/oUCaO fm1aPVZAI7xfC3ABPuMZC18UajTJ5EZHl2XPLj4ZsuF5dxuNkX+khmKJOLkN+JY1f2/L +yu/9DVv1CH/AOgawIDwpbqw/6X0SbnpnpjY8WPGK75MQTxIJD1hmCJaE9SGUIRD4lhb ej3M9BwllA92meFxi+L5GAx3yxSjP+aMshGQkRxGiniE/Y2dM1h6zXtCHfk3Oa2gQU17 8/7w== X-Forwarded-Encrypted: i=1; AJvYcCVGahqrxTslA88RMmsdQLMtG7fcedWbahwhlZxwvyTdE4KbyRHugHPfdlWo2YAtXlQoCBPaP1vtUlraeynaSad2rhRXI9SQfIXWTdNM X-Gm-Message-State: AOJu0Yy78/BGYA/mtrC3B2KILooMJ9dr30Ueaa9Zq92LnMR4OZdaU9ut shijuGFkGkov6Qy1tah90BQaZZ8AOK7qxuD3cr5yB2kLM8i/HcBYeRCa4uWtS++I9YFuwJ5hQHW eQlD68MeH+bfaPdmwD7kQVsFKO9WCVX10xP957w== X-Received: by 2002:a25:850e:0:b0:dc6:9c4f:9e79 with SMTP id w14-20020a25850e000000b00dc69c4f9e79mr1345468ybk.38.1707564614467; Sat, 10 Feb 2024 03:30:14 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240206114745.1388491-1-quic_kriskura@quicinc.com> <20240206114745.1388491-4-quic_kriskura@quicinc.com> <23824242-1b37-4544-ae9a-0a5a0582580e@linaro.org> <6q2ocvrujbli42rjddflyol74xianr7j47jwcgdnnmwjanv25d@uw2da7zulqqd> In-Reply-To: From: Dmitry Baryshkov Date: Sat, 10 Feb 2024 13:30:03 +0200 Message-ID: Subject: Re: [PATCH 3/3] arm64: dts: qcom: sa8540-ride: Enable first port of tertiary usb controller To: Krishna Kurapati PSSNV Cc: Andrew Halaney , neil.armstrong@linaro.org, Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , Konrad Dybcio , Conor Dooley , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com Content-Type: text/plain; charset="UTF-8" On Sat, 10 Feb 2024 at 12:44, Krishna Kurapati PSSNV wrote: > > > Krishna, when you make v2 can you update the wording about the USB 2.0 > > mux? Maybe something like "which by default on boot is selected to mux > > to the external port on the board (with the other option being a test > > point)." instead of the wording I originally had? That way the > > information Dmitry requested here is easily accessible in the future. > > > >> > >>> > > [...] > > >>>>>> }; > >>>>> > >>>>> Isn't gpio-hog the preferred way to describe that ? > >>>> > >>>> That depends. As this pinctrl describes board configuration, I'd agree > >>>> with Neil. > >>> > >>> I unfortunately don't have the experience with gpio-hog to weigh in > >>> here, but wouldn't be opposed to Krishna switching it if that's what's > >>> recommended for this type of thing. > >> > >> Quoting gpio.txt: > >> > >> The GPIO chip may contain GPIO hog definitions. GPIO hogging is a mechanism > >> providing automatic GPIO request and configuration as part of the > >> gpio-controller's driver probe function. > >> > >> See sdm845-pinctrl.yaml for an example of the gpio-hog node. > > > > Thanks, that seems like the way to go. Krishna please take note of this > > for v2! > > > > Hi Andrew, > > Can you help test the following patch. It is just an add-on to your > original one. I don't have a SA8540P Ride at the moment and getting one > might take time. Incase you can confirm this patch is working. I can > push v2 of this series. > > > diff --git > a/Documentation/devicetree/bindings/pinctrl/qcom,sc8280xp-tlmm.yaml > b/Documentation/devicetree/bindings/pinctrl/qcom,sc8280xp-tlmm.yaml > index ed344deaf8b9..aa42ac5a3197 100644 > --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc8280xp-tlmm.yaml > +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc8280xp-tlmm.yaml > @@ -36,6 +36,10 @@ patternProperties: > $ref: "#/$defs/qcom-sc8280xp-tlmm-state" > additionalProperties: false > > + "-hog(-[0-9]+)?$": > + required: > + - gpio-hog > + > $defs: > qcom-sc8280xp-tlmm-state: > type: object > diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > index b04f72ec097c..aa0cec0b4cc2 100644 > --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > @@ -503,6 +503,18 @@ &usb_2_qmpphy0 { > status = "okay"; > }; > > +&usb_2 { > + pinctrl-0 = <&usb2_en_state>; > + pinctrl-names = "default"; > + > + status = "okay"; > +}; > + > +&usb_2_dwc3 { > + phy-names = "usb2-port0", "usb3-port0"; > + phys = <&usb_2_hsphy0>, <&usb_2_qmpphy0>; > +}; > + > &xo_board_clk { > clock-frequency = <38400000>; > }; > @@ -655,4 +667,19 @@ wake-pins { > bias-pull-up; > }; > }; > + > + usb2-en-hog { > + gpio-hog; > + gpios = <24 GPIO_ACTIVE_LOW>; > + output-low; > + }; > + > + usb2_en_state: usb2-en-state { If you are using gpio-hog, you don't need this state. The pinctrl / gpio core will use the hog instead. > + /* TS3USB221A USB2.0 mux select */ > + pins = "gpio24"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + output-low; > + }; > > > Regards, > Krishna, -- With best wishes Dmitry