mirror of
https://github.com/54shady/kernel_drivers_examples.git
synced 2025-08-15 02:39:36 +00:00
regulator : update readme file
This commit is contained in:
@ -141,12 +141,12 @@ done
|
|||||||
|
|
||||||
### 测试代码简单说明
|
### 测试代码简单说明
|
||||||
|
|
||||||
模拟一个I2C驱动(实际可以没有物理设备),假设是TP,其DeviceTree描述如下
|
模拟一个I2C驱动(实际可以没有物理设备),其DeviceTree描述如下
|
||||||
|
|
||||||
```c
|
```c
|
||||||
&i2c0 {
|
&i2c0 {
|
||||||
regulator_test@5d {
|
consumer1@5d {
|
||||||
compatible = "Test,regulator";
|
compatible = "Consumer1";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
reg = <0x5d>;
|
reg = <0x5d>;
|
||||||
VCC_TP-supply = <&rk818_ldo2_reg>;
|
VCC_TP-supply = <&rk818_ldo2_reg>;
|
||||||
|
Reference in New Issue
Block a user