Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4008134rdb; Thu, 28 Dec 2023 07:16:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeuTYfuaO02xDK8VWi/4LjNsIKh6ofVEaoxpU5DtgJ0eswwvkFVhhgSaoXTRDNbl0iEmdU X-Received: by 2002:a05:6512:2316:b0:50e:7cbf:7d83 with SMTP id o22-20020a056512231600b0050e7cbf7d83mr3154975lfu.49.1703776591343; Thu, 28 Dec 2023 07:16:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703776591; cv=pass; d=google.com; s=arc-20160816; b=yLgzdvdoKXjCNWGhuCCd1XXguraxIBEGbwOo69EKRStym+ZsxJ1JeWjBC6Gy9AYjxK zPKor9u5voMNRdEwEi6cU0qJIgVGCmvJpkAw5u8Cqi2hZXNcRKiuPksw/cfXhbmKTHZ7 JWkyijb5nogftuW3J6zRq4xDZfAvnlFBgkxtcDdaIwALirS6zdnNGj8VOE+pLNaXr4mR O/MnMvx4+Fc/Kg3vluhjp5TW/1lZTuiE1gonD4NnwjANhlhHsOe+ei/Xvp2SDEHRlRVr 4nWsuRTreTtXILSmDDh5nZX0NJ/5flJTgNto5holOlgNZHnf+e7tsBpxBYNcThuOLi5A +Ijg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from; bh=+kMX+iaQF7eV2eG4yRS9BO0ucCvnAayyILyKPd0OpWE=; fh=mMpOGH1uDr6CJkeIun1pXHM6wCr/A1i6ZuMbhWomeG4=; b=N4IkJ+0+rCb5KaPoRfSycEHYzR38bEfWa05iQqbzA+NGPGXTf+O0HM3YEUQfRkRjxt K567MeqXBP6zowjfE8EgVPGMqtPo1+BKe7VRq0D5ZKmxKcUo3uK3Trs/fW4AdzPf32H2 EviTLODRWcTkxXbvRW674dxTg5p8E7oxa5JrPeBRS4dsk9BpyLNumNPDHxUhXU/Grhz7 gVmpcUa1aILQdCav2kYWR0T5vpGQRMIuSrfb68eluKtsxrGkkxPn5RmuzYCe8ypi3nOT iQQLfjuMKer6bs4qPokKKVjUjyIivZRMrKF84qDp4u714ohsY22NZnVPZj90ENqOHHwo 5xdg== 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+bounces-12744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=yunjingtech.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j9-20020a170906278900b00a26e25f05c8si4181294ejc.835.2023.12.28.07.16.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 07:16:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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+bounces-12744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=yunjingtech.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E6C641F24228 for ; Thu, 28 Dec 2023 15:16:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64D06E578; Thu, 28 Dec 2023 15:16:22 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2134.outbound.protection.outlook.com [40.107.215.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4249CE56D; Thu, 28 Dec 2023 15:16:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=yunjingtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yunjingtech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cp3wxd5VoVRge34z3pH8amivOxKa3U4PxHoVClTbTHK7//bVY70QhGdNZpSP7EIjc4vMUeXx5RVsdru2R69KhCFCMt8lbiypZsqT+j3x78K5s8kKm1EgQkwCLhsMglqihWbeiyOHtHP+KQwjeNdIB+IT4SYB8rT/ESw4yxs89RS7LbGuxodYjGNGIVYLKmLjJzGfHHOcapkajyKfu67IIJEw/8WrrkSGj3BxBGw6aPXlHKd8lKPLVWwLogZh7ALXvpozGM7u2Bo8Ltq5P6s8QNLK2Xzf00ChIGEk+hV/KsHaYrxi9Cs3ZCylE+wJc+FxeUJSl+2/nzQwcuPrc/MPhA== 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=+kMX+iaQF7eV2eG4yRS9BO0ucCvnAayyILyKPd0OpWE=; b=ERN3iKK68ySforf4BRjkvdsp/D7zKeLHVXx3KLOcBs6hcAoJbPmtkhb2KlE5/G7m4ylpTIi17Ea5A6YOTv+nUvmJ8XUBBAYnOV2cWl4UCF0kUTWRQCrzimwvvMsOM41EYa0xHo8EnA5q7tSuVKrEOuyB5Y8zi1RSlkR18WgqCADqAnfOm6Y5aMAjZXx5xHsNC4Ud709FTytYd8gDkvYjB/dy+fPQyWxkxUxeBIEcuiKqsYwJzZwv2Y5G7Q/w7kQFs5LevybY2uU32t+5AtqMYfpAKo99wmXN81AkIoCSotlAa2eEtqXQRpUbyGa0zAglEi3lZ5R5GE2eiJTDGpfXEw== 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 SEYPR06MB6507.apcprd06.prod.outlook.com (2603:1096:101:177::9) by KL1PR06MB6650.apcprd06.prod.outlook.com (2603:1096:820:fc::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.26; Thu, 28 Dec 2023 15:16:13 +0000 Received: from SEYPR06MB6507.apcprd06.prod.outlook.com ([fe80::883b:97ce:6565:e5e]) by SEYPR06MB6507.apcprd06.prod.outlook.com ([fe80::883b:97ce:6565:e5e%4]) with mapi id 15.20.7135.019; Thu, 28 Dec 2023 15:16:12 +0000 From: "larry.lai" To: lee@kernel.org, andriy.shevchenko@linux.intel.com, linus.walleij@linaro.org, pavel@ucw.cz, krzk@kernel.org 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" Subject: [PATCH V8 0/3] Add support control UP board CPLD/FPGA pin control Date: Thu, 28 Dec 2023 23:15:41 +0800 Message-Id: <20231228151544.14408-1-larry.lai@yunjingtech.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: SG2P153CA0039.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::8) To SEYPR06MB6507.apcprd06.prod.outlook.com (2603:1096:101:177::9) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEYPR06MB6507:EE_|KL1PR06MB6650:EE_ X-MS-Office365-Filtering-Correlation-Id: 0eead564-e176-4df6-2e80-08dc07b7ec36 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FVGnxHVJvlklSI5XYjqU9Qlmuq5ujw1LUdCfXjbtJpwsKtiA7SwAzGBYhG9h7uqo/+g3Y63W+P4RM43ybrl50uEsK/sG7zMmfrMgbOafsqze8yP9TR4Kdnsv0CDwvHy8QGT3BmNgYn0b8MlJJV02j+LdT2ia56eRBsxCcgDYnyOD4kmePC6j8LTvSv/LZeiGnxq5QJRopLqKG+fH9Gy1y2/zULliIidqcKzgilN53AewPhP94tfARF7+hadecSErvfcqweNu+XrFOjCCTmRk5cK4hc1YQINe4dsa7SEf83rOTkrGvb+YAy1piN5fBgLVSbS/0wFyokEvG1esOLIAWtkn5F8szRdnG21ZkPOV5eWTyq7/5GHquxjc2pKgpfs413KlLjf8DAqa0oglvx3V50C4CHhSiM6eQ5J3ph8ej5Un6+VJyfocijPRfwoxMDilHgyb+HmBtfyV8lXehHbhGgl1w6Q+5NxQUGZIB4baNbpvLyuOpwjo9EPYQSd2E6G4iNmwJCNBnqeXVFgkP+7HaSo9dDmvnUGsRlA1JLWiLXIxHyGtA7syvPZB9X8p+0SxHB0NbxgIMbL9qxe3nNCG1zxNeNwbHuvwwt0+yZyGDtw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEYPR06MB6507.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(136003)(396003)(39830400003)(346002)(376002)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(38350700005)(86362001)(2906002)(38100700002)(36756003)(41300700001)(66946007)(66476007)(316002)(66556008)(83380400001)(6486002)(6506007)(52116002)(1076003)(107886003)(26005)(478600001)(2616005)(6666004)(5660300002)(4326008)(8936002)(8676002)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?MQTaqJf70eSmTmfgHmSqIA8QYmiQqtsyL6XmZoSfJnGkXgyJF/7l7YUL0opw?= =?us-ascii?Q?2dxWmr/Dpe8joxYva/yk5mrX14mIpig9hXiB3t60UQxeY5ky8vupabCKOYH3?= =?us-ascii?Q?g+tIvWBFmn1vJXrhaIEQEncOHPQ6KzEVRj/U1x5JVBZObzx2ndI058DuVCGX?= =?us-ascii?Q?EZD/w7DiJg00JDZHwNSqUNMtMYSwc4tDcEEe5mx5FwNb9/2wSFcPL8J1Ybi/?= =?us-ascii?Q?pAhqvXdLabHWYEWPZtXM+X1CppWykI7DppjK6cKS5Hp+hVb/n6OY4nH4zzaK?= =?us-ascii?Q?Qwfue64Vj9DYQ9l4+jz91HXHgv1Uah4ptvyg9cZKEE3vXFdCHeyPpsd/Lt02?= =?us-ascii?Q?sYZYPEWG2Rs0h9piqA1GVOY0VPApljMu8MLzvujfGQb5EhKcCq/umX8hUDMx?= =?us-ascii?Q?cyJjJdqfcNn7vX6uawzbwR+FTNGL995FxmmsJsesg90yIUlQB8hPuZOFeJ8+?= =?us-ascii?Q?0/zeDzNLsXlbPsfzG38bX3iYlkjY1rY6EDEvdZueDojJA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wV0V4wJEu5yP5HnuaikajRo9MMUz55kmQijEXyBDi0wyviVhq?= =?us-ascii?Q?0RRWBMrkr0vbGe4hWnjRWL/IHrk4RddLjWjwwwHw4HgMYy3MmwFE99gPvEuv?= =?us-ascii?Q?VNFnJEb/HUBBE+sj+/uq+S0r82QqM16mg0MRUvzDa/tkBGlckFYAV1gw63YX?= =?us-ascii?Q?X9h2oBxKsmC32GwJ1aKzEgtKyzZQc9zF4mgqv5yfc1AvV/BEolgRU4qXb5pT?= =?us-ascii?Q?GQ=3D=3D?= X-OriginatorOrg: yunjingtech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0eead564-e176-4df6-2e80-08dc07b7ec36 X-MS-Exchange-CrossTenant-AuthSource: SEYPR06MB6507.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Dec 2023 15:16:11.1224 (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: wzj5XLWMeItG18y5vdFphr3BdomdEg9njcOz6wb81qgTHojg+l5uniKNCzW8mU2mB9I6RWWgQET92sPsr02+Es4Yfz0Rx0JHWYDjjG+kqL8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6650 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 V8. It fixed and addressed Andy Shevchenko and Krzysztof Kozlowski review comments. 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 | 154 ++++ drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 + drivers/mfd/upboard-fpga.c | 364 ++++++++ drivers/pinctrl/Kconfig | 15 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-upboard.c | 1309 +++++++++++++++++++++++++++++ include/linux/mfd/upboard-fpga.h | 59 ++ 10 files changed, 1926 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