Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp616923lqg; Fri, 1 Mar 2024 15:59:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUKM9frnFxuaZPN/OTVYSgkzTP3ocEFtoBKtWWI7tDEf2xRfBx8zEUyw0whiIGwZnPn6lXBl6506U6qi8zUab8AsilF6Wn6poirtkvTgA== X-Google-Smtp-Source: AGHT+IGshx7K0j2FrHhO5jgnkWTP+JR9JQZaE/A3t7Pf/omlV6MqCmBuiLr1+S5PBq5/dRr5rxBY X-Received: by 2002:a50:c943:0:b0:563:c54e:f1 with SMTP id p3-20020a50c943000000b00563c54e00f1mr2383700edh.2.1709337555074; Fri, 01 Mar 2024 15:59:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709337555; cv=pass; d=google.com; s=arc-20160816; b=BtjC3Dr+gmCvqSYmOr2EQDJUIDoF6CCSEqeL8NbQE8w8tsbxQW9UsVX4t3/JEjZ9Nd lrLgCNrM0NS8VPBwA4L3J9TaE6vVrrd78KO3coAL8fp/JcF6c5zQxF29vBgSgK/7v1+o wrBT7Lyeaxgk8VDnCkJumoO9bc2WZYdIMpYZKS14XgZxrvGsYtql6U25xn/B6H7iXkfL BsQmCs9kIjkaNSgak4c0afGqvq20KPKaxP4rv2gRyMyjY8rcTAShiwzrwMQVlGeT+DjP HW+qjkIuQrqihwLJCe/pBaQJ1OILkXgzhCG1/tRYIWXnwXvD+d0AOSahej6slRC2Wc91 76Kg== 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=YA1O7kLB3C42ZIvzHJ983LhvtPhH5S4z7eGI8/yXF6Y=; fh=j2J7duzgcQjkHdVW+t0B538JWa8vusFwNjb0Oh4ySdQ=; b=n1v2Dmhml28nzqpUPCeDbgfLJaF4HzzSsMV3QKCJYaAR33IbF4WoA078pEHNb6Tb5B n2BxhQazSCNVSmGlVxP8GrshRksWzshJNr45FhTrhL38o0//d8GU0ih5sPvFslP7jIR5 vBGY4nxpKyyVigPaZy8r+EEhkP//WkmRSXSesQAYZDcuQYzNm767wmlMdlo+WClQ7w9+ LpkRNyuD/CBPBOIrxxMCtYyScW+6wMkipQxJDIBM6Pjti1Gd7bwDir4wc6Nk4t3Y5JHi BA/bc2aZdZzdL52GlKHje3N+BwCM63068bpYULwItlAstqt/9j8bas6odHl+PV6wcGJ2 5zOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IbgGIMwN; 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-89239-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89239-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w9-20020a50fa89000000b00566e92c0c37si519486edr.587.2024.03.01.15.59.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 15:59:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89239-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IbgGIMwN; 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-89239-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89239-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A12A41F23B64 for ; Fri, 1 Mar 2024 23:59:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E25495F49B; Fri, 1 Mar 2024 23:59:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IbgGIMwN" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 47E365EE9F for ; Fri, 1 Mar 2024 23:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709337543; cv=none; b=QDwzxzVSpH783+pxdp59g9+CfpmlwOfRnDvlpK1ki2jw3YKKzFA/kvS7lMN0mUx8ECXtEU/fQh4DdmSHn+0KgWeng4YtHasDFTwipapEqBiJl/zwqyETA2YUF7ceCXbY8LsiTDukHWnC9oF5bYRyoYFmfIa/x0LUmckhv5JE4pw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709337543; c=relaxed/simple; bh=ETU0ZgkCoYAe6Z7VTDx08sZijKjkIDe8qT9lyHO3Dps=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mEPKTfRdga+7Z9G3LZOhA333QhTMjs3WyQjQaKXiYj3sH07RSYN9z65WSMRLfnZTLldRRqJA8qxiRaK1XjGz0+OblTT2OqrcGtq0ImwsQOVf83gHHhpXn1ZTFODy4r6C+55xPDUdIFC7iLhtcox9oU0B3+eXVFONlPm+H0NkFU0= 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=IbgGIMwN; arc=none smtp.client-ip=209.85.218.50 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-ej1-f50.google.com with SMTP id a640c23a62f3a-a444205f764so359604866b.2 for ; Fri, 01 Mar 2024 15:59:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709337540; x=1709942340; 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=YA1O7kLB3C42ZIvzHJ983LhvtPhH5S4z7eGI8/yXF6Y=; b=IbgGIMwNcfgw0Lpo/e5WIMtirGrC9J1p/5aPwI3PheLI52g9v17NjgFtxDuYR5ot3H W6QPhcbm0eAb13IGZ/bnDIaIN/sdWHJk7LtFGe0AZHkgRt5vUgBRX1lYXTh+CNS4rCPx G+ZA2VKPNRzfRh6LIjPdnEfUYy9cfoLdHOSn0A1VRrrHIeSyeA0epWPHuVbdfLczDMY5 BfhWuqWVCpWCMdTXgzPN48GbVhq6TOmtptQNeSzmdl6VdFnFOzjiTU//pDf5NrG4O1va XhVe4H53VTZgHYfGz40yDcwJHQfmM0Y1vZOZRijqH7tVMba45/KLvyC2JSzNVzx+M1SJ E+yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709337540; x=1709942340; 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=YA1O7kLB3C42ZIvzHJ983LhvtPhH5S4z7eGI8/yXF6Y=; b=xQKqE2HnLLZHSCr+GKKO24gcZvVWdLVq6rB3J2pO+SN3ozdcKx95cnNPntOWCvozxr 8DGcJjiOmlrV7WqqhEUCGPtLDcR+gqslYCGQk8yDeIdHMpK2NRcclEp022BlDAYhOTtD RB16o8RGL/AAPOO/sTtFYxj8JdAAwmUR6ZetoU33ttcq6JwIGIFCrkIike4OX7IyAefs 2NvrVDUWF0T3jfwVyxK0Z0wmgkanXaUP8TclfAcTNj+cW1GytMW+9Ek2kWW/3BnYpDSG FvbMNWbHRTqfr/dzn03lL+1AytPoiUcEKq15S7rgC2qBLa7mcyQONRKsCBFagmMGCLA6 LEuw== X-Forwarded-Encrypted: i=1; AJvYcCVN/EfVdoV6Ie11e0rD+5EV+oOglKcbpi1GRBtj1guZJnDPkdsSXHrSxgPKW4Kql/zRw7S2V59HDzwA33N5RyI1HHX25le7s9FN4hQS X-Gm-Message-State: AOJu0YxB+4lxVKmCrEJUA0zFWbSarQ+kplC2ab5z3PoXCJVNKzM3eh8D SDPsCvnB5Gyavtex38AB8QxPOoSW9TP1fyIBZlKDXihqefk0IeHHl1M4rY+oKQokEHJgLBExMzT f6tA= X-Received: by 2002:a17:906:f194:b0:a3e:9231:fe7e with SMTP id gs20-20020a170906f19400b00a3e9231fe7emr2440937ejb.71.1709337539658; Fri, 01 Mar 2024 15:58:59 -0800 (PST) Received: from [192.168.216.32] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id w23-20020a170906131700b00a432f3bc3a5sm2157029ejb.76.2024.03.01.15.58.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Mar 2024 15:58:59 -0800 (PST) Message-ID: <2f6a5c83-69a4-480b-a235-c0d51feac31e@linaro.org> Date: Sat, 2 Mar 2024 00:58:57 +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] arm64: dts: qcom: sm8250-xiaomi-elish: add usb pd negotiation support Content-Language: en-US To: Jianhua Lu , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240227124529.12926-1-lujianhua000@gmail.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL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RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20240227124529.12926-1-lujianhua000@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 27.02.2024 13:45, Jianhua Lu wrote: > Add usb pd negotiation, but charging is controlled by pm8150b pmic, > so it can only charge battery with 5W, > > Signed-off-by: Jianhua Lu > --- > arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi > index 6f54f50a70b0..ed103b90f4e6 100644 > --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi > @@ -636,7 +636,8 @@ &pm8150b_typec { > connector { > compatible = "usb-c-connector"; > > - power-role = "source"; > + op-sink-microwatt = <10000000>; Is 10W really the minimum value for this tablet to function as a sink? Is that what the downstream kernel sets? > + power-role = "dual"; > data-role = "dual"; > self-powered; > > @@ -645,6 +646,12 @@ PDO_FIXED_DUAL_ROLE | > PDO_FIXED_USB_COMM | > PDO_FIXED_DATA_SWAP)>; > > + sink-pdos = + PDO_FIXED_DUAL_ROLE | Please align the PDO_.. against the open brace > + PDO_FIXED_USB_COMM | > + PDO_FIXED_DATA_SWAP) > + PDO_VAR(5000, 12000, 5000)>; 60W max? This is not unheard of, but I'm just making sure you know.. Konrad