Skip to content

Commit 36ad662

Browse files
committed
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/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 9f98a04 + 8715c91 commit 36ad662

File tree

9 files changed

+77
-1
lines changed

9 files changed

+77
-1
lines changed

Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ properties:
4747
- const: allwinner,sun8i-v3s-system-control
4848
- const: allwinner,sun8i-h3-system-control
4949
- items:
50-
- const: allwinner,sun50i-h6-system-control
50+
- enum:
51+
- allwinner,sun50i-a100-system-control
52+
- allwinner,sun50i-h6-system-control
5153
- const: allwinner,sun50i-a64-system-control
5254

5355
reg:

arch/arm/boot/dts/allwinner/suniv-f1c100s-licheepi-nano.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@
6262
status = "okay";
6363
};
6464

65+
&codec {
66+
allwinner,audio-routing =
67+
"Headphone", "HP",
68+
"Headphone", "HPCOM",
69+
"MIC", "Mic";
70+
status = "okay";
71+
};
72+
6573
&usb_otg {
6674
dr_mode = "otg";
6775
status = "okay";

arch/arm/boot/dts/allwinner/suniv-f1c100s.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <dt-bindings/clock/suniv-ccu-f1c100s.h>
88
#include <dt-bindings/reset/suniv-ccu-f1c100s.h>
9+
#include <dt-bindings/dma/sun4i-a10.h>
910

1011
/ {
1112
#address-cells = <1>;
@@ -159,6 +160,15 @@
159160
status = "disabled";
160161
};
161162

163+
dma: dma-controller@1c02000 {
164+
compatible = "allwinner,suniv-f1c100s-dma";
165+
reg = <0x01c02000 0x1000>;
166+
interrupts = <18>;
167+
clocks = <&ccu CLK_BUS_DMA>;
168+
resets = <&ccu RST_BUS_DMA>;
169+
#dma-cells = <2>;
170+
};
171+
162172
ccu: clock@1c20000 {
163173
compatible = "allwinner,suniv-f1c100s-ccu";
164174
reg = <0x01c20000 0x400>;
@@ -326,5 +336,19 @@
326336
resets = <&ccu RST_BUS_UART2>;
327337
status = "disabled";
328338
};
339+
340+
codec: codec@1c23c00 {
341+
#sound-dai-cells = <0>;
342+
compatible = "allwinner,suniv-f1c100s-codec";
343+
reg = <0x01c23c00 0x400>;
344+
interrupts = <21>;
345+
clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_CODEC>;
346+
clock-names = "apb", "codec";
347+
dmas = <&dma SUN4I_DMA_NORMAL 12>,
348+
<&dma SUN4I_DMA_NORMAL 12>;
349+
dma-names = "rx", "tx";
350+
resets = <&ccu RST_BUS_CODEC>;
351+
status = "disabled";
352+
};
329353
};
330354
};

arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,39 @@
101101
#size-cells = <1>;
102102
ranges = <0 0 0 0x3fffffff>;
103103

104+
syscon: syscon@3000000 {
105+
compatible = "allwinner,sun50i-a100-system-control",
106+
"allwinner,sun50i-a64-system-control";
107+
reg = <0x03000000 0x1000>;
108+
#address-cells = <1>;
109+
#size-cells = <1>;
110+
ranges;
111+
112+
sram_a1: sram@20000 {
113+
compatible = "mmio-sram";
114+
reg = <0x00020000 0x4000>;
115+
#address-cells = <1>;
116+
#size-cells = <1>;
117+
ranges = <0 0x00020000 0x4000>;
118+
};
119+
120+
sram_c: sram@24000 {
121+
compatible = "mmio-sram";
122+
reg = <0x024000 0x21000>;
123+
#address-cells = <1>;
124+
#size-cells = <1>;
125+
ranges = <0 0x024000 0x21000>;
126+
};
127+
128+
sram_a2: sram@100000 {
129+
compatible = "mmio-sram";
130+
reg = <0x0100000 0x14000>;
131+
#address-cells = <1>;
132+
#size-cells = <1>;
133+
ranges = <0 0x0100000 0x14000>;
134+
};
135+
};
136+
104137
ccu: clock@3001000 {
105138
compatible = "allwinner,sun50i-a100-ccu";
106139
reg = <0x03001000 0x1000>;

arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@
390390
&tcon0 {
391391
pinctrl-names = "default";
392392
pinctrl-0 = <&lcd_rgb666_pins>;
393+
assigned-clocks = <&ccu CLK_TCON0>;
394+
assigned-clock-parents = <&ccu CLK_PLL_VIDEO0_2X>;
393395

394396
status = "okay";
395397
};

arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@
369369
&tcon0 {
370370
pinctrl-names = "default";
371371
pinctrl-0 = <&lcd_rgb666_pins>;
372+
assigned-clocks = <&ccu CLK_TCON0>;
373+
assigned-clock-parents = <&ccu CLK_PLL_VIDEO0_2X>;
372374

373375
status = "okay";
374376
};

arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@
445445
clock-names = "ahb", "tcon-ch0";
446446
clock-output-names = "tcon-data-clock";
447447
#clock-cells = <0>;
448+
assigned-clocks = <&ccu CLK_TCON0>;
449+
assigned-clock-parents = <&ccu CLK_PLL_MIPI>;
448450
resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>;
449451
reset-names = "lcd", "lvds";
450452

arch/arm64/boot/dts/allwinner/sun50i-h313-tanix-tx1.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/dts-v1/;
77

88
#include "sun50i-h616.dtsi"
9+
#include "sun50i-h616-cpu-opp.dtsi"
910

1011
#include <dt-bindings/gpio/gpio.h>
1112
#include <dt-bindings/interrupt-controller/arm-gic.h>

include/dt-bindings/clock/sun50i-a64-ccu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
#define _DT_BINDINGS_CLK_SUN50I_A64_H_
4545

4646
#define CLK_PLL_VIDEO0 7
47+
#define CLK_PLL_VIDEO0_2X 8
4748
#define CLK_PLL_PERIPH0 11
49+
#define CLK_PLL_MIPI 17
4850

4951
#define CLK_CPUX 21
5052
#define CLK_BUS_MIPI_DSI 28

0 commit comments

Comments
 (0)