Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2683395rda; Wed, 25 Oct 2023 09:22:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeRTxnc3BOVszmSTyZ9knl2438Awfz630qXcUBWYfN//cISfMa+z0N8FGP7wbfVNbztvGh X-Received: by 2002:a25:cd44:0:b0:d9a:4ae7:bd68 with SMTP id d65-20020a25cd44000000b00d9a4ae7bd68mr12605906ybf.21.1698250941147; Wed, 25 Oct 2023 09:22:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698250941; cv=pass; d=google.com; s=arc-20160816; b=L9Xnaq9DBHPHHMYKPHTPSSpkPeVvBXhSfVVdGPPciuB0ej60fbZ60oHMfgulW1MF9K FwIuckNwanA6FcC2h2lO4Sud7729Qyp0f8ofAEIknJ0Kxtvsy4fxEE6+vMQvbN8N3ACb 9MUzEebh8NZ0JrPTvzVOKXooAyzEZj0Lx7TynpzTcesJJss53nNuUBI0yDOpnxqVkhUf Euc0Ux1tPAXIYsrtrpj4yKwM2igZ/LBSLGSZVyr02STgeeXVgIAlWjpGFULPzjaPcYx1 PmPDNSWB3rfS3ytfvgL0YSUtbJEpbKGeiF+rg7b1QHgCoDqAS2gpR8XRUB4NC4FM14IQ tMVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:cc:to:content-transfer-encoding :message-id:date:subject:from:dkim-signature; bh=JrC8eF7WiRM8JiZT1s1xDX0aDUytE4QhAcEL81Qt598=; fh=WGYDx7G3tm+UTbKqpnFEp2KY6hmZjF4Jkz7/+/tC2Mg=; b=qrAQ83JY9QbE32gFL9/9nnmBBmczvxxVwBToNcR/tSy5R+gaYihYVZ+cAM7rNlEQ/5 Bq5egFx/QyImmVLTU7ZCc/NYK3NNv7CI1mFUGe0eLliuggpcLRK3rnUYU4UBSYB66dHB Lr4TP/GxpGa946ayA01OoqbNGJSP/1Q2TiHz1+OpHCse44q5K8CxERGqDMbKlwygszic rEIK9yv3XC4NnPc355lQ02DOrK7K9u0vnCMg0teadJS/Ej/vMiU5OntmTaV0A/3eK5Ae cdkjJssJ1uSR8RwIMcJnHlIvLtgpxUt4ct51HAIOPEwa1k58SrjXuoYiOmDgvZn7Nvt1 lAbw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=wcrYviDF; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id cj3-20020a056902188300b00da05d7a2300si4944840ybb.419.2023.10.25.09.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 09:22:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=wcrYviDF; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 08862814C68A; Wed, 25 Oct 2023 09:22:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233221AbjJYQWG (ORCPT + 99 others); Wed, 25 Oct 2023 12:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbjJYQWE (ORCPT ); Wed, 25 Oct 2023 12:22:04 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2063.outbound.protection.outlook.com [40.107.21.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45E5292; Wed, 25 Oct 2023 09:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A2A5/dIqGUi8RpkHfjaP+0v821IMnwUpJ7AcOe+Us/58TheZyhOYxXWlBRd7mWtx3rSpP+TzWQcMEAkApjLBK5TyUy5W9AlH9vHv9s9RAjGUz5aQM2jNvdiIp4YmOfG6ldsvldTldXEeoandu+cWuOPoD6x5cG7C+I3EFoeANKX1yLx2cEgfn8kLjCwCfNMlJ4uAbP3VgIYBPDS+0Nf8BnpzVLOa3hGBsYfRq7MrL6ovQhwPu97LUkzpHq0NYH/wf46JmX7zX22LXKVzep9n98SmHXWEKm/z1rsc0qbVfvAMnbveH5TYkltpZ+l+XvpY9pCfAxu0qFZZthiV0O7ylg== 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=JrC8eF7WiRM8JiZT1s1xDX0aDUytE4QhAcEL81Qt598=; b=R0kU78ZQauxaPErXWPtYYh9PkQYScwTQQEKNr8IfW9wNbEn/YRagp9Euj7NhrVgJQbPvePXdiI5eEaRgzwzk5rh62nMaXndKV+mqlxvyGoFVT54zGlTEVVYkgnSFaZCVqawGTvwDx/gVNxiJXnmwDEBNRZRDWvX4OgExdJWSqfS/nRhlPdZPvhVHnWz/IrzeXLTCfg0frv2gIkMt86dpd5BLvwapzpl6wUv1aKNZGmNMBlikCwTVQrrwLrrQQP1EdyIga+rS6iBxv08/j2Ab2xqNR8yVsJXQ+/wKSTM8LaMnDWDKf/3zSYo1NWWP2Ka8YrT0lufcrkiB/PGrEDBfeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JrC8eF7WiRM8JiZT1s1xDX0aDUytE4QhAcEL81Qt598=; b=wcrYviDFzszSPY3dDksiuuL4yW3NN7qhTD7Zix6rjyujKoqMRCYR7w7xrBRrBOR6cXGm+L4V7TPK3PiL74fm99ewJf6heNuBHeu4GzSKzOCFIM4HioyH0hIefO/rxQnN2+e4k+Lt7hibNyzN/kUAXBYrkisb3koQxIUCcNuaqSc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by VI1PR08MB5376.eurprd08.prod.outlook.com (2603:10a6:803:13e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19; Wed, 25 Oct 2023 16:21:58 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::a309:1d65:f5fb:436b]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::a309:1d65:f5fb:436b%6]) with mapi id 15.20.6933.019; Wed, 25 Oct 2023 16:21:58 +0000 From: Javier Carrasco Subject: [PATCH 0/2] rtc: pcf85363: add support for high-impedance output Date: Wed, 25 Oct 2023 18:21:53 +0200 Message-Id: <20231024-topic-pcf85363_hiz_output-v1-0-50908aff0e52@wolfvision.net> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAKFAOWUC/x2N2wrDIBAFfyXsc4WotTT9lRKC2ax1Iah4KaUh/ 17p4xyYMwcUykwFHsMBmd5cOIYO8jIAehteJHjrDGpUWo7qKmpMjCKhuxt904vn7xJbTa2KbUK N0hlLZoLur7aQWLMN6PtDaPvex5TJ8ecffM7n+QP6+1C0gAAAAA== To: Alessandro Zummo , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1698250918; l=1591; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=XjwGgbXrx1mUyaQvBZ728qJrCqgOeL5FeWgo0RlMqzc=; b=lswYr+e0BJ1oZsa3won4ihKqyVSixSPe/9E38CCiZnYjeSazEUKL537jnvHdRiZRIrl1lPLU4 TR/ydAyMC8lDjSlKbX34LfUv+DTVhyAr+E4cInBpTHJgzloIec9hbMy X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR0102CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:803::17) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|VI1PR08MB5376:EE_ X-MS-Office365-Filtering-Correlation-Id: 30929798-2986-494f-3c58-08dbd576832d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YHc+jjckdI4yt8sWLZi/vIv6aJBogbZsBTai3ZAcz9Q6h/KnoUaqqvV0kvA44N+/fc96v2GUfnptgmgCm+R05dvLADN6iB9Bx5C2ZsncMZZymeqyIq6GpjcgIllVZJzw+U0UuwD8JdNjdI6ro6dz5R3CSl12NRNo87jYvl0F58Q2zrp2I+WyspMwBwggLyoPwu+QKA5bF+/ghBTzsMo4kTqN8hy8gA8Zc5AmeBo+ooX87QwV4/Z7RnrYOzGyR6t46n5FB6mxsYkWHM1QJ1BtIWa37oY54m1N+mgr3QumX8Pqy775rrjMdTfecIWGiyhGd0ySJKKLOK29TmGSP+F2TdvvmMl31Z48v+uPjCyaxupgPGdAaEJsmTn6WH3RD3D+TCWgTHmHsHawpaHo7VobTeVu0jZZLVUoUwANn5KRkECIyaE1/pfekBFLT0vpKTYIXHEPnpq3K1wOhwYRS5Xs3mLu5YE6ON76PYJdy1zIsmpgp38vouOqy1y7yH5nXKKW5Q3I3IaFxNtYqtvQi1Hr1pBXM+5bgrooAD4JzQ17mKBbfet+D6bYnICMfAdZwpuN88YaGG29tsNxH4hgxxt7xAMNftPguvMhj2pJT19BldiczZR7gG/Rp1Fml+4Tk8SU X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(39840400004)(396003)(376002)(136003)(366004)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(4326008)(2906002)(8676002)(8936002)(44832011)(83380400001)(6486002)(107886003)(52116002)(5660300002)(41300700001)(6512007)(6506007)(86362001)(316002)(110136005)(26005)(478600001)(6666004)(2616005)(36756003)(38100700002)(66946007)(66556008)(66476007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Umdt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MVNZamxRQndGYmNMV3Jk?= =?utf-8?B?K3Jxam5VaGd3cDZWbmhqcldDeUpFdXMzd1dCU2VwZm9oRXd1OE51UHN1TWdz?= =?utf-8?B?Rmdqc1NzeEVCNVhibXJDTlRNT1lRMGlOU0hQN3h1S3hzTEQ1Y2Jra2RzbEFl?= =?utf-8?B?SlZGWFgzejhpMlFFNUFuOWpHTTM4Vm43YVhFUlhBRncyUG1tMmNHTU9BNW14?= =?utf-8?B?NThHMG9vRGRFL0RhR09WVklZbmgyUzgyVGttc2wxeENPOGZRTzhNck5zRU5o?= =?utf-8?B?WUxLMTRlUFJQdXlGaXM1ZWFOUmpSdGlEV1dON0RTOVl0anMwLzhOd1EyMENP?= =?utf-8?B?eEtjemR2SHIvSkRCMWgwWlMzUjc0MDdKTGtjcTVZNzlBNGo0UFphb0MrZUVX?= =?utf-8?Q?Gww1TNgyLn3UWdHNTyP5MdA=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 30929798-2986-494f-3c58-08dbd576832d X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2023 16:21:58.7811 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pgQrPyE/6JQy2uybdRU/Bc8nglSxxIl/U1amveWUujE65j1sDNAn1Up00Jnl714vYEeNv4Kd1poweivWoBsib+aBMLClqsDq2+nUE7iuxjU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB5376 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 09:22:14 -0700 (PDT) This series adds support for the high-impedance (hi-Z) output mode. The current implementation only allows two output modes: output clock (default) and interrupt. In cases where the output is only used in low-power modes as a clock source for other devices (PMU, PMIC, etc) or the output is not needed at all, the hi-Z can be used to reduce power consumption. To model the hi-Z output, a new property "hiz-output" has been added and the following cases have been taken into account: - hiz-output = enabled: the output is not available in the design and must be kept in high-impedance mode. - hiz-output = sleep: the output is only required in sleep (low-power) mode. - hiz-output = disabled (default): for the sake of completion, this mode ignores the hiz-output altogether and acts as if the property was not defined. Any other value will trigger a dev_warn and the default value (disabled) will be used as it is done with other non-mandatory properties. Signed-off-by: Javier Carrasco --- Javier Carrasco (2): rtc: pcf85363: add support for high-impedance output dt-bindings: rtc: nxp,pcf8563: add hiz-output property .../devicetree/bindings/rtc/nxp,pcf85363.yaml | 14 +++++ drivers/rtc/rtc-pcf85363.c | 62 +++++++++++++++++++++- 2 files changed, 75 insertions(+), 1 deletion(-) --- base-commit: cfb67623ce281e045ec11e3eddb1b68b879b53a1 change-id: 20231024-topic-pcf85363_hiz_output-d9c3c1f5ae59 Best regards, -- Javier Carrasco