From fd94f1100f389b6a4a81cf0d26e229cd15f87ba1 Mon Sep 17 00:00:00 2001 From: Gaurav Kashyap Date: Thu, 20 Feb 2020 11:25:42 -0800 Subject: [PATCH 1/2] bindings: Add device-tree bindings for hwkm driver Add device-tree bindings documentation to describe the properties of hardware key manager driver. Change-Id: I15a6fe7e24ca11ade89e4c99ff5d92daedabb65f --- bindings/firmware/qcom/hwkm.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bindings/firmware/qcom/hwkm.txt diff --git a/bindings/firmware/qcom/hwkm.txt b/bindings/firmware/qcom/hwkm.txt new file mode 100644 index 00000000..25ddc158 --- /dev/null +++ b/bindings/firmware/qcom/hwkm.txt @@ -0,0 +1,28 @@ +HWKM (Hardware Key Manager) + +The HWKM driver is a platform device driver that helps +communicating with both the master and slave blocks of the +hardware key manager to issue commands to perform key operations +mainly required for storage encryption. + +Required properties: +- compatible : Should be "qcom,hwkm". +- reg: Register set for both master and slaves. +- reg-names : Identifiers for parsing master and slave regs. +- clocks : clocks needed for operating master and the slave. +- clock-names : name identifiers corresponding to the clocks. +- qcom,enable-hwkm-clk: to ensure clocks can be handled by HLOS. +- qcom,op-freq-hz: Max frequency of the listed clocks. + +Example: + + qcom_hwkm: hwkm@10c0000 { + compatible = "qcom,hwkm"; + reg = <0x10c0000 0x9000>, <0x1d90000 0x9000>; + reg-names = "km_master", "ice_slave"; + qcom,enable-hwkm-clk; + + clock-names = "km_clk_src"; + clocks = <&clock_rpmh RPMH_HWKM_CLK>; + qcom,op-freq-hz = <75000000>; + }; From 146971e070f6f96ebd3e0b577a37db11f00498f0 Mon Sep 17 00:00:00 2001 From: Gaurav Kashyap Date: Thu, 20 Feb 2020 11:25:58 -0800 Subject: [PATCH 2/2] ARM: dts: msm: Add hwkm node for lahaina Add hardware key manager node which helps in performing key operations needed for storage encryption on lahaina. Change-Id: Ie04fdc5b2a5c97be10c8f12dbde4d0462adca510 --- qcom/lahaina.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index ab9b0586..a2cbce13 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -1451,6 +1451,17 @@ qcom,client-id = <0x00000001>; }; + qcom_hwkm: hwkm@10c0000 { + compatible = "qcom,hwkm"; + reg = <0x10c0000 0x9000>, <0x1d90000 0x9000>; + reg-names = "km_master", "ice_slave"; + qcom,enable-hwkm-clk; + + clock-names = "km_clk_src"; + clocks = <&clock_rpmh RPMH_HWKM_CLK>; + qcom,op-freq-hz = <75000000>; + }; + ufsphy_mem: ufsphy_mem@1d87000 { reg = <0x1d87000 0xe10>; reg-names = "phy_mem";