liyujie
2025-08-29 87c7c0d90966d729ca3d39cbfca77a39a43960eb
解决板卡插入usb摄像头上电,打不开摄像头的问题
2 files modified
18 ■■■■ changed files
android/device/softwinner/ceres-c3/init.device.rc 2 ●●●●● patch | view | raw | blame | history
longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts 16 ●●●●● patch | view | raw | blame | history
android/device/softwinner/ceres-c3/init.device.rc
....@@ -59,6 +59,8 @@
5959 #usb hub up
6060 chmod 0777 /sys/class/leds/hubrst/brightness
6161 write /sys/class/leds/hubrst/brightness 255
62
+ chmod 0777 /sys/class/leds/usb_vbus/brightness
63
+ write /sys/class/leds/usb_vbus/brightness 0
6264
6365 #GPIO 66 67 input
6466 write /sys/class/gpio/export 66
longan/device/config/chips/a133/configs/c3/kickpi-k5c.dts
....@@ -17,15 +17,15 @@
1717 standby_param = &standby_param;
1818 };
1919
20
- reg_usb1_vbus: usb1-vbus {
20
+ reg_usb1_vbus: usb1-vbus {
2121 compatible = "regulator-fixed";
22
- gpio = <&r_pio PL 8 1 2 0 1>;
22
+ //gpio = <&r_pio PL 8 1 2 0 1>;
2323 regulator-name = "usb1-vbus";
2424 regulator-min-microvolt = <5000000>;
2525 regulator-max-microvolt = <5000000>;
2626 regulator-enable-ramp-delay = <1000>;
2727 enable-active-high;
28
- };
28
+ };
2929
3030 soc: soc@03000000 {
3131
....@@ -924,13 +924,13 @@
924924 status = "okay";
925925 };
926926
927
- ehci1:ehci1-controller@0x05200000 {
927
+ ehci1:ehci1-controller@0x05200000 {
928928 drvvbus-supply = <&reg_usb1_vbus>;
929929 };
930930
931931 ohci1:ohci1-controller@0x05200400 {
932932 drvvbus-supply = <&reg_usb1_vbus>;
933
- };
933
+ };
934934
935935 sdc1: sdmmc@04021000 {
936936 bus-width = <4>;
....@@ -1340,6 +1340,12 @@
13401340 pinctrl-names = "default";
13411341 status = "okay";
13421342
1343
+ usb_vbus {
1344
+ abel = "usb_vbus";
1345
+ gpios = <&r_pio PL 8 1 2 0 1>;
1346
+ linux,default_trigger = "default-on";
1347
+ };
1348
+
13431349 work-led {
13441350 label = "work-led";
13451351 gpios = <&r_pio PL 10 1 0 1 0>;