From patchwork Tue Aug 8 18:25:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksii Moisieiev X-Patchwork-Id: 711729 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0CD0C04A94 for ; Tue, 8 Aug 2023 20:06:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230249AbjHHUGL (ORCPT ); Tue, 8 Aug 2023 16:06:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233530AbjHHUFr (ORCPT ); Tue, 8 Aug 2023 16:05:47 -0400 Received: from mx0b-0039f301.pphosted.com (mx0b-0039f301.pphosted.com [148.163.137.242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 319621194C; Tue, 8 Aug 2023 11:25:56 -0700 (PDT) Received: from pps.filterd (m0174681.ppops.net [127.0.0.1]) by mx0b-0039f301.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 378E6hV0002285; Tue, 8 Aug 2023 18:25:39 GMT Received: from eur02-db5-obe.outbound.protection.outlook.com (mail-db5eur02lp2104.outbound.protection.outlook.com [104.47.11.104]) by mx0b-0039f301.pphosted.com (PPS) with ESMTPS id 3sbknk2902-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Aug 2023 18:25:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LHGpC6+zThipRjLw4v9JdByWgixYNAKjrmUR1498xT1wo5Ni46/mscIbmWFCB1cegzaSorwfi/WHEJ+x1WXm5WwYGV5/1e5wP9stg80WGeiYUiGk6JvDP3drsTHRRG0P01ORrKAluAWGxLRi7jtfHpipkbSVeS0c8EBZC/Nx7bkQnSMfbi2xvReUjvp4tRAhAeeiAGLVX0cFKGNeOYIhFtC86cilx73O/bcC4xsask5uvW61ZvP4B9hDPeyRZErtMZOEgGLhCL9RyvIYbaT9DBkk8uFQDHw/B9ToxuLhneHIbJUIlBE6xKfVcMikXWBfumMdgbQ1beidKHNxh1zEXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sqS/pUjPpEVLV51qYi6Phg2ZHA1nXvh5Cg65k9pOJy8=; b=iDXhPSMMtUM/xvkAwCda1bUxdm6p2bC0mxoIXsLy2d2e4c0M0EiLcnGom0DTD0NxwtfHxsvXcRq3GuRlGGlblgQPEjBwUZibBYr4gA0003ypl4kWNe7AxgJz54a6bfRjhGO9weOy9GdQypthFMmBFNWHOFvL/mMRxe53QQ9kGPCAY6/n7Wbdccx2hdvNwFM3xS+nPHf2IzhKIFsPxT4frCZ6293eXysnVJ7TPeEB4QRXBYx4EfeCPHO7vouaXvRBSI47h+pJoqg3AMJbSSmJjKTvcOY2zcewB2goSqN/unFk90oHGRss31gzbVsyysbWpz5P52AJnOntzrdI3D7XtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sqS/pUjPpEVLV51qYi6Phg2ZHA1nXvh5Cg65k9pOJy8=; b=EnzxwfoFbsVHscA4AAY4u5gLhAbwuQsg/ihamJ3B031QFoihAzhgUeBkgjHbF0ze3DlWfHkM0xb7qeQkPdC/aMcm/Ql2Cg8CWnNmL48R+S093Mq2y4pstUPm1ekoaPpOGIucr2gUk1L0WVA0atItR4wRdQiaiJMVmIALszuyf/6A1gQdKNwUp9OqOu9EXBFOHea17LTbRLqnlgFrSFQTB3ndEFqxS4+bSQEJBBnhhQ2/36J8uZybPF2hlfV1n8lzuOwcWJ7YaBB4WYeHWJrDJg+49Ao7XTq9J6tOVyID3m8jG45qKE9va6MFUaG5LXXDwhY4FcwgpjCCFLZvVqspfQ== Received: from PA4PR03MB7136.eurprd03.prod.outlook.com (2603:10a6:102:ea::23) by AS1PR03MB8151.eurprd03.prod.outlook.com (2603:10a6:20b:4c5::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.27; Tue, 8 Aug 2023 18:25:36 +0000 Received: from PA4PR03MB7136.eurprd03.prod.outlook.com ([fe80::ccb5:5aee:f10d:ab26]) by PA4PR03MB7136.eurprd03.prod.outlook.com ([fe80::ccb5:5aee:f10d:ab26%4]) with mapi id 15.20.6652.026; Tue, 8 Aug 2023 18:25:36 +0000 From: Oleksii Moisieiev To: "sudeep.holla@arm.com" CC: Oleksii Moisieiev , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" Subject: [PATCH v4 4/4] dt-bindings: firmware: arm,scmi: Add support for pinctrl protocol Thread-Topic: [PATCH v4 4/4] dt-bindings: firmware: arm, scmi: Add support for pinctrl protocol Thread-Index: AQHZyiW58zfrIydQN0ew8q6pi6gRRQ== Date: Tue, 8 Aug 2023 18:25:36 +0000 Message-ID: <1dcf25b5c6b16b7138534e3c13827287f7c644cf.1691518314.git.oleksii_moisieiev@epam.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PA4PR03MB7136:EE_|AS1PR03MB8151:EE_ x-ms-office365-filtering-correlation-id: 0e90bda9-000d-4c78-0461-08db983cdc32 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Qh6egbmjtu6LJc4zrZ6ZLXWnjJgykdyMNmu/OOEQMPskC9mQpsWOXsOfpiRZHnmxDLsOAuRk18y7/TZMF0W0HXEvCcClvZwj5Jd+Cf3KqLg/MGLi6807Yp//2Ow9pCLalj3yzAw//SkUSmCKMimb4r2/shfyMJ1cSsvBdyrQxg5b2EdPOdDQQu5rtC2u0IH5oYw9Mela5ijRpw5o9QKPpYOI+BW+9dkr4fP5sDtSvkvI66d3hb2B2L0iprzGqBAFkzOPw4T+Vc7j7tjmgAdEKI58t+OGUhe7RihB9LpgTJx4I5EIxQHiySg5bCWErTR1srVEWdPfanb46HrSO01DIkry4yI5SXOp0Zjsf/cknSSHF5m6aKAjSlGS0dxHN2tOACBpLk0nXMrXbay56U6bKMV/BhSG78HxJsbgORwtdNzyfKPa6Sw874o6WvxIDZshzUnqhkI4thlaEzBh6tOgN2YnMFllpmbaGj5Y1kmzvas9j3zmiGXZN0GO11tIdx5XczafDJOEJyJnfWind5DlDTDqqSXVFufpey/LSyEU8jiC9+5edz32IdyUquLiQy1wh5iv41BvbAH0QzsSVsJYjr8NUm983acY1FcHTEzOrObidu0FzUyX/IA36XzBQ3mO x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PA4PR03MB7136.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(136003)(346002)(376002)(396003)(39860400002)(366004)(1800799003)(186006)(451199021)(2616005)(6506007)(26005)(6512007)(71200400001)(6486002)(36756003)(122000001)(478600001)(54906003)(38100700002)(66476007)(66946007)(66556008)(66446008)(91956017)(76116006)(64756008)(4326008)(6916009)(316002)(41300700001)(8676002)(8936002)(5660300002)(38070700005)(7416002)(2906002)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?wSfnDCz2poAL1d4ErvHy953?= =?iso-8859-1?q?PfjBXEh2qh33Vr8hs3hjHQmTOOLMpqeJBp2FQipmAowFaE0Okojm6+OzmJnp?= =?iso-8859-1?q?j/pqUlW+ewgKIiOgog9Ucesrcvmp7n0hhnNGw+GL40cQFIMZTLQsBjrtf9Da?= =?iso-8859-1?q?eK+hTVlYi9/q4IWinCOYImSjHrkFUqp6qXpUwYvnBgOmAl4Scc15ZmbuczzO?= =?iso-8859-1?q?XoRtDk581KxXEiKVPLb3a0tiElBPNaP/qxb6iHFeNBXDHutmK0S9XboOAVYm?= =?iso-8859-1?q?b6ApO48i/M0jbZw90S5OQ2h/G1hf1/yhdfURytpQVp+hm8mev34RySKSzoYf?= =?iso-8859-1?q?vkmbdYcCqUKiwUp9a5ICWx2nvad+U0FZfwMLEKCoOuZuq8QF9OyJmTUPCRY9?= =?iso-8859-1?q?38V3F/6n5KNqnCsujQfG6r7v+eYm+cGwBPVRcv84R1cZ6PEqtwT5hlgt60OR?= =?iso-8859-1?q?/+nLpAB4200onQqxPScqx6t7musVBe2/bQrRkSns+m1MEbHu5BgBSjlPjyx2?= =?iso-8859-1?q?u4/tkP5nwJNuVZjYZChqLchyjIUuvV8PtMaPbPW/E3vsgMqSaSNm7Rm+y80i?= =?iso-8859-1?q?bNMWnu+Nr6FRBJamXlXJX08Urwq9kPW+oqoNjArCkMVm9nl2/P7n4NsHN8D4?= =?iso-8859-1?q?S3UjzgQbkkAMMsTD8sZTk67o4UPVAQ8rV4bjXwHes2YLSI0CfBXCvk8fqDVZ?= =?iso-8859-1?q?AL4vI3h5T6ZVqAnHlDQ+egD5IgSyf2djPXpepUGH2wLNQdt7SzpGMbOhbney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yZa5X9ecT1o38aA5M002pVnA3jJ2G+Q=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PA4PR03MB7136.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e90bda9-000d-4c78-0461-08db983cdc32 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Aug 2023 18:25:36.2462 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QtjjaAMWTFWP7ShPdGFf+SZv44HZ8QfErgj7wTqXsPyVGzZ3JB2Y2NQwsbsu1UthOiD6X5FeQWNp+pZH46Oo1ukVVcoY9U+4BVTbuF9wAmo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR03MB8151 X-Proofpoint-GUID: A4k1w-RHrJqVYQQHTo7eoat-HVZ23Xcd X-Proofpoint-ORIG-GUID: A4k1w-RHrJqVYQQHTo7eoat-HVZ23Xcd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-08_15,2023-08-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 spamscore=0 clxscore=1011 priorityscore=1501 mlxscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308080163 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add new SCMI v3.2 pinctrl protocol bindings definitions and example. Signed-off-by: Oleksii Moisieiev --- Changes v3 -> v4 - reworked protocol@19 format --- .../bindings/firmware/arm,scmi.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml index 5824c43e9893..5318fe72354e 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -233,6 +233,39 @@ properties: reg: const: 0x18 + protocol@19: + type: object + allOf: + - $ref: "#/$defs/protocol-node" + - $ref: "../pinctrl/pinctrl.yaml" + unevaluatedProperties: false + + properties: + reg: + const: 0x19 + + '#pinctrl-cells': + const: 0 + + patternProperties: + '-pins$': + type: object + allOf: + - $ref: "../pinctrl/pincfg-node.yaml#" + - $ref: "../pinctrl/pinmux-node.yaml#" + unevaluatedProperties: false + + description: + A pin multiplexing sub-node describe how to configure a + set of pins is some desired function. + A single sub-node may define several pin configurations. + This sub-node is using default pinctrl bindings to configure + pin multiplexing and using SCMI protocol to apply specified + configuration using SCMI protocol. + + required: + - reg + additionalProperties: false $defs: @@ -384,6 +417,26 @@ examples: scmi_powercap: protocol@18 { reg = <0x18>; }; + + scmi_pinctrl: protocol@19 { + reg = <0x19>; + #pinctrl-cells = <0>; + + i2c2-pins { + groups = "i2c2_a", "i2c2_b"; + function = "i2c2"; + }; + + mdio-pins { + groups = "avb_mdio"; + drive-strength = <24>; + }; + + keys_pins: keys-pins { + pins = "GP_5_17", "GP_5_20", "GP_5_22", "GP_2_1"; + bias-pull-up; + }; + }; }; };