Message ID | 20240205051321.4079933-2-bhavin.sharma@siliconsignals.io |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-52040-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp677153dyb; Sun, 4 Feb 2024 21:14:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEV1ahk7BFlfCGlG+I0z5UikkNajiwZeXVmMi7+COhiCTEKgzlEp3W7ZtIraQ6Wq/bCtEQN X-Received: by 2002:a05:6402:3454:b0:55f:4ba4:e735 with SMTP id l20-20020a056402345400b0055f4ba4e735mr5239765edc.2.1707110075408; Sun, 04 Feb 2024 21:14:35 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXd2cIWbvGXeHlMXqh/Tfq/TYg+mky3I9P6/OIdeesKV5QY/2lG5DJFMSwlXHbVnenq09Y1eKpoKf22viKXe8NMyCtDag== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 5-20020a508745000000b0055cef76e489si3581512edv.84.2024.02.04.21.14.35 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 21:14:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52040-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-52040-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52040-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 D5FC71F22A23 for <ouuuleilei@gmail.com>; Mon, 5 Feb 2024 05:14:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A5D3D510; Mon, 5 Feb 2024 05:14:00 +0000 (UTC) Received: from IND01-BMX-obe.outbound.protection.outlook.com (mail-bmxind01on2102.outbound.protection.outlook.com [40.107.239.102]) (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 15F45BE6F; Mon, 5 Feb 2024 05:13:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.239.102 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707110038; cv=fail; b=kUxBoobBZGLnv9Pjf9Gpywt9s+HTge5CEA1HCnLDVh/1BNu47lcbBZn4noNqbNU0AAR2Qn1mXjMwQaRyB4Ma4UG1xyxeull6nsxHUEuZaiZw5mjlJ72JyF9+nFsGzUeLoA3zRRHkvrNZtSlCS/qK2b6aIqg5X/LM11lHPoyJFdQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707110038; c=relaxed/simple; bh=0B0lcqj+owhpt/ttDtP1oTnHjLJInbPmDN4BVOHjUSw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=K5QzAKnIWZ899j7NoR0gtVX3jng8gXPLv/0wF8fRGIBZX2ShPd5+pFVoD4qlWa+UYfgt4ckkyc1lsm4Ml3IsPjPhrOuw6LC3mV+tYw72RyOzVCUSDod6kzoTaMqbHyDI+fmpnFl3Krvn9LwqqpSzArHdtRlQJAcsnzH3it29Ew4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io; spf=pass smtp.mailfrom=siliconsignals.io; arc=fail smtp.client-ip=40.107.239.102 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=IyvL/bKPRPhVdKc8dpGcaOTkhn3k2H+EFdNP1MMPU0c/+WJtSE1MhwJ21r9HZvneyICyHXv4Vi2vX5j2ULqFcHK2LvLyAChOZtROE2ibvqXe2JH5LrAm30meajT6WitcA55X3MopISAgyS9ug/FeBdJewLduDfNpnw6mopcaYA7oIMP4f08k1+CxpuNt+N0OQdF7l5ycPOZpWLonpKAF4kPDdquhihz8clm6Y/yO5fZMC7Yw7F9lNbvlLtKmpJaV5FkuoSNnkPKnuQL7Hw/KQzVBt50sowKewLSynxQQWJ+fl1Lp2kNp+FlQtr9Qdni2sqZVbSu8vUzIpLumsIs6KQ== 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=yhD2zerR0naphy4NoxcOd+wGWyxsezBEfX6T6cDvcYA=; b=MXNJwaST6AgMUgHWrWIZEPf6B7ovNmxJ1peK4IyFxgljoruPyMgDf64fcYkX7v/UtR9G2SmosXgtz+Do2UW/yccyXUMIb7UyLwYp4eqC/vDj278K6CtqTmjbB/KdTaB3BiYuF0hiH5mX7hmEem/912N7kWtE01b9cqe0rTq/UpVipPSq7Q9Rw78VRM1hJy51ZVlx2crEk/j+yrcayNsbXHlfOxXI+hZs9EEIph9M3zzyO0Uf/Hf7fIZFCgw9oCbYEOgUBf4M5pNV02NxCq+I8in1Wzn8t2CG7LkVDpXhYXLiifei/Y/DwOmt9RwfNp2OIaJar9t9knFUMwgy6v0Akg== 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 PNXPR01MB7488.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:ba::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.34; Mon, 5 Feb 2024 05:13:52 +0000 Received: from MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM ([fe80::72b4:8a64:2d93:7cc0]) by MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM ([fe80::72b4:8a64:2d93:7cc0%4]) with mapi id 15.20.7249.032; Mon, 5 Feb 2024 05:13:52 +0000 From: Bhavin Sharma <bhavin.sharma@siliconsignals.io> To: sre@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: Bhavin Sharma <bhavin.sharma@siliconsignals.io>, Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] dt-bindings: power: supply: st,stc3117 Date: Mon, 5 Feb 2024 10:43:18 +0530 Message-Id: <20240205051321.4079933-2-bhavin.sharma@siliconsignals.io> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240205051321.4079933-1-bhavin.sharma@siliconsignals.io> References: <20240205051321.4079933-1-bhavin.sharma@siliconsignals.io> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PN3PR01CA0085.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:9a::21) To MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:42::6) 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: MAZPR01MB6957:EE_|PNXPR01MB7488:EE_ X-MS-Office365-Filtering-Correlation-Id: e4159f9a-0676-4cca-a6ac-08dc26093e52 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JxTXvFdUjRK+gLaqQr/Dzva+HsT0aDO7ftbG6haTEUYc5Je20wtsT4ZvOougokqCayYnRMWCfyAXdFSWFBvP3Zzv9zLooXY8b4UIjzl/mAYupGZhdEJc/oXzIfwyQuiZGKiLhBzMOIWnpYgPdfXaP9beF0+MP8Dw0RuqtoJopDX+Op0lgYRIKBG/F7x0Z1qSK2qnXrgL+zhKulSSf6oIcHQaWhSISSn1u7I2eXLjlrUlWunFjDRTKE3sqD87QopeQStscCLjiQAMrjZ+MMiUmiPOJIGAsNQHNqplHvBczuBicEuSyrF4xMzpR3vNYmSzMI/rfYbUAYNTQ8Zm6IjL/3abdKeM7JkBVCR0iNmW7ZkZ0azlc9Vkhaa8ETQEj2MrZDu2kKgrbeZVQGAI8plyajH1ssKuE535Hi073QnHJIEMI8IU4oEqhaC81anqqUPw81uAyaGfii+I3RpXd82JNHi9c/hm6fRbKWEtKYZfNzAZqmLyCs2lZKxOJRUOZFjhsWxWboJDdQD2u1kAVNikBfc/yOvYSxiDOu2ZJAn7uOGZLi/uVxtHes2I4hdqKqPlv0LeGUB0D/fYix6i7iCRFPYz7vXu9xNrR6AGh5IoW5M= 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)(346002)(376002)(39830400003)(366004)(136003)(396003)(230922051799003)(230273577357003)(451199024)(64100799003)(186009)(1800799012)(41300700001)(44832011)(5660300002)(2906002)(316002)(66476007)(66556008)(66946007)(54906003)(8676002)(8936002)(38350700005)(36756003)(4326008)(478600001)(26005)(86362001)(6666004)(52116002)(6506007)(6512007)(1076003)(2616005)(83380400001)(6486002)(38100700002)(966005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jx/H6fAaN/b95fe2REYuTFcOWTu04g6NCkOj9ssQ89LDJFnbKUt85G4O4LLRW50rgLaJanDHgqYUkGGA2TkolBEPOC37dE4NZTB8CmANPGYz7mCvHpnoBqzDTUb4J7WA1cf6s2LfVXOqCIDbDxEDC6mtUxDi8NmvSJ7jyVa9yAi2+fQWSEeg8t3cHEIOhGftQMUJN0Thu7rOtr92NeNo3fcsIE2yp8Tny7tb/yzRRJS9oSJX/4KF4oeXJFwfW6yArhTb2cS6ToVtdPqF+GO0mQHAORsj6v2Yz7dCm6mOrRK887qvZjRBtGm6snhsa/2FmDpTVniQQIOoomRpxf+ww242MUPsGGc3ScAJb9/MaR8MN0A3DOhdRiwj4gpvROzNGEKra0oZaIm4+uMo3TwY6qsOkIvdZRMQIcXBleEbhhVXcArhcw6NWgEajFdJflcDshMRH2Dw8uUhZMgTcOltf6fy70N25AVZ/1trJTvKz3zmm/VETUX30OKjMKKaqXaOOl4Q6ULD1j3oOlzPz6ygCLvNawrIss+gnew45NVi6w0Qse59nCUXfyfbiCnfk5HvYNF0xqgG2xXEWGcG+56bMMN+/DO1mWEHCiIeGzBJ9KCBR6109czIJf+6/lrifkOKwmwmThraJt9ncHLNy2ZO351UpU6/5WSQxdZGUn1/cWVrQPeGs9PMsTyIt3W1kNzDYeetEvo5vSkIriO1kZHBL+gZgYT0t7+LK8gFEOztuoGLWkFT0/aQx1JZ74jH+ejenGje9X1+oQuzavc4Wyd56X4S+pRW6VqrvvkyKhAT3muq31OrfK9HXlCXMS8o4MDUTigqlMMRWAOzziCHGtz6vwSLiV36C0wN2XYSTdWMxqu/xhurY6O+iunyyc1QeQ0D5lhCFKSDEo85LhcmXoT1wEjuJBnqPydJ9KD2QOS5vi88RG5mMJizFpJj1Lv4CeRjIgD+u1CmeOMtPNoe7kfbe9hQ4dC53Dvvd15PH4VKY/i0TUFgLXUU5yGx0krgzFoJLc5W4qHCPCDFxMAnnjYXawitJ7QVStj0R77rww4QhMv7fAkBJrXvk7NGvrKMdflhW2lNgth/ogBcyMTtiqN4NY/+4WKsU2SoRinBMovwNII0KtQ1jN/caA82lWH3Y+2T+YjS3QklG8yQakENM+g8JipgY6ZpfKCAKjChMz9iPT5+k7bZZZ+qqU6YNTfo1jWV1y9X7ymIro43V3aaPd4C9iM/QXD1W0TEivGRJzV0BXmfYpJB58U5QoPgGO3vghRaHvnKiXu1HwIMm8BunfnrZageG26QPdmseO3Y4QtoZIBo85Y9EcpsbXuDw/xCLm/TjbwDZ2JeNk6i+avWR4+I5rJpGLdTnp/olI4PQls4pCQZG0hRDNxLLfe4SSZ/TYtU5WyUVMlRNlduXlGJze3xJk5TwWoSQyA/rRhcglxflykLJAEQ/EG2vsnbt1k9GB8klmgGL9FfgiZ4L77+1ZURd6Ihy0P2lhOLGvLXciQoG46YsD11yCVf4DJTPAlz3yE3+NDODdm6LKDT76m9n1cwhFPbmR+H0TGcJy1KHHZW3W0jfC55//QO7ckYXwnLgOIFWXLc5v9b04ED8Y2r390MhHMsLXJUPliXQO16hLF86o0= X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: e4159f9a-0676-4cca-a6ac-08dc26093e52 X-MS-Exchange-CrossTenant-AuthSource: MAZPR01MB6957.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2024 05:13:52.2747 (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: vRq/ElbxWqBJFK8cE2BiQPJOkld8Mql0u7zF1RupEQkJxp2bRVDhY9CrkaMyE0gBC2eib8F11bg4y+ux1TgqSpMJfWivyMxZczYQETI9fUg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PNXPR01MB7488 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790034654460467471 X-GMAIL-MSGID: 1790034654460467471 |
Series |
[v3,1/2] power: supply: Add STC3117 fuel gauge unit driver
|
|
Commit Message
Bhavin Sharma
Feb. 5, 2024, 5:13 a.m. UTC
Signed-off-by: Bhavin Sharma <bhavin.sharma@siliconsignals.io>
---
Changelogs :
v2 -> v3
- Resolved DTC warnings and errors
- Formatted the changelogs
- Added monitored battery properties
- Replaced 'additionalProperties' with 'unevaluatedProperties'
- Replaced '&i2c6' with 'i2c'
v1 -> v2
- String value is redundantly quoted with any quotes (quoted-strings)
- Found character '\t' that cannot start any token
---
.../bindings/power/supply/st,stc3117.yaml | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/supply/st,stc3117.yaml
Comments
On 05/02/2024 06:13, Bhavin Sharma wrote: > Signed-off-by: Bhavin Sharma <bhavin.sharma@siliconsignals.io> You cannot have empty commits. Subject: It's empty? What happened there? > --- > Changelogs : > > v2 -> v3 > - Resolved DTC warnings and errors > - Formatted the changelogs > - Added monitored battery properties > - Replaced 'additionalProperties' with 'unevaluatedProperties' > - Replaced '&i2c6' with 'i2c' > > v1 -> v2 > - String value is redundantly quoted with any quotes (quoted-strings) > - Found character '\t' that cannot start any token > --- Please run scripts/checkpatch.pl and fix reported warnings. Some warnings can be ignored, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear. > .../bindings/power/supply/st,stc3117.yaml | 49 +++++++++++++++++++ > 1 file changed, 49 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/supply/st,stc3117.yaml > > diff --git a/Documentation/devicetree/bindings/power/supply/st,stc3117.yaml b/Documentation/devicetree/bindings/power/supply/st,stc3117.yaml > new file mode 100644 > index 000000000000..9ab0b0d6b30e > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/st,stc3117.yaml > @@ -0,0 +1,49 @@ > +# SPDX-License-Identifier: GPL-2.0-only Dual license, just like checkpatch asks. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/supply/st,stc3117.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: STMicroelectronics STC3117 Fuel Gauge Unit Power Supply > + > +maintainers: > + - Bhavin Sharma <bhavin.sharma@siliconsignals.io> > + - Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io> > + > +allOf: > + - $ref: power-supply.yaml# > + > +properties: > + compatible: > + enum: > + - st,stc3117 > + > + reg: > + maxItems: 1 Are you going to answer my questions or just ignore them? > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +examples: > + - | > + bat: battery { Drop node > + compatible = "simple-battery"; > + device-chemistry = "lithium-ion-polymer"; > + energy-full-design-microwatt-hours = <16800000>; > + charge-full-design-microamp-hours = <4000000>; > + voltage-min-design-microvolt = <3000000>; > + }; > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + stc3117@70 { Still wrong name. This is a friendly reminder during the review process. It seems my or other reviewer's previous comments were not fully addressed. Maybe the feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them. Thank you. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/power/supply/st,stc3117.yaml b/Documentation/devicetree/bindings/power/supply/st,stc3117.yaml new file mode 100644 index 000000000000..9ab0b0d6b30e --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/st,stc3117.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/st,stc3117.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STC3117 Fuel Gauge Unit Power Supply + +maintainers: + - Bhavin Sharma <bhavin.sharma@siliconsignals.io> + - Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io> + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + enum: + - st,stc3117 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + bat: battery { + compatible = "simple-battery"; + device-chemistry = "lithium-ion-polymer"; + energy-full-design-microwatt-hours = <16800000>; + charge-full-design-microamp-hours = <4000000>; + voltage-min-design-microvolt = <3000000>; + }; + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + stc3117@70 { + compatible = "st,stc3117"; + reg = <0x70>; + monitored-battery = <&bat>; + }; + };