Message ID | 20221207163359.26564-1-larry.lai@yunjingtech.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp287251wrr; Wed, 7 Dec 2022 08:39:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf4BsV2LGvnQT6cLLn/wmQLQMnsqtJR3PVLafxNlN53uIQ9EWxnO1sHuJAdPVZiPST5eMpLj X-Received: by 2002:a17:902:cad1:b0:189:892c:cfb with SMTP id y17-20020a170902cad100b00189892c0cfbmr49092347pld.105.1670431158545; Wed, 07 Dec 2022 08:39:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670431158; cv=pass; d=google.com; s=arc-20160816; b=pdkXB8OKjbxZvLy0aNJ5zh3gMPe/5HApPRYB4y99qp7Lov8YOPF4DPfPDvDxSQaQ0C WsQMjKyhD5jacPOgvcO7HSkZUXYnHpRFwltYnLezSlGvi4L5DJk0nV6n6O3Z0M0docjg 0QbvzVm6r0XtyVfU7VTYtB6wlLY6AbnM/YnRg326qWvenLMaOTs3ap8drXopc28xVjss 370d7yjQiVte7S2kOzY9R0+6usnrtollcuTLkBleF7RjZuw+/ct3OpcJ2sUh4td3MJ7k PzMlv18dwe/cetDHPBsuVj5I8yKfmUwjxOYW4nKEYHNY8PkL2tsFtq7+jsiJAAyX2WTm 9Gbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=th5K7qCdw71Hsl+OSuJn78TM5KDNp/c3T1w8rf21KXw=; b=eQ6ncQLbjKm+EBvNQEl/Cpm0X2u4WCK4zEWXS7vUIz/+RrKn5M5+KhOHLvWtk+Lqnc eK0J1uDDUOe4XdOhIPMhy1L3A7DXLt2djGvBcPzQC9k9IdSfLVJRwKQMuWMBnVW0/oLC GdTEf1ryN1lq71X5UcAU33V0mGb2dc0qUTIPqJRLSkoIbSBPjgaWpI6pVMseSNwwnixl QHakErAYVl/tRIc+1mlDb5I1JAaQRfvxGeumFRsVmnKErHGvtW1BUiCktagncgpAnFVR N3bniUWrBF4nfgILucmr0zPghPxyWbstHijf7LRHU269Mttx916UYUneiRfRA8HRFTPa 0cNg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=yunjingtech.com dkim=pass dkdomain=yunjingtech.com dmarc=pass fromdomain=yunjingtech.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=yunjingtech.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rm12-20020a17090b3ecc00b00218a33228e7si2013618pjb.158.2022.12.07.08.39.05; Wed, 07 Dec 2022 08:39:18 -0800 (PST) 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; arc=pass (i=1 spf=pass spfdomain=yunjingtech.com dkim=pass dkdomain=yunjingtech.com dmarc=pass fromdomain=yunjingtech.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=yunjingtech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbiLGQgY (ORCPT <rfc822;foxyelen666@gmail.com> + 99 others); Wed, 7 Dec 2022 11:36:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbiLGQgV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 7 Dec 2022 11:36:21 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2127.outbound.protection.outlook.com [40.107.255.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50DAE5FB91; Wed, 7 Dec 2022 08:36:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FdnqA/zIILjhZY3EAJNglpG0R+F1kFGP61FDtciCGt+mM6cQf9BWbLg5zm9JOJVgcN/v9pi9IIcc+tb1V/feuQ6iilZibrE9O1ROHWla0SyDQmdPWkA4huefVpO2FccDjm0JSvsUYkOUjo1PUEkSvSXQQZU/DnW4PjbXNHmA6GyO74SHb4L1V5sEcMrncERPRSo2m8mV8UzKkQ7ARqeBWXWFXGJeQiratURXT9eBWLcfMuYPs/HpK6UNKX6ELt1oKCRTYY1lS/K7stj1a76Lg0WrYJNR2z1mHi4A4FcuP+TFOsxjbq7qZNQNjWQrHJMBy485t5MKQgfD+vKesyKSSg== 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=th5K7qCdw71Hsl+OSuJn78TM5KDNp/c3T1w8rf21KXw=; b=E1h4poGaA9syxGA5fVC5QS2UtZpHHBSw1+0hBY4ypvxdKSUGNExD48+kS8lh7x+uPIZ/Kj06jZgciv1LTXZe/KsZVgpXH3mAQsOoNYvaBxLW7YcHkQM/alWCva6OCyEwaYlSGg9oSmP75Vif2THnJ1GMd0t1Myd0eTp4EyLlVAihik4iEhl5C/dgmTP7kQy6eR60y1LsWkvmIdveM5YUj7jTGSXLs9IyyDi37MOrRWg/eLhdTjuyNee3mw8QKm83W7oWCW5aD1H59S4yXaA4YNqwrGlvncxEu5vRYsyMUV2SwKv4Ps2m30XZeCc+ny2HDCQo0+Tb9yHxqAsapGTijQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=yunjingtech.com; dmarc=pass action=none header.from=yunjingtech.com; dkim=pass header.d=yunjingtech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=yunjingtech.com; Received: from SG2PR06MB3742.apcprd06.prod.outlook.com (2603:1096:4:d8::14) by PSAPR06MB4278.apcprd06.prod.outlook.com (2603:1096:301:84::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Wed, 7 Dec 2022 16:36:14 +0000 Received: from SG2PR06MB3742.apcprd06.prod.outlook.com ([fe80::5e0f:1a7d:ea7a:8b81]) by SG2PR06MB3742.apcprd06.prod.outlook.com ([fe80::5e0f:1a7d:ea7a:8b81%5]) with mapi id 15.20.5880.014; Wed, 7 Dec 2022 16:36:14 +0000 From: "larry.lai" <larry.lai@yunjingtech.com> To: lee@kernel.org, andriy.shevchenko@linux.intel.com, linus.walleij@linaro.org, pavel@ucw.cz Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-leds@vger.kernel.org, GaryWang@aaeon.com.tw, musa.lin@yunjingtech.com, jack.chang@yunjingtech.com, noah.hung@yunjingtech.com, "larry.lai" <larry.lai@yunjingtech.com> Subject: [RFC 0/3] Add support control UP board CPLD/FPGA pin control Date: Thu, 8 Dec 2022 00:33:56 +0800 Message-Id: <20221207163359.26564-1-larry.lai@yunjingtech.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0033.apcprd01.prod.exchangelabs.com (2603:1096:4:192::23) To SG2PR06MB3742.apcprd06.prod.outlook.com (2603:1096:4:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PR06MB3742:EE_|PSAPR06MB4278:EE_ X-MS-Office365-Filtering-Correlation-Id: d2cc29f9-2313-46ab-046c-08dad87127e1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YTGTd4PJ8QC+YaIxTv6acPN/8yf7MXyV4khnZjkCWyYat9xBK69gXoA4c+NbGjgw3LdgomfLPlNeyBmdFdqBGD16N2RTIdDxBR7EEJw9OSj0KMsA7oixHZEo0KhIyeYj2uGEoSdWpbGrPaEmjoEPYMR9dKjX7jjBO7THHao8/IrHp8sPQX9vB2Yn0QfYfSYqyBy0IC12BBw3rFJ/KjrI5W52374hzQzpImV4u3sISRnR7tDfwaocwuq3Enu0CxWYJIGR+eL9SfH9z3T3sYvrYJfmz7bEarl5qyCNmLqhwMt2ughYa+PytY6SzWq/GeUrihoH2765q34N/gvHBL9wKw50ZnwpQD/A1Ow9Ay+/TbjjX5uAD2oo2Cpsex8HW3caTBiX9XRJcVgpWjdfIzrPiWCO96REgFsxoerYWq8Bc4ZO45Sb3fVC5Rt84WapfGHubu0DG1dz4RPoVlyVOkeNMs67nY0gUwnoODqAkffXPkYNW+NXEsLKWssp+T1PDVpwraRoNu/iHV4L0fdIAst02zFSlsMssuDXHOAQ/JMMseSPtPsDCVcOivZoMHaUKpi5YPc0jETYM1YAP+FBHPbgMWtSW19fJae5gBIJsRaO98zPWY9zrWz/iguVmillx3pA2UrMHPgEhrT/y8nU3U+vOO3iLS2Rmc9KEpGBEPgju+EVXLDdUigBm4iTHVzWdz2nrlZTuSFCoNGpv978jnteT/wsu2IwInY2MLMEC9k44zw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR06MB3742.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(346002)(366004)(39830400003)(396003)(136003)(451199015)(38350700002)(38100700002)(2906002)(6506007)(36756003)(2616005)(316002)(1076003)(86362001)(5660300002)(52116002)(6512007)(66556008)(26005)(186003)(83380400001)(8936002)(41300700001)(4326008)(478600001)(6486002)(8676002)(66946007)(66476007)(6666004)(107886003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qcqTrkjRBdZrtovSYwJglAeM5TkykkxCVQdZjm3HbtIWXlAmEMbbqFnnYvvmelxlngO+7+2dixMYygwdMEGr9ORksQwwZtOAuYABIGlON6tj9x0SDm1Hzssx4YHtGsT/5sqLaDMPCV1MbGU49RBiGWtMPRWOVHtPHJex8TFllfgalvJ1ItwraySP3zbWvZpaj6eVWfB87HRTbvm/e3EzG5w4+ahgitWnZzrSParZrUkDjZVdvvIwEh3+EdSp55enqWQHnDhRMo8Y0+9M5aNkHw0uK5Y7DMvm+6KPbPHNUk4ho7ky0RCmSQe1uFOaqa1nBdgWAAxYwWRXmMlVYTfCCiWBznIh9ddeFQa4jjdO6a/G5GyDO+hala3ZuwJXf21Wl265kPWV9yr+dpi5JQhg9hH8OpW/RONiK4XyDvG5l6YaM1KiI1v5hFLB1dlNHXTAJY7bAztVJUQU6uOBib0HCDKr/MwBfldgzrOEwcrPTjin9mpGdPrgRFdfB8yBE9+H2Sh1FBn1VI+XXfL2SQPmh6P3aYbWkvOOM4pX1lyCSuP7LR0a31HK9YHpyzzVuVNdCeAArd/2P+csZkwzUPdbyXVdtOnEuYA9udmPjeNZj3LwAtPazd0hdtM+llUbF7VaVgRUPLcBG0AcR5vcAbkLk5/2nsucK3Twftos3gdG6CUX5SnNVmwZWsNRHZrFLBX8MbHjU3W+GDgIx/wDU1m/WY4OqnPznWt9FG9W1wXF+uJphlQ0phsMTiaC7IDQCiREkhzScsxQKO+CrMyci3CbqVf9uJsSt23/CEE9rOWKyH1xvkC+RTK0j53qn3htig9wgtSr0y1wMQomdlXZejtNv8NNzwpyigkeeDc+PqwFIZPUXQmQNPITPet9jIFsddWNYTBXcdVenZHha0jvo07gfmdeOziN1p++AJmA7Y5NXs6XBkhuBVV6JEL4A9ZXY99PQjrrSbLDbZNyNgeoh5B+0M96RUhx06m7YmLlsTWRH7sVKSh7DkNtk5Om+xfvtUM9A7g+KLUaEfQG4sB6uxzBoGoVWUzQHi2cb9TT2603DWH7kxu+n4oslDPT/eVY2UKHE8l+oHNw4DMqDmjc38kMd3cJ8BWF+FXzO0sFQ7d67hALUeY8T8Xfzq+YhtrxzbsEc8wZBZfC6jV6ishBmPjsut/ARvcFJeFIDh9ZY4DS9ZIZffkVkdKbmrNvsWFLZZVN03Uk11aRmjddz8/mtHr+qNKnUYyf5o3vscfXYwjxshmuvT/u/SR/1PFHrAx47Ws+Ll21asy7Op7ruMnVFEYlqWYLmPdvgpznz6CsDFj6Y/8DA7N4pngP7v8/jaTyD0wXnwzdifkEt/rnv2YxCxa4QRzVYl7Z0jaioS0QkHIsOJFFXbvYnlUWALU7NeRDgKbaKQND9yFju5WkGZQ31p3Z8QCJQTtQ3ywVNMXzaMxVxwD+HhcoWmBd5V63qnDy+d7cozZjL6zHMkDlFKl1cDMlfghXhRNFGd1WkAhMt39Y7iPACKh2ZQYCY83Ql2hAj0eMagyGJo/KRjLspY/LiP0A58ZnNh5sqLRRbt4L+991jlecwWGPEFwW/NnZCDjkB/yh2S4apiLIxhESGh5bRW/vYg== X-OriginatorOrg: yunjingtech.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2cc29f9-2313-46ab-046c-08dad87127e1 X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3742.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2022 16:36:14.0652 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: be2d5505-f7e6-4600-bbe2-b3201c91b344 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oGjIbI5B9p2aUR5U03nQy6IL0x9IvEvb2cVbuGUeDaENqYrmNuN0tJdAN+UJkRx5xNtxNuSKE/P9rs74+Dem/3Tl7642jqSNpjwSL+98aQQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB4278 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751574022591153577?= X-GMAIL-MSGID: =?utf-8?q?1751574022591153577?= |
Series |
Add support control UP board CPLD/FPGA pin control
|
|
Message
larry.lai
Dec. 7, 2022, 4:33 p.m. UTC
The UP board <http://www.upboard.com> is the computer board for Professional Makers and Industrial Applications. We want to upstream the UP board 40-pin GP-bus Kernel driver for giving the users better experience on the software release. (not just download from UP board github) These patches are generated from the Linux kernel mainline tag v6.0. larry.lai (3): mfd: Add support for UP board CPLD/FPGA pinctrl: Add support pin control for UP board CPLD/FPGA leds: Add support for UP board CPLD onboard LEDS drivers/leds/Kconfig | 10 + drivers/leds/Makefile | 1 + drivers/leds/leds-upboard.c | 79 ++ drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 + drivers/mfd/upboard-fpga.c | 669 ++++++++++++++ drivers/pinctrl/Kconfig | 14 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-upboard.c | 1384 +++++++++++++++++++++++++++++ include/linux/mfd/upboard-fpga.h | 58 ++ 10 files changed, 2229 insertions(+) create mode 100644 drivers/leds/leds-upboard.c create mode 100644 drivers/mfd/upboard-fpga.c create mode 100644 drivers/pinctrl/pinctrl-upboard.c create mode 100644 include/linux/mfd/upboard-fpga.h base-commit: 4fe89d07dcc2804c8b562f6c7896a45643d34b2f
Comments
On Wed, Dec 7, 2022 at 5:36 PM larry.lai <larry.lai@yunjingtech.com> wrote: > The UP board <http://www.upboard.com> is the computer board for > Professional Makers and Industrial Applications. We want to upstream > the UP board 40-pin GP-bus Kernel driver for giving the users better > experience on the software release. (not just download from UP board > github) > > These patches are generated from the Linux kernel mainline tag v6.0. Why are these patches tagged RFC now? Weird. Came to think of this: Shouldn't the subdrivers for pin control LED etc have: default MFD_INTEL_UPBOARD_FPGA i.e become y if the core driver is y, becomes m if the core driver is m. Of course it is possible to run around in menuconfig and activate them all manually interactively and be frustrated that something is missing still but setting them default like this saves everybody's time. Activate the MFD core driver and everything else comes with it, then it can be turned off at request. Yours, Linus Walleij
On Wed, Dec 07, 2022 at 10:09:35PM +0100, Linus Walleij wrote: > On Wed, Dec 7, 2022 at 5:36 PM larry.lai <larry.lai@yunjingtech.com> wrote: > > > The UP board <http://www.upboard.com> is the computer board for > > Professional Makers and Industrial Applications. We want to upstream > > the UP board 40-pin GP-bus Kernel driver for giving the users better > > experience on the software release. (not just download from UP board > > github) > > > > These patches are generated from the Linux kernel mainline tag v6.0. > > Why are these patches tagged RFC now? Weird. I can easily tell you, this code is no go, too many problematic places.
On Thu, Dec 08, 2022 at 12:33:56AM +0800, larry.lai wrote: > The UP board <http://www.upboard.com> is the computer board for > Professional Makers and Industrial Applications. We want to upstream > the UP board 40-pin GP-bus Kernel driver for giving the users better > experience on the software release. (not just download from UP board > github) > > These patches are generated from the Linux kernel mainline tag v6.0. I have just checked the v3 (previous version of this) and I haven't found any evidence that I gave my tag or permission to use it. What the heck is going on here?!
On Wed, Dec 07, 2022 at 11:36:37PM +0200, Andy Shevchenko wrote: > On Thu, Dec 08, 2022 at 12:33:56AM +0800, larry.lai wrote: > > The UP board <http://www.upboard.com> is the computer board for > > Professional Makers and Industrial Applications. We want to upstream > > the UP board 40-pin GP-bus Kernel driver for giving the users better > > experience on the software release. (not just download from UP board > > github) > > > > These patches are generated from the Linux kernel mainline tag v6.0. > > I have just checked the v3 (previous version of this) and I haven't found any > evidence that I gave my tag or permission to use it. What the heck is going on > here?! NAK to this series.