Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1033724iob; Fri, 13 May 2022 20:25:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGbF5UndIKl6MswpwYB5a2Dlf3gLEEEonH6Nt5My8RBNB8Rb+rz3HRhlpSj0ExEhHQy7zy X-Received: by 2002:a7b:c041:0:b0:394:44a9:b017 with SMTP id u1-20020a7bc041000000b0039444a9b017mr7128902wmc.169.1652498751395; Fri, 13 May 2022 20:25:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652498751; cv=pass; d=google.com; s=arc-20160816; b=kA+WjqxVWUez6sA+a9Mpo4VIDYuaft8RHYJgM3cISwp6OitQs4IYbqbf4LGia9rzzk XXmkE8ZYqhuzxHB+m4tFiFRfIW8+2pFSKyX17uOhY1HRfPXXGhkZ8OaX6dnVFk54Xyd1 v8BKm2ZIIKsiX3Oqhae6Y+IKu8vGyz/oZHtnhpc3Zom9EWxbOLx0lpBp9VFfPk/wxg/Q DAAIM1iYHtzbf5eAyM32HCa4kFakX7efi0Le7fg6FcHjXNkQlfwsaVDfZp/6Pv4YZ0Cn p2RW03lCvfzihRvtvlECjspbl7djeHWPc9uXinMqtH50w56AUwVm/M3WVmIn3BuAMtsv W8/g== 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=fCMBtJbMyV/cjCfQO+Fr9l/MGok0Uze7XYprSk3Xbiw=; b=oBzZ9ERrRNbuqiocfFsi3odhr3EqYBZwM53xlGtRQo/RT8nc2l9YU5bTFHlImoQ9WK 9bnti46QGmufIJH03fMDBsHf2ODKEgOqvqjh4bigZpgVwyRDpZAbn4xdMQhFpr6BE1NB c18Lk4+apsNC0TaewAFkcbkkwOFD+paWYIwe1Vbd2Eg9Y0GuBLCBB3Unl6qWm9KAVUnz PX7hCNG0+EaqF94SUG80bFj+elS2RbdlYHmpE9fpwNy+859HUramTewYcaD3xR2iA1fF LMGnOPgkeKK+6J7ZqDD/6Kdf9koFFcy7XxYMygD/siZZ6GysjKAWEWEA8dRFXm/pLA77 JqaQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=WIq07T09; 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g17-20020a05600c4ed100b0039466afef45si1074672wmq.27.2022.05.13.20.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:25:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=WIq07T09; 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6CECD2230BC; Fri, 13 May 2022 17:02:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378396AbiEMIhJ (ORCPT + 99 others); Fri, 13 May 2022 04:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357443AbiEMIhH (ORCPT ); Fri, 13 May 2022 04:37:07 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2069.outbound.protection.outlook.com [40.107.22.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBD8F26272A; Fri, 13 May 2022 01:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aXW739Bh8i3dtNieaVy4uLMrVgizznx9cT0X4Eo6cysejPemuk9uFEHlX1zoQalTz5frPE+Aj9q/2gJloZGN4vSo+fGg8JCZnQK1FIfjvX+meFyGbETSmRnXtx+SV4EfHS8uPFdwSZWbu0OmUeL2Omx5zOLhuYnubioDxkngfK2DqhwiWtH+kgaIvSdz8aZowCNpKb4yrHKEorJuAlhou/0E10wgSzD5BXsFCrdT+O0JAdH6tE7wCA23d1MH7d2tP60ViQARboLrkhuCTglExyGWkeuqNiP6lwdI15cza1xeDYck/J42kspIMXgqjkkT0TBnCGW6R/Uq8lBFWFsQ3A== 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=fCMBtJbMyV/cjCfQO+Fr9l/MGok0Uze7XYprSk3Xbiw=; b=OcWPTh0SPLHqhiMQCTNyiauPuhO1iqheud8Z1VN0iB721r5Ciy0KCyaV/dPaLxuRxAKFqOJFprEVCBoRVZj425Xkp91to2dg5HNO1gUXJfy+pPlnw6zQF2c57rW3fSWSlu+yK/kfWEZ1yq1jojjRtoMFLAWhcOJPWfn9C6Dt2kha6Rqsem1Y2sCnNOcQH9ky2cQSmYs0OisBEZdTjDnnj/efgSP0Akf3FmahsPryRFxtbYwEg64SwB6ygv99vist0YhMuForPvKC1+oOt+Q3yghyWgja9S68y3P04RLU0R7SRDV4VIPgOVcCj4I/EBKdGRouW5+UdKJ7IiN2sn5q+g== 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=fCMBtJbMyV/cjCfQO+Fr9l/MGok0Uze7XYprSk3Xbiw=; b=WIq07T09k3xq8BNamWQkVXKfNefCCEF2DdGYp21s3TkKpI7wPlYDeGTc8+g676fAEq4y5722zUT9+z7cp4Rg4JrRtd1kiafeQwh29ZMfF0BOQPErta/DWqQVG44J/ZgkCvqqU3KwcXndIf2Xftn2BzDJ3ppbUa4z5TzP3TM1sKi0dU8k+2sZMzz1FHqUwyVWp+A23MyO/6jfxO0dtHWZRwsJ12cmdE1UBATh4Eq8Oo0rmUq5JiHaFJDDGnzbpmJz6tFP6nPbsTxXUlnp6zPNcB3IBYyYDPo4jJmCaOBwsq8zk4qG6InSfHBIKWc31JzYuS3zdtJ3sT/sH9H2VhXxvQ== Received: from AS9PR06CA0780.eurprd06.prod.outlook.com (2603:10a6:20b:484::35) by AM7PR10MB3624.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:13e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.13; Fri, 13 May 2022 08:37:03 +0000 Received: from VE1EUR01FT055.eop-EUR01.prod.protection.outlook.com (2603:10a6:20b:484:cafe::f8) by AS9PR06CA0780.outlook.office365.com (2603:10a6:20b:484::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.13 via Frontend Transport; Fri, 13 May 2022 08:37:03 +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 VE1EUR01FT055.mail.protection.outlook.com (10.152.3.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5250.13 via Frontend Transport; Fri, 13 May 2022 08:37:03 +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; Fri, 13 May 2022 10:37:02 +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; Fri, 13 May 2022 10:37:02 +0200 From: Henning Schild To: Andy Shevchenko CC: Mark Gross , Wim Van Sebroeck , Guenter Roeck , , , , , Enrico Weigelt , Gerd Haeussler , Henning Schild Subject: [PATCH v3 0/4] simatic-ipc additions to p2sb apl lake gpio Date: Fri, 13 May 2022 10:36:48 +0200 Message-ID: <20220513083652.974-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: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 89f26962-4374-494f-f443-08da34bbc12b X-MS-TrafficTypeDiagnostic: AM7PR10MB3624: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: mZl7k87cQH3CWIC6pVJ8QUH2+wH7tMYuQDQLIGCcQmjc1NEs+h0//tFcTT7phBtchd3cqq23/F0qxpja7IDbd/neGFY4exB/JcTkzEa4bBEmSxVN61cnY15wykn5WpodcfxGJ45jVMo2Q+bX6yFENpZ6xOF/FBOnMzBXJqpuiA9xPKBlrwEgqDydrlYOzlVVRUepvLiW0fwIWZovw37HmkQb7txuuAfSIRmxM/xET1UhUXRbog0xhLZEguTOrZjRsgTu5X5UJe1YXYCy8ohIlR79zYfumoHZcM9BWcVrHZj3Sr9LUeUqRAYbaFBdHTFf9FEo4wwXb4PoQpO/p/n81+pkJzfj1Lc+f6kmt3tcL3V8WyOxtQ/7JnLrSwbaQVQFwe+Zd9pMuREB7kuGc6qs/bfRXfEBv6zMQ76XELA2fShDDvcYJucqaR2uJokg9MGRhyS3BX/1fv+b0R419w1olrSIJUqi7pjUI7bUTBh21Felw8j1JcZRkCGn7kJi1fj6v3nLbEUIwMT8xIb6WVMqP51oDQKPhXv7I8WseC9lQHVkrXiU5yzVWzlZc6tffGQ9/MQ4cJDF73WcSEmTE2LH5XJTq/C1nvcOAsIv522qGisM+jAOZwE4a+p9jEvcNDOgQV8wpT6+k5pSvo+lYDM3i6F+H61pmHl99l2FEuB245w5aDSEuz4/h6utkU5OBDml 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)(40470700004)(46966006)(36840700001)(36756003)(186003)(16526019)(36860700001)(82310400005)(356005)(107886003)(2616005)(956004)(40460700003)(26005)(508600001)(1076003)(336012)(316002)(47076005)(6916009)(2906002)(54906003)(70206006)(70586007)(5660300002)(86362001)(6666004)(7636003)(83380400001)(7596003)(82960400001)(4326008)(8676002)(44832011)(8936002);DIR:OUT;SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2022 08:37:03.0289 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 89f26962-4374-494f-f443-08da34bbc12b 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: VE1EUR01FT055.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR10MB3624 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 v2: - put GPIO led module under same config switch - some style changes from review - init gpios with gpiod_get_index and drop gpiod_set_value - drop bogus "if" from watchdog Kconfig changed since v1: - rebased - split p1 into p1-3 This switches the simatic-ipc modules to using the upcoming p2sb interface introduced by Andy with "platform/x86: introduce p2sb_bar() helper". The series relies on these p2sb changes already applied and Andy will likely take them into his series at some point. It also switches to one apollo lake device to using gpio leds. 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 | 6 +- drivers/leds/simple/Makefile | 1 + drivers/leds/simple/simatic-ipc-leds-gpio.c | 105 ++++++++++++++++++ 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, 126 insertions(+), 127 deletions(-) create mode 100644 drivers/leds/simple/simatic-ipc-leds-gpio.c -- 2.35.1