From patchwork Tue Aug 24 02:19:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 501784 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp2727252jab; Mon, 23 Aug 2021 19:19:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwneC/6fChcwm64uPI0dANTbUB1W4dmwifZQ1yHp/uS7fW0yzKkb0eEaNAMWSuzTACctQNG X-Received: by 2002:a17:907:2677:: with SMTP id ci23mr8841541ejc.429.1629771576023; Mon, 23 Aug 2021 19:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629771576; cv=none; d=google.com; s=arc-20160816; b=QO2guoq8WU7Yc2uuYBXUxMFwI24qjZKyhqtDJjWNb0V91rIPNWloESn4F8iJkQnHw9 tN7/pV22ZgNQI+dN4QWwQLeaQ1FI65Zxxr5v6W/bYimtg3c3lLtRQsDoYeNd1P7a1VvU 7PxVGopNml83cToF+jqX4vXj4FYaBOCdaP++3oB0X8YHfrmFAaLP6Q5/fmHy/thJJ0ln 9PsBDmdNMClGmaDJfDm5Yfo5BlwaDZXg0MGgRf3ar6bfqaJSuObHqW6SXf+0Z4tXcRcg ynDCrPtXk51ksIlTzdYzNvD0nNgxV3dkn3kI9FoQG9lTdtN7Y6+Liy6NDBTr3teIi+48 kXVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=SAYfyHfKtEIZUA145VWKAPDNQgImJMaU3dtgNUZKT2M=; b=fvz5pacH/v2ifmswN2S892JHK+4QGKuzzmywdigkx9i0bsW9N4dLQNXE+hQFOs2Vrw Tw3VOPAsrhnQX+CxfaCbWU/s2726c3mjfBEpd2GVClQu4KNW0BdapA8MMTW+3n1SSHp0 8+yIFgF/ygR30sfk0JdS3WODlU+x+FH6MetvFj2R7eGlj5zpr2RTRBBvmZO6B8ZxElpn xo/c1uLWgn1Hv+7AJBR0h9/8+JZQpsg0h078p80qOuwRaDDB61b/LDPbFj9l6zCWSvtH XnYHl1NHBCjMW1ZuY902qXyUbs3hGfm8V1SLtU5WeHobCUJFbyy1o176oWuJFr6RqEX5 hR9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bzltG0AC; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si4110997edq.258.2021.08.23.19.19.35; Mon, 23 Aug 2021 19:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bzltG0AC; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S233745AbhHXCUP (ORCPT + 7 others); Mon, 23 Aug 2021 22:20:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233681AbhHXCUM (ORCPT ); Mon, 23 Aug 2021 22:20:12 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 722FCC061760 for ; Mon, 23 Aug 2021 19:19:28 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id y11so17003642pfl.13 for ; Mon, 23 Aug 2021 19:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SAYfyHfKtEIZUA145VWKAPDNQgImJMaU3dtgNUZKT2M=; b=bzltG0ACe6O5otAzfzo149Fyy+9jQuYkdpMBDOsQBI6oFyGX563Qe1j7ECEGld4L0R ZLjTIN7WECTa/lXMapRT1N971z/p5UvrsYz7AaNeZ36MiiBiMzRDoJqp68qQJbzDgrfO zzNIoiCzUtREbgb7JUnSUjP67fPUvK5t6GpI+g0YofB1IcGmkYyO/WiCOsdg/AckNSml F8a1ayCCAl7jGuUD16Hsdv+J6NJ2PdRKfrqyPMRBRvCzdGqqG4LUHmPJ8ymhbYlIzTnU 2GOkU/fpWIuOLHk7p4v5b7D2frCi+eI99ABp3UtEA7LbP8Gn53CayrzRyb2yGOJGa5+l n+VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SAYfyHfKtEIZUA145VWKAPDNQgImJMaU3dtgNUZKT2M=; b=nmrXVW5jOEtqAK1EXO4bV3ws1carrT3g0B2juIp1emxQnvooZkJS43bAE8s6B0qqm7 hEb43sA2DnaW+YJ8KmsnR6+OrBXHEIUKV0PVjBrlT81xvw/K6t88FiHswifF0MF1M3Yq apGgnO2ghkjIcHYeC6vb1WPVbqLKl/ZWLfPVHSWDfseGurmAiMJ3g1pgFC1w4u0kpP6s nIfe5xto83oH7xGavT7D/5HboQuUOK8/hUmb/fHmtJ4UEFGgweyLTQTINQjxazG+Xcib WvUk+rkvD/Rsyg0Y5u22C8tjeaR3hJv93c7GpTKQCgmFAhRsUFb9TBBQ17b1qJa765TL k5GQ== X-Gm-Message-State: AOAM5304frq0yeWwr+jNth1huAjRHpBrA2mv4mANg0sLMumnJ6bBOwY9 Z8q+dcTYQ6A0Zjd0wruWB3G8bw== X-Received: by 2002:a63:5f94:: with SMTP id t142mr1064973pgb.166.1629771567958; Mon, 23 Aug 2021 19:19:27 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id x4sm499231pjq.20.2021.08.23.19.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 19:19:27 -0700 (PDT) From: Shawn Guo To: Bjorn Andersson Cc: Rob Herring , Konrad Dybcio , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Shawn Guo Subject: [PATCH] arm64: dts: qcom: pm660: Add reboot mode support Date: Tue, 24 Aug 2021 10:19:18 +0800 Message-Id: <20210824021918.17271-1-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org It turns out that the pm660 PON is a GEN2 device. Update the compatible to "qcom,pm8998-pon" and add reboot mode support, so that devices can be rebooted into bootloader and recovery mode. Tested on Xiaomi Redmi Note 7 phone. While at it, drop the unnecessary newline between 'compatible' and 'reg' property. Signed-off-by: Shawn Guo --- arch/arm64/boot/dts/qcom/pm660.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.17.1 Reviewed-by: AngeloGioacchino Del Regno diff --git a/arch/arm64/boot/dts/qcom/pm660.dtsi b/arch/arm64/boot/dts/qcom/pm660.dtsi index e847d7209afc..d0ef8a1675e2 100644 --- a/arch/arm64/boot/dts/qcom/pm660.dtsi +++ b/arch/arm64/boot/dts/qcom/pm660.dtsi @@ -49,9 +49,10 @@ }; pon: pon@800 { - compatible = "qcom,pm8916-pon"; - + compatible = "qcom,pm8998-pon"; reg = <0x800>; + mode-bootloader = <0x2>; + mode-recovery = <0x1>; pwrkey { compatible = "qcom,pm8941-pwrkey";