Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adca3e61 authored by Andreas Faerber's avatar Andreas Faerber Committed by Kukjin Kim
Browse files

ARM: dts: Clean up exynos5250-smdk5250



Use the new style for referencing inherited nodes and use symbolic
names. Goal is the alignment of all exynos5250 based device trees
for comparison.

Signed-off-by: default avatarAndreas Faerber <afaerber@suse.de>
Reviewed-by: default avatarTomasz Figa <t.figa@samsung.com>
[kgene.kim@samsung.com: rebased and squashed]
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 5140e29d
Loading
Loading
Loading
Loading
+311 −307
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
 */

/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include "exynos5250.dtsi"

/ {
@@ -27,14 +29,97 @@
		bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC2,115200 init=/linuxrc";
	};

	rtc@101E0000 {
	vdd: fixed-regulator@0 {
		compatible = "regulator-fixed";
		regulator-name = "vdd-supply";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		regulator-always-on;
	};

	dbvdd: fixed-regulator@1 {
		compatible = "regulator-fixed";
		regulator-name = "dbvdd-supply";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-always-on;
	};

	spkvdd: fixed-regulator@2 {
		compatible = "regulator-fixed";
		regulator-name = "spkvdd-supply";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
		regulator-always-on;
	};

	sound {
		compatible = "samsung,smdk-wm8994";

		samsung,i2s-controller = <&i2s0>;
		samsung,audio-codec = <&wm8994>;
	};

	fixed-rate-clocks {
		xxti {
			compatible = "samsung,clock-xxti";
			clock-frequency = <24000000>;
		};

		codec_mclk: codec-mclk {
			compatible = "fixed-clock";
			#clock-cells = <0>;
			clock-frequency = <16934000>;
		};
	};
};

&dp {
	samsung,color-space = <0>;
	samsung,dynamic-range = <0>;
	samsung,ycbcr-coeff = <0>;
	samsung,color-depth = <1>;
	samsung,link-rate = <0x0a>;
	samsung,lane-count = <4>;

	pinctrl-names = "default";
	pinctrl-0 = <&dp_hpd>;
	status = "okay";
};

	i2c@12C60000 {
&ehci {
	samsung,vbus-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>;
};

&fimd {
	status = "okay";

	display-timings {
		native-mode = <&timing0>;

		timing0: timing@0 {
			/* 1280x800 */
			clock-frequency = <50000>;
			hactive = <1280>;
			vactive = <800>;
			hfront-porch = <4>;
			hback-porch = <4>;
			hsync-len = <4>;
			vback-porch = <4>;
			vfront-porch = <4>;
			vsync-len = <4>;
		};
	};
};

&hdmi {
	hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
};

&i2c_0 {
	status = "okay";
	samsung,i2c-sda-delay = <100>;
	samsung,i2c-max-bus-freq = <20000>;
		status = "okay";

	eeprom@50 {
		compatible = "samsung,s524ad0xd1";
@@ -45,7 +130,7 @@
		compatible = "maxim,max77686";
		reg = <0x09>;
		interrupt-parent = <&gpx3>;
			interrupts = <2 0>;
		interrupts = <2 IRQ_TYPE_NONE>;

		voltage-regulators {
			ldo1_reg: LDO1 {
@@ -186,34 +271,10 @@
	};
};

	vdd: fixed-regulator@0 {
		compatible = "regulator-fixed";
		regulator-name = "vdd-supply";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		regulator-always-on;
	};

	dbvdd: fixed-regulator@1 {
		compatible = "regulator-fixed";
		regulator-name = "dbvdd-supply";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-always-on;
	};

	spkvdd: fixed-regulator@2 {
		compatible = "regulator-fixed";
		regulator-name = "spkvdd-supply";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
		regulator-always-on;
	};

	i2c@12C70000 {
&i2c_1 {
	status = "okay";
	samsung,i2c-sda-delay = <100>;
	samsung,i2c-max-bus-freq = <20000>;
		status = "okay";

	eeprom@51 {
		compatible = "samsung,s524ad0xd1";
@@ -238,22 +299,10 @@
	};
};

	i2c@121D0000 {
		samsung,i2c-sda-delay = <100>;
		samsung,i2c-max-bus-freq = <40000>;
		samsung,i2c-slave-addr = <0x38>;
&i2c_2 {
	status = "okay";

		sata_phy_i2c:sata-phy@38 {
			compatible = "samsung,exynos-sataphy-i2c";
			reg = <0x38>;
		};
	};

	i2c@12C80000 {
	samsung,i2c-sda-delay = <100>;
	samsung,i2c-max-bus-freq = <66000>;
		status = "okay";

	hdmiddc@50 {
		compatible = "samsung,exynos4210-hdmiddc";
@@ -261,10 +310,10 @@
	};
};

	i2c@12CE0000 {
&i2c_8 {
	status = "okay";
	samsung,i2c-sda-delay = <100>;
	samsung,i2c-max-bus-freq = <66000>;
		status = "okay";

	hdmiphy@38 {
		compatible = "samsung,exynos4212-hdmiphy";
@@ -272,16 +321,28 @@
	};
};

	sata@122F0000 {
&i2c_9 {
	status = "okay";
	samsung,i2c-sda-delay = <100>;
	samsung,i2c-max-bus-freq = <40000>;
	samsung,i2c-slave-addr = <0x38>;

	sata_phy_i2c: sata-phy@38 {
		compatible = "samsung,exynos-sataphy-i2c";
		reg = <0x38>;
	};
};

	sata-phy@12170000 {
&i2s0 {
	status = "okay";
		samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
};

	mmc@12200000 {
&mfc {
	samsung,mfc-r = <0x43000000 0x800000>;
	samsung,mfc-l = <0x51000000 0x800000>;
};

&mmc_0 {
	status = "okay";
	num-slots = <1>;
	broken-cd;
@@ -295,7 +356,7 @@
	cap-mmc-highspeed;
};

	mmc@12220000 {
&mmc_2 {
	status = "okay";
	num-slots = <1>;
	card-detect-delay = <200>;
@@ -309,9 +370,22 @@
	cap-sd-highspeed;
};

	spi_1: spi@12d30000 {
		cs-gpios = <&gpa2 5 0>;
&rtc {
	status = "okay";
};

&sata {
	status = "okay";
};

&sata_phy {
	status = "okay";
	samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
};

&spi_1 {
	status = "okay";
	cs-gpios = <&gpa2 5 GPIO_ACTIVE_HIGH>;

	w25q80bw@0 {
		#address-cells = <1>;
@@ -336,73 +410,3 @@
		};
	};
};

	hdmi {
		hpd-gpio = <&gpx3 7 0>;
	};

	codec@11000000 {
		samsung,mfc-r = <0x43000000 0x800000>;
		samsung,mfc-l = <0x51000000 0x800000>;
	};

	i2s0: i2s@03830000 {
		status = "okay";
	};

	sound {
		compatible = "samsung,smdk-wm8994";

		samsung,i2s-controller = <&i2s0>;
		samsung,audio-codec = <&wm8994>;
	};

	usb@12110000 {
		samsung,vbus-gpio = <&gpx2 6 0>;
	};

	dp-controller@145B0000 {
		samsung,color-space = <0>;
		samsung,dynamic-range = <0>;
		samsung,ycbcr-coeff = <0>;
		samsung,color-depth = <1>;
		samsung,link-rate = <0x0a>;
		samsung,lane-count = <4>;

		pinctrl-names = "default";
		pinctrl-0 = <&dp_hpd>;
		status = "okay";
	};

	fimd@14400000 {
		status = "okay";
		display-timings {
			native-mode = <&timing0>;
			timing0: timing@0 {
				/* 1280x800 */
				clock-frequency = <50000>;
				hactive = <1280>;
				vactive = <800>;
				hfront-porch = <4>;
				hback-porch = <4>;
				hsync-len = <4>;
				vback-porch = <4>;
				vfront-porch = <4>;
				vsync-len = <4>;
			};
		};
	};

	fixed-rate-clocks {
		xxti {
			compatible = "samsung,clock-xxti";
			clock-frequency = <24000000>;
		};

		codec_mclk: codec-mclk {
			compatible = "fixed-clock";
			#clock-cells = <0>;
			clock-frequency = <16934000>;
		};
	};
};
+1 −0
Original line number Diff line number Diff line
@@ -226,6 +226,7 @@
		power-supply = <&fet6>;
		backlight = <&backlight>;
	};
};

&dp {
	status = "okay";