Message ID | 20240202-add-am64-som-v4-2-5f8b12af5e71@solid-run.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-50112-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp533906dyc; Fri, 2 Feb 2024 08:14:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEldwtvwbMbMPVqmcpN0DIPNWWSeKoCN35C7OQdcElAYXdtTegYIbJtyLO7sTyPbpUYC8AU X-Received: by 2002:aa7:d6cc:0:b0:560:79a:11d5 with SMTP id x12-20020aa7d6cc000000b00560079a11d5mr101057edr.9.1706890465637; Fri, 02 Feb 2024 08:14:25 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU1CP/ghN8xs3Bfr227UnOmLav/a2CrlWHQ3UzgFiqt+wvunQEKEPXofMZsn5E6FRZEaIRfUvGJ4qEMF5mpfAL3PCzQ0w== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m7-20020a509307000000b0055a393e15a7si911136eda.173.2024.02.02.08.14.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 08:14:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50112-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@solidrn.onmicrosoft.com header.s=selector1-solidrn-onmicrosoft-com header.b=QdhXxqB5; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-50112-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50112-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0B4E01F2F299 for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 16:14:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16DC814C5B3; Fri, 2 Feb 2024 16:11:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b="QdhXxqB5" Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2130.outbound.protection.outlook.com [40.107.8.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0358B14830A; Fri, 2 Feb 2024 16:10:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.130 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706890264; cv=fail; b=V2EFfXgPtO9+G/HdgXvtfqk+7MXuj7apY5S/knZS5UqUjATlFk270gr1jU6Ko8C/b6pkUVM8si1/3ix4kaIBliXDX294SIdbY5nFbi56mwJD+Il7qjZWI/Mq/Kwa4/25xn4GvHOR/w9Mvs8UGsbvVsivNERjFSgIssfrW7hXj5o= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706890264; c=relaxed/simple; bh=5j8dujCNX1z3Dseon/Dm5KQ04LNpIjgEL0V1TupaUZA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=pcn8wk4v7yqZEEwDYh5RgC93nzrydBNRoFZBXD1ngBXIgHDVsAckVEwEp67L7CNscH4rhiNXHyxjqEmrv36IogdWm83GNwi8rJNXfCsVig4YUoXkm5Hh/xDI72QoaB0PkLIYSlZf91tQBplH2lmcTPUia9T8LUw1JxfKKFaEe+M= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=solid-run.com; spf=pass smtp.mailfrom=solid-run.com; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b=QdhXxqB5; arc=fail smtp.client-ip=40.107.8.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=solid-run.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=solid-run.com 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 <josua@solid-run.com> Date: Fri, 02 Feb 2024 17:10:49 +0100 Subject: [PATCH v4 2/5] dt-bindings: rtc: abx80x: convert to yaml Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>, Tero Kristo <kristo@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@bootlin.com> Cc: Yazan Shhady <yazan.shhady@solid-run.com>, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Josua Mayer <josua@solid-run.com> 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) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> 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?/8lC3VwRC2GMbxQzZ7SlLmZcKkOTBXRDUN8WhXuDLT4rUtNqdEDa4XCXOVVnUJLLC?= =?utf-8?q?kBllYzc7cyV0IKPfMyRyqDptLE/pdfiWnB15IGwiH0LE5aV4v0NcQv/iG3XiyqdO+?= =?utf-8?q?2NHX0e5KLTOJvO0bc7nmsn3b9EDeiMRLB3mEPelzPT7saONszK4a3U95mAYqpX2eP?= =?utf-8?q?nPSRpI48LXj4XZJV13EzPvm6iJ1sg1i/syDybtCewCuCk0sqDwtq1TQOyjG5+14t1?= =?utf-8?q?PI3JcI+7An2rjz+1R69lTb3EPDb0hk0v9uEhgT++yOylMm6Vq10a9lUBpkG4MTpZN?= =?utf-8?q?tumU5kP9UEK2RIO6t9XOjsbSNtxsERuWGql9mBreN5Eq5IpQDAInMV/DEgGLE+TM6?= =?utf-8?q?0zU4lZpm2mqA6EngyQWMpb1oQ61o4l5iaUD5s2CCDmDwT0lDf1qFcCkSFoKceR6h1?= =?utf-8?q?LCgogXlkCAiIYKvJssOcpnbY3bi4HpFk26B7prx610+P4vJdIQIqBSrD3EIjwHIxF?= =?utf-8?q?JKou++4lv6LG2N8hNCr+svsUNoY54zhM1hl0Pp4PSbrHQnp0eP88qh3DGFSHCuarL?= =?utf-8?q?JXG2vpEUGO8gLEE9yLZZxQgMuSHqRkY3B4EDEJgM9S+s784aoFU4O6U2TtUH00pht?= =?utf-8?q?Rc0h0SzgQsXRZpMlL5VLaVH5Q4TIeEaQsQyes5EezI/q+SJ8Fz93A9FKxihnkAeEU?= =?utf-8?q?PQ2Yj20CAPp0aKZiRKKppuDQgSOUjGxp0zZfm3i29F8Wah6OLI38ikTpLutI5RUMe?= =?utf-8?q?3fXGzzFz0+mJmOcI926mZs39EbXovCFoZpfrE8uEH+xxWRviI29tAfKKXvg3+R77f?= =?utf-8?q?EcfhyVzLFNrUmcfOe9pPX+F9RnZV3mY7JfukoytW6+LsAEM01M8m2AFtiAdPSG3//?= =?utf-8?q?Pld7FPukUg56TYJwqXbZ/fYYvYjfYCnFuTDOwkbTrFGkyK/hr4lIP0j/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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789804376660271672 X-GMAIL-MSGID: 1789804376660271672 |
Series |
arm64: dts: add description for solidrun am642 som and hummingboard evb
|
|
Commit Message
Josua Mayer
Feb. 2, 2024, 4:10 p.m. UTC
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 <josua@solid-run.com>
---
.../devicetree/bindings/rtc/abracon,abx80x.txt | 31 ---------
.../devicetree/bindings/rtc/abracon,abx80x.yaml | 74 ++++++++++++++++++++++
2 files changed, 74 insertions(+), 31 deletions(-)
Comments
On Fri, 02 Feb 2024 17:10:49 +0100, Josua Mayer wrote: > 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 <josua@solid-run.com> > --- > .../devicetree/bindings/rtc/abracon,abx80x.txt | 31 --------- > .../devicetree/bindings/rtc/abracon,abx80x.yaml | 74 ++++++++++++++++++++++ > 2 files changed, 74 insertions(+), 31 deletions(-) > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: Documentation/devicetree/bindings/rtc/abracon,abx80x.example.dts:28.13-26: Warning (reg_format): /example-0/rtc@69:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1) Documentation/devicetree/bindings/rtc/abracon,abx80x.example.dtb: Warning (pci_device_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/rtc/abracon,abx80x.example.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/rtc/abracon,abx80x.example.dtb: Warning (simple_bus_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/rtc/abracon,abx80x.example.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format' Documentation/devicetree/bindings/rtc/abracon,abx80x.example.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format' doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240202-add-am64-som-v4-2-5f8b12af5e71@solid-run.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
Hey, On Fri, Feb 02, 2024 at 05:10:49PM +0100, Josua Mayer wrote: > 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 <josua@solid-run.com> > --- > .../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 Ideally you put someone here, not the DT list. Usually the original author is a good choice, which I think happens to be the subsystem maintainer... Failing that, the rtc subsystem list is likely a better choice than the DT one. > + > +allOf: > + - $ref: rtc.yaml# > + - $ref: /schemas/interrupts.yaml# This should not be need. > + > +properties: > + compatible: > + description: > + Select a specific compatible chip. I'd drop this line. > + 'abracon,abx80x' has special meaning, > + it provides auto-dection based on ID register. And reword this. The compatible itself does not provide auto-detection, it's the opposite - the driver must perform auto detection if this compatible is used. > + 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 <dt-bindings/interrupt-controller/irq.h> > + > + rtc@69 { > + compatible = "abracon,abx80x"; > + reg = <0x69>; You'll have to make a "fake" i2c bus here to satisfy the tooling. There should be lots of examples for how to do this in other rtc bindings. Thanks, Conor. > + abracon,tc-diode = "schottky"; > + abracon,tc-resistor = <3>; > + interrupt-parent = <&fake_intc0>; > + interrupts = <44 IRQ_TYPE_EDGE_FALLING>; > + }; > > -- > 2.35.3 >
On Sat, Feb 03, 2024 at 03:08:59PM +0000, Conor Dooley wrote: > Hey, > > On Fri, Feb 02, 2024 at 05:10:49PM +0100, Josua Mayer wrote: > > 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 <josua@solid-run.com> > > --- > > .../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 > > Ideally you put someone here, not the DT list. Usually the original > author is a good choice, which I think happens to be the subsystem > maintainer... Failing that, the rtc subsystem list is likely a better > choice than the DT one. > > > + > > +allOf: > > + - $ref: rtc.yaml# > > > + - $ref: /schemas/interrupts.yaml# > > This should not be need. Ahh I now realise what your intent was here. All you need to do is add | interrupts: | maxItems: 1 to your binding and it should do what you're looking for.
Am 03.02.24 um 16:10 schrieb Conor Dooley: > On Sat, Feb 03, 2024 at 03:08:59PM +0000, Conor Dooley wrote: >> Hey, >> >> On Fri, Feb 02, 2024 at 05:10:49PM +0100, Josua Mayer wrote: >>> 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 <josua@solid-run.com> >>> --- >>> .../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 >> Ideally you put someone here, not the DT list. Usually the original >> author is a good choice, which I think happens to be the subsystem >> maintainer... Failing that, the rtc subsystem list is likely a better >> choice than the DT one. >> >>> + >>> +allOf: >>> + - $ref: rtc.yaml# >>> + - $ref: /schemas/interrupts.yaml# I was intentionally looking for some feedback on this idea, for solving dtbs_check complaints for both interrupts and interrupt-parent properties: arch/arm64/boot/dts/ti/k3-am642-hummingboard-t.dtb: rtc@69: Unevaluated properties are not allowed ('interrupt-parent', 'interrupts' were unexpected) from schema $id: http://devicetree.org/schemas/rtc/abracon,abx80x.yaml# > Ahh I now realise what your intent was here. All you need to do is add > | interrupts: > | maxItems: 1 > to your binding and it should do what you're looking for. Yes, that is in line with everything else. What bugs me is what to do about interrupt-parent, and whether to include it in example.
On Tue, Feb 06, 2024 at 02:44:24PM +0000, Josua Mayer wrote: > > Ahh I now realise what your intent was here. All you need to do is add > > | interrupts: > > | maxItems: 1 > > to your binding and it should do what you're looking for. > > Yes, that is in line with everything else. > > What bugs me is what to do about interrupt-parent, > and whether to include it in example. I am pretty sure you don't need to add it.
Am 03.02.24 um 16:08 schrieb Conor Dooley: > Hey, > > On Fri, Feb 02, 2024 at 05:10:49PM +0100, Josua Mayer wrote: >> 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 <josua@solid-run.com> >> --- ... >> 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 > Ideally you put someone here, not the DT list. Usually the original > author is a good choice, which I think happens to be the subsystem > maintainer... Failing that, the rtc subsystem list is likely a better > choice than the DT one. rtc-abx80x.c mentions: MODULE_AUTHOR("Philippe De Muyter <phdm@macqel.be>"); MODULE_AUTHOR("Alexandre Belloni <alexandre.belloni@bootlin.com>"); I personally prefer to put a list, since I don't know status of first author, and second author / rtc subsystem maintainer is automatic. So v5 will feature linux-rtc@vger.kernel.org.
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 <dt-bindings/interrupt-controller/irq.h> + + 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>; + };