大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。
Jetbrains全系列IDE稳定放心使用
笔记:
调试步骤:
1. BLSPcheck:主要确认GPIO功能和BLSP通道
2. pinctrl文件配置
3. 平台设备树文件配置
4. 时钟文件修改
5. 添加从设备:
1 设备树注册方法
2 设备数节点创建
i2c_3_active: i2c_3_active {
/* active state */
mux {
pins = “gpio10”, “gpio11”;
function = “blsp_i2c3”;
};
config {
pins = “gpio10”, “gpio11”;
drive-strength = <2>;
bias-disable;
};
};
i2c_3_sleep: i2c_3_sleep {
/* suspended state */
mux {
pins = “gpio10”, “gpio11”;
function = “gpio”;
};
config {
pins = “gpio10”, “gpio11”;
drive-strength = <2>;
bias-disable;
};
};
};
smd1 = &smdtty_apps_fm;
smd2 = &smdtty_apps_riva_bt_acl;
smd3 = &smdtty_apps_riva_bt_cmd;
smd4 = &smdtty_mbalbridge;
smd5 = &smdtty_apps_riva_ant_cmd;
smd6 = &smdtty_apps_riva_ant_data;
smd7 = &smdtty_data1;
smd8 = &smdtty_data4;
smd11 = &smdtty_data11;
smd21 = &smdtty_data21;
smd36 = &smdtty_loopback;
spi3 = &spi_3;
i2c2 = &i2c_2;
i2c5 = &i2c_5;
i2c3 = &i2c_3;
sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
sdhc2 = &sdhc_2; /* SDC2 for SD card */
};
compatible = “qcom,i2c-msm-v2”;
#address-cells = <1>;
#size-cells = <0>;
reg-names = “qup_phys_addr”;
reg = <0x78b7000 0x600>;
interrupt-names = “qup_irq”;
interrupts = <0 97 0>;
qcom,clk-freq-out = <400000>;
qcom,clk-freq-in = <19200000>;
clock-names = “iface_clk”, “core_clk”;
clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
<&clock_gcc clk_gcc_blsp1_qup3_i2c_apps_clk>;
pinctrl-names = “i2c_active”, “i2c_sleep”;
pinctrl-0 = <&i2c_3_active>;
pinctrl-1 = <&i2c_3_sleep>;
qcom,noise-rjct-scl = <0>;
qcom,noise-rjct-sda = <0>;
qcom,master-id = <86>;
dmas = <&dma_blsp1 8 64 0x20000020 0x20>,
<&dma_blsp1 9 32 0x20000020 0x20>;
dma-names = “tx”, “rx”;
status = “okey”;
};
.cmd_rcgr_reg = BLSP1_QUP1_I2C_APPS_CMD_RCGR,
.set_rate = set_rate_hid,
.freq_tbl = ftbl_gcc_blsp1_2_qup1_4_i2c_apps_clk,
.current_freq = &rcg_dummy_freq,
.base = &virt_bases[GCC_BASE],
.c = {
.dbg_name = “blsp1_qup1_i2c_apps_clk_src”,
.ops = &clk_ops_rcg,
VDD_DIG_FMAX_MAP1(LOWER, 50000000),
CLK_INIT(blsp1_qup1_i2c_apps_clk_src.c),
},
};
status = “ok”;
st1663i@70 {
compatible = “sitronix-tp”;
reg = <0x70>;
interrupt-parent = <&tlmm>;
interrupts = <65 0x00>;
reset-gpio = <&tlmm 64 0x00>;
irq-gpio = <&tlmm 65 0x2002>;
/*avdd-supply = <&tp_power>;*/
vdd-supply = <&pm8917_l17>;
vcc_i2c-supply = <&pm8917_l5>;
/* pins used by touchscreen */
pinctrl-names = “pmx_ts_active”,
“pmx_ts_suspend”,
“pmx_ts_release”;
pinctrl-0 = <&ts_int_active &ts_reset_active>;
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
pinctrl-2 = <&ts_release>;
st1663i,i2c-pull-up;
st1663i,no-force-update;
st1663i,num_max_touches = <10>;
st1663i,panel-coords = <0 0 480 800>;
st1663i,display-coords = <0 0 480 800>;
st1663i,button-map= <139 172 158>;
st1663i,have-touch-key;
st1663i,driver-send-cfg;
};
};
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/184315.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...