hc
2023-10-25 6c2073b7aa40e29d0eca7d571dd7bc590c7ecaa7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2020 Rockchip Electronics Co., Ltd.
 *
 */
 
/ {
   chosen: chosen {
       bootargs = "earlycon=uart8250,mmio32,0xfe660000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rw rootwait";
   };
 
   fiq-debugger {
       compatible = "rockchip,fiq-debugger";
       rockchip,serial-id = <2>;
       rockchip,wake-irq = <0>;
       /* If enable uart uses irq instead of fiq */
       rockchip,irq-mode-enable = <1>;
       rockchip,baudrate = <1500000>;  /* Only 115200 and 1500000 */
       interrupts = <GIC_SPI 252 IRQ_TYPE_LEVEL_LOW>;
       pinctrl-names = "default";
       pinctrl-0 = <&uart2m0_xfer>;
       status = "okay";
   };
 
   debug: debug@fd904000 {
       compatible = "rockchip,debug";
       reg = <0x0 0xfd904000 0x0 0x1000>,
           <0x0 0xfd905000 0x0 0x1000>,
           <0x0 0xfd906000 0x0 0x1000>,
           <0x0 0xfd907000 0x0 0x1000>;
   };
 
   cspmu: cspmu@fd90c000 {
       compatible = "rockchip,cspmu";
       reg = <0x0 0xfd90c000 0x0 0x1000>,
           <0x0 0xfd90d000 0x0 0x1000>,
           <0x0 0xfd90e000 0x0 0x1000>,
           <0x0 0xfd90f000 0x0 0x1000>;
   };
 
   rk809_sound: rk809-sound {
       status = "okay";
       compatible = "simple-audio-card";
       simple-audio-card,format = "i2s";
       simple-audio-card,hp-det-gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>;
       simple-audio-card,name = "rockchip,rk809-codec";
       simple-audio-card,widgets = "Headphones", "Headphones Jack";
       simple-audio-card,mclk-fs = <256>;
       simple-audio-card,cpu {
           sound-dai = <&i2s1_8ch>;
       };
       simple-audio-card,codec {
           sound-dai = <&rk809_codec>;
       };
   };
};
 
&hdmi_sound {
   status = "okay";
   rockchip,jack-det;
};
 
&reserved_memory {
   ramoops: ramoops@110000 {
       compatible = "ramoops";
       reg = <0x0 0x110000 0x0 0xf0000>;
       record-size = <0x20000>;
       console-size = <0x80000>;
       ftrace-size = <0x00000>;
       pmsg-size = <0x50000>;
   };
};
 
&rk809_codec {
   #sound-dai-cells = <0>;
   compatible = "rockchip,rk809-codec", "rockchip,rk817-codec";
   clocks = <&cru I2S1_MCLKOUT>;
   clock-names = "mclk";
   assigned-clocks = <&cru I2S1_MCLKOUT>, <&cru I2S1_MCLK_TX_IOE>;
   assigned-clock-rates = <12288000>;
   assigned-clock-parents = <&cru I2S1_MCLKOUT_TX>, <&cru I2S1_MCLKOUT_TX>;
   pinctrl-names = "default";
   pinctrl-0 = <&i2s1m0_mclk &hp_det>;
   hp-volume = <20>;
   spk-volume = <3>;
   status = "okay";
};
 
&rk_headset {
   status = "disabled";
};
 
&rng {
   status = "okay";
};
 
&rockchip_suspend {
   status = "okay";
};
 
&vop {
   disable-win-move;
};