diff options
author | Zoltan HERPAI <wigyori@uid0.hu> | 2020-04-24 09:58:53 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2021-04-11 23:14:55 +0200 |
commit | 3225241c2bc61e907ea2980cd2f14ea6589cdf2d (patch) | |
tree | ba2c6a1e637ac8a24c3f03449157b314a290c342 /target/linux/sunxi/patches-5.4/441-arm64-dts-add-PWM-node.patch | |
parent | c2163530db3c95745c822e4a573a220ba9f98ca7 (diff) | |
download | upstream-3225241c2bc61e907ea2980cd2f14ea6589cdf2d.tar.gz upstream-3225241c2bc61e907ea2980cd2f14ea6589cdf2d.tar.bz2 upstream-3225241c2bc61e907ea2980cd2f14ea6589cdf2d.zip |
sunxi: add support for H6 boards and OrangePiOnePlus
Specifications:
SoC Allwinner H6 @ 1.8 Ghz
DRAM 1Gb LPDDR3
Power DC 5V @ 3A
Video HDMI (Type 2.0A - full)
Audio HDMI, on-board microphone
Network 10/100/1000Mbps Ethernet (Realtek RTL8211)
Storage microSD
USB 1 USB2.0 Host, 1 USB2.0 OTG
Debug Serial UART
Flashing instructions:
Standard sunxi SD card installation procedure - copy image to SD card,
insert into SD card slot on the device and boot.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
Diffstat (limited to 'target/linux/sunxi/patches-5.4/441-arm64-dts-add-PWM-node.patch')
-rw-r--r-- | target/linux/sunxi/patches-5.4/441-arm64-dts-add-PWM-node.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-5.4/441-arm64-dts-add-PWM-node.patch b/target/linux/sunxi/patches-5.4/441-arm64-dts-add-PWM-node.patch new file mode 100644 index 0000000000..60e653dcba --- /dev/null +++ b/target/linux/sunxi/patches-5.4/441-arm64-dts-add-PWM-node.patch @@ -0,0 +1,37 @@ +From: Jernej Skrabec <jernej.skrabec@siol.net> + +Allwinner H6 PWM is similar to that in A20 except that it has additional +bus clock and reset line. + +Note that first PWM channel is connected to output pin and second +channel is used internally, as a clock source to AC200 co-packaged chip. +This means that any combination of these two channels can be used and +thus it doesn't make sense to add pinctrl nodes at this point. + +Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> +Signed-off-by: Clément Péron <peron.clem@gmail.com> +--- + arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +index 29824081b43b..6d4bde488f15 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +@@ -245,6 +245,16 @@ + status = "disabled"; + }; + ++ pwm: pwm@300a000 { ++ compatible = "allwinner,sun50i-h6-pwm"; ++ reg = <0x0300a000 0x400>; ++ clocks = <&osc24M>, <&ccu CLK_BUS_PWM>; ++ clock-names = "mod", "bus"; ++ resets = <&ccu RST_BUS_PWM>; ++ #pwm-cells = <3>; ++ status = "disabled"; ++ }; ++ + pio: pinctrl@300b000 { + compatible = "allwinner,sun50i-h6-pinctrl"; + reg = <0x0300b000 0x400>; |