From patchwork Fri Feb 2 16:10:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13543128 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 4278BC48291 for ; Fri, 2 Feb 2024 16:11:24 +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=hOEIIlfoZu2pTOgN/Hja5Z9WtwLRs/gG68SjtyOQqrs=; b=iXvHLI/DiPYGzxZzeU3Z+Nt9a/ WhoVRLZabxej3jZjsk4ah/nZGA4WaRpXThuTqkhy9oQQqgG/V6OBH+jQy/Rm+GAgbxvdxjBtwgzom Xk1Ro5HlMTos5cjm8sPiKA6iTwe2ANk9GHS5bAa9kt2+hwJR+MHQQaxwAeAIE7zBn8aAabdyjAWjx SotQdpvsJkIFiui8YaWkir26WFyDfqKi4IBKNcL/DuL9mjnrpJldNB4QahiRpXIQUtf1Ri6HAEYRj q5qMVK1eGj1OWhcTIC6h2kMBbntFP27sCRzoximrhxXRCTxCr3ZtHmyDGeC71eU6O4+uNVxxia5ne /OtqtEug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVw8C-0000000CDjX-2y0R; Fri, 02 Feb 2024 16:11:08 +0000 Received: from mail-vi1eur04on20701.outbound.protection.outlook.com ([2a01:111:f403:2611::701] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rVw88-0000000CDe4-399X for linux-arm-kernel@lists.infradead.org; Fri, 02 Feb 2024 16:11:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RYga6yuHxWA/w2t0lzInC7b+TXHBLfW20PN4Mp61/UKlyyc/6lauccCXmN0AooEW0BlJ5j/ru+hy8edjKH449rfQaQE9MFMHNQLgt18D8oKGujEwT8zLs2iKxHGwQX+QUhg93gIPHuc8ta45n6kX6mlnfgLrHx+Wyj2yPtOjacy21n9BNi31FrBSAZzodX/2zS70IGOCY27+9I9sYyLJIbSipQ+KAEJ2b+iW5gnE3vPEDuqZbcg9fnu2Da9cn2bHI80Gb0K1+hVAzzcKf5xEkaRxN+O6mp70IKACLWRhOyE2sRNR4qsaAcgOuV/rbME9NNf1mAxRwWDIh6W3JDBwEQ== 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=pGYc5FmFk73gu6M4c/VgoZNH+SKZtBH9GUCwk8Q6d7k=; b=BEhoWGjyPjUPh7NccpsAtSFhsnbObtTL0Un0+fSbm+8xqH6/Wq/IQG9fmF5YDMdxu7bwKuBL3U5ze3NiS8cbk+Q/AMtGUArfwvJEom3Kyo3BzRU3etmYa6gTjlQQxkgzElUQU5ozHZ3e+xP28t4SEaqtQUlCbibTp2VcmLwWm6FsGdgLnKzkBSIg0C8UNtpiNb8LDbAcFFWU+77NLAhk5E0QPdCZp+bJyeAmhbQ664EE1C7rWLFODc0RT22hZyca0I/i9TruTW959dRFRhzsGGh/S4UayibiQE8M60jBO28AbG+61/KP4qiLZcxzoc7g+I1RuTDDnTY9ckoIYurj8w== 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=pGYc5FmFk73gu6M4c/VgoZNH+SKZtBH9GUCwk8Q6d7k=; b=QdhXxqB5gfyGMip67Fd6OeSLoYrfW+lGH3EeW/ROXbyQNTH6ePAAhIZ5ZWC/llPIpsu33cNBfnDjuD/IputFp+SN4LJSNtMmZbdve1OoPBkYxowBXV1jqqO2LeRAsrLNsQACsbGxBoCl5kRp7TojxdaHsGgT23K3Amrkc8tdBHk= 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 AS8PR04MB7894.eurprd04.prod.outlook.com (2603:10a6:20b:2aa::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.31; Fri, 2 Feb 2024 16:10:53 +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.027; Fri, 2 Feb 2024 16:10:53 +0000 From: Josua Mayer Date: Fri, 02 Feb 2024 17:10:49 +0100 Subject: [PATCH v4 2/5] dt-bindings: rtc: abx80x: convert to yaml Message-Id: <20240202-add-am64-som-v4-2-5f8b12af5e71@solid-run.com> References: <20240202-add-am64-som-v4-0-5f8b12af5e71@solid-run.com> In-Reply-To: <20240202-add-am64-som-v4-0-5f8b12af5e71@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: FR0P281CA0158.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b3::16) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|AS8PR04MB7894:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b36cd0c-ebe0-4339-14a5-08dc24098774 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bSbONFPNve9DJiMVBHbRkNv+J4mLyBwvzpLvOQKpwxCjl5Byqc6sOZ2ETixm+JrRsIBogGwJpEXoBLLLZ5vz+SpcHMG3D2vF+c2/WkR6bh/V/nnHAgc10dKz1vo0iEReFY2mSODBL5TMgT4foJ2uA7MYEr0qd2D5cyE+9xn+yskFD6D+SfbhxTjcDISyEKcuXn/zla0A6Zf/bRp2ze1i6MpUClO4xP4pyIZBbbYPcXNft8VG4smwbIrLf96nMzK0El12D41UfXONg//ylPchT5tbHr5CaUEPebZvudfqmE983u80ZBraAn8oNQ2Jo9Msw/ArAcnRwwQc6Lo7KDDHYswYJ1L5+2Feev3mv/NMLt8LOCBPgOfxpAXzZ//8A3qCvQ3NaH3qJi5gVeji6Px1gc+ErJXCIctrT4GQ91+2FO3OMfHg2MM2clCSDuAgkOFPQsZEiufA8mV5HAVxIN6qhoLX/G5FArq7yzJeDLJEL8wikgaUPDV/UXmPl0PqQIEGl8RrqP/URVhfWIwhuM9SB21ShLSMc+O3z2h+YrLtvVZI40/k43tdzzmcetA4VINjABi+nvV3xgCgj+1s06MiAJE40n8REC94UuOCaNRYr0A= 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)(396003)(346002)(376002)(366004)(136003)(39840400004)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(5660300002)(7416002)(478600001)(6666004)(966005)(6512007)(6486002)(6506007)(83380400001)(52116002)(86362001)(8676002)(4326008)(8936002)(66476007)(54906003)(66946007)(66556008)(110136005)(316002)(36756003)(38100700002)(41300700001)(26005)(107886003)(2616005)(38350700005)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?BWhwLDBLnnIUsHbhLt3kv1xceSFh?= =?utf-8?q?hnLGxIewXI5Xv5YUXgh18ChTOpL265ZPPY/MLFRX3arbjLhjQOpZhdHkoPrUMUJsa?= =?utf-8?q?puSMxEYY79sFFGmvWK6+8ykUP75Da55tvHgSRWRpDRulXlgfeyW+6CgXPLA7RSTiz?= =?utf-8?q?ObB2CC67V8Tra9zIZl2j3uRWPKmyAX8eUfLxR1bzfKnlt2kVmqhsjJYU4vgyobJLp?= =?utf-8?q?JVW6uKAFW6VbTuCQ+GsrtMIGuY7kiyMGwUKYn9fp5vT8DipnnJ1kMdBilRNEqUKQG?= =?utf-8?q?f0X5Tg2AH7kj00YGla/UtAuwMKBm6oVcLnHDlg2MM20gWDnEAv4QHwbNKbcxLtABn?= =?utf-8?q?tDn/1Dm7yZ/xhKbaPJm5R636X67JRyGdzGmZyZoxQ4T8AqC77icp9VnXJFil70aZS?= =?utf-8?q?/8lC3VwRC2GMbxQzZ7SlLmZcKkOTBXRDUN8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r4lIP0j/laZNwtiiS?= =?utf-8?q?5F0tuKIVmk/e+EtHO5LgJoATDU49HYSZGf8DkkyNfF40HzGjymg89HBcbagUWpbj2?= =?utf-8?q?calaDfRmmIzdmNWGMI3cZIN1MVivKpgfYKq+2+su0H/jnWXjbTDh2vdUIMpMEahTH?= =?utf-8?q?vGmjsajwMRLKJuHIWOYtVet9ezIUIFBntAkg5M8Fc+hsIB/09ULjyw62IvzVCuxEF?= =?utf-8?q?o4sO9RgoNzYw?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b36cd0c-ebe0-4339-14a5-08dc24098774 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2024 16:10:52.6202 (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: YS+pP9ctBcQLevW9gE1bfBF5YZwiJK3HoZ5Z4o39yKcDY3NuLitsOaWUitILLpf/VxZM3Vc0cGBEBiz4xRZ/lQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7894 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240202_081104_891792_C07E70F0 X-CRM114-Status: GOOD ( 14.85 ) 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 --- .../devicetree/bindings/rtc/abracon,abx80x.txt | 31 --------- .../devicetree/bindings/rtc/abracon,abx80x.yaml | 74 ++++++++++++++++++++++ 2 files changed, 74 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..405b386a54b0 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/abracon,abx80x.yaml @@ -0,0 +1,74 @@ +# 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: + - devicetree@vger.kernel.org + +allOf: + - $ref: rtc.yaml# + - $ref: /schemas/interrupts.yaml# + +properties: + compatible: + description: + Select a specific compatible chip. + + 'abracon,abx80x' has special meaning, + it provides auto-dection based on 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 + + 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 + + rtc@69 { + compatible = "abracon,abx80x"; + reg = <0x69>; + abracon,tc-diode = "schottky"; + abracon,tc-resistor = <3>; + interrupt-parent = <&fake_intc0>; + interrupts = <44 IRQ_TYPE_EDGE_FALLING>; + };