From patchwork Tue Aug 10 07:35:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 495390 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F46AC432BE for ; Tue, 10 Aug 2021 07:35:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E738061051 for ; Tue, 10 Aug 2021 07:35:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233772AbhHJHfu (ORCPT ); Tue, 10 Aug 2021 03:35:50 -0400 Received: from mail-eopbgr70080.outbound.protection.outlook.com ([40.107.7.80]:25934 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233697AbhHJHfu (ORCPT ); Tue, 10 Aug 2021 03:35:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LQ/Iciaulr10HSTmFe6w51RQpPCTIJcKplraJKOXGsKWfPxJrZDr/T/P9gVTzQ8OAjPcLx+hK3DuDuIOOScoRXMa+QFUfpESrhh1TYSgV1qbNghtuc14/XT/BrZNZRSkoWb9gfDyML5NN4utXX1gT3Nor1Tn7YQPy+buGacrXzIYIbiitVuP4rKLHttZZ37uSNLW8CDerAIqSyVd343jAvHnl7Ypyf7Zmj18c6E0mLQDPdrecszG+SLKTMig4aHWQiFBcg/Kjh5kr0Wh1tJfxzwsPqWy+bfV3HsZAG9gAxfasgrnfYn4goUnMDeT2+PywGWHo1Etc7N5h4i/ArhOuw== 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-SenderADCheck; bh=PHxwMUMHEUcM8OGAihjIwC3g5VXogttyWNMD9d07uf0=; b=dYydD2OIv8kDDuBvZLNi6fJVaOa6wXVv7+VuSNHk/pzcVe22S6ykC39Yiik9N7IGOZcU/0ri36kF4Ry+dt2xdl3BAGRmL9CsKPw0Se0C75FhaGNB45hfVWg6D1rkViO6owxFOo7zNuRnU59SzBS3nnUIOEOimX9Z88xSx/qNXiqfyLKIDU97ADZSwq/lLrVWR13GRy3NW3xnjUNxhn3G2FIowWE+ZTnKbSQjvF3xC6I6Gr6zUAVznXoFdHYlOIlgtHCysaGBj68589/t6UDhmIqKnwr45BCU+k+TPymmSnqZLAVgHqp5CNwT6C1zcPJ3Fed3/LRC0Gf7kyUHqCHWUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PHxwMUMHEUcM8OGAihjIwC3g5VXogttyWNMD9d07uf0=; b=ZzzJHldotlaZBaHBCy6/yJdHn5o/iV6ySxzkthbZNIIRkdJwzNQiH6cFosL8Ng+nIGvDhcFRnXO34v59g21lE84AgRZqXeS3KVSI1RcD/mKtK4nty0+8BQWtJTT2KwIhHJb8HSLE0q2lF98OprvXmeJjzLF6PXKp0Eq2cw/2n/A= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB9PR04MB8430.eurprd04.prod.outlook.com (2603:10a6:10:24f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14; Tue, 10 Aug 2021 07:35:25 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::6969:eadc:6001:c0d]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::6969:eadc:6001:c0d%6]) with mapi id 15.20.4394.023; Tue, 10 Aug 2021 07:35:24 +0000 From: Joakim Zhang To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, shawnguo@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V1 1/4] bindings: nvmem: introduce "reverse-data" property Date: Tue, 10 Aug 2021 15:35:07 +0800 Message-Id: <20210810073510.18218-2-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210810073510.18218-1-qiangqing.zhang@nxp.com> References: <20210810073510.18218-1-qiangqing.zhang@nxp.com> X-ClientProxiedBy: SG2PR03CA0098.apcprd03.prod.outlook.com (2603:1096:4:7c::26) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SG2PR03CA0098.apcprd03.prod.outlook.com (2603:1096:4:7c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.5 via Frontend Transport; Tue, 10 Aug 2021 07:35:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ecb3dc65-0dab-4a5b-d1fa-08d95bd16aa2 X-MS-TrafficTypeDiagnostic: DB9PR04MB8430: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HZCJTTxunza9dFAHJsc5jDZAZkAJhXMoZjocdicGUUOZkw3Uj+x0q6WR7CEtL1cVLPiYTMG+SGXNDc69Tk3ILcf561ja7xJJCRJKvXpTT7gi0hjCgKY0CB5naHcLhnkIqXtlW2NZgSgOw5B46ThK/enMXwFweiYfV3o1IA9+XB0bR9ru/3S3hsLqw5kPpNvwcF+fjU/5m357Wgv7a/DRMJ8Tcffhaqp9K7+ndLQ6qoHNBImOXMAYx+4pP5WumfVV1PPT28RCh6cXZA1NA6D/9ZqPNHbbVonMLacLcgoGuZitDH1MzJCY/estPLQvnaIuoCBFMh6ykD3sucklWkgLzWbvTcb30NUdMfRw3hcG7tV+6gARJYF1YIhRMMkPtloJG7AA8ghvCXirG428EeRnHR3uhM4hrLVbhROtSBJEFUmC14QpvmvKfUX+T9Jl4S4tubv/0Lj2rofh/vHeoo1EwknGHGlzrMMTNQlqMz2vUT1iPKyGTSAl7eF/0gTkYqQJhcDpRF6RNsujUfFmr9yEOJSY5P/55+telrR4zxPywiiCcCJEFP/A+pgWFPpVjGgtvEw+vtQ7ic/qaHHJKMhHvV5RJBxuJoNJh8qr9hatguX9YGNGw4fI5sHkciZXPciNNeR6KNAfAxnDZXGzWD7gdg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(52116002)(316002)(6666004)(956004)(2616005)(508600001)(2906002)(86362001)(4326008)(66476007)(66556008)(66946007)(36756003)(6486002)(6506007)(186003)(26005)(8936002)(6512007)(8676002)(1076003)(5660300002)(4744005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hxSfTOY64ypmFY1KYBHztBsJ6n9ztmaOg4umFa7NxLoXZmwBtPIU1mnQqwTMRVVH6pis0Kh8TtyhZt6IaE7ctQSeyM+BH2XovTzs4DnO0Vuj0ApfsHspPMZSmcDAKLU4Lw589zXYq53mH9juzFWTC9eFDobENZt7btAKTp0Beq2Ybnf0+zc/z1gOt+DqzypIGwbHGLMJFIZf3rJ+k54OK06PExE5jd/wp9kufq8R6M5W/jQJRyWhyVCT5Ia8NY89BKQ6jJnluug+X4PDC5jLw/KpueYbGmnN4Tu++1qpqjZ26KOjQ2RLXOvWtENGWUnjiSQ1qDaD6o0v+vm5GuhEZigDwVAvUsA9gFuxp7mJUpGWx4ARUWMI51Y9fI7MFFEGYZJ6nG5WgczH48ezfGdtw+1PjJCB+Rq71Ct6ZcQ9jO6WdA3RdvgsupGFkWw01ElbVJfWZt3chroLiVlT92Tk3kcK8wQLH6igJP0sGACNiKxzyH8wOAvuXGDpFSTA94IOUez+dE1CTHYVoIeU2XaE5GvNIGrdE1kpIVHNPztPoIf2BTjiBUTCArw4+qayTF1jf7zezFGEwrmOQnbhFDATUCmvHhJx4Kjv6GKxeoYmixtrUUpkXm2CNalsXT3TmDOFMbiQZwsytmBqyAFw04stSTIzW+6Dgd44DGytIzF+4r7QA4MBc6IL6+8ewF3tAkzEOOchUC5rMVTyUnpfmrBaRQYS42Fz6TKnl1HdkowL7aBTSokgWc3qi4Rso+WUHB4swBhNYlLGDOlWX/0Ta0VPbotpRyQ3O4Zx9UfP6g11QAF1iYy5dzUApNOo4Lo03hB4RrZ4iAoYTHrcsqOKY80pC6ZhODQiGwB6QQyb8Bho2OPSrH4tcQSj+WTyl+ywItDkEvAzZAFBco3DiifYrZM0Q2tFZW4wxBK+Z7UQHNq0DLGgfXIPLJKvxl+OK9lkiZb2J6J4H4C5xMbTwVio82kRt7YSj/WJ88EdsEtakr3GK47DWiV5o5Hu9jum71oc5mkmmmD/5WCCsGUv6ukMkRK+rsGampwrP5DAdeNRKGH6L5p8imlQuA0WZRVyRBodbQuj+dXx79Bp+Fu8d4nl+oR77Ul0Gqm+xZEOrBvdo32WtmboVVVGcqsR31gYESjIr5Jc38A4xPaZ5AG/0YXOgz9w8lwbUJ1O7mn1+grxi8Yr7KSW5YQVq6zIO3xULhRCYVyK/PgDCG0C2IRafd8Zbs8ChARBBgzriQ+yBvuCKNK/wM4OZO5+4w+Da/3fkIfgSccCnWC6n1byC9zwrnOXpNwwl0mY+M0MewMyg+HtlLmRWa/N8rpfUNgWsOS1woKMOd/P X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecb3dc65-0dab-4a5b-d1fa-08d95bd16aa2 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2021 07:35:24.7970 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: orLuM8yC30AGkojuaxCBWC01kKJ/HV2haO4H0fPGIFo+FztPX/edQ7houEjHZ3N7se+NYkPPmuhoKQ/DhNvzfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8430 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Introduce "reverse-data" property for nvmem provider to reverse buffer. Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/nvmem/nvmem.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicetree/bindings/nvmem/nvmem.yaml index b8dc3d2b6e92..bc745083fc64 100644 --- a/Documentation/devicetree/bindings/nvmem/nvmem.yaml +++ b/Documentation/devicetree/bindings/nvmem/nvmem.yaml @@ -61,6 +61,11 @@ patternProperties: description: Size in bit within the address range specified by reg. + reverse-data: + $ref: /schemas/types.yaml#/definitions/flag + description: + Reverse the data that read from the storage device. + required: - reg From patchwork Tue Aug 10 07:35:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 495389 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2ADBC4320A for ; Tue, 10 Aug 2021 07:35:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9BBD761051 for ; Tue, 10 Aug 2021 07:35:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234153AbhHJHfy (ORCPT ); Tue, 10 Aug 2021 03:35:54 -0400 Received: from mail-eopbgr30046.outbound.protection.outlook.com ([40.107.3.46]:49280 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234183AbhHJHfx (ORCPT ); Tue, 10 Aug 2021 03:35:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZHD0k8JCzrvvVmOcWwZCoJPPKsVstJZV4TPfhTQEDmMm0qvyyn+85TjxbkeaJKrLtdBIiQrV2gjdYur4IkzMg5QInpaMZ5Imdw2OhqaJ8B6/vibmdE4NjpiDAhga89j1Dxeu4KHkO+cZDd8lmas8zAl620qdbZ3kD7S0qcO347kGWofj5BnkmyH4UcX8K7ktJPpupwpHyoL2GYMGLdrWhpdHDIDehZYfsUOWxfWIDvCWMb66whuOAcqDxjLoLKYHjdqBcx9B67Us0aRGggoyYvj/lMkP1xW5vOVOK1v+EIcfxn5cZuvSisUyRC3I+8+KdcQ6RzDbZcpZGea0QYuH6w== 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-SenderADCheck; bh=ekOF1fTA+RKtFkq7oPXK4G0HX0JUkfgVPNb83ampwvA=; b=nr/mlsf6rL1yz8Eg+cuGwTmnt2Tk67bgpEu0Zw6FZL3DrO2Dl7hGeiqZVOt7mrPM9572cMvxyzGS0PHTliQYQVmh0vFeKTQqMbocPx82A2kSwmmx2YfzOj/bmYbMzwMRGVNrb1LSYV3Z4eyYQ5wQeY4UmEc4m8nZa6h8MlhjdfUj5LS36NifxQd6GnCQUOY7iXJmXolloYKEUQtRtqNPZHQtfI1lb4aTDfJKqqb78CLWvEkBATK+mxQrjC3WNMKdZfjlevtGYt/Kyvgtg+RHOBRj55zxVE8Cr/U6rkKQbWcwqv3sCxI6f4hiOlopWuN1c6Kc4AAqwGOT1uv9BeAPgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ekOF1fTA+RKtFkq7oPXK4G0HX0JUkfgVPNb83ampwvA=; b=dBduwRHdvJKn1j78tVFplhiHCkkyRUS7AX9oKIO7KBCRE9C305L4tUiZW+3W2n8JZyQPNEK9ivSYQj8ZpgA/uWJZZwtOOQ/iMd7NRHYihqIvUTQFF7f2+NKFGPTJfvJKRl/SAlRG21lIWegzrw++SjqRIHt/6S0RbzkT+suEIUQ= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB8PR04MB6793.eurprd04.prod.outlook.com (2603:10a6:10:11a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.19; Tue, 10 Aug 2021 07:35:27 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::6969:eadc:6001:c0d]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::6969:eadc:6001:c0d%6]) with mapi id 15.20.4394.023; Tue, 10 Aug 2021 07:35:27 +0000 From: Joakim Zhang To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, shawnguo@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V1 2/4] nvmem: core: introduce "reverse-data" property to reverse buffer Date: Tue, 10 Aug 2021 15:35:08 +0800 Message-Id: <20210810073510.18218-3-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210810073510.18218-1-qiangqing.zhang@nxp.com> References: <20210810073510.18218-1-qiangqing.zhang@nxp.com> X-ClientProxiedBy: SG2PR03CA0098.apcprd03.prod.outlook.com (2603:1096:4:7c::26) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SG2PR03CA0098.apcprd03.prod.outlook.com (2603:1096:4:7c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.5 via Frontend Transport; Tue, 10 Aug 2021 07:35:25 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 01408913-deb5-43ed-632c-08d95bd16c5b X-MS-TrafficTypeDiagnostic: DB8PR04MB6793: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3631; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 09EbP0uzKw2UYhAlz6p06PKnjk/Op8evWhP6e9ONXZg0WU9rgCeAaaJUOt89zJVV32i+0gQuWrBvoDluPnIPC/7NZrnCvV7XvkHrwg7z3HN6dbO6Z9Ly+y+HQ4rCLpHBobnu+ejXPw+ygLtiPM4Xa7HFUNwNpYQou+OtjUrdhwNYRShba5PrCa7f/yugDm9P9oUFCew4p7AdUAjHxrwn/PqKA064jn/Ky8kmKIsw+IdRkUvsiQl1qAZ5lHTnWkaWKzRzQu1hfDNEcBJh7Z59SDLEYEIGu+Bs29nHvXfMM6PsJBB4yvHoW+wjwHDhhzrSIa/i7zmXrTuUFDaqPPhBh+pCP0GLIvEvRHGxz2j+XIjobvtDLSikWR5OumFrY2NSjWpBXWJIRWJTaRhCd5Ss2SJRLFfsSDOECyFfXCNQ4cwx8DxQcA3LSXJA7ovVaomI4ypHl+REZRLrvQudS+sOHUVI+Nj8oUtYsIO9pHbpC1AYeWQPYHgAsDfZ4Z8H3giIjBK9ymcAEAcFmNXn3kSYWSvmvSrW3gw6L3+HGlUREK278vDIdsk5sMYxP/73MvCsXf/lU7wQ8tNZr3SBy7t/9CYoxTiaUtneYAjyobdaZOIS797Hx84GZdTgN0NNkhU7+xOLYjcWUMO2Tv+p89H1f6R3hhSG0WwhjLjUXsOpg+Khxm1kMgoyAmLyBSARzmFGlqKHaCgWPQ3bWVLgvNHByg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(136003)(39850400004)(376002)(346002)(2906002)(26005)(66556008)(8936002)(86362001)(66946007)(38350700002)(38100700002)(66476007)(8676002)(6666004)(6506007)(1076003)(186003)(316002)(5660300002)(83380400001)(36756003)(2616005)(956004)(52116002)(4326008)(6512007)(478600001)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HqpaBpuCg7smdCJgq0VXAZ3U9Sju4rtXN/ZnMjD7/RbBQTY2/SQkPBWtB9lvKotC1lbz/pvgX7FILzGoncg3TXEjEZ7l6zORbzrpO/uE3wKw1DOzmWh4z3AZ4pF5Dm5QrmCHsv1TwW6AO52wXLgZ2gQ/+Cl5t/IFSU0spvLRLoocEyiEAFu7KN+eHCcTNjtbN82INvBzQSBz5w+NRjdhoEKClsvAW6pZBqYrTJWfcybaRLtvnuIsjD1GfqNzTmI4DiTW63eTwQOgRf9P9eY5dqX6+jJyuCAaz66ITRYSe6qD0voKdNntVmaQ03IOvo/LR+aUICec1iI835XXsKeJtpo+lXmFEKL45/o+yGDQNRKzC0pMET0fVriHgIPzJKK4DyCWlfWns/1f0RxrNRPu2MYsmrvU2e3LXuXy/UAEEGwL1cBsw88HOUCK1asltcVXtBPWET+qcgEajZzUcwJDlImigrfql91U+gDgJD63SKhbgpgL8WtQLdYgZ+1D/dsn0LsXiHqMe5HvPnwecfektc7+kpHyXm/jfUCZWyCsL1RXp0SsH7A3IGXpg3CVuxHuzgO3r3ZW5dFFMtOOrZtoEb05Bf+m6XK1pc7jbraL7MHTbQ6ePEX0c9ZYPhR0ga1eBfL3Vh5yJw7UMumFt2AwUTbs1YOUnVgHk35PefL6W9njU7pUHueNPllc+xzuVFLblEhLHOPovfvfxu6sdVoeBTSCy90yngJPM0kaG+d2saNYR3Dfafa0X4SAaAySOwqIMXeE9VC5JLfl55RffQ/qN9QR6/9mFEpACfSrxIfQLvJ9HgP0+t/uXmMBMa6chOp2VjY3P7UZV3WSFsOtURGKmlYnXQiRM5H0dlozXjmjdB1NQ6s+bVC0hIzxWPlvcqYSbv0IgoDSRh9Kh1kGgvy2AA2ZLgzXDqC/+fbxn4DlYpc1mPtDPYiqjyZqnzl0NrtSRbF8Gd1oUNXmm46/bgr8qeJLe6R/wu5K2i+sgsK4S2hrE0UutxlZrtQ+PDE5dCNL+uViqMEHtbDHhPKooFFNd3gBTI8XihmezyJlHILxN0THd51TzkApWCue6flkG6cDz+5nG9K7S9y4WsfR27npF5ulS+Hzcpz1y/Lg4j4Teel+1lnX/ofvc1Sn7KAR7Sr/vymfE0r3VDHQP13mGprVd5YpdTg4Nj6oITICwOEmFFbPsKSrz0EiAXQCQG+8gi++jx1Xu1Hxe4WnUMKuxLPSJ17U/TswOI2BMw4/Ts/Tv9KrbHD+Y0W+JpMqw5eVXTP7N2IjUE3pKZ88Wk2NCHzaJzImpfwJ2KzeiEZQLcK/tKsuZvxCbpvfHvUZh3RS7oUp X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01408913-deb5-43ed-632c-08d95bd16c5b X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2021 07:35:27.6216 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wonvTVurLnbBmJjHHphP5UcZkGiQIdPnLCZIScLP+hKFM/5SrH4z23Qas6gmgRqDhE7gOc1bPSd5jiXZ7I8aOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6793 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch intends to introduce "reverse-data" property at nvmem provider side to reverse buffer. For a case used from Ethernet driver, of_get_mac_address() may call of_get_mac_addr_nvmem() to get MAC address from nvmem device. MAC address programed in imx-ocopt is MSB first in lowest address, so need reverse data then feedback to nvmem consumer. E.g. MAC address read from imx-ocopt is 98:e2:06:9f:04:00, after reversed the data is 00:04:9f:06:e2:98. Signed-off-by: Joakim Zhang --- drivers/nvmem/core.c | 30 ++++++++++++++++++++++++++++++ include/linux/nvmem-provider.h | 2 ++ 2 files changed, 32 insertions(+) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index b3bc30a04ed7..ccc2c5801c8e 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -55,6 +55,7 @@ struct nvmem_cell { struct device_node *np; struct nvmem_device *nvmem; struct list_head node; + u32 flags; }; static DEFINE_MUTEX(nvmem_mutex); @@ -92,6 +93,26 @@ static int __nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, return -EINVAL; } +static int nvmem_buffer_reverse(void *bufaddr, int len) +{ + u8 *buf = (u8 *)bufaddr; + u8 *temp; + int i; + + temp = kzalloc(len, GFP_KERNEL); + if (!temp) + return -ENOMEM; + + memcpy(temp, buf, len); + + for (i = 0; i < len; i++) + buf[i] = temp[len - i - 1]; + + kfree(temp); + + return 0; +} + static int nvmem_access_with_keepouts(struct nvmem_device *nvmem, unsigned int offset, void *val, size_t bytes, int write) @@ -705,6 +726,9 @@ static int nvmem_add_cells_from_of(struct nvmem_device *nvmem) cell->bytes = be32_to_cpup(addr); cell->name = kasprintf(GFP_KERNEL, "%pOFn", child); + if (of_property_read_bool(child, "reverse-data")) + cell->flags |= NVMEM_FLAGS_REVERSE_DATA; + addr = of_get_property(child, "bits", &len); if (addr && len == (2 * sizeof(u32))) { cell->bit_offset = be32_to_cpup(addr++); @@ -1398,6 +1422,12 @@ static int __nvmem_cell_read(struct nvmem_device *nvmem, if (cell->bit_offset || cell->nbits) nvmem_shift_read_buffer_in_place(cell, buf); + if (cell->flags & NVMEM_FLAGS_REVERSE_DATA) { + rc = nvmem_buffer_reverse(buf, cell->bytes); + if (rc < 0) + return rc; + } + if (len) *len = cell->bytes; diff --git a/include/linux/nvmem-provider.h b/include/linux/nvmem-provider.h index 104505e9028f..364ac2a61b11 100644 --- a/include/linux/nvmem-provider.h +++ b/include/linux/nvmem-provider.h @@ -31,6 +31,8 @@ enum nvmem_type { #define NVMEM_DEVID_NONE (-1) #define NVMEM_DEVID_AUTO (-2) +#define NVMEM_FLAGS_REVERSE_DATA BIT(0) + /** * struct nvmem_keepout - NVMEM register keepout range. * From patchwork Tue Aug 10 07:35:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 495388 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DC31C432BE for ; Tue, 10 Aug 2021 07:35:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 457B46101E for ; Tue, 10 Aug 2021 07:35:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234794AbhHJHfz (ORCPT ); Tue, 10 Aug 2021 03:35:55 -0400 Received: from mail-eopbgr30046.outbound.protection.outlook.com ([40.107.3.46]:49280 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234433AbhHJHfy (ORCPT ); Tue, 10 Aug 2021 03:35:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MTAWuuVcUX1YTlyGIh7HCBeAqRu0Jvq0syHjRQmf7hgEK8f8A+jys2c/O5SG7KUXxnXWeeJ3JeQ5c8WP8x/K6rhCYMK49w8nlpQMKjAPJCI3+LIib0+uYGfaqcWkSdrBx22ee2RXLN6wV9m+sm2hv+Oo4z2p8jVScZ3uk8gUpjvKL8RYxl2GGTJRa7V05Ydecwkv2NSmPtw7Upbj4eAjPHjp1ED7nGBPGyJwQbQ/zcqqVrY0zb/CVzjk+OCOdjhKGYe9v+Q+b98TlokSU8lARvyPgpFZux9fGawbk1nxy7I9b/H+lxvlU/twdFU9tc4DuXQTsrPWneE2pcXU5g9Xiw== 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-SenderADCheck; bh=mJf3X2tNIJSKjyi6+JbNto2hH0bVQA9K0uzfkKOeZG4=; b=B63U8l89qm/NupLvU2AXr80apv6tgZxA8hpkg3Jsb6i/uRORMkXg1ITcGAPUdop6j/KoSe/CFxzj0jlOK1hEoIRgQY0EYv4GlJfabsfWjSp33T0j2xFBSERR5vLu5XVwEVv1L6GVa8TsUM/Y/5Mp6QNVGdiOuumLfRTeEIoz0ofxPs6dTKZfiZXR7pc1UZ8cGwzg5+kQpryoxXD7eZaWb/NZsJVyXF8IkwrGlJuxaxW+mzmEpw0FU/fro+g70V1hROlWC7zrH1HYJFbhH4LURNUFa4aPmBtyHpf5fxQZ1J+kB9iNl6T+AJGacPsOZyzSy4ijhaWL+FmgNe3toFwoPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mJf3X2tNIJSKjyi6+JbNto2hH0bVQA9K0uzfkKOeZG4=; b=FVPCP3ckGQfdfBzTByjT8oO6Pl4TsuZ4HCihDhxo3RIAcLL3LfNVzdAzs4zeWyZiHjy/B6uDJU9kSafqtiAyxM6QrODQpz45Yuck+9aHN4hoQKvp1ovEgYTHv3xTFoeRC1xfoQgvXCIIYUuufvAanezpmOIsTWHRN1Xz/cvICOw= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB8PR04MB6793.eurprd04.prod.outlook.com (2603:10a6:10:11a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.19; Tue, 10 Aug 2021 07:35:30 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::6969:eadc:6001:c0d]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::6969:eadc:6001:c0d%6]) with mapi id 15.20.4394.023; Tue, 10 Aug 2021 07:35:30 +0000 From: Joakim Zhang To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, shawnguo@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V1 3/4] arm64: dts: imx8m: add "reverse-data" property for MAC ocopt Date: Tue, 10 Aug 2021 15:35:09 +0800 Message-Id: <20210810073510.18218-4-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210810073510.18218-1-qiangqing.zhang@nxp.com> References: <20210810073510.18218-1-qiangqing.zhang@nxp.com> X-ClientProxiedBy: SG2PR03CA0098.apcprd03.prod.outlook.com (2603:1096:4:7c::26) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SG2PR03CA0098.apcprd03.prod.outlook.com (2603:1096:4:7c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.5 via Frontend Transport; Tue, 10 Aug 2021 07:35:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 564cb71b-13e0-40ed-1e42-08d95bd16e0d X-MS-TrafficTypeDiagnostic: DB8PR04MB6793: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1388; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vLIlhs88gZXBpZO4onVfdY4jrbwL9lyZfMyTmiptbpbzy2TX/UYRInKe1avBkh9vMiN2lgvmJYl2A+BBK8jRnOKRgA6AS2ZcGIDlkoPVtOeCMyjIuy7yWQvdlBdUoMya3zm+/Sbcy7v8lqp7wW8ybJvVQYhTTLDHHZ/DBKC883Fm2Y/uC4/bs/onmouaM1pmi4VyaVrCHy9rh8KbH5CakQ/cQOfFVVXnr10PyS83KadgPdWXJoA0CgmuKnfIJvxB7LvuFmYqUdiJGEaIMwSIYTRvlD5C+dshaFHPLm/hLUlg4tOBnGdMpnAFxHHLKD2CJreTwrRLpROWLct+UgjZdDTnC6DxYzC51zg99p1RIyPUc4PTZBf/g6ix5zsPWgEGbXjybzSEeKIH8sqcUjb9vNg4FPvkAK3w5uKSRVOWiu1QVGepoaG3ozDU8S4nLbTP13kWrUgM2g1l2VIwVTULsjaa1MZCTSokwsdJMBxamzcshJFIUlFdYR/+Wf9xfc02k6Prd1V9hNpe9mAMI7INyXZk07ZNvKZVocV+vS/MQlqcu/2GgmnzNQjEiUhp3kGJw1b96oiGJVrhJ+IKAbQ1ckl+POAoBSf3cGN2hf1Ipc5dbXcrhfe481YxwPe1t4H2DZ3K3803rG/I+EjXylLGgGtBMl//beyDjrHDBxHN2/PNwBhXBklF2NWM1EwFPGrdhQkyxgb8ivVbT/izYMKarAVl3/1/yp+DXbz8Vbj12rU= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(136003)(39850400004)(376002)(346002)(2906002)(26005)(66556008)(8936002)(86362001)(66946007)(38350700002)(38100700002)(66476007)(8676002)(6666004)(6506007)(1076003)(186003)(316002)(5660300002)(36756003)(2616005)(956004)(52116002)(4326008)(6512007)(478600001)(6486002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yDpCQ+Pqu81EI/yqFTmHOJOf0jzXUgQvhC0t+71BW98l1u8I2aD+NU8ZB15NOuUpb6gFPXQ+Rufda9veAbu8iVXMgESwquyoK/h9aNNewEtbSArtKXZCD6rycj7/a/4wXKUjlxe9o6z/1C71qyGReYbxFB79S6WDSFYCkbMmz4R7X/EQdfMIX5tXqQpd5PLhoI8OprNDiT8ZlBEuEJ+rRy13at96rLJeGDyGP1MsPnUDDsUAQjtE1NDwAr1uO+9Wa0oEJCAbdthbl0YJ3Tgab5z+fj8/FC5HuIb827ZuQDX1qGX5q+eexwWLLy2Z3QsO2cMGVgwV0TPipmA14DR21QIIoBtWj4Nhu0VifJtgV4VVPbpB8SfQDyScz8ReWwlIM2ZJ/MXwfLmHq1VEK/cuyjH5LkVtw2Dx5b7Ib2qZrnzso2a+0+/1n2992RANSzxwZwkU6f2StrNMn151JeJyEHZAkQU9B5nChg8PpBMmPrJyDZVrnMHmPkV+bVMAoagUQnHj5cuGB1ctxGvbpVTL1JfjhnHT9jZXP7f5tt0mkunlgvn32uopqVrGm7MaYlDhVZ/kSRYF49NuokMHT83T8xTKUkkk2nI/l//hQtImb5QfLjSaYYGGarnQLY0Wt4bcad1FDJkVxBHt+/X3ABupTOIpsdeFBol7eAZTes0QZ5C8OTQIpvQzrLugrGq3hNhO7BxIoSqonUeiyQHUDQKHX0thTPwb4i4FxehDcIP7QHOKY12vJp4pZAZByvY/oCml14UokbVam6jPsvnNvH5lAxq72jukgRA9WpjuQ78cpBoBcVZ/deT0oyoFdGN5V516vgv2p8RX81iiHwzI4u/BNRY4xTCT4u0tgTZvFySd55CVFHjJ31BceI42pK+rhDoqPwl95gXHh4BqRJbJogc6rfnqlu4LTT0Bak7r0m5AB2eitVrqnDRf5k53qM3ApyWBXCxBsBsl5/JL99264TFNl1rUjAgglOFnVXCTM3lim41MAKtTA9RCRvEdqwBGQs2zB/+IwO69coqR76UbIirRIzgVp0x89kM/fr8EK3aPRG3nPeQboCeopkTaOrPCWQt4PE977VpfS1ZXBwkMfQQQ/VTzuT7xiOtCyyaq4fBeMIVpw2/wiODwyTk+Hg1QyY15W3CCrQIitsDjW3Cw0lmAZ1kmSpk9Fy2RR0s7Gl5UAUfiHAnK7tcBsERQOdvbQ8yJ0lsLrlXmGcgWqmN4tGEDUOacd4hQXmFyMlbhxXllOCYEiMsqzYqUvrojF7LR/T4Ic6Ah5onsBce5eIT4wuHp4F2Zvr1RFpC/RzWZkHYRLFdAuOsPEivH4cwXDgVDuYnd X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 564cb71b-13e0-40ed-1e42-08d95bd16e0d X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2021 07:35:30.4392 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: RZsZHrkLP1BpBscO8vCGfwwvm/2rQweYjZ8ogTowyd7vb2Z61X6Azwcc7ycnGOFj1EKIiNYY/pZdRZOxBtaqhw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6793 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add "reverse-data" property for MAC ocopt device node to reverse MAC address. Signed-off-by: Joakim Zhang --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 1 + arch/arm64/boot/dts/freescale/imx8mn.dtsi | 1 + arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 + arch/arm64/boot/dts/freescale/imx8mq.dtsi | 1 + 4 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index e7648c3b8390..d4645fb87565 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -539,6 +539,7 @@ fec_mac_address: mac-address@90 { reg = <0x90 6>; + reverse-data; }; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index d4231e061403..4bc250682dc5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -544,6 +544,7 @@ fec_mac_address: mac-address@90 { reg = <0x90 6>; + reverse-data; }; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 9f7c7f587d38..e4d879d82c28 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -358,6 +358,7 @@ eth_mac1: mac-address@90 { reg = <0x90 6>; + reverse-data; }; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 91df9c5350ae..e1eb8fa0d348 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -570,6 +570,7 @@ fec_mac_address: mac-address@90 { reg = <0x90 6>; + reverse-data; }; }; From patchwork Tue Aug 10 07:35:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 494510 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28B34C4320A for ; Tue, 10 Aug 2021 07:35:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F3F1961075 for ; Tue, 10 Aug 2021 07:35:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233605AbhHJHf5 (ORCPT ); Tue, 10 Aug 2021 03:35:57 -0400 Received: from mail-eopbgr30085.outbound.protection.outlook.com ([40.107.3.85]:31714 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234183AbhHJHf4 (ORCPT ); Tue, 10 Aug 2021 03:35:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fl3tTkSrN3o+MgMWccxlHgKWanrqRkB/mR2m/AdcOEbpjZSLQWGq7GSugNJcCJ9MLgI4sfHJ8O5tIJSd0XxY1aXsyBy6E26oPEdpklkTIiAz6AD1crGhzL59lXjr/39mw+9Xp+f0+u2/iA1eH/O0lZ1d3/mmk3RTzTUrTNq2EFDv+1BRHb37VYKazG+nStl1g9S/qXljiEne8rLB4ccfQ5TymPID6u7m2neT2eviKvUQ5vGYmQxP4l8GwTLSoDBiMy8DhD6Y9lLgithTIsovDW9XwDjcI5+/d4oVjaTHINivrU+KRQDB1DhTmjNwHpvPZBlP22OwF9MsN8MB2CkNtQ== 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-SenderADCheck; bh=pFPxvz60MR0+k8zULumOAc2rovjvpHIKDlynGoQswIk=; b=WFLsuYD6zYTOMUmyaw9FMSco/BOxYWDrj0y1R7DbPMVG0CzOQfgpll0o2y6inshop3ZHkm9srziaukTs4iktIY1UUlU+uRtq0RzoHTmjTzjJRQl6hhzExlMOec7SLBYYpux6CvXKZGyzuwW2lNc05xHfOcEX3Gv4BvdQFkuhdT5NOgUZVPNAUZwSqb1EYmHcgppwZVhcBUnwU520rrVkMflhPBMi1YmBxNpmjfF8SVhGAmBmwwQqswFzv3lxiNVJE2FBb0Xby1t7Lt9BSYbIBX+Y4Y0fvgdvQKDwmMC7a4OQwqjeBP4WFuXK0YKYZOirNmA2+EPAkjAK+Di+wxtW+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pFPxvz60MR0+k8zULumOAc2rovjvpHIKDlynGoQswIk=; b=Zb+kDY+vHFHp9sppb2DrnCYyDu0Ghr2LO4dB76qUj6r96wcac1BZiuXs+5ef9WLsM+orQfF5KDv3ldrMDSRSzqOINhOlmexlohOpHrqlFTjkQw/WDW1mi2GluGYdW/zNN8d8ziHeB6+pqZU6YuEJ6Re3NME7x/WdFcYscHIyoOM= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB8PR04MB6793.eurprd04.prod.outlook.com (2603:10a6:10:11a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.19; Tue, 10 Aug 2021 07:35:33 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::6969:eadc:6001:c0d]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::6969:eadc:6001:c0d%6]) with mapi id 15.20.4394.023; Tue, 10 Aug 2021 07:35:33 +0000 From: Joakim Zhang To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, shawnguo@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V1 4/4] arm64: dts: imx8m: remove unused "nvmem_macaddr_swap" property for FEC Date: Tue, 10 Aug 2021 15:35:10 +0800 Message-Id: <20210810073510.18218-5-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210810073510.18218-1-qiangqing.zhang@nxp.com> References: <20210810073510.18218-1-qiangqing.zhang@nxp.com> X-ClientProxiedBy: SG2PR03CA0098.apcprd03.prod.outlook.com (2603:1096:4:7c::26) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SG2PR03CA0098.apcprd03.prod.outlook.com (2603:1096:4:7c::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.5 via Frontend Transport; Tue, 10 Aug 2021 07:35:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d84f902-3d7f-480f-d8ee-08d95bd16fb2 X-MS-TrafficTypeDiagnostic: DB8PR04MB6793: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2331; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VYFqQK3Sza2n9kODgakoit5x/GD8F1WeD7xQC0w/q7blVgpQLTOJj6D6umTLru24FgIieTf6kmHZmx3kdkanmqBarD1bqAof5fpK1ha+q6AjmaxwQAkEVzHW3X10Tuhf0nTBUgPjY0TRsN3s6H62IMTEl0yh8qo0pKKOAGbp99mASZRWAdld8ZE4szu6gFQ7lhw5CbdJMTCRXJH6gho5rn07f0KuTbnxRcznuQfnFjL67ylS58S2N8gsDtJTAMyzdXPTiq8xpWtiHZPZOY7t+6cWiyqePMK+fU4XEhJHqDyrpYwJ7kTXnOhR3ew6nXSBdcTHB7DSqduWo6XSEJyy22vrJC7TqyLLxvehVo4GOSi3oxfRO2KvkVov1GCMudDXiX3zTPe+2ATYmSw1IJWYOz+DSmBEllPR3TnsEmMZDI2jy7aijDc1hUbE35Sd0wxkLkUxEAjrSc3hMKYCD4E22Y8V4G5BvpuJthDVgK9NYNN8jw1HS8IUe3P9AmcY4LPpF6MAdzIn+MspfEFYtaEC7nXibgbPxJ/lXQWRmumtQFBBLxC3t5KEHBVK7QEBqb5+v8FvhF/cr6XFqZf46z+YKouiA6MC3yANGum08WS8vL44RKJdB6075xyvMEiy2dwNR9bnMSEAYa2Jik6sXeEAl6IS/I/c6f8wzDVitncLx8LAQRnLOaU4CzvaF7QW31QMT2dKe1DI6lqBdeFSU71AILejk3+whFI7JWnfl6oBYaQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(136003)(39850400004)(376002)(346002)(2906002)(26005)(66556008)(8936002)(86362001)(66946007)(38350700002)(38100700002)(66476007)(8676002)(6666004)(6506007)(1076003)(186003)(316002)(5660300002)(83380400001)(36756003)(2616005)(956004)(52116002)(4326008)(6512007)(478600001)(6486002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FwiuVTk7HZafSabDxqp+j1BVprJrs+CWC4jWphtJDgKcZZ2TDerfxpUxg2zWyaz6vX+UTWl+StOeAX1TnSvGkuC2cdbEJS362M6EPOsD/0qYWuNG8sLW213PjQqutjYlqsR2o8sNwUaAj4c4BC4fzywAi0Pd0rpGXYKJoSsPFWIWWU1xMJf2e9JEU7GEctqJw6YU6e1CwzJCz+V9cwQaajIAL7a+yBuSYcljFUhALRWyOh0kYEPjTK4R/WxzPGAKND+ngFohf9oRh9vPgy90W/3QEXmKc1QiKpt8tU0g91wU76Zfn7lDdlyfzFc3PMZJeE1Ys1I/gOnGP1PsLsi0f9doox7TML3dLnuDjdCxt1HhLR+T3cYGcpFC/8oACaj7c1xWdZW90ZVsUzOwDBZBtcS85wOYlFVx6pAKjxyYt1v4YRqkeC8cNhU83VCzyYuzAF5oth3q2nIGEsMvhv/OZSqaPdLaDVNtqP/LbqwVpGBFWt4MQLBezvs4b5vVRd2gXne5MP9tpNt5anQLsxqmzlR8xPpO2JRhapwVS7TV2ZPxoNdIHbwNL0CeiXpYCxSY/YS1JeEmC3Zr8pq317wgFaWMf+XxHQGE/CTw9H7sEAMF4pDlTpJdz4FHuyzUwt5NFZT5rtKrPzflQ9Qb5IuRMKu/eZEsz7OlKg/jPM/QB6NJAmGjsGIZ/VyWHaBK/lu/yscJrMPUmZhE7XpnBFtVjCX1u4Oc2KqoqgfPkzPzsmBaEowkvg6ipCbekBf15d/0YdiGzKj8rvGoMIKSix+FE69AKtGVQgmCw+Hs8SMFw5Z0KFym5XXp55sJHYZkO6OVr17i545GVWwHm+FMm/HkC3qVtewNHlPh87JAnC6HSh8elRvMXk5myq1JxX7l6LHtpgSgvNZQaHLy9t02bbEtRYLKLdH8zvsUOMn63Ag/h5qBDjEj0vLg9WfWKa+9of3b2ZmD+ysSnmsV42fQdFXQNR066bzx1foRsI6Bqw3fpin3glFI1Z8rHITCNCgaLSHWxRrs9msrS0NUQPNfobQu49fR9FKfbV19eCYeZAWLRJtpqcvgfs+8KQYx7kq4M+6WhYqc/NyVvHwP+XXelpNOu0TZwEE7+GZoaDpUgnOFzYhduCd63T1vzMYukMpNJj1g28XgFZyUnKaWMn3fbiqd2QKu11wCDFQ4f/b36i1Uyye4HiuH+2K1iJ8PAj4UEyQT7wjqznJrSXG0sQce9tdqJ3/LfiQPuSAyMAwMo1fMkcR76Hiu8+c3QIDiV/G2dJK7WEe4wm1dtFHABAyvumx1lTrULPPDDmI9BadWsHAIVB8jmpSgWoEGNrnm43zTC02W X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d84f902-3d7f-480f-d8ee-08d95bd16fb2 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2021 07:35:33.1752 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: aobhE3Qb6uLg1c5GZk+GPLLUgjxrGlhmTQC4d+lQP+5zbaj7+vAr8PY+53DbhvxW0p+TKAVDdCHKkbgVJF6fYQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6793 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Remove unused "nvmem_macaddr_swap" property for FEC, there is no info in both dt-binding and driver, so it's safe to remove it. Signed-off-by: Joakim Zhang --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 1 - arch/arm64/boot/dts/freescale/imx8mn.dtsi | 1 - arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 - arch/arm64/boot/dts/freescale/imx8mq.dtsi | 1 - 4 files changed, 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index d4645fb87565..6b1883b3560b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -947,7 +947,6 @@ fsl,num-rx-queues = <3>; nvmem-cells = <&fec_mac_address>; nvmem-cell-names = "mac-address"; - nvmem_macaddr_swap; fsl,stop-mode = <&gpr 0x10 3>; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 4bc250682dc5..14fe0f766d5b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -950,7 +950,6 @@ fsl,num-rx-queues = <3>; nvmem-cells = <&fec_mac_address>; nvmem-cell-names = "mac-address"; - nvmem_macaddr_swap; fsl,stop-mode = <&gpr 0x10 3>; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index e4d879d82c28..5baacb83e2f0 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -815,7 +815,6 @@ nvmem-cells = <ð_mac1>; nvmem-cell-names = "mac-address"; fsl,stop-mode = <&gpr 0x10 3>; - nvmem_macaddr_swap; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index e1eb8fa0d348..c4e107061c89 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1190,7 +1190,6 @@ fsl,num-rx-queues = <3>; nvmem-cells = <&fec_mac_address>; nvmem-cell-names = "mac-address"; - nvmem_macaddr_swap; fsl,stop-mode = <&iomuxc_gpr 0x10 3>; status = "disabled"; };