From patchwork Thu Apr 28 18:16:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 567351 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 39955C433F5 for ; Thu, 28 Apr 2022 18:17:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244309AbiD1SUc (ORCPT ); Thu, 28 Apr 2022 14:20:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242119AbiD1SUc (ORCPT ); Thu, 28 Apr 2022 14:20:32 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2064.outbound.protection.outlook.com [40.107.22.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E32D5676A; Thu, 28 Apr 2022 11:17:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PNsFLc1TF20lqJ5VwkT/m/zLQ2JhyeNLqWKAVdDdaorhpcvV8IAcBBgl8HdoSBl9feTpIiuEjRVhgrTOAy7b8TyJXQ3DOGy58LHr6eciIRZQJ+o7chEwOlrPsonmE+wpahuSMwOK9j5bzitxr5WjEFpplrQpS7qnR8hVPa1/3KDlCZjDmVyZkMC0hTz4Ib/9Ze5fxT56QMmLnWefj22/YOe0rWry30Votyr9nYj52MC+xT9ktP/+/uxKWdj2Uo42tH+gVPv7RbOnJh0mXz0mNzjtw5Xv4ZMbvNMkTk8yMIQ6f4AFELUouhkzO4HsE/bGXpqR0s/tzEktSGbwRsTHxg== 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=FS95gPAqjyt4XnA7kDTfu380VyfZNlv5oh9OBBTB+U4=; b=JmLCy/aGw6iml3r4XEAM1rxBm20UPfCLyxLln3V0A8r7FMRSIr4GkopK93mPCo5vNkTiRME50WZTzgTuGlLccvGB5hdlU0z/mVCpYbSrzSrPhOmSWdjcEusN14bAk0bdXFVDKqrrCtC+aJCCk93KRxiyaGI9nIgG9w0IfYz5Ce28SDI9+W54P1Ztrpl5aUbzk+B/YO/DVqQRd2/ODpPOIas+3sj7MncuXt08ahgLt0iE6GxJ4y3dQGcMDzTSlfxiRvjjjzf8wF6or8fq9+BUBqDeyJa6VazAOxux/NB+gAJYNVdsbWUoYTpU+s9rlS3MZsYiCXst6DziGdmxFkycmQ== 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=FS95gPAqjyt4XnA7kDTfu380VyfZNlv5oh9OBBTB+U4=; b=lNB6zf8AyXf7k9iwWE8DClGi/EzRZ2l4XH5ncRzQf7IoLFNPgN8d9N2yuDXUTrR8DRlhywCUTuk/wa/8TbkbOdcFDr97zK7KOYxpM8UCk94hk4DUOu/xKerEW4YJqfn3x3wiBXgSEnX4H18pBFC0OXBKduWIWeRtKBYlVkcZi2ZrhBsBh2OQ319AE96YQmICyMVlcCXgjZWEYL7IYkbZpIJmkmWko4+xj3w83bvH/QViZU8xjBPG74DPMvz5oIOWZX5dbpfoxsriz8ALrgHlRvnmzScOo7XwFumuSYZ0ScWtLcy2vGcBAJVDgvF+xo2XBNCPAyYYBGdDH6DW7wx5sA== 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 AS8PR03MB6775.eurprd03.prod.outlook.com (2603:10a6:20b:29d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.14; Thu, 28 Apr 2022 18:17:13 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::a9d3:8abd:3f5e:a0c]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::a9d3:8abd:3f5e:a0c%5]) with mapi id 15.20.5206.013; Thu, 28 Apr 2022 18:17:13 +0000 From: Sean Anderson To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Li Yang , linux-kernel@vger.kernel.org, Srinivas Kandagatla , Rob Herring , Shawn Guo , Krzysztof Kozlowski , Michael Walle , Andrew Lunn , Sean Anderson Subject: [PATCH v3 0/9] nvmem: sfp: binding updates and additions Date: Thu, 28 Apr 2022 14:16:54 -0400 Message-Id: <20220428181703.2194171-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty X-ClientProxiedBy: BL1PR13CA0117.namprd13.prod.outlook.com (2603:10b6:208:2b9::32) 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: c2939103-0e71-4d6c-746d-08da294351b3 X-MS-TrafficTypeDiagnostic: AS8PR03MB6775: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: sqi0ciE7r8i/c8Po1ScqpfsH/8Q59IT3JT430Juv/ErBrd7ulztEZNCcFT1Ae8UAV5kEr6lTLZqAl0G4EWAiF6nivowu8BxkYc8orW0Sbky/stopkQAPxq0nJ719wPz39tJ6JTqdKM+WeTShGxwVLLiH6MVM6SO6nqqBrsVmZI70de4OhF8J8cxpZE7qmD3whW3QHulC5DZuuO1SgtF04JeYQ3mCwVbJO04lI6D3ZKFC0WyBKVDGj4sSrV3i8Ldfsq6SGx1sQ8sZWH3uKVKl2XjMEPh5fBqMxCERt+Aktq1mce3TLpQ4qsZ38e4oTAl0IrLgn8wkD0e13IDdUVo7FZlfRZHV6Y40Kk+H9nG7TZC8E5AmFRo5lsHvTm9z22VR9ceJQOdMX+vz9/X3VuSHIMWex7wBnjOKfiQZrbZCccsEXaM25DXugU1USJIuwJpaa/1ch3m/PuuqheQNENWoniNtdRCdZkUsNEhrq2YQRNzzrzwUSACvUWHNf28tiW611kC6ImxqZROh47GT0y1iDj073kbI5hmXZX0i6Jc6Ui7g9r42xkKCBxAP8CowP+wfYWm/ze+HiHfgyukUVKGv6bTXKV4Mm+ze8X0oOe7BSsDVTfSfCeXvtD+24Bzxw34Pcecxla2sE01fNOl52nDWONbZnskbRPzf8tLA/5ixKUaUABw0E4c3vZpBSOuI3MEI32wlIniMER0CKNuQVVsgI5j7tUVHEMgPAcxII1RIbvTSOnQ9ETv+m7EfkCq9Xg5P8NQe18lswemJ2S4XpQIe3n5RmnIYU22UC8/4UtVzcMg= 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)(966005)(5660300002)(8936002)(6486002)(86362001)(6666004)(2906002)(44832011)(1076003)(38350700002)(15650500001)(508600001)(7416002)(83380400001)(38100700002)(316002)(66946007)(186003)(66476007)(8676002)(66556008)(4326008)(36756003)(6506007)(54906003)(2616005)(107886003)(6512007)(26005)(52116002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS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p1e0i5OaFwcJOeKPahQ/XWG55SS97WrCwLh4BH5L5PhwhI8fgLidmnCY/DFgtLtrO65A3UqYpAQZvulRejrfevkFU9OBhpwr4zaKIXD6dVuvdLRXBh07WXyqU7/P6shyN34KzdaJOut1OYrlr0p5WsyFN7eaFuJsNlCQuqeDNwJKrK7AgOmGkbVEhiFekLFpO/vCf6jmDU/3+wUwabOm3YM4srr0o40juNAV5zxmfjJJ4fZicRU8yv5Nh6qy2Fc5cHq9HePlr79qOmpjzJvaI7dj17JbI0MG5WgZmUTDgeQLSBBgw+DxueAS7Dg5nqbVASnb/pGauk4ZNtytwHTgSZ6pcgfb9gQMbfJMQ+9FwvtN9T1jn1ndsIdqfmHWeOZzIKTzv+npy4Og5U7KL4RyL1C0SFXPPhtppO+zCi37pyEQcRUaANEYxb85ELmGDIWm48u+DL0HjQp3LR318oL0Y7imAHobhQjosbSdMXjxCATIiazainnlS6y1CIo979BUilHGSudGIXiIxl5p5+2ylnDHVjHE5YO/masZio+ioQCSfqfeUbBcy2CpZVuzuCvxynxh8dGCXoRXL7YRP7kJb3yGyIzchYkZpFCpVCmem7FNrg2nZlKKV3DqcVnIVK0/7l8yJBmfJ00Y7ji0qpKuORUkO0UG+EB2TCCxKJ60vMEbkHLL7Af+f04= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2939103-0e71-4d6c-746d-08da294351b3 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2022 18:17:13.7859 (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: ua4j2u7I/G1/n+t+9v2gZs3utoX2KTAtKoTTMRPGpZIczDP/2oiMeJbQNQrYjKFn1ogd40bk5W7bfB2d+M8DYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB6775 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds several properties to the Layerscape Security Fuse Processor (SFP) necessary for writing. Although the Linux driver does not use these bindings, I plan to use them in U-Boot [1]. It also adds a new compatibles for Trust Architecture (TA) 2.1 devices. In addition, it also adds an SFP binding for all TA 2.1 and 3.0 devices. I would like to get this series merged for 5.18. As noted in patch 2, making the clock property mandatory is not an ABI break, but if this is not applied then it would become an ABI break. The absolute minimum patches to apply for this would be patches 2 and 5. The rest (including the regmap changes) could be deferred if necessary. [1] https://lore.kernel.org/u-boot/7c8e206a-cd40-2a77-6282-7f4bead2b13a@seco.com/T/#m591f8425b6f096ab3d54e6f7bd258e41cfa4c43b Changes in v3: - Update commit message to note that this binding has not yet been present in a relase, so it is OK to make otherwise breaking changes. Changes in v2: - Mention "regulator" in the description for ta-prog-sfp-supply - Convert sfp driver to use regmap - Fix various typos in commit messages Sean Anderson (9): dt-bindings: nvmem: sfp: Fix typo dt-bindings: nvmem: sfp: Add clock properties dt-bindings: nvmem: sfp: Add TA_PROG_SFP supply dt-bindings: nvmem: sfp: Add compatible binding for TA 2.1 SFPs arm64: dts: ls1028a: Update SFP binding to include clock ARM: dts: layerscape: Add SFP binding for TA 2.1 devices ARM: dts: Add SFP binding for TA 3.0 devices nvmem: sfp: Use regmap nvmem: sfp: Add support for TA 2.1 devices .../bindings/nvmem/fsl,layerscape-sfp.yaml | 30 ++++++++++++++-- arch/arm/boot/dts/ls1021a.dtsi | 7 ++++ .../arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 8 +++++ .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 5 ++- .../arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 8 +++++ .../arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 8 +++++ .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 8 +++++ .../arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 8 +++++ .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 8 +++++ drivers/nvmem/Kconfig | 1 + drivers/nvmem/layerscape-sfp.c | 36 ++++++++++++++----- 11 files changed, 115 insertions(+), 12 deletions(-)