mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
32bit: add P321 support for aarch32
PD#173683: add P321 Change-Id: I46228d22a244e7c43b75f2a6f784c13ac413b57f Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
This commit is contained in:
1517
arch/arm/boot/dts/amlogic/mesontxl.dtsi
Normal file
1517
arch/arm/boot/dts/amlogic/mesontxl.dtsi
Normal file
File diff suppressed because it is too large
Load Diff
592
arch/arm/boot/dts/amlogic/mesontxl_p321-panel.dtsi
Normal file
592
arch/arm/boot/dts/amlogic/mesontxl_p321-panel.dtsi
Normal file
@@ -0,0 +1,592 @@
|
||||
/*
|
||||
* arch/arm/boot/dts/amlogic/mesontxl_p321-panel.dtsi
|
||||
*
|
||||
* Copyright (C) 2016 Amlogic, Inc. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
*/
|
||||
|
||||
/ {
|
||||
lcd {
|
||||
compatible = "amlogic, lcd-txl";
|
||||
dev_name = "lcd";
|
||||
mode = "tv";
|
||||
status = "okay";
|
||||
fr_auto_policy = <1>; /* 0=disable, 1=60/50hz, 2=60/50/48hz */
|
||||
key_valid = <1>;
|
||||
clocks = <&clkc CLKID_VCLK2_ENCL
|
||||
&clkc CLKID_VCLK2_VENCL>;
|
||||
clock-names = "encl_top_gate",
|
||||
"encl_int_gate";
|
||||
reg = <0xc8834400 0x100>;
|
||||
interrupts = <0 3 1
|
||||
0 78 1>;
|
||||
interrupt-names = "vsync","vbyone";
|
||||
pinctrl-names = "vbyone";
|
||||
pinctrl-0 = <&lcd_vbyone_pins>;
|
||||
pinctrl_version = <2>; /* for uboot */
|
||||
|
||||
/* power type:(0=cpu_gpio, 2=signal, 3=extern, 0xff=ending) */
|
||||
/* power index:(gpios_index, or extern_index, 0xff=invalid) */
|
||||
/* power value:(0=output low, 1=output high, 2=input) */
|
||||
/* power delay:(unit in ms) */
|
||||
lcd_cpu-gpios = <&gpio GPIOH_7 GPIO_ACTIVE_HIGH
|
||||
&gpio GPIOH_6 GPIO_ACTIVE_HIGH
|
||||
&gpio GPIOH_4 GPIO_ACTIVE_HIGH
|
||||
&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
|
||||
lcd_cpu_gpio_names = "GPIOH_7","GPIOH_6",
|
||||
"GPIOH_6","GPIOH_5";
|
||||
|
||||
lvds_0{
|
||||
model_name = "1080p-vfreq";
|
||||
interface = "lvds"; /*lcd_interface(lvds, vbyone)*/
|
||||
basic_setting = <
|
||||
1920 1080 /*h_active, v_active*/
|
||||
2200 1125 /*h_period, v_period*/
|
||||
8 /*lcd_bits */
|
||||
16 9>; /*screen_widht, screen_height*/
|
||||
range_setting = <
|
||||
2060 2650 /*h_period_min,max*/
|
||||
1100 1480 /*v_period_min,max*/
|
||||
120000000 160000000>; /*pclk_min,max*/
|
||||
lcd_timing = <
|
||||
44 148 0 /*hs_width, hs_bp, hs_pol*/
|
||||
5 30 0>; /*vs_width, vs_bp, vs_pol*/
|
||||
clk_attr = <
|
||||
2 /*fr_adj_type
|
||||
*(0=clk, 1=htotal, 2=vtotal, 3=auto_range,
|
||||
* 4=hdmi_mode)
|
||||
*/
|
||||
3 /*clk_ss_level*/
|
||||
1 /*clk_auto_generate*/
|
||||
0>; /*pixel_clk(unit in Hz)*/
|
||||
lvds_attr = <
|
||||
1 /*lvds_repack*/
|
||||
1 /*dual_port*/
|
||||
0 /*pn_swap*/
|
||||
0 /*port_swap*/
|
||||
0>; /*lane_reverse*/
|
||||
phy_attr=<
|
||||
3 0 /*vswing_level, preem_level*/
|
||||
0 0>; /*clk vswing_level, preem_level*/
|
||||
|
||||
/* power step: type, index, value, delay(ms) */
|
||||
power_on_step = <
|
||||
0 0 1 20 /*panel power on*/
|
||||
2 0 0 0 /*signal enable*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
power_off_step = <
|
||||
2 0 0 10 /*signal disable*/
|
||||
0 0 0 100 /*panel power off*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
backlight_index = <0>;
|
||||
};
|
||||
lvds_1{
|
||||
model_name = "1080p-hfreq_hdmi";
|
||||
interface = "lvds"; /*lcd_interface(lvds, vbyone)*/
|
||||
basic_setting = <
|
||||
1920 1080 /*h_active, v_active*/
|
||||
2200 1125 /*h_period, v_period*/
|
||||
8 /*lcd_bits*/
|
||||
16 9>; /*screen_widht, screen_height*/
|
||||
range_setting = <
|
||||
2080 2720 /*h_period min, max*/
|
||||
1100 1380 /*v_period min, max*/
|
||||
133940000 156000000>; /*pclk_min, max*/
|
||||
lcd_timing = <
|
||||
44 148 0 /*hs_width, hs_bp, hs_pol*/
|
||||
5 30 0>; /*vs_width, vs_bp, vs_pol*/
|
||||
clk_attr = <
|
||||
4 /*fr_adj_type
|
||||
*(0=clk, 1=htotal, 2=vtotal, 3=auto_range,
|
||||
* 4=hdmi_mode)
|
||||
*/
|
||||
0 /*clk_ss_level */
|
||||
1 /*clk_auto_generate*/
|
||||
0>; /*pixel_clk(unit in Hz)*/
|
||||
lvds_attr = <
|
||||
1 /*lvds_repack*/
|
||||
1 /*dual_port*/
|
||||
0 /*pn_swap*/
|
||||
0 /*port_swap*/
|
||||
0>; /*lane_reverse*/
|
||||
phy_attr=<
|
||||
3 0 /*vswing_level, preem_level*/
|
||||
0 0>; /*clk vswing_level, preem_level*/
|
||||
|
||||
/* power step: type, index, value, delay(ms) */
|
||||
power_on_step = <
|
||||
0 0 1 20 /*panel power on*/
|
||||
2 0 0 0 /*signal enable*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
power_off_step = <
|
||||
2 0 0 10 /*signal disable*/
|
||||
0 0 0 100 /*panel power off*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
backlight_index = <0>;
|
||||
};
|
||||
lvds_2{
|
||||
model_name = "768p-vfreq";
|
||||
interface = "lvds"; /*lcd_interface(lvds, vbyone)*/
|
||||
basic_setting = <
|
||||
1366 768 /*h_active, v_active*/
|
||||
1560 806 /*h_period, v_period*/
|
||||
8 /*lcd_bits*/
|
||||
16 9>; /*screen_widht, screen_height*/
|
||||
range_setting = <
|
||||
1460 2000 /*h_period_min, max */
|
||||
784 1015 /*v_period_min, max */
|
||||
50000000 85000000>; /*pclk_min, max*/
|
||||
lcd_timing = <
|
||||
56 64 0 /*hs_width, hs_bp, hs_pol*/
|
||||
3 28 0>; /*vs_width, vs_bp, vs_pol*/
|
||||
clk_attr = <
|
||||
2 /*fr_adj_type
|
||||
*(0=clk, 1=htotal, 2=vtotal, 3=auto_range,
|
||||
* 4=hdmi_mode)
|
||||
*/
|
||||
3 /*clk_ss_level*/
|
||||
1 /*clk_auto_generate*/
|
||||
0>; /*pixel_clk(unit in Hz)*/
|
||||
lvds_attr = <
|
||||
1 /*lvds_repack*/
|
||||
0 /*dual_port*/
|
||||
0 /*pn_swap*/
|
||||
0 /*port_swap*/
|
||||
0>; /*lane_reverse*/
|
||||
phy_attr=<
|
||||
3 0 /*vswing_level, preem_level*/
|
||||
0 0>; /*clk vswing_level, preem_level*/
|
||||
|
||||
/* power step: type, index, value, delay(ms) */
|
||||
power_on_step = <
|
||||
0 0 1 20 /*panel power on*/
|
||||
2 0 0 0 /*signal enable*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
power_off_step = <
|
||||
2 0 0 10 /*signal disable*/
|
||||
0 0 0 100 /*panel power off*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
backlight_index = <0>;
|
||||
};
|
||||
vbyone_0{
|
||||
model_name = "ref_2region";
|
||||
interface = "vbyone"; /*lcd_interface(lvds, vbyone)*/
|
||||
basic_setting = <
|
||||
3840 2160 /*h_active, v_active*/
|
||||
4400 2250 /*h_period, v_period*/
|
||||
10 /*lcd_bits */
|
||||
16 9>; /*screen_widht, screen_height*/
|
||||
range_setting = <
|
||||
4240 4800 /*h_period_min, max*/
|
||||
2200 2760 /*v_period_min, max*/
|
||||
480000000 624000000>; /*pclk_min, max*/
|
||||
lcd_timing = <
|
||||
33 477 0 /*hs_width, hs_bp, hs_pol*/
|
||||
6 65 0>; /*vs_width, vs_bp, vs_pol*/
|
||||
clk_attr = <
|
||||
2 /*fr_adj_type
|
||||
*(0=clk, 1=htotal, 2=vtotal, 3=auto_range,
|
||||
* 4=hdmi_mode)
|
||||
*/
|
||||
1 /*clk_ss_level*/
|
||||
1 /*clk_auto_generate*/
|
||||
0>; /*pixel_clk(unit in Hz)*/
|
||||
vbyone_attr = <
|
||||
8 /*lane_count*/
|
||||
2 /*region_num*/
|
||||
4 /*byte_mode*/
|
||||
4>; /*color_fmt*/
|
||||
vbyone_intr_enable = <
|
||||
1 /*vbyone_intr_enable */
|
||||
3>; /*vbyone_vsync_intr_enable*/
|
||||
phy_attr=<3 0>; /* vswing_level, preem_level */
|
||||
|
||||
/* power step: type, index, value, delay(ms) */
|
||||
power_on_step = <0 0 1 20 /*panel power on*/
|
||||
2 0 0 10 /*signal enable*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
power_off_step = <2 0 0 10 /*signal disable*/
|
||||
0 0 0 100 /*panel power off*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
backlight_index = <3>;
|
||||
};
|
||||
vbyone_1{
|
||||
model_name = "ref_1region";
|
||||
interface = "vbyone"; /*lcd_interface(lvds, vbyone)*/
|
||||
basic_setting = <
|
||||
3840 2160 /*h_active, v_active*/
|
||||
4400 2250 /*h_period, v_period*/
|
||||
10 /*lcd_bits*/
|
||||
16 9>; /*screen_widht, screen_height*/
|
||||
range_setting = <
|
||||
4240 4800 /*h_period_min, max*/
|
||||
2200 2790 /*v_period_min, max*/
|
||||
552000000 632000000>; /*pclk_min,max*/
|
||||
lcd_timing = <
|
||||
33 477 0 /*hs_width, hs_bp, hs_pol*/
|
||||
6 65 0>; /*vs_width, vs_bp, vs_pol*/
|
||||
clk_attr = <
|
||||
2 /*fr_adj_type
|
||||
*(0=clk, 1=htotal, 2=vtotal, 3=auto_range,
|
||||
* 4=hdmi_mode)
|
||||
*/
|
||||
1 /*clk_ss_level*/
|
||||
1 /*clk_auto_generate*/
|
||||
0>; /*pixel_clk(unit in Hz)*/
|
||||
vbyone_attr = <
|
||||
8 /*lane_count*/
|
||||
1 /*region_num*/
|
||||
4 /*byte_mode*/
|
||||
4>; /*color_fmt*/
|
||||
vbyone_intr_enable = <
|
||||
1 /*vbyone_intr_enable*/
|
||||
3>; /*vbyone_vsync_intr_enable*/
|
||||
phy_attr=<3 0>; /*vswing_level, preem_level*/
|
||||
|
||||
/* power step: type, index, value, delay(ms) */
|
||||
power_on_step = <
|
||||
0 0 1 20 /*panel power on*/
|
||||
2 0 0 10 /*signal enable*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
power_off_step = <
|
||||
2 0 0 10 /*signal disable*/
|
||||
0 0 0 100 /*panel power off*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
backlight_index = <3>;
|
||||
};
|
||||
vbyone_2{
|
||||
model_name = "ref_2region_hdmi";
|
||||
interface = "vbyone"; /*lcd_interface(lvds, vbyone)*/
|
||||
basic_setting = <
|
||||
3840 2160 /*h_active, v_active*/
|
||||
4400 2250 /*h_period, v_period*/
|
||||
10 /*lcd_bits*/
|
||||
16 9>; /*screen_widht, screen_height*/
|
||||
range_setting = <
|
||||
4240 4800 /*h_period_min, max*/
|
||||
2200 2760 /*v_period_min, max*/
|
||||
480000000 624000000>; /*v_period_min, max*/
|
||||
lcd_timing = <
|
||||
33 477 0 /*hs_width, hs_bp, hs_pol*/
|
||||
6 65 0>; /*vs_width, vs_bp, vs_pol*/
|
||||
clk_attr = <
|
||||
4 /*fr_adj_type
|
||||
*(0=clk, 1=htotal, 2=vtotal, 3=auto_range,
|
||||
* 4=hdmi_mode)
|
||||
*/
|
||||
0 /*clk_ss_level*/
|
||||
1 /*clk_auto_generate*/
|
||||
0>; /*pixel_clk(unit in Hz)*/
|
||||
vbyone_attr = <
|
||||
8 /*lane_count*/
|
||||
2 /*region_num*/
|
||||
4 /*byte_mode*/
|
||||
4>; /*color_fmt*/
|
||||
vbyone_intr_enable = <
|
||||
1 /*vbyone_intr_enable*/
|
||||
3>; /*vbyone_vsync_intr_enable*/
|
||||
phy_attr=<3 0>; /*vswing_level, preem_level*/
|
||||
|
||||
/* power step: type, index, value, delay(ms) */
|
||||
power_on_step = <
|
||||
0 0 1 20 /*panel power on*/
|
||||
2 0 0 10 /*signal enable*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
power_off_step = <
|
||||
2 0 0 10 /*signal disable*/
|
||||
0 0 0 100 /*panel power off*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
backlight_index = <3>;
|
||||
};
|
||||
vbyone_3{
|
||||
model_name = "BOE_HV550QU2";
|
||||
interface = "vbyone"; /*lcd_interface(lvds, vbyone)*/
|
||||
basic_setting = <
|
||||
3840 2160 /*h_active, v_active*/
|
||||
4400 2250 /*h_period, v_period*/
|
||||
10 /*lcd_bits*/
|
||||
16 9>; /*screen_widht, screen_height*/
|
||||
range_setting = <
|
||||
4240 4800 /*h_period_min, max*/
|
||||
2200 2760 /*v_period_min, max*/
|
||||
560000000 624000000>; /*pclk_min, max*/
|
||||
lcd_timing = <
|
||||
33 477 1 /*hs_width, hs_bp, hs_pol*/
|
||||
6 65 0>; /*vs_width, vs_bp, vs_pol*/
|
||||
clk_attr = <
|
||||
2 /*fr_adj_type
|
||||
*(0=clk, 1=htotal, 2=vtotal, 3=auto_range,
|
||||
* 4=hdmi_mode)
|
||||
*/
|
||||
1 /*clk_ss_level*/
|
||||
1 /*clk_auto_generate*/
|
||||
0>; /*pixel_clk(unit in Hz)*/
|
||||
vbyone_attr = <
|
||||
8 /*lane_count*/
|
||||
2 /*region_num*/
|
||||
4 /*byte_mode*/
|
||||
4>; /*color_fmt*/
|
||||
vbyone_intr_enable = <
|
||||
1 /*vbyone_intr_enable*/
|
||||
3>; /*vbyone_vsync_intr_enable*/
|
||||
phy_attr=<3 0>; /*vswing_level, preem_level*/
|
||||
|
||||
/* power step: type, index, value, delay(ms) */
|
||||
power_on_step = <
|
||||
0 0 1 20 /*panel power on*/
|
||||
0 1 0 10 /*3d_disable*/
|
||||
2 0 0 10 /*signal enable*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
power_off_step = <
|
||||
2 0 0 10 /*signal disable*/
|
||||
0 1 2 0 /*3d_disable*/
|
||||
0 0 0 100 /*panel power off*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
backlight_index = <3>;
|
||||
};
|
||||
vbyone_4{
|
||||
model_name = "BOE_HV550QU2_1region";
|
||||
interface = "vbyone"; /*lcd_interface(lvds, vbyone)*/
|
||||
basic_setting = <
|
||||
3840 2160 /*h_active, v_active*/
|
||||
4400 2250 /*h_period, v_period*/
|
||||
10 /*lcd_bits*/
|
||||
16 9>; /*screen_widht, screen_height*/
|
||||
range_setting = <
|
||||
4240 4800 /*h_period_min,max*/
|
||||
2200 2760 /*v_period_min,max*/
|
||||
560000000 624000000>; /*pclk_min, max*/
|
||||
lcd_timing = <
|
||||
33 477 1 /*hs_width, hs_bp, hs_pol*/
|
||||
6 65 0>; /*vs_width, vs_bp, vs_pol*/
|
||||
clk_attr = <
|
||||
2 /*fr_adj_type
|
||||
*(0=clk, 1=htotal, 2=vtotal, 3=auto_range,
|
||||
* 4=hdmi_mode)
|
||||
*/
|
||||
1 /*clk_ss_level*/
|
||||
1 /*clk_auto_generate*/
|
||||
0>; /*pixel_clk(unit in Hz)*/
|
||||
vbyone_attr = <
|
||||
8 /*lane_count*/
|
||||
1 /*region_num*/
|
||||
4 /*byte_mode*/
|
||||
4>; /*color_fmt*/
|
||||
vbyone_intr_enable = <
|
||||
1 /*vbyone_intr_enable*/
|
||||
3>; /*vbyone_vsync_intr_enable*/
|
||||
phy_attr=<3 0>; /*vswing_level, preem_level*/
|
||||
|
||||
/* power step: type, index, value, delay(ms) */
|
||||
power_on_step = <
|
||||
0 0 1 20 /*panel power on*/
|
||||
0 1 0 10 /*3d_disable*/
|
||||
2 0 0 10 /*signal enable*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
power_off_step = <
|
||||
2 0 0 10 /*signal disable*/
|
||||
0 1 2 0 /*3d_disable*/
|
||||
0 0 0 100 /*panel power off*/
|
||||
0xff 0 0 0>; /*ending*/
|
||||
backlight_index = <3>;
|
||||
};
|
||||
}; /* end of lcd */
|
||||
|
||||
lcd_extern{
|
||||
compatible = "amlogic, lcd_extern";
|
||||
dev_name = "lcd_extern";
|
||||
status = "okay";
|
||||
key_valid = <1>;
|
||||
i2c_bus = "i2c_bus_c";
|
||||
/*pinctrl-names="extern_on", */
|
||||
/* "extern_off"; */
|
||||
/*pinctrl-0=<&i2c2_h_pins */
|
||||
/* &lcd_extern_off_pins>; */
|
||||
/*pinctrl_gpio_off = <0>; */
|
||||
/*extern-gpios = <&gpio GPIOH_2 GPIO_ACTIVE_HIGH*/
|
||||
/* &gpio GPIOH_3 GPIO_ACTIVE_HIGH>;*/
|
||||
/*extern_gpio_names = "GPIOH_2","GPIOH_3";*/
|
||||
/*i2c_gpio = <0 1>; //i2c_sck, i2c_sda gpio_index */
|
||||
|
||||
extern_0{
|
||||
index = <0>;
|
||||
extern_name = "ext_default";
|
||||
status = "disabled";
|
||||
type = <0>; /*0=i2c, 1=spi, 2=mipi*/
|
||||
i2c_address = <0x1c>; /*7bit i2c_addr*/
|
||||
i2c_second_address = <0xff>;
|
||||
cmd_size = <0xff>; /*dynamic cmd_size*/
|
||||
|
||||
/* init on/off:
|
||||
* fixed cmd_size: (type, value..., delay);
|
||||
* cmd_size include all data.
|
||||
* dynamic cmd_size: (type, cmd_size, value..., delay);
|
||||
* cmd_size include value+delay.
|
||||
*/
|
||||
/* type: 0x00=cmd(bit[3:0]=1 for second_addr),
|
||||
* 0xf0=gpio, 0xff=ending
|
||||
*/
|
||||
/* value: i2c or spi cmd, or gpio index & level,
|
||||
* fill 0x0 for no use
|
||||
*/
|
||||
/* delay: unit ms */
|
||||
init_on = <
|
||||
0x00 8 0x20 0x01 0x02 0x00 0x40 0xFF 0x00 0
|
||||
0x00 8 0x80 0x02 0x00 0x40 0x62 0x51 0x73 0
|
||||
0x00 8 0x61 0x06 0x00 0x00 0x00 0x00 0x00 0
|
||||
0x00 8 0xC1 0x05 0x0F 0x00 0x08 0x70 0x00 0
|
||||
0x00 8 0x13 0x01 0x00 0x00 0x00 0x00 0x00 0
|
||||
0x00 8 0x3D 0x02 0x01 0x00 0x00 0x00 0x00 0
|
||||
0x00 8 0xED 0x0D 0x01 0x00 0x00 0x00 0x00 0
|
||||
0x00 8 0x23 0x02 0x00 0x00 0x00 0x00 0x00 10
|
||||
0xff 0>; /*ending*/
|
||||
init_off = <0xff 0>; /*ending*/
|
||||
};
|
||||
extern_1{
|
||||
index = <1>;
|
||||
extern_name = "i2c_T5800Q";
|
||||
status = "disabled";
|
||||
type = <0>; /* 0=i2c, 1=spi, 2=mipi */
|
||||
i2c_address = <0x1c>; /* 7bit i2c address */
|
||||
cmd_size = <9>;
|
||||
};
|
||||
};
|
||||
|
||||
backlight{
|
||||
compatible = "amlogic, backlight-txl";
|
||||
dev_name = "backlight";
|
||||
status = "okay";
|
||||
key_valid = <1>;
|
||||
pinctrl-names = "pwm_on","pwm_vs_on",
|
||||
"pwm_combo_0_1_on",
|
||||
"pwm_combo_0_vs_1_on",
|
||||
"pwm_combo_0_1_vs_on",
|
||||
"pwm_off",
|
||||
"pwm_combo_off";
|
||||
pinctrl-0 = <&pwm_b_z6_pins>;
|
||||
pinctrl-1 = <&pwm_vs_z6_pins>;
|
||||
pinctrl-2 = <&pwm_b_z6_pins &pwm_c_z7_pins>;
|
||||
pinctrl-3 = <&pwm_vs_z6_pins &pwm_c_z7_pins>;
|
||||
pinctrl-4 = <&pwm_b_z6_pins &pwm_vs_z7_pins>;
|
||||
pinctrl-5 = <&bl_pwm_off_pins>;
|
||||
pinctrl-6 = <&bl_pwm_combo_off_pins>;
|
||||
pinctrl_version = <2>; /* for uboot */
|
||||
bl_pwm_config = <&bl_pwm_conf>;
|
||||
|
||||
/* pwm port: PWM_A, PWM_B, PWM_C, PWM_D, PWM_E, PWM_F, PWM_VS*/
|
||||
/* power index:(point gpios_index, 0xff=invalid) */
|
||||
/* power value:(0=output low, 1=output high, 2=input) */
|
||||
/* power delay:(unit in ms) */
|
||||
bl-gpios = <&gpio GPIOZ_2 GPIO_ACTIVE_HIGH
|
||||
&gpio GPIOZ_6 GPIO_ACTIVE_HIGH
|
||||
&gpio GPIOZ_7 GPIO_ACTIVE_HIGH>;
|
||||
bl_gpio_names = "GPIOZ_2","GPIOZ_6","GPIOZ_7";
|
||||
|
||||
backlight_0{
|
||||
index = <0>;
|
||||
bl_name = "backlight_pwm";
|
||||
bl_level_default_uboot_kernel = <100 100>;
|
||||
bl_level_attr = <255 10 /*max, min*/
|
||||
128 128>; /*mid, mid_mapping*/
|
||||
bl_ctrl_method = <1>; /*1=pwm,2=pwm_combo*/
|
||||
bl_power_attr = <0 /*en_gpio_index*/
|
||||
1 0 /*on_value, off_value*/
|
||||
200 200>; /*on_delay(ms), off_delay(ms)*/
|
||||
bl_pwm_port = "PWM_B";
|
||||
bl_pwm_attr = <1 /*pwm_method(0=negative, 1=positvie)*/
|
||||
180 /*pwm_freq(pwm:Hz, pwm_vs:multiple of vs)*/
|
||||
100 25>; /*duty_max(%), duty_min(%)*/
|
||||
bl_pwm_power = <1 0 /*pwm_gpio_index, pwm_gpio_off*/
|
||||
10 10>; /*pwm_on_delay(ms), pwm_off_delay(ms)*/
|
||||
bl_pwm_en_sequence_reverse = <0>; /* 1 for reverse */
|
||||
};
|
||||
backlight_1{
|
||||
index = <1>;
|
||||
bl_name = "backlight_pwm_vs";
|
||||
bl_level_default_uboot_kernel = <100 100>;
|
||||
bl_level_attr = <255 10 /*max, min*/
|
||||
128 128>; /*mid, mid_mapping*/
|
||||
bl_ctrl_method = <1>; /*1=pwm,2=pwm_combo*/
|
||||
bl_power_attr = <0 /*en_gpio_index*/
|
||||
1 0 /*on_value, off_value*/
|
||||
200 200>; /* on_delay(ms), off_delay(ms)*/
|
||||
bl_pwm_port = "PWM_VS";
|
||||
bl_pwm_attr = <1 /*pwm_method(0=negative, 1=positvie)*/
|
||||
2 /*pwm_freq(pwm:Hz, pwm_vs:multiple of vs)*/
|
||||
100 25>; /*duty_max(%), duty_min(%)*/
|
||||
bl_pwm_power = <1 0 /*pwm_gpio_index, pwm_gpio_off*/
|
||||
10 10>; /*pwm_on_delay(ms), pwm_off_delay(ms)*/
|
||||
bl_pwm_en_sequence_reverse = <0>; /* 1 for reverse */
|
||||
};
|
||||
backlight_2{
|
||||
index = <2>;
|
||||
bl_name = "backlight_pwm_combo";
|
||||
bl_level_default_uboot_kernel = <100 100>;
|
||||
bl_level_attr = <255 10 /*max, min*/
|
||||
128 128>; /*mid, mid_mapping*/
|
||||
bl_ctrl_method = <2>; /*1=pwm,2=pwm_combo*/
|
||||
bl_power_attr = <0 /*en_gpio_index*/
|
||||
1 0 /*on_value, off_value*/
|
||||
200 200>; /* on_delay(ms), off_delay(ms)*/
|
||||
bl_pwm_combo_level_mapping = <255 100 /*pwm_0 range*/
|
||||
100 10>; /*pwm_1 range*/
|
||||
bl_pwm_combo_port = "PWM_B","PWM_C";
|
||||
bl_pwm_combo_attr = <1 /*pwm0 method*/
|
||||
180 /*pwm0 freq(pwm:Hz, pwm_vs:multiple of vs)*/
|
||||
100 25 /*pwm0 duty_max(%), duty_min(%)*/
|
||||
1 /*pwm1 method*/
|
||||
18000 /*pwm1 freq(pwm:Hz, pwm_vs:multi of vs)*/
|
||||
100 20>; /*pwm1 duty_max(%), duty_min(%)*/
|
||||
bl_pwm_combo_power = <1 0 /*pwm0 gpio_index, gpio_off*/
|
||||
2 0 /*pwm1 gpio_index, gpio_off*/
|
||||
10 10>; /*pwm_on_delay(ms), pwm_off_delay(ms)*/
|
||||
bl_pwm_en_sequence_reverse = <0>; /* 1 for reverse */
|
||||
};
|
||||
backlight_3{
|
||||
index = <3>;
|
||||
bl_name = "backlight_pwm_combo";
|
||||
bl_level_default_uboot_kernel = <31 100>;
|
||||
bl_level_attr = <255 10 /*max, min*/
|
||||
128 128>; /*mid, mid_mapping*/
|
||||
bl_ctrl_method = <2>; /*1=pwm,2=pwm_combo*/
|
||||
bl_power_attr = <0 /*en_gpio_index*/
|
||||
1 0 /*on_value, off_value*/
|
||||
410 110>; /*on_delay(ms), off_delay(ms)*/
|
||||
bl_pwm_combo_level_mapping = <255 10 /*pwm_0 range*/
|
||||
0 0>; /*pwm_1 range*/
|
||||
bl_pwm_combo_port = "PWM_B","PWM_C";
|
||||
bl_pwm_combo_attr = <1 /*pwm0 method*/
|
||||
180 /*pwm0 freq(pwm:Hz, pwm_vs:multiple of vs)*/
|
||||
100 25 /*pwm0 duty_max(%), duty_min(%)*/
|
||||
1 /*pwm1 method*/
|
||||
18000 /*pwm1 freq(pwm:Hz, pwm_vs:multi of vs)*/
|
||||
80 80>; /*pwm1 duty_max(%), duty_min(%)*/
|
||||
bl_pwm_combo_power = <1 0 /*pwm0 gpio_index, gpio_off*/
|
||||
2 0 /*pwm1 gpio_index, gpio_off*/
|
||||
10 10>; /*pwm_on_delay(ms), pwm_off_delay(ms)*/
|
||||
bl_pwm_en_sequence_reverse = <0>; /* 1 for reverse */
|
||||
};
|
||||
};
|
||||
|
||||
bl_pwm_conf:bl_pwm_conf{
|
||||
pwm_channel_0 {
|
||||
pwm_port_index = <1>;
|
||||
pwms = <&pwm_ab MESON_PWM_1 30040 0>;
|
||||
};
|
||||
pwm_channel_1 {
|
||||
pwm_port_index = <2>;
|
||||
pwms = <&pwm_cd MESON_PWM_0 30040 0>;
|
||||
};
|
||||
};
|
||||
|
||||
}; /* end of / */
|
||||
1167
arch/arm/boot/dts/amlogic/txl_t962_p321.dts
Normal file
1167
arch/arm/boot/dts/amlogic/txl_t962_p321.dts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -213,6 +213,7 @@ CONFIG_AMLOGIC_PINCTRL_MESON_GXL=y
|
||||
CONFIG_AMLOGIC_PINCTRL_MESON_AXG=y
|
||||
CONFIG_AMLOGIC_PINCTRL_MESON_TXLX=y
|
||||
CONFIG_AMLOGIC_PINCTRL_MESON_G12A=y
|
||||
CONFIG_AMLOGIC_PINCTRL_MESON_TXL=y
|
||||
CONFIG_AMLOGIC_USB=y
|
||||
CONFIG_AMLOGIC_USB_DWC_OTG_HCD=y
|
||||
CONFIG_AMLOGIC_USB_HOST_ELECT_TEST=y
|
||||
|
||||
10
scripts/amlogic/mk_32dtb.sh
Executable file
10
scripts/amlogic/mk_32dtb.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
export CROSS_COMPILE=/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
|
||||
|
||||
make ARCH=arm meson64_a32_defconfig
|
||||
make ARCH=arm txl_t962_p321.dtb || echo "Compile dtb Fail !!"
|
||||
make ARCH=arm txlx_t962x_r311_1g.dtb || echo "Compile dtb Fail !!"
|
||||
|
||||
|
||||
|
||||
10
scripts/amlogic/mk_gx32.sh
Executable file
10
scripts/amlogic/mk_gx32.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
export CROSS_COMPILE=/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
|
||||
|
||||
make ARCH=arm meson64_a32_defconfig
|
||||
make ARCH=arm -j16 uImage || echo "Compile Image Fail !!"
|
||||
make ARCH=arm txl_t962_p321.dtb || echo "Compile dtb Fail !!"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user