Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1280381ybl; Fri, 6 Dec 2019 14:33:08 -0800 (PST) X-Google-Smtp-Source: APXvYqy7DKo4rEG1QvirnQ3Fr9Cl2uoP3Sp7oOVTSP60SS1gIu+MR6kKs5gqTdDCm0WnlO3ZVxsH X-Received: by 2002:aca:5fc6:: with SMTP id t189mr13389011oib.166.1575671587891; Fri, 06 Dec 2019 14:33:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575671587; cv=none; d=google.com; s=arc-20160816; b=J5dpPhEYeUzfhJRhh/TFZKEkUcUzgdMVMaaFDgBHi8rdMZRA9bwTDDxYK0vN9LpJWP yp7a1+wipNDRbhqmonu9PxwqRo9Y6JIwEczpj9v/YnDG7AR6cVBMKvM0JCuzfVVsiOaD 0MLmFMs2jWvs2JQ/EOlVfkcwi+t38Ob1ADKa2CzBP+qEBDh1eWQGfxyHb//ZkZE48Wgz 19x5HcSA4pANi5k9i5J545WW7jDvt2pKFkyc3e2Mz1sljx227OpAxz/NOxozpc+psB6F b6/UlehTwSQWTD/gnzahudz1PgK5noVHUQHbwElSW+dsHKFSh0H87kCIrOZPelrBa/+7 6YSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wiG3WOBbpYfqVa5CaACBMNjOFUHUBW+tdMFfTS1X2y8=; b=gWQFAeLUlQ3oZrEGIlyPAqBVt8MnnuYebWApaIeuKfLbmFo+tXKB3s4ccOg/Oifzrd 1ZH9gafou8Lr4kQQ5QwY9ToBB4Q3wOhX6x9UKDVowIy1i0Crgtb3SGKTwU6JORgbV7y+ OCip6CPdXejBWpksZ7jvzqCZyFH5dw05oyS4BrnfaI1wYbcWLuGVoLqq1fd3qfWlA5G6 BgWkaRgBzLqSg3MN3Mv73Ury4Hr90yFtXaORd0JdupltldD9rZJwi4jt64iVrINriZ6X j69nM32PxWV2EvEc5AS+ej4bxdL/mtwTfFug+oP+YWTIdlFv4gDy1jCxQv9sXhl67xpw MIKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t185si6811058oib.39.2019.12.06.14.32.55; Fri, 06 Dec 2019 14:33:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726397AbfLFWcX (ORCPT + 99 others); Fri, 6 Dec 2019 17:32:23 -0500 Received: from gloria.sntech.de ([185.11.138.130]:44886 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726353AbfLFWcX (ORCPT ); Fri, 6 Dec 2019 17:32:23 -0500 Received: from p57b772b2.dip0.t-ipconnect.de ([87.183.114.178] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1idM90-0004jn-SN; Fri, 06 Dec 2019 23:32:14 +0100 From: Heiko Stuebner To: Anand Moon Cc: Rob Herring , Mark Rutland , Jagan Teki , Manivannan Sadhasivam , Robin Murphy , Daniel Schultz , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFCv1 0/8] RK3399 clean shutdown issue Date: Fri, 06 Dec 2019 23:32:14 +0100 Message-ID: <1765889.rfqrfT1PbY@phil> In-Reply-To: <20191206184536.2507-1-linux.amoon@gmail.com> References: <20191206184536.2507-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anand, Am Freitag, 6. Dezember 2019, 19:45:28 CET schrieb Anand Moon: > Most of the RK3399 SBC boards do not perform clean > shutdown and clean reboot. > > These patches try to help resolve the issue with proper > shutdown by turning off the PMIC. > > For reference > RK805 PMCI data sheet: > [0] http://rockchip.fr/RK805%20datasheet%20V1.3.pdf > RK808 PMIC data sheet: > [1] http://rockchip.fr/RK808%20datasheet%20V1.4.pdf > RK817 PMIC data sheet: > [2] http://rockchip.fr/RK817%20datasheet%20V1.01.pdf > RK818 PMIC data sheet: > [3] http://rockchip.fr/RK818%20datasheet%20V1.0.pdf > > Reboot issue: > My guess is that we need to some proper sequence of > setting to PMCI to perform clean. > > If you have any input please share them. The rk8xx pmics may not on all devices be responsible for powering down the device. That is what the system-power-controller dt-property is for. So that property is there for a reason - to indicate that the pmic is responsible for power-off-handling. Heiko > Tested on SBC > Rock960 Model A > Odroid N1 > Rock64 > > -Anand Moon > > Anand Moon (8): > mfd: rk808: Refactor shutdown functions > mfd: rk808: use syscore for RK805 PMIC shutdown > mfd: rk808: use syscore for RK808 PMIC shutdown > mfd: rk808: use syscore for RK818 PMIC shutdown > mfd: rk808: cleanup unused function pointer > mfd: rk808: use common syscore for all PMCI for clean shutdown > arm64: rockchip: drop unused field from rk8xx i2c node > arm: rockchip: drop unused field from rk8xx i2c node > > arch/arm/boot/dts/rk3036-kylin.dts | 1 - > arch/arm/boot/dts/rk3188-px3-evb.dts | 1 - > arch/arm/boot/dts/rk3288-evb-rk808.dts | 1 - > arch/arm/boot/dts/rk3288-phycore-som.dtsi | 1 - > arch/arm/boot/dts/rk3288-popmetal.dts | 1 - > arch/arm/boot/dts/rk3288-tinker.dtsi | 1 - > arch/arm/boot/dts/rk3288-veyron.dtsi | 1 - > arch/arm/boot/dts/rk3288-vyasa.dts | 1 - > arch/arm/boot/dts/rv1108-elgin-r1.dts | 1 - > arch/arm/boot/dts/rv1108-evb.dts | 1 - > arch/arm64/boot/dts/rockchip/px30-evb.dts | 1 - > arch/arm64/boot/dts/rockchip/rk3328-a1.dts | 1 - > arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 1 - > .../arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 1 - > .../arm64/boot/dts/rockchip/rk3328-rock64.dts | 1 - > .../boot/dts/rockchip/rk3368-geekbox.dts | 1 - > arch/arm64/boot/dts/rockchip/rk3368-lion.dtsi | 1 - > .../boot/dts/rockchip/rk3368-px5-evb.dts | 1 - > .../boot/dts/rockchip/rk3399-firefly.dts | 1 - > .../boot/dts/rockchip/rk3399-hugsun-x99.dts | 1 - > .../boot/dts/rockchip/rk3399-khadas-edge.dtsi | 1 - > .../boot/dts/rockchip/rk3399-leez-p710.dts | 1 - > .../boot/dts/rockchip/rk3399-nanopi4.dtsi | 1 - > .../boot/dts/rockchip/rk3399-orangepi.dts | 1 - > arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 1 - > .../boot/dts/rockchip/rk3399-roc-pc.dtsi | 1 - > .../boot/dts/rockchip/rk3399-rock-pi-4.dts | 1 - > .../boot/dts/rockchip/rk3399-rock960.dtsi | 1 - > .../boot/dts/rockchip/rk3399-rockpro64.dts | 1 - > .../boot/dts/rockchip/rk3399-sapphire.dtsi | 1 - > drivers/mfd/rk808.c | 144 +++++------------- > include/linux/mfd/rk808.h | 2 - > 32 files changed, 42 insertions(+), 134 deletions(-) > >