From patchwork Mon Sep 26 10:13:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Appana Durga Kedareswara rao X-Patchwork-Id: 12988550 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 39FEAC07E9D for ; Mon, 26 Sep 2022 10:19:03 +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=X4nEIpvuXQa2APFQK8xtzceznn6OeI4mVSENt51cgg8=; b=hOeTT8Eoi+M9ju 4WkS9hT4wTvb1GzlswUjTRNirzP3OIb8voJqdNjGqO+Zhe/MLTl52Cdkq5mnia5cWDq2pAR9jjUS3 2TgCdoIrZeSjRuPhM+zkBZvXM2lVBmurc9UmB4pAjN+O3UZJo3otQDE1xJDzB4+h/7cFdY9s1iY0R xQRlJ96sLH51cZh6qSAhk5uMpsTh05FUBAfojKbDL4PPv6YI5MS3CS8jE1BJoLVvEC8Lm1nGAikzY /+aHABYWb84D3FmcFBCEYMdhQNLX3bkhj5AOTJ37BUrSDjgPJKCABPIPXRvY6+o56WCiTzY+A2yWQ aGNGj9jaEFohK3oJbzbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oclB9-0041XD-PI; Mon, 26 Sep 2022 10:17:36 +0000 Received: from mail-bn8nam12on2053.outbound.protection.outlook.com ([40.107.237.53] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ocl8N-0040Fy-Ur for linux-arm-kernel@lists.infradead.org; Mon, 26 Sep 2022 10:14:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U9PkfzJu7wH6fGCjbK30lzb1BIsFbpKfSm9pD0VmwaGIEbip6rZiFkfNggPWrjFc1B9J3UYntOCtU3DEi9qNmPMcEaGqniwMFv/EDY2cNBuf2aiFng+Z4t3r47MV50TX3OsAUYLJLzrmekziPqpjkMMv9kxdVo++M8JEaV1Wm2FvJQ4WB5h7rshS1+JVAYSHWTKP0XRgvU/WVWgwjbDZMyAqVe9I6iUoSCenrW6vW7Ta1hLAvVF+LHzSW45xa4wyHTLMpRnIwAYZAU/OOjyM7A8jSO5IC8zQPNvlSqREkhUwTsqG/bTcWQWFZfYADAEehPgekuHLX7L0ozOoWp+o5w== 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=e5t6qjFmP045OWPl3Ah/l2TYsr2RqiQzpewzkLa/tr0=; b=MRTkDn5UotHMkGXQamFrqYEftgXqfxoNidw0DpX0SFu6va7Ku6jdxmPv4gYyiQwwQPnej8hU2UoXa1UJbYTcJWhjcDcb7qIgYU4OkrasfsRr8w8BrPhkaZU/7REPaV1iBHVPOfgES/txhAIss3VuAE119lZ9KUf/+aJ/OyIXDZiBWsSRaOsjkTvEmR0b7NKadsqEPM4/TM8RSoEePHBU8l3pR+jxM+Ky2yu4L6X5TM5v9A3q3AwVAcBV8D1enIDRK8BMoHB58Pi9D2LcuCkoXl5IbMalsBa+9FLe3qgT7SkRDP4NPQXJ+4slzA4F8H5fpiAcOJw2Ab7tBlWPiVtaoQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e5t6qjFmP045OWPl3Ah/l2TYsr2RqiQzpewzkLa/tr0=; b=xOISuVTkj/ebQvADP/G6MhKJ8FT6L4Qw0DtkvrdwfGGbUFEeCy54tFdktMzXZvQmPMcPeU9s2eOKTGeV7kFCgByT1c+yu8GqA3y1lIqEj+0Aa92RQbtbUftDfYpDWT1jTv4mzl0Ibu07u+kKn6LXQHm98V9gnrB0A3etY/38Hfs= Received: from MW3PR05CA0026.namprd05.prod.outlook.com (2603:10b6:303:2b::31) by BY5PR12MB4241.namprd12.prod.outlook.com (2603:10b6:a03:20c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.26; Mon, 26 Sep 2022 10:14:38 +0000 Received: from CO1NAM11FT047.eop-nam11.prod.protection.outlook.com (2603:10b6:303:2b:cafe::8b) by MW3PR05CA0026.outlook.office365.com (2603:10b6:303:2b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.9 via Frontend Transport; Mon, 26 Sep 2022 10:14:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT047.mail.protection.outlook.com (10.13.174.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5654.14 via Frontend Transport; Mon, 26 Sep 2022 10:14:38 +0000 Received: from localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Mon, 26 Sep 2022 05:14:32 -0500 From: Appana Durga Kedareswara rao To: , , , , , , , , , , CC: , , Krzysztof Kozlowski Subject: [PATCH v5 3/4] dt-bindings: misc: tmr-inject: Add device-tree binding for TMR Inject Date: Mon, 26 Sep 2022 15:43:45 +0530 Message-ID: <20220926101346.272720-4-appana.durga.kedareswara.rao@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220926101346.272720-1-appana.durga.kedareswara.rao@amd.com> References: <20220926101346.272720-1-appana.durga.kedareswara.rao@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT047:EE_|BY5PR12MB4241:EE_ X-MS-Office365-Filtering-Correlation-Id: 731e0be5-9b51-40e8-3b9f-08da9fa7eb80 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mTa8A/brsehSlmZbQ8UfoxEnLkbzJWW/YZNuZfK5+wpWaaR5dmbV4vKdJ1KbXWm13q698f67mv5aD2JEPyCC32U5ppYdRklOPqz85rEnWWWQX+uSsGr6xv2tzJEjbIvqdAAbN9nBxsAx8nbao5OcH4i04yDMxlgA5vxjmNu85j7SZYnqyLT5MdpPcsiHemPER4Scxr5sRPCpAiDbRyDO1sEDiAqs4oi21VXez4G8hbZnEFXU7RnEP5qJ1w/rtRUKXOXUbMwEOkppL+TNcwxgqOmXGPIdVTQNIGf1c5APKtyRf4zIgIj5hF2cRLZ/T6B31o5ejDgdqYY0H7adkmJ8sCibC8LZ2S4YGdOP3Y4gPR/s0hAANbBdD2d8OShVfYrxE5WNDq7hUOXiejO7RhS8gkPTBjrF57HvWq6Q40yc1sis25AlD4RIccSFC1CIP9vFcfgawDGJjyYsnN9LOi1CM2XD2hltZzUdWs10bNpR3CDiCFKN5d1V5iaG8xPW/6znJ5xqOXnEzlnkkCfJW8ShUYbHITw1joc60iIfoGRqNHhXK5oRLdmGUCAPF2tf/T+THVlSgFR9BdQMu3KkuBby9JgMjHiGFhCaE2ePXTsV2DuWHUeWTLyOGthjbTNjRsCBkIH+qvDERo8hR8ZBOMKk+KrtFL9hTM37QAPa/Teh+C2TosHbwHamJZ+O3q1nGs9suVqzbAVzkQko6jFKfGMh54/rB6M1HjVgIcxxVMNRCj8SLVEuBxBZrhidd9tzUmzZtsRc1w8XDSzp0qRiCitlZeLvp8LFBApVGa8y+gQ+hL5nEwpX1y+yr55tIRf4l8BvBlEj1IpIesiHoiTTQ1ojyxMh4bY27EKGwKwWZA3ibOApA9xVkHSH5NURFAIyYsvoghJT3MbyPuEIMX1xF4WlzQ== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(346002)(39860400002)(396003)(451199015)(46966006)(40470700004)(36840700001)(16526019)(336012)(54906003)(47076005)(426003)(6666004)(316002)(1076003)(26005)(110136005)(36756003)(70206006)(4326008)(8676002)(186003)(2616005)(2906002)(70586007)(356005)(921005)(5660300002)(103116003)(82740400003)(40460700003)(81166007)(41300700001)(83380400001)(86362001)(40480700001)(8936002)(36860700001)(82310400005)(478600001)(966005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2022 10:14:38.3719 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 731e0be5-9b51-40e8-3b9f-08da9fa7eb80 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT047.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4241 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220926_031444_035505_17C7CF96 X-CRM114-Status: GOOD ( 13.73 ) 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 The Triple Modular Redundancy(TMR) Inject core provides functional fault injection by changing selected MicroBlaze instructions, which provides the possibility to verify that the TMR subsystem error detection and fault recovery logic is working properly. Signed-off-by: Appana Durga Kedareswara rao Reviewed-by: Krzysztof Kozlowski --- Changes for v5: --> None. Changes for v4: --> None. Changes for v3: --> Added Krzysztof Reviewed by. Changes for v2: --> Added minimum and maximum values for xlnx,magic1 property as suggested by Michal. --> Fixed 80 char limit in description as suggested by Michal .../bindings/misc/xlnx,tmr-inject.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/xlnx,tmr-inject.yaml diff --git a/Documentation/devicetree/bindings/misc/xlnx,tmr-inject.yaml b/Documentation/devicetree/bindings/misc/xlnx,tmr-inject.yaml new file mode 100644 index 000000000000..1b6020e4ec27 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/xlnx,tmr-inject.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/misc/xlnx,tmr-inject.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Triple Modular Redundancy(TMR) Inject IP + +maintainers: + - Appana Durga Kedareswara rao + +description: | + The Triple Modular Redundancy(TMR) Inject core provides functional fault + injection by changing selected MicroBlaze instructions, which provides the + possibility to verify that the TMR subsystem error detection and fault + recovery logic is working properly. + +properties: + compatible: + enum: + - xlnx,tmr-inject-1.0 + + reg: + maxItems: 1 + + xlnx,magic: + minimum: 0 + maximum: 255 + description: | + Magic number, When configured it allows the controller to perform + recovery. + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - reg + - xlnx,magic + +additionalProperties: false + +examples: + - | + fault-inject@44a30000 { + compatible = "xlnx,tmr-inject-1.0"; + reg = <0x44a10000 0x10000>; + xlnx,magic = <0x46>; + };