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

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
...@@ -7,9 +7,11 @@ ...@@ -7,9 +7,11 @@
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include "exynos5250.dtsi" #include "exynos5250.dtsi"
/ { / {
...@@ -27,14 +29,97 @@ chosen { ...@@ -27,14 +29,97 @@ chosen {
bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC2,115200 init=/linuxrc"; 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"; status = "okay";
};
&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@12C60000 { &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>;
status = "okay";
eeprom@50 { eeprom@50 {
compatible = "samsung,s524ad0xd1"; compatible = "samsung,s524ad0xd1";
...@@ -45,7 +130,7 @@ max77686@09 { ...@@ -45,7 +130,7 @@ max77686@09 {
compatible = "maxim,max77686"; compatible = "maxim,max77686";
reg = <0x09>; reg = <0x09>;
interrupt-parent = <&gpx3>; interrupt-parent = <&gpx3>;
interrupts = <2 0>; interrupts = <2 IRQ_TYPE_NONE>;
voltage-regulators { voltage-regulators {
ldo1_reg: LDO1 { ldo1_reg: LDO1 {
...@@ -184,36 +269,12 @@ buck5_reg: BUCK5 { ...@@ -184,36 +269,12 @@ buck5_reg: BUCK5 {
}; };
}; };
}; };
}; };
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-sda-delay = <100>;
samsung,i2c-max-bus-freq = <20000>; samsung,i2c-max-bus-freq = <20000>;
status = "okay";
eeprom@51 { eeprom@51 {
compatible = "samsung,s524ad0xd1"; compatible = "samsung,s524ad0xd1";
...@@ -236,52 +297,52 @@ wm8994: wm8994@1a { ...@@ -236,52 +297,52 @@ wm8994: wm8994@1a {
SPKVDD1-supply = <&spkvdd>; SPKVDD1-supply = <&spkvdd>;
SPKVDD2-supply = <&spkvdd>; SPKVDD2-supply = <&spkvdd>;
}; };
}; };
i2c@121D0000 { &i2c_2 {
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <40000>;
samsung,i2c-slave-addr = <0x38>;
status = "okay"; status = "okay";
sata_phy_i2c:sata-phy@38 {
compatible = "samsung,exynos-sataphy-i2c";
reg = <0x38>;
};
};
i2c@12C80000 {
samsung,i2c-sda-delay = <100>; samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>; samsung,i2c-max-bus-freq = <66000>;
status = "okay";
hdmiddc@50 { hdmiddc@50 {
compatible = "samsung,exynos4210-hdmiddc"; compatible = "samsung,exynos4210-hdmiddc";
reg = <0x50>; reg = <0x50>;
}; };
}; };
i2c@12CE0000 { &i2c_8 {
status = "okay";
samsung,i2c-sda-delay = <100>; samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>; samsung,i2c-max-bus-freq = <66000>;
status = "okay";
hdmiphy@38 { hdmiphy@38 {
compatible = "samsung,exynos4212-hdmiphy"; compatible = "samsung,exynos4212-hdmiphy";
reg = <0x38>; reg = <0x38>;
}; };
}; };
sata@122F0000 { &i2c_9 {
status = "okay"; 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"; 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"; status = "okay";
num-slots = <1>; num-slots = <1>;
broken-cd; broken-cd;
...@@ -293,9 +354,9 @@ mmc@12200000 { ...@@ -293,9 +354,9 @@ mmc@12200000 {
pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>; pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
bus-width = <8>; bus-width = <8>;
cap-mmc-highspeed; cap-mmc-highspeed;
}; };
mmc@12220000 { &mmc_2 {
status = "okay"; status = "okay";
num-slots = <1>; num-slots = <1>;
card-detect-delay = <200>; card-detect-delay = <200>;
...@@ -307,11 +368,24 @@ mmc@12220000 { ...@@ -307,11 +368,24 @@ mmc@12220000 {
bus-width = <4>; bus-width = <4>;
disable-wp; disable-wp;
cap-sd-highspeed; cap-sd-highspeed;
}; };
spi_1: spi@12d30000 { &rtc {
cs-gpios = <&gpa2 5 0>;
status = "okay"; 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 { w25q80bw@0 {
#address-cells = <1>; #address-cells = <1>;
...@@ -335,74 +409,4 @@ partition@40000 { ...@@ -335,74 +409,4 @@ partition@40000 {
reg = <0x40000 0xc0000>; reg = <0x40000 0xc0000>;
}; };
}; };
};
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>;
};
};
}; };
...@@ -226,6 +226,7 @@ panel: panel { ...@@ -226,6 +226,7 @@ panel: panel {
power-supply = <&fet6>; power-supply = <&fet6>;
backlight = <&backlight>; backlight = <&backlight>;
}; };
};
&dp { &dp {
status = "okay"; status = "okay";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment