xref: /freebsd/sys/dts/arm64/overlays/sun50i-a64-rpwm.dtso (revision 41dd88513bdc0401015b1308eed5c06b8bbe6211)
1*c3c78b0aSEmmanuel Vadot/dts-v1/;
2*c3c78b0aSEmmanuel Vadot/plugin/;
3*c3c78b0aSEmmanuel Vadot
4*c3c78b0aSEmmanuel Vadot/ {
5*c3c78b0aSEmmanuel Vadot	compatible = "allwinner,sun50i-a64";
6*c3c78b0aSEmmanuel Vadot};
7*c3c78b0aSEmmanuel Vadot
8*c3c78b0aSEmmanuel Vadot&{/soc} {
9*c3c78b0aSEmmanuel Vadot	r_pwm: pwm@1f03800 {
10*c3c78b0aSEmmanuel Vadot		compatible = "allwinner,sun50i-a64-pwm",
11*c3c78b0aSEmmanuel Vadot			     "allwinner,sun5i-a13-pwm";
12*c3c78b0aSEmmanuel Vadot		reg = <0x01f03800 0x400>;
13*c3c78b0aSEmmanuel Vadot		clocks = <&osc24M>;
14*c3c78b0aSEmmanuel Vadot		pinctrl-names = "default";
15*c3c78b0aSEmmanuel Vadot		pinctrl-0 = <&r_pwm_pin>;
16*c3c78b0aSEmmanuel Vadot		#pwm-cells = <3>;
17*c3c78b0aSEmmanuel Vadot		status = "okay";
18*c3c78b0aSEmmanuel Vadot	};
19*c3c78b0aSEmmanuel Vadot};
20*c3c78b0aSEmmanuel Vadot
21*c3c78b0aSEmmanuel Vadot&{/soc/pinctrl@1f02c00} {
22*c3c78b0aSEmmanuel Vadot	r_pwm_pin: pwm {
23*c3c78b0aSEmmanuel Vadot		pins = "PL10";
24*c3c78b0aSEmmanuel Vadot		function = "s_pwm";
25*c3c78b0aSEmmanuel Vadot	};
26*c3c78b0aSEmmanuel Vadot};
27