From patchwork Wed May 31 01:42:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 689485 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16A4CC7EE32 for ; Wed, 31 May 2023 01:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233675AbjEaBm4 (ORCPT ); Tue, 30 May 2023 21:42:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233557AbjEaBmy (ORCPT ); Tue, 30 May 2023 21:42:54 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AECDA118 for ; Tue, 30 May 2023 18:42:52 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4f3edc05aa5so5861349e87.3 for ; Tue, 30 May 2023 18:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685497371; x=1688089371; 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=cXyNmP0KkrD7wf9D/UQ1p5UcmLHwwCnJ3NjK3osNVHQ=; b=mK2HIgxjS3bf92C00ctipk7hErkU+JnQDsX+hITDvG81CWYoc5P5wD3TEQOdldIBr0 OZBIwH3AZNNLsg5b91TEo9IvUgo0nPYg/5L1hC7vHFhQKdG9kDvBRqaWKvCoF/nQJouS y1G8hLX4ooPFWYB9bRv64VPFTErBOtS+hGqDUPjV/4/Ifbb9Ls0ZJuj2ZEfFd9Sa1LLi EQM2LcbH2e2f1nw87Cbn+wymcVolZf0XNn2VHuebcKT9Q5cpZkKmZn9vPXxtD1E4EuLv bcV1/JcX3mvGSs5zhVAZW6N6UhYquuesNkB8pVkduk/0sQU8gjn4s5NKZGkbSjFzGuOI 8IIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685497371; x=1688089371; 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=cXyNmP0KkrD7wf9D/UQ1p5UcmLHwwCnJ3NjK3osNVHQ=; b=Qn+jkjcMN2cXW0quJjrwMN3jRTOcqeCO5cdOxxuXxHrzp9Dn/KY5kndOoTFYBwYIKD QNa5is+ZRpM+Jir371PGF6NmRTH4v2mvYKEpV4NSxuQHcqC6qccPf0S4yKAKjDc/UJ2H VtFTbpfZt3V93TfNmXLbjz3kTXuTVn09LnLyHOiBNsPriEGEzW53y2P2oD+ilN4+ezPa H6NLcsCDmBFX4LKnUguoYBIgXkpkjD0AujPtdLw69fSBO0Y1I/QPCrW5bOGenHy8p87D +jg+LOvkBVHXoP5JcIOulHbaBdwlfnh94PmgllGnhgBjnfyp01JuX61ZcW7VZI6WMfq6 nrAA== X-Gm-Message-State: AC+VfDwZCXkYOsfho7AmqiWzFF3ZvfgBJY11kOHjpBhSowqvBKLTX12a 0t2C3d5N7F5DQro1Bb5q9nykkQ== X-Google-Smtp-Source: ACHHUZ6MS1kSFKwUjniTyaAkT2Nd+rRedjQYfRCTPELHn9/ABuKRlPnOo1J7hbBcFH4XL9ayjye3AA== X-Received: by 2002:ac2:5456:0:b0:4f3:a891:45c0 with SMTP id d22-20020ac25456000000b004f3a89145c0mr1983104lfn.61.1685497370935; Tue, 30 May 2023 18:42:50 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id q20-20020ac25294000000b004f3945751b2sm515994lfm.43.2023.05.30.18.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 18:42:50 -0700 (PDT) From: Dmitry Baryshkov To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v3 1/4] dt-bindings: power: reset: qcom-pon: define pm8941-pon Date: Wed, 31 May 2023 04:42:45 +0300 Message-Id: <20230531014248.3824043-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531014248.3824043-1-dmitry.baryshkov@linaro.org> References: <20230531014248.3824043-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On PM8941 pon doesn't store the reset reason. However we still need the wrapping node for pwrkey and resin nodes. Add bindings for pm8941-pon device. Signed-off-by: Dmitry Baryshkov Acked-by: Rob Herring --- .../devicetree/bindings/power/reset/qcom,pon.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml index d96170eecbd2..eb3c88e501ef 100644 --- a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml @@ -19,6 +19,7 @@ properties: compatible: enum: - qcom,pm8916-pon + - qcom,pm8941-pon - qcom,pms405-pon - qcom,pm8998-pon - qcom,pmk8350-pon @@ -56,13 +57,22 @@ required: unevaluatedProperties: false allOf: - - $ref: reboot-mode.yaml# + - if: + not: + properties: + compatible: + contains: + const: qcom,pm8941-pon + then: + $ref: reboot-mode.yaml# + - if: properties: compatible: contains: enum: - qcom,pm8916-pon + - qcom,pm8941-pon - qcom,pms405-pon - qcom,pm8998-pon then: