From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53ACB1A7044 for ; Mon, 30 Dec 2024 14:53:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735570423; cv=none; b=rXA7byCdlx8agyPQXUvs1jp2iY8J6n0kceXEj2P5pszxupLaH06td+Qvf1dathakiH+jYbWjrEvwCKooRcrsGgdOdxtaX+ph0/qMM4le+7SVppCTxZNGqLFeXCR0eSq8n2P6oPKgt5DmKqesIBHGsXGlWvtcTVjlzCHHWMo91iY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735570423; c=relaxed/simple; bh=W37Lggz8imHGjBpI1SsAzsmQYeUl9jWSz5Pe4mJlq50=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NZTzvKSBjk1aYkaVgsIAa5CRhlmf37wAz/8KbY2WlwZIAHp/fUfHLIm/LOrPceZl5WSl+cGJJFKnC2x/6n20b/h9BLZXAmzRIx3D40pAsRqwVYYDxfSi7ffnfgroQ37fDDimrgTCHnwVeV3TGE8aBwJOmXMOk67TJsPujO7nTHc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Z09LjtPP; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Z09LjtPP" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BUE5Xtc025384 for ; Mon, 30 Dec 2024 14:53:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= JgEekmYFMDshwcgT3oguYiDPpkM+o65LrsTzQwmC+ug=; b=Z09LjtPP5pKCXVBe oQS02eXPGSiZ/+TXG/vjhs9aVb3te1IPTiY3D+Qsw74PFgUwjD+HuqxJocQcJ/Bc IuuqDMTqN4iqC8N6e3sdzRGPQHBTFzJrk8pex26kKUoCC2uPs/Qvj7Rt3QPiPpAH 7oyl5ImWsfGlSRUr2zzaakNeDrPOtWgDiyUMqYZKtV0/UFfdREj0HQhP39zz6KbZ lxOPULHlwj95CaTpZHR8diJiH11Ossa/XBl+PtZzvZi2HS33zjinMeKJ5fKLIBBL Q3AO8+E/WQMeih64p/enj7BZyujDVT0aDkTlwstIt2DEjr+6TqyKSFQ10gPyjRZB ThOTPg== Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43uvyt03m4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 30 Dec 2024 14:53:41 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-6dd0d0e0604so15806796d6.0 for ; Mon, 30 Dec 2024 06:53:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735570420; x=1736175220; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JgEekmYFMDshwcgT3oguYiDPpkM+o65LrsTzQwmC+ug=; b=JbjylzTn5lr4JLvebVA7aJZ1msbFQVkf97lykENdikQId317qH+ibN5RHA+JttNG8W cqYFuGK03d5aRTeNl5FF/aq9grxO/oQWWXtFAH8UlhM8MBSDw1rSReh057izYHUfmv1l O9NGs2vOQhK7GmNBOCG7zGASLs+5WzDCyg0aBfkLP/7Ta8N0qSk7aO/N4YDJDdQ/Z1sp L1eumJinjRcbsd7fybalzPLGrfnT0sCjCrk/ZB5pmTdAGyouHU8FZ13pvigZTwNYihM9 PuIIBRrG4DtnpXwa5yA/R3x7hJXLXU2pUI3kIt+/Zegk/wgf1ZcDs9XpNZbUFIcL6UZY MT5A== X-Forwarded-Encrypted: i=1; AJvYcCW2Nxyy8m9VPCFXNQRi+Odm+ykF2NR/DoPpkY3S5CZ7g0NIoP/l5O7jlsv6+3AOeMvVuMXu7XA/RMpUjyQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzHRFbhrIbDSFHdSud+zCrWLpvTI+KwEo20ad77yfduJQffE9zH ZNI/vLRIAWHw0yBBVFskTmmUCVDj+IlObn5GhSG0wCMvokrJGZPzuT9uwd/PBsTU2vhMGiIjva4 8L3BItOt1KYYT9mv2QasPZaESGDl3nriEoxFqDUq70ykVGGVtq5RHqzxorV73ttw= X-Gm-Gg: ASbGnctQ/IsoB7gwxRkcz+unKOuF1NKoHmFYzaOprV9IMTRpFO8TKu6ydsUv4C/4LGL XJymfR9wUNnHvSAZ9wqaZiPiFQdtBmA1kcGiUxxPZ/oZSuxzNmQNG66lJxQmVraxyy+bcRZUWJX ITY4JZXCGMFF9015DthQvQCPEMccAUZdxt7dk4UIV1yZagamuP/ttyF+k/8BWs5sEb0+585CyOZ 3azar+E6vFzT82RUHbyaIzupnFcJcvzlOEL1oc9sYwsRNAAoYuFQTdHSGiVvA/567f9M7TMTUgT 6aVrxSLg6vfRiNFBj8mVXQUeyrLKiF0i+/E= X-Received: by 2002:a05:6214:301c:b0:6d8:a258:68b1 with SMTP id 6a1803df08f44-6dd233ac590mr233481686d6.12.1735570419877; Mon, 30 Dec 2024 06:53:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTbxhF9vAAzYf/o6KtxWJrYBzMZkGqhONerL8NdyVP7cKd7S1W8v//UJIACU1wLeY3BGu1IA== X-Received: by 2002:a05:6214:301c:b0:6d8:a258:68b1 with SMTP id 6a1803df08f44-6dd233ac590mr233481346d6.12.1735570419427; Mon, 30 Dec 2024 06:53:39 -0800 (PST) Received: from [192.168.65.90] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0e894f7fsm1466927666b.46.2024.12.30.06.53.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Dec 2024 06:53:38 -0800 (PST) Message-ID: <233e7a35-0ec5-4746-b758-684a0befd005@oss.qualcomm.com> Date: Mon, 30 Dec 2024 15:53:36 +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 5/5] arm64: dts: qcom: gaokun3: Add Embedded Controller node To: Pengyu Luo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Hans de Goede , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Bryan O'Donoghue , Sebastian Reichel , Heikki Krogerus , Greg Kroah-Hartman Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, Dmitry Baryshkov , Nikita Travkin References: <20241227171353.404432-1-mitltlatltl@gmail.com> <20241227171353.404432-6-mitltlatltl@gmail.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20241227171353.404432-6-mitltlatltl@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: hwsINtqqpRCVVb25KuLm76jlIwNhdn4h X-Proofpoint-GUID: hwsINtqqpRCVVb25KuLm76jlIwNhdn4h X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 spamscore=0 priorityscore=1501 malwarescore=0 adultscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 mlxscore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412300129 On 27.12.2024 6:13 PM, Pengyu Luo wrote: > The Embedded Controller in the Huawei Matebook E Go (s8280xp) > is accessible on &i2c15 and provides battery and adapter status, > port orientation status, as well as HPD event notifications for > two USB Type-C port, etc. > > Add the EC to the device tree and describe the relationship among > the type-c ports, orientation switches and the QMP combo PHY. > > Signed-off-by: Pengyu Luo > --- > .../boot/dts/qcom/sc8280xp-huawei-gaokun3.dts | 139 ++++++++++++++++++ > 1 file changed, 139 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-huawei-gaokun3.dts b/arch/arm64/boot/dts/qcom/sc8280xp-huawei-gaokun3.dts > index 09b95f89e..09ca9a560 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-huawei-gaokun3.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-huawei-gaokun3.dts > @@ -28,6 +28,7 @@ / { > > aliases { > i2c4 = &i2c4; > + i2c15 = &i2c15; > serial1 = &uart2; > }; > > @@ -216,6 +217,40 @@ map1 { > }; > }; > > + usb0-sbu-mux { > + compatible = "pericom,pi3usb102", "gpio-sbu-mux"; > + > + select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&usb0_sbu_default>; Please preserve this order: property-n property-names > + > + orientation-switch; This > + > + port { > + usb0_sbu_mux: endpoint { > + remote-endpoint = <&ucsi0_sbu>; And this section have incorrect whitespacing (one tab too many, make sure you set your tab width to 8 spaces) Same for usb1-sbu-mux [...] > + i2c15_default: i2c15-default-state { > + pins = "gpio36", "gpio37"; > + function = "qup15"; > + drive-strength = <2>; > + bias-pull-up; > + }; > + > mode_pin_active: mode-pin-state { > pins = "gpio26"; > function = "gpio"; > @@ -1301,6 +1426,20 @@ tx-pins { > }; > }; > > + usb0_sbu_default: usb0-sbu-state { > + pins = "gpio164"; > + function = "gpio"; > + bias-disable; > + drive-strength = <16>; > + }; > + > + usb1_sbu_default: usb1-sbu-state { > + pins = "gpio47"; > + function = "gpio"; > + bias-disable; > + drive-strength = <16>; > + }; Similarly, please keep drive-strength above bias for consistency lgtm otherwise Konrad