From patchwork Tue Feb 14 09:08:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 56787 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2856556wrn; Tue, 14 Feb 2023 01:12:03 -0800 (PST) X-Google-Smtp-Source: AK7set9AGg0PlXiT0ASmop8HDoJ/pxPE12C9+CDm4snvybtjUC8d/j/asjBrA3TWLVfvWqrxUlPL X-Received: by 2002:a05:6a21:328f:b0:b8:bcfb:7ae6 with SMTP id yt15-20020a056a21328f00b000b8bcfb7ae6mr1420627pzb.23.1676365923078; Tue, 14 Feb 2023 01:12:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676365923; cv=none; d=google.com; s=arc-20160816; b=UF5erFIhaPd9xA2rnovxjuMPtmSVf45cXCI6Nq2CCqD6kkf79ZGETt44lewTXtWVc5 KQ0vcO+9fU2vUqdw4PfF4pslq/BC0hNRYmhgZGOEZSvLShrCBACGpa45kdJvY8ZwlDaD ItGBCC+hXvU80C5gDePiCxvk+zh/mhO3A+g2/Q5q8CkeHlPF4qhoW0GZpOoCRNr+/pqa xNduSPrIVCL4WjQEzn8MEK0sPV8vTlLpYum7/jQq+/DhTV5++3LT6ehXpBwIi68iEkR1 IFVXLhrEi1YeqsmYlRiUCqAuKc1dnUNCFKHzanM52FC0Argjg2VArLw/W/MnQKoIDFZe FxWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CQlRVEdqb3xvOh0YbavmZdnZTVv7UAg4IoCftBovVqc=; b=kq+84Iq4GOzduCN2W0advq2lIxO3yzq3UlfADhe1mh02C8pgHFD4EaR5rTtMAQX13t eHa9iF+uBfdjg2NqC6xOv/s7M19zOIMMY5q8cZo5XE7G5U0Wn/Dl+AprdV3m/Q/eD8yw +h4pksYD48576Wgb/ce+OAuvzTICRu9zyhFnkwZ1fC68gye57cSq40k/lmaFG25HJKRI 3Uik0yX7oiW0yxhNH/qGA3IDT0NuRX/tKkGtbobLgzwJrZk/OcAu+gpPHLQjOnqBJVA5 0KMuNjrdsRvbQ2D+uuwXYQAXT5PJqhn9QV2NvJyZc4jmEYcsyfvA7appUk4MtWaP4wl1 bUsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nkpCXQ56; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b195-20020a6334cc000000b004fb96289431si7234241pga.676.2023.02.14.01.11.50; Tue, 14 Feb 2023 01:12:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nkpCXQ56; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232348AbjBNJKi (ORCPT + 99 others); Tue, 14 Feb 2023 04:10:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232431AbjBNJKE (ORCPT ); Tue, 14 Feb 2023 04:10:04 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EE892528C for ; Tue, 14 Feb 2023 01:08:56 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id jg8so38403712ejc.6 for ; Tue, 14 Feb 2023 01:08:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CQlRVEdqb3xvOh0YbavmZdnZTVv7UAg4IoCftBovVqc=; b=nkpCXQ56BxHkEWs0xM2KwhdQDFBBPyxNWzIisqVASibdi8RmNbz+7S3A//hu0rfqgm NJHubDaNKd906a2/uWCZdR+yvvJNqEixXTtb+LJMweNmXtVOcjWaOMTyTBjKQYecpUsW 4YQrlSt3/wkk1g+19rmcSBLkX+ri+AS3CEUsfYc8DbHAQhj5m3064AWI5/ID+VnHXZYh H6VEKdNW7wWpJKajcinMLgs80chXciNoPblQbW6m/p2LhZM1KgXFwkPIzDJir392a/PW 2j2WBtaWwv+8ZtKFkC9SFdLoa6jXiJaBPxX7JLGIJ7sJKDv6y5L9BOd1+Q+7K5OrbLoC t28A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CQlRVEdqb3xvOh0YbavmZdnZTVv7UAg4IoCftBovVqc=; b=h/hDmnjePLfWCXvYeqQNWa0nw10IHJh0JN+z+rt7Pn8a/lA/8h2IWd+ohwEru/eOmH te6LOyMJ7Loqu/Ir6xUfLZz323e/WNrgQJq4X+7KHh8PTGmTMj/IOsPm5dT6yKu05VtZ wOH5gfANLzO2/7A4eDnq2FXfqVKnTViglvExGU6xtkE+cpuZumFVX1C1oGkz4MuMKdyj MJYMIpAaeDOPX4/7HJzrmkBx/6QNuK5NmzqUaltrkE5G2oyE7I+GBzzmPiO0ZNNVzsRk pE5ljI5YOhdG50m3JfDW6KpaiZ8nNaKyll8ZfiTZMUppy2u0ldAtDKQSWT/7ut5daTpU QE9Q== X-Gm-Message-State: AO0yUKVCFeS5uaulRZf/BZRkGCOtf8GX31Wdj7KwyYdMo1MQl1qSRSKU 1BEWohTDIDGunvBMGb07j4UhOg== X-Received: by 2002:a17:906:1249:b0:88f:5377:1048 with SMTP id u9-20020a170906124900b0088f53771048mr22128328eja.22.1676365734746; Tue, 14 Feb 2023 01:08:54 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id d6-20020a170906040600b008838b040454sm7998110eja.95.2023.02.14.01.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 01:08:54 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Krzysztof Kozlowski , Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] dt-bindings: power: supply: pm8941-coincell: Don't require charging properties Date: Tue, 14 Feb 2023 10:08:48 +0100 Message-Id: <20230214090849.2186370-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214090849.2186370-1-konrad.dybcio@linaro.org> References: <20230214090849.2186370-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757797074036799682?= X-GMAIL-MSGID: =?utf-8?q?1757797074036799682?= It's fine for these properties to be absent, as the driver doesn't fail without them and functions with settings inherited from the reset/previous stage bootloader state. Fixes: 6c463222a21d ("dt-bindings: power: supply: pm8941-coincell: Convert to DT schema format") Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- v1 -> v2: - Describe the behaviour when the properties are absent .../bindings/power/supply/qcom,pm8941-coincell.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml b/Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml index b7b58aed3f3c..1d2405bea109 100644 --- a/Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml +++ b/Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml @@ -28,12 +28,18 @@ properties: maxItems: 1 qcom,rset-ohms: - description: resistance (in ohms) for current-limiting resistor + description: | + Resistance (in ohms) for current-limiting resistor. If unspecified, + inherit the previous configuration (e.g. from bootloader or hardware + default value). enum: [ 800, 1200, 1700, 2100 ] qcom,vset-millivolts: $ref: /schemas/types.yaml#/definitions/uint32 - description: voltage (in millivolts) to apply for charging + description: | + Voltage (in millivolts) to apply for charging. If unspecified, inherit + the previous configuration (e.g. from bootloader or hardware default + value). enum: [ 2500, 3000, 3100, 3200 ] qcom,charger-disable: @@ -43,8 +49,6 @@ properties: required: - compatible - reg - - qcom,rset-ohms - - qcom,vset-millivolts additionalProperties: false