From patchwork Sat Apr 23 03:43:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Bakker X-Patchwork-Id: 12824403 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 95D0AC433EF for ; Sat, 23 Apr 2022 03:44:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232230AbiDWDqy (ORCPT ); Fri, 22 Apr 2022 23:46:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231960AbiDWDqx (ORCPT ); Fri, 22 Apr 2022 23:46:53 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam08olkn2027.outbound.protection.outlook.com [40.92.45.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3191B19D491; Fri, 22 Apr 2022 20:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gUAbvjqUnrx+LMChm7FsCOnhPTG0tLrxbM9sUywIcH5F6XwtusuLNF8zMMJ0TWybuBuO5RLnT46eFo8TPJIu/MMajAuUukNqClVb9krzkCylEKci77XRT2ZBQhe2MX2GWSc7d89T2OUV5cX1O+6RxSKKwkYVZsN8DzDa6/dGTyp7L6sH68WjFjqKP42rMe5gypcwfTr4YII7r08yXuquDik1OqyXiqTzIYuESA6Cqgm1gBkzyf4N/I6CGNRp0lGdt5Q5Y2k1fn/7fwX6R8zXZd2H06MdA/LozUzKu6NZSCVjwm0BQFJQ+Ad3r4FkL6BriaKAHBoq8FT7nlIboxYOyA== 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=jL4dcz39su7NoOZeM1ZwxE69Y9kWjJ7OI8DGwkRHJBM=; b=K+HM1JZtOFNiJDiKDpJ0mg+uVCudPy0azI6IsjZs2bJXp//UJRIxzHdkJi4sbJjCyxZTzrlLrbcwEgP/+feBJiIlDP9R8DoI1M3FsfovAfMWNGS2zQw/SrkryKktR5UEsCTVM9IrFxFvRubDlEyypf0kjFfRVdycBqSxgnhKlOCzkGMc2cL4/uexVxBF1JFBbEPLrpMcw9bW/cD0LbNO/+nt2kAiC90SQJYWuXIBivPYa4u7AxOVEGS3GzZWS9ZrLX5SS0FddT8XHmXPe/4TNCheZnf6fkzXRFNYgwPbJh2Rs9MvK17P4tF6/WzwVdxpisLyjGqVtmZeQLTyOqYv5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from CY4PR04MB0567.namprd04.prod.outlook.com (2603:10b6:903:b1::20) by SN6PR04MB4205.namprd04.prod.outlook.com (2603:10b6:805:30::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Sat, 23 Apr 2022 03:43:55 +0000 Received: from CY4PR04MB0567.namprd04.prod.outlook.com ([fe80::8e:6e22:f98c:29d5]) by CY4PR04MB0567.namprd04.prod.outlook.com ([fe80::8e:6e22:f98c:29d5%5]) with mapi id 15.20.5186.015; Sat, 23 Apr 2022 03:43:53 +0000 From: Jonathan Bakker To: Miquel Raynal Cc: Kyungmin Park , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Jonathan Bakker Subject: [PATCH 0/5] mtd: onenand: samsung: Add support for device tree Date: Fri, 22 Apr 2022 20:43:11 -0700 Message-ID: X-Mailer: git-send-email 2.30.2 X-TMN: [oHP3j3Exn+1rF6bz4+niH2QFQiO9/w71I0JahMnzCuDIaBjtLpfeaHABtma9lTat] X-ClientProxiedBy: MW4PR03CA0329.namprd03.prod.outlook.com (2603:10b6:303:dd::34) To CY4PR04MB0567.namprd04.prod.outlook.com (2603:10b6:903:b1::20) X-Microsoft-Original-Message-ID: <20220423034316.366488-1-xc-racer2@live.ca> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e32a0330-3a2a-488d-2126-08da24db7c99 X-MS-TrafficTypeDiagnostic: SN6PR04MB4205:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NhN4ZC1ILRhdUhV8/YAQ0rNJP+6H304QgzCH77K4HvJlkn1I/76VQt0g9R2NjsMkZJkpaxM01NloHXz0SPxpcSbqXwuIKE9jBZzZKbsBs4gqLyyRj9IYqLo6bXEJguVvczSqUPrj10SdCjDXlyBAQsdLtudGVyS2XQIV284V4XtAexaAlaPAVP7tB9Jxp34/31kaEuXsQHVwC31pcVc552U77+qAOeDZrg9K9kxm4brpQOsM7A4MYBN3kDg0pMoB2te6A7Dd48a15GqML9FaJFsmf/oQ8U+o7KBDDdN2EUlkAxb6MueWCxpVpjj+ZHEMxQDMCD3nWWIyN8j06rOxApt3tF3v2gJN1fsiYxKkG+egSI6lbAQQFALVu7WQopHUQ1zW2uCorHUWqDcaTQCoWC3E0HYe9rhD2oAZzcdKJfRTZ/NmywENRRCgGHJ6TjiYhF/GV5feD2z06ypZynD0hk71u4LhQc2VMJHc1yVxgzmKOdu+KqI5N3s/g/MixrK5uFB7Qi96s25T4D9IFsAJ9Uqegszp9o/eZCIypiAhKBkmFSqTSbNaDdMmdAY99XMj6KHzF4MACWxMimG3A0Ol7KkqgwrKcqZXCA/SLf5HDZjPmRmsyMSZbJYg00WFtjux X-MS-Ex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BYzPXPmOs?= =?utf-8?q?w5/DQsDrfOR4a03qv7ekEi38pr5Oda5P6LOlgt9z6Z5JglA5+KBlZtEhQlXfxQb5e?= =?utf-8?q?0+WBBlRMTq7prnN2olVVwpHCu5Zfak26BKDqnjPEJYjdBHQcsbwUonaBDDys5j6Gz?= =?utf-8?q?GFwiQ5vngpqTa1m95miXx7WDRBWtyZIJ0owSfgpZ3DFdaDfqUBbi/2AgBcDodgNMw?= =?utf-8?q?5bsu34yTO27oPDmAViMNQsCeM/Bf5/qfw1BlOPQ7MwzTvVqZx1lEmYFnlsuCRFuXC?= =?utf-8?q?VC3mSzKO6XxqEwWDNCGQVM70qpXPkab1afqMU3HSLs9C9Fg6CECZdOS6i9qbwbW0U?= =?utf-8?q?0fQx8EaCwpbFTrKR7Xq6isS7to1+gcQa8WGzWEkgOpmKMaP9anntBOYRZnc2zgR4R?= =?utf-8?q?v+pNBdeIUIEMFGWj7K3Tar4101RbW/v/pW9kVHPTy2GzW3iMzZZKHNY2g788c3PyW?= =?utf-8?q?zUqukIUx3yWCTiYMeBAqyzXFrF3fyKiGWCMpjXyGwUfbdV3/1lDlgkHf1DKQJcnaP?= =?utf-8?q?fKflpS0L/jmGSi8WfNNRGOdCjd7Bk9+LVnCzxPJ9VvSECh45pplU/oy6ygcvf19bV?= =?utf-8?q?sI3Luvo6Pw1zPhtcvvsuUbrtj0UCDMjH/CprrPPhqpjrRkl2b2aQKNzrs=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-edb50.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: e32a0330-3a2a-488d-2126-08da24db7c99 X-MS-Exchange-CrossTenant-AuthSource: CY4PR04MB0567.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2022 03:43:53.8662 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR04MB4205 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This builds off a patchset submitted in 2019 [1] and adds support for DT initialization to the Samsung OneNAND driver. Compared with the revision posted there, the binding document has been re-written in yaml and changed to have a separate nand node below the controller. The patch unifying the resource order has remained unchanged despite feedback - I don't seem the point in splitting it into a rename and a unifying as the renaming would cause the variable name not to be representative of what it was. I've collected the R-b tags from that patchset, but dropped the one from the commit adding DT support as it has changed due to the different DT layout. [1] https://lkml.kernel.org/lkml/20190426164224.11327-1-pawel.mikolaj.chmiel@gmail.com/ Jonathan Bakker (1): dt-bindings: mtd: samsung-onenand: Add new binding Tomasz Figa (4): mtd: onenand: samsung: Set name field of mtd_info struct mtd: onenand: samsung: Unify resource order for controller variants mtd: onenand: samsung: Make sure that bus clock is enabled mtd: onenand: samsung: Add device tree support .../bindings/mtd/samsung,onenand.yaml | 89 +++++++++++++ drivers/mtd/nand/onenand/onenand_samsung.c | 120 ++++++++++++++---- 2 files changed, 183 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/mtd/samsung,onenand.yaml