Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8545845rwr; Thu, 11 May 2023 02:52:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PrN/XrbG8Z9LCbAe7J/+yzRWpJEjuixQUL39ntC7FIMjX+iQhbA1SqHopabF+QmnsXnPO X-Received: by 2002:a05:6a00:849:b0:649:dd0d:69d1 with SMTP id q9-20020a056a00084900b00649dd0d69d1mr795289pfk.31.1683798775600; Thu, 11 May 2023 02:52:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683798775; cv=pass; d=google.com; s=arc-20160816; b=yiq6KD2DlLaZtw2aeZPqe5Z6MMH366y7zifX4WAJaJ/xp8CBH6Fz46wgQCWTbGMo35 ETGp9CUfk4cluDTKsibCcJJ1zTxUIIFvgGtE8WSvNP2IUnRJCjyckylASXZzDPOmYHuM DIV+AvMgwkCyqieHa/0HCA79BSIXjqm+LuCexk4HVKct9v1tfXfmYBAON9dosYVnUnGI rhC2MLJIw48sClmTlBg1hmdzzS5NNpDPven72wxyHfCLY6AMQrmqdYya9egAPQ/dxlBQ vD5RLsVpzfc7b6mqlniCwPRKPSEmg0zRcHroAz8kjVFyGnLiW4wADZAaSSqVQXfxIhyi LEyg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z23-20020aa79597000000b0063b85b18764si7310755pfj.219.2023.05.11.02.52.40; Thu, 11 May 2023 02:52:55 -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 S237617AbjEKJuE (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 Content-Type: text/plain 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: =?us-ascii?Q?YA3tF5onddJwT3HUobdiUCtcULzu/sfYT8TJCj3mo+zm4zlnd/RpIMNmj/5K?= =?us-ascii?Q?IdxRjuVcT0DJw2BGDeyX7BRcx7fs5g23tMKC57Jo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HLCxn3c6PYCOWrp1XEdWBaWicmDPe56TA5ZHZlgKDQ2cuU4w0?= =?us-ascii?Q?ldUQBLlAVkpdGr7JQNaYFb0sVePjQbSGp/B3NfiZ246f8C29uHJJZzfhmGyL?= =?us-ascii?Q?3gMFOrd1KGtc4KSvMBZwTEdgeKQ+csWTWjjeYV3xAWSdNsvFOKYuK7bqqpXU?= =?us-ascii?Q?OBq4yRGuJXrHIfiEpGFatB5oIdFtZaZlGS5xycQvXfemwFxEmlSpSFxiX5SH?= =?us-ascii?Q?5ldAGp3ObkTIEEmzBRMiTNTREjQPIlvU95RmX0lXgglvkcRqZS/UUVsmIlsS?= =?us-ascii?Q?OlqC809g81zM8ghwP7KV5A/zYHdLlfAb4Sfr8TWpFRuTG8lhnGZ/imEaW3Hz?= =?us-ascii?Q?saXJW31gWwI7RV5Mvj0/LMfhEE0KFvyWAMn9HhGDaozXJxBJ2cfZZwNVAjEI?= =?us-ascii?Q?wVcHHYKI+LpsFSVaEfeyqigX+PLLjydlMqo6NrUZb1lmbMTspGiUYR25+ynz?= =?us-ascii?Q?FX5q0YNRUIUFOKjDEjlrgW515fjY3oGJXfnvUeyH55n79/Xp8rwY6iRZ0hnL?= =?us-ascii?Q?sRMcxkULigqW1aFBglwjWR7ZqA7F4bgAve/FRW5Smhis1DAwoNthIbPVx6GJ?= =?us-ascii?Q?RAYVy2Nsp2aTOpp/q85wYZmon+FWx9S6P3paqyw8XU5/oCMvesKlGQ2pIggz?= =?us-ascii?Q?8A=3D=3D?= 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 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 -- 2.17.1