Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp964674pxb; Wed, 27 Oct 2021 16:15:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2aKzdmiEGCyXqousKiZE8qwr/jyM7kYuss6qajsuZ4E4bcatUipr+Mek/6mCNbvx6nG5L X-Received: by 2002:a17:90a:312:: with SMTP id 18mr9046070pje.178.1635376513010; Wed, 27 Oct 2021 16:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635376513; cv=none; d=google.com; s=arc-20160816; b=l9tpTb53UA4xUwVpQDF7MEm6y1FJuh2ip6gNFn1459h8y6+UNEzbDjCwLGc3egPtD7 dTbvYKpssXj4BO0vhJUcDaKF0qYnJDfZiA6InUS/XvwnZ7ffR5NBp1nR4gr9efgBk6cJ r/kUMkNknNZ/Ey2CkBqZSRczANY1r8WOHwel7D2ZEhGos/wegcC+E1Q1FiPf7pNYsxaY 2zHBPTdhJpg9Pc3vUKoO0GJ9arue5XVPMesjFrcIVgZrIPXfSFOnWq8/0T8Z1eoOIKSf gdBVBeEtbFkJRyTq6b9ifILtNOdtl914ycH4bG3K5V1y2Jjj3F333aQgPJGs7LftwZ+D Pndw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rl0KiyZVmnRa9RIsZlZ/dKBg5oxrwgNJJclLrbASD8g=; b=IopbXa9ZwA7/jKb6EE5v1ihP2jV+Q0Jd8MoCeOXThkW53PuUoQ3ys5vjUw7CPXRe2n HFp8YOVzcx4ZsCVRMy7zsdW4pfrlLiRO1pAlXPzIuzDqfMR0+ee5nTxfmj54HxpkYTbF e5yNpdc6V0yBxsSDqGJUjvm+NFugcZgfpAUE91CvObHT+VmC7uGsBYxS1xhvRPzRClvM sfahYAqVPlbnewW1WPBW65kgS8yi2RDUWjDQrzLEc3HObI7hj2PDaX0IKaf71CX1rhx7 /HIYt3heqNQcM999KvRAhd8XjR6f75oAUt9/AbuIMaRZ0ShZIn/eVzSw4jgwql87BHaF w3QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HjFzfoLJ; 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 j26si1605642pfr.243.2021.10.27.16.14.59; Wed, 27 Oct 2021 16:15:12 -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=HjFzfoLJ; 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 S230321AbhJ0XPv (ORCPT + 99 others); Wed, 27 Oct 2021 19:15:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbhJ0XPt (ORCPT ); Wed, 27 Oct 2021 19:15:49 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0978C061745 for ; Wed, 27 Oct 2021 16:13:23 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id v65so5766222ioe.5 for ; Wed, 27 Oct 2021 16:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rl0KiyZVmnRa9RIsZlZ/dKBg5oxrwgNJJclLrbASD8g=; b=HjFzfoLJ+HriIHgi6MmL9orHjnaLdbN7A06ITgUTPEL1Gnfof/gyL4GBHhc6Fepxwb 8vZrGwr+DOoKI8CPHpsQpT4Ksl/Adasiqn7vJ52uqBFWis6zN6KqTLNnZLwWoesiX0wa Rogrcleh20EWM10gudKnGxlNQELGWDArr4k3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rl0KiyZVmnRa9RIsZlZ/dKBg5oxrwgNJJclLrbASD8g=; b=VRsxevAhTh1iNlnVRIw23SBspefL3l0gJ3m/7HJtaSRlhYzUk9UyHcE+7FpnqHECl7 gFeWyZn3LPsWgdy6HyghDcONngEc7bBvOFoX3INOOLtU2bwhsGHxISQr7kPO6M7abB8x j5ha2N2n6cU99Zc+o7HTwVIFJKzvfizNt5WdqIvsQotCW196lf7C1Rq9ElCHRB4jfig/ WUGKmEnIPgSz0fiwrXQ0+lU/LDblgcZHF2abHbpxZFgRec22w3GwkCcYG8aGRKxqL3hH BLFCjh7JGmAhHAsOdTj65oA3yqGzuQI6r2PiIRp2U8EDCKjX2DMxRjo0yc/fh3p242Kz KalA== X-Gm-Message-State: AOAM531S+a1J3eUvEayXkY3ik5EtrJqbgEmA6XrFavUndwHYJM88XwzQ ylPaFaa5hhZJcwTUEXBy6ZXpVB55qA8LGQ== X-Received: by 2002:a02:cf1b:: with SMTP id q27mr537227jar.93.1635376402799; Wed, 27 Oct 2021 16:13:22 -0700 (PDT) Received: from mail-io1-f45.google.com (mail-io1-f45.google.com. [209.85.166.45]) by smtp.gmail.com with ESMTPSA id c3sm685652ili.33.2021.10.27.16.13.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Oct 2021 16:13:22 -0700 (PDT) Received: by mail-io1-f45.google.com with SMTP id n67so5717362iod.9 for ; Wed, 27 Oct 2021 16:13:21 -0700 (PDT) X-Received: by 2002:a05:6638:13d2:: with SMTP id i18mr549944jaj.3.1635376401029; Wed, 27 Oct 2021 16:13:21 -0700 (PDT) MIME-Version: 1.0 References: <20210929153553.1.Ib44c2ac967833d7a3f51452d44d15b7b8d23c1f0@changeid> <86b0d847ddf06c1b445f3dbac9c771a9@codeaurora.org> In-Reply-To: From: Doug Anderson Date: Wed, 27 Oct 2021 16:13:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: pmk8350: Make RTC disabled by default; enable on sc7280-idp To: Bjorn Andersson Cc: satya priya , Vinod Koul , Matthias Kaehlcke , Stephen Boyd , Andy Gross , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sat, Oct 23, 2021 at 8:54 PM Bjorn Andersson wrote: > > On Mon 18 Oct 16:45 CDT 2021, Doug Anderson wrote: > > > Bjorn, > > > > On Wed, Sep 29, 2021 at 9:00 PM wrote: > > > > > > On 2021-09-30 04:08, Douglas Anderson wrote: > > > > 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 > > > > --- > > > > > > > > > > Reviewed-by: Satya Priya > > > > If you're still accepting patches for 5.16, it'd be keen if you'd > > consider taking this one. Thanks! > > > > I've picked the patch and hope to get it included in v5.16. > > I do however not understand why the commit message so clearly defines > that the only device including pmk8350 is the sc7280 idp when the > sm8350-mtp.dts contains the following line: > > #include "pmk8350.dtsi" > > > Perhaps I'm missing something obvious, but I took the liberty of also > enabling the RTC in the SM8350 MTP. Thank you for fixing this up. I must have just glazed over that part of things. :( Glad you caught and fixed it. -Doug