mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
Allwinner device tree changes for 6.15
- New board support: NetCube Systems Kumquat - Enable USB and LED on Anbernic RG35XX - Fix reboot GPIO detection logic on Anbernic RG35XX - Disable (non-existent) battery thermistor on Anbernic RG35XX - Add CPU OPP table for A100 -----BEGIN PGP SIGNATURE----- iQJCBAABCgAsFiEE2nN1m/hhnkhOWjtHOJpUIZwPJDAFAmfSxtYOHHdlbnNAY3Np ZS5vcmcACgkQOJpUIZwPJDAZ8g/7BhQDsWmS7CBtl1r0ovRR7t2N/slqoJMwFNix 5AU4Zpj7XCGPyejq0qxEm1M3apaAJV3JlbF0XTIIE3rKxhfpzalzK1KQhc4oXYDR ze432ezkFE/7j8yjrBFQujufdyWpjHKlWs76oykkB7Wo03JKL1Smht2Vhx2bIRQA gs2Mb+cBiQuJJFcUF0TNUx/s7ivsjNT7ddNRULwBhvmpeTlROT5Jnd/YOZbUrA2E /61F32v+HAJE0eBjmZzVDgivIbi9kSovUzKtAY3ewsh+zytJ69TqRGVk0kH9n7+/ PoPB2SkyImgnorgxNn1I5sOiMAHlGyQ0XOidQqNfPTZmrL2I0DCLKhcF6ozJ3HmT gHRlrcOQErsh4paZKXqkKuwyWJ1aQVveYiEJvqqD4rDR3x7wz+Tcd7XdaiFqV13u 9x2z4aFkLcGEaPBFuFtWDdIgAeuSLiDGlL9GaAMAcGTBU4UT3pSoC6qKOhtYEMZJ qhBHg3PqJw7y/FQiQoHVfkNzMvYdcD5csai4ZgrTyd7xchlAVhHyiLL1aQMX1V1Q PBCHMcG3aX0RR9YaFgQwzOgbhCrzrHzbTFI8RukgqDxQAXC1Gjx7n56o1IKsRYmS pZCe4gT5BPyVpfjVmBzpYgSaCCnUMi4lSkAlRNC0EnUxtqgZua+Y6TUH8Fp88jQH ycuwxDo= =Q79O -----END PGP SIGNATURE----- gpgsig -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEiK/NIGsWEZVxh/FrYKtH/8kJUicFAmfbLL0ACgkQYKtH/8kJ UidO5A//UN133qnDd+vQEx3cxq15FTMiUd7AkUTRfI6bpEMrXyZNITrXH5TAWsTH UKBZVooZ1/AooIHpI59xDgqEZQXzLqesF7OSIkPZ/6LkSUGrO8IFbUcxaf4c+qWa np0AjzcKUX44LOi/0iL0II/VpZxr9wIrB/a1nGR8FIfIYlqMegLfXy9J80OR4ov3 s3BwKIGK8+MTJPEqLQcXXFSOyXvZt12vy9XOALXVTuo5KUL34cMOkGi43CaC7t9Y zvQbZQ4EVP6uhOSNlSK8J3vxH7XEDoh46AiEdlyXKKmMbu6tc+FchznBZnjt10Q2 1dShBuu9G6OL3HD/CtMMlz1taOaTrCNmpgh4gNyKIOUnHKn7ESzpvnoVFtTZMlYT 0EzqQ+U0jnDAr89tqtclBcc9i4gsit+p6VHaru0Z1+PYfNDQoiAY2rnF2nwa1w/F 98VLV7ucRMONYWqx3tg0UW2JVEkG0ZJ8qpTrKMdYkTFO9fVab3IOWQCoAC9kjGPZ LGVa0T0XEvFE/e/ohpqzP7vset5xSAkjworeRmqUVJ9srbxACB7RAPq4CSZC4LKr bM9+pbYKMa7RXjAJ/RGYGZSTS4LNXKZtbsfa8S9q+8p7Ox7qvygdHz0YQQ9n5w6z n5sigVRb7Q/dNwFMXfBU5wiEGWg1gMworDoADuLGkr5xy5qVKKw= =56ER -----END PGP SIGNATURE----- Merge tag 'sunxi-dt-for-6.15' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into soc/dt Allwinner device tree changes for 6.15 - New board support: NetCube Systems Kumquat - Enable USB and LED on Anbernic RG35XX - Fix reboot GPIO detection logic on Anbernic RG35XX - Disable (non-existent) battery thermistor on Anbernic RG35XX - Add CPU OPP table for A100 * tag 'sunxi-dt-for-6.15' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux: arm64: dts: allwinner: a100: Add CPU Operating Performance Points table arm64: dts: allwinner: rg35xx: Add no-thermistor property for battery arm64: dts: allwinner: h700: Add USB Host for RG35XX-H arm64: dts: allwinner: h700: Add LED1 for Anbernic RG35XX arm64: dts: allwinner: h700: Set cpusldo to always-on for RG35XX ARM: dts: sunxi: add support for NetCube Systems Kumquat ARM: dts: sunxi: add uart1_pe pinctrl for sun8i-v3s dt-bindings: arm: sunxi: Add NetCube Systems Kumquat board dt-bindings: vendor-prefixes: Add NetCube Systems Austria name Link: https://lore.kernel.org/r/Z9LTOHJDY2p0lNG0@wens.tw Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
commit
877fb9a3ca
|
|
@ -589,6 +589,11 @@ properties:
|
|||
- const: emlid,neutis-n5h3
|
||||
- const: allwinner,sun8i-h3
|
||||
|
||||
- description: NetCube Systems Kumquat
|
||||
items:
|
||||
- const: netcube,kumquat
|
||||
- const: allwinner,sun8i-v3s
|
||||
|
||||
- description: NextThing Co. CHIP
|
||||
items:
|
||||
- const: nextthing,chip
|
||||
|
|
|
|||
|
|
@ -1033,6 +1033,8 @@ patternProperties:
|
|||
description: Neofidelity Inc.
|
||||
"^neonode,.*":
|
||||
description: Neonode Inc.
|
||||
"^netcube,.*":
|
||||
description: NetCube Systems Austria
|
||||
"^netgear,.*":
|
||||
description: NETGEAR
|
||||
"^netlogic,.*":
|
||||
|
|
|
|||
|
|
@ -199,6 +199,7 @@ DTC_FLAGS_sun8i-h3-nanopi-r1 := -@
|
|||
DTC_FLAGS_sun8i-h3-orangepi-pc := -@
|
||||
DTC_FLAGS_sun8i-h3-bananapi-m2-plus-v1.2 := -@
|
||||
DTC_FLAGS_sun8i-h3-orangepi-pc-plus := -@
|
||||
DTC_FLAGS_sun8i-v3s-netcube-kumquat := -@
|
||||
dtb-$(CONFIG_MACH_SUN8I) += \
|
||||
sun8i-a23-evb.dtb \
|
||||
sun8i-a23-gt90h-v4.dtb \
|
||||
|
|
@ -261,6 +262,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
|
|||
sun8i-v3s-anbernic-rg-nano.dtb \
|
||||
sun8i-v3s-licheepi-zero.dtb \
|
||||
sun8i-v3s-licheepi-zero-dock.dtb \
|
||||
sun8i-v3s-netcube-kumquat.dtb \
|
||||
sun8i-v40-bananapi-m2-berry.dtb
|
||||
dtb-$(CONFIG_MACH_SUN9I) += \
|
||||
sun9i-a80-optimus.dtb \
|
||||
|
|
|
|||
276
arch/arm/boot/dts/allwinner/sun8i-v3s-netcube-kumquat.dts
Normal file
276
arch/arm/boot/dts/allwinner/sun8i-v3s-netcube-kumquat.dts
Normal file
|
|
@ -0,0 +1,276 @@
|
|||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (C) 2025 Lukas Schmid <lukas.schmid@netcube.li>
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include "sun8i-v3s.dtsi"
|
||||
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/leds/common.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/{
|
||||
model = "NetCube Systems Kumquat";
|
||||
compatible = "netcube,kumquat", "allwinner,sun8i-v3s";
|
||||
|
||||
aliases {
|
||||
serial0 = &uart0;
|
||||
ethernet0 = &emac;
|
||||
rtc0 = &ds3232;
|
||||
rtc1 = &rtc; /* not battery backed */
|
||||
};
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
|
||||
/* 40 MHz Crystal Oscillator on PCB */
|
||||
clk_can0: clock-can0 {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
autorepeat;
|
||||
|
||||
key-user {
|
||||
label = "GPIO Key User";
|
||||
linux,code = <KEY_PROG1>;
|
||||
gpios = <&pio 1 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PB2 */
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
led-heartbeat {
|
||||
gpios = <&pio 4 4 GPIO_ACTIVE_HIGH>; /* PE4 */
|
||||
linux,default-trigger = "heartbeat";
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_HEARTBEAT;
|
||||
};
|
||||
|
||||
led-mmc0-act {
|
||||
gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
|
||||
linux,default-trigger = "mmc0";
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
function = LED_FUNCTION_DISK;
|
||||
};
|
||||
};
|
||||
|
||||
/* EA3036C Switching 3 Channel Regulator - Channel 2 */
|
||||
reg_vcc3v3: regulator-3v3 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc3v3";
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
vin-supply = <®_vcc5v0>;
|
||||
};
|
||||
|
||||
/* K7805-1000R3 Switching Regulator supplied from main 12/24V terminal block */
|
||||
reg_vcc5v0: regulator-5v0 {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "vcc5v0";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&codec {
|
||||
allwinner,audio-routing =
|
||||
"Headphone", "HP",
|
||||
"Headphone", "HPCOM",
|
||||
"MIC1", "Mic",
|
||||
"Mic", "HBIAS";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ehci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&emac {
|
||||
allwinner,leds-active-low;
|
||||
nvmem-cells = <ð0_macaddress>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
|
||||
eeprom0: eeprom@50 {
|
||||
compatible = "atmel,24c02"; /* actually it's a 24AA02E48 */
|
||||
reg = <0x50>;
|
||||
pagesize = <16>;
|
||||
read-only;
|
||||
vcc-supply = <®_vcc3v3>;
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
eth0_macaddress: macaddress@fa {
|
||||
reg = <0xfa 0x06>;
|
||||
};
|
||||
};
|
||||
|
||||
tusb320: typec@60 {
|
||||
compatible = "ti,tusb320";
|
||||
reg = <0x60>;
|
||||
interrupts-extended = <&pio 1 5 IRQ_TYPE_LEVEL_LOW>; /* PB5 */
|
||||
};
|
||||
|
||||
ds3232: rtc@68 {
|
||||
compatible = "dallas,ds3232";
|
||||
reg = <0x68>;
|
||||
};
|
||||
};
|
||||
|
||||
/* Exposed as the Flash/SD Header on the board */
|
||||
&mmc0 {
|
||||
vmmc-supply = <®_vcc3v3>;
|
||||
bus-width = <4>;
|
||||
broken-cd;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* Connected to the on-board ESP32 */
|
||||
&mmc1 {
|
||||
vmmc-supply = <®_vcc3v3>;
|
||||
bus-width = <4>;
|
||||
broken-cd;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&ohci {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* Disable external 32k osc as it is broken on current revision */
|
||||
&osc32k {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&pio {
|
||||
vcc-pb-supply = <®_vcc3v3>;
|
||||
vcc-pc-supply = <®_vcc3v3>;
|
||||
vcc-pe-supply = <®_vcc3v3>;
|
||||
vcc-pf-supply = <®_vcc3v3>;
|
||||
vcc-pg-supply = <®_vcc3v3>;
|
||||
|
||||
gpio-line-names = "", "", "", "", // PA
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"CAN_nCS", "CAN_nINT", "USER_SW", "PB3", // PB
|
||||
"USB_ID", "USBC_nINT", "I2C0_SCL", "I2C0_SDA",
|
||||
"UART0_TX", "UART0_RX", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"SPI_MISO", "SPI_SCK", "FLASH_nCS", "SPI_MOSI", // PC
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "", // PD
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"Q12", "Q11", "Q10", "Q9", // PE
|
||||
"LED_SYS0", "I1", "Q1", "Q2",
|
||||
"I2", "I3", "Q3", "Q4",
|
||||
"I4", "I5", "Q5", "Q6",
|
||||
"I6", "I7", "Q7", "Q8",
|
||||
"I8", "UART1_TXD", "UART1_RXD", "ESP_nRST",
|
||||
"ESP_nBOOT", "", "", "",
|
||||
"", "", "", "",
|
||||
"SD_D1", "SD_D0", "SD_CLK", "SD_CMD", // PF
|
||||
"SD_D3", "SD_D2", "LED_SYS1", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"ESP_CLK", "ESP_CMD", "ESP_D0", "ESP_D1", // PG
|
||||
"ESP_D2", "ESP_D3", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "",
|
||||
"", "", "", "";
|
||||
};
|
||||
|
||||
/* Disable external 32k osc as it is broken on current revision */
|
||||
&rtc {
|
||||
/delete-property/ clocks;
|
||||
};
|
||||
|
||||
/* Exposed as a USB-C connector with USB-Serial converter */
|
||||
&uart0 {
|
||||
pinctrl-0 = <&uart0_pb_pins>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/* Connected to the Bootloader/Console of the ESP32 */
|
||||
&uart1 {
|
||||
pinctrl-0 = <&uart1_pe_pins>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usb_otg {
|
||||
extcon = <&tusb320 0>;
|
||||
dr_mode = "otg";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&usbphy {
|
||||
usb0_id_det-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
cs-gpios = <0>, <&pio 1 0 GPIO_ACTIVE_LOW>; /* PB0 */
|
||||
status = "okay";
|
||||
|
||||
flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
label = "firmware";
|
||||
spi-max-frequency = <40000000>;
|
||||
};
|
||||
|
||||
can@1 {
|
||||
compatible = "microchip,mcp2518fd";
|
||||
reg = <1>;
|
||||
clocks = <&clk_can0>;
|
||||
interrupts-extended = <&pio 1 1 IRQ_TYPE_LEVEL_LOW>; /* PB1 */
|
||||
spi-max-frequency = <20000000>;
|
||||
vdd-supply = <®_vcc3v3>;
|
||||
xceiver-supply = <®_vcc3v3>;
|
||||
};
|
||||
};
|
||||
|
|
@ -416,6 +416,12 @@ uart0_pb_pins: uart0-pb-pins {
|
|||
function = "uart0";
|
||||
};
|
||||
|
||||
/omit-if-no-ref/
|
||||
uart1_pe_pins: uart1-pe-pins {
|
||||
pins = "PE21", "PE22";
|
||||
function = "uart1";
|
||||
};
|
||||
|
||||
uart2_pins: uart2-pins {
|
||||
pins = "PB0", "PB1";
|
||||
function = "uart2";
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
/dts-v1/;
|
||||
|
||||
#include "sun50i-a100.dtsi"
|
||||
#include "sun50i-a100-cpu-opp.dtsi"
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
|
|
@ -38,6 +39,10 @@ &mmc2 {
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
cpu-supply = <®_dcdc2>;
|
||||
};
|
||||
|
||||
&pio {
|
||||
vcc-pb-supply = <®_dcdc1>;
|
||||
vcc-pc-supply = <®_eldo1>;
|
||||
|
|
|
|||
90
arch/arm64/boot/dts/allwinner/sun50i-a100-cpu-opp.dtsi
Normal file
90
arch/arm64/boot/dts/allwinner/sun50i-a100-cpu-opp.dtsi
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
// Copyright (c) 2020 Yangtao Li <frank@allwinnertech.com>
|
||||
// Copyright (c) 2020 ShuoSheng Huang <huangshuosheng@allwinnertech.com>
|
||||
|
||||
/ {
|
||||
cpu_opp_table: opp-table-cpu {
|
||||
compatible = "allwinner,sun50i-a100-operating-points";
|
||||
nvmem-cells = <&cpu_speed_grade>;
|
||||
opp-shared;
|
||||
|
||||
opp-408000000 {
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
opp-hz = /bits/ 64 <408000000>;
|
||||
|
||||
opp-microvolt-speed0 = <900000>;
|
||||
opp-microvolt-speed1 = <900000>;
|
||||
opp-microvolt-speed2 = <900000>;
|
||||
};
|
||||
|
||||
opp-600000000 {
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
opp-hz = /bits/ 64 <600000000>;
|
||||
|
||||
opp-microvolt-speed0 = <900000>;
|
||||
opp-microvolt-speed1 = <900000>;
|
||||
opp-microvolt-speed2 = <900000>;
|
||||
};
|
||||
|
||||
opp-816000000 {
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
opp-hz = /bits/ 64 <816000000>;
|
||||
|
||||
opp-microvolt-speed0 = <940000>;
|
||||
opp-microvolt-speed1 = <900000>;
|
||||
opp-microvolt-speed2 = <900000>;
|
||||
};
|
||||
|
||||
opp-1080000000 {
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
opp-hz = /bits/ 64 <1080000000>;
|
||||
|
||||
opp-microvolt-speed0 = <1020000>;
|
||||
opp-microvolt-speed1 = <980000>;
|
||||
opp-microvolt-speed2 = <950000>;
|
||||
};
|
||||
|
||||
opp-1200000000 {
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
opp-hz = /bits/ 64 <1200000000>;
|
||||
|
||||
opp-microvolt-speed0 = <1100000>;
|
||||
opp-microvolt-speed1 = <1020000>;
|
||||
opp-microvolt-speed2 = <1000000>;
|
||||
};
|
||||
|
||||
opp-1320000000 {
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
opp-hz = /bits/ 64 <1320000000>;
|
||||
|
||||
opp-microvolt-speed0 = <1160000>;
|
||||
opp-microvolt-speed1 = <1060000>;
|
||||
opp-microvolt-speed2 = <1030000>;
|
||||
};
|
||||
|
||||
opp-1464000000 {
|
||||
clock-latency-ns = <244144>; /* 8 32k periods */
|
||||
opp-hz = /bits/ 64 <1464000000>;
|
||||
|
||||
opp-microvolt-speed0 = <1180000>;
|
||||
opp-microvolt-speed1 = <1180000>;
|
||||
opp-microvolt-speed2 = <1130000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
operating-points-v2 = <&cpu_opp_table>;
|
||||
};
|
||||
|
||||
&cpu1 {
|
||||
operating-points-v2 = <&cpu_opp_table>;
|
||||
};
|
||||
|
||||
&cpu2 {
|
||||
operating-points-v2 = <&cpu_opp_table>;
|
||||
};
|
||||
|
||||
&cpu3 {
|
||||
operating-points-v2 = <&cpu_opp_table>;
|
||||
};
|
||||
|
|
@ -23,6 +23,7 @@ cpu0: cpu@0 {
|
|||
device_type = "cpu";
|
||||
reg = <0x0>;
|
||||
enable-method = "psci";
|
||||
clocks = <&ccu CLK_CPUX>;
|
||||
};
|
||||
|
||||
cpu1: cpu@1 {
|
||||
|
|
@ -30,6 +31,7 @@ cpu1: cpu@1 {
|
|||
device_type = "cpu";
|
||||
reg = <0x1>;
|
||||
enable-method = "psci";
|
||||
clocks = <&ccu CLK_CPUX>;
|
||||
};
|
||||
|
||||
cpu2: cpu@2 {
|
||||
|
|
@ -37,6 +39,7 @@ cpu2: cpu@2 {
|
|||
device_type = "cpu";
|
||||
reg = <0x2>;
|
||||
enable-method = "psci";
|
||||
clocks = <&ccu CLK_CPUX>;
|
||||
};
|
||||
|
||||
cpu3: cpu@3 {
|
||||
|
|
@ -44,6 +47,7 @@ cpu3: cpu@3 {
|
|||
device_type = "cpu";
|
||||
reg = <0x3>;
|
||||
enable-method = "psci";
|
||||
clocks = <&ccu CLK_CPUX>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -175,6 +179,10 @@ efuse@3006000 {
|
|||
ths_calibration: calib@14 {
|
||||
reg = <0x14 8>;
|
||||
};
|
||||
|
||||
cpu_speed_grade: cpu-speed-grade@1c {
|
||||
reg = <0x1c 0x2>;
|
||||
};
|
||||
};
|
||||
|
||||
watchdog@30090a0 {
|
||||
|
|
|
|||
|
|
@ -167,6 +167,12 @@ led-0 {
|
|||
gpios = <&pio 8 12 GPIO_ACTIVE_HIGH>; /* PI12 */
|
||||
default-state = "on";
|
||||
};
|
||||
|
||||
led-1 {
|
||||
function = LED_FUNCTION_STATUS;
|
||||
color = <LED_COLOR_ID_GREEN>;
|
||||
gpios = <&pio 8 11 GPIO_ACTIVE_HIGH>; /* PI11 */
|
||||
};
|
||||
};
|
||||
|
||||
reg_vcc5v: regulator-vcc5v { /* USB-C power input */
|
||||
|
|
@ -237,6 +243,7 @@ axp_adc: adc {
|
|||
battery_power: battery-power {
|
||||
compatible = "x-powers,axp717-battery-power-supply";
|
||||
monitored-battery = <&battery>;
|
||||
x-powers,no-thermistor;
|
||||
};
|
||||
|
||||
regulators {
|
||||
|
|
@ -328,8 +335,17 @@ reg_boost: boost {
|
|||
regulator-name = "boost";
|
||||
};
|
||||
|
||||
/*
|
||||
* Regulator function is unknown, but reading
|
||||
* GPIO values in bootloader is inconsistent
|
||||
* on reboot if this is disabled. Setting to
|
||||
* default value from regulator OTP mem.
|
||||
*/
|
||||
reg_cpusldo: cpusldo {
|
||||
/* unused */
|
||||
regulator-always-on;
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <900000>;
|
||||
regulator-max-microvolt = <900000>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -71,6 +71,25 @@ gpio_mux: mux-controller {
|
|||
<&pio 8 2 GPIO_ACTIVE_LOW>;
|
||||
#mux-control-cells = <0>;
|
||||
};
|
||||
|
||||
reg_vcc3v8_usb: regulator-vcc3v8-usb {
|
||||
compatible = "regulator-fixed";
|
||||
enable-active-high;
|
||||
gpio = <&pio 4 5 GPIO_ACTIVE_HIGH>; /* PE5 */
|
||||
regulator-min-microvolt = <3800000>;
|
||||
regulator-max-microvolt = <3800000>;
|
||||
regulator-name = "vcc3v8-usb";
|
||||
};
|
||||
|
||||
reg_vcc5v0_usb: regulator-vcc5v0-usb {
|
||||
compatible = "regulator-fixed";
|
||||
enable-active-high;
|
||||
gpio = <&pio 8 7 GPIO_ACTIVE_HIGH>; /* PI7 */
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
regulator-name = "vcc5v0-usb";
|
||||
vin-supply = <®_vcc3v8_usb>;
|
||||
};
|
||||
};
|
||||
|
||||
&gpadc {
|
||||
|
|
@ -113,3 +132,7 @@ joy_mux_pin: joy-mux-pin {
|
|||
function = "gpio_out";
|
||||
};
|
||||
};
|
||||
|
||||
&usbphy {
|
||||
usb1_vbus-supply = <®_vcc5v0_usb>;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user