Merge tag 'sunxi-dt-for-6.14' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into soc/dt
Allwinner Device Tree changes for 6.14
- Add support for DMA engine and audio codec on F1C100s
and enable audio codec on Lichee Pi Nano
- Add syscon and SRAM nodes for A100
- Enable CPU DVFS for Tanix TX1
- Explicitly configure TCON0 pixel clock parent according to display
output used
This includes one commit shared with the clock tree
dt-bindings: clock: sunxi: Export PLL_VIDEO_2X and PLL_MIPI
which adds the macros for the TCON0 pixel clock parents.
* tag 'sunxi-dt-for-6.14' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
arm64: dts: allwinner: a64: explicitly assign clock parent for TCON0
dt-bindings: clock: sunxi: Export PLL_VIDEO_2X and PLL_MIPI
arm64: dts: allwinner: h313: enable DVFS for Tanix TX1
arm64: dts: allwinner: a100: Add syscon nodes
dt-bindings: sram: sunxi-sram: Add A100 compatible
ARM: dts: suniv: f1c100s: Activate Audio Codec for Lichee Pi Nano
ARM: dts: suniv: f1c100s: Add support for Audio Codec
ARM: dts: suniv: f1c100s: Add support for DMA
Link: https://lore.kernel.org/r/Z36h2FwUxro8rouO@wens.tw
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -47,7 +47,9 @@ properties:
|
||||
- const: allwinner,sun8i-v3s-system-control
|
||||
- const: allwinner,sun8i-h3-system-control
|
||||
- items:
|
||||
- const: allwinner,sun50i-h6-system-control
|
||||
- enum:
|
||||
- allwinner,sun50i-a100-system-control
|
||||
- allwinner,sun50i-h6-system-control
|
||||
- const: allwinner,sun50i-a64-system-control
|
||||
|
||||
reg:
|
||||
|
||||
@@ -62,6 +62,14 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&codec {
|
||||
allwinner,audio-routing =
|
||||
"Headphone", "HP",
|
||||
"Headphone", "HPCOM",
|
||||
"MIC", "Mic";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_otg {
|
||||
dr_mode = "otg";
|
||||
status = "okay";
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <dt-bindings/clock/suniv-ccu-f1c100s.h>
|
||||
#include <dt-bindings/reset/suniv-ccu-f1c100s.h>
|
||||
#include <dt-bindings/dma/sun4i-a10.h>
|
||||
|
||||
/ {
|
||||
#address-cells = <1>;
|
||||
@@ -159,6 +160,15 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
dma: dma-controller@1c02000 {
|
||||
compatible = "allwinner,suniv-f1c100s-dma";
|
||||
reg = <0x01c02000 0x1000>;
|
||||
interrupts = <18>;
|
||||
clocks = <&ccu CLK_BUS_DMA>;
|
||||
resets = <&ccu RST_BUS_DMA>;
|
||||
#dma-cells = <2>;
|
||||
};
|
||||
|
||||
ccu: clock@1c20000 {
|
||||
compatible = "allwinner,suniv-f1c100s-ccu";
|
||||
reg = <0x01c20000 0x400>;
|
||||
@@ -326,5 +336,19 @@
|
||||
resets = <&ccu RST_BUS_UART2>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
codec: codec@1c23c00 {
|
||||
#sound-dai-cells = <0>;
|
||||
compatible = "allwinner,suniv-f1c100s-codec";
|
||||
reg = <0x01c23c00 0x400>;
|
||||
interrupts = <21>;
|
||||
clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_CODEC>;
|
||||
clock-names = "apb", "codec";
|
||||
dmas = <&dma SUN4I_DMA_NORMAL 12>,
|
||||
<&dma SUN4I_DMA_NORMAL 12>;
|
||||
dma-names = "rx", "tx";
|
||||
resets = <&ccu RST_BUS_CODEC>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -101,6 +101,39 @@
|
||||
#size-cells = <1>;
|
||||
ranges = <0 0 0 0x3fffffff>;
|
||||
|
||||
syscon: syscon@3000000 {
|
||||
compatible = "allwinner,sun50i-a100-system-control",
|
||||
"allwinner,sun50i-a64-system-control";
|
||||
reg = <0x03000000 0x1000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
ranges;
|
||||
|
||||
sram_a1: sram@20000 {
|
||||
compatible = "mmio-sram";
|
||||
reg = <0x00020000 0x4000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
ranges = <0 0x00020000 0x4000>;
|
||||
};
|
||||
|
||||
sram_c: sram@24000 {
|
||||
compatible = "mmio-sram";
|
||||
reg = <0x024000 0x21000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
ranges = <0 0x024000 0x21000>;
|
||||
};
|
||||
|
||||
sram_a2: sram@100000 {
|
||||
compatible = "mmio-sram";
|
||||
reg = <0x0100000 0x14000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
ranges = <0 0x0100000 0x14000>;
|
||||
};
|
||||
};
|
||||
|
||||
ccu: clock@3001000 {
|
||||
compatible = "allwinner,sun50i-a100-ccu";
|
||||
reg = <0x03001000 0x1000>;
|
||||
|
||||
@@ -390,6 +390,8 @@
|
||||
&tcon0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&lcd_rgb666_pins>;
|
||||
assigned-clocks = <&ccu CLK_TCON0>;
|
||||
assigned-clock-parents = <&ccu CLK_PLL_VIDEO0_2X>;
|
||||
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -369,6 +369,8 @@
|
||||
&tcon0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&lcd_rgb666_pins>;
|
||||
assigned-clocks = <&ccu CLK_TCON0>;
|
||||
assigned-clock-parents = <&ccu CLK_PLL_VIDEO0_2X>;
|
||||
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -445,6 +445,8 @@
|
||||
clock-names = "ahb", "tcon-ch0";
|
||||
clock-output-names = "tcon-data-clock";
|
||||
#clock-cells = <0>;
|
||||
assigned-clocks = <&ccu CLK_TCON0>;
|
||||
assigned-clock-parents = <&ccu CLK_PLL_MIPI>;
|
||||
resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>;
|
||||
reset-names = "lcd", "lvds";
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "sun50i-h616.dtsi"
|
||||
#include "sun50i-h616-cpu-opp.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
|
||||
@@ -44,7 +44,9 @@
|
||||
#define _DT_BINDINGS_CLK_SUN50I_A64_H_
|
||||
|
||||
#define CLK_PLL_VIDEO0 7
|
||||
#define CLK_PLL_VIDEO0_2X 8
|
||||
#define CLK_PLL_PERIPH0 11
|
||||
#define CLK_PLL_MIPI 17
|
||||
|
||||
#define CLK_CPUX 21
|
||||
#define CLK_BUS_MIPI_DSI 28
|
||||
|
||||
Reference in New Issue
Block a user