--- linux-6.3.5.orig/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts 2023-05-30 14:17:29.000000000 +0100 +++ linux-6.3.5/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts 2023-08-13 23:27:22.405058025 +0100 @@ -56,7 +56,7 @@ aliases { serial0 = &uart0; - serial1 = &uart6; + serial1 = &uart2; serial2 = &uart7; spi0 = &spi1; spi1 = &spi2; @@ -66,17 +66,6 @@ stdout-path = "serial0:115200n8"; }; - hdmi-connector { - compatible = "hdmi-connector"; - type = "a"; - - port { - hdmi_con_in: endpoint { - remote-endpoint = <&hdmi_out_con>; - }; - }; - }; - leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -90,16 +79,55 @@ }; }; -&ahci { - target-supply = <®_ahci_5v>; +&nfc { + pinctrl-names = "default"; + pinctrl-0 = <&nand_pins_a>, <&nand_cs0_pins_a>, <&nand_rb0_pins_a>; status = "okay"; + + nand@0 { + #address-cells = <2>; + #size-cells = <2>; + reg = <0>; + allwinner,rb = <0>; + + nand-ecc-mode = "hw"; + nand-on-flash-bbt; + }; + + boot0@0 { + label = "boot0"; + reg = /bits/ 64 <0x0 0x200000>; + }; + + boot0-rescue@200000 { + label = "boot0-rescue"; + reg = /bits/ 64 <0x200000 0x200000>; + }; + + uboot@400000 { + label = "uboot"; + reg = /bits/ 64 <0x400000 0x200000>; + }; + + uboot-rescue@600000 { + label = "uboot-rescue"; + reg = /bits/ 64 <0x600000 0x200000>; + }; + + main@800000 { + label = "main"; + reg = /bits/ 64 <0x800000 0xff800000>; + }; + }; -&codec { +&ahci { + target-supply = <®_ahci_5v>; status = "okay"; }; &cpu0 { + clock-frequency = <900000000>; cpu-supply = <®_dcdc2>; }; @@ -123,34 +151,24 @@ status = "okay"; }; -&hdmi { - status = "okay"; -}; - -&hdmi_out { - hdmi_out_con: endpoint { - remote-endpoint = <&hdmi_con_in>; - }; -}; - &i2c0 { - status = "okay"; + status = "okay"; - axp209: pmic@34 { - reg = <0x34>; - interrupt-parent = <&nmi_intc>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - }; + axp209: pmic@34 { + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; }; &i2c1 { - status = "okay"; + status = "okay"; - eeprom: eeprom@50 { - compatible = "atmel,24c16"; - reg = <0x50>; - pagesize = <16>; - }; + eeprom: eeprom@50 { + compatible = "atmel,24c16"; + reg = <0x50>; + pagesize = <16>; + }; }; &i2c2 { @@ -160,55 +178,6 @@ &lradc { vref-supply = <®_vcc3v0>; status = "okay"; - - button-191 { - label = "Volume Up"; - linux,code = ; - channel = <0>; - voltage = <191274>; - }; - - button-392 { - label = "Volume Down"; - linux,code = ; - channel = <0>; - voltage = <392644>; - }; - - button-601 { - label = "Menu"; - linux,code = ; - channel = <0>; - voltage = <601151>; - }; - - button-795 { - label = "Search"; - linux,code = ; - channel = <0>; - voltage = <795090>; - }; - - button-987 { - label = "Home"; - linux,code = ; - channel = <0>; - voltage = <987387>; - }; - - button-1184 { - label = "Esc"; - linux,code = ; - channel = <0>; - voltage = <1184678>; - }; - - button-1398 { - label = "Enter"; - linux,code = ; - channel = <0>; - voltage = <1398804>; - }; }; &gmac_mdio { @@ -239,10 +208,6 @@ status = "okay"; }; -&otg_sram { - status = "okay"; -}; - &pio { gmac_txerr: gmac-txerr-pin { pins = "PA17"; @@ -323,9 +288,9 @@ status = "okay"; }; -&uart6 { +&uart2 { pinctrl-names = "default"; - pinctrl-0 = <&uart6_pi_pins>; + pinctrl-0 = <&uart2_pi_pins>; status = "okay"; }; @@ -352,3 +317,28 @@ usb2_vbus-supply = <®_usb2_vbus>; status = "okay"; }; + +&fe0 { + status = "disabled"; +}; + +&fe1 { + status = "disabled"; +}; + +&be0 { + status = "disabled"; +}; + +&be1 { + status = "disabled"; +}; + +&tcon0 { + status = "disabled"; +}; + +&tcon1 { + status = "disabled"; +}; +