From patchwork Fri Apr 22 14:51:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 12823598 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 5C2CBC433EF for ; Fri, 22 Apr 2022 14:53:33 +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: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:In-Reply-To:References: List-Owner; bh=whLMHtCBlwkMZLrsKPuPL6smSjRs1J5d9zp6XjrBBrs=; b=OdI47LSkN6VWqO aN84w1BxpEX6oBBqoLdgVTF7KWGLlAlICRCywH+SmcVWfQbbnnSpObpDVGfmmUz60jUpA1eedbZV8 4xHVG0J/8v8DNIVjtgd+o8DNG4x2OnV0cvVsJ0evL9/az+b/l0b7Ncq0/ILgFY0FU6dfAI/1YdC75 2COsucucEOjT72K7DBxSF06v/6rKnmSq0XQ7F21q0yOxXV2tqC5oL+G7OqJifF0dAQs6nM/EFnsfn C4xwV/kTjjiD3lU6tQ83oxLQPvlAmCimqbZ7h+19Vjx+MJwXEoOGOXJ54C16gosaQFR/pbfshNzWM OUZhc2eIvmjjUILmZ/rQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhuds-000uSc-Fg; Fri, 22 Apr 2022 14:52:17 +0000 Received: from mail-ve1eur01on061c.outbound.protection.outlook.com ([2a01:111:f400:fe1f::61c] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhudo-000uO3-D8 for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 14:52:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ld5cJjSp38MF2IY8yQz1wAw4lLFUl8fK2Js+a+wPtc64Up/Fbm/70zcomHMZTwxX4GvG8If5zm2SfJpHRXbsBRd+U5xlf6KqBYFgSMjMJ/FfQ/FiHHhlMn+X53uzf89JJdO8FiOrLQQwkBGCwMXyooBbA8ZGoXvxEKE76gHJ40cXot+MGJY393WgAPxjX/UEB4TwrONbVLeCH04RS81c+ci+Hh6UejWIaFCxN1IbeUTIKtah/UH40SkPbIi1GnPkPw15OolGwaEyM7hI1QLzTFjriyDfryBZ4skSpFaTYqDGEX3d6JnjMCCkKqbc4PJfaVxx48pA0H2XRzoeK0RxbQ== 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=Z5acmMh8E/k9GIyQ/ip6zzof7eVVQ/fSIPeYsb5C6vY=; b=XeSDMyf6uhd/7BmNNt6nN65G2OJZN0EA8WpZd9fQzn1BUX9QFQM9SVMDhJvCr/3b4AGjWK87MUpEIm+5wVUkTWJJGhOnZ2c+iUxOUJmvIpV9McdLbS4hAmVvICdHln8qS0nq7VnCVgUReXsxROTZgGoZu08LS4DuqAvjHo0zNIwhMbN3sAR/3+ZUmByMW52eqJFPqGjKsFn2FydmCzj2KFFok3ED77aMFoZZLMXNrJz2CRPo6ZiJ/ydDO2d/Nyv61qCOgoRZwiVno/ZYAJaAld4QC+XBsNQe1zungK1wYEVmOzwi8hmiOzZqgVJTaDy/K/xllibNMG1xppvWZYn/ig== 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=Z5acmMh8E/k9GIyQ/ip6zzof7eVVQ/fSIPeYsb5C6vY=; b=p9f1rdkIavN/xToq1O8XQpX4PKFNxoWdRp97RQufG7LaZRs72ITTrFxxwW382+T2sZ/S5rmamKIxH8i2x5jILo7KrKJp3hsLBypxqDn3+yyCCSiwIGzLePwJWdtcBrOM5cggGi38nujtJtnAzjSicYmwxZ092WgfX9vDrCRoBtP2BqLvS6DApxH/fV3lgVywNI6VcOa+FxuYOIewuxvYCr0T+qm7A5vuovEukYPYnXvBMi/FmP4kBIE10uN3pwxoa8NSKRUwFs6TfpkOb1YJm7F6a/gZXc60VDRs0AkcxYU4skmU8KHgp7Vq3US60uHjaM6a/J1++/RAYmSm0Sr9Xg== 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 DB6PR0302MB2792.eurprd03.prod.outlook.com (2603:10a6:4:af::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Fri, 22 Apr 2022 14:51:58 +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; Fri, 22 Apr 2022 14:51:58 +0000 From: Sean Anderson To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Andrew Lunn , Rob Herring , Shawn Guo , linux-kernel@vger.kernel.org, Srinivas Kandagatla , Krzysztof Kozlowski , Li Yang , Michael Walle , Sean Anderson Subject: [PATCH v2 0/9] nvmem: sfp: binding updates and additions Date: Fri, 22 Apr 2022 10:51:38 -0400 Message-Id: <20220422145147.2210587-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty X-ClientProxiedBy: BL1PR13CA0065.namprd13.prod.outlook.com (2603:10b6:208:2b8::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: fb0591c1-b634-4445-587e-08da246fa6c7 X-MS-TrafficTypeDiagnostic: DB6PR0302MB2792: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: dcwSF57eNxg3rBWCE1Nh0K9+OruggYDmal9CELw/y3233p3yjuAG8fyRYMHg+IBDkJtwVKPGV/bNR7c2n5hfx5AoH5EkRBGCXkIAeqhszT7yLPB/38N4vzNr8NarxLpwPgzNwmgiw7xCdmPpCLSZY6FJV3uR3otOBXPojpTg0U32pzLCRO4B8CKCB7jZalSWwjKRsootVPLH8tww2AlaM3oiuvWW2K+aP/NlIr3B5E1BnIIBz6iVkByp94bBcspWa1r+wqY3E+Vxo8rQLwoq9U+TatGVmkhCi5o/GdeRhJsc6dzxjEAnvvGqxhO7lRWahQ415xd27dSkojivDw0oU+yk2OjQ9/af8dAZ241nEqmBIBMlDsZwKtg8vz2uZSgWMMEw6eLuKOHgZnyLhqAKb1r5e40etjLMFhRpU02NiRMCjmR+rH8zZ6q4b1u5VwSHlTKlr//fiAhSs8QjKDj5OIRgitjzdRNH8ooJdBofUNZlKaV3nf503Cf4siuSTnADZuX8f5gD19RAfPprw1n5nypAaiMji2LCer4va3a6q2WOEIORVbsYIKLv/JRkTi/zrBMPBulAbPpGQzN8ACZrJ4mv8A4zuoLBFr8xlGvH7ty+GmaAz5TjpmwT+Tb4swLO7Ac0nIomz0/6cG8lGhqrrLvACls0rYZofFF/Shp/BnqCEYxjTSSkkasbG1B0d0w/67u7BdUeHgDwaFNFPXx3w2dsAZqNw2uxhJeir3OdwMZvwRMOngZ25oxNnJst+Im3mIc8ej1qX1ZcEsgGE5kThmVMRjUQ9dam0N/eUDjC9N8= 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)(38350700002)(36756003)(966005)(6486002)(508600001)(186003)(38100700002)(52116002)(83380400001)(8676002)(4326008)(66556008)(66946007)(66476007)(6512007)(86362001)(6506007)(316002)(2616005)(8936002)(26005)(1076003)(107886003)(15650500001)(54906003)(44832011)(7416002)(6666004)(5660300002)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0N8XtmvG5brIvCrpT1aS2PsKrbztRyXr+N+33utao4M5uQ5YsLp5O/fYZr2gv3kEwocSQ3tc1U09flkaGRlczbXn+q22S5fupP/eZ+ChK8JfjRdwOv9KAYHEOlEr6OPDR9w4vvdcpzvuQ60/dNBQRIkqie5y8imeOxP4le4brYkfQkvtrbQ2xr3d7wPquaLuQcZrnEInkDp3tmQeG+9JO3BoH9sFx+JjwWLvf048ezR5gVHi5qbUeoesHi65Soq7MnpDo1pkMHga87FWqMfXlZsaWynxze77u94NYePv56QMba8CcSigYoOu8VjRumEhZoAhjFFJtDNinMC0kmYMgSIMnEYLqI1EbciLXjiviVGiszvQIS7tgBMctsfogq1hxwZHUoHlZJWJRjKpY4fBDackbw7NNWC1udm3djFzugvmdm/UY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h0F9mXAZ6Tyz0Iy3fRYerH9x/Zyzb98i5nL//MPtGyDeqDHiljylwBmyhINa7ydf7ntsCU2r1k/ovdljfc9wvG8hDbuN5yMXyewduPmql/gVdDUBwgP9pXSe2s2q4ssQgKPW72kHZZn8WH14dpR/yqwy0JmqF0kJVlgtaJusUr+NmYtmU7kTHksrjxXHa8SrKCetqRIvjpqciNwb2m6mPjv1vP1XHEVs41OnMmybnqBdzzKSa3YJLR1Sw0cULjVDl4Y4qrxDqcWRxM30= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb0591c1-b634-4445-587e-08da246fa6c7 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 14:51:58.6273 (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: psDzt+jQ+7/ZK+EAFcBjHx1bB0SYmK7rDPGnziFCGmUsshD/z548Pttfr5jPfmKo1EsmNzp5T5bPLrMRWHWgMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0302MB2792 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220422_075212_473637_668E59C8 X-CRM114-Status: GOOD ( 10.90 ) 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 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. [1] https://lore.kernel.org/u-boot/7c8e206a-cd40-2a77-6282-7f4bead2b13a@seco.com/T/#m591f8425b6f096ab3d54e6f7bd258e41cfa4c43b 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(-)