From patchwork Sun Mar 12 00:44:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Larson X-Patchwork-Id: 13171053 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 A024DC74A44 for ; Sun, 12 Mar 2023 00:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbjCLAq0 (ORCPT ); Sat, 11 Mar 2023 19:46:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbjCLAqX (ORCPT ); Sat, 11 Mar 2023 19:46:23 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966F36BC17; Sat, 11 Mar 2023 16:45:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dPB9/x2QLQOWFbl1qh7AzWllk8H6MZwFYV6Fm8qTW61+YenkDgi8DxhxZiQ2yepJMgDa+AyyZdFsX+eA9SNrYCKl0EqI1YJ0grSu5X0k+RgLLtHLEgB8J8qIJFw6auh4e45EyUKNJKkFrrZLwtOPUgP8HlyKGCzv5W+CgAtCBdeYvm0mPUMnLX1MyN9ZoriQJy7sV1IWEWgVP46HEmqX53jBpygi6sg61Vji5WWZBi3ftCiVtKFLAutd24ffWw/SZtYTHpisE5Nex8edA3acIpD6ExfqY7kSPvWi25xSO65FJK4O4WlzGMMzM1sIUEuUmEn2mDeb1ZkRI/25poHKHQ== 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=Y88ZbnKwrNnX1dSYtP1PBGCpE1AovtC5p4MNU04lszM=; b=BTrc7mm/3KIspBM6fm/GVYqyDey/Fpb73o3eUe6FfUrTIoR0oa4SqqbcqZZ6xTVhqhMKfA4c6o3QA7Cw+UaLcWHRyf/zLeH51acqivDzw0yLxFlbMh+JFjNzV05cw0r/Hio8zrWgd1eG9tpmgGtbD4IQ/Uwy8+YB1rRmzwwFCO/CtGf92ql68fHHnMu/yiIUqj8cvqwHMVpc42AIPK3Ixc/TfkEvMMPmQvjj4Oy4/q5751eE+uNm9WLneR+gyc4kt833m1jpmgOdTtTyNsWY7f9YURIFls6iE5W4b2VY02usg1kBAfP2W6zzPA+PjyIXCUoFGhNeZhysefmW1OjW9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.infradead.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=Y88ZbnKwrNnX1dSYtP1PBGCpE1AovtC5p4MNU04lszM=; b=ogplBjKmeKvYoaZTN3WAmP8wTtuN7CEH3mu0+bAC6Q6YFfl5TC0tSW3EEQzvkpjNOpQcilF92mitkzKTOyBl8XKrp0/Hy4jajVuUgkeXeQYDiZK4/+isucIU1KfCSUrU8MzRlrz1COP03h2fdxiy9Wbr3vsPoTRmLnP5JngtCio= Received: from DM6PR03CA0005.namprd03.prod.outlook.com (2603:10b6:5:40::18) by SJ0PR12MB5664.namprd12.prod.outlook.com (2603:10b6:a03:42b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.19; Sun, 12 Mar 2023 00:45:46 +0000 Received: from DM6NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:5:40:cafe::de) by DM6PR03CA0005.outlook.office365.com (2603:10b6:5:40::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.23 via Frontend Transport; Sun, 12 Mar 2023 00:45:46 +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 DM6NAM11FT014.mail.protection.outlook.com (10.13.173.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6178.24 via Frontend Transport; Sun, 12 Mar 2023 00:45:46 +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; Sat, 11 Mar 2023 18:45:42 -0600 From: Brad Larson To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v11 05/15] dt-bindings: soc: amd: amd,pensando-elba-ctrl: Add Pensando SoC Controller Date: Sat, 11 Mar 2023 16:44:35 -0800 Message-ID: <20230312004445.15913-6-blarson@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230312004445.15913-1-blarson@amd.com> References: <20230312004445.15913-1-blarson@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: DM6NAM11FT014:EE_|SJ0PR12MB5664:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b892207-3379-423f-a68c-08db22931e06 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0UXOUyobkiECx7CVndeEvjZqGhC5wnlHNJ8+IdUNBMfbu1Vl/AeaRzgMpeJfc7bbEEhqJGID9nXPHcTmHOw/ygXH+dApGxsQ0s/JWf97V55mvHpzMDtq27FMWZo2yb4NGtHk0Xlhh4SJx1Kqh02Tnl4PX5Nfze9hOdMPzJka8jY2aW7xLztWUxL2yCc1Wg+K1JPwbWQwrYgOLwWHAOpPGSn9JaUHrNy8a78t8qr0xQ8STndvrMp1fZ3+gX74/yPhP/IeMlK2Sz8fPqVPN9OS6pqoehteK5xAxv1DkOZYDXT1ZI72LtUPsm/OvLTdX2e3WTa0AaegUgEH62I3agjXmL9mddeve9jlRwYZmxY0rMPzniGsvA9CC4MVPj8hyYZ3g3vXVpUt1mncD5fBWPR539Uzg58uHTG6sfV3PpM8pMaXNLMwbgtViQFxcD3bwhfrCZUQnmArO5wn0+M/kixDQA3uXg4/E1jhv2M/UHNflX6xI/3kOurqJAGswSjc1d26V8Fm3BtLWDN4ec+GQtj5VBlq9k14QKf4r01TUYlrbS+rtQzettZ27JECN6EBWKVZMHobfHD6FFLopZx7S53fIzJCC7MnzSbnHwRZrBZtdxMD+HMIvj6nmQgAB4pvIO/bsI0bwIzNx98wveKYUiZYVxcxljVsTi1KNI5tXvR1YZF78qOBDVAhHGeIziszClXNopCjGeFRzptp3iggkvpIjQwngTjoNxl20MLKIfsvigqIdSwRkVEay4lbnwPgPhSYO590jMI8ofiFxsIGm75nFQ== 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:(13230025)(4636009)(376002)(396003)(136003)(39860400002)(346002)(451199018)(46966006)(40470700004)(36840700001)(82310400005)(82740400003)(83380400001)(36860700001)(47076005)(36756003)(478600001)(40480700001)(426003)(54906003)(81166007)(316002)(356005)(966005)(336012)(186003)(6666004)(2616005)(40460700003)(7416002)(70206006)(26005)(1076003)(16526019)(5660300002)(7406005)(41300700001)(8936002)(8676002)(6916009)(4326008)(70586007)(2906002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2023 00:45:46.1408 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b892207-3379-423f-a68c-08db22931e06 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: DM6NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5664 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Support the AMD Pensando Elba SoC Controller which is a SPI connected device providing a miscellaneous set of essential board control/status registers. This device is present in all Pensando SoC based designs. Signed-off-by: Brad Larson Reviewed-by: Krzysztof Kozlowski --- v11 changes: - Fixed the compatible which should have stayed as 'amd,pensando-elba-ctrl', the commit message, and the filename - Reference spi-peripheral-props - Delete spi-max-frequency - Remove num-cs from example v10 changes: - Property renamed to amd,pensando-ctrl - Driver is renamed and moved to soc/drivers/amd affecting binding - Delete cs property, driver handles device node creation from parent num-cs fixing schema reg error in a different way v9 changes: - Instead of four nodes, one per chip-select, a single node is used with reset-cells in the parent. - No MFD API is used anymore in the driver so it made sense to move this to drivers/spi. - This driver is common for all Pensando SoC based designs so changed the name to pensando-sr.c to not make it Elba SoC specific. - Added property cs for the chip-select number which is used by the driver to create /dev/pensr0. --- .../soc/amd/amd,pensando-elba-ctrl.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/amd/amd,pensando-elba-ctrl.yaml diff --git a/Documentation/devicetree/bindings/soc/amd/amd,pensando-elba-ctrl.yaml b/Documentation/devicetree/bindings/soc/amd/amd,pensando-elba-ctrl.yaml new file mode 100644 index 000000000000..f1d3ed4f519b --- /dev/null +++ b/Documentation/devicetree/bindings/soc/amd/amd,pensando-elba-ctrl.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/amd/amd,pensando-elba-ctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMD Pensando Elba SoC Controller + +description: + The AMD Pensando Elba SoC Controller is a SPI connected device with essential + control/status registers accessed on chip select 0. This device is present + in all Pensando SoC based designs. + +maintainers: + - Brad Larson + +properties: + compatible: + enum: + - amd,pensando-elba-ctrl + + reg: + maxItems: 1 + + '#reset-cells': + const: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - '#reset-cells' + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + system-controller@0 { + compatible = "amd,pensando-elba-ctrl"; + reg = <0>; + spi-max-frequency = <12000000>; + interrupt-parent = <&porta>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + #reset-cells = <1>; + }; + }; + +...