From patchwork Tue Apr 25 15:21:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "larry.lai" X-Patchwork-Id: 677397 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 169F6C77B73 for ; Tue, 25 Apr 2023 15:26:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234493AbjDYP0N (ORCPT ); Tue, 25 Apr 2023 11:26:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234486AbjDYP0M (ORCPT ); Tue, 25 Apr 2023 11:26:12 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2128.outbound.protection.outlook.com [40.107.255.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02F6FA5F5; Tue, 25 Apr 2023 08:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=abyR0C0RYPnsPJG2SLrUNFkme6qxpZsr/eMNndBPbZ2F/nooOB7mHtVP6rPZVg5mF+df57qNjkBMtExo34WqBl9T+yHF8JfsRuG1dOUZplUHB847lGVHH0maTr4v+S6Fra1qmJbKAlqyCQoQm1gCV1ZOWfzqYpiJlHEkG4aNZOO3hv20KfdGEx189XwF8IPBbHitNQF8v6wEs6+DZ362uMKSS75uan70RdE1XTXVaHVpm5jndgTHME3la9PG2OfRnuc7TzU/Uq45pbMPlSKZbX8lW2EVcAoNROaQHq9KJoFqLd80jWB63wcDJPykQ2jfaY6ozXFFXzJOFnfHdD6Gnw== 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=oJLh+kKNMvKhdnlSAme4gsxPK4oxkY3OO+sWTCH7NsE=; b=I1INucdXVoWTRTwor6SBUGktFdcURw+4w+h/5ceMCpzasCNuMX9KkE1h+A3vWQpqqqvSJ35oEMPlgSfaCvpEXRzWhCJg97Owl7s5fmGWb1GsTiJufeeCrH3OEXHfRWU1XzR5of58bdhqkg0BhSbCptM6KjmEf8yC/kxVZASp3yFo1JeeV6dbrw+c9h6JncSBgi1zh1w84lkBvbkAoXbytmc6jvz2ngYmixuhhF55AqX0vTLowOyDjFVtjik7MfFZfSjrs/sZaoe5m95Y2TmAfqPruKt0cqeBmTOL+0YP1zPgaQ4OgTdnbstiRvYiZk63yZZFusNAuWRw5HGdGkKb7g== 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 SG2PR06MB5154.apcprd06.prod.outlook.com (2603:1096:4:1cd::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.29; Tue, 25 Apr 2023 15:26:05 +0000 Received: from SG2PR06MB3742.apcprd06.prod.outlook.com ([fe80::71f2:cae4:d8b8:8ea4]) by SG2PR06MB3742.apcprd06.prod.outlook.com ([fe80::71f2:cae4:d8b8:8ea4%3]) with mapi id 15.20.6319.033; Tue, 25 Apr 2023 15:26:05 +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: [RFC RESEND 0/3] Add support control UP board CPLD/FPGA pin control Date: Tue, 25 Apr 2023 23:21:32 +0800 Message-Id: <20230425152135.30745-1-larry.lai@yunjingtech.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: TYCP286CA0342.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38e::8) To SG2PR06MB3742.apcprd06.prod.outlook.com (2603:1096:4:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PR06MB3742:EE_|SG2PR06MB5154:EE_ X-MS-Office365-Filtering-Correlation-Id: e582b9ab-24c5-449a-6e6e-08db45a162e0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4T6wmVM15ijfHza4Rq1KNJaHDMRVerJU9yZwW0/KigK4om8lNZDP3q68XZYtUoVaOv2tNAGBl+77m5wEutU9j48dysNMzbTWJSCx1R5GuA8uQlkaytrt0cneaGLRsf5B72L/KjxCjUT1PDhK2kRZc5VXOGwuyfWWlDcvBDeGusMvcBxo8GhigeIHt28sEALBJfJQv1IGoswdK+DK8SRZ4n7nEXCCp1zog3IFkjyD9y/vHDugjx5tSQi5/XgcaFHqbvBctilcmt/sJvALx/a031AMkVpuc5D6rG69Ggk3addChorQ0giNGEBfXd+UNwV5sOLZ008Alkg0uP5Bvn71Lj/3YtCQVINva7dfQqgp5OXeO8eZ1oZHCeJeoT9r/DV/92C128ywSVMCZ4caHEtHkgCTI1TDLePpcnUuZw9x+BaWobDH7Tf7CJvhRSHeMqNhUWvAl4pYLhT1cnE+aCvZZopuUoEn4YoBAxcnmlX2x55Zt5Jy/n5iXmB+EdBOTv17WGQVf2GlpEWF7ET71Ek81wyeEeRt2c454gwxaT5EZJjmngN9eacfLoC0aiAi+vx+/87yLG92uGYLZoJ10y4zrEx1khUZ7yQ0zRs3AT/P06E= 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)(366004)(346002)(136003)(376002)(39830400003)(396003)(451199021)(2616005)(83380400001)(2906002)(5660300002)(38350700002)(8676002)(186003)(1076003)(26005)(6506007)(6512007)(8936002)(38100700002)(107886003)(41300700001)(66946007)(86362001)(6486002)(36756003)(52116002)(6666004)(478600001)(4326008)(66556008)(66476007)(316002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ad+dqtQDigWqQrN2hZBXn+wxUA9ufs4wn2kzzI9Uy0+aexlKwUuJtYJXd0V2iZd8lnH1uwIBMijLIKGU9iEsIukwlvuTdjz2DaAXjx7R7LzRzbl85Uz2UvOoWeW77YaEp3rq+/2ZD1T6jCIVx81l2TtwuF+tc8sKiOGdvwm6sDOlqksYILzUCxhHrXx3BrMgj5F4DhxjuTil2+6+oXO64IEZwN5+Au+wdUxMIEctckIar7LF5wSjM9iGumGAJMExYuXkKE8CMWbXUDqzdtzMa3+eJfQAe0LQIwaT2Jwt8P/uI58iazsQLhiOPZrr0Kkb35Nc7XdV24V17/SRnBJgsIrE0rQRcxIXnNC9ug3y/CCo7U3Nf/3wDXP4MPOOh4JmNQThe/4ipm1PqzovnIie3U62rm9m+yAQ9HY9KPP8upt1CTU00yhiJj2OE3WzcK1p4P6YF70DOtfTeaw2c94SrhsSIp46BtJqzXmvoAu9Mh/lHOchYighLZdvElo94DcdHfDgXpxosjDs7F//yqEU04PMpxi9qYQJF9EFrOOloqW54vzgVlZ3YFJrL+k9eeBzmBmUyFqBRWfBFL8wol1sFPEYbG7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e-08db45a162e0 X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3742.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2023 15:26:05.5722 (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: faixb5kKd9waG6KPH7hN6XBAWzdNMuntkAHwMNlY/Ujvj9sdXZeD4jkZ3ua+UHD00ccSB9IlEt4cZl/Lz/5yA6EGnjvwWfecDHVAosLJpIE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB5154 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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 RFC PATCH resend and fixed some of the review issues from Andy Shevchenko, Lee Jones reviewed on 2022/12/08. 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 | 527 ++++++++++++ drivers/pinctrl/Kconfig | 14 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-upboard.c | 1281 +++++++++++++++++++++++++++++ include/linux/mfd/upboard-fpga.h | 61 ++ 10 files changed, 1987 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