mirror of
https://gitee.com/bianbu-linux/buildroot-ext
synced 2025-04-18 20:34:47 -04:00
Update for v1.0.3
This commit is contained in:
parent
bb42959569
commit
83eabee168
58 changed files with 2488 additions and 25 deletions
|
@ -17,7 +17,8 @@
|
|||
{
|
||||
"name": "env",
|
||||
"offset": "384K",
|
||||
"size": "64K"
|
||||
"size": "64K",
|
||||
"image": "env.bin"
|
||||
},
|
||||
{
|
||||
"name": "opensbi",
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
cp -r $BR2_EXTERNAL_Bianbu_PATH/board/spacemit/k1/plt_overlay/* $TARGET_DIR
|
||||
|
||||
if [ -f $BR2_EXTERNAL_Bianbu_PATH/../package-src/factorytest/run_weston.sh ]
|
||||
then
|
||||
cp $BR2_EXTERNAL_Bianbu_PATH/../package-src/factorytest/run_weston.sh $TARGET_DIR/root
|
||||
fi
|
||||
|
||||
DATE=$(date +%Y%m%d%H%M%S)
|
||||
echo "$DATE" | tee "${TARGET_DIR}/etc/bianbu_version"
|
||||
|
|
781
board/spacemit/k1/plt_dts/kernel/k1-x_MINI-PC.dts
Normal file
781
board/spacemit/k1/plt_dts/kernel/k1-x_MINI-PC.dts
Normal file
|
@ -0,0 +1,781 @@
|
|||
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
||||
/* Copyright (c) 2023 Spacemit, Inc */
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "spacemit/k1-x.dtsi"
|
||||
#include "spacemit/k1-x_pinctrl.dtsi"
|
||||
#include "spacemit/lcd/lcd_lt9711_dp_1920x1080.dtsi"
|
||||
#include "spacemit/k1-x-lcd.dtsi"
|
||||
#include "spacemit/k1-x-hdmi.dtsi"
|
||||
|
||||
/ {
|
||||
model = "spacemit k1-x MINI-PC board";
|
||||
modules_usrload = "8852bs";
|
||||
|
||||
cpus: cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
timebase-frequency = <24000000>;
|
||||
|
||||
cpu_0: cpu@0 {
|
||||
cpu-ai = "true";
|
||||
};
|
||||
|
||||
cpu_1: cpu@1 {
|
||||
cpu-ai = "true";
|
||||
};
|
||||
|
||||
cpu_2: cpu@2 {
|
||||
reg = <2>;
|
||||
cpu-ai = "true";
|
||||
};
|
||||
|
||||
cpu_3: cpu@3 {
|
||||
reg = <3>;
|
||||
cpu-ai = "true";
|
||||
};
|
||||
|
||||
cpu-map {
|
||||
cluster0 {
|
||||
core0 {
|
||||
cpu = <&cpu_0>;
|
||||
};
|
||||
|
||||
core1 {
|
||||
cpu = <&cpu_1>;
|
||||
};
|
||||
|
||||
core2 {
|
||||
cpu = <&cpu_2>;
|
||||
};
|
||||
|
||||
core3 {
|
||||
cpu = <&cpu_3>;
|
||||
};
|
||||
};
|
||||
|
||||
cluster1 {
|
||||
core0 {
|
||||
cpu = <&cpu_4>;
|
||||
};
|
||||
|
||||
core1 {
|
||||
cpu = <&cpu_5>;
|
||||
};
|
||||
|
||||
core2 {
|
||||
cpu = <&cpu_6>;
|
||||
};
|
||||
|
||||
core3 {
|
||||
cpu = <&cpu_7>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x0 0x00000000 0x0 0x80000000>;
|
||||
};
|
||||
|
||||
memory@100000000 {
|
||||
device_type = "memory";
|
||||
reg = <0x1 0x00000000 0x0 0x80000000>;
|
||||
};
|
||||
|
||||
reserved-memory {
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
ranges;
|
||||
|
||||
linux,cma {
|
||||
compatible = "shared-dma-pool";
|
||||
/* alloc memory from 0x40000000~0x80000000 */
|
||||
alloc-ranges = <0 0x40000000 0 0x40000000>;
|
||||
/* size of cma buffer is 384MByte */
|
||||
size = <0 0x18000000>;
|
||||
/* start address is 1Mbyte aligned */
|
||||
alignment = <0x0 0x100000>;
|
||||
linux,cma-default;
|
||||
/* besides hardware, dma for ex. buffer can be used by memory management */
|
||||
reusable;
|
||||
};
|
||||
|
||||
/* reserved 384K for dpu, including mmu table(256K) and cmdlist(128K) */
|
||||
dpu_resv: dpu_reserved@2ff40000 {
|
||||
compatible = "shared-dma-pool";
|
||||
reg = <0x0 0x2ff40000 0x0 0x000C0000>;
|
||||
no-map;
|
||||
};
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "earlycon=sbi console=ttyS0,115200n8 debug loglevel=8 swiotlb=65536 rdinit=/init";
|
||||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
|
||||
dc_12v: dc-12v {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "dc_12v";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <12000000>;
|
||||
regulator-max-microvolt = <12000000>;
|
||||
};
|
||||
|
||||
vcc4v0_baseboard: vcc4v0-baseboard {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc4v0_baseboard";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <4000000>;
|
||||
regulator-max-microvolt = <4000000>;
|
||||
vin-supply = <&dc_12v>;
|
||||
};
|
||||
|
||||
rf_pwrseq: rf-pwrseq {
|
||||
compatible = "spacemit,rf-pwrseq";
|
||||
//vdd-supply = <&ldo_7>;
|
||||
//vdd_voltage = <3300000>;
|
||||
io-supply = <&dcdc_3>;
|
||||
io_voltage = <1800000>;
|
||||
pwr-gpios = <&gpio 67 0>;
|
||||
status = "okay";
|
||||
|
||||
wlan_pwrseq: wlan-pwrseq {
|
||||
compatible = "spacemit,wlan-pwrseq";
|
||||
regon-gpios = <&gpio 116 0>;
|
||||
hostwake-gpios = <&gpio 66 0>;
|
||||
};
|
||||
|
||||
bt_pwrseq: bt-pwrseq {
|
||||
compatible = "spacemit,bt-pwrseq";
|
||||
reset-gpios = <&gpio 63 0>;
|
||||
};
|
||||
};
|
||||
|
||||
usb2hub: usb2hub {
|
||||
compatible = "spacemit,usb3-hub";
|
||||
hub-gpios = <&gpio 74 0>; /* usb2 hub en */
|
||||
vbus-gpios = <
|
||||
&gpio 91 0
|
||||
&gpio 92 0>; /* for usb2 hub output vbus */
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
vcc_pcie2_0: vcc-pcie2-0 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_pcie2_0";
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
enable-active-high;
|
||||
gpios = <&gpio 70 0>;
|
||||
};
|
||||
|
||||
vcc_pcie2_1: vcc-pcie2-1 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_pcie2_1";
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
enable-active-high;
|
||||
gpios = <&gpio 71 0>;
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
pinctrl-single,gpio-range = <
|
||||
&range GPIO_49 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_3V_DS4)
|
||||
&range GPIO_58 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_63 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_65 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_66 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_3V_DS4)
|
||||
&range PRI_TDI 2 (MUX_MODE1 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range PRI_TCK 1 (MUX_MODE1 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range PRI_TDO 1 (MUX_MODE1 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_74 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_80 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_3V_DS4)
|
||||
&range GPIO_81 3 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_90 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_91 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range DVL0 2 (MUX_MODE1 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_110 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_114 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_115 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_116 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_118 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_123 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_124 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_125 3 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
>;
|
||||
|
||||
pinctrl_rcpu: pinctrl_rcpu_grp {
|
||||
pinctrl-single,pins = <
|
||||
K1X_PADCONF(GPIO_47, MUX_MODE1, (EDGE_NONE | PULL_UP | PAD_3V_DS4)) /* r_uart0_tx */
|
||||
K1X_PADCONF(GPIO_48, MUX_MODE1, (EDGE_NONE | PULL_UP | PAD_3V_DS4)) /* r_uart0_rx */
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
&gpio{
|
||||
gpio-ranges = <
|
||||
&pinctrl 49 GPIO_49 2
|
||||
&pinctrl 58 GPIO_58 1
|
||||
&pinctrl 63 GPIO_63 5
|
||||
&pinctrl 70 PRI_TDI 4
|
||||
&pinctrl 74 GPIO_74 1
|
||||
&pinctrl 80 GPIO_80 4
|
||||
&pinctrl 90 GPIO_90 3
|
||||
&pinctrl 96 DVL0 2
|
||||
&pinctrl 110 GPIO_110 1
|
||||
&pinctrl 114 GPIO_114 3
|
||||
&pinctrl 118 GPIO_118 1
|
||||
&pinctrl 123 GPIO_123 5
|
||||
>;
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_uart0_2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&uart2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_uart2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&uart6 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_uart6_2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&uart9 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_uart9_2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm14 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_pwm14_1>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&dpu_online2_dsi {
|
||||
memory-region = <&dpu_resv>;
|
||||
spacemit-dpu-bitclk = <1000000000>;
|
||||
spacemit-dpu-escclk = <76800000>;
|
||||
dsi_1v2-supply = <&ldo_5>;
|
||||
vin-supply-names = "dsi_1v2";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dsi2 {
|
||||
status = "okay";
|
||||
|
||||
panel2: panel2@0 {
|
||||
status = "ok";
|
||||
compatible = "spacemit,mipi-panel2";
|
||||
reg = <0>;
|
||||
|
||||
gpios-reset = <81>;
|
||||
gpios-dc = <82 83>;
|
||||
id = <2>;
|
||||
delay-after-reset = <10>;
|
||||
force-attached = "lcd_lt9711_dp_1920x1080";
|
||||
};
|
||||
};
|
||||
|
||||
&lcds {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dpu_online2_hdmi {
|
||||
memory-region = <&dpu_resv>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&hdmi{
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_hdmi_0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c0>;
|
||||
spacemit,i2c-fast-mode;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c1>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c2_0>;
|
||||
spacemit,i2c-fast-mode;
|
||||
status = "okay";
|
||||
|
||||
eeprom@50{
|
||||
compatible = "atmel,24c02";
|
||||
reg = <0x50>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
power-domains = <&power K1X_PMU_DUMMY_PWR_DOMAIN>;
|
||||
status = "okay";
|
||||
|
||||
mac_address0: mac_address0@0 {
|
||||
reg = <0x0 6>;
|
||||
};
|
||||
|
||||
mac_address1: mac_address1@6 {
|
||||
reg = <0x6 6>;
|
||||
};
|
||||
};
|
||||
|
||||
es8326: es8326@19{
|
||||
compatible = "everest,es8326";
|
||||
reg = <0x19>;
|
||||
#sound-dai-cells = <0>;
|
||||
hp-detect-gpio = <&gpio 58 0>;
|
||||
mic-detect-gpio = <&gpio 114 0>;
|
||||
everest,mic1-src = [00];
|
||||
everest,mic2-src = [00];
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&i2c3 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c3_2>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c4_2>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c6 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c6_2>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c7 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c7>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c8 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c8>;
|
||||
status = "okay";
|
||||
|
||||
spm8821@41 {
|
||||
compatible = "spacemit,spm8821";
|
||||
reg = <0x41>;
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <64>;
|
||||
status = "okay";
|
||||
|
||||
vcc_sys-supply = <&vcc4v0_baseboard>;
|
||||
dcdc5-supply = <&dcdc_5>;
|
||||
|
||||
regulators {
|
||||
compatible = "pmic,regulator,spm8821";
|
||||
|
||||
/* buck */
|
||||
dcdc_1: DCDC_REG1 {
|
||||
regulator-name = "dcdc1";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3450000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
dcdc_2: DCDC_REG2 {
|
||||
regulator-name = "dcdc2";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3450000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
dcdc_3: DCDC_REG3 {
|
||||
regulator-name = "dcdc3";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
dcdc_4: DCDC_REG4 {
|
||||
regulator-name = "dcdc4";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
dcdc_5: DCDC_REG5 {
|
||||
regulator-name = "dcdc5";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3450000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
dcdc_6: DCDC_REG6 {
|
||||
regulator-name = "dcdc6";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3450000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
/* aldo */
|
||||
ldo_1: LDO_REG1 {
|
||||
regulator-name = "ldo1";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
regulator-boot-on;
|
||||
};
|
||||
|
||||
ldo_2: LDO_REG2 {
|
||||
regulator-name = "ldo2";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
};
|
||||
|
||||
ldo_3: LDO_REG3 {
|
||||
regulator-name = "ldo3";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
};
|
||||
|
||||
ldo_4: LDO_REG4 {
|
||||
regulator-name = "ldo4";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
};
|
||||
|
||||
/* dldo */
|
||||
ldo_5: LDO_REG5 {
|
||||
regulator-name = "ldo5";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
regulator-boot-on;
|
||||
};
|
||||
|
||||
ldo_6: LDO_REG6 {
|
||||
regulator-name = "ldo6";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
};
|
||||
|
||||
ldo_7: LDO_REG7 {
|
||||
regulator-name = "ldo7";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
};
|
||||
|
||||
ldo_8: LDO_REG8 {
|
||||
regulator-name = "ldo8";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
ldo_9: LDO_REG9 {
|
||||
regulator-name = "ldo9";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
};
|
||||
|
||||
ldo_10: LDO_REG10 {
|
||||
regulator-name = "ldo10";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
ldo_11: LDO_REG11 {
|
||||
regulator-name = "ldo11";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
};
|
||||
|
||||
sw_1: SWITCH_REG1 {
|
||||
regulator-name = "switch1";
|
||||
};
|
||||
};
|
||||
|
||||
pmic_pinctrl: pinctrl {
|
||||
compatible = "pmic,pinctrl,spm8821";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
spacemit,npins = <6>;
|
||||
/**
|
||||
* led_pins: led-pins {
|
||||
* pins = "PIN3";
|
||||
* function = "sleep";
|
||||
* bias-disable = <0>;
|
||||
* drive-open-drain = <0x1>;
|
||||
* };
|
||||
*/
|
||||
};
|
||||
|
||||
pwr_key: key {
|
||||
compatible = "pmic,pwrkey,spm8821";
|
||||
};
|
||||
|
||||
ext_rtc: rtc {
|
||||
compatible = "pmic,rtc,spm8821";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* eMMC */
|
||||
&sdhci2 {
|
||||
bus-width = <8>;
|
||||
non-removable;
|
||||
mmc-hs400-1_8v;
|
||||
mmc-hs400-enhanced-strobe;
|
||||
no-sd;
|
||||
no-sdio;
|
||||
spacemit,sdh-quirks = <(
|
||||
SDHCI_QUIRK_BROKEN_CARD_DETECTION |
|
||||
SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
|
||||
)>;
|
||||
spacemit,sdh-quirks2 = <(
|
||||
SDHCI_QUIRK2_PRESET_VALUE_BROKEN
|
||||
)>;
|
||||
spacemit,sdh-freq = <375000000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
ð0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_gmac0>;
|
||||
|
||||
emac,reset-gpio = <&gpio 110 0>;
|
||||
emac,reset-active-low;
|
||||
emac,reset-delays-us = <0 10000 100000>;
|
||||
|
||||
/* store forward mode */
|
||||
tx-threshold = <1518>;
|
||||
rx-threshold = <12>;
|
||||
tx-ring-num = <1024>;
|
||||
rx-ring-num = <1024>;
|
||||
dma-burst-len = <5>;
|
||||
|
||||
ref-clock-from-phy;
|
||||
|
||||
clk-tuning-enable;
|
||||
clk-tuning-by-delayline;
|
||||
tx-phase = <90>;
|
||||
rx-phase = <73>;
|
||||
|
||||
nvmem-cells = <&mac_address0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
|
||||
phy-handle = <&rgmii0>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
mdio-bus {
|
||||
#address-cells = <0x1>;
|
||||
#size-cells = <0x0>;
|
||||
rgmii0: phy@0 {
|
||||
compatible = "ethernet-phy-id001c.c916";
|
||||
device_type = "ethernet-phy";
|
||||
reg = <0x1>;
|
||||
phy-mode = "rgmii";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_gmac1>;
|
||||
|
||||
emac,reset-gpio = <&gpio 115 0>;
|
||||
emac,reset-active-low;
|
||||
emac,reset-delays-us = <0 10000 100000>;
|
||||
|
||||
/* store forward mode */
|
||||
tx-threshold = <1518>;
|
||||
rx-threshold = <12>;
|
||||
tx-ring-num = <1024>;
|
||||
rx-ring-num = <1024>;
|
||||
dma-burst-len = <5>;
|
||||
|
||||
ref-clock-from-phy;
|
||||
|
||||
clk-tuning-enable;
|
||||
clk-tuning-by-delayline;
|
||||
tx-phase = <90>;
|
||||
rx-phase = <73>;
|
||||
nvmem-cells = <&mac_address1>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
|
||||
phy-handle = <&rgmii1>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
mdio-bus {
|
||||
#address-cells = <0x1>;
|
||||
#size-cells = <0x0>;
|
||||
rgmii1: phy@1 {
|
||||
compatible = "ethernet-phy-id001c.c916";
|
||||
device_type = "ethernet-phy";
|
||||
reg = <0x1>;
|
||||
phy-mode = "rgmii";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&usbphy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ehci {
|
||||
spacemit,udc-mode = <MV_USB_MODE_HOST>;
|
||||
spacemit,reset-on-resume;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbphy1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ehci1 {
|
||||
spacemit,reset-on-resume;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb2phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&combphy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb3hub {
|
||||
hub-gpios = <
|
||||
&gpio 123 0 /* usb3 hub en */
|
||||
&gpio 124 0>; /* usb3 hub rst*/
|
||||
vbus-gpios = <&gpio 97 0>; /* gpio_97 for usb3 hub output vbus */
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbdrd3 {
|
||||
status = "okay";
|
||||
reset-on-resume;
|
||||
dwc3@c0a00000 {
|
||||
dr_mode = "host";
|
||||
phy_type = "utmi";
|
||||
snps,hsphy_interface = "utmi";
|
||||
snps,dis_enblslpm_quirk;
|
||||
snps,dis_u2_susphy_quirk;
|
||||
snps,dis_u3_susphy_quirk;
|
||||
snps,dis-del-phy-power-chg-quirk;
|
||||
snps,dis-tx-ipgap-linecheck-quirk;
|
||||
snps,parkmode-disable-ss-quirk;
|
||||
};
|
||||
};
|
||||
|
||||
&pcie1_rc {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_pcie1_3>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie2_rc {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_pcie2_4>;
|
||||
num-lanes = <1>;
|
||||
pcie2_0-supply = <&vcc_pcie2_0>;
|
||||
pcie2_1-supply = <&vcc_pcie2_1>;
|
||||
vin-supply-names = "pcie2_0", "pcie2_1";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&imggpu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&qspi {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_qspi>;
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <26500000>;
|
||||
m25p,fast-read;
|
||||
broken-flash-reset;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&cpu_0 {
|
||||
clst0-supply = <&dcdc_1>;
|
||||
vin-supply-names = "clst0";
|
||||
};
|
||||
|
||||
&clst0_core_opp_table {
|
||||
opp1600000000 {
|
||||
opp-microvolt = <1050000>;
|
||||
};
|
||||
};
|
||||
|
||||
&clst1_core_opp_table {
|
||||
opp1600000000 {
|
||||
opp-microvolt = <1050000>;
|
||||
};
|
||||
};
|
||||
|
||||
&rcpu {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_rcpu>;
|
||||
mboxes = <&mailbox 0>, <&mailbox 1>;
|
||||
mbox-names = "vq0", "vq1";
|
||||
memory-region = <&rcpu_mem_0>, <&vdev0vring0>, <&vdev0vring1>, <&vdev0buffer>, <&rsc_table>, <&rcpu_mem_snapshots>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cls0_trip2 {
|
||||
temperature = <115000>;
|
||||
};
|
||||
|
||||
&cls1_trip2 {
|
||||
temperature = <115000>;
|
||||
};
|
||||
|
||||
&i2s0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_sspa0_0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sound_hdmi {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sound_codec {
|
||||
status = "okay";
|
||||
simple-audio-card,name = "snd-es8326";
|
||||
spacemit,mclk-fs = <64>;
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&es8326>;
|
||||
};
|
||||
};
|
|
@ -143,7 +143,6 @@
|
|||
io-supply = <&dcdc_3>;
|
||||
io_voltage = <1800000>;
|
||||
pwr-gpios = <&gpio 67 0>;
|
||||
power-always-on;
|
||||
status = "okay";
|
||||
|
||||
wlan_pwrseq: wlan-pwrseq {
|
||||
|
@ -192,6 +191,7 @@
|
|||
&dpu_online2_dsi {
|
||||
memory-region = <&dpu_resv>;
|
||||
spacemit-dpu-bitclk = <1000000000>;
|
||||
spacemit-dpu-escclk = <76800000>;
|
||||
dsi_1v2-supply = <&ldo_5>;
|
||||
vin-supply-names = "dsi_1v2";
|
||||
status = "okay";
|
||||
|
@ -231,18 +231,21 @@
|
|||
&i2c0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c0>;
|
||||
spacemit,i2c-fast-mode;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c1>;
|
||||
spacemit,i2c-fast-mode;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c2_0>;
|
||||
spacemit,i2c-fast-mode;
|
||||
status = "okay";
|
||||
|
||||
eeprom@50{
|
||||
|
@ -344,6 +347,11 @@
|
|||
regulator-max-microvolt = <3450000>;
|
||||
regulator-ramp-delay = <5000>;
|
||||
regulator-always-on;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <650000>;
|
||||
};
|
||||
};
|
||||
|
||||
dcdc_2: DCDC_REG2 {
|
||||
|
@ -368,6 +376,11 @@
|
|||
regulator-max-microvolt = <3300000>;
|
||||
regulator-ramp-delay = <5000>;
|
||||
regulator-always-on;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <3300000>;
|
||||
};
|
||||
};
|
||||
|
||||
dcdc_5: DCDC_REG5 {
|
||||
|
@ -392,24 +405,45 @@
|
|||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
regulator-boot-on;
|
||||
|
||||
/* set the min voltage means will disable this vol in suspend for ldo */
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_2: LDO_REG2 {
|
||||
regulator-name = "ldo2";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_3: LDO_REG3 {
|
||||
regulator-name = "ldo3";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_4: LDO_REG4 {
|
||||
regulator-name = "ldo4";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
/* dldo */
|
||||
|
@ -418,18 +452,33 @@
|
|||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
regulator-boot-on;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_6: LDO_REG6 {
|
||||
regulator-name = "ldo6";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_7: LDO_REG7 {
|
||||
regulator-name = "ldo7";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_8: LDO_REG8 {
|
||||
|
@ -642,8 +691,9 @@
|
|||
SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
|
||||
SDHCI_QUIRK2_BROKEN_PHY_MODULE
|
||||
)>;
|
||||
spacemit,rx_dline_reg = <0x01>;
|
||||
spacemit,rx_dline_reg = <0x0>;
|
||||
spacemit,rx_tuning_limit = <50>;
|
||||
spacemit,rx_tuning_type = <0x0>;
|
||||
spacemit,sdh-freq = <204800000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -764,6 +814,7 @@
|
|||
};
|
||||
|
||||
&ehci1 {
|
||||
spacemit,reset-on-resume;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
@ -785,18 +836,17 @@
|
|||
|
||||
&usbdrd3 {
|
||||
status = "okay";
|
||||
reset-on-resume;
|
||||
dwc3@c0a00000 {
|
||||
dr_mode = "host";
|
||||
phy_type = "utmi";
|
||||
snps,hsphy_interface = "utmi";
|
||||
snps,dis_enblslpm_quirk;
|
||||
snps,dis-u1u2-quirk;
|
||||
snps,dis-u2-freeclk-exists-quirk;
|
||||
snps,dis-del-phy-power-chg-quirk;
|
||||
snps,dis_u2_susphy_quirk;
|
||||
snps,dis_u3_susphy_quirk;
|
||||
snps,dis_rxdet_inp3_quirk;
|
||||
snps,xhci-trb-ent-quirk;
|
||||
snps,dis-del-phy-power-chg-quirk;
|
||||
snps,dis-tx-ipgap-linecheck-quirk;
|
||||
snps,parkmode-disable-ss-quirk;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -953,8 +1003,6 @@
|
|||
&rcpu {
|
||||
mboxes = <&mailbox 0>, <&mailbox 1>;
|
||||
mbox-names = "vq0", "vq1";
|
||||
interconnects = <&dram_range0>;
|
||||
interconnect-names = "dma-mem";
|
||||
memory-region = <&rcpu_mem_0>, <&vdev0vring0>, <&vdev0vring1>, <&vdev0buffer>, <&rsc_table>, <&rcpu_mem_snapshots>;
|
||||
status = "okay";
|
||||
};
|
||||
|
@ -977,8 +1025,10 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&sound_es8326 {
|
||||
&sound_codec {
|
||||
status = "okay";
|
||||
simple-audio-card,name = "snd-es8326";
|
||||
spacemit,mclk-fs = <64>;
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&es8326>;
|
||||
};
|
||||
|
|
828
board/spacemit/k1/plt_dts/kernel/k1-x_kx312.dts
Normal file
828
board/spacemit/k1/plt_dts/kernel/k1-x_kx312.dts
Normal file
|
@ -0,0 +1,828 @@
|
|||
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
||||
/* Copyright (c) 2023 Spacemit, Inc */
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "spacemit/k1-x.dtsi"
|
||||
#include "spacemit/k1-x_pinctrl.dtsi"
|
||||
#include "spacemit/lcd/lcd_lt8911_edp_1920x1080.dtsi"
|
||||
#include "spacemit/k1-x-lcd.dtsi"
|
||||
#include "spacemit/k1-x-hdmi.dtsi"
|
||||
|
||||
/ {
|
||||
model = "spacemit k1-x kx312 board";
|
||||
modules_usrload = "8852be";
|
||||
|
||||
cpus: cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
timebase-frequency = <24000000>;
|
||||
|
||||
cpu_0: cpu@0 {
|
||||
cpu-ai = "true";
|
||||
};
|
||||
|
||||
cpu_1: cpu@1 {
|
||||
cpu-ai = "true";
|
||||
};
|
||||
|
||||
cpu_2: cpu@2 {
|
||||
reg = <2>;
|
||||
cpu-ai = "true";
|
||||
};
|
||||
|
||||
cpu_3: cpu@3 {
|
||||
reg = <3>;
|
||||
cpu-ai = "true";
|
||||
};
|
||||
|
||||
cpu-map {
|
||||
cluster0 {
|
||||
core0 {
|
||||
cpu = <&cpu_0>;
|
||||
};
|
||||
|
||||
core1 {
|
||||
cpu = <&cpu_1>;
|
||||
};
|
||||
|
||||
core2 {
|
||||
cpu = <&cpu_2>;
|
||||
};
|
||||
|
||||
core3 {
|
||||
cpu = <&cpu_3>;
|
||||
};
|
||||
};
|
||||
|
||||
cluster1 {
|
||||
core0 {
|
||||
cpu = <&cpu_4>;
|
||||
};
|
||||
|
||||
core1 {
|
||||
cpu = <&cpu_5>;
|
||||
};
|
||||
|
||||
core2 {
|
||||
cpu = <&cpu_6>;
|
||||
};
|
||||
|
||||
core3 {
|
||||
cpu = <&cpu_7>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x0 0x00000000 0x0 0x80000000>;
|
||||
};
|
||||
|
||||
memory@100000000 {
|
||||
device_type = "memory";
|
||||
reg = <0x1 0x00000000 0x0 0x80000000>;
|
||||
};
|
||||
|
||||
reserved-memory {
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
ranges;
|
||||
|
||||
linux,cma {
|
||||
compatible = "shared-dma-pool";
|
||||
/* alloc memory from 0x40000000~0x80000000 */
|
||||
alloc-ranges = <0 0x40000000 0 0x40000000>;
|
||||
/* size of cma buffer is 384MByte */
|
||||
size = <0 0x18000000>;
|
||||
/* start address is 1Mbyte aligned */
|
||||
alignment = <0x0 0x100000>;
|
||||
linux,cma-default;
|
||||
/* besides hardware, dma for ex. buffer can be used by memory management */
|
||||
reusable;
|
||||
};
|
||||
|
||||
/* reserved 384K for dpu, including mmu table(256K) and cmdlist(128K) */
|
||||
dpu_resv: dpu_reserved@2ff40000 {
|
||||
compatible = "shared-dma-pool";
|
||||
reg = <0x0 0x2ff40000 0x0 0x000C0000>;
|
||||
no-map;
|
||||
};
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "earlycon=sbi console=ttyS0,115200n8 debug loglevel=8 swiotlb=65536 rdinit=/init";
|
||||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
|
||||
dc_12v: dc-12v {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "dc_12v";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <12000000>;
|
||||
regulator-max-microvolt = <12000000>;
|
||||
};
|
||||
|
||||
vcc4v0_baseboard: vcc4v0-baseboard {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc4v0_baseboard";
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <4000000>;
|
||||
regulator-max-microvolt = <4000000>;
|
||||
vin-supply = <&dc_12v>;
|
||||
};
|
||||
|
||||
vcc_touchpad: vcc-touchpad {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc_touchpad";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
enable-active-high;
|
||||
regulator-boot-on;
|
||||
gpios = <&gpio 49 0>;
|
||||
vin-supply = <&ldo_8>;
|
||||
};
|
||||
|
||||
spacemit_lid:spacemit_lid {
|
||||
compatible = "spacemit,k1x-lid";
|
||||
scan-interval-ms = <1000>;
|
||||
lid-gpios = <&gpio 74 0>;
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
pinctrl_uart3_0: uart3_0_grp {
|
||||
pinctrl-single,pins =<
|
||||
K1X_PADCONF(GPIO_81, MUX_MODE2, (EDGE_NONE | PULL_UP | PAD_1V8_DS2)) /* uart3_txd */
|
||||
K1X_PADCONF(GPIO_82, MUX_MODE2, (EDGE_NONE | PULL_UP | PAD_1V8_DS2)) /* uart3_rxd */
|
||||
/* K1X_PADCONF(GPIO_83, MUX_MODE2, (EDGE_NONE | PULL_UP | PAD_1V8_DS2))*/ /* uart3_cts_n */
|
||||
/* K1X_PADCONF(GPIO_84, MUX_MODE2, (EDGE_NONE | PULL_UP | PAD_1V8_DS2))*/ /* uart3_rts_n */
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_uart0_2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&uart3 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_uart3_0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm14 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_pwm14_1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dpu_online2_dsi {
|
||||
memory-region = <&dpu_resv>;
|
||||
spacemit-dpu-bitclk = <933000000>;
|
||||
dsi_1v2-supply = <&ldo_5>;
|
||||
vin-supply-names = "dsi_1v2";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dsi2 {
|
||||
status = "okay";
|
||||
force-attached = "lcd_lt8911_edp_1920x1080";
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
dsi1_output: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <<8911exb_in>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
edp_panel: panel@0 {
|
||||
status = "ok";
|
||||
compatible = "spacemit,edp-panel";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&lcds {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dpu_online2_hdmi {
|
||||
memory-region = <&dpu_resv>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&hdmi{
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_hdmi_0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c2_0>;
|
||||
spacemit,i2c-fast-mode;
|
||||
status = "okay";
|
||||
|
||||
eeprom@50{
|
||||
compatible = "atmel,24c02";
|
||||
reg = <0x50>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
power-domains = <&power K1X_PMU_DUMMY_PWR_DOMAIN>;
|
||||
status = "okay";
|
||||
|
||||
mac_address0: mac_address0@0 {
|
||||
reg = <0x0 6>;
|
||||
};
|
||||
|
||||
mac_address1: mac_address1@6 {
|
||||
reg = <0x6 6>;
|
||||
};
|
||||
};
|
||||
|
||||
es8326: es8326@19{
|
||||
compatible = "everest,es8326";
|
||||
reg = <0x19>;
|
||||
#sound-dai-cells = <0>;
|
||||
interrupt-parent = <&gpio>;
|
||||
interrupts = <126 1>;
|
||||
spk-ctl-gpio = <&gpio 127 0>;
|
||||
everest,jack-detect-inverted;
|
||||
everest,mic1-src = [44];
|
||||
everest,mic2-src = [66];
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c4_2>;
|
||||
status = "okay";
|
||||
|
||||
touchpad: hid@2d {
|
||||
compatible = "hid-over-i2c";
|
||||
reg = <0x2d>;
|
||||
hid-descr-addr = <0x0020>;
|
||||
post-power-on-delay-ms = <200>;
|
||||
|
||||
vdd-supply = <&vcc_touchpad>;
|
||||
interrupt-parent = <&gpio>;
|
||||
interrupts = <50 2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
battery: battery@b {
|
||||
compatible = "sbs,sbs-battery";
|
||||
reg = <0x0b>;
|
||||
sbs,i2c-retry-count = <2>;
|
||||
sbs,poll-retry-count = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c6 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c6_2>;
|
||||
clock-frequency = <100000>;
|
||||
status = "okay";
|
||||
|
||||
lt8911exb_i2c@29 {
|
||||
compatible = "lontium,lt8911exb";
|
||||
reg = <0x29>;
|
||||
|
||||
reset-gpio = <&gpio 114 0>;
|
||||
enable-gpio = <&gpio 83 0>;
|
||||
bl-gpio = <&gpio 75 0>;
|
||||
standby-gpio = <&gpio 92 0>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
port {
|
||||
lt8911exb_in: endpoint {
|
||||
remote-endpoint = <&dsi1_output>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c8 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c8>;
|
||||
status = "okay";
|
||||
|
||||
spm8821@41 {
|
||||
compatible = "spacemit,spm8821";
|
||||
reg = <0x41>;
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <64>;
|
||||
status = "okay";
|
||||
|
||||
vcc_sys-supply = <&vcc4v0_baseboard>;
|
||||
dcdc5-supply = <&dcdc_5>;
|
||||
|
||||
regulators {
|
||||
compatible = "pmic,regulator,spm8821";
|
||||
|
||||
/* buck */
|
||||
dcdc_1: DCDC_REG1 {
|
||||
regulator-name = "dcdc1";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3450000>;
|
||||
regulator-ramp-delay = <5000>;
|
||||
regulator-always-on;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <650000>;
|
||||
};
|
||||
};
|
||||
|
||||
dcdc_2: DCDC_REG2 {
|
||||
regulator-name = "dcdc2";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3450000>;
|
||||
regulator-ramp-delay = <5000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
dcdc_3: DCDC_REG3 {
|
||||
regulator-name = "dcdc3";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <1800000>;
|
||||
regulator-ramp-delay = <5000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
dcdc_4: DCDC_REG4 {
|
||||
regulator-name = "dcdc4";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-ramp-delay = <5000>;
|
||||
regulator-always-on;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <3300000>;
|
||||
};
|
||||
};
|
||||
|
||||
dcdc_5: DCDC_REG5 {
|
||||
regulator-name = "dcdc5";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3450000>;
|
||||
regulator-ramp-delay = <5000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
dcdc_6: DCDC_REG6 {
|
||||
regulator-name = "dcdc6";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3450000>;
|
||||
regulator-ramp-delay = <5000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
/* aldo */
|
||||
ldo_1: LDO_REG1 {
|
||||
regulator-name = "ldo1";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
regulator-boot-on;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_2: LDO_REG2 {
|
||||
regulator-name = "ldo2";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_3: LDO_REG3 {
|
||||
regulator-name = "ldo3";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_4: LDO_REG4 {
|
||||
regulator-name = "ldo4";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
/* dldo */
|
||||
ldo_5: LDO_REG5 {
|
||||
regulator-name = "ldo5";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
regulator-boot-on;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_6: LDO_REG6 {
|
||||
regulator-name = "ldo6";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_7: LDO_REG7 {
|
||||
regulator-name = "ldo7";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
regulator-suspend-microvolt = <500000>;
|
||||
};
|
||||
};
|
||||
|
||||
ldo_8: LDO_REG8 {
|
||||
regulator-name = "ldo8";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
ldo_9: LDO_REG9 {
|
||||
regulator-name = "ldo9";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
};
|
||||
|
||||
ldo_10: LDO_REG10 {
|
||||
regulator-name = "ldo10";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
ldo_11: LDO_REG11 {
|
||||
regulator-name = "ldo11";
|
||||
regulator-min-microvolt = <500000>;
|
||||
regulator-max-microvolt = <3400000>;
|
||||
};
|
||||
|
||||
sw_1: SWITCH_REG1 {
|
||||
regulator-name = "switch1";
|
||||
};
|
||||
};
|
||||
|
||||
pmic_pinctrl: pinctrl {
|
||||
compatible = "pmic,pinctrl,spm8821";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
spacemit,npins = <6>;
|
||||
/**
|
||||
* led_pins: led-pins {
|
||||
* pins = "PIN3";
|
||||
* function = "sleep";
|
||||
* bias-disable = <0>;
|
||||
* drive-open-drain = <0x1>;
|
||||
* };
|
||||
*/
|
||||
};
|
||||
|
||||
pwr_key: key {
|
||||
compatible = "pmic,pwrkey,spm8821";
|
||||
};
|
||||
|
||||
ext_rtc: rtc {
|
||||
compatible = "pmic,rtc,spm8821";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
pinctrl-single,gpio-range = <
|
||||
&range GPIO_49 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_3V_DS4)
|
||||
&range GPIO_58 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_63 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_65 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_66 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_3V_DS4)
|
||||
&range PRI_TDI 2 (MUX_MODE1 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range PRI_TCK 1 (MUX_MODE1 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range PRI_TDO 1 (MUX_MODE1 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_74 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_80 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_3V_DS4)
|
||||
&range GPIO_81 3 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_90 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_91 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range DVL0 2 (MUX_MODE1 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_110 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_114 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_115 2 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_123 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_124 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_125 3 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
>;
|
||||
|
||||
pinctrl_rcpu: pinctrl_rcpu_grp {
|
||||
pinctrl-single,pins = <
|
||||
K1X_PADCONF(GPIO_47, MUX_MODE1, (EDGE_NONE | PULL_UP | PAD_3V_DS4)) /* r_uart0_tx */
|
||||
K1X_PADCONF(GPIO_48, MUX_MODE1, (EDGE_NONE | PULL_UP | PAD_3V_DS4)) /* r_uart0_rx */
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
&gpio{
|
||||
gpio-ranges = <
|
||||
&pinctrl 49 GPIO_49 2
|
||||
&pinctrl 58 GPIO_58 1
|
||||
&pinctrl 63 GPIO_63 5
|
||||
&pinctrl 70 PRI_TDI 4
|
||||
&pinctrl 74 GPIO_74 1
|
||||
&pinctrl 80 GPIO_80 4
|
||||
&pinctrl 90 GPIO_90 3
|
||||
&pinctrl 96 DVL0 2
|
||||
&pinctrl 110 GPIO_110 1
|
||||
&pinctrl 114 GPIO_114 3
|
||||
&pinctrl 123 GPIO_123 5
|
||||
>;
|
||||
};
|
||||
|
||||
/* SD */
|
||||
&sdhci0 {
|
||||
pinctrl-names = "default","fast";
|
||||
pinctrl-0 = <&pinctrl_mmc1>;
|
||||
pinctrl-1 = <&pinctrl_mmc1_fast>;
|
||||
bus-width = <4>;
|
||||
cd-gpios = <&gpio 80 0>;
|
||||
cd-inverted;
|
||||
vmmc-supply = <&dcdc_4>;
|
||||
vqmmc-supply = <&ldo_1>;
|
||||
no-mmc;
|
||||
no-sdio;
|
||||
spacemit,sdh-host-caps-disable = <(
|
||||
MMC_CAP_UHS_SDR12 |
|
||||
MMC_CAP_UHS_SDR25
|
||||
)>;
|
||||
spacemit,sdh-quirks = <(
|
||||
SDHCI_QUIRK_BROKEN_CARD_DETECTION |
|
||||
SDHCI_QUIRK_INVERTED_WRITE_PROTECT |
|
||||
SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
|
||||
)>;
|
||||
spacemit,sdh-quirks2 = <(
|
||||
SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
|
||||
SDHCI_QUIRK2_BROKEN_PHY_MODULE |
|
||||
SDHCI_QUIRK2_SET_AIB_MMC
|
||||
)>;
|
||||
spacemit,aib_mmc1_io_reg = <0xD401E81C>;
|
||||
spacemit,apbc_asfar_reg = <0xD4015050>;
|
||||
spacemit,apbc_assar_reg = <0xD4015054>;
|
||||
spacemit,rx_dline_reg = <0x0>;
|
||||
spacemit,tx_dline_reg = <0x0>;
|
||||
spacemit,tx_delaycode = <0x7f>;
|
||||
spacemit,rx_tuning_limit = <50>;
|
||||
spacemit,sdh-freq = <204800000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* SDIO */
|
||||
&sdhci1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_mmc2>;
|
||||
bus-width = <4>;
|
||||
non-removable;
|
||||
vqmmc-supply = <&dcdc_3>;
|
||||
no-mmc;
|
||||
no-sd;
|
||||
keep-power-in-suspend;
|
||||
/* bcmdhd use private oob solution rather than dat1/standard wakeup */
|
||||
/delete-property/ enable-sdio-wakeup;
|
||||
spacemit,sdh-host-caps-disable = <(
|
||||
MMC_CAP_UHS_DDR50 |
|
||||
MMC_CAP_NEEDS_POLL
|
||||
)>;
|
||||
spacemit,sdh-quirks = <(
|
||||
SDHCI_QUIRK_BROKEN_CARD_DETECTION |
|
||||
SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
|
||||
)>;
|
||||
spacemit,sdh-quirks2 = <(
|
||||
SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
|
||||
SDHCI_QUIRK2_BROKEN_PHY_MODULE
|
||||
)>;
|
||||
spacemit,rx_dline_reg = <0x0>;
|
||||
spacemit,rx_tuning_limit = <50>;
|
||||
spacemit,sdh-freq = <375000000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* eMMC */
|
||||
&sdhci2 {
|
||||
bus-width = <8>;
|
||||
non-removable;
|
||||
mmc-hs400-1_8v;
|
||||
mmc-hs400-enhanced-strobe;
|
||||
no-sd;
|
||||
no-sdio;
|
||||
spacemit,sdh-quirks = <(
|
||||
SDHCI_QUIRK_BROKEN_CARD_DETECTION |
|
||||
SDHCI_QUIRK_BROKEN_TIMEOUT_VAL
|
||||
)>;
|
||||
spacemit,sdh-quirks2 = <(
|
||||
SDHCI_QUIRK2_PRESET_VALUE_BROKEN
|
||||
)>;
|
||||
spacemit,sdh-freq = <375000000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbphy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&udc {
|
||||
/*spacemit,udc-mode = <MV_USB_MODE_OTG>;
|
||||
spacemit,extern-attr = <MV_USB_HAS_VBUS_IDPIN_DETECTION>;*/
|
||||
spacemit,udc-mode = <MV_USB_MODE_UDC>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbphy1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ehci1 {
|
||||
spacemit,reset-on-resume;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb2phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&combphy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb3hub {
|
||||
hub-gpios = <&gpio 123 0>; /* usb3 hub en */
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbdrd3 {
|
||||
status = "okay";
|
||||
reset-on-resume;
|
||||
dwc3@c0a00000 {
|
||||
dr_mode = "host";
|
||||
phy_type = "utmi";
|
||||
snps,hsphy_interface = "utmi";
|
||||
snps,dis_enblslpm_quirk;
|
||||
snps,dis_u2_susphy_quirk;
|
||||
snps,dis_u3_susphy_quirk;
|
||||
snps,dis-del-phy-power-chg-quirk;
|
||||
snps,dis-tx-ipgap-linecheck-quirk;
|
||||
snps,parkmode-disable-ss-quirk;
|
||||
};
|
||||
};
|
||||
|
||||
&pcie1_rc {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_pcie1_3>;
|
||||
num-lanes = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pcie2_rc {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_pcie2_4>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&imggpu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&qspi {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_qspi>;
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <26500000>;
|
||||
m25p,fast-read;
|
||||
broken-flash-reset;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&pwm_bl {
|
||||
pwms = <&pwm14 2000>;
|
||||
brightness-levels = <
|
||||
0 52 52 53 54 55 56 56 57 58 59 60 60 61 62 63
|
||||
64 64 65 66 67 68 68 69 70 71 72 72 73 74 75 76
|
||||
76 77 78 79 80 80 81 82 83 84 84 85 86 87 88 88
|
||||
89 90 91 92 92 93 94 95 96 96 97 98 99 100 100 101
|
||||
102 103 104 104 105 106 107 108 108 109 110 111 112 112 113 114
|
||||
115 116 116 117 118 119 120 120 121 122 123 124 124 125 126 127
|
||||
128 128 129 130 131 132 132 133 134 135 136 136 137 138 139 140
|
||||
140 141 142 143 144 144 145 146 147 148 148 149 150 151 152 152
|
||||
153 154 155 156 156 157 158 159 160 160 161 162 163 164 164 165
|
||||
166 167 168 168 169 170 171 172 172 173 174 175 176 176 177 178
|
||||
179 180 180 181 182 183 184 184 185 186 187 188 188 189 190 191
|
||||
192 192 193 194 195 196 196 197 198 199 200 200 201 202 203 204
|
||||
204 205 206 207 208 208 209 210 211 212 212 213 214 215 216 216
|
||||
217 218 219 220 220 221 222 223 224 224 225 226 227 228 228 229
|
||||
230 231 232 232 233 234 235 236 236 237 238 239 240 240 241 242
|
||||
243 244 244 245 246 247 248 248 249 250 251 252 252 253 254 255
|
||||
>;
|
||||
default-brightness-level = <128>;
|
||||
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cpu_0 {
|
||||
clst0-supply = <&dcdc_1>;
|
||||
vin-supply-names = "clst0";
|
||||
};
|
||||
|
||||
&clst0_core_opp_table {
|
||||
opp1600000000 {
|
||||
opp-microvolt = <1050000>;
|
||||
};
|
||||
};
|
||||
|
||||
&clst1_core_opp_table {
|
||||
opp1600000000 {
|
||||
opp-microvolt = <1050000>;
|
||||
};
|
||||
};
|
||||
|
||||
&rcpu {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_rcpu>;
|
||||
mboxes = <&mailbox 0>, <&mailbox 1>;
|
||||
mbox-names = "vq0", "vq1";
|
||||
memory-region = <&rcpu_mem_0>, <&vdev0vring0>, <&vdev0vring1>, <&vdev0buffer>, <&rsc_table>, <&rcpu_mem_snapshots>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cls0_trip2 {
|
||||
temperature = <115000>;
|
||||
};
|
||||
|
||||
&cls1_trip2 {
|
||||
temperature = <115000>;
|
||||
};
|
||||
|
||||
&i2s0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_sspa0_0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sound_hdmi {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sound_codec {
|
||||
status = "okay";
|
||||
simple-audio-card,name = "snd-es8326";
|
||||
spacemit,mclk-fs = <64>;
|
||||
simple-audio-card,codec {
|
||||
sound-dai = <&es8326>;
|
||||
};
|
||||
};
|
265
board/spacemit/k1/plt_dts/u-boot/k1-x_MINI-PC.dts
Normal file
265
board/spacemit/k1/plt_dts/u-boot/k1-x_MINI-PC.dts
Normal file
|
@ -0,0 +1,265 @@
|
|||
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
||||
/* Copyright (c) 2023 Spacemit, Inc */
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "k1-x.dtsi"
|
||||
#include "k1-x_pinctrl.dtsi"
|
||||
#include "k1-x_spm8821.dtsi"
|
||||
|
||||
/ {
|
||||
model = "spacemit k1-x MINI-PC board";
|
||||
|
||||
aliases {
|
||||
efuse_power = &ldo_31;
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x00000000 0x00000000 0x80000000>;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "earlycon=sbi console=ttyS0,115200 debug loglevel=8,initcall_debug=1 rdinit=/init.tmp";
|
||||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
|
||||
usb3hub:usb3hub {
|
||||
compatible = "spacemit,usb-hub";
|
||||
hub-gpios = <
|
||||
&gpio 123 0 /* usb3 hub en */
|
||||
&gpio 124 0>; /* usb3 hub rst*/
|
||||
vbus-gpios = <&gpio 97 0>; /* gpio_97 for usb3 hub output vbus */
|
||||
regulator-force-boot-off;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&cpu_0 {
|
||||
/* boot frequency for cluster-0, should be 1600000, 1228000, 819000, or 614000 */
|
||||
boot_freq_cluster0 = <1228000>;
|
||||
/* boot frequency for cluster-1, should be 1600000, 1228000, 819000, or 614000 */
|
||||
boot_freq_cluster1 = <1228000>;
|
||||
};
|
||||
|
||||
&dramc {
|
||||
/* dram data rate, should be 1200, 1600, or 2400 */
|
||||
datarate = <2400>;
|
||||
};
|
||||
|
||||
&cpus {
|
||||
timebase-frequency = <24000000>;
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c2_0>;
|
||||
status = "okay";
|
||||
|
||||
eeprom@50{
|
||||
compatible = "atmel,24c02";
|
||||
reg = <0x50>;
|
||||
vin-supply-names = "eeprom_1v8";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&i2c3 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
clock-frequency = <400000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c5 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c6 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&i2c7 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
pinctrl-single,gpio-range = <
|
||||
&range GPIO_49 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_3V_DS4)
|
||||
&range GPIO_58 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_63 2 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_65 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_66 2 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range PRI_TDI 2 (MUX_MODE1 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range PRI_TCK 1 (MUX_MODE1 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range PRI_TDO 1 (MUX_MODE1 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_74 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_80 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_3V_DS4)
|
||||
&range GPIO_81 3 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_90 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_91 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range DVL0 2 (MUX_MODE1 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_110 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_114 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_115 2 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_123 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_124 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_125 3 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
>;
|
||||
|
||||
usbp1_vbus: usbp1_vbus {
|
||||
pinctrl-single,pins =<
|
||||
K1X_PADCONF(GPIO_66, MUX_MODE0, (EDGE_NONE | PULL_UP | PAD_1V8_DS2)) /* drive_vbus1_iso */
|
||||
>;
|
||||
};
|
||||
|
||||
gpio80_pmx_func0: gpio80_pmx_func0 {
|
||||
pinctrl-single,pins = <
|
||||
K1X_PADCONF(GPIO_80, MUX_MODE0, (EDGE_BOTH | PULL_UP | PAD_3V_DS4)) /* mmc cd */
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
&gpio{
|
||||
gpio-ranges = <
|
||||
&pinctrl 49 GPIO_49 2
|
||||
&pinctrl 58 GPIO_58 1
|
||||
&pinctrl 63 GPIO_63 5
|
||||
&pinctrl 70 PRI_TDI 4
|
||||
&pinctrl 74 GPIO_74 1
|
||||
&pinctrl 80 GPIO_80 4
|
||||
&pinctrl 90 GPIO_90 3
|
||||
&pinctrl 96 DVL0 2
|
||||
&pinctrl 110 GPIO_110 1
|
||||
&pinctrl 114 GPIO_114 3
|
||||
&pinctrl 123 GPIO_123 5
|
||||
>;
|
||||
};
|
||||
|
||||
&udc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb2phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&combphy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbdrd3 {
|
||||
status = "okay";
|
||||
vbus-supply = <&usb3hub>;
|
||||
dwc3@c0a00000 {
|
||||
dr_mode = "host";
|
||||
phy_type = "utmi";
|
||||
snps,dis_enblslpm_quirk;
|
||||
snps,dis_u2_susphy_quirk;
|
||||
snps,dis_u3_susphy_quirk;
|
||||
snps,dis-del-phy-power-chg-quirk;
|
||||
snps,dis-tx-ipgap-linecheck-quirk;
|
||||
};
|
||||
};
|
||||
|
||||
/* eMMC */
|
||||
&sdhci2 {
|
||||
bus-width = <8>;
|
||||
non-removable;
|
||||
mmc-hs400-1_8v;
|
||||
mmc-hs400-enhanced-strobe;
|
||||
sdh-phy-module = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_gmac0>;
|
||||
|
||||
phy-reset-pin = <110>;
|
||||
|
||||
clk_tuning_enable;
|
||||
clk-tuning-by-delayline;
|
||||
tx-phase = <90>;
|
||||
rx-phase = <73>;
|
||||
|
||||
phy-mode = "rgmii";
|
||||
phy-addr = <1>;
|
||||
phy-handle = <&rgmii>;
|
||||
|
||||
ref-clock-from-phy;
|
||||
|
||||
mdio {
|
||||
#address-cells = <0x1>;
|
||||
#size-cells = <0x0>;
|
||||
rgmii: phy@0 {
|
||||
compatible = "ethernet-phy-id001c.c916";
|
||||
device_type = "ethernet-phy";
|
||||
reg = <0x1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pcie1_rc {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_pcie1_3>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&qspi {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_qspi>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <26500000>;
|
||||
m25p,fast-read;
|
||||
broken-flash-reset;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&efuse {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dpu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&hdmi {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_hdmi_0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&mipi_dsi {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&panel {
|
||||
dcp-gpios = <&gpio 82 0>;
|
||||
dcn-gpios = <&gpio 83 0>;
|
||||
bl-gpios = <&gpio 44 0>;
|
||||
reset-gpios = <&gpio 81 0>;
|
||||
status = "disabled";
|
||||
};
|
241
board/spacemit/k1/plt_dts/u-boot/k1-x_kx312.dts
Normal file
241
board/spacemit/k1/plt_dts/u-boot/k1-x_kx312.dts
Normal file
|
@ -0,0 +1,241 @@
|
|||
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
||||
/* Copyright (c) 2023 Spacemit, Inc */
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "k1-x.dtsi"
|
||||
#include "k1-x_pinctrl.dtsi"
|
||||
#include "k1-x_spm8821.dtsi"
|
||||
|
||||
/ {
|
||||
model = "spacemit k1-x kx312 board";
|
||||
|
||||
aliases {
|
||||
efuse_power = &ldo_31;
|
||||
};
|
||||
|
||||
memory@0 {
|
||||
device_type = "memory";
|
||||
reg = <0x00000000 0x00000000 0x00000000 0x80000000>;
|
||||
};
|
||||
|
||||
chosen {
|
||||
bootargs = "earlycon=sbi console=ttyS0,115200 debug loglevel=8,initcall_debug=1 rdinit=/init.tmp";
|
||||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
};
|
||||
|
||||
&cpu_0 {
|
||||
/* boot frequency for cluster-0, should be 1600000, 1228000, 819000, or 614000 */
|
||||
boot_freq_cluster0 = <1228000>;
|
||||
/* boot frequency for cluster-1, should be 1600000, 1228000, 819000, or 614000 */
|
||||
boot_freq_cluster1 = <1228000>;
|
||||
};
|
||||
|
||||
&dramc {
|
||||
/* dram data rate, should be 1200, 1600, or 2400 */
|
||||
datarate = <2400>;
|
||||
};
|
||||
|
||||
&cpus {
|
||||
timebase-frequency = <24000000>;
|
||||
};
|
||||
|
||||
&ccu {
|
||||
pll2-freq = <2800000000>;
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c2_0>;
|
||||
status = "okay";
|
||||
|
||||
eeprom@50{
|
||||
compatible = "atmel,24c02";
|
||||
reg = <0x50>;
|
||||
vin-supply-names = "eeprom_1v8";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
clock-frequency = <400000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c6 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_i2c6_2>;
|
||||
clock-frequency = <100000>;
|
||||
status = "okay";
|
||||
|
||||
lt8911exb_i2c@29 {
|
||||
compatible = "lontium,lt8911exb";
|
||||
reg = <0x29>;
|
||||
status = "okay";
|
||||
|
||||
enable-gpios = <&gpio 83 0>;
|
||||
bl-gpios = <&gpio 75 0>;
|
||||
standby-gpios = <&gpio 92 0>;
|
||||
reset-gpios = <&gpio 114 0>;
|
||||
|
||||
port {
|
||||
lt8911exb_in: endpoint {
|
||||
remote-endpoint = <&dsi_out>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
pinctrl-single,gpio-range = <
|
||||
&range GPIO_49 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_3V_DS4)
|
||||
&range GPIO_58 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_63 2 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_65 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_66 2 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range PRI_TDI 2 (MUX_MODE1 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range PRI_TCK 1 (MUX_MODE1 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range PRI_TDO 1 (MUX_MODE1 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_74 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_80 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_3V_DS4)
|
||||
&range GPIO_81 3 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_90 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_91 2 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range DVL0 2 (MUX_MODE1 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_110 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_114 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_115 2 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_123 1 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
&range GPIO_124 1 (MUX_MODE0 | EDGE_NONE | PULL_UP | PAD_1V8_DS2)
|
||||
&range GPIO_125 3 (MUX_MODE0 | EDGE_NONE | PULL_DOWN | PAD_1V8_DS2)
|
||||
>;
|
||||
|
||||
gpio80_pmx_func0: gpio80_pmx_func0 {
|
||||
pinctrl-single,pins = <
|
||||
K1X_PADCONF(GPIO_80, MUX_MODE0, (EDGE_BOTH | PULL_UP | PAD_3V_DS4)) /* mmc cd */
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
&gpio{
|
||||
gpio-ranges = <
|
||||
&pinctrl 49 GPIO_49 2
|
||||
&pinctrl 58 GPIO_58 1
|
||||
&pinctrl 63 GPIO_63 5
|
||||
&pinctrl 70 PRI_TDI 4
|
||||
&pinctrl 74 GPIO_74 1
|
||||
&pinctrl 80 GPIO_80 4
|
||||
&pinctrl 90 GPIO_90 3
|
||||
&pinctrl 96 DVL0 2
|
||||
&pinctrl 110 GPIO_110 1
|
||||
&pinctrl 114 GPIO_114 3
|
||||
&pinctrl 123 GPIO_123 5
|
||||
>;
|
||||
};
|
||||
|
||||
&udc {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb2phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sdhci0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_mmc1 &gpio80_pmx_func0>;
|
||||
bus-width = <4>;
|
||||
cd-gpios = <&gpio 80 0>;
|
||||
cd-inverted;
|
||||
cap-sd-highspeed;
|
||||
sdh-phy-module = <0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* eMMC */
|
||||
&sdhci2 {
|
||||
bus-width = <8>;
|
||||
non-removable;
|
||||
mmc-hs400-1_8v;
|
||||
mmc-hs400-enhanced-strobe;
|
||||
sdh-phy-module = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
ð0 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&pcie2_rc {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_pcie2_4>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&qspi {
|
||||
status = "okay";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_qspi>;
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <26500000>;
|
||||
m25p,fast-read;
|
||||
broken-flash-reset;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&efuse {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dpu {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&hdmi {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_hdmi_0>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&ldo_27 {
|
||||
regulator-init-microvolt = <1200000>;
|
||||
regulator-boot-on;
|
||||
regulator-state-mem {
|
||||
regulator-off-in-suspend;
|
||||
};
|
||||
};
|
||||
|
||||
&mipi_dsi {
|
||||
bit-clk = <933000000>;
|
||||
pix-clk = <142000000>;
|
||||
status = "okay";
|
||||
|
||||
ports {
|
||||
mipi_in: port {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
dsi_out: endpoint@1 {
|
||||
reg = <1>;
|
||||
remote-endpoint = <<8911exb_in>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&panel {
|
||||
force-attached = "lt8911ext_edp_1080p";
|
||||
bl-gpios = <&gpio 44 0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
BIN
board/spacemit/k1/plt_overlay/root/uarttest2
Executable file
BIN
board/spacemit/k1/plt_overlay/root/uarttest2
Executable file
Binary file not shown.
3
board/spacemit/k1/post-build.sh
Executable file
3
board/spacemit/k1/post-build.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash -e
|
||||
DATE=$(date +%Y%m%d%H%M%S)
|
||||
echo "$DATE" | tee "${TARGET_DIR}/etc/bianbu_version"
|
|
@ -5,8 +5,11 @@ SERNUM_STR="20211102"
|
|||
MANUAF_STR="Spacemit"
|
||||
PRODUC_STR="K1 ADB"
|
||||
DEFAULT_UDC="c0900100.udc"
|
||||
USBDEVICE_SERNUM=`sed 's/://g' /sys/class/net/eth0/address`
|
||||
[ $USBDEVICE_SERNUM ] && SERNUM_STR=$USBDEVICE_SERNUM
|
||||
|
||||
[ -e /sys/class/net/eth0 ] && ADB_MAC_SN=$(sed 's/://g' /sys/class/net/eth0/address)
|
||||
[ "$ADB_MAC_SN" ] && SERNUM_STR=$ADB_MAC_SN
|
||||
[ "$ADB_BOARD_SN" ] || ADB_BOARD_SN=$(cat /proc/device-tree/serial-number)
|
||||
[ "$ADB_BOARD_SN" ] && SERNUM_STR=$ADB_BOARD_SN
|
||||
|
||||
config_gadget()
|
||||
{
|
||||
|
@ -63,8 +66,6 @@ clean()
|
|||
rm -f /sys/kernel/config/usb_gadget/g1/configs/c.1/ffs.adb
|
||||
rmdir /sys/kernel/config/usb_gadget/g1/functions/ffs.adb
|
||||
umount /dev/usb-ffs/adb/
|
||||
umount /dev/pts
|
||||
rmdir /dev/pts
|
||||
rmdir /dev/usb-ffs/adb
|
||||
rmdir /dev/usb-ffs
|
||||
}
|
||||
|
|
|
@ -67,8 +67,6 @@ mount -n -o move /sys /rootfs/sys
|
|||
mount -n -o move /run /rootfs/run
|
||||
mount -n -o move /tmp /rootfs/tmp
|
||||
mount -n -o move /dev /rootfs/dev
|
||||
mount -n -o move /dev/shm /rootfs/dev/shm
|
||||
mount -n -o move /dev/pts /rootfs/dev/pts
|
||||
mount -t debugfs debugfs /rootfs/sys/kernel/debug
|
||||
|
||||
exec run-init /rootfs "${init}" "$@" <"/rootfs/dev/console" >"/rootfs/dev/console" 2>&1
|
||||
|
|
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8723b_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8723b_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8723b_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8723b_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8723du_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8723du_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8723du_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8723du_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8725au_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8725au_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8725au_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8725au_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8733bu_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8733bu_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8733bu_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8733bu_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761a_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761a_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761au8192ee_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761au8192ee_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761au8812ae_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761au8812ae_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761au_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761au_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761aw_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761aw_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761aw_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761aw_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761bu_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761bu_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761bu_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8761bu_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821a_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821a_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821a_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821a_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821cu_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821cu_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821cu_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821cu_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821du_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821du_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821du_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8821du_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822bu_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822bu_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822bu_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822bu_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822cu_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822cu_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822cu_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822cu_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822eu_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822eu_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822eu_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8822eu_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8851au_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8851au_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8851au_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8851au_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8851bu_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8851bu_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8851bu_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8851bu_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852au_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852au_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852au_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852au_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852bu_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852bu_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852bu_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852bu_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852cu_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852cu_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852cu_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852cu_fw
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852du_config
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852du_config
Normal file
Binary file not shown.
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852du_fw
Normal file
BIN
board/spacemit/k1/target_overlay/lib/firmware/rtl8852du_fw
Normal file
Binary file not shown.
|
@ -27,15 +27,18 @@ BR2_TARGET_GENERIC_ROOT_PASSWD="bianbu"
|
|||
# BR2_ENABLE_LOCALE_PURGE is not set
|
||||
BR2_GENERATE_LOCALE="C en_US.UTF-8 zh_CN.UTF-8"
|
||||
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/target_overlay"
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/post-build.sh"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/prepare_img.sh"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DIR=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DIR_LOCATION="$(TOPDIR)/../bsp-src/linux-6.1"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(LINUX_OVERRIDE_SRCDIR)/arch/riscv/configs/k1_defconfig"
|
||||
BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
|
||||
BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image.itb"
|
||||
BR2_LINUX_KERNEL_IMAGE_NAME="Image.itb"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="spacemit/k1-x_deb1 spacemit/k1-x_deb2 spacemit/k1-x_evb spacemit/k1-x_hs450 spacemit/k1-x_kx312 spacemit/k1-x_mingo spacemit/k1-x_MUSE-N1 spacemit/k1-x_MUSE-Pi spacemit/k1-x_MINI-PC"
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="spacemit/k1-x_deb1 spacemit/k1-x_deb2 spacemit/k1-x_evb spacemit/k1-x_hs450 spacemit/k1-x_kx312 spacemit/k1-x_mingo spacemit/k1-x_MUSE-N1 spacemit/k1-x_MUSE-Pi spacemit/k1-x_MINI-PC spacemit/k1-x_MUSE-Book"
|
||||
BR2_PACKAGE_LINUX_TOOLS_GPIO=y
|
||||
BR2_PACKAGE_LINUX_TOOLS_PERF=y
|
||||
BR2_PACKAGE_LINUX_TOOLS_PERF_SCRIPTS=y
|
||||
|
@ -148,10 +151,12 @@ BR2_PACKAGE_IPROUTE2=y
|
|||
BR2_PACKAGE_IPSET=y
|
||||
BR2_PACKAGE_IPUTILS=y
|
||||
BR2_PACKAGE_NTP=y
|
||||
BR2_PACKAGE_NTP_SNTP=y
|
||||
BR2_PACKAGE_OPENSSH=y
|
||||
BR2_PACKAGE_RSYNC=y
|
||||
BR2_PACKAGE_WHOIS=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
|
||||
BR2_PACKAGE_BASH=y
|
||||
BR2_PACKAGE_FILE=y
|
||||
BR2_PACKAGE_ANDROID_TOOLS=y
|
||||
|
|
|
@ -29,15 +29,18 @@ BR2_SYSTEM_DHCP="eth0"
|
|||
BR2_GENERATE_LOCALE="C en_US.UTF-8 zh_CN.UTF-8"
|
||||
BR2_TARGET_TZ_INFO=y
|
||||
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/target_overlay"
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/post-build.sh"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/prepare_img.sh"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DIR=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DIR_LOCATION="$(TOPDIR)/../bsp-src/linux-6.1"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(LINUX_OVERRIDE_SRCDIR)/arch/riscv/configs/k1_defconfig"
|
||||
BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
|
||||
BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image.itb"
|
||||
BR2_LINUX_KERNEL_IMAGE_NAME="Image.itb"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="spacemit/k1-x_deb1 spacemit/k1-x_deb2 spacemit/k1-x_evb spacemit/k1-x_hs450 spacemit/k1-x_kx312 spacemit/k1-x_mingo spacemit/k1-x_MUSE-N1 spacemit/k1-x_MUSE-Pi spacemit/k1-x_MINI-PC"
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="spacemit/k1-x_deb1 spacemit/k1-x_deb2 spacemit/k1-x_evb spacemit/k1-x_hs450 spacemit/k1-x_kx312 spacemit/k1-x_mingo spacemit/k1-x_MUSE-N1 spacemit/k1-x_MUSE-Pi spacemit/k1-x_MINI-PC spacemit/k1-x_MUSE-Book"
|
||||
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
|
||||
BR2_PACKAGE_BZIP2=y
|
||||
BR2_PACKAGE_GZIP=y
|
||||
|
|
|
@ -30,14 +30,16 @@ BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/target_overlay
|
|||
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/plt_custom.sh"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/prepare_img.sh"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DIR=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DIR_LOCATION="$(TOPDIR)/../bsp-src/linux-6.1"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(LINUX_OVERRIDE_SRCDIR)/arch/riscv/configs/k1_defconfig"
|
||||
BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
|
||||
BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image.itb"
|
||||
BR2_LINUX_KERNEL_IMAGE_NAME="Image.itb"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="k1-x_deb1"
|
||||
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/plt_dts/kernel/k1-x_deb1.dts"
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="k1-x_deb1 k1-x_MINI-PC"
|
||||
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/plt_dts/kernel/k1-x_deb1.dts $(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/plt_dts/kernel/k1-x_MINI-PC.dts $(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/plt_dts/kernel/k1-x_kx312.dts"
|
||||
BR2_PACKAGE_LINUX_TOOLS_GPIO=y
|
||||
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
|
||||
BR2_PACKAGE_ALSA_UTILS=y
|
||||
|
@ -79,6 +81,7 @@ BR2_PACKAGE_PYTHON_NUMPY=y
|
|||
BR2_PACKAGE_PYTHON_PILLOW=y
|
||||
BR2_PACKAGE_PYTHON_PIP=y
|
||||
BR2_PACKAGE_PYTHON_PYQT5=y
|
||||
BR2_PACKAGE_PYTHON_QRCODE=y
|
||||
BR2_PACKAGE_LIBOPENSSL_BIN=y
|
||||
BR2_PACKAGE_LIBOPENSSL_ENGINES=y
|
||||
BR2_PACKAGE_JASPER=y
|
||||
|
@ -133,7 +136,7 @@ BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
|||
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb u-boot-env-default.bin"
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="FSBL.bin bootinfo_*.bin"
|
||||
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/plt_dts/u-boot/k1-x_deb1.dts"
|
||||
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/plt_dts/u-boot/k1-x_deb1.dts $(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/plt_dts/u-boot/k1-x_MINI-PC.dts $(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/plt_dts/u-boot/k1-x_kx312.dts"
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_JQ=y
|
||||
BR2_PACKAGE_HOST_PYTHON_PYYAML=y
|
||||
|
|
212
configs/spacemit_k1_v2_defconfig
Normal file
212
configs/spacemit_k1_v2_defconfig
Normal file
|
@ -0,0 +1,212 @@
|
|||
BR2_riscv=y
|
||||
BR2_riscv_custom=y
|
||||
BR2_RISCV_ISA_CUSTOM_RVM=y
|
||||
BR2_RISCV_ISA_CUSTOM_RVF=y
|
||||
BR2_RISCV_ISA_CUSTOM_RVD=y
|
||||
BR2_RISCV_ISA_CUSTOM_RVC=y
|
||||
BR2_TOOLCHAIN_EXTERNAL=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_URL="http://archive.spacemit.com/toolchain/spacemit-toolchain-linux-glibc-x86_64-v1.0.0.tar.xz"
|
||||
BR2_TOOLCHAIN_EXTERNAL_REL_BIN_PATH="spacemit-toolchain-linux-glibc-x86_64-v1.0.0/bin"
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="$(ARCH)-unknown-linux-gnu"
|
||||
BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_1=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
|
||||
# BR2_TOOLCHAIN_EXTERNAL_INET_RPC is not set
|
||||
BR2_TOOLCHAIN_EXTERNAL_CXX=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_FORTRAN=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_OPENMP=y
|
||||
BR2_PRIMARY_SITE="http://archive.spacemit.com/buildroot/dl"
|
||||
BR2_CCACHE=y
|
||||
BR2_PACKAGE_OVERRIDE_FILE="$(TOPDIR)/../buildroot-ext/local.mk"
|
||||
BR2_GLOBAL_PATCH_DIR="$(TOPDIR)/../buildroot-ext/patches/"
|
||||
BR2_TARGET_GENERIC_HOSTNAME="Bianbu"
|
||||
BR2_TARGET_GENERIC_ISSUE="Welcome to Bianbu Linux"
|
||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
|
||||
BR2_TARGET_GENERIC_ROOT_PASSWD="bianbu"
|
||||
# BR2_ENABLE_LOCALE_PURGE is not set
|
||||
BR2_GENERATE_LOCALE="C en_US.UTF-8 zh_CN.UTF-8"
|
||||
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/target_overlay"
|
||||
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/post-build.sh"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/prepare_img.sh"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DIR=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DIR_LOCATION="$(TOPDIR)/../bsp-src/linux-6.6"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(LINUX_OVERRIDE_SRCDIR)/arch/riscv/configs/k1_defconfig"
|
||||
BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
|
||||
BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image.itb"
|
||||
BR2_LINUX_KERNEL_IMAGE_NAME="Image.itb"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="spacemit/k1-x_deb1 spacemit/k1-x_deb2 spacemit/k1-x_evb spacemit/k1-x_hs450 spacemit/k1-x_kx312 spacemit/k1-x_mingo spacemit/k1-x_MUSE-N1 spacemit/k1-x_MUSE-Pi spacemit/k1-x_MINI-PC spacemit/k1-x_MUSE-Book"
|
||||
BR2_PACKAGE_LINUX_TOOLS_GPIO=y
|
||||
BR2_PACKAGE_LINUX_TOOLS_PERF=y
|
||||
BR2_PACKAGE_LINUX_TOOLS_PERF_SCRIPTS=y
|
||||
BR2_PACKAGE_LINUX_TOOLS_PERF_TUI=y
|
||||
BR2_PACKAGE_LINUX_TOOLS_PERF_NEEDS_HOST_PYTHON3=y
|
||||
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
|
||||
BR2_PACKAGE_ALSA_UTILS=y
|
||||
BR2_PACKAGE_ALSA_UTILS_APLAY=y
|
||||
BR2_PACKAGE_ALSA_UTILS_APLAYMIDI=y
|
||||
BR2_PACKAGE_FFMPEG_GPL=y
|
||||
BR2_PACKAGE_FFMPEG_SPACEMIT_CODEC=y
|
||||
BR2_PACKAGE_FFMPEG_NONFREE=y
|
||||
BR2_PACKAGE_FFMPEG_FFPLAY=y
|
||||
BR2_PACKAGE_FFMPEG_FFPROBE=y
|
||||
BR2_PACKAGE_FFMPEG_POSTPROC=y
|
||||
BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOTESTSRC=y
|
||||
BR2_PACKAGE_GST1_PLUGINS_GOOD=y
|
||||
BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_AUTODETECT=y
|
||||
BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_DEINTERLACE=y
|
||||
BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_V4L2=y
|
||||
BR2_PACKAGE_GST1_PLUGINS_BAD=y
|
||||
BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VIDEOPARSERS=y
|
||||
BR2_PACKAGE_GST1_LIBAV=y
|
||||
BR2_PACKAGE_GST1_PYTHON=y
|
||||
BR2_PACKAGE_GZIP=y
|
||||
BR2_PACKAGE_P7ZIP=y
|
||||
BR2_PACKAGE_UNRAR=y
|
||||
BR2_PACKAGE_UNZIP=y
|
||||
BR2_PACKAGE_ZIP=y
|
||||
BR2_PACKAGE_DHRYSTONE=y
|
||||
BR2_PACKAGE_FIO=y
|
||||
BR2_PACKAGE_IOZONE=y
|
||||
BR2_PACKAGE_LSOF=y
|
||||
BR2_PACKAGE_MBW=y
|
||||
BR2_PACKAGE_STRESS_NG=y
|
||||
BR2_PACKAGE_GETTEXT=y
|
||||
BR2_PACKAGE_GREP=y
|
||||
BR2_PACKAGE_JQ=y
|
||||
BR2_PACKAGE_SED=y
|
||||
BR2_PACKAGE_TREE=y
|
||||
BR2_PACKAGE_E2FSPROGS=y
|
||||
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||
BR2_PACKAGE_EXFAT_UTILS=y
|
||||
BR2_PACKAGE_EXFATPROGS=y
|
||||
BR2_PACKAGE_MTD=y
|
||||
BR2_PACKAGE_NTFS_3G=y
|
||||
BR2_PACKAGE_NTFS_3G_NTFSPROGS=y
|
||||
BR2_PACKAGE_XFSPROGS=y
|
||||
BR2_PACKAGE_LIBERATION=y
|
||||
BR2_PACKAGE_WQY_ZENHEI=y
|
||||
BR2_PACKAGE_GLMARK2=y
|
||||
BR2_PACKAGE_SDL2_KMSDRM=y
|
||||
BR2_PACKAGE_SDL2_OPENGLES=y
|
||||
BR2_PACKAGE_QT5=y
|
||||
BR2_PACKAGE_QT5BASE_EXAMPLES=y
|
||||
BR2_PACKAGE_QT5BASE_SQLITE_QT=y
|
||||
BR2_PACKAGE_QT5BASE_OPENGL=y
|
||||
BR2_PACKAGE_QT5BASE_FONTCONFIG=y
|
||||
BR2_PACKAGE_QT5BASE_SYSLOG=y
|
||||
BR2_PACKAGE_QT5CHARTS=y
|
||||
BR2_PACKAGE_QT5MULTIMEDIA=y
|
||||
BR2_PACKAGE_QT5SVG=y
|
||||
BR2_PACKAGE_QT5WAYLAND=y
|
||||
BR2_PACKAGE_WESTON=y
|
||||
BR2_PACKAGE_CRYPTSETUP=y
|
||||
# BR2_PACKAGE_EUDEV_ENABLE_HWDB is not set
|
||||
BR2_PACKAGE_GPTFDISK=y
|
||||
BR2_PACKAGE_MDADM=y
|
||||
BR2_PACKAGE_MEMTESTER=y
|
||||
BR2_PACKAGE_SMARTMONTOOLS=y
|
||||
BR2_PACKAGE_SYSSTAT=y
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_PACKAGE_PYTHON3_XZ=y
|
||||
BR2_PACKAGE_PYTHON_PIP=y
|
||||
BR2_PACKAGE_PYTHON_PYQT5=y
|
||||
BR2_PACKAGE_PYTHON_PYYAML=y
|
||||
BR2_PACKAGE_TINYALSA=y
|
||||
BR2_PACKAGE_LZ4=y
|
||||
BR2_PACKAGE_ZLIB_NG=y
|
||||
BR2_PACKAGE_LIBNSS=y
|
||||
BR2_PACKAGE_LIBOPENSSL_BIN=y
|
||||
BR2_PACKAGE_LIBOPENSSL_ENGINES=y
|
||||
BR2_PACKAGE_JASPER=y
|
||||
BR2_PACKAGE_LCMS2=y
|
||||
BR2_PACKAGE_OPENCV4_LIB_CALIB3D=y
|
||||
BR2_PACKAGE_OPENCV4_WITH_QT5=y
|
||||
BR2_PACKAGE_OPENCV4_LIB_PYTHON=y
|
||||
BR2_PACKAGE_OPENCV4_WITH_FFMPEG=y
|
||||
BR2_PACKAGE_OPENCV4_WITH_GSTREAMER1=y
|
||||
BR2_PACKAGE_OPENCV4_WITH_JPEG=y
|
||||
BR2_PACKAGE_OPENCV4_WITH_PNG=y
|
||||
BR2_PACKAGE_OPENCV4_WITH_V4L=y
|
||||
BR2_PACKAGE_OPENMPI=y
|
||||
BR2_PACKAGE_UTF8PROC=y
|
||||
BR2_PACKAGE_HAVEGED=y
|
||||
BR2_PACKAGE_BLUEZ_TOOLS=y
|
||||
BR2_PACKAGE_BLUEZ5_UTILS=y
|
||||
BR2_PACKAGE_BLUEZ5_UTILS_OBEX=y
|
||||
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
|
||||
BR2_PACKAGE_BLUEZ5_UTILS_MONITOR=y
|
||||
BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y
|
||||
BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_AUDIO=y
|
||||
# BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_NETWORK is not set
|
||||
BR2_PACKAGE_BLUEZ5_UTILS_TOOLS_HID2HCI=y
|
||||
BR2_PACKAGE_CAN_UTILS=y
|
||||
BR2_PACKAGE_DHCPCD=y
|
||||
BR2_PACKAGE_ETHTOOL=y
|
||||
BR2_PACKAGE_IPERF3=y
|
||||
BR2_PACKAGE_IPROUTE2=y
|
||||
BR2_PACKAGE_IPSET=y
|
||||
BR2_PACKAGE_IPUTILS=y
|
||||
BR2_PACKAGE_NTP=y
|
||||
BR2_PACKAGE_OPENSSH=y
|
||||
BR2_PACKAGE_RSYNC=y
|
||||
BR2_PACKAGE_WHOIS=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
|
||||
BR2_PACKAGE_BASH=y
|
||||
BR2_PACKAGE_FILE=y
|
||||
BR2_PACKAGE_ANDROID_TOOLS=y
|
||||
BR2_PACKAGE_ANDROID_TOOLS_ADB=y
|
||||
BR2_PACKAGE_ANDROID_TOOLS_ADBD=y
|
||||
BR2_PACKAGE_FTOP=y
|
||||
BR2_PACKAGE_GETENT=y
|
||||
BR2_PACKAGE_HTOP=y
|
||||
BR2_PACKAGE_IOTOP=y
|
||||
BR2_PACKAGE_KEYUTILS=y
|
||||
BR2_PACKAGE_TAR=y
|
||||
BR2_PACKAGE_UTIL_LINUX_IRQTOP=y
|
||||
BR2_PACKAGE_UTIL_LINUX_KILL=y
|
||||
BR2_PACKAGE_UTIL_LINUX_MORE=y
|
||||
BR2_PACKAGE_UTIL_LINUX_MOUNT=y
|
||||
BR2_PACKAGE_NANO=y
|
||||
BR2_PACKAGE_VIM=y
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
BR2_TARGET_ROOTFS_CPIO_DRACUT=y
|
||||
BR2_TARGET_ROOTFS_CPIO_DRACUT_MODULES="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/dracut-modules"
|
||||
BR2_TARGET_ROOTFS_CPIO_DRACUT_CONF_FILES="$(BR2_EXTERNAL_Bianbu_PATH)/board/spacemit/k1/dracut.conf"
|
||||
BR2_TARGET_ROOTFS_CPIO_GZIP=y
|
||||
BR2_TARGET_ROOTFS_EXT2=y
|
||||
BR2_TARGET_ROOTFS_EXT2_4=y
|
||||
BR2_TARGET_ROOTFS_EXT2_SIZE="800M"
|
||||
# BR2_TARGET_ROOTFS_TAR is not set
|
||||
BR2_TARGET_OPENSBI=y
|
||||
BR2_TARGET_OPENSBI_PLAT="generic"
|
||||
# BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG is not set
|
||||
BR2_TARGET_OPENSBI_ADDITIONAL_VARIABLES="PLATFORM_DEFCONFIG=k1_defconfig"
|
||||
BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="$(UBOOT_OVERRIDE_SRCDIR)/configs/k1_defconfig"
|
||||
# BR2_TARGET_UBOOT_FORMAT_BIN is not set
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb u-boot-env-default.bin"
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="FSBL.bin bootinfo_*.bin"
|
||||
BR2_PACKAGE_HOST_CMAKE=y
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_JQ=y
|
||||
BR2_PACKAGE_HOST_PYTHON_PYYAML=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SIGNATURE_SUPPORT=y
|
||||
BR2_PACKAGE_RTK_HCIATTACH=y
|
||||
BR2_PACKAGE_IMG_GPU_POWERVR=y
|
||||
BR2_PACKAGE_IMG_GPU_POWERVR_OUTPUT_WL=y
|
||||
BR2_PACKAGE_DRM_TEST=y
|
||||
BR2_PACKAGE_V2D_TEST=y
|
||||
BR2_PACKAGE_K1X_VPU_TEST=y
|
||||
BR2_PACKAGE_K1X_VPU_FIRMWARE=y
|
||||
BR2_PACKAGE_K1X_JPU=y
|
||||
BR2_PACKAGE_AI_SUPPORT=y
|
4
local.mk
4
local.mk
|
@ -6,8 +6,8 @@
|
|||
#XXX_OVERRIDE_SRCDIR = /path/to/xxx/dir
|
||||
#XXX_OVERRIDE_SRCDIR_RSYNC_EXCLUSIONS = --exclude unittests --exclude test.txt --include .git
|
||||
|
||||
|
||||
LINUX_OVERRIDE_SRCDIR = $(TOPDIR)/../bsp-src/linux-6.1
|
||||
# please config linux dir in menuconfig
|
||||
# LINUX_OVERRIDE_SRCDIR = $(TOPDIR)/../bsp-src/linux-6.1
|
||||
UBOOT_OVERRIDE_SRCDIR = $(TOPDIR)/../bsp-src/uboot-2022.10
|
||||
OPENSBI_OVERRIDE_SRCDIR = $(TOPDIR)/../bsp-src/opensbi
|
||||
MESA3D_OVERRIDE_SRCDIR = $(TOPDIR)/../package-src/mesa3d
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
ONNX_RUNTIME_VERSION:=1.1.1
|
||||
ONNX_RUNTIME_VERSION:=1.1.4
|
||||
ONNX_RUNTIME_SITE=http://archive.spacemit.com/spacemit-ai/onnxruntime
|
||||
ONNX_RUNTIME_SITE_METHOD=wget
|
||||
ONNX_RUNTIME_SOURCE=spacemit-ort.riscv64.$(ONNX_RUNTIME_VERSION).tar.gz
|
||||
|
|
64
patches/libdrm/0005-Support-multiple-cards.patch
Normal file
64
patches/libdrm/0005-Support-multiple-cards.patch
Normal file
|
@ -0,0 +1,64 @@
|
|||
From 8379fa57030a08cd24ad2bf8d1e31132ac339a7d Mon Sep 17 00:00:00 2001
|
||||
From: lilijun <lijun.li@spacemit.com>
|
||||
Date: Thu, 13 Jun 2024 14:01:32 +0800
|
||||
Subject: [PATCH] Support multiple cards
|
||||
|
||||
---
|
||||
xf86drm.c | 20 ++++++++++++++++++--
|
||||
1 file changed, 18 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/xf86drm.c b/xf86drm.c
|
||||
index 5933e4b..24babd9 100644
|
||||
--- a/xf86drm.c
|
||||
+++ b/xf86drm.c
|
||||
@@ -1036,6 +1036,14 @@ static int drmOpenByBusid(const char *busid, int type)
|
||||
if (base < 0)
|
||||
return -1;
|
||||
|
||||
+ if ((type == DRM_NODE_PRIMARY) && busid) {
|
||||
+ if (strcmp("/dev/dri/card1", busid) == 0) {
|
||||
+ base = 1;
|
||||
+ } else if (strcmp("/dev/dri/card2", busid) == 0) {
|
||||
+ base = 2;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
drmMsg("drmOpenByBusid: Searching for BusID %s\n", busid);
|
||||
for (i = base; i < base + DRM_MAX_MINOR; i++) {
|
||||
fd = drmOpenMinor(i, 1, type);
|
||||
@@ -1089,7 +1097,7 @@ static int drmOpenByBusid(const char *busid, int type)
|
||||
*
|
||||
* \sa drmOpenMinor(), drmGetVersion() and drmGetBusid().
|
||||
*/
|
||||
-static int drmOpenByName(const char *name, int type)
|
||||
+static int drmOpenByName(const char *name, const char *busid, int type)
|
||||
{
|
||||
int i;
|
||||
int fd;
|
||||
@@ -1100,6 +1108,14 @@ static int drmOpenByName(const char *name, int type)
|
||||
if (base < 0)
|
||||
return -1;
|
||||
|
||||
+ if ((type == DRM_NODE_PRIMARY) && busid) {
|
||||
+ if (strcmp("/dev/dri/card1", busid) == 0) {
|
||||
+ base = 1;
|
||||
+ } else if (strcmp("/dev/dri/card2", busid) == 0) {
|
||||
+ base = 2;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
/*
|
||||
* Open the first minor number that matches the driver name and isn't
|
||||
* already in use. If it's in use it will have a busid assigned already.
|
||||
@@ -1216,7 +1232,7 @@ drm_public int drmOpenWithType(const char *name, const char *busid, int type)
|
||||
}
|
||||
|
||||
if (name)
|
||||
- return drmOpenByName(name, type);
|
||||
+ return drmOpenByName(name, busid, type);
|
||||
|
||||
return -1;
|
||||
}
|
||||
--
|
||||
2.25.1
|
||||
|
Loading…
Add table
Reference in a new issue