On Wed, Jun 19, 2019 at 05:21:21PM +0530, Sameer Pujar wrote: > Add DT nodes for following devices on Tegra186 and Tegra194 > * ACONNECT > * ADMA > * AGIC > > Signed-off-by: Sameer Pujar > --- > changes in current revision > * updated ranges property for aconnect > * renamed agic node > > arch/arm64/boot/dts/nvidia/tegra186.dtsi | 67 ++++++++++++++++++++++++++++++++ > arch/arm64/boot/dts/nvidia/tegra194.dtsi | 67 ++++++++++++++++++++++++++++++++ > 2 files changed, 134 insertions(+) Applied to for-5.3/arm64/dt, thanks. I ended up deciding to put the aconnect node among the nodes with unit- addresses, in the numerical order that it would fit in if the top-level aconnect node didn't exist. I think that looks much more consistent in the end, even though it's slightly bending the rules that we have. > diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi > index 426ac0b..4bb765d 100644 > --- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi > +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi > @@ -1295,4 +1295,71 @@ > (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; > interrupt-parent = <&gic>; > }; > + > + aconnect { > + compatible = "nvidia,tegra210-aconnect"; I've also added a "nvidia,tegra186-aconnect" to this list following the rules that we always need to have a most specific compatible string in addition to any older compatible strings. This is useful in case where the new version, even if basically compatible, might require workaround code or similar. Thanks, Thierry > + clocks = <&bpmp TEGRA186_CLK_APE>, > + <&bpmp TEGRA186_CLK_APB2APE>; > + clock-names = "ape", "apb2ape"; > + power-domains = <&bpmp TEGRA186_POWER_DOMAIN_AUD>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x02900000 0x0 0x02900000 0x200000>; > + status = "disabled"; > + > + dma-controller@2930000 { > + compatible = "nvidia,tegra186-adma"; > + reg = <0x02930000 0x20000>; > + interrupt-parent = <&agic>; > + interrupts = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + #dma-cells = <1>; > + clocks = <&bpmp TEGRA186_CLK_AHUB>; > + clock-names = "d_audio"; > + status = "disabled"; > + }; > + > + agic: interrupt-controller@2a40000 { > + compatible = "nvidia,tegra210-agic"; > + #interrupt-cells = <3>; > + interrupt-controller; > + reg = <0x02a41000 0x1000>, > + <0x02a42000 0x2000>; > + interrupts = + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; > + clocks = <&bpmp TEGRA186_CLK_APE>; > + clock-names = "clk"; > + status = "disabled"; > + }; > + }; > }; > diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi > index c77ca21..d6aee0d 100644 > --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi > +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi > @@ -1054,4 +1054,71 @@ > (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; > interrupt-parent = <&gic>; > }; > + > + aconnect { > + compatible = "nvidia,tegra210-aconnect"; > + clocks = <&bpmp TEGRA194_CLK_APE>, > + <&bpmp TEGRA194_CLK_APB2APE>; > + clock-names = "ape", "apb2ape"; > + power-domains = <&bpmp TEGRA194_POWER_DOMAIN_AUD>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x02900000 0x0 0x02900000 0x200000>; > + status = "disabled"; > + > + dma-controller@2930000 { > + compatible = "nvidia,tegra186-adma"; > + reg = <0x02930000 0x20000>; > + interrupt-parent = <&agic>; > + interrupts = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + #dma-cells = <1>; > + clocks = <&bpmp TEGRA194_CLK_AHUB>; > + clock-names = "d_audio"; > + status = "disabled"; > + }; > + > + agic: interrupt-controller@2a40000 { > + compatible = "nvidia,tegra210-agic"; > + #interrupt-cells = <3>; > + interrupt-controller; > + reg = <0x02a41000 0x1000>, > + <0x02a42000 0x2000>; > + interrupts = + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; > + clocks = <&bpmp TEGRA194_CLK_APE>; > + clock-names = "clk"; > + status = "disabled"; > + }; > + }; > }; > -- > 2.7.4 >