Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755544AbbKRJtu (ORCPT ); Wed, 18 Nov 2015 04:49:50 -0500 Received: from regular2.263xmail.com ([211.157.152.4]:41989 "EHLO regular2.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755273AbbKRJtq (ORCPT ); Wed, 18 Nov 2015 04:49:46 -0500 X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 X-RL-SENDER: andy.yan@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: andy.yan@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 From: Andy Yan To: heiko@sntech.de, linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, galak@codeaurora.org, linux@arm.linux.org.uk, linux-rockchip@lists.infradead.org, ijc+devicetree@hellion.org.uk, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, khilman@linaro.org, treding@nvidia.com, wxt@rock-chips.com, sjg@chromium.org, benchan@google.com, Andy Yan Subject: [PATCH v3 0/5] Add reboot notifier driver for rockchip platform Date: Wed, 18 Nov 2015 17:47:24 +0800 Message-Id: <1447840044-19689-1-git-send-email-andy.yan@rock-chips.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2511 Lines: 60 rockchip platform have a protocol to pass the kernel reboot mode to bootloader by some special registers when system reboot. By this way the bootloader can take different action according to the different kernel reboot mode, for example, command "reboot loader" will reboot the board to rockusb mode, this is a very convenient way to get the board enter download mode. And Android system also use this protocol to pass "recovery"、 “fastboot” reboot mode to bootloader. In upstream land, We found tegra platform also use this mechanism. Before this version, I have sent two Series, which can be found at [0] [1] [0] https://patchwork.kernel.org/patch/7140751/ [1] https://patchwork.kernel.org/patch/7153531/ Changes in v3: - rename a pinctrl node in rk3288-veyron, the original name will be used in the incoming reboot notifier driver - add dt binding - move from mach-rockchip to drivers/soc/rockchip, as the tegra does - use dts pass the related register - add DT node Changes in v2: - check cpu dt node - remove a unnecessary of_put_node in function rockchip_get_pmu_regmap - fix a align issue - use reboot_notifier instead of restart_handler Andy Yan (5): ARM: dts: rockchip: rk3288-veyron: rename pinctrl node reboot to reset dt-bindings: soc: add document for rockchip reboot notifier driver soc: rockchip: add reboot notifier driver ARM: dts: rockchip: add reboot node ARM64: dts: rockchip: add reboot node .../bindings/soc/rockchip/rockchip-reboot.txt | 18 ++++ arch/arm/boot/dts/rk3288-veyron.dtsi | 2 +- arch/arm/boot/dts/rk3288.dtsi | 6 ++ arch/arm/boot/dts/rk3xxx.dtsi | 6 ++ arch/arm64/boot/dts/rockchip/rk3368.dtsi | 6 ++ drivers/soc/rockchip/Kconfig | 7 ++ drivers/soc/rockchip/Makefile | 1 + drivers/soc/rockchip/loader.h | 22 +++++ drivers/soc/rockchip/reboot.c | 98 ++++++++++++++++++++++ 9 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/soc/rockchip/rockchip-reboot.txt create mode 100644 drivers/soc/rockchip/loader.h create mode 100644 drivers/soc/rockchip/reboot.c -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/