Skip to content

Commit

Permalink
Provide dtb overlay to enable pwm node for rk3288
Browse files Browse the repository at this point in the history
  • Loading branch information
paolosabatino authored and igorpecovnik committed Oct 13, 2024
1 parent 9063798 commit ced0c4a
Show file tree
Hide file tree
Showing 10 changed files with 116 additions and 0 deletions.
3 changes: 3 additions & 0 deletions patch/kernel/archive/rockchip-6.11/overlay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-ds1307.dtbo \
rockchip-i2c1.dtbo \
rockchip-i2c4.dtbo \
rockchip-pwm1.dtbo \
rockchip-pwm2.dtbo \
rockchip-pwm3.dtbo \
rockchip-spi0.dtbo \
rockchip-spi2.dtbo \
rockchip-spidev0.dtbo \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ rockchip (Rockchip)
- ds1307
- i2c1
- i2c4
- pwm1
- pwm2
- pwm3
- spi0
- spi2
- spidev0
Expand All @@ -35,6 +38,10 @@ Activate i2c1

Activate i2c4

### pwm*

Activate pwm1, pwm2 and pwm3

### spi0

Activate spi0
Expand Down
16 changes: 16 additions & 0 deletions patch/kernel/archive/rockchip-6.11/overlay/rockchip-pwm1.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Definitions for pwm1
*/

/dts-v1/;
/plugin/;

/ {
compatible = "rockchip,rk3288";

fragment@0 {
target = <&pwm1>;
__overlay__ {
status = "okay";
};
};
};
16 changes: 16 additions & 0 deletions patch/kernel/archive/rockchip-6.11/overlay/rockchip-pwm2.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Definitions for pwm2
*/

/dts-v1/;
/plugin/;

/ {
compatible = "rockchip,rk3288";

fragment@0 {
target = <&pwm2>;
__overlay__ {
status = "okay";
};
};
};
16 changes: 16 additions & 0 deletions patch/kernel/archive/rockchip-6.11/overlay/rockchip-pwm3.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Definitions for pwm3
*/

/dts-v1/;
/plugin/;

/ {
compatible = "rockchip,rk3288";

fragment@0 {
target = <&pwm3>;
__overlay__ {
status = "okay";
};
};
};
3 changes: 3 additions & 0 deletions patch/kernel/archive/rockchip-6.6/overlay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-ds1307.dtbo \
rockchip-i2c1.dtbo \
rockchip-i2c4.dtbo \
rockchip-pwm1.dtbo \
rockchip-pwm2.dtbo \
rockchip-pwm3.dtbo \
rockchip-spi0.dtbo \
rockchip-spi2.dtbo \
rockchip-spidev0.dtbo \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ rockchip (Rockchip)
- ds1307
- i2c1
- i2c4
- pwm1
- pwm2
- pwm3
- spi0
- spi2
- spidev0
Expand All @@ -35,6 +38,10 @@ Activate i2c1

Activate i2c4

### pwm*

Activate pwm1, pwm2 and pwm3

### spi0

Activate spi0
Expand Down
16 changes: 16 additions & 0 deletions patch/kernel/archive/rockchip-6.6/overlay/rockchip-pwm1.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Definitions for pwm1
*/

/dts-v1/;
/plugin/;

/ {
compatible = "rockchip,rk3288";

fragment@0 {
target = <&pwm1>;
__overlay__ {
status = "okay";
};
};
};
16 changes: 16 additions & 0 deletions patch/kernel/archive/rockchip-6.6/overlay/rockchip-pwm2.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Definitions for pwm2
*/

/dts-v1/;
/plugin/;

/ {
compatible = "rockchip,rk3288";

fragment@0 {
target = <&pwm2>;
__overlay__ {
status = "okay";
};
};
};
16 changes: 16 additions & 0 deletions patch/kernel/archive/rockchip-6.6/overlay/rockchip-pwm3.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Definitions for pwm3
*/

/dts-v1/;
/plugin/;

/ {
compatible = "rockchip,rk3288";

fragment@0 {
target = <&pwm3>;
__overlay__ {
status = "okay";
};
};
};

0 comments on commit ced0c4a

Please sign in to comment.