| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (C) 2019 Icenowy Zheng <[email protected]> |
| 4 |
* Copyright (C) 2021 Tobias Schramm <[email protected]> |
| 5 |
*/ |
| 6 |
|
| 7 |
#include "sun8i-v3s.dtsi" |
| 8 |
|
| 9 |
/ { |
| 10 |
soc { |
| 11 |
i2s0: i2s@1c22000 { |
| 12 |
#sound-dai-cells = <0>; |
| 13 |
compatible = "allwinner,sun8i-v3-i2s", |
| 14 |
"allwinner,sun8i-h3-i2s"; |
| 15 |
reg = <0x01c22000 0x400>; |
| 16 |
interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
| 17 |
clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>; |
| 18 |
clock-names = "apb", "mod"; |
| 19 |
dmas = <&dma 3>, <&dma 3>; |
| 20 |
dma-names = "rx", "tx"; |
| 21 |
pinctrl-names = "default"; |
| 22 |
pinctrl-0 = <&i2s0_pins>; |
| 23 |
resets = <&ccu RST_BUS_I2S0>; |
| 24 |
status = "disabled"; |
| 25 |
}; |
| 26 |
}; |
| 27 |
}; |
| 28 |
|
| 29 |
&ccu { |
| 30 |
compatible = "allwinner,sun8i-v3-ccu"; |
| 31 |
}; |
| 32 |
|
| 33 |
&codec_analog { |
| 34 |
compatible = "allwinner,sun8i-v3-codec-analog", |
| 35 |
"allwinner,sun8i-h3-codec-analog"; |
| 36 |
}; |
| 37 |
|
| 38 |
&emac { |
| 39 |
/delete-property/ phy-handle; |
| 40 |
/delete-property/ phy-mode; |
| 41 |
}; |
| 42 |
|
| 43 |
&mdio_mux { |
| 44 |
external_mdio: mdio@2 { |
| 45 |
reg = <2>; |
| 46 |
#address-cells = <1>; |
| 47 |
#size-cells = <0>; |
| 48 |
}; |
| 49 |
}; |
| 50 |
|
| 51 |
&pio { |
| 52 |
compatible = "allwinner,sun8i-v3-pinctrl"; |
| 53 |
|
| 54 |
i2s0_pins: i2s0-pins { |
| 55 |
pins = "PG10", "PG11", "PG12", "PG13"; |
| 56 |
function = "i2s"; |
| 57 |
}; |
| 58 |
|
| 59 |
/omit-if-no-ref/ |
| 60 |
lcd_rgb666_pd_pins: lcd-rgb666-pd-pins { |
| 61 |
pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", |
| 62 |
"PD6", "PD7", "PD8", "PD9", "PD10", "PD11", |
| 63 |
"PD12", "PD13", "PD14", "PD15", "PD16", "PD17", |
| 64 |
"PD18", "PD19", "PD20", "PD21"; |
| 65 |
function = "lcd"; |
| 66 |
}; |
| 67 |
|
| 68 |
uart1_pg_pins: uart1-pg-pins { |
| 69 |
pins = "PG6", "PG7"; |
| 70 |
function = "uart1"; |
| 71 |
}; |
| 72 |
}; |