xref: /freebsd/sys/contrib/device-tree/Bindings/soc/qcom/qcom,smem.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
4*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/soc/qcom/qcom,smem.yaml#
5*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm Shared Memory Manager
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Andy Gross <agross@kernel.org>
115def4c47SEmmanuel Vadot  - Bjorn Andersson <bjorn.andersson@linaro.org>
125def4c47SEmmanuel Vadot
138cc087a1SEmmanuel Vadotdescription:
148cc087a1SEmmanuel Vadot  This binding describes the Qualcomm Shared Memory Manager, a region of
158cc087a1SEmmanuel Vadot  reserved-memory used to share data between various subsystems and OSes in
168cc087a1SEmmanuel Vadot  Qualcomm platforms.
175def4c47SEmmanuel Vadot
185def4c47SEmmanuel Vadotproperties:
195def4c47SEmmanuel Vadot  compatible:
205def4c47SEmmanuel Vadot    const: qcom,smem
215def4c47SEmmanuel Vadot
228cc087a1SEmmanuel Vadot  reg:
238cc087a1SEmmanuel Vadot    maxItems: 1
248cc087a1SEmmanuel Vadot
255def4c47SEmmanuel Vadot  memory-region:
265def4c47SEmmanuel Vadot    maxItems: 1
275def4c47SEmmanuel Vadot    description: handle to memory reservation for main SMEM memory region.
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel Vadot  hwlocks:
305def4c47SEmmanuel Vadot    maxItems: 1
315def4c47SEmmanuel Vadot
325def4c47SEmmanuel Vadot  qcom,rpm-msg-ram:
335def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
345def4c47SEmmanuel Vadot    description: handle to RPM message memory resource
355def4c47SEmmanuel Vadot
368cc087a1SEmmanuel Vadot  no-map: true
378cc087a1SEmmanuel Vadot
385def4c47SEmmanuel Vadotrequired:
395def4c47SEmmanuel Vadot  - compatible
405def4c47SEmmanuel Vadot  - hwlocks
415def4c47SEmmanuel Vadot
428cc087a1SEmmanuel VadotoneOf:
438cc087a1SEmmanuel Vadot  - required:
448cc087a1SEmmanuel Vadot      - reg
458cc087a1SEmmanuel Vadot      - no-map
468cc087a1SEmmanuel Vadot  - required:
478cc087a1SEmmanuel Vadot      - memory-region
488cc087a1SEmmanuel Vadot
495def4c47SEmmanuel VadotadditionalProperties: false
505def4c47SEmmanuel Vadot
515def4c47SEmmanuel Vadotexamples:
525def4c47SEmmanuel Vadot  - |
535def4c47SEmmanuel Vadot    reserved-memory {
545def4c47SEmmanuel Vadot        #address-cells = <1>;
555def4c47SEmmanuel Vadot        #size-cells = <1>;
565def4c47SEmmanuel Vadot        ranges;
575def4c47SEmmanuel Vadot
588cc087a1SEmmanuel Vadot        smem@fa00000 {
598cc087a1SEmmanuel Vadot            compatible = "qcom,smem";
608cc087a1SEmmanuel Vadot            reg = <0xfa00000 0x200000>;
618cc087a1SEmmanuel Vadot            no-map;
628cc087a1SEmmanuel Vadot
638cc087a1SEmmanuel Vadot            hwlocks = <&tcsr_mutex 3>;
648cc087a1SEmmanuel Vadot        };
658cc087a1SEmmanuel Vadot    };
668cc087a1SEmmanuel Vadot  - |
678cc087a1SEmmanuel Vadot    reserved-memory {
688cc087a1SEmmanuel Vadot        #address-cells = <1>;
698cc087a1SEmmanuel Vadot        #size-cells = <1>;
708cc087a1SEmmanuel Vadot        ranges;
718cc087a1SEmmanuel Vadot
725def4c47SEmmanuel Vadot        smem_region: smem@fa00000 {
735def4c47SEmmanuel Vadot            reg = <0xfa00000 0x200000>;
745def4c47SEmmanuel Vadot            no-map;
755def4c47SEmmanuel Vadot        };
765def4c47SEmmanuel Vadot    };
775def4c47SEmmanuel Vadot
785def4c47SEmmanuel Vadot    smem {
795def4c47SEmmanuel Vadot        compatible = "qcom,smem";
805def4c47SEmmanuel Vadot
815def4c47SEmmanuel Vadot        memory-region = <&smem_region>;
825def4c47SEmmanuel Vadot        qcom,rpm-msg-ram = <&rpm_msg_ram>;
835def4c47SEmmanuel Vadot
845def4c47SEmmanuel Vadot        hwlocks = <&tcsr_mutex 3>;
855def4c47SEmmanuel Vadot    };
865def4c47SEmmanuel Vadot
875def4c47SEmmanuel Vadot    soc {
885def4c47SEmmanuel Vadot        #address-cells = <1>;
895def4c47SEmmanuel Vadot        #size-cells = <1>;
905def4c47SEmmanuel Vadot        ranges;
915def4c47SEmmanuel Vadot
925def4c47SEmmanuel Vadot        rpm_msg_ram: sram@fc428000 {
935def4c47SEmmanuel Vadot            compatible = "qcom,rpm-msg-ram";
945def4c47SEmmanuel Vadot            reg = <0xfc428000 0x4000>;
955def4c47SEmmanuel Vadot        };
965def4c47SEmmanuel Vadot    };
975def4c47SEmmanuel Vadot
985def4c47SEmmanuel Vadot...
99