Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (C) 2019 Icenowy Zheng <icenowy@aosc.io>
0004  * Copyright (C) 2021 Tobias Schramm <t.schramm@manjaro.org>
0005  */
0006 
0007 #include "sun8i-v3s.dtsi"
0008 
0009 / {
0010         soc {
0011                 i2s0: i2s@1c22000 {
0012                         #sound-dai-cells = <0>;
0013                         compatible = "allwinner,sun8i-v3-i2s",
0014                                      "allwinner,sun8i-h3-i2s";
0015                         reg = <0x01c22000 0x400>;
0016                         interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
0017                         clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
0018                         clock-names = "apb", "mod";
0019                         dmas = <&dma 3>, <&dma 3>;
0020                         dma-names = "rx", "tx";
0021                         pinctrl-names = "default";
0022                         pinctrl-0 = <&i2s0_pins>;
0023                         resets = <&ccu RST_BUS_I2S0>;
0024                         status = "disabled";
0025                 };
0026         };
0027 };
0028 
0029 &ccu {
0030         compatible = "allwinner,sun8i-v3-ccu";
0031 };
0032 
0033 &codec_analog {
0034         compatible = "allwinner,sun8i-v3-codec-analog",
0035                      "allwinner,sun8i-h3-codec-analog";
0036 };
0037 
0038 &emac {
0039         /delete-property/ phy-handle;
0040         /delete-property/ phy-mode;
0041 };
0042 
0043 &mdio_mux {
0044         external_mdio: mdio@2 {
0045                 reg = <2>;
0046                 #address-cells = <1>;
0047                 #size-cells = <0>;
0048         };
0049 };
0050 
0051 &pio {
0052         compatible = "allwinner,sun8i-v3-pinctrl";
0053 
0054         i2s0_pins: i2s0-pins {
0055                 pins = "PG10", "PG11", "PG12", "PG13";
0056                 function = "i2s";
0057         };
0058 
0059         uart1_pg_pins: uart1-pg-pins {
0060                 pins = "PG6", "PG7";
0061                 function = "uart1";
0062         };
0063 };