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

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
...@@ -7,12 +7,13 @@ ...@@ -7,12 +7,13 @@
* 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 "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 @@ chosen { ...@@ -26,20 +27,145 @@ chosen {
bootargs = "console=ttySAC2,115200"; bootargs = "console=ttySAC2,115200";
}; };
rtc@101E0000 { gpio_keys {
status = "okay"; compatible = "gpio-keys";
menu {
label = "SW-TACT2";
gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
linux,code = <KEY_MENU>;
gpio-key,wakeup;
}; };
codec@11000000 { home {
samsung,mfc-r = <0x43000000 0x800000>; label = "SW-TACT3";
samsung,mfc-l = <0x51000000 0x800000>; 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";
i2c@12C60000 { reset-gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
connect-gpios = <&gpd1 7 GPIO_ACTIVE_LOW>;
};
};
};
&dp {
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>;
};
&fimd {
status = "okay";
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>;
};
};
};
&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@66 { ...@@ -70,12 +196,13 @@ s5m8767_pmic@66 {
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";
...@@ -327,9 +454,9 @@ buck9_reg: BUCK9 { ...@@ -327,9 +454,9 @@ buck9_reg: BUCK9 {
}; };
}; };
}; };
}; };
i2c@12C80000 { &i2c_2 {
status = "okay"; status = "okay";
samsung,i2c-sda-delay = <100>; samsung,i2c-sda-delay = <100>;
...@@ -340,13 +467,12 @@ hdmiddc@50 { ...@@ -340,13 +467,12 @@ hdmiddc@50 {
compatible = "samsung,exynos4210-hdmiddc"; compatible = "samsung,exynos4210-hdmiddc";
reg = <0x50>; reg = <0x50>;
}; };
}; };
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 @@ wm1811a@1a { ...@@ -359,12 +485,12 @@ wm1811a@1a {
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>;
...@@ -375,9 +501,9 @@ hdmiphy@38 { ...@@ -375,9 +501,9 @@ hdmiphy@38 {
compatible = "samsung,exynos4212-hdmiphy"; compatible = "samsung,exynos4212-hdmiphy";
reg = <0x38>; reg = <0x38>;
}; };
}; };
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>;
...@@ -387,18 +513,18 @@ sata_phy_i2c:sata-phy@38 { ...@@ -387,18 +513,18 @@ sata_phy_i2c:sata-phy@38 {
compatible = "samsung,exynos-sataphy-i2c"; compatible = "samsung,exynos-sataphy-i2c";
reg = <0x38>; reg = <0x38>;
}; };
}; };
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;
...@@ -411,9 +537,9 @@ mmc_0: mmc@12200000 { ...@@ -411,9 +537,9 @@ mmc_0: 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_2: mmc@12220000 { &mmc_2 {
status = "okay"; status = "okay";
num-slots = <1>; num-slots = <1>;
card-detect-delay = <200>; card-detect-delay = <200>;
...@@ -426,140 +552,17 @@ mmc_2: mmc@12220000 { ...@@ -426,140 +552,17 @@ mmc_2: mmc@12220000 {
bus-width = <4>; bus-width = <4>;
disable-wp; disable-wp;
cap-sd-highspeed; cap-sd-highspeed;
}; };
i2s0: i2s@03830000 { &rtc {
status = "okay"; status = "okay";
}; };
gpio_keys {
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 { &sata {
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>;
};
};
}; };
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