Message ID | 20231027-aspire1-sound-v1-1-5ff3cf8b5701@trvn.ru |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp656309vqb; Fri, 27 Oct 2023 07:44:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHa7a3bMA38661IlOAqCX1WuLDlGR2TyK/xyFrOCM6ZYVtibwN7YxgKkzcwONBrOLvu9CLk X-Received: by 2002:a81:4153:0:b0:58a:83cd:115d with SMTP id f19-20020a814153000000b0058a83cd115dmr2468068ywk.50.1698417860943; Fri, 27 Oct 2023 07:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698417860; cv=none; d=google.com; s=arc-20160816; b=Eaaus1FySMm/XmVD5KUrIhJtO00jRUipS6va+7CyTklxDzDcTYBDggQqRqOA7HdNkv eKn+/BYbfuyG/Reij8GHta0NayEQq7xXAikQwbKBW358hzlGvCC3kvpv1UgaRR0CXm6B fqZk3BcCrnUdbm5Xq2cNkoemKlnD8i7KPo4WVVlt77rs0Vs4+WCGd2d8yDFadY7lQuUa ShdoQtiUYyUCgjXCfxArhtkg7pzBJeHaSQt+PrfLpuYOaZ8vToThYcJfP71A6wNOixJf SBqZ+bFXxHoLrDGnaSSLKzsVVlnhoCeZ3ZOPdsW5Za5IwnrlNH8ej5IZyY6M7P5V57ha 8xfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=X5UThObnU9g7pNxsMGmIt91UwuGqjpTylnz96zBTAuQ=; fh=DWQ2Wn++nCPTn9t2adbobvcLGK04hHpyc6wXSNOnLbM=; b=F6nb6sb6RiSGkgHHBCmGDyGGw2jGsyyvsjTJMArwOz2XO8QvPWqz4tqYBfgvYfzfsz D0JicaaNSEntLjTp3TrmWKQz141JsvpU7TCPcll43zvGbLbS/y3siFk9vATVJwVe7ZgW LxmUknjb7XHL4zhLRDoasdYqpV35D7RepePYS/mPqM+qtZhAEM4eWFQGr0uylorvi2fF ZrP5gXhxJETka8hlHcplhVyb/TIW4Zf7m34wga4aIPe5ngSN5yLgmlazD2mK5e1qJBtH 3LgxvPMWmGVoHZy2I0IA9ISBSKCCN1P+6GII53zg7IbU+jl0fNmR0i5PJw7gpO3DB8zI 8jMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=0TKezU14; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id r7-20020a815d07000000b005a7a78f4ff0si2707598ywb.364.2023.10.27.07.44.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:44:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=0TKezU14; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 44AC983D9B4E; Fri, 27 Oct 2023 07:44:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345966AbjJ0Onl (ORCPT <rfc822;a1648639935@gmail.com> + 25 others); Fri, 27 Oct 2023 10:43:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231585AbjJ0Oni (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Oct 2023 10:43:38 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE5A9C4; Fri, 27 Oct 2023 07:43:35 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 8279B40553; Fri, 27 Oct 2023 19:42:48 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1698417769; bh=/wvspNZ6UnwHBJSoNffLyGijS/yc+9Bx1gjik/P77pE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=0TKezU14dvQYvmZVCGhrOkT0XMcQVoePyWFa1I3rRm6mX4nIMDQkDiluXU7Jy+xjo 5b/L/FgM0buo9gOBYyYQcJ9diV0i55P2iwvM2ByaMHUZj5uudoONCyJUSKUbC7KuCN PAyHpkQ+WUrDvkVYgCreFW4JCU8XFe0KCrycBlJZaw4toIVjZi7IFsoKCwfaao5DIr sbvcDPg1Tm/+LDEEMTmIsv7Yf0yOWj9uygWUSsmWPQd+IpxHQuZFL+sf1IE6dsEfoq RS/KkKO1QhFH1HHNm4hnCPfOV31Nh7GIWcKuP62bg+OpO+HGwb60otqk7xY2YcmUOh HWS2tuk+XdVIA== From: Nikita Travkin <nikita@trvn.ru> Date: Fri, 27 Oct 2023 19:42:21 +0500 Subject: [PATCH 1/3] arm64: dts: qcom: acer-aspire1: Enable RTC MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231027-aspire1-sound-v1-1-5ff3cf8b5701@trvn.ru> References: <20231027-aspire1-sound-v1-0-5ff3cf8b5701@trvn.ru> In-Reply-To: <20231027-aspire1-sound-v1-0-5ff3cf8b5701@trvn.ru> To: cros-qcom-dts-watchers@chromium.org, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin <nikita@trvn.ru> X-Developer-Signature: v=1; a=openpgp-sha256; l=693; i=nikita@trvn.ru; h=from:subject:message-id; bh=/wvspNZ6UnwHBJSoNffLyGijS/yc+9Bx1gjik/P77pE=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBlO8xbT/dr4P0OR1A/Mcg7Izk15NCEbz2Ss101B ClTp7VwQNaJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZTvMWwAKCRBDHOzuKBm/ de0FD/sGSQp699iOGnsKkb4UdbmDIxMt8Iwx4iwbvxX3zqcano/O6E8lu9tmB+ZXUMRR874ni3Q ZaysymuK1cCXW02SL2Kq14OzUj/o+hw9kYpHstfGS5dZjxErMPMcHwhn3xl+63C9yEdi61cElBY 9hZ69fmLwbGzUYxcu/2Ed3janX1ee42nYa49iTA2TklbczxFY/RFCrEOzBBL5yckqFcYD/z4Ry/ l0/lRlcmiypWpNX+rVDO3l0VwbmuOvXGm6cmk8qzWOtDH86/lIPtFb17IAo1pgdgPmdLxCbMAyN Zomz6AbKBmVDtFiLbBnqNAVRp72VF1jbjQaNX/J7fE1bjg2qq60Intb9LshPCXYklW0wm/illaa cCXREzzvHgTO+7oZ9tzgPT4K+FRqnGFxeMlfhb9CfWpIW2t+R0+AZXo4amdPJrpowe0RPddm0W2 ScZbpYQGxYMiUR3/t81JH2fV9ynRL8VtqqiGvbGafMyN3lOauIy5ws4d3BLheCjZcGnuP8czll1 nSQENoP1olh46Hiut5DZbji7iGN+l/gF7W3G23u2LI6sqXuyqleO2qdtDpTNsxz1o2mofXsSUZ+ x26pEBIus5bkFChiV8q4YpDUwUSX/vAdFs6dJmwTJs3R7NP/Zp0LT4I4BPOMQcAPskO06JNGalH Y5jXKc9ZqA3o72Q== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 07:44:17 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780920206618947909 X-GMAIL-MSGID: 1780920206618947909 |
Series |
sc7180-acer-aspire1: Add sound
|
|
Commit Message
Nikita Travkin
Oct. 27, 2023, 2:42 p.m. UTC
pm6150 has a read-only RTC that can be used to keep the time with some
extra userspace tools. Enable it.
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
arch/arm64/boot/dts/qcom/sc7180-acer-aspire1.dts | 4 ++++
1 file changed, 4 insertions(+)
Comments
On 27.10.2023 16:42, Nikita Travkin wrote: > pm6150 has a read-only RTC that can be used to keep the time with some > extra userspace tools. Enable it. > > Signed-off-by: Nikita Travkin <nikita@trvn.ru> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> kinda unsure why it'd ever be disabled Konrad
Hi, On Mon, Oct 30, 2023 at 2:47 PM Konrad Dybcio <konrad.dybcio@linaro.org> wrote: > > On 27.10.2023 16:42, Nikita Travkin wrote: > > pm6150 has a read-only RTC that can be used to keep the time with some > > extra userspace tools. Enable it. > > > > Signed-off-by: Nikita Travkin <nikita@trvn.ru> > > --- > Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> > > kinda unsure why it'd ever be disabled > > Konrad FWIW we don't use the PMIC RTC in Chrome boards. I can't quite remember why, but I _think_ that the power lines aren't hooked up to the PMIC to keep power on for the board's lowest power states. Instead we use the RTC that's on the EC (Embedded Controller). -Doug
Doug Anderson писал(а) 31.10.2023 02:55: > Hi, > > On Mon, Oct 30, 2023 at 2:47 PM Konrad Dybcio <konrad.dybcio@linaro.org> wrote: >> >> On 27.10.2023 16:42, Nikita Travkin wrote: >> > pm6150 has a read-only RTC that can be used to keep the time with some >> > extra userspace tools. Enable it. >> > >> > Signed-off-by: Nikita Travkin <nikita@trvn.ru> >> > --- >> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> >> >> kinda unsure why it'd ever be disabled >> >> Konrad > > FWIW we don't use the PMIC RTC in Chrome boards. I can't quite > remember why, but I _think_ that the power lines aren't hooked up to > the PMIC to keep power on for the board's lowest power states. > Instead we use the RTC that's on the EC (Embedded Controller). > When it was submitted, I suggested to keep it disabled by default because of the firmware mess qcom has - the rtc is set to read-only and if one enables it on cros without allow-set-time; and validating that qtiseclib doesn't block it too, it would likely cause issues by taking devices back to 1970s :D Nikita > -Doug
diff --git a/arch/arm64/boot/dts/qcom/sc7180-acer-aspire1.dts b/arch/arm64/boot/dts/qcom/sc7180-acer-aspire1.dts index dbb48934d499..cfde8cd47107 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-acer-aspire1.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-acer-aspire1.dts @@ -351,6 +351,10 @@ &pm6150_pon { status = "disabled"; }; +&pm6150_rtc { + status = "okay"; +}; + &qupv3_id_0 { status = "okay"; };