From patchwork Sat Jan 6 13:35:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhavin Sharma X-Patchwork-Id: 185635 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp110613dyq; Sat, 6 Jan 2024 05:36:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJVvklhBGsROfkdcbLn0lXWxOwNMqQ2ze1vnSylpDcO0HC4VIeBFInqmxzWEJSb98nCNdH X-Received: by 2002:a05:6358:430c:b0:173:33e:ec22 with SMTP id r12-20020a056358430c00b00173033eec22mr1200579rwc.22.1704548209747; Sat, 06 Jan 2024 05:36:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704548209; cv=pass; d=google.com; s=arc-20160816; b=DprJbRYHR1h0TgpvFMLgOsCY0jekGpyYg0U0iUIp4AMK+o76ASeUvaLKfLevYHof2I kPZ9AsFQ2hPHA/lr6M8S3nErTmqphAcltQJdHPHQT3WH0wVJGnSApV0UEsrxjIKAXIBU 5OOxdQi1BO6fmNKvXi6OKfp51AafQrV1wmjZqmT9QeZD63CCwkhmwXWUgVMzFTZYrrEh M1ZJUc/ORjHxV9rDDRWsbMPMVuo20/X4n3cvs6vEOBnPYLSU0R7lFy0022pol+I0dmBt Lv2Zspgz6y2Q4Qdp2Yw9Zc7FiUTWWfmwe8yZjX4evnGowJyqJaBERtVpR5IncU9FqVBc p18g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from; bh=YKHXj3F2NfYxp+0VyvmYXwCr4S5KoL8DGhvuXgVBe1k=; fh=5HdeD/SZRh5/Oj9r4RLC3CdG22Wp4grPqaJ+lJdo4cw=; b=Kt/30a1cTK30uq+l79TTN9+1Yccyy0HXVSya7kJbKitcQfEGceUP9/0J/ESk8PcSz9 YgqVVO7iqhUszkIZVoOUh8JwmqBjGFlZkWtm4M38mfKD1syWnCUUxrND7L0BGRyC1WoC mHclBiN8BYQQ4m98ofa0KoUIMp8i90PV3vi4Gw5d2Z7OCziXqN7MDKxFy2peJ7s9JWCe a7LDXvD3eLdM8yoPHfkaJZuDlgXJyBQvGCkLeXHSjq8KA03FJu1q+Ft3rYnCnR2MgYh+ KGqUeaqB37lOQlKZlxHG9E7g61B1FAr5YWQe6/JMDlyZSw3PK2cNlpOnBQBRTrS4NW1u wfPg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=siliconsignals.io dkim=pass dkdomain=siliconsignals.io dmarc=pass fromdomain=siliconsignals.io); spf=pass (google.com: domain of linux-kernel+bounces-18581-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18581-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j8-20020a17090a738800b0028ce6523925si2513337pjg.76.2024.01.06.05.36.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 05:36:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18581-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=siliconsignals.io dkim=pass dkdomain=siliconsignals.io dmarc=pass fromdomain=siliconsignals.io); spf=pass (google.com: domain of linux-kernel+bounces-18581-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18581-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7B1BD283880 for ; Sat, 6 Jan 2024 13:36:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD956882F; Sat, 6 Jan 2024 13:36:15 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from IND01-BMX-obe.outbound.protection.outlook.com (mail-bmxind01on2071.outbound.protection.outlook.com [40.107.239.71]) (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 90E197494; Sat, 6 Jan 2024 13:36:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siliconsignals.io ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HpOrq9IYDkg/U91nxfM46FOdSh9PLm1/ho0Pv12Y1cPCjbbLokliG/aCUwcydxIoWEq9NlzPCI26LqjY+jARKK51EsU7GmHY03vu/E6Yr7rNjBenBexqOWBFGA8g3k9QjTIM/YlRYSbZFg4OyA6N1A3VuUcCmM1HfnCVrNvHPTUypiGSSDJ+eIZ0YLPLSMJ9eQgm6LkkWaTYFN4S7usLE1KQCnUowkEEZrlKT4CxOi3eTDK+bPeOSqm+9DMUKrdQDgwzW/UWVPt8vu2V9s8vknyKuW4YXibozmwfGiS00dK7C4EXRJsQU5yqZP5karEmYvOnsxKs5XWvvUdhkmaaFw== 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=YKHXj3F2NfYxp+0VyvmYXwCr4S5KoL8DGhvuXgVBe1k=; b=bdIf/Q/4zdD/T/nXA8aGaMKibgRPJnCBuQ39lkRkLjvxLUvKGY+DzO4wmPwg/qaBVSn7baJPGnoNpytotR5HY4Vfy0Yo8ZBDg7jM6ZfOyJt5qwBdhpsTYPX9gXsPb/VyHST5mAJ/4H//IJylws71lNU8ZyyahlmRBXkZlBXJQEl2kDcREqhtty13Ou+BM8zt15mtnUgu3XFt/RNSbYqT5sXoyTxTApTE4tFwWYEoIiPAIgcSfZPKKWQRE4w2vW7RPxpX/4XwGN1+t21lhi2COOFohEuRM9AeewgWqDQXzruLhdqOoQvJtoRRuW/rOB9VCxDxsh5bHjEkaDO9HHJDsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siliconsignals.io; dmarc=pass action=none header.from=siliconsignals.io; dkim=pass header.d=siliconsignals.io; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siliconsignals.io; Received: from MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:42::6) by MA0PR01MB8931.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:bc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.18; Sat, 6 Jan 2024 13:36:10 +0000 Received: from MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM ([fe80::c1b:b2aa:7fc0:6532]) by MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM ([fe80::c1b:b2aa:7fc0:6532%7]) with mapi id 15.20.7159.015; Sat, 6 Jan 2024 13:36:10 +0000 From: Bhavin Sharma To: sre@kernel.org Cc: Bhavin Sharma , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hardevsinh Palaniya , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: power: supply: stc3117: Convert to DT schema format Date: Sat, 6 Jan 2024 19:05:44 +0530 Message-Id: <20240106133546.936261-2-bhavin.sharma@siliconsignals.io> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240106133546.936261-1-bhavin.sharma@siliconsignals.io> References: <20240106133546.936261-1-bhavin.sharma@siliconsignals.io> X-ClientProxiedBy: BMXPR01CA0096.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:54::36) To MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:42::6) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MAZPR01MB6957:EE_|MA0PR01MB8931:EE_ X-MS-Office365-Filtering-Correlation-Id: a32f7af2-0684-473c-80f6-08dc0ebc71ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L4nMEUlJL1nSJgGaG+d7sEv9Ud0MJVpUpZOjXSVaNThUsdD4l4NR5W/VC4N4GQcdC/Zw4xM6LwpavN28z10ipSjOBNKjTf/c3pGXTsDphWGgmysrNB+Se17+3U+qGKucwyXFVuY/Ug/uCYgIAs1cPI0EQHPYEv2gRheFcx0nKodPD9T+s/3jY2wRF6HYWNpn1gBKjSUqvsx0yjA1/lzwfxGJL5QbR8iBPv9hWbuf2Lc5wK1B2a0TkdF+4BjEOe4N3UUsDgxJtGsvho2ZPgwlvZY0nO2vNTFrX1NGiccdU7hPsOp+le1HmjfxsXdcVBRtGwmKqPLXkR1OTh4oppXNSEWy3JXdtUl6WkVh8N0Y/gqlLyKKtmFDLSSbv8Vi7rJInuITjUgbCQ/jQmIUmY9mW3N9eL6MeGkxia1KbvRKXiaO/3LQ18Lb8YOG/gNNuswdqhpYJE4EnbJR5y2PdGTUS0KYhAQsVfa1t8XY7fjHOQaekBwJXwJmdX6VRipQgG7SvyU+D3GajfozepbMEJDxVgrKe+Qz6lJg1cbSF3qIf7yKEJbWqzCtuem7rV5fJPx6QDVi9PiOWUQmL9UnqYTaHp+GBl6KY/q5LzUrEHsova8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(366004)(376002)(346002)(39830400003)(396003)(136003)(230922051799003)(451199024)(186009)(64100799003)(1800799012)(38100700002)(44832011)(4326008)(5660300002)(2906002)(38350700005)(6512007)(478600001)(6666004)(6506007)(52116002)(966005)(26005)(2616005)(1076003)(54906003)(316002)(66946007)(66476007)(6916009)(36756003)(66556008)(8936002)(8676002)(6486002)(86362001)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: s8dgmjUWA08k2jnZigZrjpO0B0vbo75Jq1a7lAu6yoV4ngct9rzkWL6uX4+s3b9lOy5lQpEznGbVOfPE0PC7gVhp3d1TgiwO3aRzGSwf/bheLu0HuE/rwM2K0gMO635yuB3najjFBxBMC6Jtt7Fg42SLqwteJn5PXMjPcVMMDH3lcg4W7w3YyxmB8jXyWe4sXG8kpnUVqB2JC9/NZcPhilu5qqztfopnwtNdGAyJlp0a/PHBGE3kJ8FceRPHYminA13fu5I+euPxndI8L90xbIyOvIfHyhHr3LmLSazZyBP4r82SvOVwg3dthLlU8HX7cRUjfVTlTVPwAb5S5uR7bovPfLVmFeRhbjwtk/FyBu6eUyz4/v1DOOHhvPSd6QWpmyDPIMntUNT+jNCLgnOlApUSD4EMOC+v0+EeTJqgJpg3hT83XDB0Jmv9zy7M/ovHPIfJCq6g076nB7Qgw2OJVt8NE73chwDeQDBtxflpzQUdjNtGomS06mH9d8snD2RXHCm3XKZUEcM16VF8cUYXjr81jgzaV0Fh10isXh73G7J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Tnev5f/Z7ygowLcH3G8= X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: a32f7af2-0684-473c-80f6-08dc0ebc71ce X-MS-Exchange-CrossTenant-AuthSource: MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2024 13:36:10.6740 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7ec5089e-a433-4bd1-a638-82ee62e21d37 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kxwNhclPz5KhwcHi42/MzYMjHUmRuMlKuOXWPAmx3+x1arUcGcaYsYQDDdUh9PgQNethsFCz/m6B35hcQ48iE0t6XMB8SFMtaNxZRGN7bEk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MA0PR01MB8931 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787348343563696175 X-GMAIL-MSGID: 1787348343563696175 Convert the binding to DT schema format. Changes in V2 resolved below errors: 1. string value is redundantly quoted with any quotes (quoted-strings) 2. found character '\t' that cannot start any token Signed-off-by: Bhavin Sharma --- .../bindings/power/supply/stc3117-fg.yaml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/stc3117-fg.yaml diff --git a/Documentation/devicetree/bindings/power/supply/stc3117-fg.yaml b/Documentation/devicetree/bindings/power/supply/stc3117-fg.yaml new file mode 100644 index 000000000..d6607a5ea --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/stc3117-fg.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/stc3117-fg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STC3117 Fuel Gauge Unit Power Supply + +maintainers: + - Bhavin Sharma + - Hardevsinh Palaniya + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + enum: + - st,stc3117-fgu + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + &i2c6 { + #address-cells = <1>; + #size-cells = <0>; + + st3117: stc3117@70 { + compatible = "st,stc3117-fgu"; + reg = <0x70>; + status = "okay"; + }; + };