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

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

ARM: dts: Clean up exynos5250-arndale



Use the new style of referencing inherited nodes, use symbolic names,
tidy indentation and reorder includes.

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]
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent adca3e61
Loading
Loading
Loading
Loading
+456 −453
Original line number Original line Diff line number Diff line
@@ -10,9 +10,10 @@
 */
 */


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


/ {
/ {
	model = "Insignal Arndale evaluation board based on EXYNOS5250";
	model = "Insignal Arndale evaluation board based on EXYNOS5250";
@@ -26,20 +27,145 @@
		bootargs = "console=ttySAC2,115200";
		bootargs = "console=ttySAC2,115200";
	};
	};


	rtc@101E0000 {
	gpio_keys {
		compatible = "gpio-keys";

		menu {
			label = "SW-TACT2";
			gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_MENU>;
			gpio-key,wakeup;
		};

		home {
			label = "SW-TACT3";
			gpios = <&gpx1 5 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_HOME>;
			gpio-key,wakeup;
		};

		up {
			label = "SW-TACT4";
			gpios = <&gpx1 6 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_UP>;
			gpio-key,wakeup;
		};

		down {
			label = "SW-TACT5";
			gpios = <&gpx1 7 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_DOWN>;
			gpio-key,wakeup;
		};

		back {
			label = "SW-TACT6";
			gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_BACK>;
			gpio-key,wakeup;
		};

		wakeup {
			label = "SW-TACT7";
			gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_WAKEUP>;
			gpio-key,wakeup;
		};
	};

	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		main_dc_reg: regulator@0 {
			compatible = "regulator-fixed";
			reg = <0>;
			regulator-name = "MAIN_DC";
		};

		mmc_reg: regulator@1 {
			compatible = "regulator-fixed";
			reg = <1>;
			regulator-name = "VDD_33ON_2.8V";
			regulator-min-microvolt = <2800000>;
			regulator-max-microvolt = <2800000>;
			gpio = <&gpx1 1 GPIO_ACTIVE_LOW>;
			enable-active-high;
		};

		reg_hdmi_en: regulator@2 {
			compatible = "regulator-fixed";
			reg = <2>;
			regulator-name = "hdmi-en";
		};
	};

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

	usb_hub_bus {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		// SMSC USB3503 connected in hardware only mode as a PHY
		usb_hub: usb_hub {
			compatible = "smsc,usb3503a";

			reset-gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
			connect-gpios = <&gpd1 7 GPIO_ACTIVE_LOW>;
		};
	};
};

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


	codec@11000000 {
&fimd {
		samsung,mfc-r = <0x43000000 0x800000>;
	status = "okay";
		samsung,mfc-l = <0x51000000 0x800000>;

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

		timing0: timing@0 {
			/* 2560x1600 DP panel */
			clock-frequency = <50000>;
			hactive = <2560>;
			vactive = <1600>;
			hfront-porch = <48>;
			hback-porch = <80>;
			hsync-len = <32>;
			vback-porch = <16>;
			vfront-porch = <8>;
			vsync-len = <6>;
		};
	};
};
};


	i2c@12C60000 {
&hdmi {
	hpd-gpio = <&gpx3 7 2>;
	vdd_osc-supply = <&ldo10_reg>;
	vdd_pll-supply = <&ldo8_reg>;
	vdd-supply = <&ldo8_reg>;
};

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


	s5m8767_pmic@66 {
	s5m8767_pmic@66 {
		compatible = "samsung,s5m8767-pmic";
		compatible = "samsung,s5m8767-pmic";
@@ -70,12 +196,13 @@
		s5m8767,pmic-buck2-dvs-voltage = <1300000>;
		s5m8767,pmic-buck2-dvs-voltage = <1300000>;
		s5m8767,pmic-buck3-dvs-voltage = <1100000>;
		s5m8767,pmic-buck3-dvs-voltage = <1100000>;
		s5m8767,pmic-buck4-dvs-voltage = <1200000>;
		s5m8767,pmic-buck4-dvs-voltage = <1200000>;
			s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 0>,
		s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_HIGH>,
							<&gpd1 1 0>,
		                              <&gpd1 1 GPIO_ACTIVE_HIGH>,
							<&gpd1 2 0>;
		                              <&gpd1 2 GPIO_ACTIVE_HIGH>;
			s5m8767,pmic-buck-ds-gpios = <&gpx2 3 0>,
		s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>,
							<&gpx2 4 0>,
		                             <&gpx2 4 GPIO_ACTIVE_HIGH>,
							<&gpx2 5 0>;
		                             <&gpx2 5 GPIO_ACTIVE_HIGH>;

		regulators {
		regulators {
			ldo1_reg: LDO1 {
			ldo1_reg: LDO1 {
				regulator-name = "VDD_ALIVE_1.0V";
				regulator-name = "VDD_ALIVE_1.0V";
@@ -329,7 +456,7 @@
	};
	};
};
};


	i2c@12C80000 {
&i2c_2 {
	status = "okay";
	status = "okay";


	samsung,i2c-sda-delay = <100>;
	samsung,i2c-sda-delay = <100>;
@@ -342,11 +469,10 @@
	};
	};
};
};


	i2c@12C90000 {
&i2c_3 {
	status = "okay";
	status = "okay";


	wm1811a@1a {
	wm1811a@1a {

		compatible = "wlf,wm1811";
		compatible = "wlf,wm1811";
		reg = <0x1a>;
		reg = <0x1a>;


@@ -359,12 +485,12 @@
		SPKVDD1-supply = <&main_dc_reg>;
		SPKVDD1-supply = <&main_dc_reg>;
		SPKVDD2-supply = <&main_dc_reg>;
		SPKVDD2-supply = <&main_dc_reg>;


			wlf,ldo1ena = <&gpb0 0 0>;
		wlf,ldo1ena = <&gpb0 0 GPIO_ACTIVE_HIGH>;
			wlf,ldo2ena = <&gpb0 1 0>;
		wlf,ldo2ena = <&gpb0 1 GPIO_ACTIVE_HIGH>;
	};
	};
};
};


	i2c@12CE0000 {
&i2c_8 {
	status = "okay";
	status = "okay";


	samsung,i2c-sda-delay = <100>;
	samsung,i2c-sda-delay = <100>;
@@ -377,7 +503,7 @@
	};
	};
};
};


	i2c@121D0000 {
&i2c_9 {
	status = "okay";
	status = "okay";
	samsung,i2c-sda-delay = <100>;
	samsung,i2c-sda-delay = <100>;
	samsung,i2c-max-bus-freq = <40000>;
	samsung,i2c-max-bus-freq = <40000>;
@@ -389,16 +515,16 @@
	};
	};
};
};


	sata@122F0000 {
&i2s0 {
	status = "okay";
	status = "okay";
};
};


	sata-phy@12170000 {
&mfc {
		status = "okay";
	samsung,mfc-r = <0x43000000 0x800000>;
		samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
	samsung,mfc-l = <0x51000000 0x800000>;
};
};


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


	mmc_2: mmc@12220000 {
&mmc_2 {
	status = "okay";
	status = "okay";
	num-slots = <1>;
	num-slots = <1>;
	card-detect-delay = <200>;
	card-detect-delay = <200>;
@@ -428,138 +554,15 @@
	cap-sd-highspeed;
	cap-sd-highspeed;
};
};


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


	gpio_keys {
&sata {
		compatible = "gpio-keys";

		menu {
			label = "SW-TACT2";
			gpios = <&gpx1 4 1>;
			linux,code = <KEY_MENU>;
			gpio-key,wakeup;
		};

		home {
			label = "SW-TACT3";
			gpios = <&gpx1 5 1>;
			linux,code = <KEY_HOME>;
			gpio-key,wakeup;
		};

		up {
			label = "SW-TACT4";
			gpios = <&gpx1 6 1>;
			linux,code = <KEY_UP>;
			gpio-key,wakeup;
		};

		down {
			label = "SW-TACT5";
			gpios = <&gpx1 7 1>;
			linux,code = <KEY_DOWN>;
			gpio-key,wakeup;
		};

		back {
			label = "SW-TACT6";
			gpios = <&gpx2 0 1>;
			linux,code = <KEY_BACK>;
			gpio-key,wakeup;
		};

		wakeup {
			label = "SW-TACT7";
			gpios = <&gpx2 1 1>;
			linux,code = <KEY_WAKEUP>;
			gpio-key,wakeup;
		};
	};

	hdmi {
		hpd-gpio = <&gpx3 7 2>;
		vdd_osc-supply = <&ldo10_reg>;
		vdd_pll-supply = <&ldo8_reg>;
		vdd-supply = <&ldo8_reg>;
	};

	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		main_dc_reg: regulator@0 {
			compatible = "regulator-fixed";
			reg = <0>;
			regulator-name = "MAIN_DC";
		};

		mmc_reg: regulator@1 {
			compatible = "regulator-fixed";
			reg = <1>;
			regulator-name = "VDD_33ON_2.8V";
			regulator-min-microvolt = <2800000>;
			regulator-max-microvolt = <2800000>;
			gpio = <&gpx1 1 1>;
			enable-active-high;
		};

		reg_hdmi_en: regulator@2 {
			compatible = "regulator-fixed";
			reg = <2>;
			regulator-name = "hdmi-en";
		};
	};

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

	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>;
	status = "okay";
	status = "okay";
};
};


	fimd: fimd@14400000 {
&sata_phy {
	status = "okay";
	status = "okay";
		display-timings {
	samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
			native-mode = <&timing0>;
			timing0: timing@0 {
				/* 2560x1600 DP panel */
				clock-frequency = <50000>;
				hactive = <2560>;
				vactive = <1600>;
				hfront-porch = <48>;
				hback-porch = <80>;
				hsync-len = <32>;
				vback-porch = <16>;
				vfront-porch = <8>;
				vsync-len = <6>;
			};
		};
	};

	usb_hub_bus {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		// SMSC USB3503 connected in hardware only mode as a PHY
		usb_hub: usb_hub {
			compatible = "smsc,usb3503a";

			reset-gpios = <&gpx3 5 1>;
			connect-gpios = <&gpd1 7 1>;
		};
	};
};
};