From patchwork Sun Feb 11 15:07:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13552496 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D034BC4829A for ; Sun, 11 Feb 2024 15:08:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ZMgSQHOntCGiGkm4MW/NvGmLbr01gMsE0SDMZxV0uKg=; b=kgL14YhQ8Ct+Q7K54Fi83G14TE ZehufBPW/Cx2Yolsxn3SqzfLRcimWQBYg1ke42rY9gKta0S6BRz5/qazi2kLEJHga45pT44WFcOIh MvKUhJAX//e2w1gdOHhk5s6rf766Spn8wP7TUQF4z3PdWPJl4LIF1JR9VLthqjQUgSq0TbmyrxYuF yAAKb4r2JkeyJux4Gan9jdFS5e14jQChfZChFzDynilb6a4WdL30x4JnGbQksXbdSj2jmr8l89RVq ISCTjxHw8IHEV9HoGBsR8BXFFwmihekJPlFQg41mYj5hPzPDYRRlHiT81rilG1s1RcaojoKVkmR/G yHcXOM+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZBRO-00000002t1a-16u8; Sun, 11 Feb 2024 15:08:22 +0000 Received: from mail-db5eur01on0704.outbound.protection.outlook.com ([2a01:111:f400:fe02::704] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZBRE-00000002stu-3jK4 for linux-arm-kernel@lists.infradead.org; Sun, 11 Feb 2024 15:08:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fuVu/IYEN0q7+tIRwaCxxY8olRV/Wui7Fo0FPpceHYgeBayPg1NUsNLXMylzumQLaiO/m0uQsSdLq8KdIRtDatBc1QRYLvd/komaPOPF7fsW8+l3OgRmepQ1yZECbdelQSpwXWC+QmKTvhKWXQ1zTsLC3g88NWrV4+VZUv8qFVMWz0suqYQZh2KdAV9SlugTe/xp+YfJ2+SyspYTEvfk1z7sXSmTWAS7zzDYgtbDRnQvOUiNXFJsG1eis0xZzYCL9JMXyrtwBEcaTdTqLJEUjsgZ5DiQIAfXDgegos8qiTDces9AzjeBvlPW4dBau0Ic0GZ4KAxly/2/fiQIeKhS8g== 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=l0XoBzrV9zt+MatjMdVkn4QnoLKpYCLDHZz8+OlQ+a8=; b=AksPl0dKzgrp8JoA9sgUbl1V7tZV1Ot0zCRJHLciMhGzimX6wMaEHPX/iPJeJquzG+CgZI6cRgqvKZ9ucZf3Y1xMZpaIQ8bbmp8cNnNg0ZyN8VwA3hXYgFOJhGJ1P1/l3CQG/p74hPY51aNDD4z184RIWVGL2LpqfZJ6EZEgkBxWy5vWUUHc169dsSi7G5Jl/fELpf+OZlV2vFYi4ksPOEKmHGW27li0HjL90rfc/ooAmSx+c0th8NkQXGF6D/kFIWs+KY5W02N9sfzgAQF0muWiBqqFCaWfzyp03cceDG5OwHpnFpScZl0xTVoN2CE88dg+YMmdG4v3bcJYDMeuUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l0XoBzrV9zt+MatjMdVkn4QnoLKpYCLDHZz8+OlQ+a8=; b=Q3WkUBp+bAk0NwtyHdhVMHTCgPM+RR93UPjcrv0SbEICVGxZJHe++wbZTbvWLsz5PUoXzWyBybuXQD8TFjYvm094iYxTgxMcCX3qXGMmFiSexzKq7iYgkDLsUDyo+QSjcmljjOSqot0uDUK1v2GBxhDH7SbaSmFZU0eVbFlLJjM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) by DU2PR04MB8725.eurprd04.prod.outlook.com (2603:10a6:10:2dc::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.39; Sun, 11 Feb 2024 15:07:59 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::3b94:f607:ebe1:7d6c]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::3b94:f607:ebe1:7d6c%7]) with mapi id 15.20.7249.039; Sun, 11 Feb 2024 15:07:59 +0000 From: Josua Mayer Date: Sun, 11 Feb 2024 16:07:57 +0100 Subject: [PATCH v5 2/5] dt-bindings: rtc: abx80x: convert to yaml Message-Id: <20240211-add-am64-som-v5-2-790ed7121249@solid-run.com> References: <20240211-add-am64-som-v5-0-790ed7121249@solid-run.com> In-Reply-To: <20240211-add-am64-som-v5-0-790ed7121249@solid-run.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alessandro Zummo , Alexandre Belloni Cc: Yazan Shhady , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR0P281CA0264.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b5::19) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|DU2PR04MB8725:EE_ X-MS-Office365-Filtering-Correlation-Id: d41f8e8d-5df7-46fe-3fcf-08dc2b133bff X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d3HAJPa6XTFFjvtl5JvuyQHxkmB60d9NGg4DVpg81X3qri9sFCOKU+jR7cnzLrxQqqabEZHUf14x0iYALWMGl9hUne0CynzoWlhlYQkwS/eU3iRlrBAq+86PIW/CTieKiTi5i9w+j4ZNxfgSDasta9ycPSZ5XfUv9RS4yv4+ERWD3a6OsWjOxPYoCvqunorHtl4kMNLu187uJmCZyXySie/AEGfO/8d+0yZUUdRr9+mT8cMtIlPKZaAXcMCy1I0tp4fzqJVWRULMeNwFuZdg/OPuZ0wsI4pZDYtXmm7sBOsdUTMb9XVK3LsUEOqTM3XSOjYJfyQk+39E+4bM0X6wcY9QGJuM1R0/v2c1KCCR0JRAEgIt2J5HR5vF8J76yjLEAG9MlBMwres/h2E7SJdVwmVp32tIcPlU1H7OJ8ma5QGfHn3WER48YLFfKox9evu5deQT619M9fajtZkfdRMxJKbIzwPSUGYLsqoCoo0E6MWulas6gSBhg7be6NYPKmob5xisy7nOL2DkMQYJ+S3cufNaB0imW89B5nJxJcKAoJTnpMInsrft2sJX2hbkMTuP3CXoz5xRteIIdQCW4ILBScp4M7pylLRINn2BslLgWOw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB7586.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(366004)(136003)(396003)(376002)(346002)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(83380400001)(41300700001)(2616005)(316002)(966005)(36756003)(6512007)(6486002)(66476007)(66946007)(8676002)(54906003)(478600001)(52116002)(6506007)(66556008)(38350700005)(4326008)(8936002)(86362001)(107886003)(38100700002)(110136005)(26005)(5660300002)(2906002)(7416002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?sBC3xOB8Tozjyz4sWB/x8uMpl9Ss?= =?utf-8?q?Zw2XCWHj3EujyvEtpwt8g+VxT5aHNjRBQ/PQd6D5XTRPW4GG+us+aUCKrOEIcUECF?= =?utf-8?q?0bKULb5XgoquHeVBo8qV+0OvD4tyoqxdrbFgNdH9K0qo7mRcwZHLbNhpmkcBnU03Q?= =?utf-8?q?1yotjuHMwluLb+9/6sXng/Wgdiu87jzioNqTdlUxGFj8C4pmO4WLLk0+hhlNd+RED?= =?utf-8?q?8i9X+ghC3pS61uCAHTU9SYDTWWUDjSSz5FIPguFACqFJ1Fw7tI1Zx1WRJBrzc9ncf?= =?utf-8?q?EanWtwHO4zAT3mRnDV/zu/zI+P29vQjPxDpNnY+q44sZrFB5m97pIn3THq+GMdmeJ?= =?utf-8?q?kGyAAbNO+YrEFYePT3pTrXKYyBX0NfRvfYmeZZe5QBfDnRvOTRb0eh+jWOkjFD2tS?= =?utf-8?q?aY4GMXtx88eLG0KvEpQArM+NdfI1aKPp7oMOgDz5Vnjq7YtROxJRt73ZVWHh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jQ2GDQ0QKhgKkH?= =?utf-8?q?R7MWAvPZKH0kGiu5CyaU3jxOrfMSZtL+M4QNkUwRqUdnEppC5VC0W0Sl9VZlrmTFw?= =?utf-8?q?YDqLWq0jVYiwdGBM2GZQur/Pfslv7t7A3xyxvwWStnbWJpZJH8rqoljv6yHwral9O?= =?utf-8?q?0jU5Oqkrqo8d7rmwbJdnDjW1skhtOXXB2OkIIvDnuLne+f3r+Le4rEU8bJDPbwmn0?= =?utf-8?q?wlVj2FK1Ukvw?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: d41f8e8d-5df7-46fe-3fcf-08dc2b133bff X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2024 15:07:59.1750 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sS2ujjDwqnavioRYtCjV8bWmDFVpChALwkbRmtjZKDgHK5/O4YLrO744Ku0HDE4KZkVL8SEdCc1MuAIeHzpuYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8725 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240211_070813_007583_AB6A7282 X-CRM114-Status: GOOD ( 15.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the abracon abx80x rtc text bindings to dt-schema format. In addition to the text description reference generic interrupts properties and add an example. Signed-off-by: Josua Mayer Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/rtc/abracon,abx80x.txt | 31 --------- .../devicetree/bindings/rtc/abracon,abx80x.yaml | 79 ++++++++++++++++++++++ 2 files changed, 79 insertions(+), 31 deletions(-) diff --git a/Documentation/devicetree/bindings/rtc/abracon,abx80x.txt b/Documentation/devicetree/bindings/rtc/abracon,abx80x.txt deleted file mode 100644 index 2405e35a1bc0..000000000000 --- a/Documentation/devicetree/bindings/rtc/abracon,abx80x.txt +++ /dev/null @@ -1,31 +0,0 @@ -Abracon ABX80X I2C ultra low power RTC/Alarm chip - -The Abracon ABX80X family consist of the ab0801, ab0803, ab0804, ab0805, ab1801, -ab1803, ab1804 and ab1805. The ab0805 is the superset of ab080x and the ab1805 -is the superset of ab180x. - -Required properties: - - - "compatible": should one of: - "abracon,abx80x" - "abracon,ab0801" - "abracon,ab0803" - "abracon,ab0804" - "abracon,ab0805" - "abracon,ab1801" - "abracon,ab1803" - "abracon,ab1804" - "abracon,ab1805" - "microcrystal,rv1805" - Using "abracon,abx80x" will enable chip autodetection. - - "reg": I2C bus address of the device - -Optional properties: - -The abx804 and abx805 have a trickle charger that is able to charge the -connected battery or supercap. Both the following properties have to be defined -and valid to enable charging: - - - "abracon,tc-diode": should be "standard" (0.6V) or "schottky" (0.3V) - - "abracon,tc-resistor": should be <0>, <3>, <6> or <11>. 0 disables the output - resistor, the other values are in kOhm. diff --git a/Documentation/devicetree/bindings/rtc/abracon,abx80x.yaml b/Documentation/devicetree/bindings/rtc/abracon,abx80x.yaml new file mode 100644 index 000000000000..58dbbca27deb --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/abracon,abx80x.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/abracon,abx80x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Abracon ABX80X I2C ultra low power RTC/Alarm chip + +maintainers: + - linux-rtc@vger.kernel.org + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + description: + The wildcard 'abracon,abx80x' may be used to support a mix + of different abracon rtc`s. In this case the driver + must perform auto-detection from ID register. + enum: + - abracon,abx80x + - abracon,ab0801 + - abracon,ab0803 + - abracon,ab0804 + - abracon,ab0805 + - abracon,ab1801 + - abracon,ab1803 + - abracon,ab1804 + - abracon,ab1805 + - microcrystal,rv1805 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + abracon,tc-diode: + description: + Trickle-charge diode type. + Required to enable charging backup battery. + + Supported are 'standard' diodes with a 0.6V drop + and 'schottky' diodes with a 0.3V drop. + $ref: /schemas/types.yaml#/definitions/string + enum: + - standard + - schottky + + abracon,tc-resistor: + description: + Trickle-charge resistor value in kOhm. + Required to enable charging backup battery. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 3, 6, 11] + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + rtc@69 { + compatible = "abracon,abx80x"; + reg = <0x69>; + abracon,tc-diode = "schottky"; + abracon,tc-resistor = <3>; + interrupts = <44 IRQ_TYPE_EDGE_FALLING>; + }; + };