From c8f4bef001bf4004ac533991c9b77e0ca46e9002 Mon Sep 17 00:00:00 2001 From: Prudhvi Yarlagadda Date: Fri, 7 Jun 2019 11:40:32 +0530 Subject: [PATCH] bindings: qcom-geni-se: Common GENI driver Add dt-bindings for GENI serial engine driver which provides common functionality used by other serial bus drivers such as I2c, SPI, UART), and does resource management for those drivers. Change-Id: I81c913f9af208076ed8721ee9cb7e3d17458f446 --- bindings/platform/msm/qcom-geni-se.txt | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 bindings/platform/msm/qcom-geni-se.txt diff --git a/bindings/platform/msm/qcom-geni-se.txt b/bindings/platform/msm/qcom-geni-se.txt new file mode 100644 index 000000000000..a42f491fd9d7 --- /dev/null +++ b/bindings/platform/msm/qcom-geni-se.txt @@ -0,0 +1,40 @@ +Qualcomm Technologies, Inc. GENI Serial Engine Driver + +GENI Serial Engine Driver is used to configure and read the configuration +from the Serial Engines on Qualcomm Technologies, Inc. Universal Peripheral +(QUPv3) core. It is also used to enable the stage1 IOMMU translation and +manage resources associated with the QUPv3 core. + +Required properties: +- compatible: Must be "qcom,qupv3-geni-se". +- reg: Must contain QUPv3 register address and length. +- qcom,bus-mas-id: Master Endpoint ID for bus driver. +- qcom,bus-slv-id: Slave Endpoint ID for bus driver. + +Optional properties: +- qcom,iommu-s1-bypass: Boolean flag to bypass IOMMU stage 1 translation. +- qcom,msm-bus,num-paths: Number of paths to put vote for. +- qcom,msm-bus,vectors-bus-ids: Master and slave Endpoint IDs for DDR + and Corex/2x paths. + +Optional subnodes: +qcom,iommu_qupv3_geni_se_cb: Child node representing the QUPV3 context + bank. + +Subnode Required properties: +- compatible : Must be "qcom,qupv3-geni-se-cb"; +- iommus: A list of phandle and IOMMU specifier pairs that + describe the IOMMU master interfaces of the device. + +Example: + qupv3_0: qcom,qupv3_0_geni_se@8c0000 { + compatible = "qcom,qupv3-geni-se"; + reg = <0x8c0000 0x6000>; + qcom,bus-mas-id = <100>; + qcom,bus-slv-id = <300>; + + iommu_qupv3_0_geni_se_cb: qcom,iommu_qupv3_0_geni_se_cb { + compatible = "qcom,qupv3-geni-se-cb"; + iommus = <&apps_smmu 0x1 0x0>; + }; + }