Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp305303rdg; Tue, 10 Oct 2023 10:42:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFR6e/C8B7ZtMLBSnB9q/mJAbMJ/m2V7ZUvpHl/FsF+pzTJGrJMQ3aiMeFFSGEXBwu6OX/q X-Received: by 2002:a05:6359:6c94:b0:164:859b:f54f with SMTP id td20-20020a0563596c9400b00164859bf54fmr8130451rwb.7.1696959735466; Tue, 10 Oct 2023 10:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696959735; cv=none; d=google.com; s=arc-20160816; b=M9/mo8dh5tpR4HT6QWFJG8GXml5OO8hI5tr+tfp9j+H3sqTGGQr3LADWaNTYx2F2ty R9k63U3L1mXBcHU/l7cdFZpeVkvCKVUwMteHlMj4va3Vb5BI0rRxkeFPEIxoSlocmZxc jMq79Rkj7fzCYbA8iDj7QBNlCbZXWaqLd3u91PMO4PjACt26nXs4ZJGdmQavF8pFfkWe GUOjCi8M4t9dVnpBhDayp0TZnfMzSBxyS0KtJ1wlS1C0dG/7tybXUyzo69aBvgSSSmI0 mUEVQOYUlcxeNT50Fz7A02gJnRuFfRH2VeXJxBSjKYq6Q0NRKLnzBpp5EZmxZVLD5bCi 9GPw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hyZFV8ILYTaBiVaa0ajvyNxHiIP7/mfewpIkgKtDloI=; fh=d6XH3dt5H0c+4wnwIk/8KA2kgFbVz8WdE7bZpO88hdM=; b=e9P4vWSOu71U2fLMKod40GbOyHbz7RME7QYsdY0XFNjI2/dnT4L9R14+hdmbjlLkfo tENlxx/1MPIgZ2lndEFXeXnJTrcIEi8EYnr3EOME2z48rSj8qNSmFIp6md9Qh42ouBEH ojXVNdQ4NL3qGRQg3mI/FzBmeQBq+xLqALernLgDBzMP2EJbl2SCQ65wnrhiFearYhvf wn+QfYB63FcXwzTIeo07SrnqFwKOYyMpMpYeNmptDe1iEzzLMIUQOY9ROY3DH6fhYLll +eLynFmVXJTphamQQVXVeWjykpTT/pKczsFxyDAAUSS4VJKBmXvkQcyW5RJanWmc20mc ncXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=ux4LS4VP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id cb7-20020a056a00430700b006935df301a3si9858474pfb.8.2023.10.10.10.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 10:42:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=ux4LS4VP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C31208255792; Tue, 10 Oct 2023 10:42:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234012AbjJJRlz (ORCPT + 99 others); Tue, 10 Oct 2023 13:41:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233604AbjJJRls (ORCPT ); Tue, 10 Oct 2023 13:41:48 -0400 Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3D65A4; Tue, 10 Oct 2023 10:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1696959705; bh=jEPRk8p22dHs3R+tD5x4PoGcivbip9gJYJMu4a7SCYM=; h=From:To:Cc:Subject:Date:References:From; b=ux4LS4VPu6rxA2juVcsCS5XMo3r5/KiQEu0lskpToOwkpxxUwW/5u4lYGQOTXTICv jGOlAgtxsktSimDxlkTkW1VZzoXvTjY/r9s/E8EbQpcIg+FuUzO6C1cB7B79RvpHGS JoT8zbHEc7OwY+71RrIF1/HmI2iqRbCDD8+f5d6s= From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Ondrej Jirman , Sebastian Reichel , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/4] mfd: rk8xx: Add support for RK806 power off Date: Tue, 10 Oct 2023 19:41:19 +0200 Message-ID: <20231010174138.1888396-5-megi@xff.cz> In-Reply-To: <20231010174138.1888396-1-megi@xff.cz> References: <20231010174138.1888396-1-megi@xff.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 10 Oct 2023 10:42:12 -0700 (PDT) X-Spam-Level: ** From: Ondrej Jirman Use DEV_OFF bit to power off the RK806 PMIC, when system-power-controller is used in DTS. Signed-off-by: Ondrej Jirman --- drivers/mfd/rk8xx-core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c index a50a181b18e9..c47164a3ec1d 100644 --- a/drivers/mfd/rk8xx-core.c +++ b/drivers/mfd/rk8xx-core.c @@ -525,6 +525,10 @@ static int rk808_power_off(struct sys_off_data *data) reg = RK805_DEV_CTRL_REG; bit = DEV_OFF; break; + case RK806_ID: + reg = RK806_SYS_CFG3; + bit = DEV_OFF; + break; case RK808_ID: reg = RK808_DEVCTRL_REG, bit = DEV_OFF_RST; -- 2.42.0