From patchwork Thu Mar 23 01:29:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dipen Patel X-Patchwork-Id: 667099 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 76025C6FD1F for ; Thu, 23 Mar 2023 01:29:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbjCWB3l (ORCPT ); Wed, 22 Mar 2023 21:29:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjCWB3l (ORCPT ); Wed, 22 Mar 2023 21:29:41 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2058.outbound.protection.outlook.com [40.107.243.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD7B2D56; Wed, 22 Mar 2023 18:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A8Eu00o1g8L4SOMqGnBGgn/eBXMZhgF7Q8PXfPhMMcuv+MUcfwvlmt+aHQJkv4iAKE2xmgoJCfiUkPnEV4QnsoEqcGoKqGfqiq2YzZ3ci5UQrioFSvwZClHsPeJzd0iVkxgANcvPpbeZ7vuM01dIC4h+UWBC+5NVazOFZXVvSxecOHWjiVH1K/qI/y2LOKc1ix3poWYj/fW77+m1KOoY99r0fQHfxSEW5lRjei6ob9kHZ8RzPXHjWRiOfBqBBF4MvsEZ0tpDQk1VBkLie3B3IIyKxT1LL55+sdn6NRIAXg9NwmjnGTIebH5nF8LO3eT0+lKk4wqRusgU3ynyNiufWA== 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=kStb/h2bxxTnpUoG8mlerqt8YY7TMtzqPvYaHaQ0ccE=; b=Rr2QlQqSFjmaxt0/SsDdXSL6AySWQzD8mvFSmDdaQd2zWUMxI/SobPvHKV+UkYeVfT1u9h2ChqV1YnAr+R1uODBfDzGYOJbX4Lo+IW3FcAVhmCM0iime1WJNwqafw0PjJWBcwaKqhLqNUxxBWCrmIu6cAroCcFkWlguhOz2Ck77m2OiS/knWIJ1DDsSFiWyVPu7YfIMU57zqg2o52SDu8bAmb2839Zoanb15ddiVeRUbo59cQBk7Yb7qzU5ZNXKx1bSQTG3u0N5mchrcFjXR8ejh17c/Qxu3gMf1Ji/9BD0Ri6NMU6RYp1AfexcP0caIa+foa3YjS+fWE8kDXz8jnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kStb/h2bxxTnpUoG8mlerqt8YY7TMtzqPvYaHaQ0ccE=; b=mlUuHUAH1VAQmAEA0qPBB8iTehzOWYPBT+4P9CfpLuPc7HenovVZQeN04kMrNLVnV7FEzXQh8fXukQaInCmrqQ2RZr18wvBgf5CxAWrO6vUz0kyZojN6Q0TnxVwceWoG8ZCYyFcKKdhl0YFAJFXFjNIrkq2IGDIlvEVIMt43oep61Kg2SwgWQIGVFgAwLdyudwZzAD5znAPGoPGfSMhrHWH20Zq+T0ZLjH2SSv33m5ftNnfLHIXJXs4xr1qMQE0DlT9Et1+Cwl9de4VbNNQecNWZWZvrH/JY1E2k2gnGSeJyoreeBk/UXWDOUVKE/FcreogsusQtco3lha4W1ZJP9g== Received: from DM6PR06CA0010.namprd06.prod.outlook.com (2603:10b6:5:120::23) by DM4PR12MB7743.namprd12.prod.outlook.com (2603:10b6:8:101::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Thu, 23 Mar 2023 01:29:38 +0000 Received: from DM6NAM11FT096.eop-nam11.prod.protection.outlook.com (2603:10b6:5:120:cafe::12) by DM6PR06CA0010.outlook.office365.com (2603:10b6:5:120::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Thu, 23 Mar 2023 01:29:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT096.mail.protection.outlook.com (10.13.173.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Thu, 23 Mar 2023 01:29:38 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 22 Mar 2023 18:29:32 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 22 Mar 2023 18:29:32 -0700 Received: from dipenp.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Wed, 22 Mar 2023 18:29:32 -0700 From: Dipen Patel To: , , , , , , , , , , , , , CC: Dipen Patel Subject: [PATCH V4 01/10] MAINTAINERS: Add HTE/timestamp subsystem details Date: Wed, 22 Mar 2023 18:29:20 -0700 Message-ID: <20230323012929.10815-2-dipenp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230323012929.10815-1-dipenp@nvidia.com> References: <20230323012929.10815-1-dipenp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT096:EE_|DM4PR12MB7743:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e760af3-047a-4311-ab61-08db2b3e1193 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ac06nvqAjwLcnnJxcAsVPEcuoxKriXu4+4qeYgroJyiN1nVNQDLzA4WmxnoyEic2c31nhElT7wYuzJWFpUoSY+P/17D6Oybq4IFUQdM5DUCKgmIsu7VHjzQXdbq/r9JWMvNb5aK97/9rQ7+3/YRSnFQ6iFGMGSGyeMywuR0R3XO9Kn5Tz0K5bTUh9kUGjGhiSKBw+qmIWMOgCTODsw1mil+at6uQgcozO+osMH27SiOPPGY4s1kIvShqprUmoFixAjiNyp7H/HALf1npImx1UA+RB0wF/UHXfnoAVA9sctgekl/BBIHeHcWYLivxQC6OHn0O1PDm7K0ybOdQMdBOBTbUNbpeHTsy2qv60uiV69iH2oT/wwZDqhTx8J2mnh35CVHdyVuj2EWSFXl6+Xj4PZxk7UygDPu9TraMS1diJRCeb9uWU8XInisKLkBVCUGdCS2XZSB0NdhGhhLINrxFCBfbySUbQLvCsTFYRlKKXlXMkzO+mF0IwT0t2Kv4AQuL/wIKpfYpYOkJcUn8SJrR74RRIpboBmooe8o2JkeR2zWMcnqz/yfp3R+LXP+CwotmxtF7nFjqpikxPG2ggbv+NcKem7X/Ysd+S9D3zsjeVbxLWFnywl+dAySfe24uT4HR3TCXtAvhBojC+VXrf0+GnonbUQ9fpJxRt+WLoFJhHeJpvlcKoOoy/GjTiUuchP9dGU+GkEXyV32pQ57nRBlR3hKd6wd24taMLdFcy8QWr5lM1hdUv56yoGXqIxuNvY0hvwZWx5WWj5akFqU49YDy9EGEsQqGUVpVkxoSSuttz7kIn/EgY8+J0yitDKV1iNPWheVUv8N9rc4+/e3SQFod7OxhSAP26s5Q5da1YDP3NxM= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(376002)(396003)(346002)(136003)(451199018)(46966006)(40470700004)(36840700001)(7696005)(7416002)(41300700001)(40480700001)(6666004)(107886003)(966005)(8936002)(47076005)(5660300002)(426003)(36860700001)(4744005)(40460700003)(336012)(921005)(186003)(2906002)(82310400005)(7636003)(478600001)(356005)(2616005)(316002)(110136005)(86362001)(26005)(4326008)(1076003)(36756003)(82740400003)(70206006)(70586007)(8676002)(83996005)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 01:29:38.4508 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5e760af3-047a-4311-ab61-08db2b3e1193 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT096.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7743 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add tree, mailing list and patchwork details. Signed-off-by: Dipen Patel Acked-by: Thierry Reding --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8d5bc223f305..65b58963f0d2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9425,6 +9425,9 @@ F: drivers/input/touchscreen/htcpen.c HTE SUBSYSTEM M: Dipen Patel +L: timestamp@lists.linux.dev +T: git git://git.kernel.org/pub/scm/linux/kernel/git/pateldipen1984/linux.git +Q: https://patchwork.kernel.org/project/timestamp/list/ S: Maintained F: Documentation/devicetree/bindings/timestamp/ F: Documentation/driver-api/hte/ From patchwork Thu Mar 23 01:29:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dipen Patel X-Patchwork-Id: 667097 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 6C072C77B6D for ; Thu, 23 Mar 2023 01:29:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjCWB3s (ORCPT ); Wed, 22 Mar 2023 21:29:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230008AbjCWB3o (ORCPT ); Wed, 22 Mar 2023 21:29:44 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E2E63AB5; Wed, 22 Mar 2023 18:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C2NyKuhwvQHKrJ1mLQzoHzDHiQQhlt7JuX+qS/GkosSvxT3N989QUO5vgfaQzDV90FgQ30K3MSCI7RBqim8OlLJPxOQCERHzLnESqrmOifqUuM4L61gu0gHY7Qdru8diGRGNqV3RKf0ul+815Ds/C5G2oo5Df/79qtPhDe5JAQ0s1zad2bS8Jg3KrfyK92kEUIbXq3pHPfJOYal6m3ItL3wnQoDgMYpfyQw6dyTtuptN1p65E2u34khnO4m/p4ccPch4Dhx6XVIJ7MnJ4VgErEsrRN49oMjZ0DH9cmgTq1UiTn5P+exD4sF3TAxTye5E+dcxLPhJxawiOJyPQV57/A== 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=ZG9Z9etWlohMIrbvOzFyAIxV9lXcepZbcGTnji9eEPI=; b=KCIXrajmxBfcJpzN2cY2i3nOrtGv/GBnssflO3y1uQwIK+zheOV/w5a5oTbOdv0WLCpyLLgEkCkf2EZ2nIRLA09Enln5KnTajXXfw9Dvb5DD2G2ik06XIP3glmegGAt3PhMzQRb0+Hs2Hev4uDA2XvwfXeqiEbpw0HzIVXy7P7a/2I1VYFiZjFIPEDa7Ztz+FdL+NcAxAQ3Eea13yBSbqjFvpRGFEOUr2o5nzOpYVYVya7fQor4QgOo2DRirxBXCP52V2RrKeMvvF8hWf9Gyt73uwJxIvwjgZclK6futqssiPlFGRj1nz1zaReCziUcatfxIJ8juPU/tjV9UuzN1Zw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZG9Z9etWlohMIrbvOzFyAIxV9lXcepZbcGTnji9eEPI=; b=PmUajUvtxHLfL7DyLw0B/8ZazrCrNWipLsHej4/xRnCRYnjiSmr1ksxcX5D0wWXNeppTMWSTAceWGDyDBL5/HbfsWGaWO5Y0bxbgUybV3dLbQzgMTipl48q7BYPxevIGwFxGYikqUvGxibGEA3ys8vehWdKJ40Vva4fTNaCgsDKm4JaeIFWCuEfrFLuTinnzRZasLLDegq0aSK5IN22JbFlcpdkAf3qnnCIUyRFGgI8iJ4H83pmbPAZT0cYp6duDxTyEqoCeL84iahMM4ODtYdsSkUz30AaW+mbe6JnrHDRpwvqjvLlig4+dUBYQNnI2mYvG/W3FeO68cZRe8mXyKA== Received: from MW4PR04CA0189.namprd04.prod.outlook.com (2603:10b6:303:86::14) by IA0PR12MB8748.namprd12.prod.outlook.com (2603:10b6:208:482::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Thu, 23 Mar 2023 01:29:41 +0000 Received: from CO1NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:303:86:cafe::3c) by MW4PR04CA0189.outlook.office365.com (2603:10b6:303:86::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38 via Frontend Transport; Thu, 23 Mar 2023 01:29:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT042.mail.protection.outlook.com (10.13.174.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Thu, 23 Mar 2023 01:29:41 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 22 Mar 2023 18:29:33 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 22 Mar 2023 18:29:32 -0700 Received: from dipenp.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Wed, 22 Mar 2023 18:29:32 -0700 From: Dipen Patel To: , , , , , , , , , , , , , CC: Dipen Patel Subject: [PATCH V4 02/10] dt-bindings: timestamp: Add Tegra234 support Date: Wed, 22 Mar 2023 18:29:21 -0700 Message-ID: <20230323012929.10815-3-dipenp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230323012929.10815-1-dipenp@nvidia.com> References: <20230323012929.10815-1-dipenp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT042:EE_|IA0PR12MB8748:EE_ X-MS-Office365-Filtering-Correlation-Id: c0ba2bf4-02e4-4dca-b24d-08db2b3e132a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sxCWXUPf6O+X1IoQOeVWnbqoOqeOJ2boUDvxdj9TBvug+RqKuZwA4Ts8FNcWFbxCpIgP+Slz0BioUMQ7TQHwQs/RS6c0A9NQnG8lrxQq1yxjUtjeIa7B6pmjsr/2NrxbZAxVZLhdQIVB9LgP0ZVpavGXCrT18gxjzNUT4cPN4vFfJHAXwB+NypDzi+U1Gxniwoi2pdKaEERIQ/taLCfaz9snEh3PWODjzpAtRVZemvY9yI7lKjBfQoOF8Uiq9uHy3aeppt+6wRyuPGSg7kwUIHbMy4+Q9cfpcZZR/tGaDCmp0kul2mme7E1zNwP+B/N9I8Cxk8Dw5ucbmGLJ9Q0J2ll4252PfrR5Jf05Vx6AAvJunMx+vB5GIoUt9XUYCCehNFlwvz7P1Vu6ecShAqWOiRpBhLWLKqz6ZVCHPsX+i+UxCozpLozfs6WkJXfx1vAwjOvgfb0itXVDTnTFW6QQnbBvsnZR7v3jH0OpwCEaC/RjE9A4TAQn1y4JFYt4rjvDBNmGtkl0fyBa/4y69NpiwpjjsQ3fN72hUddEbRVNn5jRO3qL9alF3bS5gIYt8WEcD3BdtH7HgKwXGKei2c8HJtfoMJg4VsFlgfeiWsJoAsw6SsXNCknGh6I4PT2JtP/P5F18HJfb0tS94t+TuScoVA6Wi605lJsGbJ3Ru4nFWfs6QnkSiBKdBhvvNv2W5Ik7zAnGHheeIy9iBkdQwW2MQyi4pBsmpjEFD4brveKGg8+CVobaNTPBsHiKgmrs020BL5IPDStTthAQ+DP3fhDszL1iOUcdXTY0CEOUOr1EBXVfkqIdyQsd/jUwYVvG0zbCvaM6wSioco5QNAiGiFd/dxl+CsBp30M78pd3j1rVIeP5YyBcskgRJBPAG//b4kWxl8aZ5ZsASeZBRlum7pkvyQ== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(346002)(39860400002)(136003)(376002)(396003)(451199018)(36840700001)(46966006)(40470700004)(82310400005)(2616005)(426003)(47076005)(70206006)(86362001)(82740400003)(36860700001)(7636003)(336012)(356005)(40460700003)(921005)(110136005)(8936002)(8676002)(2906002)(4326008)(70586007)(36756003)(40480700001)(41300700001)(6666004)(5660300002)(186003)(478600001)(966005)(107886003)(1076003)(26005)(83380400001)(316002)(7416002)(7696005)(83996005)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 01:29:41.1026 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c0ba2bf4-02e4-4dca-b24d-08db2b3e132a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8748 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Added timestamp provider support for the Tegra234 in devicetree bindings. Signed-off-by: Dipen Patel Reviewed-by: Krzysztof Kozlowski --- v2: - Removed nvidia,slices property - Added nvidia,gpio-controller based on review comments from Thierry, this will help simplify the hte provider driver. v3: - Explained changes in detail in commit message - Added allOf section per review comment v4: - Logically divide the v3 patch as follows - Created Tegra234 support patch - Created depracate nvidia,slices property patch - Created addition of the nvidia,gpio-controller property patch .../timestamp/nvidia,tegra194-hte.yaml | 44 +++++++++++++++++-- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml b/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml index c31e207d1652..158dbe58c49f 100644 --- a/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +++ b/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/timestamp/nvidia,tegra194-hte.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Tegra194 on chip generic hardware timestamping engine (HTE) +title: Tegra on chip generic hardware timestamping engine (HTE) provider maintainers: - Dipen Patel @@ -23,6 +23,8 @@ properties: enum: - nvidia,tegra194-gte-aon - nvidia,tegra194-gte-lic + - nvidia,tegra234-gte-aon + - nvidia,tegra234-gte-lic reg: maxItems: 1 @@ -43,9 +45,8 @@ properties: description: HTE lines are arranged in 32 bit slice where each bit represents different line/signal that it can enable/configure for the timestamp. It is u32 - property and depends on the HTE instance in the chip. The value 3 is for - GPIO GTE and 11 for IRQ GTE. - enum: [3, 11] + property and the value depends on the HTE instance in the chip. + enum: [3, 11, 17] '#timestamp-cells': description: @@ -55,6 +56,41 @@ properties: mentioned in the nvidia GPIO device tree binding document. const: 1 +allOf: + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra194-gte-aon + - nvidia,tegra234-gte-aon + then: + properties: + nvidia,slices: + const: 3 + + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra194-gte-lic + then: + properties: + nvidia,slices: + const: 11 + + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra234-gte-lic + then: + properties: + nvidia,slices: + const: 17 + required: - compatible - reg From patchwork Thu Mar 23 01:29:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dipen Patel X-Patchwork-Id: 666385 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 A2B66C7619A for ; Thu, 23 Mar 2023 01:29:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbjCWB3p (ORCPT ); Wed, 22 Mar 2023 21:29:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbjCWB3n (ORCPT ); Wed, 22 Mar 2023 21:29:43 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2088.outbound.protection.outlook.com [40.107.237.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8399D272C; Wed, 22 Mar 2023 18:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DjncYUJfh8ufht0/a0gq14ZdHVZ2IUmqfYNrh5P3q48z4oYPGabq0NO53UQHg79AyNOtrvDGfHL1iqCcwEx3SQtsemMU+4IhOrW4MDt377o3/lRrUqlTwDt+LPt1BQyAfmdoXBTb82Yb8S/WoTLfzB1TCFpH6KBJ2ga1n08PdqQkjyYFD0C9mOBFPRbfrSuYHs0YtIy4lPuIEhcFzGrA7ko2DvwgJUTiLeBZUElRdH7uLC75y5AO743mfO2mLWAKKCBxwisi0r8rE1m4E4124zbzy4csNpfOxrmTCrodrRtpyDwD5uwPN6cxozNB1v3848/+j+yubSOC5Bqu5KqpzQ== 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=KXcxWxjWhxhBkMWqcTnUOeQp+YebY9tv93uPQ2Lf9hk=; b=C0bWlfUi3lrqKDCP3mK+x3aFBc9VkXIhtNXP8ubCkvfgLKM87kLwISYc8DMchbgFV7x+xlekQK3iYrRkEWehjTdgjkH6J/YQBrJS93FVv7kvI9o7b10i6/5PLPqwSTZnDNBbboSg2WC1sI13ttkpnxPr13EqmsJlM8dyOuekZyqaRZF+pPfkzzEapJfVNecLc0PqY+XQsR+Tij+g/en7I0kKMOuccQcalLYrGg7o53Xp4i/LK/xhuDcaz5ciJXtFukWS/Va5eqo6DT+JKC8VBWh6HWvAy15CxKGPl3OogB4p4+O2Oyq+S4UlmTNW48vFli6MLaRmen0s/vLlaKRu0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KXcxWxjWhxhBkMWqcTnUOeQp+YebY9tv93uPQ2Lf9hk=; b=fHSEFCLVKFSDDY24I1lwvLS8ANcFGtVxEx0fdqgSmaBj+mfTX6jbYaKEzZW/jpfLG4ic8m/vD30GPLqqBaVOqmGvQ4saOQnC2rj6O1vlxSkIQLf3kukPWg5dN2ebkNgQxBWw86Oghsvegyct549DE66WH9wC7iui9w4AQb++GTL6z2hv9zOUWVBosclW3q8IZXHWcWg6IrTJE8szsYJIjm26ckrZTmU2dRM/6xmmrmCF97QSyEQmWF0QAAYC84qFVqVC/l21oCH0zZdnEawFSbQ2kb9m33x/0HaJkCG7jAhveUEEhxEwMhhRWJ/bB9zCLDyx3p8Fi2eHtJaEF1JitA== Received: from DM6PR06CA0010.namprd06.prod.outlook.com (2603:10b6:5:120::23) by DM4PR12MB6542.namprd12.prod.outlook.com (2603:10b6:8:89::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38; Thu, 23 Mar 2023 01:29:40 +0000 Received: from DM6NAM11FT096.eop-nam11.prod.protection.outlook.com (2603:10b6:5:120:cafe::12) by DM6PR06CA0010.outlook.office365.com (2603:10b6:5:120::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Thu, 23 Mar 2023 01:29:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT096.mail.protection.outlook.com (10.13.173.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Thu, 23 Mar 2023 01:29:40 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 22 Mar 2023 18:29:33 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 22 Mar 2023 18:29:33 -0700 Received: from dipenp.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Wed, 22 Mar 2023 18:29:33 -0700 From: Dipen Patel To: , , , , , , , , , , , , , CC: Dipen Patel Subject: [PATCH V4 03/10] dt-bindings: timestamp: Deprecate nvidia,slices property Date: Wed, 22 Mar 2023 18:29:22 -0700 Message-ID: <20230323012929.10815-4-dipenp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230323012929.10815-1-dipenp@nvidia.com> References: <20230323012929.10815-1-dipenp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT096:EE_|DM4PR12MB6542:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e7a71cb-309f-43e8-d315-08db2b3e12c4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dey7Q0o5XjGuYBrRfW9BTs89/EvicS1Z5cFMBka7IfmnT6JnWZRneEqr2MUoYitU7YyT+cfx0/gp7x54pwDV27NdNjPhTZpVvZ17tCzHkUvV+b8Zw9rlfwFXwNIpKWZunxBGLOHaA96ptQWVxrV9mhYUfBkC0kKmt6xe5ZXuWXPyZnYkP9hCibOP3/AgvTRqQCTdlP0uN/nmvZKPhIdQTEQq3UNGGh9lADjpxTNN6kqlYa/KBjp1lxkspjxV8vDkrzQ6voCt8pgUOqdqp447bc93rgcJdexHtxkzS+dHpWOGeTDMxL46bSylDIjXp48n32+/6fmsThq9fDL+zK+K+H8QJ+R46SYutxzNrdPoEl6dYIo2ypVo6xqGYt8WqbQ6TRIFQkntLjlGeoRglfSYSl3bG6SZU0EeZXOmbNScns71tbdTgWUjH0g6CXPfGRaqUKwM2/8m3uRHJa9/Uvqg0Amkxi52Fo+3Bdnh3ig0J1jKgkKkv5byfHj2VrazIPUcm7x34sFt3Vf2aJMzO7sjrSCcDH7JINR113dvG2iXcQfEcTnPJ0XQZXAnxBQ2OQx2AcGvnMc/s5SZT4vENQpqas5PDYea5OoYG3sX7JA67SYj5RAYK35eGvo4+IT6I2xvJJXPfYEJsnWjbonQ8+G05VzmynMFPB51UlTEAmsZw950G8rg3whipL6+J6RCk1YtxuSVNMRxiY7RFf4xlXY5ZewUO92gzbI9EXqdsGJFHSCa92tgYBBcbbdqzdR5Xzc7wjYvS8csvDHfbtlnkisl3t0xb+h7JbRzqwIz7NwDBq6le86d6GT4BrbXzKGydFBC X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(39860400002)(376002)(346002)(451199018)(40470700004)(46966006)(36840700001)(41300700001)(5660300002)(7416002)(8676002)(4326008)(2906002)(40460700003)(36860700001)(82740400003)(356005)(921005)(7636003)(36756003)(86362001)(7696005)(1076003)(107886003)(6666004)(26005)(110136005)(478600001)(70586007)(316002)(8936002)(40480700001)(82310400005)(83380400001)(70206006)(47076005)(426003)(336012)(2616005)(186003)(83996005)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 01:29:40.4506 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1e7a71cb-309f-43e8-d315-08db2b3e12c4 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT096.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6542 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The property is not necessary as it is a constant value and can be hardcoded in the driver code. Signed-off-by: Dipen Patel --- .../timestamp/nvidia,tegra194-hte.yaml | 43 ++----------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml b/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml index 158dbe58c49f..eafc33e9ae2e 100644 --- a/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +++ b/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml @@ -42,10 +42,13 @@ properties: nvidia,slices: $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true description: HTE lines are arranged in 32 bit slice where each bit represents different line/signal that it can enable/configure for the timestamp. It is u32 - property and the value depends on the HTE instance in the chip. + property and the value depends on the HTE instance in the chip. The AON + GTE instances for both Tegra194 and Tegra234 has 3 slices. The Tegra194 + LIC instance has 11 slices and Tegra234 LIC has 17 slices. enum: [3, 11, 17] '#timestamp-cells': @@ -56,46 +59,10 @@ properties: mentioned in the nvidia GPIO device tree binding document. const: 1 -allOf: - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra194-gte-aon - - nvidia,tegra234-gte-aon - then: - properties: - nvidia,slices: - const: 3 - - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra194-gte-lic - then: - properties: - nvidia,slices: - const: 11 - - - if: - properties: - compatible: - contains: - enum: - - nvidia,tegra234-gte-lic - then: - properties: - nvidia,slices: - const: 17 - required: - compatible - reg - interrupts - - nvidia,slices - "#timestamp-cells" additionalProperties: false @@ -107,7 +74,6 @@ examples: reg = <0xc1e0000 0x10000>; interrupts = <0 13 0x4>; nvidia,int-threshold = <1>; - nvidia,slices = <3>; #timestamp-cells = <1>; }; @@ -117,7 +83,6 @@ examples: reg = <0x3aa0000 0x10000>; interrupts = <0 11 0x4>; nvidia,int-threshold = <1>; - nvidia,slices = <11>; #timestamp-cells = <1>; }; From patchwork Thu Mar 23 01:29:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dipen Patel X-Patchwork-Id: 667096 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 79397C77B6C for ; Thu, 23 Mar 2023 01:29:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbjCWB3z (ORCPT ); Wed, 22 Mar 2023 21:29:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230121AbjCWB3t (ORCPT ); Wed, 22 Mar 2023 21:29:49 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2065.outbound.protection.outlook.com [40.107.220.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CD5A2D5A; Wed, 22 Mar 2023 18:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NOLM52lUVHBrmQQE68omjH6xWpnZ4iHeKKs1SNOdZNL5aN9SQKk6gM6ey+bTx5StOgixbO/Im3Q48Yw6xGoio920cUaT6TiX8xi0It2nUOkArdm3iaFQQi0YvoqhwNv/TDEmZ1qeOAoPQ/aRWs2MkmG9WbYzFrj+RMe5dkqMUIF7FNUvicjNHA2gupg7dilbILihdPoRHXdC5qSgyxsuUTSF1LyJsh8vQTK2IcfaJIsypKkwVbZ70PFDJIevPADl39tT+ND5EQl/ndvudFgaf96cy2nz5LMgPalhPYGj2JnQe2Y6EB/9Hf+KzXlqpSmcAMdDGEs/WqnThZs2vr63sQ== 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=aRSrneVwlnQEB9m06wEPIjU9TDyL1SRZmKcYT9YP7UM=; b=govFxe8XtCphJbTsFM5Eh8lDUA3/AD5mbMN3SZGVVnEVJYEqsImEpuMThikbs57s+Y+42STsZRv4M0R8D7nWzQ9Nx6EX0DI9PenTtZEIuawB2BA3bd58L7YfVw1/taxa7m2hxuYFLpmP9/DmEGc1/+UX+eImCBA2IbXF3U7QF8bF8Jo0bEaR/IGDWddtTwFkMXuGwykGn/beJ2r2+/qNcYICY7IhdfgVqHxnTdrNsBZMfhFLd2xM7mEME6be+8/SlThsJV2V9nhi6ssC34Pu0DEGSaaZZTvx+Iy7T1Y7Aq29MAjqIfS9qUk4XF42DwxOgSxvqHKX1/UQtK1Yh1QxiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aRSrneVwlnQEB9m06wEPIjU9TDyL1SRZmKcYT9YP7UM=; b=USwU3gFrx8i3bkEF+/xAfQhApyQyt+oFWDRFuy2niSavh8QOoyszOHN3NZpYYZAjXP7pPHFMMN1kV0iSU35//gAPQK3bleDVWPfKiIcy/zllvN1Ll0kvRhyByHlX5YUftBL0WB+41fDDJ8tBxeBGadiLd6iUjqXOO0U++KF/fNyaY/Ge1ppsw2s8aM+874Ihsd1fieiWJrS7bXUTKJ6sTONEMe4WS04KLBi02TznJ1Fe4ot0bhdAe12/xhbMhxY/NWPukQ5s87BKOuyBndItlyHwQhORJgDnOi9RvSjcH0SJYKMfD6TVW+qIZo6qDmss9O+8TBRk9ZPCYLKiCTBjrQ== Received: from MW4PR04CA0198.namprd04.prod.outlook.com (2603:10b6:303:86::23) by SA1PR12MB6870.namprd12.prod.outlook.com (2603:10b6:806:25e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Thu, 23 Mar 2023 01:29:44 +0000 Received: from CO1NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:303:86:cafe::9a) by MW4PR04CA0198.outlook.office365.com (2603:10b6:303:86::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Thu, 23 Mar 2023 01:29:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT042.mail.protection.outlook.com (10.13.174.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Thu, 23 Mar 2023 01:29:44 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 22 Mar 2023 18:29:34 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 22 Mar 2023 18:29:33 -0700 Received: from dipenp.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Wed, 22 Mar 2023 18:29:33 -0700 From: Dipen Patel To: , , , , , , , , , , , , , CC: Dipen Patel Subject: [PATCH V4 04/10] dt-bindings: timestamp: Add nvidia,gpio-controller Date: Wed, 22 Mar 2023 18:29:23 -0700 Message-ID: <20230323012929.10815-5-dipenp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230323012929.10815-1-dipenp@nvidia.com> References: <20230323012929.10815-1-dipenp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT042:EE_|SA1PR12MB6870:EE_ X-MS-Office365-Filtering-Correlation-Id: 24f479a2-cbc7-4d2f-e1ee-08db2b3e1509 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hyLaBmxefDrQzcpNskfNgKteNTzFW0+p9D/I1y3rQI+pnhhlguz3Ch1S4+BM7fmBMT1pYH5yi2ZCRF5txdu2I5TAeG9py1CPR2HG5c2wdj7g2j73g06H6lBcQoZYsyelG4tbq+0RHD7p/ORu49z682LGn95R4FmZvDLUEWGTTX5V5OG4uz6BHcNPvwdXd49Q8eVCR9Vdk5JZQ8jH2PJE8yKjOiLxi8N+XVmhF29RR+qagOYqWEXb9V7vj/pYZUOKdDy9OGw/IEdYlnwVH455ktYx6+kMR+TsYT9BZILrRPjn8rYhyqakOCPhkYfxFQsj+OSMjkJHQe7YHMezmiw+Wpj/fmTfxTfnlfkS+fJx7WutqW2Jed+PCIrQYXdsKXFVT9INcYSP+cxBqMwl7ATjs0ORubc9R5WbEXFTaDdXcn7HikNvZanOrh0w1En9UOER9zBm23D1MKSuJEAePdUdKLKwcDdzz/P9QJjxLDglTBGbg+J/6FSDH1CjIcRSk0T3QW03pIYk0WeJznbzBPQl30/FFhcCSXj5qn1zqS5aGnzRD6kNgn0gf923lFEMUYnggI/f01o5A/jzBWNREFubVC+YkLWqgBc9FwH/Q3WqgYk++MKJJxfG4y2CjeXL9KVKvpsLrxF0vzDTXhQ0m8BjPGRK9Et+aYTHtAl/MkEigna7dQf+qlNmDfNLmJZ/+g6TCUDQ1nPdmuWfzQramuRwSNNo+SabD0vcV5OzUq2stkihwkEavy2yOxksf83agPOWxqD7/n37NMudxPPFnZakn+9NRtSoyPwjoi45zZzux80XFlQp5DeQ2LjA3ImxrT5G X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(136003)(396003)(346002)(376002)(451199018)(36840700001)(46966006)(40470700004)(921005)(4326008)(86362001)(40460700003)(356005)(7416002)(26005)(36756003)(41300700001)(110136005)(47076005)(70206006)(8676002)(5660300002)(8936002)(83380400001)(6666004)(36860700001)(40480700001)(426003)(82740400003)(336012)(316002)(7636003)(107886003)(7696005)(82310400005)(2616005)(2906002)(186003)(70586007)(478600001)(1076003)(83996005)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 01:29:44.2430 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 24f479a2-cbc7-4d2f-e1ee-08db2b3e1509 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6870 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Introducing nvidia,gpio-controller property from Tegra234 SoCs onwards. This is done to help below case. Without this property code would look like: if (of_device_is_compatible(dev->of_node, "nvidia,tegra194-gte-aon")) hte_dev->c = gpiochip_find("tegra194-gpio-aon", tegra_get_gpiochip_from_name); else if (of_device_is_compatible(dev->of_node, "nvidia,tegra234-gte-aon")) hte_dev->c = gpiochip_find("tegra234-gpio-aon", tegra_get_gpiochip_from_name); else return -ENODEV; This means for every future addition of the compatible string, if else condition statements have to be expanded. With the property: gpio_ctrl = of_parse_phandle(dev->of_node, "nvidia,gpio-controller", 0); .... hte_dev->c = gpiochip_find(gpio_ctrl, tegra_get_gpiochip_from_of_node); This simplifies the code significantly. The introdunction of this property/binding does not break existing Tegra194 provider driver. Signed-off-by: Dipen Patel --- .../timestamp/nvidia,tegra194-hte.yaml | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml b/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml index eafc33e9ae2e..841273a3d8ae 100644 --- a/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml +++ b/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml @@ -51,6 +51,12 @@ properties: LIC instance has 11 slices and Tegra234 LIC has 17 slices. enum: [3, 11, 17] + nvidia,gpio-controller: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle to AON gpio controller instance. This is required to handle + namespace conversion between GPIO and GTE. + '#timestamp-cells': description: This represents number of line id arguments as specified by the @@ -65,22 +71,43 @@ required: - interrupts - "#timestamp-cells" +allOf: + - if: + properties: + compatible: + contains: + enum: + - nvidia,tegra234-gte-aon + then: + required: + - nvidia,gpio-controller + additionalProperties: false examples: - | tegra_hte_aon: timestamp@c1e0000 { compatible = "nvidia,tegra194-gte-aon"; - reg = <0xc1e0000 0x10000>; + reg = <0x0 0xc1e0000 0x0 0x10000>; + interrupts = <0 13 0x4>; + nvidia,int-threshold = <1>; + #timestamp-cells = <1>; + }; + + - | + tegra234_hte_aon: timestamp@c1e0000 { + compatible = "nvidia,tegra234-gte-aon"; + reg = <0x0 0xc1e0000 0x0 0x10000>; interrupts = <0 13 0x4>; nvidia,int-threshold = <1>; + nvidia,gpio-controller = <&gpio_aon>; #timestamp-cells = <1>; }; - | tegra_hte_lic: timestamp@3aa0000 { compatible = "nvidia,tegra194-gte-lic"; - reg = <0x3aa0000 0x10000>; + reg = <0x0 0x3aa0000 0x0 0x10000>; interrupts = <0 11 0x4>; nvidia,int-threshold = <1>; #timestamp-cells = <1>; From patchwork Thu Mar 23 01:29:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dipen Patel X-Patchwork-Id: 666384 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 2FD84C77B6C for ; Thu, 23 Mar 2023 01:29:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230064AbjCWB3r (ORCPT ); Wed, 22 Mar 2023 21:29:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjCWB3o (ORCPT ); Wed, 22 Mar 2023 21:29:44 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2051.outbound.protection.outlook.com [40.107.102.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 242C635AD; Wed, 22 Mar 2023 18:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PhjhcOWYNed0FATEVIyM4BO2Zj3wNq5CaOF56UlHgF8pJ7CbjHWDqcd9q98Qw/reJL7/iFXyH1SVxj39cQeOwaBxwZUw496p/tIWXZT/jqwMXaBlWRtAEmywwGlXNj43xSpFP3Z7k1qxfBS2oo/JByxwunfm+ad0Y3WhzRTtoG4s38ieu2PaNz+Iq+olu03iqxtOobXa7UDeK7H8D4GzLnBGlOXIXz6zKhW/VApOp97pBbJZFAyVat4BKAkJsoyT7I+pL3rN053LAXSZY0fbhK60vaNYuFq4gcPLPAl/eXodl2ASIC8rBqLpzecsTso4J55AsMweD8cVmNaGXY6cmg== 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=Kx/kpYZ7ir9/y4hkhUOBaWiXie83l6Pngi0Gj/5GgOI=; b=oIh8+dFeVP4LzR8Z5c0iGx9VGQMJq6FmXQb9m3Ns2sZ8s9+Mxz55DrnBp/TjYAOsyTAKU7CrPKfVj/aSvAoaoUpb9yVHrEc7iQUs/FG9lqH0ZEkdxH2iCmbUrrYq5eCsAb4+UWe6kuhf2Bh7P/IDT/cBtrvQBYB+iBBYIk/ykJT9b2y73VCzyUpgxD84i5kg+53tT7w6q7RDzIdMkoO5Ex6UgK3piLAZ3YtTgy6GXgLnt/EvLGfZsAyqY5yuyD9l1iy4WnYzD2e1rzxbk4UHM0y7W2z+amndyiD9uB2guOELi+YOUg/W2N6ICKDZPqQeMZqkXwZ7nVi3ji7xetH8rw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Kx/kpYZ7ir9/y4hkhUOBaWiXie83l6Pngi0Gj/5GgOI=; b=UVoCIesJEbnkYSnASS540uHp+rTdsOMISKoUUe/JLoODls6YI7KEJmJoKe8QjHF77XekdP9Glypir2CR+5YJAejJNVMBISwu9+cBUu9MOw5O7ov3PrtDDMgGjyyCeVSxTf6UhdvihgJq+2tPD3grrJ2fEqSLcRLeDETJc8LgsRLS/hZWTQBdyrRBGsiku+P/MIfsKnXPvyIWCu0LSe6nCkNa9PyIZLQzIG0ciu6zZXwBJJfkHXf4pL92SqEWLfL3N4VnPf0NvOiYpT0wsDVj4p4qNIE45Cv91JVqx2lsS6wav3EC08vWetkKrhnQBVka4TM9DcVmfvTYQStIVNDVEA== Received: from DM6PR06CA0005.namprd06.prod.outlook.com (2603:10b6:5:120::18) by CH2PR12MB4166.namprd12.prod.outlook.com (2603:10b6:610:78::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Thu, 23 Mar 2023 01:29:41 +0000 Received: from DM6NAM11FT096.eop-nam11.prod.protection.outlook.com (2603:10b6:5:120:cafe::f9) by DM6PR06CA0005.outlook.office365.com (2603:10b6:5:120::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38 via Frontend Transport; Thu, 23 Mar 2023 01:29:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT096.mail.protection.outlook.com (10.13.173.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Thu, 23 Mar 2023 01:29:41 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 22 Mar 2023 18:29:34 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 22 Mar 2023 18:29:34 -0700 Received: from dipenp.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Wed, 22 Mar 2023 18:29:34 -0700 From: Dipen Patel To: , , , , , , , , , , , , , CC: Dipen Patel Subject: [PATCH V4 05/10] arm64: tegra: Add Tegra234 GTE nodes Date: Wed, 22 Mar 2023 18:29:24 -0700 Message-ID: <20230323012929.10815-6-dipenp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230323012929.10815-1-dipenp@nvidia.com> References: <20230323012929.10815-1-dipenp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT096:EE_|CH2PR12MB4166:EE_ X-MS-Office365-Filtering-Correlation-Id: 60125a30-0ee1-42a2-a451-08db2b3e1339 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I512c2jsJIYLscuzOOkP7WHzhMAUse9fKWTIX01FOMuomcpcYIEVUUt1Fs43d4u7xV//odBxhvZJp93X7q9/vdqISBFdLHHBtRW4Wx9mnTf0Ni/eh6A14O478d5WLgJzL6osZZo/SdvPTMcSmgeKyYeveEl8yRC0KPkV/cXtN/GsW9+bBU1jOheUniPGcLMBUVLMR6YzMDd+8kCDQY7JCloCPYhPSwDOOAQAyEIgjbAQpP1yLR/gkmUpL0TPLRZyWI6zIkm8d/6jzN/hgRooN9r6CytkeKZYxXtB/PbGTHvukmzeHdO2gSaJzVXICfl1UtR9d6NSDdChGoQPenf9z1Lt2+BtmOZUQ9VxuPPx6D8oITx0iAH9dRwEPTIgjA5I4JIei/2MQVFusuXMcjlEyT+cIsifE5FLkHbsDXsQFswnMckfE/zO1POUFfiBvvKL15ue3jx7fANY7gJtaQGvsD8f6VllwcGHXSFvsvmcX+ZWnVwT7CDx3oplqdAvBjtSRCn5IJUithPnQU13Xy7YQTGSTfwFHb/mmJ7b1zn23OIBgmeWFN1uSj+9OVhzUXD4I+oCzpFgaqUOsjrNPbniA1OZYge8/T0T8mN0PPGfDBecuL1ovGHoy+pGNvskywlIwKcb3e6ZKkASq2JDjk0sbaVnlKg9xa5KkRtn+Y4y0mNxf5XJKqCUOjwfIm86T7XxuP+e6F6/dLcRNiPE1Zwfh3BkavlFsfg+LmVy0AI1iWnQec6mwxH6l3hTCCA29QB/XWDIOinLbYlXOfVmS8lE5UnFkfKy9YHxvm+MeFo5oBMCf4a2uqxzH2YtlGqUQK3B X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(346002)(136003)(376002)(396003)(39860400002)(451199018)(46966006)(36840700001)(40470700004)(83380400001)(86362001)(7696005)(82310400005)(40460700003)(40480700001)(36756003)(316002)(6666004)(70206006)(8676002)(4326008)(70586007)(478600001)(2616005)(336012)(110136005)(47076005)(426003)(107886003)(186003)(26005)(1076003)(356005)(921005)(7636003)(5660300002)(82740400003)(7416002)(8936002)(36860700001)(41300700001)(2906002)(83996005)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 01:29:41.2162 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 60125a30-0ee1-42a2-a451-08db2b3e1339 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT096.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4166 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add GTE LIC and AON GPIO nodes for the tegra234 SoC. Signed-off-by: Dipen Patel --- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi index 8fe8eda7654d..54790c6b6a2c 100644 --- a/arch/arm64/boot/dts/nvidia/tegra234.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi @@ -1156,6 +1156,14 @@ clock-names = "fuse"; }; + hte_lic: hardware-timestamp@3aa0000 { + compatible = "nvidia,tegra234-gte-lic"; + reg = <0x0 0x3aa0000 0x0 0x10000>; + interrupts = ; + nvidia,int-threshold = <1>; + #timestamp-cells = <1>; + }; + hsp_top0: hsp@3c00000 { compatible = "nvidia,tegra234-hsp", "nvidia,tegra194-hsp"; reg = <0x0 0x03c00000 0x0 0xa0000>; @@ -1673,6 +1681,15 @@ #mbox-cells = <2>; }; + hte_aon: hardware-timestamp@c1e0000 { + compatible = "nvidia,tegra234-gte-aon"; + reg = <0x0 0xc1e0000 0x0 0x10000>; + interrupts = ; + nvidia,int-threshold = <1>; + nvidia,gpio-controller = <&gpio_aon>; + #timestamp-cells = <1>; + }; + gen2_i2c: i2c@c240000 { compatible = "nvidia,tegra194-i2c"; reg = <0x0 0xc240000 0x0 0x100>; From patchwork Thu Mar 23 01:29:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dipen Patel X-Patchwork-Id: 666382 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 4CBA2C77B75 for ; Thu, 23 Mar 2023 01:29:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230207AbjCWB34 (ORCPT ); Wed, 22 Mar 2023 21:29:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbjCWB3u (ORCPT ); Wed, 22 Mar 2023 21:29:50 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2076.outbound.protection.outlook.com [40.107.95.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0153E3C25; Wed, 22 Mar 2023 18:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EussqS4pgZx+X4nAnLg8oUWh3+gBLJs+gLZI2bHBpbj1a9/vuDhnnMurzM/P81ErVmzLAi9kpi7WxDAoT0QT4WwVCgx1k+jarLoIZCQW8vFzB33VzXbBAZkf1U58emK6UlmDiqIXoHYKCLsWZqEiD9Pm0epjXZZ7+Hx7MXrebR8TBmNn3DtWAdrnYS8KpGPJXgdz+1r7iIBRXFpOtogXDXA7ELzk4lMoSfLR1+iE+7L4y5Vf5zZgtvDgThMol+cEzDftqvjzmqQlDrfxYgQwdDGJJtf37tC8f0kfcRNZexkfwllGNx57H5EJOxxjNHvV2DlscWkg7qiq5beixJot3Q== 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=GjbHZfAEXm7Tpt9u32Vn9q9T4Up+3nN7WFwlqHYtLGs=; b=RC/+R5IIm4et48E8Ddah/5V6gLieQNLGYafgQq/zXxXE8Uw54QGVWfIBu8vfbczS5GZpHu4R9fwq+HHr6ynm0N8jGDnEpOqvqw43Uvr0gnTJgnoiZVUDg+QM7jrxALFlo2DyZGT474qv0oRAn5TMWhsZR1/AWaU23/fA6WBPFcDRAzghvZk6DwLBRuCadiea/E3oKz0qINJHaZYJrdpDkRt5CeYjUTP/VqiWrJcImY8ZzKjsCg8prYiCACHFUq3REzIzKlE5OhQezGEhH5+I+ldVdHBs/fF2bfnA+R39yuYx04/x8Mp6CFdwcxj1Ca9b+NonbPXnSg7GdFdcTYGeCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GjbHZfAEXm7Tpt9u32Vn9q9T4Up+3nN7WFwlqHYtLGs=; b=m6OC/xZsXA2IVo8tMDjjdB+69boDz6KfOzqTt26dNa8XPx8efQlGOwjt+5XjfiLI+ME9nRVl5QMhkTWjQG7Q2Cg7DPWJ1zmle21RvXk/TBr/mvP/Xiz6YmUVDKgAE9uyDQOKNb6y2Co/fKue5ymF9+/45dkIjlNle67KbJcjhoCi2cK3HOuQj00pwttn6gVIcm/CVydC2LtW0ppzUSxx3yUFVQaDkcslhhDkvbuDbs6XNTl4yJLsnBGP27aCf/LuJOUgvrnYPDLYa9wQMD0iqlyth6hqkcFXVkzP1dFX7ZsvTS39pkUNjLzsmHAQnTda38XeEdYqPjRhBOQyOD/ZTQ== Received: from MW4PR04CA0181.namprd04.prod.outlook.com (2603:10b6:303:86::6) by SA1PR12MB6869.namprd12.prod.outlook.com (2603:10b6:806:25d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Thu, 23 Mar 2023 01:29:45 +0000 Received: from CO1NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:303:86:cafe::c5) by MW4PR04CA0181.outlook.office365.com (2603:10b6:303:86::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Thu, 23 Mar 2023 01:29:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT042.mail.protection.outlook.com (10.13.174.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Thu, 23 Mar 2023 01:29:45 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 22 Mar 2023 18:29:34 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 22 Mar 2023 18:29:34 -0700 Received: from dipenp.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Wed, 22 Mar 2023 18:29:34 -0700 From: Dipen Patel To: , , , , , , , , , , , , , CC: Dipen Patel Subject: [PATCH V4 06/10] hte: Re-phrase tegra API document Date: Wed, 22 Mar 2023 18:29:25 -0700 Message-ID: <20230323012929.10815-7-dipenp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230323012929.10815-1-dipenp@nvidia.com> References: <20230323012929.10815-1-dipenp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT042:EE_|SA1PR12MB6869:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a0c8deb-93b4-482c-23ad-08db2b3e15d2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m/gOKgHhfDLSK6h5ZrhJBgTfKcVzAbANAK1UtZhc4i26m/tSzFY0pySTTI41pYMDHdksIHFN9qbeMnYDeCPPSufeCmXbuCWC80HBLpq7hpdgpVDvQTNB3mlF6VQ9GDuUkwmxboVJLFN7BL1K5ejjcqh4Cbz4Ge3Lj/NtV0cdPHE8ulzSr8QbA0Jg3tbOQQg09jCmeoRikqN/dJSUN5bpfgwMXdtcEjp8akBbnXC9CDJcvCNMYL4bUK/A6vL6bf9LPmGThKVshpVfMfJVNTR3s8YUU/SaNiFm0gEsgvxB4zPG8XtXWsO2dAxSz7N02h0N9x7WOgLWzvo/Ru6L+b7uVGTeU3HVjKrEme36xExKPRjRY8wyBbUyH7DDrThWlzIa9BAHzIQrnH88ujaAHjVkUuaUjQ1/9DOq+YvhAIn28Ucd0HpjHDwVAaBLQfoVbDVrmBefB+gAsQ3ZFSo2SseoCxl7klOVtblsFjBevOjRXfHNOiB1E22WQxiA2UV/QoeKBnkDryu8LIqXV6AM5DcOWQw2nrEDGmUtE57meeK7/RTvgbEHVU1Oqi1QO1wsW2tKf2R7JNyC+9nmFIEnixfIdBp3aexexKFQncanq3zdEbxF9fmeBcC3lHxEvy/tJi0CK7bdC1XFYrAycXns/F07/1fbVmKcwmE5lQei21703Ldg6jVKlk76aTwVxysywQNrPhTbZx7fuEMGb7mCgeKz2vkfunOOUmcmlU1K7+vT1dc+D9VuznRUAUu0kNSNry9txOkLPLHMA1RfWUMSboMkTGM8ofpgEHq+4ERE97rQh3Nbo0guFnZYsmCXbiV2li8rYL613WpFnD1xfAWSYw/BEt9V/CwkrlXhvG8eL1kSQK0= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(396003)(376002)(346002)(136003)(451199018)(36840700001)(40470700004)(46966006)(82310400005)(426003)(2616005)(83380400001)(36860700001)(40460700003)(8936002)(6666004)(7636003)(2906002)(86362001)(356005)(5660300002)(36756003)(40480700001)(82740400003)(4326008)(921005)(41300700001)(70586007)(70206006)(8676002)(336012)(316002)(7416002)(7696005)(107886003)(26005)(186003)(110136005)(1076003)(478600001)(47076005)(83996005)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 01:29:45.5554 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2a0c8deb-93b4-482c-23ad-08db2b3e15d2 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6869 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Make Tegra194 API document generic to make it applicable for current and future tegra hte providers. Signed-off-by: Dipen Patel Reviewed-by: Bagas Sanjaya --- Documentation/driver-api/hte/tegra194-hte.rst | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/Documentation/driver-api/hte/tegra194-hte.rst b/Documentation/driver-api/hte/tegra194-hte.rst index f2d617265546..85e654772782 100644 --- a/Documentation/driver-api/hte/tegra194-hte.rst +++ b/Documentation/driver-api/hte/tegra194-hte.rst @@ -5,25 +5,25 @@ HTE Kernel provider driver Description ----------- -The Nvidia tegra194 HTE provider driver implements two GTE -(Generic Timestamping Engine) instances: 1) GPIO GTE and 2) LIC -(Legacy Interrupt Controller) IRQ GTE. Both GTE instances get the -timestamp from the system counter TSC which has 31.25MHz clock rate, and the -driver converts clock tick rate to nanoseconds before storing it as timestamp -value. +The Nvidia tegra HTE provider also known as GTE (Generic Timestamping Engine) +driver implements two GTE instances: 1) GPIO GTE and 2) LIC +(Legacy Interrupt Controller) IRQ GTE. Both GTE instances get the timestamp +from the system counter TSC which has 31.25MHz clock rate, and the driver +converts clock tick rate to nanoseconds before storing it as timestamp value. GPIO GTE -------- This GTE instance timestamps GPIO in real time. For that to happen GPIO -needs to be configured as input. The always on (AON) GPIO controller instance -supports timestamping GPIOs in real time and it has 39 GPIO lines. The GPIO GTE -and AON GPIO controller are tightly coupled as it requires very specific bits -to be set in GPIO config register before GPIO GTE can be used, for that GPIOLIB -adds two optional APIs as below. The GPIO GTE code supports both kernel -and userspace consumers. The kernel space consumers can directly talk to HTE -subsystem while userspace consumers timestamp requests go through GPIOLIB CDEV -framework to HTE subsystem. +needs to be configured as input. Only the always on (AON) GPIO controller +instance supports timestamping GPIOs in real time as it is tightly coupled with +the GPIO GTE. To support this, GPIOLIB adds two optional APIs as mentioned +below. The GPIO GTE code supports both kernel and userspace consumers. The +kernel space consumers can directly talk to HTE subsystem while userspace +consumers timestamp requests go through GPIOLIB CDEV framework to HTE +subsystem. The hte devicetree binding described at +``Documentation/devicetree/bindings/timestamp`` provides an example of how a +consumer can request an GPIO line. See gpiod_enable_hw_timestamp_ns() and gpiod_disable_hw_timestamp_ns(). @@ -34,9 +34,8 @@ returns the timestamp in nanoseconds. LIC (Legacy Interrupt Controller) IRQ GTE ----------------------------------------- -This GTE instance timestamps LIC IRQ lines in real time. There are 352 IRQ -lines which this instance can add timestamps to in real time. The hte -devicetree binding described at ``Documentation/devicetree/bindings/timestamp`` +This GTE instance timestamps LIC IRQ lines in real time. The hte devicetree +binding described at ``Documentation/devicetree/bindings/timestamp`` provides an example of how a consumer can request an IRQ line. Since it is a one-to-one mapping with IRQ GTE provider, consumers can simply specify the IRQ number that they are interested in. There is no userspace consumer support for From patchwork Thu Mar 23 01:29:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dipen Patel X-Patchwork-Id: 666383 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 8576EC77B71 for ; Thu, 23 Mar 2023 01:29:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230150AbjCWB3v (ORCPT ); Wed, 22 Mar 2023 21:29:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbjCWB3r (ORCPT ); Wed, 22 Mar 2023 21:29:47 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2072.outbound.protection.outlook.com [40.107.220.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 680BA4EFE; Wed, 22 Mar 2023 18:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y/DS3UE6jGIy+tbA1Yoxn7l8NjTwuaW/eNFxEsaU3hZME9a7C1/J9xkq6kLLe5798ONiAFRxz4biysCIfTS9rr4EwdQmQKOBlLgcJcjNBjEWh8E0TDVyXl7dmu7hfsXty5TFg2aE/vvpHZvSqByDmDfrE2BpwxlAyR6Z+VS14xAHQWlqu5MVa29F1dcKF30nAScGIzSd6BkdTkNrIvh/qQJom0PLmWXTdztbumP+FrYo1yto3RiXDIlT4+8/lNU7YwU9+z1sfBhoY+1SLbjRLbxyRZQ6EuXDwhovigG8EE0Gu3v0xx5SrAb5Iui+YpOFbvdJl7rsBoJ42lGwUsKb4A== 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=70N85/s9O6sRb8t6SsCO/qnhpuW0O25Zo9jwvf7lX9Y=; b=dKgZ65qtf0d3INXyHrpsHhfPdxNpGFvv6vlwenF9Sw7tku35I908W9reFvJMqB1hrNT2PBHK1agaXbhTdOP/w7gq1OG4/bo7erlCHwt/OQLump5YBKx2Zhx8l9dtgQvphiQEhkXG6GeVpvkDFfR0VUQisDmBtOt31yy9x43Rjk+XbYn/RdqQvKeonjQ1sutApYlfQYKwP/cxsvBRGP7AWd/VNniqe7W6tfdmbymQKoXDE8Oz2hIjIyWg4zurtymZ9+6FY+hbmaFCLX3n0tAHNTyPrgdemskG1GVHo2DEztXcQ/Niv/7GfUEFSZnlOx1S7my7wrFiQdTpkuaShQqttw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=70N85/s9O6sRb8t6SsCO/qnhpuW0O25Zo9jwvf7lX9Y=; b=dlFsB4eykneHzahOdhU3spUMJswzZvwOHrixNdy7J6Dzs4gnsBmIbKcRpXtvXWM1OwXFoDjW5J4n55mKFoE+F3neStdPpe1YNRcJZHTFEnTaW1uUrqSgRUBb79NIYTuZaXvl8yLAee+fT/XIFqDFM4wsYOk6z03jaxJtQ1QbPhFAugPi20h88nll9aw6Q9rdcg1D2e/MmTuEXrSGrPcvlcyjVlAf+dSTRQ6GwcRETg1f5QVHv3Rdms0pCNYgG3+avDFkU4LqknjiNG9FzwqR3E53x6Nmnp9KlHB9zTI/07tDhP2lfopb7nFbR9kJzBHukVTf8GIURuEwT5l/QEtOfQ== Received: from DM6PR06CA0029.namprd06.prod.outlook.com (2603:10b6:5:120::42) by DS0PR12MB7512.namprd12.prod.outlook.com (2603:10b6:8:13a::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Thu, 23 Mar 2023 01:29:43 +0000 Received: from DM6NAM11FT096.eop-nam11.prod.protection.outlook.com (2603:10b6:5:120:cafe::81) by DM6PR06CA0029.outlook.office365.com (2603:10b6:5:120::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Thu, 23 Mar 2023 01:29:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT096.mail.protection.outlook.com (10.13.173.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Thu, 23 Mar 2023 01:29:43 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 22 Mar 2023 18:29:35 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 22 Mar 2023 18:29:35 -0700 Received: from dipenp.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Wed, 22 Mar 2023 18:29:34 -0700 From: Dipen Patel To: , , , , , , , , , , , , , CC: Dipen Patel Subject: [PATCH V4 07/10] hte: Add Tegra234 provider Date: Wed, 22 Mar 2023 18:29:26 -0700 Message-ID: <20230323012929.10815-8-dipenp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230323012929.10815-1-dipenp@nvidia.com> References: <20230323012929.10815-1-dipenp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT096:EE_|DS0PR12MB7512:EE_ X-MS-Office365-Filtering-Correlation-Id: 76d690f1-f477-49d5-9299-08db2b3e1450 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OY4RR4SW25Kc4lzn+xLR70zqkC2j1dXQJf98lPbzSbwCzES4EUy2rh0mS3CUS5q4hr7W9+BvNyWmTZyAbX1vW8B+M8NBk9IgxernxmrgDeFdbwHrCXSJsZeIVKRAgo2U8bYbA0/3VvqzWDnk0wKWpwsN2oC8o8+Uo2evIMSYdrizjwTahu5Cdjev30DFVMxupZK4BgNjEZqlV215n2jDx5YgwC6Yl9a0ayhf6Qs8ZYYab4FqVBfi0Bf+mGrkX9K7MOAJi/2nA7hlK6B0kO72c0JmEO5RnhwZSsGoj2joDEN+fe9MrN+Kh7U1sELFPTgBOgcl11HMAyV28jolVXZZZVwMithnSq5+byPfIejlmEXouEBoHOftyoCVdj1FRCzYcoCXYQgilmS0tVy7nNPrvG0C/uqoREnJnBk2euc5gTNg5qYr34u5aHncxtnJj9d4B2jURlfvq9FqV3Bdfy5vOM/izqBITPmiaHP5bQ2jydxxPMdLWWNKYbL51g/EC8CV4NgOqU0O6fG87FORgsHbNQz3kmINvCk7ubgg+QXV19KiaI6yVKeocWtSPJYz0bJvz2v/1OPa3yDgThko57QcPwrYl5KiWrQTbfwS6gG2QkAzxt/B7XxDrnzBg2IE2twoQs0W0sPJ5fxzgOqnnqWqQ+GV67ij7ecGyFac/zyQKhLn8kjpzbSU9ZEPn4vFakZi65Bkt9A4WHM/vP1GuDUQ20FV8BqPactHIekl7e7OIMKe7GrxoiRaG/v/RytYhau9Biurc+/fo/ykFapnWa92dmcAbD7oc5YAK1pj+2DI3xcMD+tVW8PmJYjzI5CuqpUV X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(346002)(396003)(136003)(39860400002)(376002)(451199018)(46966006)(36840700001)(40470700004)(478600001)(2616005)(47076005)(316002)(426003)(83380400001)(82310400005)(186003)(36860700001)(1076003)(26005)(110136005)(107886003)(6666004)(7696005)(7416002)(70206006)(356005)(40460700003)(4326008)(86362001)(40480700001)(921005)(7636003)(336012)(5660300002)(2906002)(8936002)(82740400003)(70586007)(36756003)(41300700001)(8676002)(83996005)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 01:29:43.0442 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 76d690f1-f477-49d5-9299-08db2b3e1450 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT096.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7512 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The Tegra234 AON GPIO instance and LIC IRQ support HTE. For the GPIO HTE support, it also requires to add mapping between GPIO and HTE framework same as it was done with Tegra194 SoC. Signed-off-by: Dipen Patel --- v2: - Changed how gpio_chip could be aquired for the mapping v3: - Renamed gpio_chip matching function - Used of_node to fwnode field in gpio_chip matching function as data as gpio_chip struct does not have of_node member anymore. v4: - Logically divide the original v3 patch as follows - Created this Tegra234 support patch - Created deprecated nvidia,slices patch - Created handle nvidia,gpio-controller patch drivers/hte/hte-tegra194-test.c | 2 +- drivers/hte/hte-tegra194.c | 124 ++++++++++++++++++++++++++++++-- 2 files changed, 121 insertions(+), 5 deletions(-) diff --git a/drivers/hte/hte-tegra194-test.c b/drivers/hte/hte-tegra194-test.c index 5d776a185bd6..d79c28a80517 100644 --- a/drivers/hte/hte-tegra194-test.c +++ b/drivers/hte/hte-tegra194-test.c @@ -16,7 +16,7 @@ #include /* - * This sample HTE GPIO test driver demonstrates HTE API usage by enabling + * This sample HTE test driver demonstrates HTE API usage by enabling * hardware timestamp on gpio_in and specified LIC IRQ lines. * * Note: gpio_out and gpio_in need to be shorted externally in order for this diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c index 49a27af22742..5d1f947db0f6 100644 --- a/drivers/hte/hte-tegra194.c +++ b/drivers/hte/hte-tegra194.c @@ -62,6 +62,10 @@ #define NV_AON_HTE_SLICE2_IRQ_GPIO_25 25 #define NV_AON_HTE_SLICE2_IRQ_GPIO_26 26 #define NV_AON_HTE_SLICE2_IRQ_GPIO_27 27 +#define NV_AON_HTE_SLICE2_IRQ_GPIO_28 28 +#define NV_AON_HTE_SLICE2_IRQ_GPIO_29 29 +#define NV_AON_HTE_SLICE2_IRQ_GPIO_30 30 +#define NV_AON_HTE_SLICE2_IRQ_GPIO_31 31 #define HTE_TECTRL 0x0 #define HTE_TETSCH 0x4 @@ -220,7 +224,100 @@ static const struct tegra_hte_line_mapped tegra194_aon_gpio_sec_map[] = { [39] = {NV_AON_SLICE_INVALID, 0}, }; -static const struct tegra_hte_data aon_hte = { +static const struct tegra_hte_line_mapped tegra234_aon_gpio_map[] = { + /* gpio, slice, bit_index */ + /* AA port */ + [0] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_11}, + [1] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_10}, + [2] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_9}, + [3] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_8}, + [4] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_7}, + [5] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_6}, + [6] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_5}, + [7] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_4}, + /* BB port */ + [8] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_3}, + [9] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_2}, + [10] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_1}, + [11] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_0}, + /* CC port */ + [12] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_22}, + [13] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_21}, + [14] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_20}, + [15] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_19}, + [16] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_18}, + [17] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_17}, + [18] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_16}, + [19] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_15}, + /* DD port */ + [20] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_14}, + [21] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_13}, + [22] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_12}, + /* EE port */ + [23] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_31}, + [24] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_30}, + [25] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_29}, + [26] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_28}, + [27] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_27}, + [28] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_26}, + [29] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_25}, + [30] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_24}, + /* GG port */ + [31] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_23}, +}; + +static const struct tegra_hte_line_mapped tegra234_aon_gpio_sec_map[] = { + /* gpio, slice, bit_index */ + /* AA port */ + [0] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_11}, + [1] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_10}, + [2] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_9}, + [3] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_8}, + [4] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_7}, + [5] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_6}, + [6] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_5}, + [7] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_4}, + /* BB port */ + [8] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_3}, + [9] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_2}, + [10] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_1}, + [11] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_0}, + [12] = {NV_AON_SLICE_INVALID, 0}, + [13] = {NV_AON_SLICE_INVALID, 0}, + [14] = {NV_AON_SLICE_INVALID, 0}, + [15] = {NV_AON_SLICE_INVALID, 0}, + /* CC port */ + [16] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_22}, + [17] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_21}, + [18] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_20}, + [19] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_19}, + [20] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_18}, + [21] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_17}, + [22] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_16}, + [23] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_15}, + /* DD port */ + [24] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_14}, + [25] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_13}, + [26] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_12}, + [27] = {NV_AON_SLICE_INVALID, 0}, + [28] = {NV_AON_SLICE_INVALID, 0}, + [29] = {NV_AON_SLICE_INVALID, 0}, + [30] = {NV_AON_SLICE_INVALID, 0}, + [31] = {NV_AON_SLICE_INVALID, 0}, + /* EE port */ + [32] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_31}, + [33] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_30}, + [34] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_29}, + [35] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_28}, + [36] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_27}, + [37] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_26}, + [38] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_25}, + [39] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_24}, + /* GG port */ + [40] = {2, NV_AON_HTE_SLICE2_IRQ_GPIO_23}, +}; + +static const struct tegra_hte_data t194_aon_hte = { .map_sz = ARRAY_SIZE(tegra194_aon_gpio_map), .map = tegra194_aon_gpio_map, .sec_map_sz = ARRAY_SIZE(tegra194_aon_gpio_sec_map), @@ -228,6 +325,14 @@ static const struct tegra_hte_data aon_hte = { .type = HTE_TEGRA_TYPE_GPIO, }; +static const struct tegra_hte_data t234_aon_hte = { + .map_sz = ARRAY_SIZE(tegra234_aon_gpio_map), + .map = tegra234_aon_gpio_map, + .sec_map_sz = ARRAY_SIZE(tegra234_aon_gpio_sec_map), + .sec_map = tegra234_aon_gpio_sec_map, + .type = HTE_TEGRA_TYPE_GPIO, +}; + static const struct tegra_hte_data lic_hte = { .map_sz = 0, .map = NULL, @@ -535,7 +640,9 @@ static bool tegra_hte_match_from_linedata(const struct hte_chip *chip, static const struct of_device_id tegra_hte_of_match[] = { { .compatible = "nvidia,tegra194-gte-lic", .data = &lic_hte}, - { .compatible = "nvidia,tegra194-gte-aon", .data = &aon_hte}, + { .compatible = "nvidia,tegra194-gte-aon", .data = &t194_aon_hte}, + { .compatible = "nvidia,tegra234-gte-lic", .data = &lic_hte}, + { .compatible = "nvidia,tegra234-gte-aon", .data = &t234_aon_hte}, { } }; MODULE_DEVICE_TABLE(of, tegra_hte_of_match); @@ -635,8 +742,17 @@ static int tegra_hte_probe(struct platform_device *pdev) gc->match_from_linedata = tegra_hte_match_from_linedata; - hte_dev->c = gpiochip_find("tegra194-gpio-aon", - tegra_get_gpiochip_from_name); + if (of_device_is_compatible(dev->of_node, + "nvidia,tegra194-gte-aon")) + hte_dev->c = gpiochip_find("tegra194-gpio-aon", + tegra_get_gpiochip_from_name); + else if (of_device_is_compatible(dev->of_node, + "nvidia,tegra234-gte-aon")) + hte_dev->c = gpiochip_find("tegra234-gpio-aon", + tegra_get_gpiochip_from_name); + else + return -ENODEV; + if (!hte_dev->c) return dev_err_probe(dev, -EPROBE_DEFER, "wait for gpio controller\n"); From patchwork Thu Mar 23 01:29:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dipen Patel X-Patchwork-Id: 666381 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 C2CA3C77B60 for ; Thu, 23 Mar 2023 01:30:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230171AbjCWBaB (ORCPT ); Wed, 22 Mar 2023 21:30:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230072AbjCWB3x (ORCPT ); Wed, 22 Mar 2023 21:29:53 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2070.outbound.protection.outlook.com [40.107.92.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABDF13C2D; Wed, 22 Mar 2023 18:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HALSNvY7cYdC312o1A771dZ3skeUl2Z5P7nSHVkGFqIj/jsM7xPczyhYqMUO9LfEf4jNVrOCaxZ6ghBJQX0AMh4Tyt5VVIFCiBd2r7V3MQy8O84UvU/Q5Lk+IK3vVhaMbqs2vrDxfyM4aRcm73gsVlE2nVTz3en8j91Cz+BvGOLATXRQ1jcdGEKrRtRd+gwHT6iNVF5J//zQHcQShu1X+qj2u3C3czpvhee/KXHo1YaB7RQd5PM03geZ2TRLZ5sM6NSDdidAM1TVZ0v9RupLqwkv25th03IEH4tgky79qMhbEH4yQLtfNWC25uNp00fTdLodLkxX4jkGyED2iEaLMw== 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=+2CJuSdgjUz5SfX6G1RySck3/wEeQCdulMwW76h6I1M=; b=BF/atmIVOO/cvVNSdKyuG0bZQERpoIXNHUCUIemycoRW7Cq6TSguivJdT+zwvdCHuo51aHzlq4Ti59e6S7EqEELfbpo1EXcvBhYQlPLJNwUfJuZjqbiFkwfJ0kNr442XkSM5xLVIYwzM7fHGCtusQPfWE+YpoF2MnTgwxEKi9JJMjoRmgs+2H2smVQmXjYRYSlz2U3aK02fwTzE4Ek6JgKeG5riMaG/Zl8rvY0QmeDfs+XNnyqaQ11ZliNg62SZ73H/tol8w78UWe90VKc9LSvIiSBdL1Ly1GGE2fnVNsm5tQhy7Ye6YNDAq1IvWp8A+9uWh+7qHfFJF+WvDqwH3Tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+2CJuSdgjUz5SfX6G1RySck3/wEeQCdulMwW76h6I1M=; b=OcAJCCvN8U5G0/VlAXbFyMKCbtZ/ISw/qwiZSCJTXvPp9eyLQxt53H7gjhZU7vai/InkksQQU/aCa/hEecvBqYjr0k6PJQrv143OE29lQHzzi7tGNEpSF1nKtaMahnWUXwACGMDgId3+SiVa5EjrQB0/XqG0GSOHibcdlpQx7hHzPsF1yon+ULZi5DcDU9GBgVJjBBQdCYbMb0D5IOgoAUcT662PnK3h/fGrCxb9MnT608MC4h797I88nwk7NOKxGQEHJL5OIVyG8QDL/O4geOcmKsq+uj+eflpVJ0wmGoX8BByMKpjH+AFWpIpAU53o09MSNpkQ8BCGqA7XIDAwqA== Received: from MW4PR04CA0189.namprd04.prod.outlook.com (2603:10b6:303:86::14) by LV2PR12MB5824.namprd12.prod.outlook.com (2603:10b6:408:176::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Thu, 23 Mar 2023 01:29:47 +0000 Received: from CO1NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:303:86:cafe::4e) by MW4PR04CA0189.outlook.office365.com (2603:10b6:303:86::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38 via Frontend Transport; Thu, 23 Mar 2023 01:29:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT042.mail.protection.outlook.com (10.13.174.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Thu, 23 Mar 2023 01:29:47 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 22 Mar 2023 18:29:35 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 22 Mar 2023 18:29:35 -0700 Received: from dipenp.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Wed, 22 Mar 2023 18:29:35 -0700 From: Dipen Patel To: , , , , , , , , , , , , , CC: Dipen Patel Subject: [PATCH V4 08/10] hte: Deprecate nvidia,slices property Date: Wed, 22 Mar 2023 18:29:27 -0700 Message-ID: <20230323012929.10815-9-dipenp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230323012929.10815-1-dipenp@nvidia.com> References: <20230323012929.10815-1-dipenp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT042:EE_|LV2PR12MB5824:EE_ X-MS-Office365-Filtering-Correlation-Id: 8c783fbf-d7e1-47a0-3c88-08db2b3e16b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NuD4lRB6wUV04MqD6CkfMSS2KMh9mKSiYNl3EB5yjCb7k9YDXOTtwlD1boN/FVYYKhNb1owKcIH+j1ndgy6DgcPztvHHN31ZdC+Z8sOcSAJ2+znQVNmqLY1DaOTnQ+fP1xSbkcNq+auKGFW10rUTQxAFY0tnfAAV2M2R1bd1Wn/rakSdwr54slWPngt+BdxEwSW415jIVHlKR0YGjYvqyzF2F7cRe+7PW12WFxDDpS/kAb49zSU7ICC9pF8L9oznk3bYRaAcx0P21LHbaybyq/hhTmHr7frY0SjhcgNNoWdQWUphJy/tTThsYJbsCdkPMB/cR/ZWEciZXxbLlrXDhBfcQQIzP3XNWUwxXfuloCJLhWfdKPNQScaKaV1uNJqwnIospxneE+lSvPF1hyV+KF0vKI188DpeaIjvD2ZF0WUnKXJSOZPwhi3CtbES40AGgkqfRM7bBd8rzg5syUUt4sIjuiM3CvTiAzrfZD5ViXVQFk2LVUyAUDAZUgqMyKRHe8WxOGSKkBtwcawrbtJZ626dEf64AecYtUOiFYZJEXDCjSNpCLVudMqQLstPsTO6mKHGpBhwrQpgjbWzIG+h8iCiT6lM53s9jkX2W6C7VkBddg3RJNWvgeVelErL5ScTyDjSRQgi/fei0mCUJO/pOPWHoRYxOHJor8ZLsboKWsuZX0ncRZNcz3ZcyLEjmPhfMqkkqLdauf69lk5z+ww7vDUAmlTUMUXr2u9/01W4ZPElG903hyPKCs8aHLQwLgZWFGa6TCmU3r9ORhJw1Ig4qYrQis7ETru+/KX5bd1VoaOAv/zMbMIhvPvi6tCbbco2 X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(39860400002)(376002)(346002)(451199018)(36840700001)(40470700004)(46966006)(40480700001)(426003)(316002)(47076005)(110136005)(7696005)(36756003)(7416002)(4326008)(5660300002)(8676002)(8936002)(70586007)(70206006)(41300700001)(36860700001)(82740400003)(40460700003)(86362001)(2906002)(478600001)(82310400005)(7636003)(83380400001)(107886003)(336012)(6666004)(921005)(356005)(186003)(2616005)(26005)(1076003)(83996005)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 01:29:47.0084 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8c783fbf-d7e1-47a0-3c88-08db2b3e16b2 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5824 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The relevant DT bindings deprecates nvidia,slices property from Tegra234 SoC onwards, moving the slices value per SoC data structure instead. Signed-off-by: Dipen Patel --- drivers/hte/hte-tegra194.c | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c index 5d1f947db0f6..945c68c5e476 100644 --- a/drivers/hte/hte-tegra194.c +++ b/drivers/hte/hte-tegra194.c @@ -118,6 +118,7 @@ struct tegra_hte_line_data { struct tegra_hte_data { enum tegra_hte_type type; + u32 slices; u32 map_sz; u32 sec_map_sz; const struct tegra_hte_line_mapped *map; @@ -323,6 +324,7 @@ static const struct tegra_hte_data t194_aon_hte = { .sec_map_sz = ARRAY_SIZE(tegra194_aon_gpio_sec_map), .sec_map = tegra194_aon_gpio_sec_map, .type = HTE_TEGRA_TYPE_GPIO, + .slices = 3, }; static const struct tegra_hte_data t234_aon_hte = { @@ -331,12 +333,21 @@ static const struct tegra_hte_data t234_aon_hte = { .sec_map_sz = ARRAY_SIZE(tegra234_aon_gpio_sec_map), .sec_map = tegra234_aon_gpio_sec_map, .type = HTE_TEGRA_TYPE_GPIO, + .slices = 3, }; -static const struct tegra_hte_data lic_hte = { +static const struct tegra_hte_data t194_lic_hte = { .map_sz = 0, .map = NULL, .type = HTE_TEGRA_TYPE_LIC, + .slices = 11, +}; + +static const struct tegra_hte_data t234_lic_hte = { + .map_sz = 0, + .map = NULL, + .type = HTE_TEGRA_TYPE_LIC, + .slices = 17, }; static inline u32 tegra_hte_readl(struct tegra_hte_soc *hte, u32 reg) @@ -639,9 +650,9 @@ static bool tegra_hte_match_from_linedata(const struct hte_chip *chip, } static const struct of_device_id tegra_hte_of_match[] = { - { .compatible = "nvidia,tegra194-gte-lic", .data = &lic_hte}, + { .compatible = "nvidia,tegra194-gte-lic", .data = &t194_lic_hte}, { .compatible = "nvidia,tegra194-gte-aon", .data = &t194_aon_hte}, - { .compatible = "nvidia,tegra234-gte-lic", .data = &lic_hte}, + { .compatible = "nvidia,tegra234-gte-lic", .data = &t234_lic_hte}, { .compatible = "nvidia,tegra234-gte-aon", .data = &t234_aon_hte}, { } }; @@ -679,13 +690,6 @@ static int tegra_hte_probe(struct platform_device *pdev) dev = &pdev->dev; - ret = of_property_read_u32(dev->of_node, "nvidia,slices", &slices); - if (ret != 0) { - dev_err(dev, "Could not read slices\n"); - return -EINVAL; - } - nlines = slices << 5; - hte_dev = devm_kzalloc(dev, sizeof(*hte_dev), GFP_KERNEL); if (!hte_dev) return -ENOMEM; @@ -697,6 +701,13 @@ static int tegra_hte_probe(struct platform_device *pdev) dev_set_drvdata(&pdev->dev, hte_dev); hte_dev->prov_data = of_device_get_match_data(&pdev->dev); + ret = of_property_read_u32(dev->of_node, "nvidia,slices", &slices); + if (ret != 0) + slices = hte_dev->prov_data->slices; + + dev_dbg(dev, "slices:%d\n", slices); + nlines = slices << 5; + hte_dev->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(hte_dev->regs)) return PTR_ERR(hte_dev->regs); From patchwork Thu Mar 23 01:29:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dipen Patel X-Patchwork-Id: 667094 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 93511C6FD1C for ; Thu, 23 Mar 2023 01:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbjCWBa0 (ORCPT ); Wed, 22 Mar 2023 21:30:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbjCWB37 (ORCPT ); Wed, 22 Mar 2023 21:29:59 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2082.outbound.protection.outlook.com [40.107.101.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5661F303FA; Wed, 22 Mar 2023 18:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eWsksnNvR08xbKpHL1Xr5bY7WVjUcobndGOk+nPc/Nk36bKRN2OC/GaTcPHryoKL8kmvqbiRcI7D0e7JihbSI2/9ZG2wiMmRcl2C5ewC5Lb9T7rF6e3ieU8MLcgJ9S0WZqlV8ocby5zLdHn0D4J8DIETeKDmstrO/aQjz8oWK8TVUGrCYjKYOAlxycdJq2piMtGSmF1/QG2DJGYLv3uoSLzobc3DkhzsASd51GH1BhuP/gH8fpuBISaOLcqrkjHw0a/WzIpGBJWTWmzL32/ihVgXr9dWHLyeaWyJef/rAMc7ZhwrkwIy53ExwjXRQc/+H+lDzNRh3FqcUmhr31Fyrw== 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=84187s+87Zv9eZPlcalYEMwzk96EgU1bcgE72lqR3go=; b=V0bjR/iK3aB2iDNdpvUNUGLEWRBfwbUaEZv5547hRoXnH2s5qcD3oSoHFEOIVs1g0QjlrcVSwdQNVn5kwk9DJLI3ezFMnn9LEcsyhS1y+v2Ev5KCziO8168ANcxMphySNDgc1hbXWcLUBZJsbCZmAmFjzxMEY0M5kxFHXrq3nbVMk9rvd72zoZvmMMVjIlDdXk+rVNFBYuout+t/KrYHP5H/j5XYx2+U3Y+yfz5rinjZ/r5g+CWNdMwhLUxI/b8C1HzaVlICeA4Vo2TGgAveChdw2uXbCte+VyZVpNY+XNVMqwE96CFrc7a/OG+YFJvuL3iqsUQFyuCmFY3+4YTiAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=84187s+87Zv9eZPlcalYEMwzk96EgU1bcgE72lqR3go=; b=aOjAv1XLSzI2ybeF1TjNVpJ821qkulOdD5IuSsOtDJfWtv78gXSdjChEvzagqIf5xI/zFdIiWb0VVe4nPagmY+zcvvqiiQX6vbZ7YTjqdbbSstIxOGw00KfqXhIC58btgxpLHy9ua5Olh1Am7fflbd8uJrGMtRrD01d431MYLZMfuks3jEgfTvDYI5ffBIBARwXNmHpPMoP+OoJSIoGajUxqajRMM/ffa79f/VUYkOHdYYx00ej0UIEGpi9IsYkOPDQwzLuZ9a8i0tAwlYaGTQ990mISR+8v35LU41AhMBvQCPL9i/hnMjO5WkYZx5YzS/9ET62TNeonfqYvDe0xsQ== Received: from BN0PR04CA0022.namprd04.prod.outlook.com (2603:10b6:408:ee::27) by BY5PR12MB4917.namprd12.prod.outlook.com (2603:10b6:a03:1d1::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38; Thu, 23 Mar 2023 01:29:47 +0000 Received: from BN8NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ee:cafe::8f) by BN0PR04CA0022.outlook.office365.com (2603:10b6:408:ee::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38 via Frontend Transport; Thu, 23 Mar 2023 01:29:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT037.mail.protection.outlook.com (10.13.177.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Thu, 23 Mar 2023 01:29:47 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 22 Mar 2023 18:29:36 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 22 Mar 2023 18:29:35 -0700 Received: from dipenp.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Wed, 22 Mar 2023 18:29:35 -0700 From: Dipen Patel To: , , , , , , , , , , , , , CC: Dipen Patel Subject: [PATCH V4 09/10] hte: handle nvidia,gpio-controller property Date: Wed, 22 Mar 2023 18:29:28 -0700 Message-ID: <20230323012929.10815-10-dipenp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230323012929.10815-1-dipenp@nvidia.com> References: <20230323012929.10815-1-dipenp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT037:EE_|BY5PR12MB4917:EE_ X-MS-Office365-Filtering-Correlation-Id: e5eb480c-76b6-4f62-dc03-08db2b3e16c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5wzd7BbtZKIYfGkWWYtJ0tcCAQC0/Hk4RSKNLUZGQ6YkGNhSxwj0Yk7QaPvhWKXtI/e2xbdOUHbNCrWvUEOW9/hKUMUShceS7z2QHDcUtz9RFFxnyjFHQKV3deiWBScKQQHT6s+P+DIrcUIzwhvc+S97+jiwjmZKfIXTxKRpezCYBnDW8+pU8YaZ0fFzc9WRLcmj3Td6DMGgTjAeSXSmg4A8CYpaJdYk7aVK6x+xYFZCjs6vgoB8yIIBw4KR6NM/vXNfXAq6yUtcAl7NFfa5UjZ5cTIAJwrezovqT6Fe8hXg7hgOBEK4gjGfDL6XOnYaCL2Nd03HomRYSsABWXP5EY2Uz33RWTGXYQooG5oYt6yTMSD/UZsh/wklcX/lkYDVVBd2M9XfEaTqSW7ufuLR+7c6IifXWLVSYzAkcqKuX4PvHDBwN0CrUpDV/V6rbWGNN4ETjc3TzaX7KjQvUy7ZLaIFzr7sVbePZXMcXf+PeGgEzOquhq+8e+uZX542LxXr0Xj61T8tm3NpTqq2K/NS8pu2B/+5g0Eeiujn6hmJ2xKfNSWfpmoVZWodXWmiUnyEpoF4yXg4F5KMAHFv3w1qQPhsX1ggWvCU57Ix0y0vd3Y2zf+rn+6a/r8khCpp50MGrF42qqYyCFiMd5upWcAlkpaSBCa3VWaR57CFtjLQlYHdN9QCsLDUTlIhaqJZEDpP22cfK+dMGc5nMK7cv1O6Y7FCfstxACk/Cg/INm3AQ/YsiGT5KAiEX/N6O2/0MDdgWC5NKYgYPOPXP7p13U0mog== X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(136003)(346002)(376002)(39860400002)(396003)(451199018)(46966006)(36840700001)(8676002)(70586007)(70206006)(4326008)(36860700001)(8936002)(82740400003)(2616005)(2906002)(110136005)(7636003)(41300700001)(356005)(921005)(86362001)(478600001)(7696005)(5660300002)(7416002)(83380400001)(82310400005)(6666004)(107886003)(336012)(47076005)(426003)(36756003)(26005)(1076003)(40480700001)(316002)(186003)(2101003)(83996005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 01:29:47.1164 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5eb480c-76b6-4f62-dc03-08db2b3e16c9 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT037.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4917 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The dt binding adds nvidia,gpio-controller property from Tegra234 SoC onwards to simplify code handling gpio chip search. The gpio chip search is needed for the AON GPIO GTE instances to map the hardware timestamp GPIO request (coming from the GPIO framework) to the tegra HTE providers. The patch also adds new gpio chip match function to match from the fwnode instead of the gpio controller label. The addition of the property does not break ABI for the existing Tegra194 code. Signed-off-by: Dipen Patel --- drivers/hte/hte-tegra194.c | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c index 945c68c5e476..2c485ff5be22 100644 --- a/drivers/hte/hte-tegra194.c +++ b/drivers/hte/hte-tegra194.c @@ -679,6 +679,11 @@ static int tegra_get_gpiochip_from_name(struct gpio_chip *chip, void *data) return !strcmp(chip->label, data); } +static int tegra_gpiochip_match(struct gpio_chip *chip, void *data) +{ + return chip->fwnode == of_node_to_fwnode(data); +} + static int tegra_hte_probe(struct platform_device *pdev) { int ret; @@ -687,6 +692,7 @@ static int tegra_hte_probe(struct platform_device *pdev) struct device *dev; struct tegra_hte_soc *hte_dev; struct hte_chip *gc; + struct device_node *gpio_ctrl; dev = &pdev->dev; @@ -754,15 +760,23 @@ static int tegra_hte_probe(struct platform_device *pdev) gc->match_from_linedata = tegra_hte_match_from_linedata; if (of_device_is_compatible(dev->of_node, - "nvidia,tegra194-gte-aon")) + "nvidia,tegra194-gte-aon")) { hte_dev->c = gpiochip_find("tegra194-gpio-aon", tegra_get_gpiochip_from_name); - else if (of_device_is_compatible(dev->of_node, - "nvidia,tegra234-gte-aon")) - hte_dev->c = gpiochip_find("tegra234-gpio-aon", - tegra_get_gpiochip_from_name); - else - return -ENODEV; + } else { + gpio_ctrl = of_parse_phandle(dev->of_node, + "nvidia,gpio-controller", + 0); + if (!gpio_ctrl) { + dev_err(dev, + "gpio controller node not found\n"); + return -ENODEV; + } + + hte_dev->c = gpiochip_find(gpio_ctrl, + tegra_gpiochip_match); + of_node_put(gpio_ctrl); + } if (!hte_dev->c) return dev_err_probe(dev, -EPROBE_DEFER, From patchwork Thu Mar 23 01:29:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dipen Patel X-Patchwork-Id: 667095 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 25FE5C77B74 for ; Thu, 23 Mar 2023 01:30:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230194AbjCWBaA (ORCPT ); Wed, 22 Mar 2023 21:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbjCWB3z (ORCPT ); Wed, 22 Mar 2023 21:29:55 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2074.outbound.protection.outlook.com [40.107.101.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21B1EEB69; Wed, 22 Mar 2023 18:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AI79XoXBg+JCOF612kz0aT8HwbbEHuFD3ZJS4Jf8YhN7L4JA/wfyzknfuY5OzuXqkiddoov72FQMN+DzJu+6WpeEbyEPo4W2WvteumJ+cPCy1pMrruE9fhBPMg9d6pJhLRktudEg2ogEt1ipGgaOjGeJ8X9lVerOmnjaZMrydi5Hg+C8j3KMGoYvLyHrjHV56OTanPkQYQXW93k6c3Eb+UGBA/oCg9Kz3c9LQbRQYUheuq7cjKqEBoz0BP25lZnAimqvFraCDWx91u+VHZjFAj2jip6F2y1hpf2Tra7sb31XkuFRk1xmjTn5oIpaPlZ25K52LmnDgev0gcits94vwQ== 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=JP0U9I3hrgeSkY3oFuGo2+HNIsfA/g22/zH1rbrIPQ0=; b=Cj9Fw9Gw1hrikF6Z1cAQBTZejbbveuQ+uCZJ1Rd9f0fAlI4ZRv2THpqpDPaI5zUrHf1rwWhvCsvs4ziFnYgY4I/o8WrhleHlayV6l6NeR/r5viHbvN8jF9pq8BIgnV9LTwFY74/oPdC12a/ugOEKFWK1o4if2Fu38GI9PQV+50l3/45Nd6smRDxktDRnVcaF7V6bVFz3jR64RnS1W2CPT+ZHD4DiRm4ylmriv0/V09ipat+g6LASlAAGtqtub/l2xjoA7zhrb7XkFmw/xHiy0ilxX1B2IoXDmNwmz09LFxoLnI2RdQJ5B3yVP45cW8cp2OFkyQOw2trCqCpDAoTcdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JP0U9I3hrgeSkY3oFuGo2+HNIsfA/g22/zH1rbrIPQ0=; b=RP3KtSzoZXru1qsAxpppop/nCD6Lpj2b/xX6cjE8bHUrxLSslh7zg+E5Tt3rWBjFM+CQHn6Gn34HEwVRadorLwGPyqmxf7WEUt5xiVxAQrzH+aMUIiwxrGhQlOMeR9w1TARMVmYqmsSE1DT00fyUrcaIkwfz9gUy7T9RNFEl8Jd6BMX686ehGjaS8itB2TflU0+PDv5m7xMVMn3OpZpfuV3pwFcMiOTQRpjNxnSLtG/yenNVhTR4DF+30+rVXeYsBgtO6mWtq45Rjrb///o7OzzuNzVnNVPDS2ueuV3lgaPJRT8RKdepiJLLTW3NJfuocBtEtdhcWoKsQcOGPAJPug== Received: from MW4PR04CA0209.namprd04.prod.outlook.com (2603:10b6:303:86::34) by PH7PR12MB5952.namprd12.prod.outlook.com (2603:10b6:510:1db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Thu, 23 Mar 2023 01:29:49 +0000 Received: from CO1NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:303:86:cafe::fc) by MW4PR04CA0209.outlook.office365.com (2603:10b6:303:86::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38 via Frontend Transport; Thu, 23 Mar 2023 01:29:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT042.mail.protection.outlook.com (10.13.174.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Thu, 23 Mar 2023 01:29:48 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 22 Mar 2023 18:29:36 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 22 Mar 2023 18:29:36 -0700 Received: from dipenp.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Wed, 22 Mar 2023 18:29:35 -0700 From: Dipen Patel To: , , , , , , , , , , , , , CC: Dipen Patel Subject: [PATCH V4 10/10] gpio: tegra186: Add Tegra234 hte support Date: Wed, 22 Mar 2023 18:29:29 -0700 Message-ID: <20230323012929.10815-11-dipenp@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230323012929.10815-1-dipenp@nvidia.com> References: <20230323012929.10815-1-dipenp@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT042:EE_|PH7PR12MB5952:EE_ X-MS-Office365-Filtering-Correlation-Id: 78a40d1c-1d77-45fb-2a8b-08db2b3e17c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fxkUABDqu6w5t7T+2ahx/4i5ow4ckfuqPCJsoYk2pJ+lG7DjrXvQ4u09eN6NJhicFmUqTdU2ZTMHWka+0/Fjpfq1emzQmB5pWLiNRGuT/ebvs8uThAnu8HzzCqye2wiLuzd3EWarb3Hb/4lUytULkpSvcqqoZSFZ7OIyS81GnmMSyJSBi0BsYx1sA4Vybj6TfUISqeXkytAIMzzgYR8SYJ1XhNyCfO1WisgeooKoxpyzX8Sh7a8/on9hPqsBMu9TAtbkBzQa2qzB8VOZYhq5PEJoZS4JwIeT4MPSMRh4EPLtAj6TqHngy5TkQ/PN7fNiJut/Fbypi4D5JbQySmjI8K2GNISWIxuQBLvLPdiWPhLQDlIALn14rgwK6LyERXvX0weObV5gWsUA3nk5Fejx9XmddQYVzD2qTweYCjFs/0VHZ5HJ6oVKeJT2Fgw6FsM8ig7hRkwBJ36YTq+s1vtP383uDs8e9mmHo3vYNjcjcsO8IuSdlDCAeNJrZYk3adaYHC19hLdGwX+bDSo8SngcvkJIcNPy+wBsZ1fstSqIuM789Zkv5Pydfz2B53nSXdaME5NNJm5Nptn6is2X6AGr3/XuBYOUhN/dXylXlsfrblDntADZshsFmblfnFhDJfLXF/fyJ+dS/Qax5gmyCZBB946PcxbM/O6DcRbOSCKkG08MsNDITDZSJ/HbFV1Uci6Zt/Ez5prGHSbE1Vl1eXigZmmGwqlDE5ZT/1SZ+DuLU9XyDnJJYVhciH+QA+yb2a3pkpQa8v/LqiiBZN0U57iSqx02dWOtYOkrmaSnGBdmO9QvfJ5rnNEJwr5XhHIqatmN X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(376002)(136003)(346002)(39860400002)(396003)(451199018)(46966006)(40470700004)(36840700001)(86362001)(40480700001)(82310400005)(40460700003)(36756003)(83380400001)(70206006)(316002)(4326008)(8676002)(478600001)(70586007)(186003)(26005)(110136005)(336012)(2616005)(47076005)(6666004)(1076003)(107886003)(426003)(921005)(7696005)(5660300002)(356005)(36860700001)(7416002)(8936002)(4744005)(41300700001)(82740400003)(7636003)(2906002)(2101003)(83996005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 01:29:48.8677 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 78a40d1c-1d77-45fb-2a8b-08db2b3e17c9 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5952 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org To enable timestamp support for the Tegra234, has_gte variable needs to be set true. Signed-off-by: Dipen Patel Acked-by: Thierry Reding Acked-by: Bartosz Golaszewski --- drivers/gpio/gpio-tegra186.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-tegra186.c b/drivers/gpio/gpio-tegra186.c index 14c872b6ad05..b904de0b1784 100644 --- a/drivers/gpio/gpio-tegra186.c +++ b/drivers/gpio/gpio-tegra186.c @@ -1134,6 +1134,7 @@ static const struct tegra_gpio_soc tegra234_aon_soc = { .name = "tegra234-gpio-aon", .instance = 1, .num_irqs_per_bank = 8, + .has_gte = true, }; #define TEGRA241_MAIN_GPIO_PORT(_name, _bank, _port, _pins) \