Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp253754iob; Wed, 11 May 2022 13:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrk2AJ2pWBMCFRUOWcyYJqnkBHD3dhIDG25n7BmpmewiUsIctcvddQRQw19VdMqrxC+o71 X-Received: by 2002:a17:902:c951:b0:15e:abf8:d025 with SMTP id i17-20020a170902c95100b0015eabf8d025mr26712563pla.10.1652301897404; Wed, 11 May 2022 13:44:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652301897; cv=pass; d=google.com; s=arc-20160816; b=sjs/v5GYh7SEzQ9/L5BA6xhl+rk620RX2U9DvuVncWaA9L1//VIycwhyUSdU20wJy5 CzVOads28dPva6kk1/PdrtYrjk7jPL5qRHAlHH4E2+LWlS1Pollmhhclw/bVVtIUWV7m y7xdeHfXouOjsv+jiGaK7/ohKxla1Y41tB+haQlY1RM8oPUYcK96CP1Y+/YdIEt5z5z0 74TvXf3fOiEz2Qj3N6vmBbOkJOpaQVMuT2IAMESZOvR7ucY9Wd/5J2zL53yZrSi+WqbF DwnSvr2zsBaLmdLjY0FX+WycV+wErud9G7Qq/BIJg5mJiWfc/HCUnehNkE+vHIpOPRW7 HJDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qq2ASt8jXxqqPovsrRg/KLC8tinJyTV/ATHmAXTV1rw=; b=YrawcKGnmw03m5Z8ARsiZ+aFrrOsTV126eUXEVC0I1uqnF7YMY44rwKSmh3zwZQpBA ASmBBGtpM4B7yz0RWlJhyuAP82eQv8sZ8c4aGuI1V2PPMU3CiUJ6nA/N/h1Q6hSSFxzn PktORY3KsppAC6Vm4SJGGKtSgoovku73ZoRkQaAcPAju4jLHLYdbGegW6Bz2i+KMaC/O Nl4EJ1gakA3UE2v7LzpTcfcTAPJRREh9RSNO2yyINGigU5OQLSCxe8CT8Zf52OvMjNgK g0FnLGRHs4cODtXVkGb8ecoE0lJMbmA7WGvqJyeP5/j68b3oz65Iz4+Jw+Ja6q+Fqvkm 20kw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=ha4sM40o; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.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=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s18-20020a056a00195200b0050604ac89e3si3984770pfk.345.2022.05.11.13.44.40; Wed, 11 May 2022 13:44:57 -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; dkim=pass header.i=@siemens.com header.s=selector2 header.b=ha4sM40o; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.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=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343829AbiEKPjX (ORCPT + 99 others); Wed, 11 May 2022 11:39:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242949AbiEKPjV (ORCPT ); Wed, 11 May 2022 11:39:21 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2043.outbound.protection.outlook.com [40.107.22.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B488C8FD66; Wed, 11 May 2022 08:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BR3M2gECcM11mTv73QSr25XZ8ESc6OOuwjL0HpZm0kVhc0ZRMqLIlM6XnI4Ztw4+hSjL7AJiXOpbGym6cXSj8VRwo64rqtTLz+JWpROePZHdwKgWsrwDquJfkw3OoP0m8u9BgrQjwR+HN2ZIWn5lYPDXgndB+zDZ97HmRTEjMCP5hVJ9wvFhW4FOAm1lbU5kE0JbQ4pDhIPSHAUx3+18eECpwrUaiegjhwlfjNMxwZvDOWeka14snxFSNPsC4AqkKZOHz/wrhbs6MeowWuLT1jdHpZn0TDm2lJdaJe6xRxfoByNyLFcK8nxnNNZHbahudP+YvjgVfZAR4V6OPuoyZQ== 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=qq2ASt8jXxqqPovsrRg/KLC8tinJyTV/ATHmAXTV1rw=; b=iiWWzzci5b999z3V5KnLmgKM6CsBioTuKBn09S4EbLRqCatSbcTgnguOF/LTluuKl8jGdV6MU8R/uJOBYBFUUiWheYHFrpIxSKjfrjyfeoIWD42dB/EiFvoqPdIPyY96S71/pZDA1UN1B5yqTt8WXxSQfdM/qgc+XTtuZ0C/3UD/7WSesnTcMq+PrnAua7g6vFiRV1plWoRqCIicLK45kTf8TIlZ08A2/lbIVD4A1xXLuMWJM+7BIYMgjM/N+c8/ysV3ZKlkp+jOH43ZxwtCRHZKk3NFXH0hgwejvVaC+71e5m/V1S9GjmTKZPuUvXU+sQZsidE9RBue/oIG4TXTyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.70) smtp.rcpttodomain=linux.intel.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qq2ASt8jXxqqPovsrRg/KLC8tinJyTV/ATHmAXTV1rw=; b=ha4sM40ogOx+Jh1BIEk3Iczfxs7hE8Hb/1d50E90MNuwIw7clk5aqtPU9FdSoM8KRq18NXdwbZ10Qwu3kGOBVcnQZhW87HzaYweeYIMw6ER4636GF1LI8PP1OZnV1c8yyLmatdfSa2jr6y+Kksy6SyhAvzdgA1RfGxflNVJxTKoNNc+snUwJMOJGSMTvl+412H1VZiSpnh1iGmNGwWBABH+nX/1Hr60vE4BXylc72DIIhOUlJWeQdWK+8WkQLIg4fmLswv8yCbjSn3zc6l9xWciEPxB79yupTmE7xpkhDpi4S7AfA42zaGdGZW31Bnu4OtvIXNXT322THYXjgXNp7A== Received: from AM6P192CA0028.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:83::41) by AS8PR10MB5041.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:340::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.21; Wed, 11 May 2022 15:39:17 +0000 Received: from VE1EUR01FT098.eop-EUR01.prod.protection.outlook.com (2603:10a6:209:83:cafe::4c) by AM6P192CA0028.outlook.office365.com (2603:10a6:209:83::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.22 via Frontend Transport; Wed, 11 May 2022 15:39:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.70) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.70 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.70; helo=hybrid.siemens.com; Received: from hybrid.siemens.com (194.138.21.70) by VE1EUR01FT098.mail.protection.outlook.com (10.152.2.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5250.13 via Frontend Transport; Wed, 11 May 2022 15:39:16 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SJA.ad011.siemens.net (194.138.21.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 11 May 2022 17:39:16 +0200 Received: from md1za8fc.ad001.siemens.net (139.25.69.210) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 11 May 2022 17:39:15 +0200 From: Henning Schild To: Andy Shevchenko CC: Mark Gross , Wim Van Sebroeck , Guenter Roeck , , , , , Enrico Weigelt , Gerd Haeussler , Henning Schild Subject: [PATCH v2 0/4] simatic-ipc additions to p2sb apl lake gpio Date: Wed, 11 May 2022 17:39:01 +0200 Message-ID: <20220511153905.13980-1-henning.schild@siemens.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [139.25.69.210] X-ClientProxiedBy: DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f8fa3038-c370-4344-0d4c-08da33646880 X-MS-TrafficTypeDiagnostic: AS8PR10MB5041:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1IKnUyhbd8PHUOOaMhPhx4OQDJbJXHL0GS9J7ry+oZt9DYVisTyLjtt+NHyTIddR7OmZ1KpmfjHVpNAzpiLOXXlEnmb/97QTKyzqRcsA04loBhKiXiFuT6QCxWeV39Y0bvaDHI0iqeUS29sMG6/CJ2rK5IPZUJYGBk26awShqfcw1aQsjf3gX8OS+3F+4JmtpeODixLuB9eJB0tFKkO7J+W9O2bkCvCyUTkbmhXox3iUhqqb2rR4p0iC0cUm3xrTnMYUgLgoVzcqQTBbdmtcShjjq2ILDpZNIUSBQMgaizgouNNA2UJY6f2Fe4NRa3q922z6/DMlmpd78n5kON+MRK9tcT9ZaDkjIq32aCc4ImgjJnGJS3ocu714pLScB/YLTkdB1DppPAvarVh/OcomrzAyEUouNsDhUzuc8zp3UaU2ApL9Wr8+QvMdfrMqipIFTSaSWfhOMDJ6EAjLNVYWPqR/oSTEjgP6KC4pQUTUzlURiJunqi/3cD9SXHUZIWPX+Yy/kHD/uQTMyRkjC+TXjWPi6e8KYDDpq4Cx8MYjMOk+xVkMU0ljelFW+9E1xHsExpOOUJlh63OK3KEcogYOYRnhyawRqGobHjnQ9q7XbjNFHyA8JMvDlOBzDOBJuh9frE32bojklHlHNGMJmZ2j3i5j1IgY4je+6TQtu1zqIc3WDFFKQGM8VZDKmGMH1NWC X-Forefront-Antispam-Report: CIP:194.138.21.70;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:hybrid.siemens.com;PTR:hybrid.siemens.com;CAT:NONE;SFS:(13230001)(4636009)(36840700001)(46966006)(40470700004)(40460700003)(508600001)(6916009)(5660300002)(8936002)(316002)(1076003)(107886003)(7636003)(7596003)(54906003)(336012)(47076005)(16526019)(70586007)(186003)(36756003)(70206006)(82310400005)(36860700001)(2616005)(82960400001)(26005)(956004)(86362001)(8676002)(4326008)(2906002)(6666004)(356005)(83380400001)(44832011);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2022 15:39:16.8690 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f8fa3038-c370-4344-0d4c-08da33646880 X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a;Ip=[194.138.21.70];Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT098.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR10MB5041 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 changed since v1: - rebased - split p1 into p1-3 This switches the simatic-ipc modules to using the p2sb interface introduced by Andy with "platform/x86: introduce p2sb_bar() helper". It also switches to one apollo lake device to using gpio leds. I am kind of hoping Andy will take this on top and propose it in his series. Henning Schild (4): leds: simatic-ipc-leds: convert to use P2SB accessor watchdog: simatic-ipc-wdt: convert to use P2SB accessor platform/x86: simatic-ipc: drop custom P2SB bar code leds: simatic-ipc-leds-gpio: add GPIO version of Siemens driver drivers/leds/simple/Kconfig | 11 ++ drivers/leds/simple/Makefile | 3 +- drivers/leds/simple/simatic-ipc-leds-gpio.c | 108 ++++++++++++++++++ drivers/leds/simple/simatic-ipc-leds.c | 80 +------------ drivers/platform/x86/simatic-ipc.c | 43 +------ drivers/watchdog/Kconfig | 1 + drivers/watchdog/simatic-ipc-wdt.c | 15 +-- .../platform_data/x86/simatic-ipc-base.h | 2 - 8 files changed, 138 insertions(+), 125 deletions(-) create mode 100644 drivers/leds/simple/simatic-ipc-leds-gpio.c -- 2.35.1