Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1084489pxb; Wed, 29 Sep 2021 16:51:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqPTQt7SFtsGp5b79e0dWB8zbaVBRHh6R/5PXlNdk6bwindSRyTgEtsb6qpWTMlYipPeMH X-Received: by 2002:a17:906:a082:: with SMTP id q2mr3075311ejy.535.1632959495467; Wed, 29 Sep 2021 16:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632959495; cv=none; d=google.com; s=arc-20160816; b=OVyeTeATiY9nrV+hRDW0a1tLvVRlur2+DRAOoshwI1Ufc7BuWlBHFEtmEqQpq8azKE EUXXHwoGOSXZp/ssxZqXQgytWe9eJVb8EO9YMyvb3yMwibsSRHRSmtlri3F819MyM6mM 4G6tAyKK6uJramYyGu/z6K1ZaGy4IG0yZQW77WebhfiqcOLai0xN7g5oQMpWLYi3D6eU hchaZPdyRa/mowcey6AOW6FJXS6eg2VreKavjSwKVfvWbwQvaFSlEZAYtN+tfG2BIwtZ DCXFMyfmqomEkzA7+PWn0JdsvZcL0OmE/TezRB9aSV2DbOs7/1SUeAUmzdfBjke0zL4+ vLrg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lV5xuRCo97FO+/YjOZoVXS4gdXQHaPC1UbDoCKlaVDs=; b=EP+0zmnVaR8W+9Tzw7MLmNfGqR4vAeNf6sIB12MYAKI8Yj6b6UX0EaDJg341+xz59G DZPg9bDZ7+Zoc6MAxLxPh7LfOa3fz19q2WT05/Jw5axtGLAwM6ew6jH8L6yDO75rzcyr QDVM4knc2N0pwfdfi1fNVFrzonjt7NzgI1odxZWQKD5qH30d+kcm5S0urVZn74unUx7C QpLbHy+0K/bHq3fNWNj5ZHuOpISEPzx01rQ86cdcOEAcnlYQYXEdnMPDhVs5EX6jS/NU LyChwNaH6biyQvQ6mdGLB4ePdGuWEGt7gdBLaMjuodx0FgpLvRNNHmMgLLB1MeXw0r7a hevA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Cs/2B1s3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v8si2199220ede.567.2021.09.29.16.51.11; Wed, 29 Sep 2021 16:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b="Cs/2B1s3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347273AbhI2Wk2 (ORCPT + 99 others); Wed, 29 Sep 2021 18:40:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245276AbhI2WkZ (ORCPT ); Wed, 29 Sep 2021 18:40:25 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D87D0C06161C for ; Wed, 29 Sep 2021 15:38:43 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id r2so4205524pgl.10 for ; Wed, 29 Sep 2021 15:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lV5xuRCo97FO+/YjOZoVXS4gdXQHaPC1UbDoCKlaVDs=; b=Cs/2B1s3XusJZNX2EAmJsThS72QYqL4+OFpfGGSEecNriNH4SxU1ge+7gzBxyLF+UB OhVjMXkohP423v/sc7lFfN6/gLgISlQd7qX9ne8pyCgwD9cFw2NVliVeX31vfTN0pR0S A1uYNnkHFpJkth9/9vwTFIumYZsM0U6SJIEX0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lV5xuRCo97FO+/YjOZoVXS4gdXQHaPC1UbDoCKlaVDs=; b=qC0b1IxkCw90aqEu1TfQfE9j9NcZzvDQuj3ejsM+66gHQHbLzJfHUtT8trVFzVfEYz 3qzpY4Q+wJdMMH10k5fuPGKAp/6uvULX0AIKgp6MaDVWnzx41pLRoHwpWO8MFZECF4qF rAC9a+NlAsE5Jm7yIH6tG9oSQJIKXiIncKwtsnhJnSeptBQcBeGJGHUeGvRvQvcNzhb0 qzPumczV5NCIwgLphiRAWAUuEA6MbhzZR4RFhQxObe3Mdfz3/XnA+OmhXOc2VPJ7z76y ijo5AcSwRdC8b+zGiAfVx5W8KDpNkbZPU+Yb4KxqgYpivFUAdxvkUW/QnQ0csRnnbsl0 sgzw== X-Gm-Message-State: AOAM5302/QYEssUHo+22+VKknuEtWUC4GY320skaFf9R3fF4GAeP+7BL H2HZtLqE/FGrjbObyEmBi2A+5Q== X-Received: by 2002:a05:6a00:b47:b0:43d:cac0:cbe with SMTP id p7-20020a056a000b4700b0043dcac00cbemr2136310pfo.79.1632955123366; Wed, 29 Sep 2021 15:38:43 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:ae60:9169:75aa:d8e9]) by smtp.gmail.com with ESMTPSA id u6sm612471pgc.68.2021.09.29.15.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 15:38:42 -0700 (PDT) From: Douglas Anderson To: bjorn.andersson@linaro.org Cc: vkoul@kernel.org, mka@chromium.org, swboyd@chromium.org, skakit@codeaurora.org, Douglas Anderson , Andy Gross , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: pmk8350: Make RTC disabled by default; enable on sc7280-idp Date: Wed, 29 Sep 2021 15:38:14 -0700 Message-Id: <20210929153553.1.Ib44c2ac967833d7a3f51452d44d15b7b8d23c1f0@changeid> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RTC on the pmk8350 is not useful on all boards. Some boards may not provide backup power to the PMIC but might have another RTC on the board that does have backup power. In this case it's better to not use the RTC on the PMIC. At the moment, the only boards that includes this PMIC are sc7280-idp and sc7280-idp2. On sc7280-idp I'm not aware of any other RTCs, but sc7280-idp2 has a Chrome OS EC on it and this is intended to provide the RTC for the AP. Let's do what we normally do for hardware that's not used by all boards and set it to a default status of "disabled" and then enable it on the boards that need it. NOTE: for sc7280-idp it's _possible_ we might also want to add `allow-set-time;`. That could be the subject of a future patch if it is indeed true. Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/pmk8350.dtsi | 1 + arch/arm64/boot/dts/qcom/sc7280-idp.dts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmk8350.dtsi b/arch/arm64/boot/dts/qcom/pmk8350.dtsi index 04fc2632a0b2..769f9726806f 100644 --- a/arch/arm64/boot/dts/qcom/pmk8350.dtsi +++ b/arch/arm64/boot/dts/qcom/pmk8350.dtsi @@ -59,6 +59,7 @@ pmk8350_rtc: rtc@6100 { reg = <0x6100>, <0x6200>; reg-names = "rtc", "alarm"; interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>; + status = "disabled"; }; pmk8350_gpios: gpio@b000 { diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dts b/arch/arm64/boot/dts/qcom/sc7280-idp.dts index 64fc22aff33d..e11412bae738 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dts @@ -61,6 +61,10 @@ &ipa { modem-init; }; +&pmk8350_rtc { + status = "okay"; +}; + &pmk8350_vadc { pmr735a_die_temp { reg = ; -- 2.33.0.685.g46640cef36-goog