Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp139964rdb; Thu, 8 Feb 2024 01:13:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+BHuFS60qub+isz52mmCrvZkZ3tGBCLwJWJDZwLJevxBsJYwANKmo5bFQB2MoQ1CtS72sg/sHtrNLsFJKeoIkRB6BqyomeU03g/M9FQ== X-Google-Smtp-Source: AGHT+IHNp8QZnA4dH/e4p4rdS5rtXyAOw7NVi/wJKjejv+VrWjz+mE2hOS8CpjeJeTGc7t+AgeHk X-Received: by 2002:a05:6359:4598:b0:178:f482:6e50 with SMTP id no24-20020a056359459800b00178f4826e50mr5916450rwb.11.1707383629014; Thu, 08 Feb 2024 01:13:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707383628; cv=pass; d=google.com; s=arc-20160816; b=VNr7J7G/xTDufINdAG/3E27RvWd8QlMQ02jzW0PnuBw+/fyVYB5v3R6EJGKJtW3kj+ COE3QQdWBePR3y2zMTA++Z9ykfNY+8iV+zyyOyvatuqOjAIaY8v2QhyrUvL9pw4oIpe5 KfC8ZUp9k5E2CjZ7e1Yb3pKzumujR/2QP7uvfOIgVxikYCdIr6LVqXwlUa1e1rzZYKJK qXPdbYAJbvIGQaiaYdTDwijJlneKSn6p5Shwesti+IT+8Xh3YNdMp+DyyFZfS4GEh9q8 H13r75L+mmSfOTRJcty7R3EHN43Bgrbnr0/JBxMeOQzcpmqoZ5TAoF79uuhYGbl6oMTW l5Bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=CnUe9V7duXEuvCT+1bn2cFd0u4tuG7u2zc21WRUzJJk=; fh=EL2ZJ+9ZU4rzBLfc/pMi+rdsAILlnOsVbDgvfrpssoA=; b=YIqib1OKy/A0HhW/DiPg7HtTnN2CClDI9H/0rX7HToMWOotFWewCy11f22Fn4hT1uY +gFBmpIu0v2rVbG/WpMbcoPO/s4AbvX0Tk4VOPh45XOnGHBdLTvpxYDKBdzeAzFK/20o zkU3HpvoS8Cfre7blHzAsJ0p0LskUoLGdY8ugQhceC06Vqzq9HuzR+O1obyVmL38aZvT emZtNiQVk2nWiYwIr3ifebdHV/Yd3eqzcvuPfvR8BQ1L0+IpKIyH8YKAzmiLgI4R2Z41 e1562Nb1Td9Tj33b/CO9D34GlpPgcWdIe5ympGGZ5UJhzWnO3lLxRMP4bpC2CxdBECdB cYwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xqTQOE83; 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-57703-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57703-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; AJvYcCWO+sHlvUr6S6KLUXmpUO2a3rJbOqmscNHL0a4KhMHwFgWH/veFayh2cYGMyTqOMLhZnlWmuJ+y0Vq1BPIcLFm3g8t/LCNJIWJQmAXORQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h7-20020a170902ac8700b001d8a94d10dasi3616401plr.538.2024.02.08.01.13.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 01:13:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57703-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xqTQOE83; 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-57703-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57703-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9D526288727 for ; Thu, 8 Feb 2024 09:13:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E1A36BFAC; Thu, 8 Feb 2024 09:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xqTQOE83" Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 4BDAB6BB36 for ; Thu, 8 Feb 2024 09:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707383615; cv=none; b=BICoP0j4oJAPLbHA1UAOgl8oWIozKMwnORdMhKcEBXiATs2wnZbLXuerYYkn7dQpcYAM5LaBZ2QAhEdNEUhDckEgyWmbspsVdGj/w/lcj549TgI4sEWMXRORhG5vVaXObUKl1/xMxK6xjL51YxfILiu+/h3/kVS6hv6ADiDA4bo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707383615; c=relaxed/simple; bh=1I1yKQ80oZdg/1cOG6tN/GRuKHREtAW08DYzVMOBkCQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=s00dT3yUGVNAjrHUqDy+yjXcuQCT8YDFKnZqsTfwnUKuYef4l1hTegpwcakWJRHo9JpoQ4RvMq6ouaBqfxYZv0uw19fFB46tJQsQrR5L7tZClb6DShl2sL62g9OFUdH47zUxlH5WCESaTCWO1b5mcyktePhAorGF6nBGRufvwqQ= 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=xqTQOE83; arc=none smtp.client-ip=209.85.221.47 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-wr1-f47.google.com with SMTP id ffacd0b85a97d-3392b12dd21so1004952f8f.0 for ; Thu, 08 Feb 2024 01:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707383611; x=1707988411; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CnUe9V7duXEuvCT+1bn2cFd0u4tuG7u2zc21WRUzJJk=; b=xqTQOE83xfIM3zhifXQ2bBQXuZM5v2N6519czFoLsYGE/UvEJ0PlkAPbggKCmAo7EC 3CxDURBRfaNPx5UW/UT7CIqzn9Kg1J+fXzjQc3lEbBpfHWtK5ddof5T+j7FxfrBOyg5D G+gQmlodWemtCNQ+4g4H5a2vmQw78S4ET14pnPHw2xAtUAGZ1rEpv2vbpodoiUokVDfD 7+gJ/OJMYJ8wvUlPOcFpLrkF5dGdp7RGQFqAgEyfmdCFzXgfcIGwIW2vXsQJVz5zdpyM y5a2flzELws1l0wiKcFNqmX7sEo/EcKnUbtDVGxq6a7HGQjGJ9KOLd/VDXq7MGDeWh4u iXBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707383611; x=1707988411; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CnUe9V7duXEuvCT+1bn2cFd0u4tuG7u2zc21WRUzJJk=; b=tTKkJt6uudjfJRvvNrH7ZaMBwOG2vMcPhx4IgqSVetNQ3CcKzWsN3lTt0CA4m1xClB 8ys66kEfhC95bQisbmOu0FhQxckLYvQIkkQIyoZE07eE7zepD1T704VI0nIHVZWPg6k2 i4KGt9ntQtlPMrCFWq1WnneY4eztRQEpCMfOy85ezuarRANp9pYc/7tx7GurtkG7LpSb F7oPld3cF69CQpiRcftxFqi78Tmw4RFkVF91q1ScbXKgtrv4sT37Ys1eraQ+RgHq7cer pDoNkZIKn8LrzEL2LKfscSN3QuXbg6fKfDmFwVGQWA+Tj1vabUgCBVmrT1eidtilibAt FdgQ== X-Forwarded-Encrypted: i=1; AJvYcCU1qYkl5Dxa4k8/YnMQULneoJPFuKTejcsjF4OafSsFKKA62PKBnOTuboub8mdtcPgx+OAyWkJPTRZzYbhk38+SOpd9+gnsZpM4BrL7 X-Gm-Message-State: AOJu0YyMoNalO16rGsELUjWa8Nf4jf0BiBP7OgYwsdwSHy1QOjIOUr6s vPULYbge1Vu4g1tXPqOCMt5k1D43Ss7RgJWMgk4rTLp/EJOCCckC/hyuvFGv4sU= X-Received: by 2002:a05:6000:1a51:b0:33b:401f:bd59 with SMTP id t17-20020a0560001a5100b0033b401fbd59mr5148784wry.14.1707383611408; Thu, 08 Feb 2024 01:13:31 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVxgEfq9R0qrJX7wQwCORRmrGYQ+NmOEmI2OeomoR6snSIxST88mpuC1mEfjkHkIR9KwNdD07JmzbqQLINtjYeIlsLY5yMZ0GjMFP0HOJkiwVs23B/pSqqY6NoDuMsUMe5Gm/zlFJ80TF+qTTM7vfce85jiBa7auPyeWfQTGj5q9jp2pkilt6qEPOXx0y+uGOCGW4moKea/Vvlw+9O+DQwA3l0Liu+CtBSNfYGxROWoIXl6/yYwgEe5Ke36mrF1C1cF23bn9YF2UR55Lkke9t/WBtm5HdcwpeScwd4+3414w7IFvy8DgnPsR1PNoPyvdlUJONSTA/9kek9J4GDCqJvUeZuzKy5N6pdP2qo4dMHgdhH/qKSCntGg/u7rt2GCsIEmi8B4fIcptEzEgHaiiIQ0Pm8f5r6qMP73hmhEQoM= Received: from [192.168.1.20] ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id a6-20020a056000100600b0033b3c03053esm3174687wrx.78.2024.02.08.01.13.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Feb 2024 01:13:30 -0800 (PST) Message-ID: Date: Thu, 8 Feb 2024 10:13:30 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] arm64: dts: qcom: sa8295p: Enable tertiary controller and its 4 USB ports Content-Language: en-US To: Krishna Kurapati PSSNV , Dmitry Baryshkov , Konrad Dybcio , Krzysztof Kozlowski Cc: Rob Herring , Bjorn Andersson , 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 References: <20240206114745.1388491-1-quic_kriskura@quicinc.com> <20240206114745.1388491-3-quic_kriskura@quicinc.com> <0470a930-d629-4467-b619-58d3e76f59a7@quicinc.com> <7500f1f8-1d97-4fa9-a7cd-7dea0ad52e00@quicinc.com> <62bba89d-97b0-4129-8abe-6025790d9d13@quicin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+HYjC/qfDxT7tjKXqBQEscVODaFicsUkjheOD4BfWEcVUqa+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <62bba89d-97b0-4129-8abe-6025790d9d13@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/02/2024 10:07, Krishna Kurapati PSSNV wrote: >>>> >>>>> One query. If we model it as a regulator, do we need to add it as a >>>>> supply and call regulator_enable in dwc3_qcom probe again ? >>>> >>>> Not in probe(), but yes. It needs to be enabled when the VBUS has to >>>> be powered up, when the device is initialised or switched to the host >>>> mode, and disabled when the VBUS has to be powered down, if the device >>>> is being switched to the device mode. >>>> >>> >>> Actually since we never go to device mode, can't we just stick to this >>> pinctrl approach and skip turning on regulator in driver ? >> >> Scroll several emails back. DT should describe the hardware. Hardware >> has VBUS regulators. >> > > Hi Dmitry, > > I dug up the schematic and I see that the gpio's we are using in this > patch are actually "Enable Pins" to an external chip that provides vbus > to the peripherals connected. So from the perspective of SoC, it is a > GPIO and not to be represented as a regulator I believe. According to such logic nothing is a regulator... sorry, you just described regulator. Best regards, Krzysztof