Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4651476ioa; Wed, 27 Apr 2022 08:15:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAdbxAOzTZq6GxRlYP4e31ge1wtEphCr6g3rrUKfSsFUBr3ShuafHTSpSh1RsaLU5cbYm8 X-Received: by 2002:a65:4006:0:b0:3aa:1cb6:e2f8 with SMTP id f6-20020a654006000000b003aa1cb6e2f8mr24478399pgp.274.1651072548312; Wed, 27 Apr 2022 08:15:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651072548; cv=none; d=google.com; s=arc-20160816; b=eAA+3CQF7QYTE4s6k50YP6m9kbyoOyWREOU880cdPYySu5V4t3Nl8/qhVU1qVzUvtC jq8kFzHNSXIHwiezOPQZrc6xaVLGYfSHGxqBUStH0rnPS/428D2TlBltSyVBOhYIpXiz jS2X7R0pw/84dKmkXmeVGVjNr+rLExU98Crrou6/yg7cXcUiEm3J/Eh9jrNxCWysp9kd WWaJAAT+MPXPaDsshbi6Mxkf5Uaa7ih0nhDJDcBQ0fZPuDI1rTwEBfsU170FDZWKRMmr CtLpdnJXKkG2E0x1x0PeTfWDZIVktw5PAyNZlNEsLcaYAauvFr4sFRndRSvLui8PmeOR NOYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZkjC2O2JTugw9NVlaPZOH795JPuDrcFrT3UCFSc94C8=; b=Lzyb2kL527EwVSm2Za12be3TLeWC6j5yDF7XiSFs2Kz1BdZlIksl7vewOnevXMNJmz xStgwCSV65PcVXT0t5QD1XUWTKFOp5mQAa2snA7c0j+rA/k+YSFQRcox/6CX7y/sJXiD WJ1aVSiYU1STCW4CjBbFCla1NSwi28uWQccvs1MJW1wUOZ/23A/VwArg3zHZAd2DN4eE IyVTXkJn2sUZoDFYHRzESl/pQg3zIeg8CD0uMZ531BHvS/hHacIDWgTiGsfB15Tbd23i CURpNlgVxGiTGlfEMSV0z2kOjwuGEuf2KGCdoW8GPFa9xcG518Fdr7W9xNEjnDtw/K6L tU7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=gblrv+uW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t184-20020a6381c1000000b00398a2b708c9si1643940pgd.211.2022.04.27.08.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 08:15:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=gblrv+uW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A79813BA52; Wed, 27 Apr 2022 07:47:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238536AbiD0Ou1 (ORCPT + 99 others); Wed, 27 Apr 2022 10:50:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238657AbiD0OuZ (ORCPT ); Wed, 27 Apr 2022 10:50:25 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E4823B022; Wed, 27 Apr 2022 07:47:10 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23R81IgO015990; Wed, 27 Apr 2022 07:47:08 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=ZkjC2O2JTugw9NVlaPZOH795JPuDrcFrT3UCFSc94C8=; b=gblrv+uWpteFiCXmO12s0asmfmfQ/oNTPiwG0EhGTsXrdDMF06MnRnmA2Pi4a8u4ndd2 f2HJPNtD1eSXzCW0iV+kyhRpk1nJQF/yWGyWMt0530ltGAq/Zzmb6evNRMd1o3EglKQm uByAHhWG5yVuYbMb9zZ5z4Kk+gghhSu7tAJdqPrNb8UxdhdhPuYUIa9K/x0oBW+BPFPu EBN53dStfxECcePHPfa2cTq1A1P4McbxOPBAGf1C8cVFWKM/bS9G4VJ/EW17AhkbGMKS JIniBpJLHLzmwHqKnkVZqccd1mbbqOoGQRFvOfTBVHwhLYl/VpWNc2m+kad7kdQsFIO2 Sg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3fprt4k6u6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 27 Apr 2022 07:47:08 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 27 Apr 2022 07:47:06 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Wed, 27 Apr 2022 07:47:06 -0700 Received: from localhost.localdomain (unknown [10.110.150.250]) by maili.marvell.com (Postfix) with ESMTP id D08FA3F7063; Wed, 27 Apr 2022 07:47:05 -0700 (PDT) From: Piyush Malgujar To: , , CC: , , , , , , , Piyush Malgujar Subject: [PATCH 2/5] dt-bindings: gpio: gpio-thunderx: Describe pin-cfg option Date: Wed, 27 Apr 2022 07:46:17 -0700 Message-ID: <20220427144620.9105-3-pmalgujar@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220427144620.9105-1-pmalgujar@marvell.com> References: <20220427144620.9105-1-pmalgujar@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 1rhJ-vk_rVehFRlKEshunqQkzaFeuKHx X-Proofpoint-GUID: 1rhJ-vk_rVehFRlKEshunqQkzaFeuKHx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-27_04,2022-04-27_01,2022-02-23_01 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for pin-cfg to configure GPIO Pins Signed-off-by: Piyush Malgujar --- Documentation/devicetree/bindings/gpio/gpio-thunderx.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/gpio-thunderx.txt b/Documentation/devicetree/bindings/gpio/gpio-thunderx.txt index 3f883ae29d116887e702ead20b26a25f9d2349d5..05f0be98afdcae941ff8a24c3fdabd8af83ccb87 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-thunderx.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-thunderx.txt @@ -14,6 +14,9 @@ Optional Properties: "interrupt-controller" is present. - First cell is the GPIO pin number relative to the controller. - Second cell is triggering flags as defined in interrupts.txt. +- pin-cfg: Configuration of pin's function, filters, XOR and output mode. + - First cell is the GPIO pin number + - Second cell is a value written to GPIO_BIT_CFG register at driver probe. Example: @@ -24,4 +27,5 @@ gpio_6_0: gpio@6,0 { #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; + pin-cfg = <57 0x2300000>, <58 0x2500000>; }; -- 2.17.1