devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * [PATCH v7 2/3] dt-bindings: iommu: Add documentation for rockchip iommu
           [not found] <1414983209-2472-1-git-send-email-djkurtz@chromium.org>
           [not found] ` <1414983209-2472-1-git-send-email-djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
    @ 2014-11-03  2:53 ` Daniel Kurtz
      2014-11-03  2:53 ` [PATCH v7 3/3] ARM: dts: rk3288: add VOP iommu nodes Daniel Kurtz
      2 siblings, 0 replies; 4+ messages in thread
    From: Daniel Kurtz @ 2014-11-03  2:53 UTC (permalink / raw)
      To: Heiko Stübner, Joerg Roedel
      Cc: Daniel Kurtz, Simon Xue, Rob Herring, Pawel Moll, Mark Rutland,
    	Ian Campbell, Kumar Gala, open list:OPEN FIRMWARE AND...,
    	open list
    
    Add binding documentation for Rockchip IOMMU.
    
    Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
    Signed-off-by: Simon Xue <xxm@rock-chips.com>
    Reviewed-by: Heiko Stuebner <heiko@sntech.de>
    ---
     .../devicetree/bindings/iommu/rockchip,iommu.txt   | 26 ++++++++++++++++++++++
     1 file changed, 26 insertions(+)
     create mode 100644 Documentation/devicetree/bindings/iommu/rockchip,iommu.txt
    
    diff --git a/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt b/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt
    new file mode 100644
    index 0000000..9a55ac3
    --- /dev/null
    +++ b/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt
    @@ -0,0 +1,26 @@
    +Rockchip IOMMU
    +==============
    +
    +A Rockchip DRM iommu translates io virtual addresses to physical addresses for
    +its master device.  Each slave device is bound to a single master device, and
    +shares its clocks, power domain and irq.
    +
    +Required properties:
    +- compatible      : Should be "rockchip,iommu"
    +- reg             : Address space for the configuration registers
    +- interrupts      : Interrupt specifier for the IOMMU instance
    +- interrupt-names : Interrupt name for the IOMMU instance
    +- #iommu-cells    : Should be <0>.  This indicates the iommu is a
    +                    "single-master" device, and needs no additional information
    +                    to associate with its master device.  See:
    +                    Documentation/devicetree/bindings/iommu/iommu.txt
    +
    +Example:
    +
    +	vopl_mmu: iommu@ff940300 {
    +		compatible = "rockchip,iommu";
    +		reg = <0xff940300 0x100>;
    +		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
    +		interrupt-names = "vopl_mmu";
    +		#iommu-cells = <0>;
    +	};
    -- 
    2.1.0.rc2.206.gedb03e5
    
    ^ permalink raw reply related	[flat|nested] 4+ messages in thread
  • * [PATCH v7 3/3] ARM: dts: rk3288: add VOP iommu nodes
           [not found] <1414983209-2472-1-git-send-email-djkurtz@chromium.org>
           [not found] ` <1414983209-2472-1-git-send-email-djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
      2014-11-03  2:53 ` [PATCH v7 2/3] dt-bindings: iommu: Add documentation for rockchip iommu Daniel Kurtz
    @ 2014-11-03  2:53 ` Daniel Kurtz
      2014-11-05 20:30   ` Heiko Stübner
      2 siblings, 1 reply; 4+ messages in thread
    From: Daniel Kurtz @ 2014-11-03  2:53 UTC (permalink / raw)
      To: Heiko Stübner, Joerg Roedel
      Cc: Daniel Kurtz, Simon Xue, Rob Herring, Pawel Moll, Mark Rutland,
    	Ian Campbell, Kumar Gala, Russell King,
    	moderated list:ARM/Rockchip SoC..., open list:ARM/Rockchip SoC...,
    	open list:OPEN FIRMWARE AND..., open list
    
    Add device nodes for the VOP iommus.
    Device nodes for other iommus will be added in later patches.
    
    The iommu nodes use the #iommu-cells property as described in:
      Documentation/devicetree/bindings/iommu/iommu.txt
    
    Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
    Signed-off-by: Simon Xue <xxm@rock-chips.com>
    ---
     arch/arm/boot/dts/rk3288.dtsi | 18 ++++++++++++++++++
     1 file changed, 18 insertions(+)
    
    diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
    index 5950b0a..df1170c 100644
    --- a/arch/arm/boot/dts/rk3288.dtsi
    +++ b/arch/arm/boot/dts/rk3288.dtsi
    @@ -271,6 +271,24 @@
     		status = "disabled";
     	};
     
    +	vopb_mmu: iommu@ff930300 {
    +		compatible = "rockchip,iommu";
    +		reg = <0xff930300 0x100>;
    +		interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
    +		interrupt-names = "vopb_mmu";
    +		#iommu-cells = <0>;
    +		status = "disabled";
    +	};
    +
    +	vopl_mmu: iommu@ff940300 {
    +		compatible = "rockchip,iommu";
    +		reg = <0xff940300 0x100>;
    +		interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
    +		interrupt-names = "vopl_mmu";
    +		#iommu-cells = <0>;
    +		status = "disabled";
    +	};
    +
     	gic: interrupt-controller@ffc01000 {
     		compatible = "arm,gic-400";
     		interrupt-controller;
    -- 
    2.1.0.rc2.206.gedb03e5
    
    ^ permalink raw reply related	[flat|nested] 4+ messages in thread

  • end of thread, other threads:[~2014-11-05 20:30 UTC | newest]
    
    Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1414983209-2472-1-git-send-email-djkurtz@chromium.org>
         [not found] ` <1414983209-2472-1-git-send-email-djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
    2014-11-03  2:53   ` [PATCH v7 1/3] iommu/rockchip: rk3288 iommu driver Daniel Kurtz
    2014-11-03  2:53 ` [PATCH v7 2/3] dt-bindings: iommu: Add documentation for rockchip iommu Daniel Kurtz
    2014-11-03  2:53 ` [PATCH v7 3/3] ARM: dts: rk3288: add VOP iommu nodes Daniel Kurtz
    2014-11-05 20:30   ` Heiko Stübner
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).