Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
@@ -0,0 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_ARCH_ACTIONS) += \
owl-s500-cubieboard6.dtb \
owl-s500-guitar-bb-rev-b.dtb \
owl-s500-labrador-base-m.dtb \
owl-s500-roseapplepi.dtb \
owl-s500-sparky.dtb
@@ -0,0 +1,36 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Cubietech CubieBoard6
*
* Copyright (c) 2017 Andreas Färber
*/
/dts-v1/;
#include "owl-s500.dtsi"
/ {
compatible = "cubietech,cubieboard6", "actions,s500";
model = "CubieBoard6";
aliases {
serial3 = &uart3;
};
chosen {
stdout-path = "serial3:115200n8";
};
memory@0 {
device_type = "memory";
reg = <0x0 0x80000000>;
};
};
&timer {
clocks = <&hosc>;
};
&uart3 {
status = "okay";
};
@@ -0,0 +1,25 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2016-2017 Andreas Färber
*/
/dts-v1/;
#include "owl-s500-guitar.dtsi"
/ {
compatible = "lemaker,guitar-bb-rev-b", "lemaker,guitar", "actions,s500";
model = "LeMaker Guitar Base Board rev. B";
aliases {
serial3 = &uart3;
};
chosen {
stdout-path = "serial3:115200n8";
};
};
&uart3 {
status = "okay";
};
@@ -0,0 +1,21 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* LeMaker Guitar SoM
*
* Copyright (c) 2016-2017 Andreas Färber
*/
#include "owl-s500.dtsi"
/ {
compatible = "lemaker,guitar", "actions,s500";
memory@0 {
device_type = "memory";
reg = <0x0 0x40000000>;
};
};
&timer {
clocks = <&hosc>;
};
@@ -0,0 +1,28 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Caninos Labrador Base Board
*
* Copyright (c) 2019-2020 Matheus Castello
*/
/dts-v1/;
#include "owl-s500-labrador-v2.dtsi"
/ {
model = "Caninos Labrador Core v2 on Labrador Base-M v1";
compatible = "caninos,labrador-base-m",
"caninos,labrador-v2", "actions,s500";
aliases {
serial3 = &uart3;
};
chosen {
stdout-path = "serial3:115200n8";
};
};
&uart3 {
status = "okay";
};
@@ -0,0 +1,22 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Caninos Labrador SoM V2
*
* Copyright (c) 2019-2020 Matheus Castello
*/
#include "owl-s500.dtsi"
/ {
model = "Caninos Labrador Core V2.1";
compatible = "caninos,labrador-v2", "actions,s500";
memory@0 {
device_type = "memory";
reg = <0x0 0x80000000>;
};
};
&timer {
clocks = <&hosc>;
};
@@ -0,0 +1,299 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Roseapple Pi
*
* Copyright (C) 2020-2021 Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
*/
/dts-v1/;
#include "owl-s500.dtsi"
/ {
compatible = "roseapplepi,roseapplepi", "actions,s500";
model = "Roseapple Pi";
aliases {
mmc0 = &mmc0;
serial2 = &uart2;
};
chosen {
stdout-path = "serial2:115200n8";
};
memory@0 {
device_type = "memory";
reg = <0x0 0x80000000>; /* 2GB */
};
syspwr: regulator-5v0 {
compatible = "regulator-fixed";
regulator-name = "SYSPWR";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
};
&cpu0 {
cpu0-supply = <&vdd_cpu>;
};
&i2c0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins>;
atc260x: pmic@65 {
compatible = "actions,atc2603c";
reg = <0x65>;
interrupt-parent = <&sirq>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
reset-time-sec = <6>;
regulators {
compatible = "actions,atc2603c-regulator";
dcdc1-supply = <&syspwr>;
dcdc2-supply = <&syspwr>;
dcdc3-supply = <&syspwr>;
ldo1-supply = <&syspwr>;
ldo2-supply = <&syspwr>;
ldo3-supply = <&syspwr>;
ldo5-supply = <&syspwr>;
ldo6-supply = <&syspwr>;
ldo7-supply = <&syspwr>;
ldo8-supply = <&syspwr>;
ldo11-supply = <&syspwr>;
ldo12-supply = <&syspwr>;
switchldo1-supply = <&vcc>;
vdd_cpu: dcdc1 {
regulator-name = "VDD_CPU";
regulator-min-microvolt = <700000>;
regulator-max-microvolt = <1400000>;
regulator-always-on;
};
vddq: dcdc2 {
regulator-name = "VDDQ";
regulator-min-microvolt = <1300000>;
regulator-max-microvolt = <2150000>;
regulator-always-on;
regulator-boot-on;
};
vcc: dcdc3 {
regulator-name = "VCC";
regulator-min-microvolt = <2600000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
vcc_3v3: ldo1 {
regulator-name = "VCC_3V3";
regulator-min-microvolt = <2600000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
avcc: ldo2 {
regulator-name = "AVCC";
regulator-min-microvolt = <2600000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
vdd_1v8: ldo3 {
regulator-name = "VDD_1V8";
regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <2000000>;
regulator-always-on;
};
vcc_3v1: ldo5 {
regulator-name = "VCC_3V1";
regulator-min-microvolt = <2600000>;
regulator-max-microvolt = <3300000>;
};
avdd: ldo6 {
regulator-name = "AVDD";
regulator-min-microvolt = <700000>;
regulator-max-microvolt = <1400000>;
regulator-always-on;
};
sens_1v8: ldo7 {
regulator-name = "SENS_1V8";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
ldo8: ldo8 {
regulator-name = "LDO8";
regulator-min-microvolt = <2300000>;
regulator-max-microvolt = <3300000>;
};
svcc: ldo11 {
regulator-name = "SVCC";
regulator-min-microvolt = <2600000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
rtc_vdd: ldo12 {
regulator-name = "RTC_VDD";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
sd_vcc: switchldo1 {
regulator-name = "SD_VCC";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
regulator-boot-on;
};
};
};
};
&i2c1 {
status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
};
&i2c2 {
status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins>;
};
&pinctrl {
i2c0_pins: i2c0-pins {
pinmux {
groups = "i2c0_mfp";
function = "i2c0";
};
pinconf {
pins = "i2c0_sclk", "i2c0_sdata";
bias-pull-up;
};
};
i2c1_pins: i2c1-pins {
pinconf {
pins = "i2c1_sclk", "i2c1_sdata";
bias-pull-up;
};
};
i2c2_pins: i2c2-pins {
pinconf {
pins = "i2c2_sclk", "i2c2_sdata";
bias-pull-up;
};
};
mmc0_pins: mmc0-pins {
pinmux {
groups = "sd0_d0_mfp", "sd0_d1_mfp", "sd0_d2_d3_mfp",
"sd0_cmd_mfp", "sd0_clk_mfp";
function = "sd0";
};
drv-pinconf {
groups = "sd0_d0_d3_drv", "sd0_cmd_drv", "sd0_clk_drv";
drive-strength = <8>;
};
bias0-pinconf {
pins = "sd0_d0", "sd0_d1", "sd0_d2",
"sd0_d3", "sd0_cmd";
bias-pull-up;
};
bias1-pinconf {
pins = "sd0_clk";
bias-pull-down;
};
};
ethernet_pins: ethernet-pins {
eth_rmii-pinmux {
groups = "rmii_txd0_mfp", "rmii_txd1_mfp",
"rmii_rxd0_mfp", "rmii_rxd1_mfp",
"rmii_txen_mfp", "rmii_rxen_mfp",
"rmii_crs_dv_mfp", "rmii_ref_clk_mfp";
function = "eth_rmii";
};
phy_clk-pinmux {
groups = "clko_25m_mfp";
function = "clko_25m";
};
ref_clk-pinconf {
groups = "rmii_ref_clk_drv";
drive-strength = <2>;
};
};
};
/* uSD */
&mmc0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
no-sdio;
no-mmc;
no-1-8-v;
cd-gpios = <&pinctrl 117 GPIO_ACTIVE_LOW>;
bus-width = <4>;
vmmc-supply = <&sd_vcc>;
vqmmc-supply = <&sd_vcc>;
};
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ethernet_pins>;
phy-mode = "rmii";
phy-handle = <&eth_phy>;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
reset-gpios = <&pinctrl 88 GPIO_ACTIVE_LOW>; /* GPIOC24 */
reset-delay-us = <10000>;
reset-post-delay-us = <150000>;
eth_phy: ethernet-phy@3 {
reg = <0x3>;
max-speed = <100>;
interrupt-parent = <&sirq>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
};
};
};
&twd_timer {
status = "okay";
};
&timer {
clocks = <&hosc>;
};
&uart2 {
status = "okay";
};
@@ -0,0 +1,36 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Allo.com Sparky
*
* Copyright (c) 2017 Andreas Färber
*/
/dts-v1/;
#include "owl-s500.dtsi"
/ {
compatible = "allo,sparky", "actions,s500";
model = "Allo.com Sparky";
aliases {
serial3 = &uart3;
};
chosen {
stdout-path = "serial3:115200n8";
};
memory@0 {
device_type = "memory";
reg = <0x0 0x40000000>; /* 1 or 2 GiB */
};
};
&timer {
clocks = <&hosc>;
};
&uart3 {
status = "okay";
};
@@ -0,0 +1,338 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Actions Semi S500 SoC
*
* Copyright (c) 2016-2017 Andreas Färber
*/
#include <dt-bindings/clock/actions,s500-cmu.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/owl-s500-powergate.h>
#include <dt-bindings/reset/actions,s500-reset.h>
/ {
compatible = "actions,s500";
interrupt-parent = <&gic>;
#address-cells = <1>;
#size-cells = <1>;
aliases {
};
chosen {
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu0: cpu@0 {
device_type = "cpu";
compatible = "arm,cortex-a9";
reg = <0x0>;
enable-method = "actions,s500-smp";
};
cpu1: cpu@1 {
device_type = "cpu";
compatible = "arm,cortex-a9";
reg = <0x1>;
enable-method = "actions,s500-smp";
};
cpu2: cpu@2 {
device_type = "cpu";
compatible = "arm,cortex-a9";
reg = <0x2>;
enable-method = "actions,s500-smp";
power-domains = <&sps S500_PD_CPU2>;
};
cpu3: cpu@3 {
device_type = "cpu";
compatible = "arm,cortex-a9";
reg = <0x3>;
enable-method = "actions,s500-smp";
power-domains = <&sps S500_PD_CPU3>;
};
};
arm-pmu {
compatible = "arm,cortex-a9-pmu";
interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
};
hosc: hosc {
compatible = "fixed-clock";
clock-frequency = <24000000>;
#clock-cells = <0>;
};
losc: losc {
compatible = "fixed-clock";
clock-frequency = <32768>;
#clock-cells = <0>;
};
soc {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges;
scu: scu@b0020000 {
compatible = "arm,cortex-a9-scu";
reg = <0xb0020000 0x100>;
};
global_timer: timer@b0020200 {
compatible = "arm,cortex-a9-global-timer";
reg = <0xb0020200 0x100>;
interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
status = "disabled";
};
twd_timer: timer@b0020600 {
compatible = "arm,cortex-a9-twd-timer";
reg = <0xb0020600 0x20>;
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
status = "disabled";
};
twd_wdt: wdt@b0020620 {
compatible = "arm,cortex-a9-twd-wdt";
reg = <0xb0020620 0xe0>;
interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
status = "disabled";
};
gic: interrupt-controller@b0021000 {
compatible = "arm,cortex-a9-gic";
reg = <0xb0021000 0x1000>,
<0xb0020100 0x0100>;
interrupt-controller;
#interrupt-cells = <3>;
};
l2: cache-controller@b0022000 {
compatible = "arm,pl310-cache";
reg = <0xb0022000 0x1000>;
cache-unified;
cache-level = <2>;
interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
arm,tag-latency = <3 3 2>;
arm,data-latency = <5 3 3>;
};
uart0: serial@b0120000 {
compatible = "actions,s500-uart", "actions,owl-uart";
reg = <0xb0120000 0x2000>;
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_UART0>;
status = "disabled";
};
uart1: serial@b0122000 {
compatible = "actions,s500-uart", "actions,owl-uart";
reg = <0xb0122000 0x2000>;
interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_UART1>;
status = "disabled";
};
uart2: serial@b0124000 {
compatible = "actions,s500-uart", "actions,owl-uart";
reg = <0xb0124000 0x2000>;
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_UART2>;
status = "disabled";
};
uart3: serial@b0126000 {
compatible = "actions,s500-uart", "actions,owl-uart";
reg = <0xb0126000 0x2000>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_UART3>;
status = "disabled";
};
uart4: serial@b0128000 {
compatible = "actions,s500-uart", "actions,owl-uart";
reg = <0xb0128000 0x2000>;
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_UART4>;
status = "disabled";
};
uart5: serial@b012a000 {
compatible = "actions,s500-uart", "actions,owl-uart";
reg = <0xb012a000 0x2000>;
interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_UART5>;
status = "disabled";
};
uart6: serial@b012c000 {
compatible = "actions,s500-uart", "actions,owl-uart";
reg = <0xb012c000 0x2000>;
interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_UART6>;
status = "disabled";
};
cmu: clock-controller@b0160000 {
compatible = "actions,s500-cmu";
reg = <0xb0160000 0x8000>;
clocks = <&hosc>, <&losc>;
#clock-cells = <1>;
#reset-cells = <1>;
};
i2c0: i2c@b0170000 {
compatible = "actions,s500-i2c";
reg = <0xb0170000 0x4000>;
clocks = <&cmu CLK_I2C0>;
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c1: i2c@b0174000 {
compatible = "actions,s500-i2c";
reg = <0xb0174000 0x4000>;
clocks = <&cmu CLK_I2C1>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c2: i2c@b0178000 {
compatible = "actions,s500-i2c";
reg = <0xb0178000 0x4000>;
clocks = <&cmu CLK_I2C2>;
interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c3: i2c@b017c000 {
compatible = "actions,s500-i2c";
reg = <0xb017c000 0x4000>;
clocks = <&cmu CLK_I2C3>;
interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
sirq: interrupt-controller@b01b0200 {
compatible = "actions,s500-sirq";
reg = <0xb01b0200 0x4>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>, /* SIRQ0 */
<GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>, /* SIRQ1 */
<GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; /* SIRQ2 */
};
timer: timer@b0168000 {
compatible = "actions,s500-timer";
reg = <0xb0168000 0x8000>;
interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "2hz0", "2hz1", "timer0", "timer1";
};
sps: power-controller@b01b0100 {
compatible = "actions,s500-sps";
reg = <0xb01b0100 0x100>;
#power-domain-cells = <1>;
};
pinctrl: pinctrl@b01b0000 {
compatible = "actions,s500-pinctrl";
reg = <0xb01b0000 0x40>, /* GPIO */
<0xb01b0040 0x10>, /* Multiplexing Control */
<0xb01b0060 0x18>, /* PAD Control */
<0xb01b0080 0xc>; /* PAD Drive Capacity */
clocks = <&cmu CLK_GPIO>;
gpio-controller;
gpio-ranges = <&pinctrl 0 0 132>;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>, /* GPIOA */
<GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>, /* GPIOB */
<GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>, /* GPIOC */
<GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>, /* GPIOD */
<GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; /* GPIOE */
};
dma: dma-controller@b0260000 {
compatible = "actions,s500-dma";
reg = <0xb0260000 0xd00>;
interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
#dma-cells = <1>;
dma-channels = <12>;
dma-requests = <46>;
clocks = <&cmu CLK_DMAC>;
power-domains = <&sps S500_PD_DMA>;
};
mmc0: mmc@b0230000 {
compatible = "actions,s500-mmc", "actions,owl-mmc";
reg = <0xb0230000 0x38>;
interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_SD0>;
resets = <&cmu RESET_SD0>;
dmas = <&dma 2>;
dma-names = "mmc";
status = "disabled";
};
mmc1: mmc@b0234000 {
compatible = "actions,s500-mmc", "actions,owl-mmc";
reg = <0xb0234000 0x38>;
interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_SD1>;
resets = <&cmu RESET_SD1>;
dmas = <&dma 3>;
dma-names = "mmc";
status = "disabled";
};
mmc2: mmc@b0238000 {
compatible = "actions,s500-mmc", "actions,owl-mmc";
reg = <0xb0238000 0x38>;
interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_SD2>;
resets = <&cmu RESET_SD2>;
dmas = <&dma 4>;
dma-names = "mmc";
status = "disabled";
};
ethernet: ethernet@b0310000 {
compatible = "actions,s500-emac", "actions,owl-emac";
reg = <0xb0310000 0x10000>;
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu CLK_ETHERNET>, <&cmu CLK_RMII_REF>;
clock-names = "eth", "rmii";
resets = <&cmu RESET_ETHERNET>;
status = "disabled";
};
};
};