From patchwork Wed Jan 25 20:42:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 1731853 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=QeWhhW/0; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4P2G4n1Wx7z23hj for ; Thu, 26 Jan 2023 07:43:05 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235400AbjAYUnD (ORCPT ); Wed, 25 Jan 2023 15:43:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235659AbjAYUnC (ORCPT ); Wed, 25 Jan 2023 15:43:02 -0500 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 54A944EC1; Wed, 25 Jan 2023 12:42:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W9LhL4bj6s8pdGRW1+Z+9isW24hnQSpn4vDieYU+5mQWkGKP3Y8EJ8cFdc1VNkhVh2HyVvGNMMgpEqJdEJGWLQ2jqnBDKHpd7uWIItEyFTiq5ApcHFl7Gmpowy9lUvulMsmDMnjDcDTHJ7gy3IwDF+xdo40Xs/uhLV1wXOMTq+M21DdEXdblOWqCN/IW4PqcdkoT5ZhS4VJ88295Uh9Id8BhXKmgwx2JSumUhDFTPt4H2mFPI28lrb+M5LreFDgafvx0OALJUHIqYLO4TxDesgHQyg6+jGEaELkJPJWblN6nYSs15Riq/y0pNZ3YQbMpatKFohBeRHvmC5HOd/ZM1A== 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=y6HbiRZ1urvuJmaxuQ6LZw8uIshhdiNrPL6tdTCA8zY=; b=BhhRCDLW6QKb1SHMTDLACwNSHZTC1fo7UR4VHRPIqW/yJUJcolZU1FQZYGNICzOKdTwqkUpTYy5DT3nUrL5vT+xFR+g/Td6jYKmbqTNXdrAUSfMCQ/4rEPRfjYhvvcYou0vvKZtVjZaRGgBWs/tL5Rxvr6EcIKOmXwSqq9gE9oHz3JYdCuRLJut2oIYKZrgq0SInWoaWfgFFo1q4QFQiPOCBl8x++Nhky3gAebkKJOHeCgPT3bBZcBpzIoMLS1qI9IVRfHBU4x5oHmTqmrgWb9TMBt72iZchondcGCTC+tPe4geulg/Kd/PXZGwJYn7ZG72cL01lMdAe2dsUqxgSSA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=linux.intel.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=y6HbiRZ1urvuJmaxuQ6LZw8uIshhdiNrPL6tdTCA8zY=; b=QeWhhW/0uZe4kWnxljn/5WDozoj8yto4vwGo69sz649pKkO5Aie9a0qjqfGfUX9OwlobSlUA7pYRQVbYH4UlJvpLTn1ssyF63v/N9/bOJZWkSWSleXOxxDZ6qteAmUXqCd9cGyU4xNPZSisqt5mDaObhyfImRSs+AQI81k15PMr1/mNhDeTs6vU+Z5HTMBqox//t4vKE49BOYmUYedfjyu2o5ntz4aCLiBwulgF81bpMPiS9cLdzDIMCxGBaIwA1Fgct3l0Mo6CeinssybfbDYkekH+hdg/ZOOM2Mgzi8ChDoVl7zaYOTSwD8xFS32cdd3jbFK801iYlcWa0ebrLsQ== Received: from BL1PR13CA0150.namprd13.prod.outlook.com (2603:10b6:208:2bb::35) by DS7PR12MB5909.namprd12.prod.outlook.com (2603:10b6:8:7a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21; Wed, 25 Jan 2023 20:42:43 +0000 Received: from BL02EPF0000EE3C.namprd05.prod.outlook.com (2603:10b6:208:2bb:cafe::a6) by BL1PR13CA0150.outlook.office365.com (2603:10b6:208:2bb::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Wed, 25 Jan 2023 20:42:43 +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 BL02EPF0000EE3C.mail.protection.outlook.com (10.167.241.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.10 via Frontend Transport; Wed, 25 Jan 2023 20:42:42 +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.36; Wed, 25 Jan 2023 12:42:26 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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.36; Wed, 25 Jan 2023 12:42:26 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Wed, 25 Jan 2023 12:42:24 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V8 1/6] dt-bindings: usb: Add Cypress cypd4226 Type-C controller Date: Wed, 25 Jan 2023 20:42:06 +0000 Message-ID: <20230125204211.63680-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125204211.63680-1-jonathanh@nvidia.com> References: <20230125204211.63680-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0000EE3C:EE_|DS7PR12MB5909:EE_ X-MS-Office365-Filtering-Correlation-Id: 08985b5d-fcac-4002-23a3-08daff14b4ba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h/kMzXGUBN0KtGoMolaLY3J+zAxmikhn6l5SRSt2MhCROa61Gk3DK1QxKSqUtU9gY5lz91GWsvyUq8GV5h5446WtWhNghgrRf0xyJC6OIsQdwEvjHu7bx7n/PQSIBgoXg0UnsuwBJjMvRt2Pfs4GAtrZZ24SAfd7sXfmuxee/xLvImYROtIf3n+/G9DbS404LG+cyz+oYznBFYAil7Evj2F+BTPx0kl0Mn4LuIkl4zyC4kMUDh9s+splLU41FYH0N1j7ge4HSX7L21gC/FfBZKXQVSPEd2oFyAYCxoxEj3BJQLlsOJiqThUV9yp3C1wRH1FjIOZoE2YsLWmHFTwljVHK5PYAhOOhh3U0JP3BPHwg00c80D5MuLWzEp2pVFqYpmlNmnfFli5s7Dd+4VXdTmxSdIXA7/Cg+ox6jIUGhlO6x8WXu7hP1/hTOiRZwbET9NxX3esuCG/1hwKju68ClYa+0I7RQFqA+kNzU5a9IV2V/pyU/5cBlErGsiTpZIaEuEeTrmgoSMEN9Ax3j77+C4bUqx48scZI5OTF4Erw68r/ztE3krvXPhP0NE83PhiAgcbsgOL/rlobHKapmZ1iJCPFEVVtZgOGKNbZaZfyCwot3tVlD7cfGqUURQn5z9kkTZA+a8+D07+B5VQ0Q+gibWv/vFaRgNrlRlD5Ap8P5mrIW/f+pO/+v93jO7Op6lNi4Nw9tM0/yMn8w5cdCUXgtPzMWOthOYPitU1L9R0/fMaGWWgLYSnLUCJB5sJfppKhoaMp/6eJxfyfy5yviRI7XMkAuaROR8oPqcCTL2GNFJm593KhrDEyemoiYIvH1dIR 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)(136003)(376002)(346002)(39860400002)(396003)(451199018)(36840700001)(46966006)(40470700004)(36756003)(426003)(2616005)(41300700001)(8936002)(47076005)(336012)(356005)(5660300002)(7636003)(82740400003)(2906002)(83380400001)(1076003)(966005)(86362001)(186003)(82310400005)(26005)(478600001)(107886003)(6666004)(7696005)(70586007)(70206006)(4326008)(8676002)(316002)(36860700001)(54906003)(110136005)(40480700001)(40460700003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 20:42:42.0685 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 08985b5d-fcac-4002-23a3-08daff14b4ba 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: BL02EPF0000EE3C.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5909 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Wayne Chang Add the device-tree binding documentation for Cypress cypd4226 dual Type-C controller. Signed-off-by: Wayne Chang Signed-off-by: Jon Hunter --- V8: removed 'additionalProperties' V7: updated example to use 'typec' for the node name V6: no changes V5: updated subject and updated binding to use 'firmware-name'. V4: no changes V3: fix additionalProperties warning on new schema V2: based on the review comments. Fix some addressed issues on .../bindings/usb/cypress,cypd4226.yaml | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml diff --git a/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml new file mode 100644 index 000000000000..7ab23d8fdb20 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/cypress,cypd4226.yaml @@ -0,0 +1,86 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/cypress,cypd4226.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cypress cypd4226 Type-C Controller + +maintainers: + - Wayne Chang + +description: + The Cypress cypd4226 is a dual Type-C controller that is controlled + via an I2C interface. + +properties: + compatible: + const: cypress,cypd4226 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + reg: + const: 0x08 + + interrupts: + items: + - description: cypd4226 host interrupt + + firmware-name: + enum: + - nvidia,gpu + - nvidia,jetson-agx-xavier + description: | + The name of the CCGx firmware built for product series. + should be set one of following: + - "nvidia,gpu" for the NVIDIA RTX product series + - "nvidia,jetson-agx-xavier" for the NVIDIA Jetson product series + +patternProperties: + '^connector@[0-1]+$': + $ref: /schemas/connector/usb-connector.yaml# + properties: + reg: + maxItems: 1 + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <2>; + + typec@8 { + compatible = "cypress,cypd4226"; + reg = <0x08>; + interrupt-parent = <&gpio_aon>; + interrupts = ; + firmware-name = "nvidia,jetson-agx-xavier"; + #address-cells = <1>; + #size-cells = <0>; + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + label = "USB-C"; + data-role = "dual"; + port { + endpoint { + remote-endpoint = <&usb_role_switch0>; + }; + }; + }; + }; + }; From patchwork Wed Jan 25 20:42:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 1731855 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=fJuosISU; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4P2G4p1PSRz23hg for ; Thu, 26 Jan 2023 07:43:06 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235818AbjAYUnE (ORCPT ); Wed, 25 Jan 2023 15:43:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235121AbjAYUnC (ORCPT ); Wed, 25 Jan 2023 15:43:02 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2065.outbound.protection.outlook.com [40.107.243.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03FBF16301; Wed, 25 Jan 2023 12:42:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XkKvomtZCVah8wJqR6hWPBSppM1LN2lZXFAOWNLZSh075SIJOVPY5mMAIc7q5F66krcalb/OTUYAC0JR5qzKel8d/VCkRAj86yLZns16hNX9ADFmuM7ki99gelVWgxy6Dx867k3lomNETmKDZOZ9xjvThMA8/kbDntEuQKyDIZjMkGjkJudCodG+XlY9spZmH+jHYg4aXgRJkSFCZvc76CmcjnS4QlbNfeOBD8FgPqoghgO0NVnIWinwAbVn3u/KUxYCm5WPYmrVbywmlhjTNTttiZPy8OX3BaObo4B8T9y+19AY3t7ZkYKwZQ/U251qnA+Ey7x0NJ75nJlR3E4eZQ== 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=cOoegvfSAEm+BHpoumBrXrXQNBEpfidyw3a77GuuvhY=; b=kj9x+Ckfw9lyPjFzuNWqCxbLpf18sB0s5f1HKNkfUC6UKIK8VBD1HVEvYHD/7NQ7AV5m+4OFJC9jWoLjGdHQJI5E2UQTSabk2AZyMYXL7NxJ34KW0AlEXeykqv4m4G0He0s0fC+XjTrdL9bIgnAHuDMjRzz3Fy6Kdb8Uiwqw/XDZ1+ELi4jeEK/RTJovz2MWl8ZkH+A060YzQKEPyHI9RyDexWC3J4uDevDPTAtWR8c9YZJOtHLQA2Zab7wWJe2wSG9vnDsnN+kyStX2eS4Xn8cKrmPuECFk+4RHFuHdEa0Jszp2C3uTlra2UgPJqJEUU7PSIOHoT1lZfA1cKwzAMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=linux.intel.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=cOoegvfSAEm+BHpoumBrXrXQNBEpfidyw3a77GuuvhY=; b=fJuosISU4ns2oT5Qb5MF0+DifNlYhswD1GfW/1hTR6klIL7fRRNdWEZ2dNW+wq8o7/jqp++7l9MZ6kQueSdc5rI3uz193xp/K0Zf4KHi2v5m5g2CQoibl8fJqrJHZU908DgT8OAGYwsypR0lbf4v5ECSVsd3F3ESX8Y6zzfXDR7uFP1CuNN5dsiV5La6oRa8A2hekkdoz7qsJHfaqvx4SsvmbNKS4+VrEI6EIltLlWbnxF5Q1/pU0kdBIGMqlVo8e/nzTIZUHN8eEwzJzg+A6x7sOMt3I9UbHOx2Hs5DBwft85lNkR1R1W30DvtEeSTXUZF7X18FEdJBkvIAeJMH8Q== Received: from BL1P221CA0016.NAMP221.PROD.OUTLOOK.COM (2603:10b6:208:2c5::29) by DM4PR12MB6158.namprd12.prod.outlook.com (2603:10b6:8:a9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Wed, 25 Jan 2023 20:42:48 +0000 Received: from BL02EPF0000EE3F.namprd05.prod.outlook.com (2603:10b6:208:2c5:cafe::27) by BL1P221CA0016.outlook.office365.com (2603:10b6:208:2c5::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Wed, 25 Jan 2023 20:42:48 +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 BL02EPF0000EE3F.mail.protection.outlook.com (10.167.241.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.12 via Frontend Transport; Wed, 25 Jan 2023 20:42:46 +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.36; Wed, 25 Jan 2023 12:42:29 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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.36; Wed, 25 Jan 2023 12:42:29 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Wed, 25 Jan 2023 12:42:26 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V8 2/6] i2c: nvidia-gpu: Add ACPI property to align with device-tree Date: Wed, 25 Jan 2023 20:42:07 +0000 Message-ID: <20230125204211.63680-3-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125204211.63680-1-jonathanh@nvidia.com> References: <20230125204211.63680-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0000EE3F:EE_|DM4PR12MB6158:EE_ X-MS-Office365-Filtering-Correlation-Id: 9659d911-432a-44a8-77bc-08daff14b779 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6IgbHuQvt/O6HamWbwFrxeTbOmTpEIAKaq9w+yCze4toYyRItehUPzGlTeRYv6yel/KPHtYXqARWz9AEEHyJ7Mr4cbN7BxlZtUrHG1WDrqctNouA2WdWvnYugl3DJ0BVeM39gaNbZ2pJvOiORtClofC3pgPSXcCtzhEqyzDAUL2w+Kq0uQBEWzXUkJn65Uy/mY2NBl8hojlzR9wcKcZEFOUilGcxGiR3mApPZk7CS5NdVNJtknzbU8PfJ6mRxd6YFXFNW7H/2lMSsNANI5rmnHabPEUDjCZZq/Kg6+ffIFoUk7t+dtJXhyjPJGBKYzCkJMVHY5JcZEfijWSnRkamh7wiA4AH6KTRpN4CzFaXRXZqWc+bJFEiv+jpvIp54nnDQDotPm0r2Qt0cWs9fr/Dj4jRiW11EhjQ7b9lihg69pkgftXf9CRahNaiJtP+A6PEqOlmY4b6zi/MpqOjcNZ6b3rp+FYX04nOqYvJyLOK9Mc5VYfFLgazbkY8CWyhC1uhAtkwnjqt3ZjoD7C6apiebOA8UcdfcYa+wzwZV5FKzCPdJKL9HxhQyxNDHx053CiO/nD1xLQ25zbhqu5xa1zfZ566m2fJOwB0gTn+Hb7e8CoJ+WsWxT0Es6AogQ7eba3WesU4DlzCNgaMIOUZXUVhyb9cY05VDR4p/UehQF2NpBxXDwuFejPaukQNC2PJY5Bn2t0Oi7GDeJB8ZSu1f1Fqpw== 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)(136003)(376002)(39860400002)(346002)(396003)(451199018)(36840700001)(46966006)(40470700004)(70586007)(7636003)(36756003)(40480700001)(82740400003)(40460700003)(82310400005)(36860700001)(8936002)(86362001)(41300700001)(1076003)(26005)(186003)(6666004)(107886003)(5660300002)(316002)(8676002)(336012)(70206006)(2906002)(478600001)(7696005)(110136005)(54906003)(356005)(4326008)(47076005)(426003)(2616005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 20:42:46.7091 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9659d911-432a-44a8-77bc-08daff14b779 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: BL02EPF0000EE3F.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6158 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Wayne Chang Device-tree uses the 'firmware-name' string property to pass a name of the firmware build to the Cypress CCGx driver. Add a new ACPI string property to the NVIDIA GPU I2C driver to align with device-tree so that we can migrate to using a common property name for both ACPI and device-tree. Signed-off-by: Wayne Chang Co-developed-by: Jon Hunter Signed-off-by: Jon Hunter Reviewed-by: Heikki Krogerus --- V8: no changes V7: Added Heikki's reviewed-by V6: no changes V5: Added this patch from V3 drivers/i2c/busses/i2c-nvidia-gpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-nvidia-gpu.c index 12e330cd7635..6d81ea530a83 100644 --- a/drivers/i2c/busses/i2c-nvidia-gpu.c +++ b/drivers/i2c/busses/i2c-nvidia-gpu.c @@ -261,6 +261,7 @@ MODULE_DEVICE_TABLE(pci, gpu_i2c_ids); static const struct property_entry ccgx_props[] = { /* Use FW built for NVIDIA (nv) only */ PROPERTY_ENTRY_U16("ccgx,firmware-build", ('n' << 8) | 'v'), + PROPERTY_ENTRY_STRING("firmware-name", "nvidia,gpu"), { } }; From patchwork Wed Jan 25 20:42:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 1731856 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=Jw+tmWjN; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4P2G4q0XqCz23h0 for ; Thu, 26 Jan 2023 07:43:07 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235962AbjAYUnF (ORCPT ); Wed, 25 Jan 2023 15:43:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235659AbjAYUnE (ORCPT ); Wed, 25 Jan 2023 15:43:04 -0500 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2054.outbound.protection.outlook.com [40.107.100.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 255BE233F8; Wed, 25 Jan 2023 12:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bt+LOHcZa5iqkfpH5kGaHe0V/Rk+3E+hh2y1LgUSR0hffRtsI0rtv5RdJol3VNQS4l4HaxyVrVBamzmq/cQxJLPc1DnfJDRx3T6WYTn+uYs1Yp7EED+YUC6WghUxmH7MFR70NlFM/LmSLzsvGiHMMXRFjd7vip/8dP6ZvFrJMPQ6RMSYK70zjUgkgQVZAKOrQXJUY9iF2PEX16fqApBNZibmSPqex4IGwQ7RZkmE4BtlPON1F0DdhC66PXNehV7bey6TnxAdVpJqkqF8cjpsGWOBZTpv9775Iq68ONQ1DnOJW4HxCOUvk414nFp180c3eeiVnTQhwsQdPebvpXNeBA== 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=bidzI66cbB6DoXtWFIKdOsJxkrXh4QQkHF7fmoY/pEg=; b=P590kYeWiihakDFNAUSkOO8u9UTPxkN1M7FgOgVpWTQlTuHOC1Tmzw7SicxfzYQZVDw5rH8EOxze91UMdE8nJMJB8YDaSF7TYA5IfoVH8Pw9/B36YWPCp97N0AanJAsvBOv09ZID567WJb8v1JZq/AR8i/CNcwLx4jdjcQuo7JNTHo2Y/2EE098fTrwFe09lF9yQZMmacFR9SGU2HOLCJvQDqWAQaKMGGcLpLlfCy9AADdYqfqNfrdlLekB3wJSNf08tKQrclw1x7DjDMHqXpJpFcyXE259/5UUzH+pCZZurMBsLtg5MzJEQJXIAMku3wtxeKL1zHkdhBWOPo6FgWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=linux.intel.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=bidzI66cbB6DoXtWFIKdOsJxkrXh4QQkHF7fmoY/pEg=; b=Jw+tmWjN6jWkpWtvt9PnkWp097FtmMTQgqObF61/UGJvyJh+SIeo4ncP/BjaSzr7ksh1lQN4MDUgfVaaqV55oQUETPcBqi9e4qkj5+7oGq+uYuahrCzhE42lpcj3foHuQPMHh/8K1+SSLk2/AolC+Pw9Bcm+j4zmiiuUBaQhc6VrUypNEvf5oOrz+mW8RThWbqA3iPgQYBBBLtzJupGq8gp/0iFtJZi+tsTRBwKnsmzGEfMyYiCU9ejoA8x1BMKDhV3GuDAZKbEliBPayYHNRfkFTfK+5rCKCO5lMtgrxlHGBCrlw1aymY8p46SBchAwVqG+U68Fzr4dE/EWAn6mWg== Received: from BN9PR03CA0506.namprd03.prod.outlook.com (2603:10b6:408:130::31) by SN7PR12MB6930.namprd12.prod.outlook.com (2603:10b6:806:262::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Wed, 25 Jan 2023 20:42:49 +0000 Received: from BN8NAM11FT115.eop-nam11.prod.protection.outlook.com (2603:10b6:408:130:cafe::73) by BN9PR03CA0506.outlook.office365.com (2603:10b6:408:130::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.20 via Frontend Transport; Wed, 25 Jan 2023 20:42:49 +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 BN8NAM11FT115.mail.protection.outlook.com (10.13.177.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Wed, 25 Jan 2023 20:42:48 +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.36; Wed, 25 Jan 2023 12:42:32 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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.36; Wed, 25 Jan 2023 12:42:31 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Wed, 25 Jan 2023 12:42:29 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V8 3/6] usb: typec: ucsi_ccg: Add OF support Date: Wed, 25 Jan 2023 20:42:08 +0000 Message-ID: <20230125204211.63680-4-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125204211.63680-1-jonathanh@nvidia.com> References: <20230125204211.63680-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT115:EE_|SN7PR12MB6930:EE_ X-MS-Office365-Filtering-Correlation-Id: 178e380c-1e46-41d6-0a30-08daff14b8c2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qD8jHxv87tI9LsGqfvBOQeqKzlblVfy04uTESdJuYrQA/w1ng5P0vwJkGDEjYOMpyWI17s98KXGZkFDeqdSRivf0jn4n6BFIsOCYxE0YG4rrZk2b/IqbjrogPfTU0ZR0IduOR+a3CuHRGhgcv0X9lBPm3caW3YBXi8n/dDliGIZartumKzkz2K/UAKUlrGa4Mzo00H0OrmWWN5KnnyBnAgnBOkbIcGlpUj/xqoFR9Gr8ypaZSi/bLam86bSyuoYO1iN5A2vgZLNbun2D+2NQZudUxZMMQqvctCwo5z6h0dgyMNpVUfAD/wsKKx51cAzXwEKJZHb2FvbJ+23SLL5qArOPiu+nDiUHbSDnAlpFE8WV78+IPFmOh/CTtsiXwy7mT57gLtzfT3Axj8SbzdQTmyCkfylaVDMOcCdg/g2yRK7iyb+vz3hlKDXhqOqbV7Yr3Y6A1ztjw5g0igASXE7QvBDSEO339LFt/9La+VaIx4JTEz3JZKFGTdUfUCeQuILIG5ZxUKretpyG9CveB+1J209UGIZyZstu3QqEU90Xzp3IkDNa8Ur4BlEMM8h8BVCcsEFDlAt99/XmjzsRfi+MmPOrLiKteVn2DARiupeu0nMmCpFfsx7+T3arDoLKJCgc+FWeAsFJKhdJAAx9Z0svAPyRJMTNRZMI/8PZvHE4ZwTT/y3HSPJW2Jjny7wKoCbZvUoKdfQPGpUexQALZa6EWw== 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)(136003)(346002)(396003)(451199018)(40470700004)(36840700001)(46966006)(83380400001)(36860700001)(4326008)(70586007)(336012)(426003)(70206006)(26005)(107886003)(47076005)(1076003)(7636003)(110136005)(478600001)(54906003)(2616005)(7696005)(36756003)(186003)(316002)(356005)(2906002)(41300700001)(5660300002)(8936002)(82740400003)(86362001)(6666004)(40460700003)(40480700001)(8676002)(82310400005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 20:42:48.8468 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 178e380c-1e46-41d6-0a30-08daff14b8c2 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: BN8NAM11FT115.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6930 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Wayne Chang Add device-tree support for the Cypress CCG UCSI driver. The device-tree binding for the Cypress CCG device uses the standard device-tree 'firmware-name' string property to indicate the firmware build that is used. The NVIDIA GPU I2C driver has been updated to use an ACPI string property that is also named 'firmware-build' and given that this was the only users of the 'ccgx,firmware-build' property, we can now remove support for this legacy property. Signed-off-by: Wayne Chang Co-developed-by: Jon Hunter Signed-off-by: Jon Hunter Reviewed-by: Heikki Krogerus --- V8: Add Heikki's reviewed-by and fixed unnecessary line wrapping V7: removed 'ccgx,firmware-build' property V6: fixed compilation V5: add support for 'firmware-name' V1 -> V4: nothing has changed drivers/usb/typec/ucsi/ucsi_ccg.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/usb/typec/ucsi/ucsi_ccg.c b/drivers/usb/typec/ucsi/ucsi_ccg.c index 46441f1477f2..e0ed465bd518 100644 --- a/drivers/usb/typec/ucsi/ucsi_ccg.c +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c @@ -643,7 +643,7 @@ static int ccg_request_irq(struct ucsi_ccg *uc) { unsigned long flags = IRQF_ONESHOT; - if (!has_acpi_companion(uc->dev)) + if (!dev_fwnode(uc->dev)) flags |= IRQF_TRIGGER_HIGH; return request_threaded_irq(uc->irq, NULL, ccg_irq_handler, flags, dev_name(uc->dev), uc); @@ -1342,6 +1342,7 @@ static int ucsi_ccg_probe(struct i2c_client *client) { struct device *dev = &client->dev; struct ucsi_ccg *uc; + const char *fw_name; int status; uc = devm_kzalloc(dev, sizeof(*uc), GFP_KERNEL); @@ -1357,9 +1358,15 @@ static int ucsi_ccg_probe(struct i2c_client *client) INIT_WORK(&uc->pm_work, ccg_pm_workaround_work); /* Only fail FW flashing when FW build information is not provided */ - status = device_property_read_u16(dev, "ccgx,firmware-build", - &uc->fw_build); - if (status) + status = device_property_read_string(dev, "firmware-name", &fw_name); + if (!status) { + if (!strcmp(fw_name, "nvidia,jetson-agx-xavier")) + uc->fw_build = CCG_FW_BUILD_NVIDIA_TEGRA; + else if (!strcmp(fw_name, "nvidia,gpu")) + uc->fw_build = CCG_FW_BUILD_NVIDIA; + } + + if (!uc->fw_build) dev_err(uc->dev, "failed to get FW build information\n"); /* reset ccg device and initialize ucsi */ @@ -1426,6 +1433,12 @@ static void ucsi_ccg_remove(struct i2c_client *client) free_irq(uc->irq, uc); } +static const struct of_device_id ucsi_ccg_of_match_table[] = { + { .compatible = "cypress,cypd4226", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ucsi_ccg_of_match_table); + static const struct i2c_device_id ucsi_ccg_device_id[] = { {"ccgx-ucsi", 0}, {} @@ -1480,6 +1493,7 @@ static struct i2c_driver ucsi_ccg_driver = { .pm = &ucsi_ccg_pm, .dev_groups = ucsi_ccg_groups, .acpi_match_table = amd_i2c_ucsi_match, + .of_match_table = ucsi_ccg_of_match_table, }, .probe_new = ucsi_ccg_probe, .remove = ucsi_ccg_remove, From patchwork Wed Jan 25 20:42:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 1731857 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=uCksqkg+; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4P2G4r72Syz23h0 for ; Thu, 26 Jan 2023 07:43:08 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236248AbjAYUnH (ORCPT ); Wed, 25 Jan 2023 15:43:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235659AbjAYUnG (ORCPT ); Wed, 25 Jan 2023 15:43:06 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2074.outbound.protection.outlook.com [40.107.243.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A8723BD94; Wed, 25 Jan 2023 12:42:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jA0S8LoAC3t5m0ZXKZTgJ0nAP6Y2HENqN7UAtVA4z/jY88fI7WCzN8+93uQLaoBjTCftUVOf8f494XFdsh6K+krEibQe5Vqp4myoUiN++K7GSrtmLXOMcAlBpe6VRS1jWAZi8SjGftOlFpsK0VcHBKc062IY5126NgFdKOgf62ud7NkrN0w4Kf2+BpcIfeKp2IgHChj5x6+gOUQRVbg1uTuVERQL7NouN4oN3XVztfKLl353EyWe8cLq5uwdOlBnIHQIJj8V/MOes79hYHn+pN6ghCboXHqZlQyDleG64PQxlbsGYaPXCbY+mq7HYVDZL2I31x4wLmko+3bCfW2l3Q== 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=ePDnBh75bAtDwEjRe0A4ub91Npk6kvlL5RKjDjLYXI8=; b=GdDakTuyKDtD1ZDpFAqkyHJ+WjwymIqQhqrkOH9y4jUOXrGlA0tTaUGarEaBcWIEY8TJIda0328wCiVjXhKfbm/GcV42b3yexOBe2CQ1cwNKCwTR7Kb0LruL87plL93KQN/0IAdAxJ/NEJIsQJmYtGGCmW0Rz5Bqpu/p9D04FzQJ8nEQiGoLBLd5lCj1AFVJC0+eGjChTlzANB9miET/V7+0yU3fRdV4jBpEukKKHbwut1CFHYYz2G2ajTWSdoGNVOk4Gy0+BIa6zKy3XgZ4uuhF6zSZG+EHhf4YFZQz5L4EkRWEQBZOelfa5uk73kGhH6HAuq+dlH4hQg7KK3hdyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=linux.intel.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=ePDnBh75bAtDwEjRe0A4ub91Npk6kvlL5RKjDjLYXI8=; b=uCksqkg+GATe+nHU/5jFj9oqMX570/VWTaVOCSuzCcSbb5CNdvprGP3coJLYLzDbU9L5Neo+3ohzeG7iF7GPnzZoRyyS6HmhJcZLl6+lnQBlpkN+/GV+xw4h4MLl/LKKejlvu/JoNZacgTT5Eq3O8/wByAOk8SuDofot5ccVwUwI1bjYvtRkP59nyZvhdtT/QG03ljY38jJuvvKMMLjkqDlPH/IeiSMmxn8Tz24w8tOl6jdxVpKtsjKNIx0GX7aBX+hoBMcFXkX5qvwNDiMc4De+OyWvVFqVod1snOTdQqL8qz2jRsxRzonuuaEaIJVEG6/KCG+Bg089PuePipdiGQ== Received: from BN9P221CA0023.NAMP221.PROD.OUTLOOK.COM (2603:10b6:408:10a::11) by BY5PR12MB4227.namprd12.prod.outlook.com (2603:10b6:a03:206::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.20; Wed, 25 Jan 2023 20:42:51 +0000 Received: from BN8NAM11FT113.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10a:cafe::b2) by BN9P221CA0023.outlook.office365.com (2603:10b6:408:10a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Wed, 25 Jan 2023 20:42:51 +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 BN8NAM11FT113.mail.protection.outlook.com (10.13.176.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Wed, 25 Jan 2023 20:42:51 +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.36; Wed, 25 Jan 2023 12:42:35 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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.36; Wed, 25 Jan 2023 12:42:34 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Wed, 25 Jan 2023 12:42:32 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V8 4/6] i2c: nvidia-gpu: Remove ccgx,firmware-build property Date: Wed, 25 Jan 2023 20:42:09 +0000 Message-ID: <20230125204211.63680-5-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125204211.63680-1-jonathanh@nvidia.com> References: <20230125204211.63680-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT113:EE_|BY5PR12MB4227:EE_ X-MS-Office365-Filtering-Correlation-Id: 92435d83-01ec-4d5e-5acd-08daff14ba20 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: x3Dni1dGETrL6xC5BAtM2mb7t0IzX5+CUAUYJS1skfW83Xbp2mRWDWfvcV4F7TTh4DkKZw2Zcr7mkHhlzg6ulzB+tSnVjPWb2qmc6cxko3HJ0p8Vfnd/ENw9Iife6xmdJgolLo7qOrPM0+hmw7W+t9dGuBQHZho+pnBJShvvIgOvUuMWicugtT/QG3XUmm2gcRL2ZHvtqbjMoGAfPmfsf6NEN+eBmYANR1AQCXhP0mGPNQcLaSu2orK4gjjwB+2QjoyAKMkJJJBA43ta1w+Bwdg0Km3zSCT3I8JqTiOg4P4t5DzWPP10FM08Ln3cLoKoZ0rXpwipw1GWG/y+6tqHqKhjzNYNpBZIsleZWaE0bMExhaJ42kQdIjCT9TWHj1NEr1dqRHa4suAe9j0tVEdVQkijvwoWBx6m4j6wdvHhg99iyZUkuxNGsS3EpAALznQzQzj2QayDSYy/+pYRBctW3VT37nWCWA7Ig+bM9nJWyDm3bfjhlK2bgO9Bs9m3R75PAgDdYNtW5T5Tw9NsIAxdpomi/FwPxCzQVd9MJQrCkXpmOPQHRywdWSUM3f+ABWJwqsao1hOBaCEVuSbYLmFKo3YMMZPzHk3R93d9uxhUZoQJO0/JWcrbaExfkBVUnRtjfOtmDGgUXYV2pMnbWST8+AjrRkd1TKZd0ExTwI4HHLI= 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)(39860400002)(346002)(376002)(396003)(451199018)(36840700001)(46966006)(47076005)(82310400005)(86362001)(36756003)(40480700001)(356005)(36860700001)(316002)(7636003)(82740400003)(54906003)(110136005)(70206006)(2906002)(4326008)(41300700001)(70586007)(8676002)(8936002)(5660300002)(26005)(186003)(2616005)(426003)(83380400001)(336012)(478600001)(7696005)(6666004)(1076003)(107886003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 20:42:51.1426 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92435d83-01ec-4d5e-5acd-08daff14ba20 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: BN8NAM11FT113.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4227 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Wayne Chang Now the Cypress CCG driver has been updated to support the 'firmware-name' property to align with device-tree, remove the 'ccgx,firmware-build' property as this is no longer needed. Signed-off-by: Wayne Chang Signed-off-by: Jon Hunter --- V8: no changes V7: no changes V6: no changes V5: Added this patch from V3 drivers/i2c/busses/i2c-nvidia-gpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-nvidia-gpu.c index 6d81ea530a83..a8b99e7f6262 100644 --- a/drivers/i2c/busses/i2c-nvidia-gpu.c +++ b/drivers/i2c/busses/i2c-nvidia-gpu.c @@ -259,8 +259,7 @@ static const struct pci_device_id gpu_i2c_ids[] = { MODULE_DEVICE_TABLE(pci, gpu_i2c_ids); static const struct property_entry ccgx_props[] = { - /* Use FW built for NVIDIA (nv) only */ - PROPERTY_ENTRY_U16("ccgx,firmware-build", ('n' << 8) | 'v'), + /* Use FW built for NVIDIA GPU only */ PROPERTY_ENTRY_STRING("firmware-name", "nvidia,gpu"), { } }; From patchwork Wed Jan 25 20:42:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 1731859 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=hKQAqyCl; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4P2G4v1P2Lz23h0 for ; Thu, 26 Jan 2023 07:43:11 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236090AbjAYUnJ (ORCPT ); Wed, 25 Jan 2023 15:43:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236044AbjAYUnG (ORCPT ); Wed, 25 Jan 2023 15:43:06 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C08835D117; Wed, 25 Jan 2023 12:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aD+vQxo642aNpObtRC57dQ8j6EtAwAuHO4nU2Ro9e2r0MW/TxORvr+7laXZTQSCq2//b2UfLKSOofbUZJEZpAHXUjhmdMaosEzuKiEVdZzNqQdbfzNVZnrMFDSeEbWQaY8/Y84iE5AucCr9p5Ktm+kPG64kz7f+E2o0DBiTopsKvi4nWwdF3lZ6rXz9KsjATHtnRCzLeVhh2UlabFQtGMaFaOm8Gwx82mv2H1nn81L1wJCmCVMXdzk2dXqwWVU0ho7Yqfph4S6QAjcm+esUjIpyKbkZkSFj0Hb1x0gxZeXt/KO1OZyZhCf2Ry9JPFuqCxAGIO1cddW6+s1GVjT3/dA== 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=4hHPMZCvfWrMBXIRCGtHHdiiRP1KOT+p1YNE4Pj19O0=; b=gpKTFwRFD1VKlDiDN7BaHaGTIKBKMub2rMc/dO7D7WAbrSrZrNrd0YSO5NzaFqXXqi4z/fx/JK7IY62hW8Xz5jCUIyBUr0SbKUwjMgJ3+KRmIwMrznPsGbOQry1Ks5/ULtgWUOS9ajRQrmX0cIlVesFT6Rr3FO33j7OrDbRScF+HlLcb1e3HcofWSxCL8ZpifySTDeB7acRFPPf9dleu/rcojEtV0/d5FLcnnzjDlmnqS/s907xqcZVMcvX/UclCGDerQDr78a6kphQf8orSF30biKweFgSX0KqBM1po5HUFIk6XMYC6WowbKLCXNCItPPri6FBMW2t+PBjtQigJ0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=linux.intel.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=4hHPMZCvfWrMBXIRCGtHHdiiRP1KOT+p1YNE4Pj19O0=; b=hKQAqyClm38bNBDZhAgYT+9iSufAScWIvVnl7GBIc43sHF007WHJ/XNO3u0QYWSz2JNNkIoAFOFEVimIaTu5jD8Ir03muhhdxeo1x+xik97N4YfTOHDOZoNOKIHssVyctFsd8Pm7lUa4W6lH373Rf3A5KTYFLPzEm0Qe3Rdgx3YEpl+/sBp6UEIIwqtO2HeQvuPE1agP/nQ0Ty2cz58Stqy1WkzYBO4NDO1c18UasvyXo/Q0kxEVGO9V72+w3Q30MuvHnlvStbbgApU9DsTiWs8MhkocAwqP8yevbiA/tvT1yOOXzC+ORL8SzA1iJokk7B/R6jJ2523ELfRqJPsxMQ== Received: from BN0PR02CA0048.namprd02.prod.outlook.com (2603:10b6:408:e5::23) by DS0PR12MB7608.namprd12.prod.outlook.com (2603:10b6:8:13b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Wed, 25 Jan 2023 20:42:57 +0000 Received: from BL02EPF0000EE3E.namprd05.prod.outlook.com (2603:10b6:408:e5:cafe::ef) by BN0PR02CA0048.outlook.office365.com (2603:10b6:408:e5::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Wed, 25 Jan 2023 20:42:57 +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 BL02EPF0000EE3E.mail.protection.outlook.com (10.167.241.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.10 via Frontend Transport; Wed, 25 Jan 2023 20:42:56 +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.36; Wed, 25 Jan 2023 12:42:37 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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.36; Wed, 25 Jan 2023 12:42:37 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Wed, 25 Jan 2023 12:42:35 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V8 5/6] arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin Date: Wed, 25 Jan 2023 20:42:10 +0000 Message-ID: <20230125204211.63680-6-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125204211.63680-1-jonathanh@nvidia.com> References: <20230125204211.63680-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0000EE3E:EE_|DS0PR12MB7608:EE_ X-MS-Office365-Filtering-Correlation-Id: 6a1c1f5e-bb49-4ed3-458d-08daff14bd38 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jTWJqwsqe6Xtd7ZpOQduQorXYPfG6HLF4BvWh2XG6RnUy4M2FSUWFMRoCfzIE2TsDwxEsEG6pU1nrwc34ec0JpKQQp1wSZjm4ea2jhwL7cisJlPOOyKnbQUGxlhEisOYnBjvDwuG/9q9t1zK/SKSdlwzGsseKlrRlVG3I6StNSmbM5hQRdsRjjizutFj/EQsintWpvpZ+ULeROMaMuUHsaBNAzZelxYYbW7j0Ra3aAvphDZQuzx48M6arNGLpoLWVfaLoDrzbvuAFMA0agLUXoUaPIAk89NuJSYhXV0rr/u33M/ppO0Vb5+QWX2jr8eFWjdEiEqMLOHz2P2mkZ5O/LWQux/iRN45saSVi/ldSPaoWH1dBQSnL5rAIJujdGdKO+4PE8PXEAHpdeVz7cQD32rBBadrixKY2zEZivW3/Qwm8+XWjaTKfpJhBvhrAl6Do+PntHL3XeGZY7an1w4qdE6svnVb2AYXQCZZKUzUK43mAAKnZLSq+SJedV60cnA87iQo6Vtj1x+EQ0ab3VOvfSp2dUQkzxGOj84YwvnmWj3LubOz1XqFMfTwi4wxgIYezkqv7IVPRIXDnp7lmzb+fFhxhmyw8fLvmCnbIhUaOssoGWIQh1ll6w0QBOcaQle71pvKUtC2VB3tU15ufZAIoqqhMkTt0ZRBV43iAxLOcvqdx1cqG9G7KzTI9zLid/hWTxlMJRuE76EtNDoNa/o0SQ== 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)(376002)(136003)(39860400002)(396003)(451199018)(36840700001)(46966006)(40470700004)(36756003)(356005)(40460700003)(82740400003)(110136005)(7636003)(86362001)(2906002)(36860700001)(47076005)(5660300002)(83380400001)(8936002)(186003)(107886003)(26005)(6666004)(41300700001)(54906003)(8676002)(316002)(82310400005)(40480700001)(336012)(478600001)(7696005)(2616005)(1076003)(4326008)(426003)(70206006)(70586007);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 20:42:56.3324 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6a1c1f5e-bb49-4ed3-458d-08daff14bd38 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: BL02EPF0000EE3E.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7608 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Add the USB Type-C controller that is present on the Jetson AGX Orin board. The ports for the Type-C controller are not populated yet, but will be added later once the USB host and device support for Jetson AGX Orin is enabled. This is based upon a patch from Wayne Chang . Signed-off-by: Jon Hunter --- V8: no changes V7: updated to use 'typec' for the node name V6: no changes V5: no changes V4: added in this version .../dts/nvidia/tegra234-p3737-0000+p3701-0000.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts index 8a9747855d6b..3beb510996f4 100644 --- a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts @@ -2190,6 +2190,20 @@ TEGRA234_AON_GPIO(AA, 4) phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3", "p2u-4", "p2u-5", "p2u-6", "p2u-7"; }; + + i2c@c240000 { + status = "okay"; + typec@8 { + compatible = "cypress,cypd4226"; + reg = <0x08>; + interrupt-parent = <&gpio>; + interrupts = ; + firmware-name = "nvidia,jetson-agx-xavier"; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + }; + }; }; gpio-keys { From patchwork Wed Jan 25 20:42:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 1731858 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=urdbrbEZ; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4P2G4s6Ddmz23h0 for ; Thu, 26 Jan 2023 07:43:09 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236107AbjAYUnI (ORCPT ); Wed, 25 Jan 2023 15:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235993AbjAYUnG (ORCPT ); Wed, 25 Jan 2023 15:43:06 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2060.outbound.protection.outlook.com [40.107.237.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82A0D5CE62; Wed, 25 Jan 2023 12:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a2+vIw5Bj2/QLTc4Fva7udSUGUXCLAcGhj8erO+nuyk0ymTikXY5w+x+9VRP7G6iN6cmxRwT601E2KglfjvnO8EE0FLxG1sIgiIJWywCEFwuLhlkisr0zbIBYWRrVYK3AE1qD7H/NwkJPkHVmpPO6U00VLn7QwIYpXJgQDszKwiLdV88gzAvfIxaUJhgzLTRDYlG2G8gzL/DW5O27pGS0FhgaHKy8YSXvKH7UkrsRQb0YaZWEE0reKQvxpoVWDTibllj5wSmhMJxRaQB+NkVOEjz7WnF+X+OT3nzN1CC86YR/04VdTObSmSxDdfLg6bQ0QkCweYNemTfq1szlSjmJA== 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=TTjf5G+NXaU5lXSrwxsQOaZCTW7Hi7Dv348B38qYUFg=; b=UWw5d2NuSHTv+/mY2hFGVHdKU/kmbHrRowounRPvN3eioh3L7Pk13JpTJTaARzkedN0TqLeauxgoMaQssmzkovQKUDvl0f/57SdfOv2Iez6Qvj+FTUs2/rZmnY2E/OHIhEsuYkCHTgW8bTKxtwL5DDtnqFzq15lcSmpLIYs+E3mIkQBFrlb3EneUUJSKnnuGATBaR+pKSvqpWG7b0FKkHWOBmls9inb5KT/HYjGX4CHdyZ60Lr3qVcfYwjaf2n4JQwQl8ocl39iBp47ByjhwCtDksy/TEQA3e1v0cBdex1xVuoCjoG8Tk5ui8ds0mEWNmoFsPG8eHjZVg6wtxVRZYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=linux.intel.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=TTjf5G+NXaU5lXSrwxsQOaZCTW7Hi7Dv348B38qYUFg=; b=urdbrbEZM7BJyQcm8Ivm98pC6tMn+7edoXC5Jlivk71wzUhgpehuQWCaEw4foKTRdOI2Ih3pBuvzLA8Hb6cqT1k+4CfOOsyEz25KfHWibAaK5Xfcn4/sCH32+iTA+diTJih0P+7WKMJ20BfeQ7XkIYeUe6up9syRB1Tca1lrB4D2D9nrxZBljkGtmuLzHZztflL8vd7cIx6qJE1ZjokgdsKmBPYboZYaXJs/aBKK+lGhbNvLZyxXTIpfRdhJGx49/NMrwsz9EUEUpQtdUFNwoy7ocTonDnoM9Qzd7npMlTcd9Zuxh70otTgyCrQogtxxKmkjprtQBJGQ0ecIMKXaxw== Received: from BN1PR12CA0003.namprd12.prod.outlook.com (2603:10b6:408:e1::8) by DM6PR12MB4251.namprd12.prod.outlook.com (2603:10b6:5:21e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Wed, 25 Jan 2023 20:42:57 +0000 Received: from BN8NAM11FT021.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e1:cafe::20) by BN1PR12CA0003.outlook.office365.com (2603:10b6:408:e1::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21 via Frontend Transport; Wed, 25 Jan 2023 20:42:57 +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 BN8NAM11FT021.mail.protection.outlook.com (10.13.177.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.17 via Frontend Transport; Wed, 25 Jan 2023 20:42:56 +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.36; Wed, 25 Jan 2023 12:42:40 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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.36; Wed, 25 Jan 2023 12:42:40 -0800 Received: from moonraker.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Wed, 25 Jan 2023 12:42:37 -0800 From: Jon Hunter To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , "Krzysztof Kozlowski" , Thierry Reding CC: , , , Wayne Chang , Jon Hunter Subject: [PATCH V8 6/6] arm64: defconfig: Enable UCSI support Date: Wed, 25 Jan 2023 20:42:11 +0000 Message-ID: <20230125204211.63680-7-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230125204211.63680-1-jonathanh@nvidia.com> References: <20230125204211.63680-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT021:EE_|DM6PR12MB4251:EE_ X-MS-Office365-Filtering-Correlation-Id: ffee2512-cfdf-41bd-4dff-08daff14bd31 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lVGgq4R80UcBEWLSyHIYotP1gfcE2jitff65aN7YbItrNfnhaNtGQYsaJ9j3OZlUaxqXeA/FoODBGwDwkfWRxFjPsmLbMUhw8Uoq56vTM1EeqZMme4ALhWfLXb4MxMQTf5pMlH+xBUXCOj9ViJqtbpJc8+VtVilfcCgZnot8qgkOx+ApHsL31zg5C7WIA6J5KtGzlaAFZ7nW12iiqLQUtySMntIjbTg4oH2v+Ry/zeAbB4hUUcJnkkTiLWuuY4D1L3Q++oOsVkx7aDHgmYoP1L6MZJluRHEwYDHQrCAwU/KswtwJcbzuDxJcLrATo0a6lZIFG6rlrsc8VwVpONsgK82s5XOOQNtlKcIfG7McvKn4Ty0TaOpUdoW/7iTXtQu+AFxWrdc+YJVZNQJ0ZBAA7+1slVUvcLcZQAXNLuwK8IvdLBkGDUvBn5fTZ/kEjER8r7TeyMJ6grfrs3oMgNamrMLnL8+ZBEIo+1OmcjPRpWeC42lQQpiyGfCMbuweCHIPNKRLtJ0FJuZzwZMGygjSVD8ZkHbTsYFc8xt9PxD3v5G0k4XE2Zrrl+O7BQp2d3MBuqfIp6gG0nHNSqju1GILXBVrMqU2pA2XyaGZG4YsTyZ7tembuZ+6vW/qtRfCT2zpu/Qf+i4F5oqjHv9enh3gtkl8kINTgqa8Hzp2Hvn+Vbnfl4fBrF3JODAee24AkLNdYO9rS77VqjbR98zbHxSEtA== 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)(396003)(136003)(376002)(346002)(451199018)(36840700001)(40470700004)(46966006)(36860700001)(70586007)(4326008)(8676002)(54906003)(107886003)(110136005)(316002)(26005)(70206006)(41300700001)(336012)(2616005)(8936002)(356005)(1076003)(40480700001)(4744005)(82310400005)(5660300002)(40460700003)(426003)(2906002)(36756003)(478600001)(86362001)(6666004)(47076005)(82740400003)(83380400001)(7696005)(7636003)(186003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2023 20:42:56.2869 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ffee2512-cfdf-41bd-4dff-08daff14bd31 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: BN8NAM11FT021.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4251 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Enable the TYPEC UCSI support and the Cypress UCSI driver that is used on the NVIDIA Jetson platforms. Signed-off-by: Jon Hunter --- V8: no changes V7: Added in V7 arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 984553d55e17..d487d0e2b8e0 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -959,6 +959,8 @@ CONFIG_TYPEC_TCPCI=m CONFIG_TYPEC_FUSB302=m CONFIG_TYPEC_TPS6598X=m CONFIG_TYPEC_HD3SS3220=m +CONFIG_TYPEC_UCSI=m +CONFIG_UCSI_CCG=m CONFIG_MMC=y CONFIG_MMC_BLOCK_MINORS=32 CONFIG_MMC_ARMMMCI=y