From patchwork Wed Apr 19 10:41:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 85314 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp285231vqo; Wed, 19 Apr 2023 03:46:10 -0700 (PDT) X-Google-Smtp-Source: AKy350bZGJeqRGsqpSCqbmvnv7lYylUTaykMVFJFTelSHMtevVRXXEULvQzsqMWviG5RKF5X/MtA X-Received: by 2002:a17:90a:8991:b0:247:83fe:12b6 with SMTP id v17-20020a17090a899100b0024783fe12b6mr2355043pjn.43.1681901169871; Wed, 19 Apr 2023 03:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681901169; cv=none; d=google.com; s=arc-20160816; b=I3l5v82DSPjGZyb1uBKOGJ7zMW1y+o8OMrU2Zb2/y+oLBavmwdpNd30KgaX/Pg6wqB 20HQfJY40xGEL/yJlPZRfVbLOzrFhBeyYO4csiB//yTQPBEV5PXOPTBFqe2YSw926QGE yTaxosK/jGxh/eafOl+LPUpF0OgLL5W7UT0xbSauRSUUrgmY3qGpKLWgov6YyTrYEBPG ovL5W3vss/895/0iQ5IiE/JKpSE8nJNwxcMa3u9pzpDiOF9spbLFPoPMP8VFj5uEXMv3 LDixykgH/ze5uUubKmwwgvmBuI2jh1hvFcTeqMXHcsiLKV125NO/pRSrCminHvX4B53O R/sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=RZxVMEh9KILGtkcQBVWxPt1W9P5HUJPkp/aglLZNmOE=; b=n8WP3GoGfF7pM3GiAdNH0o/Vi6xTOJ5skIsdA+yfyBNnn+lJF/dIkZkhlyJDINXQm8 Dwi576P0URdkHkL+so7rn6TGHRk2gA5/DGTt5ri82Uc7T8OTyPa0aRomcYc6Dmkul2x+ 90+wGEYVna3xhWLEqW+tYFWAfGlX8mVXGQE1cnP5lEcQ/DIaGX1TUYdSejN4zPrUCNbi iCzxWSzyyOV/tfNWbODm7772rs2SnKuCgelSXGQvRslGIIPBejoxyiBDFuRLfWEoWIuT Snh+s6qhn2oSoh/wBOFRvY1HEwrj/mXgEpgVBsz8YHJrURkNieiDx+DB996yFr8d9q+y bsRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n4N1Glsv; 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 kb10-20020a17090ae7ca00b00247992c3cf6si1740307pjb.71.2023.04.19.03.45.57; Wed, 19 Apr 2023 03:46:09 -0700 (PDT) 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=n4N1Glsv; 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 S231688AbjDSKlT (ORCPT + 99 others); Wed, 19 Apr 2023 06:41:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231574AbjDSKlO (ORCPT ); Wed, 19 Apr 2023 06:41:14 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84383132 for ; Wed, 19 Apr 2023 03:41:12 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id h8so17786170ljf.3 for ; Wed, 19 Apr 2023 03:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681900871; x=1684492871; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=RZxVMEh9KILGtkcQBVWxPt1W9P5HUJPkp/aglLZNmOE=; b=n4N1GlsvUd4WzaLAEqR7DCy6mNV5YcQWHtXQSpD0o9fyo+f5USa+0NaskB4HS23XfY TJ5kQjndnbQp7dk3/WMn1+jD1yM+dheGRwmAH3MCPo82AZxtoJrefR9U68Z53W1Vc7n/ RCAZfUpwRdC2szu9jm7SCSOrW4wTlA0evAU0Zq9cbv2aFrezWntoASFqdAi+wyQUWuS+ 9KkAhMzYRFlXLkgoLyEe9sdINnE/r9xROkMeEXFEDaYQIcfMIbcnhAh0iaP0P4D0PGms 1KgIDRoKb98HNts75g2pYAPPnRpHSX7Mb5Ui0HDUqC5hPfBm66p+j0z3j2ls3ALKproV k/oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681900871; x=1684492871; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RZxVMEh9KILGtkcQBVWxPt1W9P5HUJPkp/aglLZNmOE=; b=c7M/AWwzu+ku+GZf83ELmeH7+Y6hyDX+674UPwOeKCwLOoQW/G2WoJjgv05IxW2PHW pjZdujCE+c2w5h2RupuQv0ekxWDoQxdhwL6nTqHR44Hn/BiMaOX4k3SdgsGtIWZpbPCZ ZVHn45tKR/D8oJq8lXnldjfNkbA0KJUUlVqt9Y51Ez7ei4a0zTPSncJ/GQXQkew9Wa45 wqehwPPkf/x9NQy/SGHj6A3XpulT2w5HZ93JtihEyZjjXwT96dkNeRjaXOX30I7slQGH EVcIHV8beBOGbGGKkQW7i7umwc9qih6M6K9qvjKiagIuxHyjY2IpzXr8yC+70kCXOjYD FNAQ== X-Gm-Message-State: AAQBX9eku9touavaGu9fUQsQjK4g97F5QU8wh+2l3M9va/VmcOwrYEvt k+NZX9/0fbAMV5L90v4nMTTPAg== X-Received: by 2002:a2e:b5d2:0:b0:2a8:be0a:9c52 with SMTP id g18-20020a2eb5d2000000b002a8be0a9c52mr683657ljn.21.1681900870772; Wed, 19 Apr 2023 03:41:10 -0700 (PDT) Received: from [192.168.1.101] (abyj144.neoplus.adsl.tpnet.pl. [83.9.29.144]) by smtp.gmail.com with ESMTPSA id s12-20020a2e9c0c000000b00295a583a20bsm2863366lji.74.2023.04.19.03.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 03:41:10 -0700 (PDT) From: Konrad Dybcio Date: Wed, 19 Apr 2023 12:41:06 +0200 Subject: [PATCH] dt-bindings: power: reset: qcom-pon: Only allow reboot-mode pre-pmk8350 MIME-Version: 1.0 Message-Id: <20230419-topic-pmic_pon_bindings-v1-1-ea233dae0117@linaro.org> X-B4-Tracking: v=1; b=H4sIAEHFP2QC/x2NWwqDMBAAryL73UDUUtJepRTJY6MLdhOytgji3 bv0cwaGOUCwEQo8ugMafkmosEJ/6SAunmc0lJRhsMNor/3dbKVSNPVNcaqFp0CciGcxOad0i9a 57BC0Dl7QhOY5LtrzZ11V1oaZ9v/u+TrPH3td+xp+AAAA To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Vinod Koul , Anjelique Melendez , David Collins Cc: Marijn Suijten , Sebastian Reichel , Krzysztof Kozlowski , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681900869; l=1540; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=2aZ3HfQSYlnBEwHgH5XeH4h3AP9+DA2PwArsm4RGbHw=; b=Bs5hfZVu7ebswkV4EDCAyX0cgv0zVPAUv5NXngn6UIZljq16V4jurBCK8qraiJRe8dhdl4Q3HUpQ X6HJvO46An7tRyuvIFg+fPiEc4TcfI79zuM1XBhZcqJRBg7qSMWO X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1763601201380616619?= X-GMAIL-MSGID: =?utf-8?q?1763601201380616619?= As pointed out by Shazad [1], PMICs using a separate HLOS+PBS scheme (so PMK8350 and newer) are expected to pass reboot mode data through SDAM, as the reboot mode registers are absent in the HLOS reg space. Limit the reboot-mode.yaml inclusion to PMICs without a separate PBS region. [1] https://lore.kernel.org/linux-arm-msm/12f13183-c381-25f7-459e-62e0c2b19498@quicinc.com/ Fixes: 03fccdc76dce ("dt-bindings: power: reset: qcom-pon: Add new compatible "qcom,pmk8350-pon"") Signed-off-by: Konrad Dybcio Acked-by: Rob Herring --- Documentation/devicetree/bindings/power/reset/qcom,pon.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- base-commit: 67d5d9f013d6c3829383c08162939cabff14fccc change-id: 20230419-topic-pmic_pon_bindings-ffdd6c088f8e Best regards, diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml index d96170eecbd2..0b1eca734d3b 100644 --- a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml @@ -56,7 +56,6 @@ required: unevaluatedProperties: false allOf: - - $ref: reboot-mode.yaml# - if: properties: compatible: @@ -66,6 +65,9 @@ allOf: - qcom,pms405-pon - qcom,pm8998-pon then: + allOf: + - $ref: reboot-mode.yaml# + properties: reg: maxItems: 1