Commit f4bc1686 authored by Alexey Mednyy's avatar Alexey Mednyy 🆖

imx53-shm device tree rework.

parent 2a211a18
......@@ -20,7 +20,7 @@
memory {
reg = <0x70000000 0x20000000>;
};
// display0: display@di0 {
......@@ -53,15 +53,15 @@
// gpio-keys {
// compatible = "gpio-keys";
// gpio-key,wakeup;
// linux,wakeup;
// gpio-key,wakeup;
// linux,wakeup;
//
// power {
// label = "Power Button";
// gpios = <&gpio3 4 0>;
// linux,code = <116>; /* KEY_POWER */
// gpio-key,wakeup;
// linux,wakeup;
// linux,wakeup;
// };
// };
......@@ -92,7 +92,7 @@
sound {
compatible = "fsl,imx53-qsb-sgtl5000",
"fsl,imx-audio-sgtl5000";
"fsl,imx-audio-sgtl5000";
model = "imx53-qsb-sgtl5000";
ssi-controller = <&ssi2>;
audio-codec = <&sgtl5000>;
......@@ -102,6 +102,25 @@
mux-int-port = <2>;
mux-ext-port = <3>;
};
backlight0: backlight0 {
compatible = "pwm-backlight";
pwms = <&pwm2 0 500000 0>;
brightness-levels = <
0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100
>;
default-brightness-level = <50>;
};
};
&esdhc1 {
......@@ -114,11 +133,7 @@
// remote-endpoint = <&display0_in>;
// };
&owire{
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_owire>;
};
&ssi2 {
status = "okay";
......@@ -170,28 +185,28 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hog>;
imx53-qsb {
imx53-shm {
pinctrl_hog: hoggrp {
fsl,pins = <
MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK 0x80000000
MX53_PAD_GPIO_8__GPIO1_8 0x80000000
MX53_PAD_PATA_DA_0__GPIO7_6 0x80000000
MX53_PAD_GPIO_8__GPIO1_8 0x80000000
MX53_PAD_PATA_DA_0__GPIO7_6 0x80000000
// MX53_PAD_DISP0_DAT9__WDOG2_WDOG_B 0x80000000
// MX53_PAD_GPIO_1__PWM2_PWMO 0x80000000
// MX53_PAD_EIM_WAIT__GPIO5_0 0x80000000
// MX53_PAD_EIM_CS0__GPIO2_23 0x80000000
// MX53_PAD_EIM_DA0__GPIO3_0 0x80000000
MX53_PAD_EIM_DA1__GPIO3_1 0x80000000
// MX53_PAD_EIM_DA2__GPIO3_2 0x80000000
// MX53_PAD_EIM_DA3__GPIO3_3 0x80000000
MX53_PAD_EIM_DA4__GPIO3_4 0x80000000
MX53_PAD_EIM_DA13__GPIO3_13 0x80000000
MX53_PAD_GPIO_10__GPIO4_0 0x80000000
MX53_PAD_GPIO_16__GPIO7_11 0x80000000
// MX53_PAD_NANDF_CS1__GPIO6_14 0x80000000
// MX53_PAD_NANDF_CS2__GPIO6_15 0x80000000
// MX53_PAD_GPIO_5__GPIO1_5 0x80000000
// MX53_PAD_DISP0_DAT4__CSPI_SS1 0x80000000
// MX53_PAD_GPIO_1__PWM2_PWMO 0x80000000
// MX53_PAD_EIM_WAIT__GPIO5_0 0x80000000
// MX53_PAD_EIM_CS0__GPIO2_23 0x80000000
// MX53_PAD_EIM_DA0__GPIO3_0 0x80000000
MX53_PAD_EIM_DA1__GPIO3_1 0x80000000
// MX53_PAD_EIM_DA2__GPIO3_2 0x80000000
// MX53_PAD_EIM_DA3__GPIO3_3 0x80000000
MX53_PAD_EIM_DA4__GPIO3_4 0x80000000
MX53_PAD_EIM_DA13__GPIO3_13 0x80000000
MX53_PAD_GPIO_10__GPIO4_0 0x80000000
MX53_PAD_GPIO_16__GPIO7_11 0x80000000
// MX53_PAD_NANDF_CS1__GPIO6_14 0x80000000
// MX53_PAD_NANDF_CS2__GPIO6_15 0x80000000
// MX53_PAD_GPIO_5__GPIO1_5 0x80000000
// MX53_PAD_DISP0_DAT4__CSPI_SS1 0x80000000
>;
};
pinctrl_nand: nandgrp {
......@@ -308,29 +323,34 @@
pinctrl_pwm2: pwm2grp {
fsl,pins = <
MX53_PAD_GPIO_1__PWM2_PWMO 0x80000000
>;
};
pinctrl_kpp: kppgrp {
fsl,pins = <
// MX53_PAD_KEY_COL0__KPP_COL_0 0x80000000
// MX53_PAD_KEY_COL1__KPP_COL_1 0x80000000
// MX53_PAD_KEY_COL2__KPP_COL_2 0x80000000
// MX53_PAD_KEY_COL3__KPP_COL_3 0x80000000
// MX53_PAD_KEY_COL4__KPP_COL_4 0x80000000
// MX53_PAD_GPIO_19__KPP_COL_5 0x80000000
// MX53_PAD_SD2_DATA3__KPP_COL_6 0x80000000
// MX53_PAD_GPIO_4__KPP_COL_7 0x80000000
// MX53_PAD_KEY_ROW1__KPP_ROW_1 0x80000000
// MX53_PAD_KEY_ROW2__KPP_ROW_2 0x80000000
// MX53_PAD_KEY_ROW3__KPP_ROW_3 0x80000000
// MX53_PAD_KEY_ROW4__KPP_ROW_4 0x80000000
// MX53_PAD_SD2_CMD__KPP_ROW_5 0x80000000
// MX53_PAD_GPIO_2__KPP_ROW_6 0x80000000
// MX53_PAD_CSI0_DAT9__KPP_ROW_7 0x80000000
MX53_PAD_GPIO_1__PWM2_PWMO 0x80000000
>;
};
pinctrl_pmic: pmicgrp {
fsl,pins = <
MX53_PAD_CSI0_DAT10__GPIO5_28 0x100 /* IRQ */
>;
};
// pinctrl_kpp: kppgrp {
// fsl,pins = <
// // MX53_PAD_KEY_COL0__KPP_COL_0 0x80000000
// // MX53_PAD_KEY_COL1__KPP_COL_1 0x80000000
// // MX53_PAD_KEY_COL2__KPP_COL_2 0x80000000
// // MX53_PAD_KEY_COL3__KPP_COL_3 0x80000000
// // MX53_PAD_KEY_COL4__KPP_COL_4 0x80000000
// // MX53_PAD_GPIO_19__KPP_COL_5 0x80000000
// // MX53_PAD_SD2_DATA3__KPP_COL_6 0x80000000
// // MX53_PAD_GPIO_4__KPP_COL_7 0x80000000
// // MX53_PAD_KEY_ROW1__KPP_ROW_1 0x80000000
// // MX53_PAD_KEY_ROW2__KPP_ROW_2 0x80000000
// // MX53_PAD_KEY_ROW3__KPP_ROW_3 0x80000000
// // MX53_PAD_KEY_ROW4__KPP_ROW_4 0x80000000
// // MX53_PAD_SD2_CMD__KPP_ROW_5 0x80000000
// // MX53_PAD_GPIO_2__KPP_ROW_6 0x80000000
// // MX53_PAD_CSI0_DAT9__KPP_ROW_7 0x80000000
// >;
// };
pinctrl_lvds0: lvds0grp {
fsl,pins = <
......@@ -370,30 +390,30 @@
// pinctrl-names = "default";
// pinctrl-0 = <&pinctrl_kpp>;
// linux,keymap = <
// 0x00000010
// 0x00010011
// 0x00020012
// 0x00030013
// 0x00040014
// 0x00050015
// 0x00060016
// 0x00070017
// 0x0100001e
// 0x0101001f
// 0x01020020
// 0x01030021
// 0x01040022
// 0x01050023
// 0x01060024
// 0x01070025
// 0x0200002c
// 0x0201002d
// 0x0202002e
// 0x0203002f
// 0x02040030
// 0x02050031
// 0x02060032
// >;
// 0x00000010
// 0x00010011
// 0x00020012
// 0x00030013
// 0x00040014
// 0x00050015
// 0x00060016
// 0x00070017
// 0x0100001e
// 0x0101001f
// 0x01020020
// 0x01030021
// 0x01040022
// 0x01050023
// 0x01060024
// 0x01070025
// 0x0200002c
// 0x0201002d
// 0x0202002e
// 0x0203002f
// 0x02040030
// 0x02050031
// 0x02060032
// >;
//
// status = "okay";
// };
......@@ -605,6 +625,8 @@
status = "okay";
};
&usbotg {
dr_mode = "peripheral";
status = "okay";
......
......@@ -21,167 +21,14 @@ memgpu: /memreserve/ 0x80000000 0x4000000;
model = "Freescale i.MX53 SHM";
compatible = "fsl,imx53-qsrb", "fsl,imx53";
backlight0: backlight0 {
compatible = "pwm-backlight";
pwms = <&pwm2 0 500000 0>;
brightness-levels = <
0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100
>;
default-brightness-level = <50>;
};
};
&gpu {
mem = <0x80000000 0x4000000>;
};
&iomuxc {
i2c2 {
pinctrl_pmic: pmicgrp {
fsl,pins = <
MX53_PAD_CSI0_DAT10__GPIO5_28 0x100 /* IRQ */
>;
};
};
};
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
&owire{
status = "okay";
pmic: mc34708@8 {
compatible = "fsl,mc34708";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pmic>;
fsl,mc13xxx-uses-rtc;
fsl,mc13xxx-uses-touch;
fsl,mc13xxx-uses-adc;
reg = <0x08>;
interrupt-parent = <&gpio5>;
interrupts = <28 4>;
regulators {
sw1_reg: sw1a {
regulator-name = "SW1";
regulator-min-microvolt = <650000>;
regulator-max-microvolt = <1437500>;
regulator-boot-on;
regulator-always-on;
};
sw1b_reg: sw1b {
regulator-name = "SW1B";
regulator-min-microvolt = <650000>;
regulator-max-microvolt = <1437500>;
regulator-boot-on;
regulator-always-on;
};
sw2_reg: sw2 {
regulator-name = "SW2";
regulator-min-microvolt = <650000>;
regulator-max-microvolt = <1437500>;
regulator-boot-on;
regulator-always-on;
};
sw3_reg: sw3 {
regulator-name = "SW3";
regulator-min-microvolt = <650000>;
regulator-max-microvolt = <1425000>;
regulator-boot-on;
};
sw4a_reg: sw4a {
regulator-name = "SW4A";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
sw4b_reg: sw4b {
regulator-name = "SW4B";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
sw5_reg: sw5 {
regulator-name = "SW5";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1975000>;
regulator-boot-on;
regulator-always-on;
};
swbst_reg: swbst {
regulator-name = "SWBST";
regulator-boot-on;
regulator-always-on;
};
vpll_reg: vpll {
regulator-name = "VPLL";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1800000>;
regulator-boot-on;
};
vrefddr_reg: vrefddr {
regulator-name = "VREFDDR";
regulator-boot-on;
regulator-always-on;
};
vusb_reg: vusb {
regulator-name = "VUSB";
regulator-boot-on;
regulator-always-on;
};
vusb2_reg: vusb2 {
regulator-name = "VUSB2";
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <3000000>;
regulator-boot-on;
regulator-always-on;
};
vdac_reg: vdac {
regulator-name = "VDAC";
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <2775000>;
regulator-boot-on;
regulator-always-on;
};
vgen1_reg: vgen1 {
regulator-name = "VGEN1";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1550000>;
regulator-boot-on;
regulator-always-on;
};
pinctrl-0 = <&pinctrl_owire>;
};
vgen2_reg: vgen2 {
regulator-name = "VGEN2";
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
};
};
&gpu {
mem = <0x80000000 0x4000000>;
};
......@@ -20,25 +20,6 @@
/ {
model = "Freescale i.MX53 SHM-DV7LS";
compatible = "fsl,imx53-qsrb", "fsl,imx53";
backlight0: backlight0 {
compatible = "pwm-backlight";
pwms = <&pwm2 0 500000 0>;
brightness-levels = <
0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100
>;
default-brightness-level = <50>;
};
};
......@@ -47,24 +28,79 @@
// };
&iomuxc {
i2c2 {
pinctrl_pmic: pmicgrp {
imx53-shm-t2m-ls {
pinctrl_uart5: uart5grp {
fsl,pins = <
MX53_PAD_CSI0_DAT10__GPIO5_28 0x100 /* IRQ */
MX53_PAD_CSI0_DAT15__UART5_RXD_MUX 0x1e4
MX53_PAD_CSI0_DAT14__UART5_TXD_MUX 0x1e4
>;
};
};
pinctrl_uart5: uart5grp {
pinctrl_ssd1305: ssd1305grp {
fsl,pins = <
MX53_PAD_CSI0_DAT15__UART5_RXD_MUX 0x1e4
MX53_PAD_CSI0_DAT14__UART5_TXD_MUX 0x1e4
MX53_PAD_EIM_D19__GPIO3_19 0x80000000
MX53_PAD_EIM_D20__GPIO3_20 0x80000000
MX53_PAD_EIM_D24__GPIO3_24 0x80000000
MX53_PAD_EIM_D25__GPIO3_25 0x80000000
MX53_PAD_EIM_D30__GPIO3_30 0x80000000
MX53_PAD_EIM_D31__GPIO3_31 0x80000000
MX53_PAD_CSI0_DAT17__GPIO6_3 0x80000000
MX53_PAD_CSI0_DAT16__GPIO6_2 0x80000000
MX53_PAD_PATA_INTRQ__GPIO7_2 0x80000000
MX53_PAD_EIM_EB3__GPIO2_31 0x80000000
MX53_PAD_EIM_D23__GPIO3_23 0x80000000
>;
};
};
};
// DDKGpioSetConfig(DDK_GPIO_PORT3, 19, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
// DDKGpioSetConfig(DDK_GPIO_PORT3, 20, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
// DDKGpioSetConfig(DDK_GPIO_PORT3, 24, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
// DDKGpioSetConfig(DDK_GPIO_PORT3, 25, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
// DDKGpioSetConfig(DDK_GPIO_PORT3, 30, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
// DDKGpioSetConfig(DDK_GPIO_PORT3, 31, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
// DDKGpioSetConfig(DDK_GPIO_PORT6, 3, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
// DDKGpioSetConfig(DDK_GPIO_PORT6, 2, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
// DDKGpioSetConfig(DDK_GPIO_PORT7, 2, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
// DDKGpioSetConfig(DDK_GPIO_PORT2, 31, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
// DDKGpioSetConfig(DDK_GPIO_PORT3, 23, DDK_GPIO_DIR_OUT, DDK_GPIO_INTR_NONE);
//
// _data_pins[0]=2*32+19;
// _data_pins[1]=2*32+20;
// _data_pins[2]=2*32+24;
// _data_pins[3]=2*32+25;
// _data_pins[4]=2*32+30;
// _data_pins[5]=2*32+31;
// _data_pins[6]=5*32+3;
// _data_pins[7]=5*32+2;
&uart5 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart5>;
status = "okay";
};
/ {
ssd1305 {
compatible = "solomon,ssd1305";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ssd1305>;
rotate = <0>;
buswidth = <8>;
rd-gpios = <&gpio7 2 0>;
dc-gpios = <&gpio3 23 0>;
wr-gpios = <&gpio2 31 0>;
db-gpios = <&gpio3 19 0>,
<&gpio3 20 0>,
<&gpio3 24 0>,
<&gpio3 25 0>,
<&gpio3 30 0>,
<&gpio3 31 0>,
<&gpio6 3 0>,
<&gpio6 2 0>;
debug = <7>;
};
};
\ No newline at end of file
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