From patchwork Thu Apr 21 17:56:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 12822154 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7856AC433F5 for ; Thu, 21 Apr 2022 18:01:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=urmf+XSeXCWaTHltBAJnrSg5Ho8mAl8B1IZyPUjZjZY=; b=QtvFwzPtjXVZoQ pjNjreRu6um+PBsn7UxynKOaVtYDzL41bed0IyYAb9sVa3PoxwH209978DQstJe7E9SWSQ7RAkg/U 9vc/GtFbzDDs7IHf7RXASrXVwX3L29uiJY51F+hG8n9T5j0V4tz15umfx73aniSJSFZENDwHwDDRa L9ASkKE0I9HnbbIlOvifufyAC+Jeo2K2PLbyVqyYvPKm2D6MjTJOca3q7+uK9WDhybC+b01Z7lD6K FnHas2/tdKFjFOs2MWhgBh1qcjARGB8gLezXzDH5+PILKnI9+L8ylehYE7AT8bgORZsJGAbc1rxZK khB9l58buP3RmxiaGByA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhb5k-00EXPg-QH; Thu, 21 Apr 2022 17:59:45 +0000 Received: from mail-db8eur05on20607.outbound.protection.outlook.com ([2a01:111:f400:7e1a::607] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhb3X-00EWWi-9k for linux-arm-kernel@lists.infradead.org; Thu, 21 Apr 2022 17:57:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kV/9aouH8aLKfV12Q+YdI5+4Ev+IewhyXgDm7NI+dorhD/PxHMJC/+/M2LZZ2+HFqXYWpWzt6YseF0xuv7ZG2x4tWS3H4HpNnWISYxS4OnQh21TJm9vFlMU8N8PIFc1UfZO8nIaNKxW6me7ZymHIyT/GOlv7hcOzpxneKsPIBv5GkjyamE/OgM1r57LuCGioJ/9C8FaRUyLqTTMm3KiwepaCJPKQ3QDEH24R1E/L+ir+sS8N9gXPNuWYkvTO+D12Az8pYEAW3B60de58Dl2lvep0QrwqjkshvZzrTAQUlqUyfSE2VzXOlB0gR3B4XMAgv2F8S5EzqkEIqMUOSQwPqQ== 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=FWXg1szD/VfRg7AQHtNTsFToPwu23YRFqbagXQuDDyc=; b=nasCnB9eOcNIEm2HOaDKdP+JuUkY9cFdaeyqqOltIGKWBvxwu/Qz8G289Nvpy02IDPc3Gb1nRggyAAp1NqvQIED1lAmOQcy45SraMMp0JXkxzE6hKtUvEnOIGqS3TtsERVzsFNJGAyU6plHWOwvtsKNy0wtR2QUsri1MPryUbM+upMgX5nhZ1qg4eR5kxvzvbIWIGa0P+ql38OuEcyxHZBccxuJoI5Wclw42m1Dd03FcyPDQ/It76a3HGW+KtNbDSw5Z7I4AQLIzq4UET3OJ5bH2M7maw+pKtRqYt4qC2D/tbs28dYZ8JUq7PiY5ackB7HgHHBAHrPBerKa6gRlX9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FWXg1szD/VfRg7AQHtNTsFToPwu23YRFqbagXQuDDyc=; b=R/jOI09k4DfLWYckoKAjoU/dG6Nck0n31p4yUU+Nz+hXH/eJB/uoe5f/npIOA0caA6Tbt/+iKjASMOsg2A00fh+hfhVLgvM0Rneq6a16h2J5LYMwSz71RIERDUM48fGS8Zt2F1h+CxsSSQv14y6encv1bc7uLayKxYuUGP0PUNjDphxkej1/SS7f5VWntxXgb0kgarV7ojtTGGmW0TILKlU/NSvSx92flQ2qnQvzK7uIomEAejILAeXiY6Zjxz4/S/Q+nqxPesnYzj52meA6WAdJBuOA6F79Bi81p1yzBHCG8VOy+5OpKraAp8frgbAiJ3w9Y0098LlEtB9DlayqAA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by AS8PR03MB8101.eurprd03.prod.outlook.com (2603:10a6:20b:444::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Thu, 21 Apr 2022 17:57:21 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::714d:2b6:a995:51bd]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::714d:2b6:a995:51bd%4]) with mapi id 15.20.5186.015; Thu, 21 Apr 2022 17:57:21 +0000 From: Sean Anderson To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Shawn Guo , Rob Herring , Michael Walle , Krzysztof Kozlowski , Li Yang , linux-kernel@vger.kernel.org, Srinivas Kandagatla , Sean Anderson Subject: [PATCH 8/8] nvmem: sfp: Add support for TA 2.1 devices Date: Thu, 21 Apr 2022 13:56:57 -0400 Message-Id: <20220421175657.1259024-9-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20220421175657.1259024-1-sean.anderson@seco.com> References: <20220421175657.1259024-1-sean.anderson@seco.com> X-ClientProxiedBy: BLAPR03CA0125.namprd03.prod.outlook.com (2603:10b6:208:32e::10) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 95606dd1-c142-4117-decd-08da23c06231 X-MS-TrafficTypeDiagnostic: AS8PR03MB8101:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xrmwTKdNGse2dPlwAlNcjgxcCZokbacQDmEuNL7gXOYquUiGAbUEJqpq6OTdW5DAnuN1Od2Lb7Of+1Q3wFT7m4vU1c+PrLwbfc5hafJ63cmHUQ4Dgh1oclozNoxjWtx0y8T+A1Fps/20GA3rhncxjoDl4Gr/8Fs32SNvwZ14Kx1ROzNNN49JUNhxb8VDlA0URtDQ0RMyTz9rInTJLyqR4Q5VxzMXa6Z92r5uE3Qq9404XTiX5RlHSlfKeReiDr4ugf0p5/Mxy71t+sbBu3K9GzUF7wk8Mg6q6suiTbNSBgr8TJVRG3WCK5NscqoEzT+JcsxDhqb2e8YkrKLHfVH8GqJ090xbkpte+2fLYIk1ih5LUTgxXm2vRJiYBQSg5Nv1RLILnLJzFKrAbJaT4Md0ZuDNZLKrCdA2OlYOlNqisbAonOX9kTiiznbxiBfk2zqOxuGjvHbSIuEaBI+Qov/GVYm/x2+FyzOgT0Z7EnNxesFN60b3yjm7Xy1NQhmK+mHAnCaAklyhSWJ/0M8LhnAxp59EkerGKV8XNaaIAwEl0KtWz+F9/jddPhcxVFagvcVnWzjPX253mxNQ9jKxWxfz8OtckiPWfnsN4gE+aSWYZVg5Oc0WKGOgWpEawxptB0vhQJHdVd8FQEkdQXeW8ZHsCgvai4zzb6NmBs8xf6lorjxQ4SgS+Qix0ZcS8yVeqvMRXYCrCyp7ZTIH64u+gKSZFg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR03MB4972.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6506007)(52116002)(86362001)(6512007)(2616005)(4744005)(5660300002)(44832011)(6666004)(2906002)(26005)(1076003)(107886003)(8936002)(54906003)(186003)(38100700002)(38350700002)(508600001)(36756003)(6486002)(316002)(8676002)(4326008)(66476007)(66946007)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dX6scfOVDnZEqpemRKGZhrr0DD0KiD5bZctRi0+u2C//ClIJYEQjjwPF8uV7edB3V8QKThOysDZTQJSOsqSMr8upsfeWZyDfSp2HKnH5mHwB0GqMx4Rflf7NHMt+KlLfnPqa3067DzxZFegiVFHCS6nU1IIKjFBJ/y24tGs0RLe3CSoJRnJeZQTi7jlwJ5toa+3RkO+ab6bJCYYUXewlFO48V8SFhH7mwCTBT7iRF2fx657gJrt3SE+CayRuCO52sHJFzXIB+XjFBKZXVkO9W2Pk3Lk+wsDUzi/d4ioqM6XzK6SZmiqaiZikCv7Iu7F/VkyUuLAsOpQOos/tnfelR1a2VaI7hRVwBxgZXlE7pHI1r1b6jciDjC4M6v3QqW95f+e4BedHYhRBvty9/ToYOOlw2skKuPpQXL87RuO7LK9Qp4drKlEWIqTO3lS7P58YVgAsorwcdgZuKw0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soTyTkNL826NIXShRKxLDobqjBxCYEeYAcUsxpntjf2CKG4hDqd+zC5OyxmneZWIxGbSbtRSasfHGuk+PpmycBClVt85nxIHX9bc0+BmSLX21w8EQzCh8au9qf82/5CVlJGscwZWldulfJX9VVNoLzVoLy4dzwFIfg6YsEPFs9aQroL91er2N1ouUJom9fqy/7iMR6N0mWkR2TRJpWGnw4MZiupx5qAUVQ2Q= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95606dd1-c142-4117-decd-08da23c06231 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2022 17:57:21.6506 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7SF8VAJFLEUqZcIkV7OE2rNgQcED15rMikTjvDw0FjX7OLKYVgH9E7Sz2z5E76v8sSW9Os1jUaf8+WU+1NYKpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB8101 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220421_105727_363054_1C2C5CFC X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds support for Trust Architecture (TA) 2.1 devices to the SFP driver. There are few differences between TA 2.1 and TA 3.0, especially for read-only support, so just re-use the existing data. Signed-off-by: Sean Anderson --- drivers/nvmem/layerscape-sfp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/layerscape-sfp.c b/drivers/nvmem/layerscape-sfp.c index e591c1511e33..6336be5d8726 100644 --- a/drivers/nvmem/layerscape-sfp.c +++ b/drivers/nvmem/layerscape-sfp.c @@ -70,6 +70,7 @@ static const struct layerscape_sfp_data ls1028a_data = { }; static const struct of_device_id layerscape_sfp_dt_ids[] = { + { .compatible = "fsl,ls1021a-sfp", .data = &ls1028a_data }, { .compatible = "fsl,ls1028a-sfp", .data = &ls1028a_data }, {}, };