From patchwork Tue Apr 18 21:49:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Larson X-Patchwork-Id: 85094 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3159313vqo; Tue, 18 Apr 2023 15:14:47 -0700 (PDT) X-Google-Smtp-Source: AKy350aX0FUDNkBDEspqiTOTwmmHCyDf7cmajXKK+r2d+DPw6LLu1XdMYfyQInian0wVLiHYtUIa X-Received: by 2002:a17:902:7891:b0:1a1:bf22:2b6e with SMTP id q17-20020a170902789100b001a1bf222b6emr3418404pll.43.1681856087035; Tue, 18 Apr 2023 15:14:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681856087; cv=pass; d=google.com; s=arc-20160816; b=Z4MwhycP/tCXhVkWgmZOZImVOGaNNPjShjrNFohJFGC2F/d5Ev62Hv6MHro56a3EVi Fa4gC5cZiGv9xtiWAXNVYxS3VZ3LIHKU8fJ3ZSIwcV1gMTqLH0fDQ8tHnuGx3yuAROih zsuYPtJTcaVNuk9eobzthxgb4+J+Z/8fJ3csfl4lqHHRWwEO4uRLwrwGNyEQT+wfhKOS gS8tZzq6Hzgjy+cZQBtEG0hykeEQMzG+N1mQIhF2KhwWzedWvn0kJG5u6g34ceL6JMGm bl3daUP3j23sOovFCnFEsrMu+uNg4qG5KE8l1NKdWrLEuOq+o2nT2Qd2JqtIw70A8H9J 5Jdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=1SiX77mWSYtvvCkRKUITeJVeuptTobeIO2s79YZu8qo=; b=wwuH8Cubjd0NKiiosQarWRycNHbwEZSIwNAMzS4C4PK/FVVr52w8+ppre7dPf4UeVO HECqnu5QZh1vgLhHHDAxBs79bs93LaBqyoWHz15b1wLr1E84fONqT3tg+RFLOoAr6/0/ 0OnrYAUm33spuQPYtQfS9OnW3y9lxpTHEofDnff2LhxxAbowNZHbSq96hMCLpFMCKRsw 8iclMiLQd0WDMi2Lz3Upq9LaiZ2QNQX5jkTao/HzmX0t3b7GxR+ySHIEsm7WmS4ryP0d tuQBD23yUtC3Fe7+B1/+T7fsan8WEZTi6Fi/UQagNXoZW9Qaw73BnMoaHmwNkxsfTNH9 3BYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qK0LTlUg; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a170902760300b001a6458c9f96si14476564pll.37.2023.04.18.15.14.24; Tue, 18 Apr 2023 15:14:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qK0LTlUg; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233175AbjDRVuT (ORCPT + 99 others); Tue, 18 Apr 2023 17:50:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233159AbjDRVuK (ORCPT ); Tue, 18 Apr 2023 17:50:10 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2052.outbound.protection.outlook.com [40.107.94.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70D5512CAD; Tue, 18 Apr 2023 14:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZNG1dBWwtDuYMKEudd5LQc/mD7lzHj6ozEPpnZ3cGaPrUefciIpb461JNYTuddkNjNTPvNopVjcELWFYjsb7HtsoV8n6AHBVVo/zi+ZN1BvN3ANHukTyn+fXR5IHH6u8BoA7BH7Nm+0i55UOYRgqddGXA7SQoAihiXL2+x4YICQ0csVSR366EPz1ZLuY+h8FkNW/3WjlumE+fSz4nTdgYkr2yUG9AEnL8S4UJjMOI9bAAHeQquR/Ce7RsxD2SCTnoZVpOVmoyb119/cbK91GI4dqxz0xPKsaiWg20TzcLA2JHC1naPzo6J98WMy2rPcdzrGp9uBekQPjX0kgATU1nA== 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=1SiX77mWSYtvvCkRKUITeJVeuptTobeIO2s79YZu8qo=; b=m7D6BxViquqtLmqFeMkrlJQxLqa559Xvu5yNi7VEmi39ztxFLKSLsA66sB7poGw7bDlx+R32m0cQaM+b7jg6k2G177BlkVvMrPvgGCAlerd7lDp+iWpbAz5VkIP8m+UjemvEEGCJ81JYe7MBAXdnAvCu87wpU1PHsvrDa1qCHs4mSyGAVxkvorYUmEYifpSjtqbKqtlrsKfJuXCsAS2nlA+JSF5rhUaNQdHLh17tHG9Q6G57ivqzojOE778QG8CbEknhzmaLw3nf7WziruAu4cmjEaAmMDDOOR670CnfeOarrLfPafQ8nZ7iQTL1iXUuNQosCXb/XoqA44Ib+TijYw== 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=1SiX77mWSYtvvCkRKUITeJVeuptTobeIO2s79YZu8qo=; b=qK0LTlUg9SoGpHNG64jGZ454J8ZEVBrDnrULAE8Z/2mfgysbzEqXOcec6s7eTi6gq2dFvFFdEYfsxnc71Dq5kzgCo3mB/dcZZvL8Dh4dC6tfbC+dcg145jZVFaxwcV7eRuUP9c//EcuY/s3rMPZg3Wxu5nZZOrSV68KviX+XIAI= Received: from DM6PR06CA0013.namprd06.prod.outlook.com (2603:10b6:5:120::26) by PH7PR12MB5593.namprd12.prod.outlook.com (2603:10b6:510:133::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 21:49:57 +0000 Received: from DS1PEPF0000E646.namprd02.prod.outlook.com (2603:10b6:5:120:cafe::9f) by DM6PR06CA0013.outlook.office365.com (2603:10b6:5:120::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20 via Frontend Transport; Tue, 18 Apr 2023 21:49:57 +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 DS1PEPF0000E646.mail.protection.outlook.com (10.167.18.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.16 via Frontend Transport; Tue, 18 Apr 2023 21:49:57 +0000 Received: from platform-dev1.pensando.io (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.34; Tue, 18 Apr 2023 16:49:54 -0500 From: Brad Larson To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v14 03/15] dt-bindings: spi: cdns: Add compatible for AMD Pensando Elba SoC Date: Tue, 18 Apr 2023 14:49:45 -0700 Message-ID: <20230418214945.54690-1-blarson@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <9c7aec03-265f-414e-9a3f-9511f40cbbc0@sirena.org.uk> References: <9c7aec03-265f-414e-9a3f-9511f40cbbc0@sirena.org.uk> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E646:EE_|PH7PR12MB5593:EE_ X-MS-Office365-Filtering-Correlation-Id: d3e3cfb2-3179-4dcf-67fa-08db4056da4c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 80iIufSSweYb3cLBXKu1P0RDGKEnPRDQqe5DBW9OgWUdIc96bDi2Q6URTsjEXFMGhxTln2CWnAtyw5hJs931Jg/aDAuFlC8pKjE8LuqnCPVCtq9coyFmTHSxC4cqMx5g9Un/U7cfBQ35aBnVQOwrxndvwzEPdSktE8n7HIyKI7tHXeUG+nsBpJdIh/RcMQMoUPk0Xj+/ZjKlP4G3lcl3LLOM/H+LZaEQauNlIq4IOw4KnOXAdI6ZU3+Jj6IEPwVuUyOhoRTNYCMhrumpttB9xD8tOZoPHQ58Ng0HRohSy1Gfs7z3yZUY12z/n7EkOyxwm04F9gt4t+blIS4UQOKLaFJT1DF7YnFrItarbpXZFrbfZWqquN+y9uqvi8vxELu5+YBfxEfXwNrvR4sUi+sceslvvJi73dumpbZR/6T0h80apTg+Ipk/JC8Q4do6Mb9ZLBCuSYQaUw931Xnr6FyLENmPybZpNt/+yq/cLbNJZrYspwjyzNZNknCRwPOxTdau0n2G/RsZiNmk7eQcYseP8uIWwY6fpNHeUdJGK8K7pRKHFX/55viFRvMIsql+v/nNQqmiQh7h9P7BEh+KLqYplCrIiJFv1LMnUP3w1k94QkphojsdsSFVssRfrcxJ/RoRQEpGUm278+xttOi21u1bO12LkWXh0k0c+uW21iS9/k7ujMJyUeLb2bH5oDxttUDu2rEBlAEfHT5vQ9WpvgRmZ5j/J/9jTULgwMXlf4NCMWI= 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:(13230028)(4636009)(39860400002)(136003)(346002)(376002)(396003)(451199021)(46966006)(36840700001)(40470700004)(316002)(6916009)(54906003)(966005)(70586007)(70206006)(4326008)(40140700001)(36756003)(26005)(1076003)(40460700003)(47076005)(36860700001)(16526019)(356005)(426003)(2616005)(336012)(81166007)(186003)(83380400001)(5660300002)(8936002)(8676002)(82310400005)(41300700001)(6666004)(478600001)(82740400003)(7416002)(2906002)(40480700001)(7406005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 21:49:57.5768 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d3e3cfb2-3179-4dcf-67fa-08db4056da4c 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: DS1PEPF0000E646.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5593 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762816313790646920?= X-GMAIL-MSGID: =?utf-8?q?1763553927938873424?= Document the cadence qspi controller compatible for AMD Pensando Elba SoC boards. The Elba qspi fifo size is 1024. Signed-off-by: Brad Larson Reviewed-by: Krzysztof Kozlowski --- v14 changes: - Patch series is against rc1, this patch failed to apply to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Rebase this patch to rc7. v11 changes: - Removed redundant if/then for amd,pensando-elba-qspi v10 changes: - Fix cdns,fifo-depth, only amd,pensando-elba-qspi is 1024 bytes v9 changes: - Add 1024 to cdns,fifo-depth property to resolve dtbs_check error --- .../devicetree/bindings/spi/cdns,qspi-nor.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) base-commit: 67d5d9f013d6c3829383c08162939cabff14fccc diff --git a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml index b310069762dd..4f15f9a0cc34 100644 --- a/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml +++ b/Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml @@ -46,12 +46,28 @@ allOf: maxItems: 2 items: enum: [ qspi, qspi-ocp ] + - if: + properties: + compatible: + contains: + const: amd,pensando-elba-qspi + then: + properties: + cdns,fifo-depth: + enum: [ 128, 256, 1024 ] + default: 1024 + else: + properties: + cdns,fifo-depth: + enum: [ 128, 256 ] + default: 128 properties: compatible: oneOf: - items: - enum: + - amd,pensando-elba-qspi - ti,k2g-qspi - ti,am654-ospi - intel,lgm-qspi @@ -76,8 +92,6 @@ properties: description: Size of the data FIFO in words. $ref: /schemas/types.yaml#/definitions/uint32 - enum: [ 128, 256 ] - default: 128 cdns,fifo-width: $ref: /schemas/types.yaml#/definitions/uint32