/linux-6.12.1/Documentation/devicetree/bindings/net/ |
D | loongson,ls1c-emac.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/loongson,ls1c-emac.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Loongson-1C Ethernet MAC Controller 10 - Keguang Zhang <keguang.zhang@gmail.com> 13 Loongson-1C Ethernet MAC Controller is based on 17 - 10/100Mbps 18 - Full-duplex operation (IEEE 802.3x flow control automatic transmission) 19 - Half-duplex operation (CSMA/CD Protocol and back-pressure support) [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/mips/loongson/ |
D | devices.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mips/loongson/devices.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Loongson based Platforms 10 - Jiaxun Yang <jiaxun.yang@flygoat.com> 12 Devices with a Loongson CPU shall have the following properties. 20 - description: Classic Loongson64 Quad Core + LS7A 22 - const: loongson,loongson64c-4core-ls7a 24 - description: Classic Loongson64 Quad Core + RS780E [all …]
|
/linux-6.12.1/arch/loongarch/boot/dts/ |
D | loongson-2k0500.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2023 Loongson Technology Corporation Limited 6 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/clock/loongson,ls2k-clk.h> 12 #address-cells = <2>; 13 #size-cells = <2>; 16 #address-cells = <1>; 17 #size-cells = <0>; 20 compatible = "loongson,la264"; [all …]
|
D | loongson-2k2000.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2023 Loongson Technology Corporation Limited 6 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/clock/loongson,ls2k-clk.h> 12 #address-cells = <2>; 13 #size-cells = <2>; 16 #address-cells = <1>; 17 #size-cells = <0>; 19 cpu0: cpu@1 { [all …]
|
D | loongson-2k1000.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2023 Loongson Technology Corporation Limited 6 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/clock/loongson,ls2k-clk.h> 10 #include <dt-bindings/gpio/gpio.h> 13 #address-cells = <2>; 14 #size-cells = <2>; 17 #address-cells = <1>; 18 #size-cells = <0>; [all …]
|
D | loongson-2k2000-ref.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2023 Loongson Technology Corporation Limited 6 /dts-v1/; 8 #include "loongson-2k2000.dtsi" 11 compatible = "loongson,ls2k2000-ref", "loongson,ls2k2000"; 12 model = "Loongson-2K2000 Reference Board"; 19 stdout-path = "serial0:115200n8"; 28 reserved-memory { 29 #address-cells = <2>; 30 #size-cells = <2>; [all …]
|
D | loongson-2k0500-ref.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2023 Loongson Technology Corporation Limited 6 /dts-v1/; 8 #include "loongson-2k0500.dtsi" 11 compatible = "loongson,ls2k0500-ref", "loongson,ls2k0500"; 12 model = "Loongson-2K0500 Reference Board"; 21 stdout-path = "serial0:115200n8"; 30 reserved-memory { 31 #address-cells = <2>; 32 #size-cells = <2>; [all …]
|
D | loongson-2k1000-ref.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2023 Loongson Technology Corporation Limited 6 /dts-v1/; 8 #include "loongson-2k1000.dtsi" 11 compatible = "loongson,ls2k1000-ref", "loongson,ls2k1000"; 12 model = "Loongson-2K1000 Reference Board"; 19 stdout-path = "serial0:115200n8"; 29 reserved-memory { 30 #address-cells = <2>; 31 #size-cells = <2>; [all …]
|
/linux-6.12.1/arch/mips/include/asm/mach-loongson64/ |
D | kernel-entry-init.h | 6 * Copyright (C) 2005 Embedded Alley Solutions, Inc 7 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org) 8 * Copyright (C) 2009 Jiajie Chen (chenjiajie@cse.buaa.edu.cn) 9 * Copyright (C) 2012 Huacai Chen (chenhc@lemote.com) 28 /* Loongson-3A R4+ */ 31 beq t1, t2, 1f 33 /* Loongson-3A R2/R3 */ 38 1: 59 /* Loongson-3A R4+ */ 62 beq t1, t2, 1f [all …]
|
/linux-6.12.1/drivers/irqchip/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 23 default 1 119 tristate "Broadcom STB 7038-style L1/L2 interrupt controller driver" 127 tristate "Broadcom STB 7120-style L2 interrupt controller driver" 180 will be called irq-lan966x-oic. 221 bool "J-Core integrated AIC" if COMPILE_TEST 225 Support for the J-Core integrated AIC. 236 interrupt pins, as found on SH/R-Mobile and R-Car Gen1 SoCs. 239 bool "Renesas R-Mobile APE6, R-Car Gen{2,3} and RZ/G{1,2} IRQC support" if COMPILE_TEST 244 devices, as found on R-Mobile APE6, R-Car Gen{2,3} and RZ/G{1,2} SoCs. [all …]
|
D | irq-loongson-liointc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2020, Jiaxun Yang <jiaxun.yang@flygoat.com> 4 * Loongson Local IO Interrupt Controller support 20 #include <loongson.h> 22 #include <asm/loongson.h> 25 #include "irq-loongson.h" 38 * LIOINTC_REG_INTC_POL register is only valid for Loongson-2K series, and 39 * Loongson-3 series behave as noops. 75 struct irq_chip_generic *gc = handler->priv->gc; in liointc_chained_handle_irq() 81 pending = readl(handler->priv->core_isr[core]); in liointc_chained_handle_irq() [all …]
|
/linux-6.12.1/drivers/platform/loongarch/ |
D | loongson-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Generic Loongson processor based LAPTOP/ALL-IN-ONE driver 5 * Jianmin Lv <lvjianmin@loongson.cn> 6 * Huacai Chen <chenhuacai@loongson.cn> 8 * Copyright (C) 2022 Loongson Technology Corporation Limited 20 #include <linux/input/sparse-keymap.h> 26 /* 1. Driver-wide structs and misc. variables */ 32 #define ACPI_LAPTOP_NAME "loongson-laptop" 33 #define ACPI_LAPTOP_ACPI_EVENT_PREFIX "loongson" 82 quiet = 1; in acpi_evalf() [all …]
|
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-loongson1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Loongson-1 DWMAC glue layer 5 * Copyright (C) 2011-2023 Keguang Zhang <keguang.zhang@gmail.com> 21 /* Loongson-1 SYSCON Registers */ 25 /* Loongson-1B SYSCON Register Bits */ 34 #define GMAC1_USE_PWM23 BIT(1) 37 /* Loongson-1C SYSCON Register Bits */ 52 struct plat_stmmacenet_data *plat = dwmac->plat_dat; in ls1b_dwmac_syscon_init() 53 struct regmap *regmap = dwmac->regmap; in ls1b_dwmac_syscon_init() 59 dev_err(&pdev->dev, "Could not get IO_MEM resources\n"); in ls1b_dwmac_syscon_init() [all …]
|
/linux-6.12.1/drivers/gpio/ |
D | gpio-loongson.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Loongson-2F/3A/3B GPIO Support 5 * Copyright (c) 2008 Richard Liu, STMicroelectronics <richard.liu@st.com> 6 * Copyright (c) 2008-2010 Arnaud Patard <apatard@mandriva.com> 7 * Copyright (c) 2013 Hongbing Hu <huhb@lemote.com> 8 * Copyright (c) 2014 Huacai Chen <chenhc@lemote.com> 20 #include <loongson.h> 97 struct device *dev = &pdev->dev; in loongson_gpio_probe() 101 return -ENOMEM; in loongson_gpio_probe() 103 gc->label = "loongson-gpio-chip"; in loongson_gpio_probe() [all …]
|
D | gpio-loongson-64bit.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Loongson GPIO Support 5 * Copyright (C) 2022-2023 Loongson Technology Corporation Limited 48 u8 bval = input ? 1 : 0; in loongson_commit_direction() 50 writeb(bval, lgpio->reg_base + lgpio->chip_data->conf_offset + pin); in loongson_commit_direction() 55 u8 bval = high ? 1 : 0; in loongson_commit_level() 57 writeb(bval, lgpio->reg_base + lgpio->chip_data->out_offset + pin); in loongson_commit_level() 65 spin_lock_irqsave(&lgpio->lock, flags); in loongson_gpio_direction_input() 66 loongson_commit_direction(lgpio, pin, 1); in loongson_gpio_direction_input() 67 spin_unlock_irqrestore(&lgpio->lock, flags); in loongson_gpio_direction_input() [all …]
|
/linux-6.12.1/drivers/pci/controller/ |
D | pci-loongson.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Loongson PCI Host Controller Driver 5 * Copyright (C) 2020 Jiaxun Yang <jiaxun.yang@flygoat.com> 12 #include <linux/pci-acpi.h> 13 #include <linux/pci-ecam.h> 39 #define FLAG_CFG1 BIT(1) 58 dev->class = PCI_CLASS_BRIDGE_PCI_NORMAL; in bridge_class_quirk() 73 pdev->mmio_always_on = 1; in system_bus_quirk() 74 pdev->non_compliant_bars = 1; in system_bus_quirk() 84 * Some Loongson PCIe ports have hardware limitations on their Maximum Read [all …]
|
/linux-6.12.1/sound/soc/loongson/ |
D | loongson_i2s_pci.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // loongson_i2s_pci.c -- Loongson I2S controller driver 5 // Copyright (C) 2023 Loongson Technology Corporation Limited 6 // Author: Yingkun Meng <mengyingkun@loongson.cn> 12 #include <linux/dma-mapping.h> 76 const struct fwnode_handle *fwnode = pdev->dev.fwnode; in loongson_i2s_pci_probe() 78 struct device *dev = &pdev->dev; in loongson_i2s_pci_probe() 84 return -ENODEV; in loongson_i2s_pci_probe() 89 return -ENOMEM; in loongson_i2s_pci_probe() 91 i2s->rev_id = pdev->revision; in loongson_i2s_pci_probe() [all …]
|
D | loongson_i2s.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * ALSA I2S interface for the Loongson platform 5 * Copyright (C) 2023 Loongson Technology Corporation Limited 6 * Author: Yingkun Meng <mengyingkun@loongson.cn> 29 /* Loongson I2S Control Register */ 40 #define I2S_CTRL_RX_INT_EN BIT(1) /* RX interrupt enable */ 43 #define LS_I2S_DRVNAME "loongson-i2s"
|
/linux-6.12.1/drivers/i2c/busses/ |
D | i2c-ls2x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Loongson-2K/Loongson LS7A I2C controller mode driver 5 * Copyright (C) 2013 Loongson Technology Corporation Limited. 6 * Copyright (C) 2014-2017 Lemote, Inc. 7 * Copyright (C) 2018-2022 Loongson Technology Corporation Limited. 10 * Rewritten for mainline by Binbin Zhou <zhoubinbin@loongson.cn> 48 #define LS2X_SR_TIP BIT(1) /* Transmission state */ 52 #define LS2X_CTR_EN BIT(7) /* 0: I2c frequency setting 1: Normal */ 54 #define LS2X_CTR_MST BIT(5) /* 0: Target mode 1: Controller mode */ 79 if (!(readb(priv->base + I2C_LS2X_SR) & LS2X_SR_IF)) in ls2x_i2c_isr() [all …]
|
/linux-6.12.1/arch/loongarch/power/ |
D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Author: Huacai Chen <chenhuacai@loongson.cn> 4 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 10 #include <asm/loongson.h> 31 acpi_write_bit_register(ACPI_BITREG_PCIEXP_WAKE_STATUS, 1); in enable_pci_wakeup() 39 .id = -1, 45 return -ENODEV; in loongson_cpufreq_init() 67 acpi_write_bit_register(ACPI_BITREG_SCI_ENABLE, 1); in loongson3_acpi_suspend_init() 77 pr_info("ACPI S3 supported with Loongson ACPI SADR extension\n"); in loongson3_acpi_suspend_init()
|
/linux-6.12.1/drivers/thermal/ |
D | loongson2_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Author: zhanghongchen <zhanghongchen@loongson.cn> 4 * Yinbo Zhu <zhuyinbo@loongson.cn> 5 * Copyright (C) 2022-2023 Loongson Technology Corporation Limited 28 #define LOONGSON2_THSENS_INT_HIGH BIT(1) 35 * method of the Loongson-2K2000 54 int reg_off = data->chip_data->thermal_sensor_sel * 2; in loongson2_set_ctrl_regs() 59 writew(reg_ctrl, data->ctrl_reg + ctrl_reg + reg_off); in loongson2_set_ctrl_regs() 66 loongson2_set_ctrl_regs(data, clamp(-40, low, high), true, enable); in loongson2_thermal_set() 79 val = readl(data->ctrl_reg + LOONGSON2_THSENS_OUT_REG); in loongson2_2k1000_get_temp() [all …]
|
/linux-6.12.1/Documentation/ABI/testing/ |
D | sysfs-firmware-lefi-boardinfo | 3 Contact: Tiezhu Yang <yangtiezhu@loongson.cn> 5 Get mainboard and BIOS info easily on the Loongson platform, 13 boardinfo.c file in arch/mips/loongson64. 17 [loongson@linux ~]$ cat /sys/firmware/lefi/boardinfo 20 Board Name : LEMOTE-LS3A4000-7A1000-1w-V01-pc 25 Version : Kunlun-A1901-V4.1.3-20200414093938 27 Release Date : 2020-04-14 33 [root@linux loongson]# dmidecode
|
/linux-6.12.1/tools/perf/arch/loongarch/entry/syscalls/ |
D | mksyscalltbl | 2 # SPDX-License-Identifier: GPL-2.0 7 # Author(s): Ming Wang <wangming01@loongson.cn> 8 # Author(s): Huacai Chen <chenhuacai@loongson.cn> 9 # Copyright (C) 2020-2023 Loongson Technology Corporation Limited 11 gcc=$1 16 if ! test -r $input; then 18 exit 1 41 $gcc -E -dM -x c -I $incpath/include/uapi $input \ 44 print | "sort -k2 -n"}' \
|
/linux-6.12.1/arch/mips/boot/dts/loongson/ |
D | loongson64-2k1000.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include <dt-bindings/interrupt-controller/irq.h> 8 compatible = "loongson,loongson2k1000"; 10 #address-cells = <2>; 11 #size-cells = <2>; 14 #address-cells = <1>; 15 #size-cells = <0>; 19 compatible = "loongson,gs264"; 21 #clock-cells = <1>; [all …]
|
/linux-6.12.1/drivers/acpi/ |
D | pci_mcfg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2016 Broadcom 4 * Author: Jayachandran C <jchandra@broadcom.com> 5 * Copyright (C) 2016 Semihalf 13 #include <linux/pci-acpi.h> 14 #include <linux/pci-ecam.h> 27 char oem_id[ACPI_OEM_ID_SIZE + 1]; 28 char oem_table_id[ACPI_OEM_TABLE_ID_SIZE + 1]; 37 ((end) - (start) + 1), \ 50 AL_ECAM("GRAVITON", 0, 1, &al_pcie_ops), [all …]
|