From patchwork Tue Dec 12 09:48:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tengfei Fan X-Patchwork-Id: 1875005 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Dbmi8sim; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=linux-gpio+bounces-1291-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SqDPM3vhJz20H5 for ; Tue, 12 Dec 2023 20:50:15 +1100 (AEDT) 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 48D96B20ACC for ; Tue, 12 Dec 2023 09:50:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EB1E59147; Tue, 12 Dec 2023 09:50:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Dbmi8sim" X-Original-To: linux-gpio@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66586E4; Tue, 12 Dec 2023 01:50:06 -0800 (PST) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BC2P8kQ001894; Tue, 12 Dec 2023 09:50:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version:content-type; s= qcppdkim1; bh=p1KbxbU/n0XKG2RhgRaGZKeYQjXJzTSZ9ugHo2OBkAk=; b=Db mi8simgNFEBHhKOtGFvZD5xA9ZGW8D3+Yxfb8lumI8nMOF4/r/ZGiZBgqVUgvsw9 NL4toX+Cs8z3Tq4GDoSv4oQKLoMcVAjZH0BQhIC3ucZGRH35MuXJ6MyEMvuZBXZB x7Y1aZ83K2wmT04qURzEB+EoLOqv+Cz9PKQhErrWsMhdR2T1teBU0uv/z27CsLZB MkQLiN6K/Ukl++2Z663/wj8pI29K82qjyQhp/VDtDlAe2wja+oneItyP7mysfjfN bySxKFI8zg+Q8lpsrP7weVD/dzfpWz7LtL1Q9ZCLn6i+x+YUuDt0zSLZ2kYJcEMw KMrxliZfCdZgGWQqBj1g== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uxepkgwjh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 09:50:03 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BC9o2pD018255 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 09:50:02 GMT Received: from tengfan2-gv.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 12 Dec 2023 01:49:55 -0800 From: Tengfei Fan To: , , , , , , CC: , , , , , Tengfei Fan Subject: [PATCH v7 0/2] pinctl: qcom: sm4450: Add SM4450 pinctrl driver Date: Tue, 12 Dec 2023 17:48:58 +0800 Message-ID: <20231212094900.12615-1-quic_tengfan@quicinc.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: eLZUkqJkpgCKs5RxoL7KauOlzXr3tdTH X-Proofpoint-ORIG-GUID: eLZUkqJkpgCKs5RxoL7KauOlzXr3tdTH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1015 malwarescore=0 adultscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=762 spamscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312120078 Add SM4450 pinctrl driver for support enable uart console. Signed-off-by: Tengfei Fan --- v6 -> v7: - readd review tag because of patches updates are not enough to drop review tag v5 -> v6: - squash the fixups into the newly added driver - drop reviewed-by due to update patch as new comments v4 -> v5: - Convert to platform remove callback returning void - correct incorrect address offset v3 -> v4: - update gpio pins pattern v2 -> v3: - update example pieces - update gpio pins pattern v1 -> v2: - update right platform name - update gpio-reserved-ranges have right maxItems - update gpio-line-names have right maxItems - add min/maxItems for pins properties - redo dt_binding_check check - delete reserved gpios setting - combine separate pinctrl functions previous discussion here: [1] v6: https://lore.kernel.org/linux-arm-msm/20231206020840.33228-1-quic_tengfan@quicinc.com [2] v5: https://lore.kernel.org/linux-arm-msm/20231130024046.25938-1-quic_tengfan@quicinc.com [3] v4: https://lore.kernel.org/linux-arm-msm/20230920082102.5744-1-quic_tengfan@quicinc.com [4] v3: https://lore.kernel.org/linux-arm-msm/20230920064739.12562-1-quic_tengfan@quicinc.com [5] v2: https://lore.kernel.org/linux-arm-msm/20230915015808.18296-1-quic_tengfan@quicinc.com [6] v1: https://lore.kernel.org/linux-arm-msm/20230908063843.26835-1-quic_tengfan@quicinc.com Tengfei Fan (2): dt-bindings: pinctrl: qcom: Add SM4450 pinctrl pinctrl: qcom: sm4450: dd SM4450 pinctrl driver .../bindings/pinctrl/qcom,sm4450-tlmm.yaml | 151 +++ drivers/pinctrl/qcom/Kconfig.msm | 8 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-sm4450.c | 1014 +++++++++++++++++ 4 files changed, 1174 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sm4450-tlmm.yaml create mode 100644 drivers/pinctrl/qcom/pinctrl-sm4450.c base-commit: abb240f7a2bd14567ab53e602db562bb683391e6