mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	Remove the usage of skeleton.dtsi in the remaining dts files. It was
deprecated since commit 9c0da3cc61 ("ARM: dts: explicitly mark
skeleton.dtsi as deprecated"). This will make adding a unit-address to
memory nodes easier.
The main tricky part to removing skeleton.dtsi is we could end up with
no /memory node at all when a bootloader depends on one being present. I
hacked up dtc to check for this condition.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Antoine Tenart <antoine.tenart@bootlin.com>
Acked-by: Alexandre TORGUE <alexandre.torgue@st.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
		
	
			
		
			
				
	
	
		
			232 lines
		
	
	
	
		
			4.9 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			232 lines
		
	
	
	
		
			4.9 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0
 | 
						|
/*
 | 
						|
 * Broadcom BCM63138 DSL SoCs Device Tree
 | 
						|
 */
 | 
						|
 | 
						|
#include <dt-bindings/interrupt-controller/arm-gic.h>
 | 
						|
#include <dt-bindings/interrupt-controller/irq.h>
 | 
						|
 | 
						|
/ {
 | 
						|
	#address-cells = <1>;
 | 
						|
	#size-cells = <1>;
 | 
						|
	compatible = "brcm,bcm63138";
 | 
						|
	model = "Broadcom BCM63138 DSL SoC";
 | 
						|
	interrupt-parent = <&gic>;
 | 
						|
 | 
						|
	aliases {
 | 
						|
		uart0 = &serial0;
 | 
						|
		uart1 = &serial1;
 | 
						|
	};
 | 
						|
 | 
						|
	cpus {
 | 
						|
		#address-cells = <1>;
 | 
						|
		#size-cells = <0>;
 | 
						|
 | 
						|
		cpu@0 {
 | 
						|
			device_type = "cpu";
 | 
						|
			compatible = "arm,cortex-a9";
 | 
						|
			next-level-cache = <&L2>;
 | 
						|
			reg = <0>;
 | 
						|
			enable-method = "brcm,bcm63138";
 | 
						|
		};
 | 
						|
 | 
						|
		cpu@1 {
 | 
						|
			device_type = "cpu";
 | 
						|
			compatible = "arm,cortex-a9";
 | 
						|
			next-level-cache = <&L2>;
 | 
						|
			reg = <1>;
 | 
						|
			enable-method = "brcm,bcm63138";
 | 
						|
			resets = <&pmb0 4 1>;
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	clocks {
 | 
						|
		#address-cells = <1>;
 | 
						|
		#size-cells = <0>;
 | 
						|
 | 
						|
		/* UBUS peripheral clock */
 | 
						|
		periph_clk: periph_clk {
 | 
						|
			#clock-cells = <0>;
 | 
						|
			compatible = "fixed-clock";
 | 
						|
			clock-frequency = <50000000>;
 | 
						|
			clock-output-names = "periph";
 | 
						|
		};
 | 
						|
 | 
						|
		/* peripheral clock for system timer */
 | 
						|
		axi_clk: axi_clk {
 | 
						|
			#clock-cells = <0>;
 | 
						|
			compatible = "fixed-factor-clock";
 | 
						|
			clocks = <&armpll>;
 | 
						|
			clock-div = <2>;
 | 
						|
			clock-mult = <1>;
 | 
						|
		};
 | 
						|
 | 
						|
		/* APB bus clock */
 | 
						|
		apb_clk: apb_clk {
 | 
						|
			#clock-cells = <0>;
 | 
						|
			compatible = "fixed-factor-clock";
 | 
						|
			clocks = <&armpll>;
 | 
						|
			clock-div = <4>;
 | 
						|
			clock-mult = <1>;
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	/* ARM bus */
 | 
						|
	axi@80000000 {
 | 
						|
		compatible = "simple-bus";
 | 
						|
		ranges = <0 0x80000000 0x784000>;
 | 
						|
		#address-cells = <1>;
 | 
						|
		#size-cells = <1>;
 | 
						|
 | 
						|
		L2: cache-controller@1d000 {
 | 
						|
			compatible = "arm,pl310-cache";
 | 
						|
			reg = <0x1d000 0x1000>;
 | 
						|
			cache-unified;
 | 
						|
			cache-level = <2>;
 | 
						|
			cache-size = <524288>;
 | 
						|
			cache-sets = <1024>;
 | 
						|
			cache-line-size = <32>;
 | 
						|
			interrupts = <GIC_PPI 0 IRQ_TYPE_LEVEL_HIGH>;
 | 
						|
		};
 | 
						|
 | 
						|
		scu: scu@1e000 {
 | 
						|
			compatible = "arm,cortex-a9-scu";
 | 
						|
			reg = <0x1e000 0x100>;
 | 
						|
		};
 | 
						|
 | 
						|
		gic: interrupt-controller@1e100 {
 | 
						|
			compatible = "arm,cortex-a9-gic";
 | 
						|
			reg = <0x1f000 0x1000
 | 
						|
				0x1e100 0x100>;
 | 
						|
			#interrupt-cells = <3>;
 | 
						|
			#address-cells = <0>;
 | 
						|
			interrupt-controller;
 | 
						|
		};
 | 
						|
 | 
						|
		global_timer: timer@1e200 {
 | 
						|
			compatible = "arm,cortex-a9-global-timer";
 | 
						|
			reg = <0x1e200 0x20>;
 | 
						|
			interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
 | 
						|
			clocks = <&axi_clk>;
 | 
						|
		};
 | 
						|
 | 
						|
		local_timer: local-timer@1e600 {
 | 
						|
			compatible = "arm,cortex-a9-twd-timer";
 | 
						|
			reg = <0x1e600 0x20>;
 | 
						|
			interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
 | 
						|
						  IRQ_TYPE_EDGE_RISING)>;
 | 
						|
			clocks = <&axi_clk>;
 | 
						|
		};
 | 
						|
 | 
						|
		twd_watchdog: watchdog@1e620 {
 | 
						|
			compatible = "arm,cortex-a9-twd-wdt";
 | 
						|
			reg = <0x1e620 0x20>;
 | 
						|
			interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
 | 
						|
						  IRQ_TYPE_LEVEL_HIGH)>;
 | 
						|
		};
 | 
						|
 | 
						|
		armpll: armpll {
 | 
						|
			#clock-cells = <0>;
 | 
						|
			compatible = "brcm,bcm63138-armpll";
 | 
						|
			clocks = <&periph_clk>;
 | 
						|
			reg = <0x20000 0xf00>;
 | 
						|
		};
 | 
						|
 | 
						|
		pmb0: reset-controller@4800c0 {
 | 
						|
			compatible = "brcm,bcm63138-pmb";
 | 
						|
			reg = <0x4800c0 0x10>;
 | 
						|
			#reset-cells = <2>;
 | 
						|
		};
 | 
						|
 | 
						|
		pmb1: reset-controller@4800e0 {
 | 
						|
			compatible = "brcm,bcm63138-pmb";
 | 
						|
			reg = <0x4800e0 0x10>;
 | 
						|
			#reset-cells = <2>;
 | 
						|
		};
 | 
						|
 | 
						|
		ahci: sata@8000 {
 | 
						|
			compatible = "brcm,bcm63138-ahci", "brcm,sata3-ahci";
 | 
						|
			reg-names = "ahci", "top-ctrl";
 | 
						|
			reg = <0xa000 0x9ac>, <0x8040 0x24>;
 | 
						|
			interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
 | 
						|
			#address-cells = <1>;
 | 
						|
			#size-cells = <0>;
 | 
						|
			resets = <&pmb0 3 1>;
 | 
						|
			reset-names = "ahci";
 | 
						|
			status = "disabled";
 | 
						|
 | 
						|
			sata0: sata-port@0 {
 | 
						|
				reg = <0>;
 | 
						|
				phys = <&sata_phy0>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
 | 
						|
		sata_phy: sata-phy@8100 {
 | 
						|
			compatible = "brcm,bcm63138-sata-phy", "brcm,phy-sata3";
 | 
						|
			reg = <0x8100 0x1e00>;
 | 
						|
			reg-names = "phy";
 | 
						|
			#address-cells = <1>;
 | 
						|
			#size-cells = <0>;
 | 
						|
			status = "disabled";
 | 
						|
 | 
						|
			sata_phy0: sata-phy@0 {
 | 
						|
				reg = <0>;
 | 
						|
				#phy-cells = <0>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	/* Legacy UBUS base */
 | 
						|
	ubus@fffe8000 {
 | 
						|
		compatible = "simple-bus";
 | 
						|
		#address-cells = <1>;
 | 
						|
		#size-cells = <1>;
 | 
						|
		ranges = <0 0xfffe8000 0x8100>;
 | 
						|
 | 
						|
		timer: timer@80 {
 | 
						|
			compatible = "brcm,bcm6328-timer", "syscon";
 | 
						|
			reg = <0x80 0x3c>;
 | 
						|
		};
 | 
						|
 | 
						|
		serial0: serial@600 {
 | 
						|
			compatible = "brcm,bcm6345-uart";
 | 
						|
			reg = <0x600 0x1b>;
 | 
						|
			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
 | 
						|
			clocks = <&periph_clk>;
 | 
						|
			clock-names = "periph";
 | 
						|
			status = "disabled";
 | 
						|
		};
 | 
						|
 | 
						|
		serial1: serial@620 {
 | 
						|
			compatible = "brcm,bcm6345-uart";
 | 
						|
			reg = <0x620 0x1b>;
 | 
						|
			interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
 | 
						|
			clocks = <&periph_clk>;
 | 
						|
			clock-names = "periph";
 | 
						|
			status = "disabled";
 | 
						|
		};
 | 
						|
 | 
						|
		nand: nand@2000 {
 | 
						|
			#address-cells = <1>;
 | 
						|
			#size-cells = <0>;
 | 
						|
			compatible = "brcm,nand-bcm63138", "brcm,brcmnand-v7.0", "brcm,brcmnand";
 | 
						|
			reg = <0x2000 0x600>, <0xf0 0x10>;
 | 
						|
			reg-names = "nand", "nand-int-base";
 | 
						|
			status = "disabled";
 | 
						|
			interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
 | 
						|
			interrupt-names = "nand";
 | 
						|
		};
 | 
						|
 | 
						|
		bootlut: bootlut@8000 {
 | 
						|
			compatible = "brcm,bcm63138-bootlut";
 | 
						|
			reg = <0x8000 0x50>;
 | 
						|
		};
 | 
						|
 | 
						|
		reboot {
 | 
						|
			compatible = "syscon-reboot";
 | 
						|
			regmap = <&timer>;
 | 
						|
			offset = <0x34>;
 | 
						|
			mask = <1>;
 | 
						|
		};
 | 
						|
	};
 | 
						|
};
 |