Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/gpl2/dts/dist/arch/riscv/boot/dts Import dts fr...



details:   https://anonhg.NetBSD.org/src/rev/0676224e9a36
branches:  trunk
changeset: 1025574:0676224e9a36
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 13 08:40:13 2021 +0000

description:
Import dts from Linux 5.15

diffstat:

 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/Makefile                                |    6 +
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/Makefile                         |    5 +
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/canaan_kd233.dts                 |  152 +++
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/k210.dtsi                        |  459 ++++++++++
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/k210_generic.dts                 |   46 +
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/sipeed_maix_bit.dts              |  209 ++++
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/sipeed_maix_dock.dts             |  211 ++++
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/sipeed_maix_go.dts               |  219 ++++
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/sipeed_maixduino.dts             |  184 ++++
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/microchip/Makefile                      |    3 +
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts |   80 +
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi           |  329 +++++++
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/sifive/Makefile                         |    4 +
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/sifive/fu540-c000.dtsi                  |  286 ++++++
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/sifive/fu740-c000.dtsi                  |  326 +++++++
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts         |  106 ++
 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts         |  253 +++++
 17 files changed, 2878 insertions(+), 0 deletions(-)

diffs (truncated from 2946 to 300 lines):

diff -r 592722baa2fe -r 0676224e9a36 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/external/gpl2/dts/dist/arch/riscv/boot/dts/Makefile   Sat Nov 13 08:40:13 2021 +0000
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0
+subdir-y += sifive
+subdir-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += canaan
+subdir-y += microchip
+
+obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix /, $(subdir-y))
diff -r 592722baa2fe -r 0676224e9a36 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/Makefile    Sat Nov 13 08:40:13 2021 +0000
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+ifneq ($(CONFIG_SOC_CANAAN_K210_DTB_SOURCE),"")
+dtb-y += $(strip $(shell echo $(CONFIG_SOC_CANAAN_K210_DTB_SOURCE))).dtb
+obj-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += $(addsuffix .o, $(dtb-y))
+endif
diff -r 592722baa2fe -r 0676224e9a36 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/canaan_kd233.dts
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/canaan_kd233.dts    Sat Nov 13 08:40:13 2021 +0000
@@ -0,0 +1,152 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2019-20 Sean Anderson <seanga2%gmail.com@localhost>
+ * Copyright (C) 2020 Western Digital Corporation or its affiliates.
+ */
+
+/dts-v1/;
+
+#include "k210.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+       model = "Kendryte KD233";
+       compatible = "canaan,kendryte-kd233", "canaan,kendryte-k210";
+
+       chosen {
+               bootargs = "earlycon console=ttySIF0";
+               stdout-path = "serial0:115200n8";
+       };
+
+       gpio-leds {
+               compatible = "gpio-leds";
+
+               led0 {
+                       gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+               };
+
+               led1 {
+                       gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+               };
+       };
+
+       gpio-keys {
+               compatible = "gpio-keys";
+
+               key0 {
+                       label = "KEY0";
+                       linux,code = <BTN_0>;
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+               };
+       };
+};
+
+&fpioa {
+       pinctrl-0 = <&jtag_pinctrl>;
+       pinctrl-names = "default";
+       status = "okay";
+
+       jtag_pinctrl: jtag-pinmux {
+               pinmux = <K210_FPIOA(0, K210_PCF_JTAG_TCLK)>,
+                        <K210_FPIOA(1, K210_PCF_JTAG_TDI)>,
+                        <K210_FPIOA(2, K210_PCF_JTAG_TMS)>,
+                        <K210_FPIOA(3, K210_PCF_JTAG_TDO)>;
+       };
+
+       uarths_pinctrl: uarths-pinmux {
+               pinmux = <K210_FPIOA(4, K210_PCF_UARTHS_RX)>,
+                        <K210_FPIOA(5, K210_PCF_UARTHS_TX)>;
+       };
+
+       spi0_pinctrl: spi0-pinmux {
+               pinmux = <K210_FPIOA(6, K210_PCF_GPIOHS20)>,  /* cs */
+                        <K210_FPIOA(7, K210_PCF_SPI0_SCLK)>, /* wr */
+                        <K210_FPIOA(8, K210_PCF_GPIOHS21)>;  /* dc */
+       };
+
+       dvp_pinctrl: dvp-pinmux {
+               pinmux = <K210_FPIOA(9, K210_PCF_SCCB_SCLK)>,
+                        <K210_FPIOA(10, K210_PCF_SCCB_SDA)>,
+                        <K210_FPIOA(11, K210_PCF_DVP_RST)>,
+                        <K210_FPIOA(12, K210_PCF_DVP_VSYNC)>,
+                        <K210_FPIOA(13, K210_PCF_DVP_PWDN)>,
+                        <K210_FPIOA(14, K210_PCF_DVP_XCLK)>,
+                        <K210_FPIOA(15, K210_PCF_DVP_PCLK)>,
+                        <K210_FPIOA(17, K210_PCF_DVP_HSYNC)>;
+       };
+
+       gpiohs_pinctrl: gpiohs-pinmux {
+               pinmux = <K210_FPIOA(16, K210_PCF_GPIOHS0)>,
+                        <K210_FPIOA(20, K210_PCF_GPIOHS4)>, /* Rot. dip sw line 8 */
+                        <K210_FPIOA(21, K210_PCF_GPIOHS5)>, /* Rot. dip sw line 4 */
+                        <K210_FPIOA(22, K210_PCF_GPIOHS6)>, /* Rot. dip sw line 2 */
+                        <K210_FPIOA(23, K210_PCF_GPIOHS7)>, /* Rot. dip sw line 1 */
+                        <K210_FPIOA(24, K210_PCF_GPIOHS8)>,
+                        <K210_FPIOA(25, K210_PCF_GPIOHS9)>,
+                        <K210_FPIOA(26, K210_PCF_GPIOHS10)>;
+       };
+
+       spi1_pinctrl: spi1-pinmux {
+               pinmux = <K210_FPIOA(29, K210_PCF_SPI1_SCLK)>,
+                        <K210_FPIOA(30, K210_PCF_SPI1_D0)>,
+                        <K210_FPIOA(31, K210_PCF_SPI1_D1)>,
+                        <K210_FPIOA(32, K210_PCF_GPIOHS16)>; /* cs */
+       };
+
+       i2s0_pinctrl: i2s0-pinmux {
+               pinmux = <K210_FPIOA(33, K210_PCF_I2S0_IN_D0)>,
+                        <K210_FPIOA(34, K210_PCF_I2S0_WS)>,
+                        <K210_FPIOA(35, K210_PCF_I2S0_SCLK)>;
+       };
+};
+
+&uarths0 {
+       pinctrl-0 = <&uarths_pinctrl>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
+&gpio0 {
+       pinctrl-0 = <&gpiohs_pinctrl>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
+&i2s0 {
+       #sound-dai-cells = <1>;
+       pinctrl-0 = <&i2s0_pinctrl>;
+       pinctrl-names = "default";
+};
+
+&spi0 {
+       pinctrl-0 = <&spi0_pinctrl>;
+       pinctrl-names = "default";
+       num-cs = <1>;
+       cs-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
+
+       panel@0 {
+               compatible = "ilitek,ili9341";
+               reg = <0>;
+               dc-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
+               spi-max-frequency = <15000000>;
+               status = "disabled";
+       };
+};
+
+&spi1 {
+       pinctrl-0 = <&spi1_pinctrl>;
+       pinctrl-names = "default";
+       num-cs = <1>;
+       cs-gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+       status = "okay";
+
+       slot@0 {
+               compatible = "mmc-spi-slot";
+               reg = <0>;
+               voltage-ranges = <3300 3300>;
+               spi-max-frequency = <25000000>;
+               broken-cd;
+       };
+};
diff -r 592722baa2fe -r 0676224e9a36 sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/k210.dtsi
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/external/gpl2/dts/dist/arch/riscv/boot/dts/canaan/k210.dtsi   Sat Nov 13 08:40:13 2021 +0000
@@ -0,0 +1,459 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2019-20 Sean Anderson <seanga2%gmail.com@localhost>
+ * Copyright (C) 2020 Western Digital Corporation or its affiliates.
+ */
+#include <dt-bindings/clock/k210-clk.h>
+#include <dt-bindings/pinctrl/k210-fpioa.h>
+#include <dt-bindings/reset/k210-rst.h>
+
+/ {
+       /*
+        * Although the K210 is a 64-bit CPU, the address bus is only 32-bits
+        * wide, and the upper half of all addresses is ignored.
+        */
+       #address-cells = <1>;
+       #size-cells = <1>;
+       compatible = "canaan,kendryte-k210";
+
+       aliases {
+               serial0 = &uarths0;
+               serial1 = &uart1;
+               serial2 = &uart2;
+               serial3 = &uart3;
+       };
+
+       /*
+        * The K210 has an sv39 MMU following the privileged specification v1.9.
+        * Since this is a non-ratified draft specification, the kernel does not
+        * support it and the K210 support enabled only for the !MMU case.
+        * Be consistent with this by setting the CPUs MMU type to "none".
+        */
+       cpus {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               timebase-frequency = <7800000>;
+               cpu0: cpu@0 {
+                       device_type = "cpu";
+                       compatible = "canaan,k210", "riscv";
+                       reg = <0>;
+                       riscv,isa = "rv64imafdc";
+                       mmu-type = "riscv,none";
+                       i-cache-block-size = <64>;
+                       i-cache-size = <0x8000>;
+                       d-cache-block-size = <64>;
+                       d-cache-size = <0x8000>;
+                       cpu0_intc: interrupt-controller {
+                               #interrupt-cells = <1>;
+                               interrupt-controller;
+                               compatible = "riscv,cpu-intc";
+                       };
+               };
+               cpu1: cpu@1 {
+                       device_type = "cpu";
+                       compatible = "canaan,k210", "riscv";
+                       reg = <1>;
+                       riscv,isa = "rv64imafdc";
+                       mmu-type = "riscv,none";
+                       i-cache-block-size = <64>;
+                       i-cache-size = <0x8000>;
+                       d-cache-block-size = <64>;
+                       d-cache-size = <0x8000>;
+                       cpu1_intc: interrupt-controller {
+                               #interrupt-cells = <1>;
+                               interrupt-controller;
+                               compatible = "riscv,cpu-intc";
+                       };
+               };
+       };
+
+       sram: memory@80000000 {
+               device_type = "memory";
+               compatible = "canaan,k210-sram";
+               reg = <0x80000000 0x400000>,
+                     <0x80400000 0x200000>,
+                     <0x80600000 0x200000>;
+               reg-names = "sram0", "sram1", "aisram";
+               clocks = <&sysclk K210_CLK_SRAM0>,
+                        <&sysclk K210_CLK_SRAM1>,
+                        <&sysclk K210_CLK_AI>;
+               clock-names = "sram0", "sram1", "aisram";
+       };
+
+       clocks {
+               in0: oscillator {
+                       compatible = "fixed-clock";
+                       #clock-cells = <0>;
+                       clock-frequency = <26000000>;
+               };
+       };
+
+       soc {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "simple-bus";
+               ranges;
+               interrupt-parent = <&plic0>;
+
+               rom0: nvmem@1000 {
+                       reg = <0x1000 0x1000>;
+                       read-only;
+               };
+
+               clint0: timer@2000000 {
+                       compatible = "canaan,k210-clint", "sifive,clint0";
+                       reg = <0x2000000 0xC000>;
+                       interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7
+                                             &cpu1_intc 3 &cpu1_intc 7>;
+               };
+
+               plic0: interrupt-controller@c000000 {
+                       #interrupt-cells = <1>;
+                       #address-cells = <0>;
+                       compatible = "canaan,k210-plic", "sifive,plic-1.0.0";
+                       reg = <0xC000000 0x4000000>;
+                       interrupt-controller;
+                       interrupts-extended = <&cpu0_intc 11 &cpu1_intc 11>;
+                       riscv,ndev = <65>;
+               };
+
+               uarths0: serial@38000000 {
+                       compatible = "canaan,k210-uarths", "sifive,uart0";



Home | Main Index | Thread Index | Old Index