diff --git a/configs/cubie_a5e/linux-6.6/board.dts b/configs/cubie_a5e/linux-6.6/board.dts new file mode 100644 index 0000000..de0842e --- /dev/null +++ b/configs/cubie_a5e/linux-6.6/board.dts @@ -0,0 +1,1859 @@ +/* + * Allwinner Technology CO., Ltd. + */ + +/dts-v1/; + +#include "sun55iw3p1.dtsi" +#define USE_PCIE 1 + +/{ + board = "A527", "A527-CUBIE-A5-AXP717C"; + compatible = "radxa,a527", "radxa,cubie-a5e", "arm,sun55iw3p1"; + aliases { + pmu0 = &pmu0; + axp1530 = &axp1530; + serial0 = &uart0; + lcd0 = &lcd0; + hdmi = &hdmi; + // reg-tcs0 = ®_tcs0; + // reg-sy0 = ®_sy0; + reg-axp1530 = ®_ext_axp1530_dcdc1; + // tcs0 = &tcs0; + // sy0 = &sy0; + cpu-ext = &cpu4; + standby-param = &standby_param; + arisc-config = &arisc_config; + }; + + reg_usb1_vbus: usb1-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb1-vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-enable-ramp-delay = <1000>; + gpio = <&r_pio PL 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + wifi_power_en: wifi_power_en { + compatible = "regulator-fixed"; + regulator-name = "wifi_power_en"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <1000>; + gpio = <&r_pio PM 2 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + regulator-boot-on; + }; + + wifi_chip_en: wifi_chip_en { + compatible = "regulator-fixed"; + regulator-name = "wifi_chip_en"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <1000>; + gpio = <&r_pio PM 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + regulator-boot-on; + }; + + reg_pcie_3v3: pcie-3v3 { + compatible = "regulator-fixed"; + regulator-name = "pcie-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + gpio = <&r_pio PL 11 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + tmp_pcie_1v8: pcie-1v8 { + compatible = "regulator-fixed"; + regulator-name = "pcie-1v8"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + }; + + gma340_oe: gma340-oe { + compatible = "regulator-fixed"; + regulator-name = "gma340-oe"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + //regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + gpio = <&pio PB 7 GPIO_ACTIVE_LOW>; + }; + +#ifdef USE_PCIE + gma340_pcie: gma340-pcie { + compatible = "regulator-fixed"; + regulator-name = "gma340-pcie"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + //regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + gpio = <&pio PB 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +#else + gma340_usb3: gma340-usb3 { + compatible = "regulator-fixed"; + regulator-name = "gma340-usb3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + //regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + gpio = <&pio PB 6 GPIO_ACTIVE_LOW>; + }; +#endif + reg_vcc_tp: reg-vcc-tp { + compatible = "regulator-fixed"; + regulator-name = "reg-vcc-tp"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + gpio = <&pio PJ 19 GPIO_ACTIVE_LOW>; + }; + + reg_vcc_3v3: vcc-3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + // regulator-enable-ramp-delay = <1000>; + gpio = <&r_pio PL 7 GPIO_ACTIVE_HIGH>; + regulator-always-on; + regulator-boot-on; + enable-active-high; + }; + + standby_param: standby_param { + vdd-cpu = <0x00000001>; + vdd-cpub = <0x00000001>; + vdd-ndr = <0x00000004>; + vdd-sys = <0x00000002>; + vcc-pll = <0x00000080>; + vcc-io = <0x00004000>; + + osc24m-on = <0x0>; + }; + + arisc_config: arisc_config { + s_uart_config{ + pins = "PL2", "PL3"; + function = <2>, <2>; + status = "disabled"; + }; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + label = "radxa:blue:user"; + gpios = <&r_pio PL 5 GPIO_ACTIVE_LOW>; + linux,default-trigger = "heartbeat"; + }; + + led-1 { + label = "radxa:green:power"; + gpios = <&r_pio PL 4 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-on"; + }; + + }; + +}; + +&de { + chn_cfg_mode = <3>; + status = "okay"; +}; + +&vo0 { + status = "okay"; +}; + +&vo1 { + status = "okay"; +}; + +&tv0 { + status = "okay"; +}; + +&sunxi_drm { + route { + disp0_dsi1:disp0_dsi1 { + status = "disabled"; + }; + + disp0_hdmi:disp0_hdmi { + status = "okay"; + }; + }; +}; + +&dsi1 { + status = "disabled"; + ports { + dsi1_out: port@1{ + dsi1_out_panel: endpoint { + remote-endpoint = <&panel_input>; + }; + }; + }; + + panel: panel@0 { + compatible = "allwinner,virtual-panel"; + status = "okay"; + reg = <0>; + ports { + panel_in: port@0 { + reg = <0>; + panel_input: endpoint@0 { + reg = <0>; + remote-endpoint = <&dsi1_out_panel>; + }; + }; + }; + }; +}; + +&hdmi { + hdmi_used = <1>; + cldo1-supply = <®_cldo1>; + hdmi_power0 = "cldo1"; + hdmi_power_cnt = <1>; + hdmi_hdcp_enable = <1>; + hdmi_hdcp22_enable = <0>; + hdmi_cts_compatibility = <0>; + hdmi_cec_enable = <1>; + hdmi_cec_support = <1>; + hdmi_cec_super_standby = <1>; + hdmi_skip_bootedid = <1>; + + ddc_en_io_ctrl = <0>; + power_io_ctrl = <0>; + + inno_phy = < + 25000 165000 0x01000102 0x1c1c1c1c 0x00000000 0x00000000 + 165000 340000 0x01040506 0x1c1c1c1c 0x00000000 0x03030300 + 340000 600000 0x010f0f0f 0x1c1c1c1c 0x00000000 0x00000000>; + + status = "okay"; +}; + +&r_pio { + gpio-line-names = + /* PL */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "PIN_15", "PIN_22", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + /* PM */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + /* PN */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", ""; + + uart8_pins_a: uart8_pins@0 { + pins = "PL2", "PL3"; + function = "s_uart0"; + }; + + uart8_pins_b: uart8_pins@1 { + pins = "PL2", "PL3"; + function = "gpio_in"; + }; + + uart9_pins_a: uart9_pins@0 { + pins = "PM0", "PM1"; + function = "s_uart1"; + }; + + uart9_pins_b: uart9_pins@1 { + pins = "PM0", "PM1"; + function = "gpio_in"; + }; + + s_twi0_pins_default: s_twi0@0 { + pins = "PL0", "PL1"; + function = "s_twi0"; + drive-strength = <10>; + bias-pull-up; + }; + + s_twi0_pins_sleep: s_twi0@1 { + pins = "PL0", "PL1"; + function = "gpio_in"; + }; + + s_irrx_pins_default: s_irrx@0 { + pins = "PL11"; + function = "s_cir"; + }; + + s_irrx_pins_sleep: s_irrx@1 { + pins = "PL11"; + function = "gpio_in"; + }; +}; + +&pio { + vcc-pg-supply = <®_pio1_8>; + vcc-pc-supply = <®_pio1_8>; + vcc-pf-supply = <®_pio1_8>; + vcc-pfo-supply = <®_pio3_3>; + + gpio-line-names = + /* PA */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + /* PB */ + "", "", "", "", + "PIN_5", "PIN_3", "", "", + "", "PIN_8", "PIN_10", "PIN_24", + "PIN_23", "PIN_19", "PIN_21", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "63", + /* PC */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "95", + /* PD */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "127", + /* PE */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "159", + /* PF */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "191", + /* PG */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "223", + /* PH */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "255", + /* PI */ + "PIN_26", "PIN_32", "PIN_12", "PIN_36", + "PIN_40", "PIN_38", "PIN_33", "PIN_7", + "PIN_29", "PIN_11", "PIN_13", "PIN_16", + "PIN_31", "PIN_35", "PIN_18", "PIN_28", + "PIN_27", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "287", + /* PJ */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "319", + /* PK */ + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "", + "", "", "", "351"; + uart0_pins_a: uart0_pins@0 { + pins = "", ""; + function = "uart0"; + }; + + uart0_pins_b: uart0_pins@1 { + pins = "", ""; + function = "gpio_in"; + }; + + uart1_pins_a: uart1_pins@0 { + pins = "PG6", "PG7", "PG8", "PG9"; + function = "uart1"; + }; + + uart1_pins_b: uart1_pins@1 { + pins = "PG6", "PG7", "PG8", "PG9"; + function = "gpio_in"; + }; + + uart2_pins_a: uart2_pins@0 { + pins = "PB0", "PB1"; + function = "uart2"; + }; + + uart2_pins_b: uart2_pins@1 { + pins = "PB0", "PB1"; + function = "gpio_in"; + }; + + uart3_pins_a: uart3_pins@0 { + pins = "PD14", "PD15"; + function = "uart3"; + }; + + uart3_pins_b: uart3_pins@1 { + pins = "PD14", "PD15"; + function = "gpio_in"; + }; + + uart4_pins_a: uart4_pins@0 { + pins = "PD18", "PD19"; + function = "uart4"; + }; + + uart4_pins_b: uart4_pins@1 { + pins = "PD18", "PD19"; + function = "gpio_in"; + }; + + uart5_pins_a: uart5_pins@0 { + pins = "PE11", "PE12"; + function = "uart5"; + }; + + uart5_pins_b: uart5_pins@1 { + pins = "PE11", "PE12"; + function = "gpio_in"; + }; + + uart6_pins_a: uart6_pins@0 { + pins = "PK18", "PK19"; + function = "uart6"; + }; + + uart6_pins_b: uart6_pins@1 { + pins = "PK18", "PK19"; + function = "gpio_in"; + }; + + uart7_pins_a: uart7_pins@0 { + pins = "PB11", "PB12"; + function = "uart7"; + }; + + uart7_pins_b: uart7_pins@1 { + pins = "PB11", "PB12"; + function = "gpio_in"; + }; + + pwm0_1_pin_active: pwm0_1@0 { + pins = "PD22"; + function = "pwm0_1"; + drive-strength = <10>; + }; + + pwm0_1_pin_sleep: pwm0_1@1 { + pins = "PD22"; + function = "gpio_in"; + }; + + ledc_pins_a: ledc@0 { + pins = "PL5"; + function = "ledc"; + drive-strength = <10>; + }; + + ledc_pins_b: ledc@1 { + pins = "PL5"; + function = "gpio_in"; + }; + + irrx_pins_default: irrx@0 { + pins = "PH19"; + function = "cir"; + }; + + irrx_pins_sleep: irrx@1 { + pins = "PH19"; + function = "gpio_in"; + }; + + irtx_pins_default: irtx@0 { + pins = "PH18"; + function = "cir"; + }; + + irtx_pins_sleep: irtx@1 { + pins = "PH18"; + function = "gpio_in"; + }; + + twi0_pins_default: twi0@0 { + pins = "PH0", "PH1"; + function = "twi0"; + drive-strength = <10>; + bias-pull-up; + }; + + twi0_pins_sleep: twi0@1 { + pins = "PH0", "PH1"; + function = "gpio_in"; + }; + + twi1_pins_default: twi1@0 { + pins = "PH2", "PH3"; + function = "twi1"; + drive-strength = <10>; + bias-pull-up; + }; + + twi1_pins_sleep: twi1@1 { + pins = "PH2", "PH3"; + function = "gpio_in"; + }; + + i2s1_pins_a: i2s1@0 { + pins = "PG10", "PG11", "PG12"; + function = "i2s1"; + drive-strength = <20>; + bias-disable; + }; + + i2s1_pins_b: i2s1@1 { + pins = "PG10", "PG11", "PG12", "PG13", "PG14"; + function = "io_disabled"; + drive-strength = <20>; + bias-disable; + }; + + i2s1_pins_c: i2s1@2 { + pins = "PG13"; + function = "i2s1_dout"; + drive-strength = <20>; + bias-disable; + }; + + i2s1_pins_d: i2s1@3 { + pins = "PG14"; + function = "i2s1_din"; + drive-strength = <20>; + bias-disable; + }; + + owa_pins_a: owa@0 { + pins = "PH7"; + function = "owa"; + drive-strength = <20>; + bias-disable; + }; + + owa_pins_b: owa@1 { + pins = "PH7"; + function = "io_disabled"; + drive-strength = <20>; + bias-disable; + }; + + spi0_pins_default: spi0@0 { + pins = "PC2","PC4", "PC12"; + function = "spi0"; + drive-strength = <10>; + }; + + spi0_pins_cs: spi0@1 { + pins = "PC3"; + function = "spi0"; + drive-strength = <10>; + bias-pull-up; /* cs, hold, wp should be pulled up */ + }; + + spi0_pins_sleep: spi0@2 { + pins = "PC2","PC3","PC4", "PC12"; + function = "gpio_in"; + drive-strength = <10>; + }; + + + + i2s0_pins_a: i2s0@0 { + pins = "PB4", "PB5", "PB6"; + function = "i2s0"; + drive-strength = <20>; + bias-disable; + }; + + i2s0_pins_b: i2s0@1 { + pins = "PB4", "PB5", "PB6", "PB7", "PB8"; + function = "io_disabled"; + drive-strength = <20>; + bias-disable; + }; + + i2s0_pins_c: i2s0@2 { + pins = "PB7"; + function = "i2s0_dout"; + drive-strength = <20>; + bias-disable; + }; + + i2s0_pins_d: i2s0@3 { + pins = "PB8"; + function = "i2s0_din"; + drive-strength = <20>; + bias-disable; + }; + + gmac0_pins_default: gmac0@0 { + pins = "PH0", "PH1", "PH2", "PH3", + "PH4", "PH5", "PH6", "PH7", + "PH9", "PH10","PH13","PH14", + "PH15","PH16","PH17","PH18"; + drive-strength = <40>; + function = "gmac0"; + bias-pull-up; + }; + + gmac0_pins_sleep: gmac0@1 { + pins = "PH0", "PH1", "PH2", "PH3", + "PH4", "PH5", "PH6", "PH7", + "PH9", "PH10","PH13","PH14", + "PH15","PH16","PH17","PH18"; + function = "gpio_in"; + }; + + gmac1_pins_default: gmac1@0 { + pins = "PJ0", "PJ1", "PJ2", "PJ3", + "PJ4", "PJ5", "PJ6", "PJ7", + "PJ8", "PJ9", "PJ10", "PJ11", + "PJ12","PJ13", "PJ14", "PJ15"; + drive-strength = <40>; + function = "gmac1"; + bias-pull-up; + }; + + gmac1_pins_sleep: gmac1@1 { + pins = "PJ0", "PJ1", "PJ2", "PJ3", + "PJ4", "PJ5", "PJ6", "PJ7", + "PJ8", "PJ9", "PJ10", "PJ11", + "PJ12","PJ13", "PJ14", "PJ15"; + function = "gpio_in"; + }; +}; + +&soc { + auto_print@54321 { + reg = <0x0 0x54321 0x0 0x0>; + device_type = "auto_print"; + status = "okay"; + }; + + hall_para { + hall_name = "MH248"; + status = "okay"; + hall_int_port = <&r_pio PL 9 GPIO_ACTIVE_LOW>; + }; + +}; + +&uart0 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart0_pins_a>; + pinctrl-1 = <&uart0_pins_b>; + uart-supply = <®_cldo3>; + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart1_pins_a>; + pinctrl-1 = <&uart1_pins_b>; + status = "okay"; +}; + +&uart2 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart2_pins_a>; + pinctrl-1 = <&uart2_pins_b>; + status = "disabled"; +}; + +&uart3 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart3_pins_a>; + pinctrl-1 = <&uart3_pins_b>; + status = "disabled"; +}; + +&uart4 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart4_pins_a>; + pinctrl-1 = <&uart4_pins_b>; + status = "disabled"; +}; + +&uart5 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart5_pins_a>; + pinctrl-1 = <&uart5_pins_b>; + status = "disabled"; +}; + +&uart6 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart6_pins_a>; + pinctrl-1 = <&uart6_pins_b>; + status = "disabled"; +}; + +&uart7 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart7_pins_a>; + pinctrl-1 = <&uart7_pins_b>; + status = "disabled"; +}; + +&uart8 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart8_pins_a>; + pinctrl-1 = <&uart8_pins_b>; + status = "disabled"; +}; + +&uart9 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart9_pins_a>; + pinctrl-1 = <&uart9_pins_b>; + status = "disabled"; +}; + +&lradc { + key_cnt = <2>; + key0 = <646 115>; + key1 = <900 114>; + key_debounce; + debounce_value = <150>; + status = "okay"; +}; + +&gpadc0 { + channel_num = <2>; + channel_select = <3>; + channel_data_select = <3>; + channel_compare_select = <3>; + channel_cld_select = <3>; + channel_chd_select = <3>; + channel0_compare_lowdata = <1700000>; + channel0_compare_higdata = <1200000>; + channel1_compare_lowdata = <460000>; + channel1_compare_higdata = <1200000>; + status = "disabled"; +}; + +&gpadc1 { + channel_num = <2>; + channel_select = <3>; + channel_data_select = <3>; + channel_compare_select = <3>; + channel_cld_select = <3>; + channel_chd_select = <3>; + channel0_compare_lowdata = <1700000>; + channel0_compare_higdata = <1200000>; + channel1_compare_lowdata = <460000>; + channel1_compare_higdata = <1200000>; + status = "disabled"; +}; + +&pwm0_1 { + pinctrl-names = "active", "sleep"; + pinctrl-0 = <&pwm0_1_pin_active>; + pinctrl-1 = <&pwm0_1_pin_sleep>; + status = "okay"; +}; + +&irrx { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&irrx_pins_default>; + pinctrl-1 = <&irrx_pins_sleep>; + status = "okay"; +}; + +&s_irrx { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&s_irrx_pins_default>; + pinctrl-1 = <&s_irrx_pins_sleep>; + status = "disabled"; +}; + +&irtx { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&irtx_pins_default>; + pinctrl-1 = <&irtx_pins_sleep>; + status = "disabled"; +}; + +/* axp717c + axp323 */ +&twi6 { + clock-frequency = <400000>; + pinctrl-0 = <&s_twi0_pins_default>; + pinctrl-1 = <&s_twi0_pins_sleep>; + pinctrl-names = "default", "sleep"; + device_type = "twi6"; + /* For stability and backwards compatibility, we recommend setting ‘twi_drv_used’ to 1 */ + twi_drv_used = <1>; + no_suspend = <1>; + status = "okay"; + + axp1530: axp1530@36{ + compatible = "ext,axp1530"; + status = "okay"; + reg = <0x36>; + + wakeup-source; + + regulators{ + reg_ext_axp1530_dcdc1: dcdc1 { + regulator-name = "axp1530-dcdc1"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; + regulator-always-on; + }; + + reg_ext_axp1530_dcdc2: dcdc2 { + regulator-name = "axp1530-dcdc2"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1540000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; + regulator-ramp-delay = <200>; /* FIXME */ + regulator-always-on; + }; + + reg_ext_axp1530_dcdc3: dcdc3 { + regulator-name = "axp1530-dcdc3"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1840000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; + regulator-always-on; + }; + + reg_ext_axp1530_aldo1: ldo1 { + regulator-name = "axp1530-aldo1"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; + regulator-always-on; + }; + + reg_ext_axp1530_dldo1: ldo2 { + regulator-name = "axp1530-dldo1"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-step-delay-us = <25>; + regulator-final-delay-us = <50>; + }; + }; + virtual-ext-dcdc1 { + compatible = "xpower-vregulator,ext-dcdc1"; + dcdc1-supply = <®_ext_axp1530_dcdc1>; + }; + virtual-ext-dcdc2 { + compatible = "xpower-vregulator,ext-dcdc2"; + dcdc2-supply = <®_ext_axp1530_dcdc2>; + }; + virtual-ext-dcdc3 { + compatible = "xpower-vregulator,ext-dcdc3"; + dcdc3-supply = <®_ext_axp1530_dcdc3>; + }; + virtual-ext-aldo1 { + compatible = "xpower-vregulator,ext-aldo1"; + aldo1-supply = <®_ext_axp1530_aldo1>; + }; + virtual-ext-dldo1 { + compatible = "xpower-vregulator,ext-dldo1"; + dldo1-supply = <®_ext_axp1530_dldo1>; + }; + + }; + pmu0: pmu@34 { + compatible = "x-powers,axp2202"; + reg = <0x34>; + status = "okay"; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + interrupt-parent = <&nmi_intc>; + x-powers,drive-vbus-en; + pmu_reset = <0>; + pmu_irq_wakeup = <1>; + pmu_hot_shutdown = <1>; + + wakeup-source; + + usb_power_supply: usb_power_supply { + compatible = "x-powers,axp2202-usb-power-supply"; + status = "okay"; + + pmu_usbpc_vol = <4600>; + pmu_usbpc_cur = <500>; + pmu_usbad_vol = <4000>; + pmu_usbad_cur = <2500>; + pmu_usb_typec_used = <1>; + wakeup_usb_in; + wakeup_usb_out; + + det_acin_supply = <&gpio_power_supply>; + pmu_acin_usbid_drv = <&pio PH 12 GPIO_ACTIVE_LOW>; + pmu_vbus_det_gpio = <&pio PH 13 GPIO_ACTIVE_LOW>; + }; + + gpio_power_supply: gpio_power_supply { + compatible = "x-powers,gpio-supply"; + status = "disabled"; + pmu_acin_det_gpio = <&pio PH 14 GPIO_ACTIVE_LOW>; + det_usb_supply = <&usb_power_supply>; + }; + + powerkey0: powerkey@0 { + status = "okay"; + compatible = "x-powers,axp2101-pek"; + pmu_powkey_off_time = <4000>; + pmu_powkey_off_func = <0>; + pmu_powkey_off_en = <1>; + pmu_powkey_long_time = <1500>; + pmu_powkey_on_time = <128>; + wakeup_rising; + wakeup_falling; + }; + + regulator0: regulators@0 { + reg_dcdc1: dcdc1 { + regulator-name = "axp2202-dcdc1"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1540000>; + regulator-ramp-delay = <250>; + regulator-enable-ramp-delay = <1000>; + regulator-boot-on; + regulator-always-on; + }; + reg_dcdc2: dcdc2 { + regulator-name = "axp2202-dcdc2"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3400000>; + regulator-ramp-delay = <250>; + regulator-enable-ramp-delay = <1000>; + regulator-boot-on; + regulator-always-on; + }; + reg_dcdc3: dcdc3 { + regulator-name = "axp2202-dcdc3"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1840000>; + regulator-ramp-delay = <250>; + regulator-enable-ramp-delay = <1000>; + regulator-always-on; + }; + reg_dcdc4: dcdc4 { + regulator-name = "axp2202-dcdc4"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <3700000>; + regulator-ramp-delay = <250>; + regulator-enable-ramp-delay = <1000>; + }; + reg_rtcldo: rtcldo { + /* RTC_LDO is a fixed, always-on regulator */ + regulator-name = "axp2202-rtcldo"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + reg_aldo1: aldo1 { + regulator-name = "axp2202-aldo1"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + }; + reg_aldo2: aldo2 { + regulator-name = "axp2202-aldo2"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + }; + reg_aldo3: aldo3 { + regulator-name = "axp2202-aldo3"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + }; + reg_aldo4: aldo4 { + regulator-name = "axp2202-aldo4"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + regulator-always-on; + regulator-boot-on; + }; + reg_bldo1: bldo1 { + regulator-name = "axp2202-bldo1"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + regulator-boot-on; + regulator-always-on; + }; + reg_bldo2: bldo2 { + regulator-name = "axp2202-bldo2"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + regulator-boot-on; + regulator-always-on; + }; + reg_bldo3: bldo3 { + regulator-name = "axp2202-bldo3"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + regulator-boot-on; + regulator-always-on; + }; + reg_bldo4: bldo4 { + regulator-name = "axp2202-bldo4"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + }; + reg_cldo1: cldo1 { + regulator-name = "axp2202-cldo1"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + }; + reg_cldo2: cldo2 { + regulator-name = "axp2202-cldo2"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + }; + reg_cldo3: cldo3 { + regulator-name = "axp2202-cldo3"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-ramp-delay = <2500>; + regulator-enable-ramp-delay = <1000>; + regulator-boot-on; + regulator-always-on; + }; + reg_cldo4: cldo4 { + regulator-name = "axp2202-cldo4"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <1000>; + regulator-boot-on; + regulator-always-on; + }; + reg_cpusldo: cpusldo { + /* cpus */ + regulator-name = "axp2202-cpusldo"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1400000>; + regulator-boot-on; + regulator-always-on; + }; + reg_vmid: vmid { + regulator-name = "axp2202-vmid"; + regulator-enable-ramp-delay = <1000>; + }; + reg_drivevbus: drivevbus { + regulator-name = "axp2202-drivevbus"; + regulator-enable-ramp-delay = <1000>; + drivevbusin-supply = <®_vmid>; + }; + }; + + virtual-dcdc1 { + compatible = "xpower-vregulator,dcdc1"; + dcdc1-supply = <®_dcdc1>; + }; + virtual-dcdc2 { + compatible = "xpower-vregulator,dcdc2"; + dcdc2-supply = <®_dcdc2>; + }; + virtual-dcdc3 { + compatible = "xpower-vregulator,dcdc3"; + dcdc3-supply = <®_dcdc3>; + }; + virtual-dcdc4 { + compatible = "xpower-vregulator,dcdc4"; + dcdc4-supply = <®_dcdc4>; + }; + virtual-rtcldo { + compatible = "xpower-vregulator,rtcldo"; + rtcldo-supply = <®_rtcldo>; + }; + virtual-aldo1 { + compatible = "xpower-vregulator,aldo1"; + aldo1-supply = <®_aldo1>; + }; + virtual-aldo2 { + compatible = "xpower-vregulator,aldo2"; + aldo2-supply = <®_aldo2>; + }; + virtual-aldo3 { + compatible = "xpower-vregulator,aldo3"; + aldo3-supply = <®_aldo3>; + }; + virtual-aldo4 { + compatible = "xpower-vregulator,aldo4"; + aldo4-supply = <®_aldo4>; + }; + virtual-bldo1 { + compatible = "xpower-vregulator,bldo1"; + bldo1-supply = <®_bldo1>; + }; + virtual-bldo2 { + compatible = "xpower-vregulator,bldo2"; + bldo2-supply = <®_bldo2>; + }; + virtual-bldo3 { + compatible = "xpower-vregulator,bldo3"; + bldo3-supply = <®_bldo3>; + }; + virtual-bldo4 { + compatible = "xpower-vregulator,bldo4"; + bldo4-supply = <®_bldo4>; + }; + virtual-cldo1 { + compatible = "xpower-vregulator,cldo1"; + cldo1-supply = <®_cldo1>; + }; + virtual-cldo2 { + compatible = "xpower-vregulator,cldo2"; + cldo2-supply = <®_cldo2>; + }; + virtual-cldo3 { + compatible = "xpower-vregulator,cldo3"; + cldo3-supply = <®_cldo3>; + }; + virtual-cldo4 { + compatible = "xpower-vregulator,cldo4"; + cldo4-supply = <®_cldo4>; + }; + virtual-cpusldo { + compatible = "xpower-vregulator,cpusldo"; + cpusldo-supply = <®_cpusldo>; + }; + virtual-drivevbus { + compatible = "xpower-vregulator,drivevbus"; + drivevbus-supply = <®_drivevbus>; + }; + axp_gpio0: axp_gpio@0 { + gpio-controller; + #size-cells = <0>; + #gpio-cells = <6>; + status = "okay"; + }; + }; +}; + +&spi0 { + clock-frequency = <50000000>; + pinctrl-0 = <&spi0_pins_default &spi0_pins_cs>; + pinctrl-1 = <&spi0_pins_sleep>; + pinctrl-names = "default", "sleep"; + sunxi,spi-bus-mode = ; + sunxi,spi-cs-mode = ; + spi_slave_mode = <0>; + spi0_cs_number = <1>; + spi0_cs_bitmap = <1>; + status = "okay"; + + spi_board@0 { + device_type = "spi_board0"; + compatible = "spi-nor"; + spi-max-frequency = <50000000>; + m25p,fast-read = <1>; + reg = <0x0>; + spi-rx-bus-width = <1>; + spi-tx-bus-width = <1>; + status = "okay"; + }; +}; + +&sdc0 { + bus-width = <4>; + cd-gpios = <&pio PF 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + /*non-removable;*/ + /*broken-cd;*/ + /*cd-inverted*/ + /*data3-detect;*/ + /*card-pwr-gpios = <&pio PH 14 1 1 2 0xffffffff>;*/ + cd-used-24M; + cd-set-debounce = <0x1>; + cap-sd-highspeed; + sd-uhs-sdr50; + sd-uhs-ddr50; + sd-uhs-sdr104; + no-sdio; + no-mmc; + sunxi-power-save-mode; + /*sunxi-dis-signal-vol-sw;*/ + max-frequency = <150000000>; + ctl-spec-caps = <0x428>; + sunxi-dly-208M = <0xff 1 0xff 0xff 0xff 0xff>; + vmmc-supply = <®_cldo3>; + vqmmc33sw-supply = <®_cldo3>; + vdmmc33sw-supply = <®_cldo3>; + vqmmc18sw-supply = <®_cldo1>; + vdmmc18sw-supply = <®_cldo1>; + status = "okay"; +}; + + +&sdc1 { + bus-width = <4>; + no-mmc; + no-sd; + cap-sd-highspeed; + cap-mmc-highspeed; + /*sd-uhs-sdr12*/ + sd-uhs-sdr25; + sd-uhs-sdr50; + sd-uhs-ddr50; + sd-uhs-sdr104; + /*sunxi-power-save-mode;*/ + //sunxi-dis-signal-vol-sw; + cap-sdio-irq; + keep-power-in-suspend; + ignore-pm-notify; + max-frequency = <150000000>; + ctl-spec-caps = <0x428>; + vmmc-supply = <®_bldo1>; + vqmmc-supply = <®_bldo1>; + status = "okay"; +}; + +&sdc2 { + non-removable; + bus-width = <8>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + no-sdio; + no-sd; + ctl-spec-caps = <0x328>; + cap-mmc-highspeed; + sunxi-power-save-mode; + sunxi-dis-signal-vol-sw; + mmc-bootpart-noacc; + /*cap-hsq;*/ + cqe-on; + ctl-cmdq-md = <0x2>; + max-frequency = <200000000>; + vmmc-supply = <®_cldo3>; + vqmmc-supply = <®_cldo1>; + status = "disabled"; /* no eMMC on base cubie-a5e SKU */ +}; + +&rfkill { + compatible = "allwinner,sunxi-rfkill"; + // chip_en = <&r_pio PM 5 GPIO_ACTIVE_HIGH>; + pinctrl-0; + pinctrl-names; + status = "okay"; + + /* wlan session */ + wlan { + compatible = "allwinner,sunxi-wlan"; + clocks = <&rtc_ccu CLK_OSC32K_OUT>; + clock-names = "osc32k-out"; + wlan_power = "axp2202-bldo1"; /* vcc-pl/vcc-pg/vcc-pm */ + wlan_power_vol= <1800000>; + wlan_busnum = <0x1>; + wlan_hostwake = <&r_pio PM 0 GPIO_ACTIVE_HIGH>; + wakeup-source; + }; +}; + +&addr_mgt { + compatible = "allwinner,sunxi-addr_mgt"; + type_addr_wifi = <0x0>; + type_addr_bt = <0x0>; + type_addr_eth = <0x0>; + status = "okay"; +}; + +&btlpm { + compatible = "allwinner,sunxi-btlpm"; + uart_index = <0x1>; + bt_wake = <&r_pio PM 3 GPIO_ACTIVE_HIGH>; + bt_hostwake = <&r_pio PM 4 GPIO_ACTIVE_HIGH>; + wakeup-source; + status = "okay"; +}; + +/* + *usb_port_type: usb mode. 0-device, 1-host, 2-otg. + *usb_detect_type: usb hotplug detect mode. 0-none, 1-vbus/id detect, 2-id/dpdm detect. + *usb_detect_mode: 0-thread scan, 1-id gpio interrupt, 2-pmu notify. + *usb_id_gpio: gpio for id detect. + *usb_det_vbus_gpio: gpio for id detect. gpio or "axp_ctrl"; + *usb_wakeup_suspend:0-SUPER_STANDBY, 1-USB_STANDBY. + */ +&usbc0 { + device_type = "usbc0"; + usb_port_type = <0x2>; + usb_detect_type = <0x2>; + usb_detect_mode = <0x2>; + usb_id_gpio; + usb_det_vbus_gpio = "axp_ctrl"; + det_vbus_supply = <&usb_power_supply>; + usb_regulator_io = "nocare"; + usb_wakeup_suspend = <1>; + usb_luns = <3>; + usb_serial_unique = <0>; + usb_serial_number = "20080411"; + rndis_wceis = <1>; + wakeup-source; + status = "okay"; +}; + +&udc { + det_vbus_supply = <&usb_power_supply>; + status = "okay"; +}; + +&ehci0 { + drvvbus-supply = <®_drivevbus>; + status = "okay"; +}; + +&ohci0 { + drvvbus-supply = <®_drivevbus>; + status = "okay"; +}; + +&combophy { + resets = <&ccu RST_BUS_PCIE_USB3>; +#ifdef USE_PCIE + phy_use_sel = <0>; /* 0:PCIE; 1:USB3 */ +#else + phy_use_sel = <1>; /* 0:PCIE; 1:USB3 */ +#endif + status = "okay"; +}; + +#ifdef USE_PCIE +&pcie { + reset-gpios = <&pio PH 11 GPIO_ACTIVE_HIGH>; + wake-gpios = <&pio PH 12 GPIO_ACTIVE_HIGH>; + num-lanes = <1>; + clk-freq-100M; + pcie3v3-supply = <®_pcie_3v3>; + pcie1v8-supply = <&tmp_pcie_1v8>; + status = "okay"; +}; +#else +&usbc2 { + drvvbus-supply = <®_usb1_vbus>; + wakeup-source; + usb_detect_mode = <0x0>; + aw,vbus-shared-quirk; + status = "okay"; +}; + +&xhci2 { + drvvbus-supply = <®_usb1_vbus>; + dr_mode = "host"; + status = "okay"; +}; + +&u2phy { + status = "okay"; +}; +#endif + +&usbc1 { + device_type = "usbc1"; + usb_regulator_io = "nocare"; + usb_wakeup_suspend = <1>; + wakeup-source; + status = "okay"; +}; + +&ehci1 { + drvvbus-supply = <®_usb1_vbus>; + vbusin-supply = <®_vmid>; + status = "okay"; +}; + +&ohci1 { + drvvbus-supply = <®_usb1_vbus>; + vbusin-supply = <®_vmid>; + status = "okay"; +}; + +&gpu { + compatible = "arm,mali-valhall-jm"; /* panfrost for Mali-G57 */ + clock-names = "gpu", "bus", "pll_gpu", "clk_800", "clk_600", "clk_400", "clk_300", "clk_200"; + interrupt-names = "job", "mmu", "gpu"; + gpu_idle = <1>; + dvfs_status = <1>; + mali-supply = <®_dcdc2>; +}; + +&cpu0 { + cpu-supply = <®_dcdc1>; +}; + +&cpu4 { + cpu-supply = <®_ext_axp1530_dcdc1>; +}; + +&dsufreq { + dsu-supply = <®_dcdc1>; +}; + +&ve { + ve-supply = <®_dcdc2>; +}; + +/* hdmi sound */ +&hdmi_codec { + extcon = <&hdmi>; + status = "okay"; +}; + +&i2s2_plat { + tdm-num = <2>; + tx-pin = <0 1 2 3>; +/* e.g. + * tx-pin0-map0 = <0xFEDC3210> -> tx_pin_map[0][0] (Dout0-slot[7:0] map channel[15:12, 3:0]) + * tx-pin0-map1 = <0x3210FEDC> -> tx_pin_map[0][1] (Dout0-slot[15:8] map channel[3:0, 15:12]) + * tx-pin1-map0 = <0x76543210> -> tx_pin_map[1][0] (Dout1-slot[7:0] map channel[7:0]) + */ + tx-pin0-map0 = <0x76543210>; + tx-pin0-map1 = <0xFEDCBA98>; + tx-pin1-map0 = <0x76543210>; + tx-pin1-map1 = <0xFEDCBA98>; + tx-pin2-map0 = <0x76543210>; + tx-pin2-map1 = <0xFEDCBA98>; + tx-pin3-map0 = <0x76543210>; + tx-pin3-map1 = <0xFEDCBA98>; + rx-pin = <0>; + /* pinctrl-used; */ + /* pinctrl-names= "default","sleep"; */ + /* pinctrl-0 = <&i2s2_pins_a>; */ + /* pinctrl-1 = <&i2s2_pins_b>; */ + tx-hub-en; + rx-sync-en; + dai-type = "hdmi"; + status = "okay"; +}; + +&i2s2_mach { + soundcard-mach,format = "i2s"; + soundcard-mach,frame-master = <&i2s2_cpu>; + soundcard-mach,bitclock-master = <&i2s2_cpu>; + /* soundcard-mach,frame-inversion; */ + /* soundcard-mach,bitclock-inversion; */ + soundcard-mach,slot-num = <2>; + soundcard-mach,slot-width = <32>; + soundcard-mach,playback-only; + status = "okay"; + + i2s2_cpu: soundcard-mach,cpu { + sound-dai = <&i2s2_plat>; + soundcard-mach,pll-fs = <1>; + soundcard-mach,mclk-fs = <0>; + }; + i2s2_codec: soundcard-mach,codec { + sound-dai = <&hdmi_codec>; + }; +}; + +/* ethernet */ +&gmac0 { + phy-mode = "rgmii"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&gmac0_pins_default>; + pinctrl-1 = <&gmac0_pins_sleep>; + sunxi,phy-clk-type = <0>; + tx-delay = <2>; + rx-delay = <4>; + + gmac3v3-supply = <®_cldo3>; + status = "okay"; +}; + +&mdio0 { + compatible = "allwinner,sunxi-mdio"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x04500048 0x0 0x8>; + status = "okay"; + gmac0_phy0: ethernet-phy@1 { + /* RTL8211F (0x001cc916) */ + reg = <1>; + max-speed = <1000>; /* Max speed capability */ + reset-gpios = <&pio PH 8 GPIO_ACTIVE_LOW>; + /* PHY datasheet rst time */ + reset-assert-us = <50000>; + reset-deassert-us = <200000>; + }; +}; + +&gmac1 { + phy-mode = "rgmii"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&gmac1_pins_default>; + pinctrl-1 = <&gmac1_pins_sleep>; + aw,soc-phy25m; + tx-delay = <3>; + rx-delay = <4>; + dwmac3v3-supply = <®_cldo3>; + status = "okay"; +}; + +&mdio1 { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + gmac1_phy0: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0x1>; + max-speed = <1000>; /* Max speed capability */ + reset-gpios = <&pio PJ 16 GPIO_ACTIVE_LOW>; + /* PHY datasheet rst time */ + reset-assert-us = <50000>; + reset-deassert-us = <200000>; + }; +}; + +&rtc { + status = "disabled"; +}; + +&vind0 { + status = "disabled"; +}; + +&csi0 { + status = "disabled"; +}; + +&csi1 { + status = "disabled"; +}; + +&csi2 { + status = "disabled"; +}; + +&csi3 { + status = "disabled"; +}; + +&mipi0 { + status = "disabled"; +}; + +&mipi1 { + status = "disabled"; +}; + +&mipi2 { + status = "disabled"; +}; + +&mipi3 { + status = "disabled"; +}; + +&tdm0 { + status = "disabled"; +}; + +&isp00 { + status = "disabled"; +}; + +&isp01 { + status = "disabled"; +}; + +&isp02 { + status = "disabled"; +}; + +&isp03 { + status = "disabled"; +}; + +&isp10 { + status = "disabled"; +}; + +&isp20 { + status = "disabled"; +}; + +&isp30 { + status = "disabled"; +}; + +&scaler00 { + status = "disabled"; +}; + +&scaler01 { + status = "disabled"; +}; + +&scaler02 { + status = "disabled"; +}; + +&scaler03 { + status = "disabled"; +}; + +&scaler10 { + status = "disabled"; +}; + +&scaler11 { + status = "disabled"; +}; + +&scaler12 { + status = "disabled"; +}; + +&scaler13 { + status = "disabled"; +}; + +&scaler20 { + status = "disabled"; +}; + +&scaler21 { + status = "disabled"; +}; + +&scaler22 { + status = "disabled"; +}; + +&scaler23 { + status = "disabled"; +}; + +&scaler30 { + status = "disabled"; +}; + +&scaler31 { + status = "disabled"; +}; + +&scaler32 { + status = "disabled"; +}; + +&scaler33 { + status = "disabled"; +}; + +&scaler40 { + status = "disabled"; +}; + +&scaler50 { + status = "disabled"; +}; + +&actuator0 { + status = "disabled"; +}; + +&flash0 { + status = "disabled"; +}; + +&sensor0 { + status = "disabled"; +}; + +&sensor1 { + status = "disabled"; +}; + +&sensor2 { + status = "disabled"; +}; + +&sensor3 { + status = "disabled"; +}; + +&sensor_list0 { + status = "disabled"; +}; + +&sensor_list1 { + status = "disabled"; +}; + +&vinc00 { + status = "okay"; +}; + +&vinc01 { + status = "disabled"; +}; + +&vinc02 { + status = "disabled"; +}; + +&vinc03 { + status = "disabled"; +}; + +&vinc10 { + status = "disabled"; +}; + +&vinc11 { + status = "disabled"; +}; + +&vinc12 { + status = "disabled"; +}; + +&vinc13 { + status = "disabled"; +}; + +&vinc20 { + status = "disabled"; +}; + +&vinc21 { + status = "disabled"; +}; + +&vinc22 { + status = "disabled"; +}; + +&vinc23 { + status = "disabled"; +}; + +&vinc30 { + status = "disabled"; +}; + +&vinc31 { + status = "disabled"; +}; + +&vinc32 { + status = "disabled"; +}; + +&vinc33 { + status = "disabled"; +}; + +&vinc40 { + status = "disabled"; +}; + +&vinc50 { + status = "disabled"; +}; + +&twi0 { + status = "disabled"; /* unused on cubie-a5e */ +}; diff --git a/configs/default/linux-6.6/bsp_defconfig b/configs/default/linux-6.6/bsp_defconfig index 9c6f29e..58f30d8 100644 --- a/configs/default/linux-6.6/bsp_defconfig +++ b/configs/default/linux-6.6/bsp_defconfig @@ -80,6 +80,7 @@ CONFIG_SND_SOC_AC107=m CONFIG_SND_SOC_SUNXI_AAUDIO=m CONFIG_SND_SOC_SUNXI_DMIC=m CONFIG_SND_SOC_SUNXI_I2S=m +CONFIG_SND_SOC_SUNXI_CODEC_HDMI=m CONFIG_SND_SOC_SUNXI_COMPONENTS=m CONFIG_SND_SOC_SUNXI_PULSEAUDIO=y CONFIG_AW_SYS_INFO=y @@ -446,3 +447,8 @@ CONFIG_DEBUG_FS=y CONFIG_PANIC_ON_OOPS=y # CONFIG_SCHED_DEBUG is not set # CONFIG_FTRACE is not set +CONFIG_AW_GMAC=y +CONFIG_AW_GMAC_METADATA=y +CONFIG_AW_STMMAC_ETH=y +CONFIG_AW_STMMAC_SELFTESTS=y +CONFIG_AW_STMMAC_UIO=y