From patchwork Thu May 11 09:49:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "larry.lai" X-Patchwork-Id: 9196 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4241583vqo; Thu, 11 May 2023 02:53:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qaN28VVBm4z82nWHNJ+auLX0yHPaLGe784ja69DKEn3aZbEDtUh8+qrXeX8dhKT+2IKhr X-Received: by 2002:a17:902:e545:b0:1ac:544c:12f4 with SMTP id n5-20020a170902e54500b001ac544c12f4mr22695514plf.2.1683798780401; Thu, 11 May 2023 02:53:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683798780; cv=pass; d=google.com; s=arc-20160816; b=VUrHRZx5txJq4WwelndCt6wipszBVr2FKVzl0rr3YDYYkZNryh00FZ/ZP7qfoZjRiR CbF6K4g+klnMFyw4vXsclRPSpvBPdTMiqW0pPQWOhXjdhWCfpI2EvTKRJe6qG2zO4owz Uqkc9KIZ2wiUJXM2So5lplz+WX+KJY9VnI4jgyXbhGTGmPmWu89HbcEcRzkHCq46Wg1/ fPduiTkloW6LtiaRsZ6Ps0qgNrwP69cg81hW/FS1EccAok3rlFsbLNhE00GE8YpMObOS pECImXIJEGqel00aTd1q6k1Xd7JnAqfMG3JmS4lHlNxKcGmiZmk5v9EeOSUHEh3cNkfw 62jg== 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=C+LpaE99Dk9rDWITVPGt6Z5kUPsRwWaajNsKvtpK1nA=; b=S3CB5HYhQiWz4NjDTYJdB0KW/mRlKDTpGjjYdrHy5StIUJL9IqUV7wCorvpfUZLOf0 PcOA4lGF+EcqN+mCXiezzS/ykk/zt5CYDJS8efpoQhdk/gUhVDumF5HgAEwHu5vMqzul qRbUyyYFLIvuWZJsAPhSzB87hT2wZp4kbKakI1/zYWDm33GCpqfaUNxGjO093fhlm3oV yOwwGwzZhVXbWKDxOQAfR6vWA3f9IcADqC9Nc/DZ+/wJ9z/cY566iYxANkUI3CpMekil 0bYJTRRphe0BrgRaIhfVIeuXZKN7ehJChqLr9FNqo8/POOG6dSxsjbeZHZaQqSoaNiBt qyaQ== 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 i2-20020a17090332c200b001ac62935789si6946815plr.468.2023.05.11.02.52.44; Thu, 11 May 2023 02:53:00 -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; 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 S237710AbjEKJuE (ORCPT + 99 others); Thu, 11 May 2023 05:50:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230292AbjEKJuC (ORCPT ); Thu, 11 May 2023 05:50:02 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2103.outbound.protection.outlook.com [40.107.255.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDA5E1711; Thu, 11 May 2023 02:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jSo8tCk8DpO60pGsh9sHbT7SStJPjrQnOq/9ehjySBJhQHlkig/Gbw3n0tnk06jgAp1fs0Tpye8quEuyxCRl8aPJi8zYZHXoEtbRkeGyKTdbL6l3i/Ro7xCRJqEFRPalKzl7nlel9iiJfd0jMJA6mIm4v4gIdDFfmDXQKt6PJwQpAWItRgQsO9BXoU6ycaQID8b1lLcHfS2GqPHlpltvrEPGYoAfJgBKNZpT6lmT8To1A9vAzczUkUedHKAAKX9EOj9+Xfhvh//zbELVLK93NEEPyGdsw9QFc4dii5D0hPvFxhbSSfpCFrgXjL+rd+kurBoWfBeRD5lCX3r0/ZOLTA== 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=C+LpaE99Dk9rDWITVPGt6Z5kUPsRwWaajNsKvtpK1nA=; b=VrFh81vLJoa2GYw2TdIXZtEMql5pn6DqL5UhyiIflxEYoulacZFjXmTTZC2xZp+QU/pkhGI4U8jllbvVC0V7ylkm85Eocj3p9ClOiCa/r5/b9Ohod+U8VncSM4AEDsd4TXciaEaR8pZgMwzSBTGgMlmdpTg7eKF/p9/6PdFOaNPa4Xjlz3gt9J9u/vDBC3dMte0Hp5J1tBBp1dC6DqQX6C9uByXqzK3fYdeONPvW1Y3nFfjM58RDQvBDQNDfTUN4FFz1t7ajOERmh4AWB1q2FrRa9BnnUcMt4SmOMznaIjfl1lFC1MYDQAxzpzCFtKj3Ec9N/uwgnNf24KcGZiQOEw== 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 KL1PR0601MB3876.apcprd06.prod.outlook.com (2603:1096:820:2d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.21; Thu, 11 May 2023 09:49:56 +0000 Received: from SG2PR06MB3742.apcprd06.prod.outlook.com ([fe80::e5e4:d643:2a1b:fea0]) by SG2PR06MB3742.apcprd06.prod.outlook.com ([fe80::e5e4:d643:2a1b:fea0%3]) with mapi id 15.20.6363.033; Thu, 11 May 2023 09:49:56 +0000 From: "larry.lai" 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, michael.wang@yunjingtech.com, "larry.lai" Subject: [PATCH V4 0/3] Add support control UP board CPLD/FPGA pin control Date: Thu, 11 May 2023 17:49:31 +0800 Message-Id: <20230511094934.4941-1-larry.lai@yunjingtech.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SGXP274CA0015.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::27) To SG2PR06MB3742.apcprd06.prod.outlook.com (2603:1096:4:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PR06MB3742:EE_|KL1PR0601MB3876:EE_ X-MS-Office365-Filtering-Correlation-Id: 82f90b29-f3b4-4ab7-ee3d-08db52051353 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Rm4SD+6Wf3GcSJklRhq7rMFHuaNND++xne5TEB8wMA5gBRFHVYSIJiE00twlwBi3R/yUCQxg+hTht2zmyPAIYfdMorutY+tc99RJH4omZMqK3sfJAUwUB1oE1NK5LcS01AnUL+FhsVV6iFWZurE3F29PkVqFJTptIjcuxGs6FsxcwlXM9vHboOUNN/gWfngSbt/mEipYf17986CjdXFfB30uYHTi9uOQMdqgYhIsr+1pEtwrsuccUCYarjbvn4w2s1T2BwyrvqmvKk9crdmW0vs0Ck3rMdpxDkvkZRmuvj7a0Agb0wV/SpOceec4I9S3fltnluQ30VpTTq7zFLLHbsDlJllTliEoHEGKVvM7Nr5LPVJPtkaZLa/LGGCbBGWJNEVs35HCUkELMHofu0Q6qmALt3IghA7EXcEoaOLCbdEY69b65mnyEPxwY5Q1u4d+8wUE8i2b3jxNwrTvplUdKhg+jmckV0qhAlCm1wlH6A5gDAKSAMhY+w7EVcPRI2CQDWBxH6HQmFEwp3DbKs/B3kZ6WptGdC4gWL11mCv/IjHVJ+aPfQDkEeB+CKIKMADNck7yH8aOXHdDoOmB9CG5eQDQGbUPGO2JPHE17wjFIFw= 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:(13230028)(396003)(366004)(346002)(376002)(39830400003)(136003)(451199021)(8676002)(2616005)(2906002)(316002)(38100700002)(38350700002)(66946007)(41300700001)(86362001)(8936002)(66476007)(4326008)(66556008)(5660300002)(186003)(478600001)(36756003)(6486002)(52116002)(6512007)(6666004)(1076003)(6506007)(26005)(107886003)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YA3tF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3gMFOrd1KGtc4KSvMBZwTEdgeKQ+csWTWjjeYV3xAWSdNsvFOKYuK7bqqpXUOBq4yRGuJXrHIfiEpGFatB5oIdFtZaZlGS5xycQvXfemwFxEmlSpSFxiX5SH5ldAGp3ObkTIEEmzBRMiTNTREjQPIlvU95RmX0lXgglvkcRqZS/UUVsmIlsSOlqC809g81zM8ghwP7KV5A/zYHdLlfAb4Sfr8TWpFRuTG8lhnGZ/imEaW3HzsaXJW31gWwI7RV5Mvj0/LMfhEE0KFvyWAMn9HhGDaozXJxBJ2cfZZwNVAjEIwVcHHYKI+LpsFSVaEfeyqigX+PLLjydlMqo6NrUZb1lmbMTspGiUYR25+ynzFX5q0YNRUIUFOKjDEjlrgW515fjY3oGJXfnvUeyH55n79/Xp8rwY6iRZ0hnLsRMcxkULigqW1aFBglwjWR7ZqA7F4bgAve/FRW5Smhis1DAwoNthIbPVx6GJRAYVy2Nsp2aTOpp/q85wYZmon+FWx9S6P3paqyw8XU5/oCMvesKlGQ2pIggz8A== X-OriginatorOrg: yunjingtech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82f90b29-f3b4-4ab7-ee3d-08db52051353 X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3742.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2023 09:49:55.8318 (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: X5FI1hyQ1LmJZK6yVGJY0g61oG2cuyEPsVvRYyeM9+rRFF2UdfAJAjit2ylK0wuWNkbA7ALP5U4UjqNOdSk3ZG47VKJPXzBjs5fLaNZKPAU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB3876 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,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765590989699112117?= X-GMAIL-MSGID: =?utf-8?q?1765590989699112117?= The UP board 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. This is the PATCH V4 and fixed kernel test robot compiler warning and remove mistakes with wrong Reviewed-by tags. 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 | 526 ++++++++++++ drivers/pinctrl/Kconfig | 14 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-upboard.c | 1296 +++++++++++++++++++++++++++++ include/linux/mfd/upboard-fpga.h | 61 ++ 10 files changed, 2001 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