ARM: mxs: update board support for TX28
Subsystems (3)
cover ARM: mxs: update board support for TX28
- update the DTS file
- add defconfigs
arch/arm/boot/dts/imx28.dtsi | 110 ++++++-- b/arch/arm/boot/dts/imx28-tx28.dts | 693 +++++++++++++++++++++++++++++++++++++++++++++++------- b/arch/arm/boot/dts/imx28.dtsi | 3 b/arch/arm/configs/tx28-debug_defconfig | 322 +++++++++++++++++++++++++ b/arch/arm/configs/tx28_defconfig | 307 +++++++++++++++++++++++ 5 files changed, 1327 insertions(+), 108 deletions(-)
PATCH 1/8 ARM: dts: mxs: whitespace cleanup
--- arch/arm/boot/dts/imx28.dtsi | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx28.dtsi +1 -2
@@ -815,7 +815,7 @@ reg = <0x8003c800 0x100>; status = "disabled"; }; - }; + }; apbx at 80040000 { compatible = "simple-bus";
@@ -1045,6 +1045,5 @@ reg = <0x800f8000 0x8000>; status = "disabled"; }; - }; };
Signature · 1 line
1.7.2.5
PATCH 2/8 ARM: dts: mxs: add labels to most nodes for easier reference
In reply to Lothar Waßmann--- arch/arm/boot/dts/imx28.dtsi | 48 +++++++++++++++++++++--------------------- 1 files changed, 24 insertions(+), 24 deletions(-)
arch/arm/boot/dts/imx28.dtsi +24 -24
@@ -64,7 +64,7 @@ reg = <0x80000000 0x2000>; }; - hsadc at 80002000 { + hsadc: hsadc at 80002000 { reg = <0x80002000 0x2000>; interrupts = <13>; dmas = <&dma_apbh 12>;
@@ -88,13 +88,13 @@ clocks = <&clks 25>; }; - perfmon at 80006000 { + perfmon: perfmon at 80006000 { reg = <0x80006000 0x800>; interrupts = <27>; status = "disabled"; }; - gpmi-nand at 8000c000 { + gpmi: gpmi-nand at 8000c000 { compatible = "fsl,imx28-gpmi-nand"; #address-cells = <1>; #size-cells = <1>;
@@ -153,7 +153,7 @@ status = "disabled"; }; - pinctrl at 80018000 { + pinctrl: pinctrl at 80018000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,imx28-pinctrl", "simple-bus";
@@ -702,14 +702,14 @@ }; }; - digctl at 8001c000 { + digctl: digctl at 8001c000 { compatible = "fsl,imx28-digctl", "fsl,imx23-digctl"; reg = <0x8001c000 0x2000>; interrupts = <89>; status = "disabled"; }; - etm at 80022000 { + etm: etm at 80022000 { reg = <0x80022000 0x2000>; status = "disabled"; };
@@ -730,19 +730,19 @@ clocks = <&clks 26>; }; - dcp at 80028000 { + dcp: dcp at 80028000 { reg = <0x80028000 0x2000>; interrupts = <52 53 54>; compatible = "fsl-dcp"; }; - pxp at 8002a000 { + pxp: pxp at 8002a000 { reg = <0x8002a000 0x2000>; interrupts = <39>; status = "disabled"; }; - ocotp at 8002c000 { + ocotp: ocotp at 8002c000 { compatible = "fsl,ocotp"; reg = <0x8002c000 0x2000>; status = "disabled";
@@ -753,7 +753,7 @@ status = "disabled"; }; - lcdif at 80030000 { + lcdif: lcdif at 80030000 { compatible = "fsl,imx28-lcdif"; reg = <0x80030000 0x2000>; interrupts = <38>;
@@ -781,37 +781,37 @@ status = "disabled"; }; - simdbg at 8003c000 { + simdbg: simdbg at 8003c000 { reg = <0x8003c000 0x200>; status = "disabled"; }; - simgpmisel at 8003c200 { + simgpmisel: simgpmisel at 8003c200 { reg = <0x8003c200 0x100>; status = "disabled"; }; - simsspsel at 8003c300 { + simsspsel: simsspsel at 8003c300 { reg = <0x8003c300 0x100>; status = "disabled"; }; - simmemsel at 8003c400 { + simmemsel: simmemsel at 8003c400 { reg = <0x8003c400 0x100>; status = "disabled"; }; - gpiomon at 8003c500 { + gpiomon: gpiomon at 8003c500 { reg = <0x8003c500 0x100>; status = "disabled"; }; - simenet at 8003c700 { + simenet: simenet at 8003c700 { reg = <0x8003c700 0x100>; status = "disabled"; }; - armjtag at 8003c800 { + armjtag: armjtag at 8003c800 { reg = <0x8003c800 0x100>; status = "disabled"; };
@@ -841,7 +841,7 @@ status = "disabled"; }; - power at 80044000 { + power: power at 80044000 { reg = <0x80044000 0x2000>; status = "disabled"; };
@@ -856,7 +856,7 @@ status = "disabled"; }; - lradc at 80050000 { + lradc: lradc at 80050000 { compatible = "fsl,imx28-lradc"; reg = <0x80050000 0x2000>; interrupts = <10 14 15 16 17 18 19
@@ -864,7 +864,7 @@ status = "disabled"; }; - spdif at 80054000 { + spdif: spdif@80054000 { reg = <0x80054000 0x2000>; interrupts = <45>; dmas = <&dma_apbx 2>;
@@ -872,7 +872,7 @@ status = "disabled"; }; - rtc at 80056000 { + mxs_rtc: rtc at 80056000 { compatible = "fsl,imx28-rtc", "fsl,stmp3xxx-rtc"; reg = <0x80056000 0x2000>; interrupts = <29>;
@@ -911,7 +911,7 @@ status = "disabled"; }; - timrot at 80068000 { + timer: timrot at 80068000 { compatible = "fsl,imx28-timrot", "fsl,timrot"; reg = <0x80068000 0x2000>; interrupts = <48 49 50 51>;
@@ -1018,7 +1018,7 @@ status = "disabled"; }; - dflpt at 800c0000 { + dflpt: dflpt at 800c0000 { reg = <0x800c0000 0x10000>; status = "disabled"; };
@@ -1041,7 +1041,7 @@ status = "disabled"; }; - switch at 800f8000 { + etn_switch: switch at 800f8000 { reg = <0x800f8000 0x8000>; status = "disabled"; };
Signature · 1 line
1.7.2.5
PATCH 3/8 ARM: dts: mxs: add another set of saif0_pins (without MCLK)
In reply to Lothar Waßmann--- arch/arm/boot/dts/imx28.dtsi | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)
arch/arm/boot/dts/imx28.dtsi +12 -0
@@ -518,6 +518,18 @@ fsl,pull-up = <1>; }; + saif0_pins_b: saif0 at 1 { + reg = <1>; + fsl,pinmux-ids = < + 0x3150 /* MX28_PAD_SAIF0_LRCLK__SAIF0_LRCLK */ + 0x3160 /* MX28_PAD_SAIF0_BITCLK__SAIF0_BITCLK */ + 0x3170 /* MX28_PAD_SAIF0_SDATA0__SAIF0_SDATA0 */ + >; + fsl,drive-strength = <2>; + fsl,voltage = <1>; + fsl,pull-up = <1>; + }; + saif1_pins_a: saif1 at 0 { reg = <0>; fsl,pinmux-ids = <
Signature · 1 line
1.7.2.5
PATCH 4/8 ARM: dts: mxs: add pin config for SSP3 interface
In reply to Lothar Waßmann--- arch/arm/boot/dts/imx28.dtsi | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)
arch/arm/boot/dts/imx28.dtsi +15 -0
@@ -683,6 +683,21 @@ fsl,pull-up = <1>; }; + spi3_pins_a: spi3 at 0 { + reg = <0>; + fsl,pinmux-ids = < + 0x3082 /* MX28_PAD_AUART2_RX__SSP3_D4 */ + 0x3092 /* MX28_PAD_AUART2_TX__SSP3_D5 */ + 0x2180 /* MX28_PAD_SSP3_SCK__SSP3_SCK */ + 0x2190 /* MX28_PAD_SSP3_MOSI__SSP3_CMD */ + 0x21A0 /* MX28_PAD_SSP3_MISO__SSP3_D0 */ + 0x21B0 /* MX28_PAD_SSP3_SS0__SSP3_D3 */ + >; + fsl,drive-strength = <1>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + usbphy0_pins_a: usbphy0 at 0 { reg = <0>; fsl,pinmux-ids = <
Signature · 1 line
1.7.2.5
PATCH 5/8 ARM: dts: mxs: add pin config for LCD sync and clock pins
In reply to Lothar Waßmann--- arch/arm/boot/dts/imx28.dtsi | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
arch/arm/boot/dts/imx28.dtsi +13 -0
@@ -648,6 +648,19 @@ fsl,pull-up = <0>; }; + lcdif_sync_pins_a: lcdif-sync at 0 { + reg = <0>; + fsl,pinmux-ids = < + 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */ + 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */ + 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */ + 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + can0_pins_a: can0 at 0 { reg = <0>; fsl,pinmux-ids = <
Signature · 1 line
1.7.2.5
PATCH 5/8 ARM: dts: mxs: add pin config for LCD sync and clock pins
Quoted 5 lines · Lothar Wa?mann
Signed-off-by Lothar Wa?mann <[email protected]>--- arch/arm/boot/dts/imx28.dtsi | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
Applied patches #1 ~ #5.
Shawn
PATCH 6/8 ARM: dts: mxs: add pin config options for usbphy pins
In reply to Lothar Waßmann--- arch/arm/boot/dts/imx28.dtsi | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-)
arch/arm/boot/dts/imx28.dtsi +22 -0
@@ -731,6 +731,17 @@ fsl,pull-up = <0>; }; + usbphy0_pins_c: usbphy0 at 2 { + reg = <2>; + fsl,pinmux-ids = < + 0x0123 /* MX28_PAD_GPMI_CE2N__GPIO_0_18 - USBOTG_VBUSEN */ + 0x0133 /* MX28_PAD_GPMI_CE3N__GPIO_0_19 - USBOTH_OC */ + >; + fsl,drive-strength = <2>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + usbphy1_pins_a: usbphy1 at 0 { reg = <0>; fsl,pinmux-ids = <
@@ -740,6 +751,17 @@ fsl,voltage = <1>; fsl,pull-up = <0>; }; + + usbphy1_pins_b: usbphy1 at 1 { + reg = <1>; + fsl,pinmux-ids = < + 0x31b3 /* MX28_PAD_SPDIF__GPIO_3_27 - USBH_VBUSEN */ + 0x4143 /* MX28_PAD_JTAG_RTCK__GPIO_4_20 - USBH_OC */ + >; + fsl,drive-strength = <2>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; }; digctl: digctl at 8001c000 {
Signature · 1 line
1.7.2.5
PATCH 6/8 ARM: dts: mxs: add pin config options for usbphy pins
Quoted 11 lines · Lothar Wa?mann
Signed-off-by Lothar Wa?mann <[email protected]>--- arch/arm/boot/dts/imx28.dtsi | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-)arch/arm/boot/dts/imx28.dtsi +0
-0
arch/arm/boot/dts/imx28.dtsi line 738
Quoted 8 lines
arch/arm/boot/dts/imx28.dtsi +5
-0@@ -731,6 +731,17 @@ fsl,pull-up = <0>; }; + usbphy0_pins_c: usbphy0 at 2 { + reg = <2>; + fsl,pinmux-ids = < + 0x0123 /* MX28_PAD_GPMI_CE2N__GPIO_0_18 - USBOTG_VBUSEN */ + 0x0133 /* MX28_PAD_GPMI_CE3N__GPIO_0_19 - USBOTH_OC */
The GPIO usage is something board specific and should be set up at board level DTS.
Shawn
Quoted 35 lines
arch/arm/boot/dts/imx28.dtsi +17
-0+ >; + fsl,drive-strength = <2>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + usbphy1_pins_a: usbphy1 at 0 { reg = <0>; fsl,pinmux-ids = <@@ -740,6 +751,17 @@ fsl,voltage = <1>; fsl,pull-up = <0>; }; + + usbphy1_pins_b: usbphy1 at 1 { + reg = <1>; + fsl,pinmux-ids = < + 0x31b3 /* MX28_PAD_SPDIF__GPIO_3_27 - USBH_VBUSEN */ + 0x4143 /* MX28_PAD_JTAG_RTCK__GPIO_4_20 - USBH_OC */ + >; + fsl,drive-strength = <2>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; }; digctl: digctl at 8001c000 {Signature · 7 lines
1.7.2.5 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 7/8 ARM: dts: tx28: restructure and update DTS file
In reply to Lothar Waßmann- add Copyright header
- use label references for better readability
- sort the entries alphabetically
- add some aliases used by U-Boot to edit the DT data
--- arch/arm/boot/dts/imx28-tx28.dts | 693 +++++++++++++++++++++++++++++++++----- 1 files changed, 611 insertions(+), 82 deletions(-)
arch/arm/boot/dts/imx28-tx28.dts +611 -82
@@ -1,3 +1,15 @@ +/* + * Copyright 2012 Shawn Guo <[email protected]> + * Copyright 2013 Lothar Wa?mann <[email protected]> + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + /dts-v1/; /include/ "imx28.dtsi"
@@ -5,102 +17,122 @@ model = "Ka-Ro electronics TX28 module"; compatible = "karo,tx28", "fsl,imx28"; + aliases { + can0 = &can0; + can1 = &can1; + display = &display; + ds1339 = &ds1339; + gpio5 = &gpio5; + stk5led = &user_led; + usbotg = &usb0; + lcdif = &lcdif; + lcdif_24bit_pins_a = &lcdif_24bit_pins_a; + lcdif_23bit_pins_a = &lcdif_23bit_pins_a; + }; + memory { - reg = <0x40000000 0x08000000>; - }; - - apb at 80000000 { - apbh at 80000000 { - ssp0: ssp at 80010000 { - compatible = "fsl,imx28-mmc"; - pinctrl-names = "default"; - pinctrl-0 = <&mmc0_4bit_pins_a - &mmc0_cd_cfg - &mmc0_sck_cfg>; - bus-width = <4>; - status = "okay"; - }; + reg = <0 0>; /* will be filled in by U-Boot */ + }; - pinctrl at 80018000 { - pinctrl-names = "default"; - pinctrl-0 = <&hog_pins_a>; - - hog_pins_a: hog at 0 { - reg = <0>; - fsl,pinmux-ids = < - 0x40a3 /* MX28_PAD_ENET0_RXD3__GPIO_4_10 */ - >; - fsl,drive-strength = <0>; - fsl,voltage = <1>; - fsl,pull-up = <0>; - }; - - mac0_pins_gpio: mac0-gpio-mode at 0 { - reg = <0>; - fsl,pinmux-ids = < - 0x4003 /* MX28_PAD_ENET0_MDC__GPIO_4_0 */ - 0x4013 /* MX28_PAD_ENET0_MDIO__GPIO_4_1 */ - 0x4023 /* MX28_PAD_ENET0_RX_EN__GPIO_4_2 */ - 0x4033 /* MX28_PAD_ENET0_RXD0__GPIO_4_3 */ - 0x4043 /* MX28_PAD_ENET0_RXD1__GPIO_4_4 */ - 0x4063 /* MX28_PAD_ENET0_TX_EN__GPIO_4_6 */ - 0x4073 /* MX28_PAD_ENET0_TXD0__GPIO_4_7 */ - 0x4083 /* MX28_PAD_ENET0_TXD1__GPIO_4_8 */ - 0x4103 /* MX28_PAD_ENET_CLK__GPIO_4_16 */ - >; - fsl,drive-strength = <0>; - fsl,voltage = <1>; - fsl,pull-up = <0>; - }; - }; + onewire at 0 { + compatible = "w1-gpio"; + gpios = <&gpio2 7 0>; + status = "disabled"; + }; + + regulators { + compatible = "simple-bus"; + + reg_usb0_vbus: usb0_vbus { + compatible = "regulator-fixed"; + regulator-name = "usb0_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio0 18 0>; + enable-active-high; }; - apbx at 80040000 { - i2c0: i2c at 80058000 { - pinctrl-names = "default"; - pinctrl-0 = <&i2c0_pins_a>; - status = "okay"; + reg_usb1_vbus: usb1_vbus { + compatible = "regulator-fixed"; + regulator-name = "usb1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio3 27 0>; + enable-active-high; + }; - ds1339: rtc at 68 { - compatible = "mxim,ds1339"; - reg = <0x68>; - }; - }; + reg_2p5v: 2p5v { + compatible = "regulator-fixed"; + regulator-name = "2P5V"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-always-on; + }; - pwm: pwm at 80064000 { - pinctrl-names = "default"; - pinctrl-0 = <&pwm0_pins_a>; - status = "okay"; - }; + reg_3p3v: 3p3v { + compatible = "regulator-fixed"; + regulator-name = "3P3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; - duart: serial at 80074000 { - pinctrl-names = "default"; - pinctrl-0 = <&duart_4pins_a>; - status = "okay"; - }; + reg_can_xcvr: can-xcvr { + compatible = "regulator-fixed"; + regulator-name = "CAN XCVR"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio1 0 0>; + enable-active-low; + pinctrl-names = "default"; + pinctrl-0 = <&flexcan_xcvr_pins_a>; + }; - auart1: serial at 8006c000 { - pinctrl-names = "default"; - pinctrl-0 = <&auart1_pins_a>; - status = "okay"; - }; + reg_lcd: lcd-power { + compatible = "regulator-fixed"; + regulator-name = "LCD POWER"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio1 31 0>; + enable-active-high; + }; + + reg_lcd_reset: lcd-reset { + compatible = "regulator-fixed"; + regulator-name = "LCD RESET"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio3 30 0>; + startup-delay-us = <300000>; + enable-active-high; + regulator-always-on; + regulator-boot-on; }; }; - ahb at 80080000 { - mac0: ethernet at 800f0000 { - phy-mode = "rmii"; - pinctrl-names = "default", "gpio_mode"; - pinctrl-0 = <&mac0_pins_a>; - pinctrl-1 = <&mac0_pins_gpio>; - status = "okay"; + clocks { + #address-cells = <1>; + #size-cells = <0>; + mclk: codec_clock { + compatible = "fixed-clock"; + reg = <0>; + #clock-cells = <0>; + clock-frequency = <27000000>; }; }; + sound { + compatible = "fsl,imx28-tx28-sgtl5000", + "fsl,mxs-audio-sgtl5000"; + model = "imx28-tx28-sgtl5000"; + saif-controllers = <&saif0 &saif1>; + audio-codec = <&sgtl5000>; + }; + leds { compatible = "gpio-leds"; - user { + user_led: user { label = "Heartbeat"; gpios = <&gpio4 10 0>; linux,default-trigger = "heartbeat";
@@ -109,8 +141,505 @@ backlight { compatible = "pwm-backlight"; - pwms = <&pwm 0 5000000>; - brightness-levels = <0 4 8 16 32 64 128 255>; - default-brightness-level = <6>; + pwms = <&pwm 0 500000>; + /* + * a silly way to create a 1:1 relationship between the + * PWM value and the actual duty cycle + */ + 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>; + }; + + matrix_keypad: matrix-keypad at 0 { + compatible = "gpio-matrix-keypad"; + col-gpios = < + &gpio5 0 0 + &gpio5 1 0 + &gpio5 2 0 + &gpio5 3 0 + >; + + row-gpios = < + &gpio5 4 0 + &gpio5 5 0 + &gpio5 6 0 + &gpio5 7 0 + >; + + /* sample keymap */ + linux,keymap = < + 0x00000074 /* row 0, col 0, KEY_POWER */ + 0x00010052 /* row 0, col 1, KEY_KP0 */ + 0x0002004f /* row 0, col 2, KEY_KP1 */ + 0x00030050 /* row 0, col 3, KEY_KP2 */ + 0x01000051 /* row 1, col 0, KEY_KP3 */ + 0x0101004b /* row 1, col 1, KEY_KP4 */ + 0x0102004c /* row 1, col 2, KEY_KP5 */ + 0x0103004d /* row 1, col 3, KEY_KP6 */ + 0x02000047 /* row 2, col 0, KEY_KP7 */ + 0x02010048 /* row 2, col 1, KEY_KP8 */ + 0x02020049 /* row 2, col 2, KEY_KP9 */ + >; + gpio-activelow; + linux,wakeup; + + debounce-delay-ms = <100>; + col-scan-delay-us = <5000>; + linux,no-autorepeat; + }; +}; + +/* 2nd TX-Std UART - (A)UART1 */ +&auart1 { + pinctrl-names = "default"; + pinctrl-0 = <&auart1_pins_a>; + status = "okay"; +}; + +/* 3rd TX-Std UART - (A)UART3 */ +&auart3 { + pinctrl-names = "default"; + pinctrl-0 = <&auart3_pins_a>; + status = "okay"; +}; + +&can0 { + pinctrl-names = "default"; + pinctrl-0 = <&can0_pins_a>; + xceiver-supply = <®_can_xcvr>; + status = "okay"; +}; + +&can1 { + pinctrl-names = "default"; + pinctrl-0 = <&can1_pins_a>; + xceiver-supply = <®_can_xcvr>; + status = "okay"; +}; + +&digctl { + status = "okay"; +}; + +/* 1st TX-Std UART - (D)UART */ +&duart { + pinctrl-names = "default"; + pinctrl-0 = <&duart_4pins_a>; + status = "okay"; +}; + +&gpmi { + pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>; + nand-on-flash-bbt; + status = "okay"; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + clock-frequency = <400000>; + status = "okay"; + + ds1339: rtc at 68 { + compatible = "mxim,ds1339"; + reg = <0x68>; + }; + + gpio5: pca953x at 20 { + compatible = "nxp,pca9554"; + reg = <0x20>; + pinctrl-names = "default"; + pinctrl-0 = <&pca9554_pins>; + interrupt-parent = <&gpio3>; + interrupts = <28 0>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + touchscreen: tsc2007 at 48 { + compatible = "ti,tsc2007"; + reg = <0x48>; + pinctrl-names = "default"; + pinctrl-0 = <&tsc2007_pins>; + interrupt-parent = <&gpio3>; + interrupts = <20 0>; + pendown-gpio = <&gpio3 20 1>; + ti,x-plate-ohms = /bits/ 16 <660>; + }; + + polytouch: edt-ft5x06 at 38 { + compatible = "edt,edt-ft5x06"; + reg = <0x38>; + pinctrl-names = "default"; + pinctrl-0 = <&edt_ft5x06_pins>; + interrupt-parent = <&gpio2>; + interrupts = <5 0>; + reset-gpios = <&gpio2 6 1>; + wake-gpios = <&gpio4 9 0>; + }; + + sgtl5000: sgtl5000 at 0a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + VDDA-supply = <®_2p5v>; + VDDIO-supply = <®_3p3v>; + clocks = <&mclk>; }; }; + +&lcdif { + pinctrl-names = "default"; + pinctrl-0 = <&lcdif_24bit_pins_a &lcdif_sync_pins_a &lcdif_ctrl_pins_a>; + lcd-supply = <®_lcd>; + display = <&display>; + status = "okay"; + + display: display at 0 { + bits-per-pixel = <32>; + bus-width = <24>; + + display-timings { + native-mode = <&timing5>; + timing0: timing0 { + panel-name = "VGA"; + clock-frequency = <25175000>; + hactive = <640>; + vactive = <480>; + hback-porch = <48>; + hsync-len = <96>; + hfront-porch = <16>; + vback-porch = <33>; + vsync-len = <2>; + vfront-porch = <10>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + timing1: timing1 { + panel-name = "ETV570"; + clock-frequency = <25175000>; + hactive = <640>; + vactive = <480>; + hback-porch = <114>; + hsync-len = <30>; + hfront-porch = <16>; + vback-porch = <32>; + vsync-len = <3>; + vfront-porch = <10>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + timing2: timing2 { + panel-name = "ET0350"; + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>; + hback-porch = <34>; + hsync-len = <34>; + hfront-porch = <20>; + vback-porch = <15>; + vsync-len = <3>; + vfront-porch = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + timing3: timing3 { + panel-name = "ET0430"; + clock-frequency = <9000000>; + hactive = <480>; + vactive = <272>; + hback-porch = <2>; + hsync-len = <41>; + hfront-porch = <2>; + vback-porch = <2>; + vsync-len = <10>; + vfront-porch = <2>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + timing4: timing4 { + panel-name = "ET0500", "ET0700"; + clock-frequency = <33260000>; + hactive = <800>; + vactive = <480>; + hback-porch = <88>; + hsync-len = <128>; + hfront-porch = <40>; + vback-porch = <33>; + vsync-len = <2>; + vfront-porch = <10>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + timing5: timing5 { + panel-name = "ETQ570"; + clock-frequency = <6400000>; + hactive = <320>; + vactive = <240>; + hback-porch = <38>; + hsync-len = <30>; + hfront-porch = <30>; + vback-porch = <16>; + vsync-len = <3>; + vfront-porch = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + }; + }; +}; + +&lradc { + fsl,lradc-touchscreen-wires = <4>; + status = "okay"; +}; + +&mac0 { + phy-mode = "rmii"; + pinctrl-names = "default", "gpio_mode"; + pinctrl-0 = <&mac0_pins_a>; + pinctrl-1 = <&mac0_pins_gpio>; + status = "okay"; +}; + +&mac1 { + phy-mode = "rmii"; + pinctrl-names = "default"; + pinctrl-0 = <&mac1_pins_a>; + /* not enabled by default */ +}; + +&mxs_rtc { + status = "okay"; +}; + +&ocotp { + status = "okay"; +}; + +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pins_a>; + status = "okay"; +}; + +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&hog_pins_a>; + edt_ft5x06_pins: edt-ft5x06-pins at 0 { + reg = <0>; + fsl,pinmux-ids = < + 0x2063 /* MX28_PAD_SSP0_DATA6__GPIO_2_6 - RESET */ + 0x2053 /* MX28_PAD_SSP0_DATA5__GPIO_2_5 - IRQ */ + 0x4093 /* MX28_PAD_ENET0_RXD2__GPIO_4_9 - WAKE */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + flexcan_xcvr_pins_a: flexcan-xcvr { + reg = <0>; + fsl,pinmux-ids = < + 0x1003 /* MX28_PAD_LCD_D00__GPIO_1_0 */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + hog_pins_a: hog at 0 { + reg = <0>; + fsl,pinmux-ids = < + 0x40a3 /* MX28_PAD_ENET0_RXD3__GPIO_4_10 - module LED */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcdif_23bit_pins_a: lcdif-23bit at 0 { + reg = <0>; + fsl,pinmux-ids = < + /* LCD_D00 may be used as Flexcan Transceiver Enable on STK5-V5 */ + 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */ + 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */ + 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */ + 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */ + 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */ + 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */ + 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */ + 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */ + 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */ + 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */ + 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */ + 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */ + 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */ + 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */ + 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */ + 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */ + 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */ + 0x1120 /* MX28_PAD_LCD_D18__LCD_D18 */ + 0x1130 /* MX28_PAD_LCD_D19__LCD_D19 */ + 0x1140 /* MX28_PAD_LCD_D20__LCD_D20 */ + 0x1150 /* MX28_PAD_LCD_D21__LCD_D21 */ + 0x1160 /* MX28_PAD_LCD_D22__LCD_D22 */ + 0x1170 /* MX28_PAD_LCD_D23__LCD_D23 */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcdif_ctrl_pins_a: lcdif-ctrl at 0 { + reg = <0>; + fsl,pinmux-ids = < + 0x11f3 /* MX28_PAD_LCD_ENABLE__GPIO_1_31 - Enable */ + 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 - Reset */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + mac0_pins_gpio: mac0-gpio-mode at 0 { + reg = <0>; + fsl,pinmux-ids = < + 0x4003 /* MX28_PAD_ENET0_MDC__GPIO_4_0 */ + 0x4013 /* MX28_PAD_ENET0_MDIO__GPIO_4_1 */ + 0x4023 /* MX28_PAD_ENET0_RX_EN__GPIO_4_2 */ + 0x4033 /* MX28_PAD_ENET0_RXD0__GPIO_4_3 */ + 0x4043 /* MX28_PAD_ENET0_RXD1__GPIO_4_4 */ + 0x4063 /* MX28_PAD_ENET0_TX_EN__GPIO_4_6 */ + 0x4073 /* MX28_PAD_ENET0_TXD0__GPIO_4_7 */ + 0x4083 /* MX28_PAD_ENET0_TXD1__GPIO_4_8 */ + 0x4103 /* MX28_PAD_ENET_CLK__GPIO_4_16 */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + pca9554_pins: pca9554-pins at 0 { + reg = <0>; + fsl,pinmux-ids = < + 0x31c3 /* MX28_PAD_PWM3__GPIO_3_28 */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + tsc2007_pins: tsc2007-pins at 0 { + reg = <0>; + fsl,pinmux-ids = < + 0x3143 /* MX28_PAD_SAIF0_MCLK__GPIO_3_20 - TSC2007 IRQ */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; +}; + +&saif0 { + pinctrl-names = "default"; + pinctrl-0 = <&saif0_pins_b>; + fsl,saif-master; + status = "okay"; +}; + +&saif1 { + pinctrl-names = "default"; + pinctrl-0 = <&saif1_pins_a>; + status = "okay"; +}; + +&ssp0 { + compatible = "fsl,imx28-mmc"; + pinctrl-names = "default", "special"; + pinctrl-0 = <&mmc0_4bit_pins_a + &mmc0_cd_cfg + &mmc0_sck_cfg>; + bus-width = <4>; + status = "okay"; +}; + +&ssp3 { + compatible = "fsl,imx28-spi"; + pinctrl-names = "default"; + pinctrl-0 = <&spi3_pins_a>; + clock-frequency = <57600000>; + status = "okay"; + + spidev0: spi at 0 { + compatible = "spidev"; + reg = <0>; + spi-max-frequency = <57600000>; + }; + + spidev1: spi at 1 { + compatible = "spidev"; + reg = <1>; + spi-max-frequency = <57600000>; + }; +}; + +&timer { + status = "okay"; +}; + +&usb0 { + vbus-supply = <®_usb0_vbus>; + disable-over-current; + dr_mode = "peripheral"; + status = "okay"; +}; + +&usb1 { + vbus-supply = <®_usb1_vbus>; + disable-over-current; + dr_mode = "host"; + status = "okay"; +}; + +&usbphy0 { + pinctrl-names = "default"; + pinctrl-0 = <&usbphy0_pins_c>; + phy_type = "utmi"; + status = "okay"; +}; + +&usbphy1 { + pinctrl-names = "default"; + pinctrl-0 = <&usbphy1_pins_b>; + phy_type = "utmi"; + status = "okay"; +};
Signature · 1 line
1.7.2.5
How to select between different display timings? (was: [PATCH 7/8] ARM: dts: tx28: restructure and update DTS file)
Hi Lothar and Shawn,
Quoted 14 lines · Lothar Wa?mann
- add Copyright header
- use label references for better readability
- sort the entries alphabetically
- add some aliases used by U-Boot to edit the DT dataSigned-off-by Lothar Wa?mann <[email protected]>--- arch/arm/boot/dts/imx28-tx28.dts | 693 +++++++++++++++++++++++++++++++++----- 1 files changed, 611 insertions(+), 82 deletions(-)arch/arm/boot/dts/imx28-tx28.dts +0
-0
...
Quoted 107 lines
+&lcdif {
arch/arm/boot/dts/imx28-tx28.dts +106
-0+ pinctrl-names = "default"; + pinctrl-0 = <&lcdif_24bit_pins_a &lcdif_sync_pins_a &lcdif_ctrl_pins_a>; + lcd-supply = <®_lcd>; + display = <&display>; + status = "okay"; + + display: display at 0 { + bits-per-pixel = <32>; + bus-width = <24>; + + display-timings { + native-mode = <&timing5>; + timing0: timing0 { + panel-name = "VGA"; + clock-frequency = <25175000>; + hactive = <640>; + vactive = <480>; + hback-porch = <48>; + hsync-len = <96>; + hfront-porch = <16>; + vback-porch = <33>; + vsync-len = <2>; + vfront-porch = <10>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + timing1: timing1 { + panel-name = "ETV570"; + clock-frequency = <25175000>; + hactive = <640>; + vactive = <480>; + hback-porch = <114>; + hsync-len = <30>; + hfront-porch = <16>; + vback-porch = <32>; + vsync-len = <3>; + vfront-porch = <10>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + timing2: timing2 { + panel-name = "ET0350"; + clock-frequency = <6500000>; + hactive = <320>; + vactive = <240>; + hback-porch = <34>; + hsync-len = <34>; + hfront-porch = <20>; + vback-porch = <15>; + vsync-len = <3>; + vfront-porch = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + timing3: timing3 { + panel-name = "ET0430"; + clock-frequency = <9000000>; + hactive = <480>; + vactive = <272>; + hback-porch = <2>; + hsync-len = <41>; + hfront-porch = <2>; + vback-porch = <2>; + vsync-len = <10>; + vfront-porch = <2>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + timing4: timing4 { + panel-name = "ET0500", "ET0700"; + clock-frequency = <33260000>; + hactive = <800>; + vactive = <480>; + hback-porch = <88>; + hsync-len = <128>; + hfront-porch = <40>; + vback-porch = <33>; + vsync-len = <2>; + vfront-porch = <10>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + timing5: timing5 { + panel-name = "ETQ570"; + clock-frequency = <6400000>; + hactive = <320>; + vactive = <240>; + hback-porch = <38>; + hsync-len = <30>; + hfront-porch = <30>; + vback-porch = <16>;
arch/arm/boot/dts/imx28-tx28.dts line 418
Quoted 10 lines
arch/arm/boot/dts/imx28-tx28.dts +10
-0+ vsync-len = <3>; + vfront-porch = <4>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + }; + }; +};
Being no graphics expert, looking at above device tree change, I'd like to understand how this can be used to switch between different display timings?
In the kernel, I've found the code which selects the default/native-mode (of_display_timing.c). But, as here, if there is a native/default mode, there are alternative modes. I haven't understood how and who to select these other modes? In this case, how could the alternative modes timing0/1/2/3/4 be selected in the kernel?
Do you have any pointers regarding this?
Many thanks and best regards
Dirk
How to select between different display timings? (was: [PATCH 7/8] ARM: dts: tx28: restructure and update DTS file)
Hi,
Quoted 18 lines · Dirk Behme
Hi Lothar and Shawn,
Quoted 14 lines · Lothar Wa?mann
- add Copyright header
- use label references for better readability
- sort the entries alphabetically
- add some aliases used by U-Boot to edit the DT dataSigned-off-by Lothar Wa?mann <[email protected]>--- arch/arm/boot/dts/imx28-tx28.dts | 693 +++++++++++++++++++++++++++++++++----- 1 files changed, 611 insertions(+), 82 deletions(-)arch/arm/boot/dts/imx28-tx28.dts +0
-0...
Quoted 13 lines
arch/arm/boot/dts/imx28-tx28.dts line 314
Quoted 13 lines
+&lcdif {
arch/arm/boot/dts/imx28-tx28.dts +12
-0+ pinctrl-names = "default"; + pinctrl-0 = <&lcdif_24bit_pins_a &lcdif_sync_pins_a &lcdif_ctrl_pins_a>; + lcd-supply = <®_lcd>; + display = <&display>; + status = "okay"; + + display: display at 0 { + bits-per-pixel = <32>; + bus-width = <24>; + + display-timings { + native-mode = <&timing5>;
^^^^^^^^^^^^^^^^^^^^^^^^^
Quoted 1 line
Quoted 1 line
+ timing0: timing0 {
[...]
Quoted 9 lines
arch/arm/boot/dts/imx28-tx28.dts line 62
Quoted 4 lines
arch/arm/boot/dts/imx28-tx28.dts +4
-0+ }; + }; + }; +};Being no graphics expert, looking at above device tree change, I'd like to understand how this can be used to switch between different display timings?
Quoted 8 lines
In the kernel, I've found the code which selects the default/native-mode (
of_display_timing.c). But, as here, if there is a native/default mode, there are alternative modes. I haven't understood how and who to select these other modes? In this case, how could the alternative modes timing0/1/2/3/4 be selected in the kernel?Do you have any pointers regarding this?
You need to set the property 'native-mode' to the phandle of the display-timings entry like marked above.
Lothar Wa?mann
Signature · 9 lines
___________________________________________________________ Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Gesch?ftsf?hrer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | info at karo-electronics.de ___________________________________________________________
How to select between different display timings?
Am 14.02.2014 15:02, schrieb Lothar Wa?mann:
Quoted 52 lines
Hi,
Quoted 18 lines · Dirk Behme
Hi Lothar and Shawn,
Quoted 14 lines · Lothar Wa?mann
- add Copyright header
- use label references for better readability
- sort the entries alphabetically
- add some aliases used by U-Boot to edit the DT dataSigned-off-by Lothar Wa?mann <[email protected]>--- arch/arm/boot/dts/imx28-tx28.dts | 693 +++++++++++++++++++++++++++++++++----- 1 files changed, 611 insertions(+), 82 deletions(-)arch/arm/boot/dts/imx28-tx28.dts +0
-0...
Quoted 13 lines
arch/arm/boot/dts/imx28-tx28.dts line 314
Quoted 13 lines
+&lcdif {
arch/arm/boot/dts/imx28-tx28.dts +12
-0+ pinctrl-names = "default"; + pinctrl-0 = <&lcdif_24bit_pins_a &lcdif_sync_pins_a &lcdif_ctrl_pins_a>; + lcd-supply = <®_lcd>; + display = <&display>; + status = "okay"; + + display: display at 0 { + bits-per-pixel = <32>; + bus-width = <24>; + + display-timings { + native-mode = <&timing5>;^^^^^^^^^^^^^^^^^^^^^^^^^Quoted 1 line
Quoted 1 line
+ timing0: timing0 {
[...]
Quoted 15 lines
arch/arm/boot/dts/imx28-tx28.dts line 62
Quoted 4 lines
arch/arm/boot/dts/imx28-tx28.dts +4
-0+ }; + }; + }; +};Being no graphics expert, looking at above device tree change, I'd like to understand how this can be used to switch between different display timings?
In the kernel, I've found the code which selects the default/native-mode (
of_display_timing.c). But, as here, if there is a native/default mode, there are alternative modes. I haven't understood how and who to select these other modes? In this case, how could the alternative modes timing0/1/2/3/4 be selected in the kernel?
Quoted 4 lines
Quoted 2 lines
Do you have any pointers regarding this?
You need to set the property 'native-mode' to the phandle of the display-timings entry like marked above.
Hmm, let's see if we talk about the same thing ;) Let me rephrase my questions:
Using above example and booting a system with the resulting .dtb, timing5 is selected at boot time, correct?
Assuming I want to use timing1 instead: who would set when the property 'native-mode' to &timing1?
Can the switch to
native-mode = <&timing1>;
only be done at compile time of the dts -> dtb? Or can this be done at boot/kernel run time, too?
In the end, I'm looking for a way to have several timings like above in the device tree, and select one at kernel boot time based on the display detected. Would this be possible?
Many thanks and best regards
Dirk
How to select between different display timings?
On Fri, 14 Feb 2014 18:35:25 +0100
Dirk Behme <[email protected]> wrote:
...
Quoted 8 lines
Quoted 2 lines
You need to set the property 'native-mode' to the phandle of the display-timings entry like marked above.
Hmm, let's see if we talk about the same thing ;) Let me rephrase my questions:
Using above example and booting a system with the resulting .dtb, timing5 is selected at boot time, correct?
yes.
Quoted 9 lines
Assuming I want to use timing1 instead: who would set when the property 'native-mode' to &timing1?
Can the switch to
native-mode = <&timing1>;
only be done at compile time of the dts -> dtb? Or can this be done at boot/kernel run time, too?
it could be done in U-Boot before booting the kernel. You can load the dtb and patch the property as needed, i.e.:
U-Boot > tftp 107f0000 ${fdtfile}
U-Boot > fdt addr 107f0000
U-Boot > fdt pri /soc/aips-bus at 02000000/ldb at 020e0008/lvds-channel at 0/display-timings
display-timings {
native-mode = <0x0000000d>;
hsd100pxn1 {
clock-frequency = <0x03dfd240>;
hactive = <0x00000400>;
vactive = <0x00000300>;
hback-porch = <0x000000dc>;
hfront-porch = <0x00000028>;
vback-porch = <0x00000015>;
vfront-porch = <0x00000007>;
hsync-len = <0x0000003c>;
vsync-len = <0x0000000a>;
linux,phandle = <0x0000000d>;
phandle = <0x0000000d>;
};
wvga {
clock-frequency = <0x019bfcc0>;
hactive = <0x00000320>;
vactive = <0x000001e0>;
hback-porch = <0x00000028>;
hfront-porch = <0x0000003c>;
vback-porch = <0x0000000a>;
vfront-porch = <0x0000000a>;
hsync-len = <0x00000014>;
vsync-len = <0x0000000a>;
hsync-active = <0x00000000>;
vsync-active = <0x00000000>;
de-active = <0x00000001>;
pixelclk-active = <0x00000000>;
linux,phandle = <0x0000000e>;
phandle = <0x0000000e>;
};
};U-Boot > fdt set /soc/aips-bus at 02000000/ldb at 020e0008/lvds-channel at 0/display-timings native-mode <0x0000000e>
U-Boot > fdt list /soc/aips-bus at 02000000/ldb at 020e0008/lvds-channel at 0/display-timings/
display-timings {
native-mode = <0x0000000e>;
hsd100pxn1 {
};
wvga {
};
};native-mode is referencing second timing node now.
But note that dtc could eliminate the phandles in the nodes if these are not referenced in dts. To avoid this, the nodes could contain a self-reference:
timing1: wvga {
...
linux,phandle = <&timing1>;
};
Quoted 3 lines
In the end, I'm looking for a way to have several timings like above in the device tree, and select one at kernel boot time based on the display detected. Would this be possible?
You could add a function in U-Boot to detect the display and update the dtb before booting. This function can be called before booting if you define CONFIG_OF_BOARD_SETUP in the U-Boot config file for your board and provide ft_board_setup() in your board code.
HTH,
Anatolij
PATCH 8/8 ARM: mxs: Add TX28 defconfigs
In reply to Lothar Waßmann--- arch/arm/configs/tx28-debug_defconfig | 322 +++++++++++++++++++++++++++++++++ arch/arm/configs/tx28_defconfig | 307 +++++++++++++++++++++++++++++++ 2 files changed, 629 insertions(+), 0 deletions(-) create mode 100644 arch/arm/configs/tx28-debug_defconfig create mode 100644 arch/arm/configs/tx28_defconfig
arch/arm/configs/tx28-debug_defconfig new file +322 -0
@@ -0,0 +1,322 @@ +CONFIG_LOCALVERSION="-karo-dbg" +# CONFIG_LOCALVERSION_AUTO is not set +CONFIG_SYSVIPC=y +CONFIG_POSIX_MQUEUE=y +CONFIG_IRQ_DOMAIN_DEBUG=y +CONFIG_NO_HZ=y +CONFIG_HIGH_RES_TIMERS=y +CONFIG_BSD_PROCESS_ACCT=y +CONFIG_NAMESPACES=y +# CONFIG_UTS_NS is not set +# CONFIG_IPC_NS is not set +# CONFIG_PID_NS is not set +# CONFIG_NET_NS is not set +CONFIG_RELAY=y +CONFIG_CC_OPTIMIZE_FOR_SIZE=y +CONFIG_SYSCTL_SYSCALL=y +CONFIG_EMBEDDED=y +# CONFIG_VM_EVENT_COUNTERS is not set +# CONFIG_COMPAT_BRK is not set +CONFIG_MODULES=y +CONFIG_MODULE_UNLOAD=y +CONFIG_MODVERSIONS=y +CONFIG_PARTITION_ADVANCED=y +# CONFIG_EFI_PARTITION is not set +# CONFIG_ARCH_MULTI_V7 is not set +CONFIG_GPIO_PCA953X=y +CONFIG_ARCH_MXS=y +CONFIG_PREEMPT=y +CONFIG_AEABI=y +# CONFIG_COMPACTION is not set +CONFIG_UACCESS_WITH_MEMCPY=y +CONFIG_CC_STACKPROTECTOR=y +CONFIG_CMDLINE="init=/linuxrc root=/dev/nfs nfsroot=192.168.1.225:/tftpboot/KARO/imx28 ip=bootp ro debug panic=1 console=ttymxc0,115200" +CONFIG_CPU_IDLE=y +CONFIG_FPE_NWFPE=y +# CONFIG_COREDUMP is not set +CONFIG_PM_AUTOSLEEP=y +CONFIG_PM_WAKELOCKS=y +CONFIG_PM_RUNTIME=y +CONFIG_PM_DEBUG=y +CONFIG_PM_ADVANCED_DEBUG=y +CONFIG_PM_TEST_SUSPEND=y +CONFIG_APM_EMULATION=y +CONFIG_NET=y +CONFIG_PACKET=y +CONFIG_UNIX=y +CONFIG_INET=y +CONFIG_IP_MULTICAST=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y +CONFIG_SYN_COOKIES=y +# CONFIG_INET_XFRM_MODE_TRANSPORT is not set +# CONFIG_INET_XFRM_MODE_TUNNEL is not set +# CONFIG_INET_XFRM_MODE_BEET is not set +# CONFIG_INET_LRO is not set +# CONFIG_IPV6 is not set +CONFIG_CAN=m +# CONFIG_CAN_GW is not set +CONFIG_CAN_VCAN=m +CONFIG_CAN_FLEXCAN=m +# CONFIG_WIRELESS is not set +CONFIG_UEVENT_HELPER_PATH="/sbin/mdev" +CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y +# CONFIG_FIRMWARE_IN_KERNEL is not set +CONFIG_MTD=y +CONFIG_MTD_TESTS=m +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_BLOCK=y +CONFIG_MTD_NAND=y +CONFIG_MTD_NAND_GPMI_NAND=y +CONFIG_MTD_UBI=y +CONFIG_MTD_UBI_GLUEBI=m +CONFIG_PROC_DEVICETREE=y +CONFIG_BLK_DEV_LOOP=y +CONFIG_BLK_DEV_RAM=y +CONFIG_BLK_DEV_RAM_COUNT=4 +CONFIG_BLK_DEV_RAM_SIZE=16384 +CONFIG_SRAM=y +CONFIG_EEPROM_AT24=m +CONFIG_SCSI=m +CONFIG_BLK_DEV_SD=m +CONFIG_SCSI_MULTI_LUN=y +# CONFIG_SCSI_LOWLEVEL is not set +CONFIG_NETDEVICES=y +# CONFIG_NET_VENDOR_ARC is not set +# CONFIG_NET_CADENCE is not set +# CONFIG_NET_VENDOR_BROADCOM is not set +# CONFIG_NET_VENDOR_CIRRUS is not set +# CONFIG_NET_VENDOR_FARADAY is not set +# CONFIG_NET_VENDOR_INTEL is not set +# CONFIG_NET_VENDOR_MARVELL is not set +# CONFIG_NET_VENDOR_MICREL is not set +# CONFIG_NET_VENDOR_MICROCHIP is not set +# CONFIG_NET_VENDOR_NATSEMI is not set +# CONFIG_NET_VENDOR_SEEQ is not set +# CONFIG_NET_VENDOR_SMSC is not set +# CONFIG_NET_VENDOR_STMICRO is not set +# CONFIG_NET_VENDOR_VIA is not set +# CONFIG_NET_VENDOR_WIZNET is not set +CONFIG_SMSC_PHY=y +# CONFIG_WLAN is not set +# CONFIG_INPUT_MOUSEDEV is not set +CONFIG_INPUT_EVDEV=m +CONFIG_INPUT_EVBUG=m +CONFIG_INPUT_APMPOWER=m +# CONFIG_KEYBOARD_ATKBD is not set +CONFIG_KEYBOARD_GPIO=m +CONFIG_KEYBOARD_MATRIX=m +# CONFIG_INPUT_MOUSE is not set +CONFIG_INPUT_TOUCHSCREEN=y +CONFIG_TOUCHSCREEN_EDT_FT5X06=m +CONFIG_TOUCHSCREEN_USB_COMPOSITE=m +# CONFIG_TOUCHSCREEN_USB_PANJIT is not set +# CONFIG_TOUCHSCREEN_USB_3M is not set +# CONFIG_TOUCHSCREEN_USB_ITM is not set +# CONFIG_TOUCHSCREEN_USB_ETURBO is not set +# CONFIG_TOUCHSCREEN_USB_GUNZE is not set +# CONFIG_TOUCHSCREEN_USB_DMC_TSC10 is not set +# CONFIG_TOUCHSCREEN_USB_IRTOUCH is not set +# CONFIG_TOUCHSCREEN_USB_IDEALTEK is not set +# CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH is not set +# CONFIG_TOUCHSCREEN_USB_GOTOP is not set +# CONFIG_TOUCHSCREEN_USB_JASTEC is not set +# CONFIG_TOUCHSCREEN_USB_E2I is not set +# CONFIG_TOUCHSCREEN_USB_ZYTRONIC is not set +# CONFIG_TOUCHSCREEN_USB_ETT_TC45USB is not set +# CONFIG_TOUCHSCREEN_USB_NEXIO is not set +# CONFIG_TOUCHSCREEN_USB_EASYTOUCH is not set +CONFIG_TOUCHSCREEN_TSC2007=m +# CONFIG_SERIO is not set +CONFIG_VT_HW_CONSOLE_BINDING=y +CONFIG_LEGACY_PTY_COUNT=16 +# CONFIG_DEVKMEM is not set +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y +CONFIG_SERIAL_MXS_AUART=y +CONFIG_SERIAL_MXS_AUART_CONSOLE=y +# CONFIG_HW_RANDOM is not set +CONFIG_I2C=y +# CONFIG_I2C_COMPAT is not set +CONFIG_I2C_CHARDEV=m +# CONFIG_I2C_HELPER_AUTO is not set +CONFIG_I2C_GPIO=y +CONFIG_I2C_MXS=y +CONFIG_SPI=y +CONFIG_SPI_DEBUG=y +CONFIG_SPI_GPIO=m +CONFIG_SPI_FSL_SPI=y +CONFIG_SPI_MXS=m +CONFIG_SPI_SPIDEV=m +CONFIG_DEBUG_GPIO=y +CONFIG_GPIO_SYSFS=y +CONFIG_GPIO_PCA953X_IRQ=y +CONFIG_W1=m +CONFIG_W1_MASTER_GPIO=m +CONFIG_W1_SLAVE_SMEM=m +CONFIG_W1_SLAVE_DS2431=m +CONFIG_W1_SLAVE_DS2433=m +CONFIG_W1_SLAVE_DS2433_CRC=y +CONFIG_POWER_AVS=y +# CONFIG_HWMON is not set +CONFIG_WATCHDOG=y +CONFIG_WATCHDOG_NOWAYOUT=y +CONFIG_STMP3XXX_RTC_WATCHDOG=y +CONFIG_REGULATOR=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y +CONFIG_FB=y +CONFIG_FB_TILEBLITTING=y +CONFIG_FB_MXS=y +CONFIG_BACKLIGHT_LCD_SUPPORT=y +# CONFIG_LCD_CLASS_DEVICE is not set +CONFIG_BACKLIGHT_CLASS_DEVICE=y +# CONFIG_BACKLIGHT_GENERIC is not set +CONFIG_BACKLIGHT_PWM=y +CONFIG_FRAMEBUFFER_CONSOLE=y +CONFIG_LOGO=y +CONFIG_SOUND=y +# CONFIG_SOUND_OSS_CORE_PRECLAIM is not set +CONFIG_SND=y +CONFIG_SND_MIXER_OSS=m +CONFIG_SND_PCM_OSS=m +# CONFIG_SND_PCM_OSS_PLUGINS is not set +CONFIG_SND_HRTIMER=y +CONFIG_SND_DYNAMIC_MINORS=y +# CONFIG_SND_SUPPORT_OLD_API is not set +CONFIG_SND_VERBOSE_PRINTK=y +CONFIG_SND_DEBUG=y +CONFIG_SND_DEBUG_VERBOSE=y +CONFIG_SND_PCM_XRUN_DEBUG=y +# CONFIG_SND_DRIVERS is not set +# CONFIG_SND_ARM is not set +# CONFIG_SND_SPI is not set +# CONFIG_SND_USB is not set +CONFIG_SND_SOC=y +CONFIG_SND_MXS_SOC=y +CONFIG_SND_SOC_MXS_SGTL5000=y +CONFIG_HID=m +CONFIG_USB_HID=m +CONFIG_USB=y +CONFIG_USB_DEBUG=y +CONFIG_USB_ANNOUNCE_NEW_DEVICES=y +CONFIG_USB_DYNAMIC_MINORS=y +CONFIG_USB_MON=m +CONFIG_USB_EHCI_HCD=m +CONFIG_USB_STORAGE=m +CONFIG_USB_STORAGE_REALTEK=m +CONFIG_USB_STORAGE_SDDR09=m +CONFIG_USB_STORAGE_SDDR55=m +CONFIG_USB_CHIPIDEA=m +CONFIG_USB_CHIPIDEA_HOST=y +CONFIG_USB_CHIPIDEA_DEBUG=y +CONFIG_USB_SERIAL=m +CONFIG_USB_SERIAL_GENERIC=y +CONFIG_USB_SERIAL_BELKIN=m +CONFIG_USB_SERIAL_FTDI_SIO=m +CONFIG_USB_TEST=m +CONFIG_USB_MXS_PHY=m +CONFIG_USB_GADGET=m +CONFIG_USB_GADGET_DEBUG=y +CONFIG_USB_GADGET_DEBUG_FILES=y +CONFIG_USB_GADGET_DEBUG_FS=y +CONFIG_USB_GADGET_VBUS_DRAW=300 +CONFIG_USB_ZERO=m +CONFIG_USB_ETH=m +CONFIG_USB_GADGETFS=m +CONFIG_USB_FUNCTIONFS=m +CONFIG_USB_FUNCTIONFS_ETH=y +CONFIG_USB_FUNCTIONFS_RNDIS=y +CONFIG_USB_FUNCTIONFS_GENERIC=y +CONFIG_USB_MASS_STORAGE=m +CONFIG_USB_G_SERIAL=m +CONFIG_MMC=m +CONFIG_MMC_CLKGATE=y +# CONFIG_MMC_BLOCK_BOUNCE is not set +CONFIG_MMC_TEST=m +CONFIG_MMC_MXS=m +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=y +CONFIG_LEDS_GPIO=y +CONFIG_LEDS_TRIGGERS=y +CONFIG_LEDS_TRIGGER_TIMER=m +CONFIG_LEDS_TRIGGER_HEARTBEAT=y +CONFIG_LEDS_TRIGGER_BACKLIGHT=m +CONFIG_LEDS_TRIGGER_GPIO=m +CONFIG_LEDS_TRIGGER_DEFAULT_ON=m +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_DS1307=y +CONFIG_RTC_DRV_STMP=y +CONFIG_DMADEVICES=y +CONFIG_MXS_DMA=y +CONFIG_ASYNC_TX_DMA=y +CONFIG_STAGING=y +CONFIG_MXS_LRADC=m +CONFIG_COMMON_CLK_DEBUG=y +# CONFIG_IOMMU_SUPPORT is not set +CONFIG_IIO=m +CONFIG_PWM=y +CONFIG_PWM_MXS=y +CONFIG_EXT2_FS=y +CONFIG_EXT2_FS_XATTR=y +CONFIG_EXT2_FS_POSIX_ACL=y +CONFIG_EXT2_FS_SECURITY=y +CONFIG_EXT3_FS=y +CONFIG_EXT3_FS_POSIX_ACL=y +CONFIG_EXT3_FS_SECURITY=y +CONFIG_FANOTIFY=y +CONFIG_ISO9660_FS=y +CONFIG_JOLIET=y +CONFIG_ZISOFS=y +CONFIG_MSDOS_FS=y +CONFIG_VFAT_FS=y +CONFIG_FAT_DEFAULT_IOCHARSET="ascii" +CONFIG_TMPFS=y +CONFIG_JFFS2_FS=y +CONFIG_JFFS2_SUMMARY=y +CONFIG_JFFS2_COMPRESSION_OPTIONS=y +CONFIG_JFFS2_LZO=y +CONFIG_JFFS2_RUBIN=y +CONFIG_UBIFS_FS=y +CONFIG_CRAMFS=y +CONFIG_NFS_FS=y +CONFIG_NFS_V4=y +CONFIG_ROOT_NFS=y +CONFIG_NLS_DEFAULT="utf8" +CONFIG_NLS_CODEPAGE_437=m +CONFIG_NLS_CODEPAGE_850=m +CONFIG_NLS_ASCII=m +CONFIG_NLS_ISO8859_15=m +CONFIG_NLS_UTF8=m +CONFIG_DEFAULT_MESSAGE_LOGLEVEL=7 +CONFIG_DYNAMIC_DEBUG=y +CONFIG_STRIP_ASM_SYMS=y +CONFIG_MAGIC_SYSRQ=y +CONFIG_DEBUG_PAGEALLOC=y +CONFIG_SLUB_DEBUG_ON=y +CONFIG_DEBUG_SHIRQ=y +CONFIG_LOCKUP_DETECTOR=y +CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y +CONFIG_BOOTPARAM_HUNG_TASK_PANIC=y +CONFIG_PANIC_ON_OOPS=y +# CONFIG_SCHED_DEBUG is not set +# CONFIG_DEBUG_PREEMPT is not set +CONFIG_DEBUG_RT_MUTEXES=y +CONFIG_PROVE_LOCKING=y +CONFIG_DEBUG_LOCKDEP=y +CONFIG_DEBUG_ATOMIC_SLEEP=y +# CONFIG_FTRACE is not set +CONFIG_DMA_API_DEBUG=y +CONFIG_DEBUG_USER=y +CONFIG_DEBUG_LL=y +CONFIG_DEBUG_IMX28_UART=y +CONFIG_EARLY_PRINTK=y +# CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set +CONFIG_CRYPTO_CBC=y +CONFIG_CRYPTO_MD5=y +CONFIG_CRYPTO_DES=y +# CONFIG_CRYPTO_ANSI_CPRNG is not set +# CONFIG_CRYPTO_HW is not set +CONFIG_CRC_ITU_T=y +CONFIG_CRC7=y
arch/arm/configs/tx28_defconfig new file +307 -0
307 lines not on this page · raw message
Signature · 1 line
1.7.2.5
PATCH 8/8 ARM: mxs: Add TX28 defconfigs
Quoted 5 lines · Lothar Wa?mann
Signed-off-by Lothar Wa?mann <[email protected]>--- arch/arm/configs/tx28-debug_defconfig | 322 +++++++++++++++++++++++++++++++++ arch/arm/configs/tx28_defconfig | 307 +++++++++++++++++++++++++++++++
No, we do not take defconfig for particular board.
Shawn