Loading Documentation/devicetree/bindings/media/msm-npu.txt 0 → 100644 +43 −0 Original line number Diff line number Diff line * Qualcomm Technologies, Inc. MSM NPU NPU (Neural Network Processing Unit) applies neural network processing Required properties: - compatible: - "qcom,msm-npu" - reg: Specify offset and length of the device register sets. - reg-names: Names corresponding to the defined register sets. - "npu_base": npu base registers - interrupts: Specify the npu interrupts. - interrupt-names : should specify relevant names to each interrupts property defined. - clocks : clocks required for the device. - clock-names : names of clocks required for the device. - vdd-supply : Phandle for vdd regulator device node - vdd_'reg'-supply: Reference to the regulator that supplies the corresponding 'reg' domain, e.g. vdd_cx-supply. - qcom,proxy-reg-names: Names of the regulators that need to be turned on/off during proxy voting/unvoting. - qcom,vdd_'reg'-uV-uA: Voltage and current values for the 'reg' regulator, e.g. qcom,vdd_cx-uV-uA. Example: msm_npu: qcom,msm_npu { compatible = "qcom,msm-npu"; reg = <0x9800000 0x800000>; reg-names = "npu_base"; interrupts = <0 346 0>; interrupt-names = "single"; clocks = <&clock_npucc NPU_CC_XO_CLK>, <&clock_npucc NPU_CC_NPU_CORE_CLK>, <&clock_npucc NPU_CC_CAL_DP_CLK>, <&clock_npucc NPU_CC_ARMWIC_CORE_CLK>, <&clock_npucc NPU_CC_COMP_NOC_AXI_CLK>, <&clock_npucc NPU_CC_CONF_NOC_AHB_CLK>; clock-names = "xo", "core", "cal_dp", "armwic", "axi", "ahb"; vdd-supply = <&npu_core_gdsc>; vdd_cx-supply = <&pm855l_s6_level>; qcom,proxy-reg-names ="vdd", "vdd_cx"; qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>; }; drivers/media/platform/Kconfig +1 −0 Original line number Diff line number Diff line Loading @@ -615,3 +615,4 @@ config VIDEO_RCAR_DRIF will be called rcar_drif. endif # SDR_PLATFORM_DRIVERS source "drivers/media/platform/msm/Kconfig" drivers/media/platform/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -91,3 +91,4 @@ obj-$(CONFIG_VIDEO_QCOM_CAMSS) += qcom/camss-8x16/ obj-$(CONFIG_VIDEO_QCOM_VENUS) += qcom/venus/ obj-y += meson/ obj-y += msm/ drivers/media/platform/msm/Kconfig +1 −0 Original line number Diff line number Diff line source "drivers/media/platform/msm/sde/Kconfig" source "drivers/media/platform/msm/npu/Kconfig" drivers/media/platform/msm/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -3,3 +3,4 @@ # based on V4L2. # obj-y += sde/ obj-$(CONFIG_MSM_NPU) += npu/ Loading
Documentation/devicetree/bindings/media/msm-npu.txt 0 → 100644 +43 −0 Original line number Diff line number Diff line * Qualcomm Technologies, Inc. MSM NPU NPU (Neural Network Processing Unit) applies neural network processing Required properties: - compatible: - "qcom,msm-npu" - reg: Specify offset and length of the device register sets. - reg-names: Names corresponding to the defined register sets. - "npu_base": npu base registers - interrupts: Specify the npu interrupts. - interrupt-names : should specify relevant names to each interrupts property defined. - clocks : clocks required for the device. - clock-names : names of clocks required for the device. - vdd-supply : Phandle for vdd regulator device node - vdd_'reg'-supply: Reference to the regulator that supplies the corresponding 'reg' domain, e.g. vdd_cx-supply. - qcom,proxy-reg-names: Names of the regulators that need to be turned on/off during proxy voting/unvoting. - qcom,vdd_'reg'-uV-uA: Voltage and current values for the 'reg' regulator, e.g. qcom,vdd_cx-uV-uA. Example: msm_npu: qcom,msm_npu { compatible = "qcom,msm-npu"; reg = <0x9800000 0x800000>; reg-names = "npu_base"; interrupts = <0 346 0>; interrupt-names = "single"; clocks = <&clock_npucc NPU_CC_XO_CLK>, <&clock_npucc NPU_CC_NPU_CORE_CLK>, <&clock_npucc NPU_CC_CAL_DP_CLK>, <&clock_npucc NPU_CC_ARMWIC_CORE_CLK>, <&clock_npucc NPU_CC_COMP_NOC_AXI_CLK>, <&clock_npucc NPU_CC_CONF_NOC_AHB_CLK>; clock-names = "xo", "core", "cal_dp", "armwic", "axi", "ahb"; vdd-supply = <&npu_core_gdsc>; vdd_cx-supply = <&pm855l_s6_level>; qcom,proxy-reg-names ="vdd", "vdd_cx"; qcom,vdd_cx-uV-uA = <RPMH_REGULATOR_LEVEL_TURBO 100000>; };
drivers/media/platform/Kconfig +1 −0 Original line number Diff line number Diff line Loading @@ -615,3 +615,4 @@ config VIDEO_RCAR_DRIF will be called rcar_drif. endif # SDR_PLATFORM_DRIVERS source "drivers/media/platform/msm/Kconfig"
drivers/media/platform/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -91,3 +91,4 @@ obj-$(CONFIG_VIDEO_QCOM_CAMSS) += qcom/camss-8x16/ obj-$(CONFIG_VIDEO_QCOM_VENUS) += qcom/venus/ obj-y += meson/ obj-y += msm/
drivers/media/platform/msm/Kconfig +1 −0 Original line number Diff line number Diff line source "drivers/media/platform/msm/sde/Kconfig" source "drivers/media/platform/msm/npu/Kconfig"
drivers/media/platform/msm/Makefile +1 −0 Original line number Diff line number Diff line Loading @@ -3,3 +3,4 @@ # based on V4L2. # obj-y += sde/ obj-$(CONFIG_MSM_NPU) += npu/