Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于黑豹X2([Panther X2)的miniPCIe接口,已经拆下来供大家分析了。 #2154

Closed
caigooo opened this issue Mar 12, 2024 · 14 comments
Labels
documentation Improvements or additions to documentation

Comments

@caigooo
Copy link

caigooo commented Mar 12, 2024

Device Information | 设备信息

  • SOC: [rk3566]
  • Model [Panther X2]

Armbian Version | 系统版本

  • Kernel Version: [ 5.15.100]
  • Release: [jammy/bullseye]

Describe the bug | 问题描述
这几天折腾黑豹X2的miniPCIE接口,实在是搞不下去了,把资料汇总一下,看看哪位大侠能有新思路。

1、这个miniPCIE 没有USB2.0的引线(36、38脚),无法增加USB!

2、miniPCIE转nvme固态,缺了1、7、11、13、33脚,这有点难搞了!

3、miniPCIE转msata接口/sata,我是小白,大概看了一下rk3566的手册,pcie和sata好像是复用的,是不是说用的是同一组线路,如果是,那还是缺33脚。有没有一种方法重新定义CPU这个脚,借用其他线路,再改物理改动一下引线。又或者屏蔽这个脚,依然能交换数据?

4、理论上缺失的引脚从CPU这边重新飞线过来,应该是可行的,但是难度非常非常大,有引出点还好,没有的话需要重焊CPU,这就是厕所点灯了...

5、我只是一个工地搬砖的,没有太多电子知识储备,编程那些更是一窍不通。。尽力了。

X2缺针脚2

转NVME缺脚

转msata缺脚

更多接口图片看看这个链接 #2027 (comment)

@ophub @LSP0123 @HelloTheAsia @FusionPlmH @hxp-vip @akwangl ...

@caigooo
Copy link
Author

caigooo commented Mar 13, 2024

今天再认证核对了一下,这个miniPCIE接口确实是残废的,装假狗的。
最重要的四条线路,都不是对应的。

PCIE20_TXn/SATA2_TXp 23脚
PCIE20_TXn/SATA2_TXn 25脚
这两组线是往CPU的AE1附近走的(I2C),跟pcie的AA37、AA38相差太远了!

PCIE20_RXn/SATA2_RXp 31脚
PCIE20_RXn/SATA2_RXn 33脚
31脚往前面空白的芯片走的,这个应该是GPS芯片。33脚空。。。

没戏了

再付上一张CPU焊盘图片,收贴!!!
IMG_20240318_185320

@ophub ophub added the documentation Improvements or additions to documentation label Mar 13, 2024
@devinzhang91
Copy link

很强,想请问一下板上的i2c是device:0吗?

@caigooo
Copy link
Author

caigooo commented Mar 14, 2024

很强,想请问一下板上的i2c是device:0吗?

你是指主板上留空的i2c接口吗?RK3566一共有6组I2C,主板上预留的i2c接口走线走的是中层,找不到去向。
但是i2c0和 i2c1是在芯片的右下下角的,跟主板预留的接口方向一致。

@HelloTheAsia
Copy link

i2c1就在板子的角落,这个可以确定是可用的
image

@caigooo
Copy link
Author

caigooo commented Mar 14, 2024

i2c1就在板子的角落,这个可以确定是可用的 image

都是高手啊~~

@jgpgtg
Copy link

jgpgtg commented Apr 1, 2024

补充下PCIE的Pin定义图
mmexport1711939996715.png

mmexport1711939998788.png

mmexport1711940001375.png

mmexport1711940009419.png

@jgpgtg
Copy link

jgpgtg commented Apr 1, 2024

i2c1就在板子的角落,这个可以确定是可用的
image

你的固件中,spi启动了吗

@HelloTheAsia
Copy link

i2c1就在板子的角落,这个可以确定是可用的
image

你的固件中,spi启动了吗

你是说这个lora网卡吗,我测试是可用的
image

@jgpgtg
Copy link

jgpgtg commented Apr 1, 2024

i2c1就在板子的角落,这个可以确定是可用的
image

你的固件中,spi启动了吗

你是说这个lora网卡吗,我测试是可用的
image

是的,能启动的话做点什么有意思的东西呢

@jgpgtg
Copy link

jgpgtg commented Apr 3, 2024

i2c1就在板子的角落,这个可以确定是可用的
image

你的固件中,spi启动了吗

你是说这个lora网卡吗,我测试是可用的
image

你刷的是哪个固件,需要换uboot或者其他东西吗,我的找不到spi

@HelloTheAsia
Copy link

HelloTheAsia commented Apr 17, 2024

i2c1就在板子的角落,这个可以确定是可用的
image

你的固件中,spi启动了吗

你是说这个lora网卡吗,我测试是可用的
image

你刷的是哪个固件,需要换uboot或者其他东西吗,我的找不到spi

我fork了一份,自己编译的.你可以试试spi3.0,我简单的测试了一下 是可以驱动的, POWER_EN_PIN=129,RESET_PIN=120

@yjdwbj
Copy link

yjdwbj commented Apr 19, 2024

下面信息,是从panther-x2原版系统dump出来的。

i2c@fe5a0000 {
		#address-cells = < 0x01 >;
		#size-cells = < 0x00 >;
		clock-frequency = < 0x186a0 >;
		clock-names = "i2c\0pclk";
		clocks = < 0x1f 0x148 0x1f 0x147 >;
		compatible = "rockchip,rk3399-i2c";
		interrupts = < 0x00 0x2f 0x04 >;
		phandle = < 0x1a2 >;
		pinctrl-0 = < 0xcc >;
		pinctrl-names = "default";
		reg = < 0x00 0xfe5a0000 0x00 0x1000 >;
		status = "okay";

		gt1x@14 {
			compatible = "goodix,gt1x";
			goodix,irq-gpio = < 0x36 0x0d 0x08 >;
			goodix,rst-gpio = < 0x36 0x0e 0x00 >;
			phandle = < 0x1a3 >;
			pinctrl-0 = < 0xcd >;
			pinctrl-names = "default";
			power-supply = < 0x91 >;
			reg = < 0x14 >;
			status = "disabled";
		};
	};
  • i2c-detect
root@Panther-X2:~# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
root@Panther-X2:~# i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
root@Panther-X2:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- 
20: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
root@Panther-X2:~# i2cdetect -y 3

@ophub ophub closed this as completed Apr 27, 2024
@maxmib
Copy link

maxmib commented Apr 29, 2024

i2c1就在板子的角落,这个可以确定是可用的
image

你的固件中,spi启动了吗

你是说这个lora网卡吗,我测试是可用的
image

你刷的是哪个固件,需要换uboot或者其他东西吗,我的找不到spi

我fork了一份,自己编译的.你可以试试spi3.0,我简单的测试了一下 是可以驱动的, POWER_EN_PIN=129,RESET_PIN=120

请教一下具体怎么操作,需不需要修改dtb,谢谢

@imi415
Copy link

imi415 commented May 25, 2024

模块上SHT20 overlay (SCL: PB4, SDA: PB5):

/dts-v1/;
/plugin/;
/ {
	fragment@0 {
		target = <&i2c2>;
		__overlay__ {
			status = "okay";
			pinctrl-0 = <&i2c2m1_xfer>;
		};
	};
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

8 participants