/openbmc/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/ |
H A D | gpio.txt | 1 Every GPIO controller node must have #gpio-cells property defined, 2 this information will be used to translate gpio-specifiers. 4 On CPM1 devices, all ports are using slightly different register layouts. 10 - compatible : "fsl,cpm1-pario-bank-a", "fsl,cpm1-pario-bank-b", 11 "fsl,cpm1-pario-bank-c", "fsl,cpm1-pario-bank-d", 12 "fsl,cpm1-pario-bank-e", "fsl,cpm2-pario-bank" 13 - #gpio-cells : Should be two. The first cell is the pin number and the 15 - gpio-controller : Marks the port as GPIO controller. 17 - fsl,cpm1-gpio-irq-mask : For banks having interrupt capability (like port C 18 on CPM1), this item tells which ports have an associated interrupt (ports are [all …]
|
H A D | fsl,cpm1-scc-qmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,cpm1-scc-qmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <herve.codina@bootlin.com> 19 - enum: 20 - fsl,mpc885-scc-qmc 21 - fsl,mpc866-scc-qmc 22 - const: fsl,cpm1-scc-qmc 26 - description: SCC (Serial communication controller) register base [all …]
|
H A D | fsl,cpm1-tsa.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,cpm1-tsa.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: PowerQUICC CPM Time-slot assigner (TSA) controller 10 - Herve Codina <herve.codina@bootlin.com> 13 The TSA is the time-slot assigner that can be found on some PowerQUICC SoC. 14 Its purpose is to route some TDM time-slots to other internal serial 20 - enum: 21 - fsl,mpc885-tsa [all …]
|
H A D | serial.txt | 4 - fsl,cpm1-smc-uart 5 - fsl,cpm2-smc-uart 6 - fsl,cpm1-scc-uart 7 - fsl,cpm2-scc-uart 8 - fsl,qe-uart 11 property as described in booting-without-of.txt, section IX.1 in the following 23 compatible = "fsl,mpc8272-scc-uart", 24 "fsl,cpm2-scc-uart"; 27 interrupt-parent = <&PIC>; 28 fsl,cpm-brg = <1>; [all …]
|
H A D | network.txt | 4 - fsl,cpm1-scc-enet 5 - fsl,cpm2-scc-enet 6 - fsl,cpm1-fec-enet 7 - fsl,cpm2-fcc-enet (third resource is GFEMR) 8 - fsl,qe-enet 13 compatible = "fsl,mpc8272-fcc-enet", 14 "fsl,cpm2-fcc-enet"; 16 local-mac-address = [ 00 00 00 00 00 00 ]; 18 interrupt-parent = <&PIC>; 19 phy-handle = <&PHY0>; [all …]
|
H A D | cpm.txt | 10 - compatible : "fsl,cpm1", "fsl,cpm2", or "fsl,qe". 11 - reg : A 48-byte region beginning with CPCR. 15 #address-cells = <1>; 16 #size-cells = <1>; 17 #interrupt-cells = <2>; 18 compatible = "fsl,mpc8272-cpm", "fsl,cpm2"; 24 - fsl,cpm-command : This value is ORed with the opcode and command flag 27 - fsl,cpm-brg : Indicates which baud rate generator the device 32 - reg : Unless otherwise specified, the first resource represents the 36 * Multi-User RAM (MURAM) [all …]
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | cpm_gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Author: Christophe Leroy <christophe.leroy@c-s.fr> 17 #include <asm/cpm1.h> 22 struct device *dev = &ofdev->dev; in cpm_gpio_probe() 26 return -ENODEV; in cpm_gpio_probe() 34 .compatible = "fsl,cpm1-pario-bank-a", 38 .compatible = "fsl,cpm1-pario-bank-b", 42 .compatible = "fsl,cpm1-pario-bank-c", 46 .compatible = "fsl,cpm1-pario-bank-d", 51 .compatible = "fsl,cpm1-pario-bank-e", [all …]
|
/openbmc/linux/arch/powerpc/boot/dts/ |
H A D | mpc866ads.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 /dts-v1/; 13 compatible = "fsl,mpc866ads"; 14 #address-cells = <1>; 15 #size-cells = <1>; 18 #address-cells = <1>; 19 #size-cells = <0>; 24 d-cache-line-size = <16>; // 16 bytes 25 i-cache-line-size = <16>; // 16 bytes 26 d-cache-size = <0x2000>; // L1, 8K [all …]
|
H A D | mpc885ads.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 /dts-v1/; 13 compatible = "fsl,mpc885ads"; 14 #address-cells = <1>; 15 #size-cells = <1>; 18 #address-cells = <1>; 19 #size-cells = <0>; 24 d-cache-line-size = <16>; 25 i-cache-line-size = <16>; 26 d-cache-size = <8192>; [all …]
|
H A D | ep88xc.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 /dts-v1/; 13 compatible = "fsl,ep88xc"; 14 #address-cells = <1>; 15 #size-cells = <1>; 18 #address-cells = <1>; 19 #size-cells = <0>; 24 d-cache-line-size = <16>; 25 i-cache-line-size = <16>; 26 d-cache-size = <8192>; [all …]
|
H A D | tqm8xx.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 /dts-v1/; 14 #address-cells = <1>; 15 #size-cells = <1>; 25 #address-cells = <1>; 26 #size-cells = <0>; 31 d-cache-line-size = <16>; // 16 bytes 32 i-cache-line-size = <16>; // 16 bytes 33 d-cache-size = <0x1000>; // L1, 4K 34 i-cache-size = <0x1000>; // L1, 4K [all …]
|
H A D | adder875-uboot.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Device Tree Source for MPC885 ADS running U-Boot 9 /dts-v1/; 12 compatible = "analogue-and-micro,adder875"; 13 #address-cells = <1>; 14 #size-cells = <1>; 23 #address-cells = <1>; 24 #size-cells = <0>; 29 d-cache-line-size = <16>; 30 i-cache-line-size = <16>; [all …]
|
H A D | adder875-redboot.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 /dts-v1/; 12 compatible = "analogue-and-micro,adder875"; 13 #address-cells = <1>; 14 #size-cells = <1>; 23 #address-cells = <1>; 24 #size-cells = <0>; 29 d-cache-line-size = <16>; 30 i-cache-line-size = <16>; 31 d-cache-size = <8192>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/cpm/ |
H A D | i2c.txt | 6 - compatible : "fsl,cpm1-i2c", "fsl,cpm2-i2c" 7 - reg : On CPM2 devices, the second resource doesn't specify the I2C 10 - #address-cells : Should be one. The cell is the i2c device address with 12 - #size-cells : Should be zero. 13 - clock-frequency : Can be used to set the i2c clock frequency. If 17 - linux,i2c-index : Can be used to hard code an i2c bus number. By default, 19 - linux,i2c-class : Can be used to override the i2c class. The class is used 28 compatible = "fsl,mpc823-i2c", 29 "fsl,cpm1-i2c"; 32 interrupt-parent = <&CPM_PIC>; [all …]
|
H A D | brg.txt | 4 fsl,cpm-brg 5 fsl,cpm1-brg 6 fsl,cpm2-brg 9 - reg : There may be an arbitrary number of reg resources; BRG 11 - clock-frequency : Specifies the base frequency driving 16 compatible = "fsl,mpc8272-brg", 17 "fsl,cpm2-brg", 18 "fsl,cpm-brg"; 20 clock-frequency = <d#25000000>;
|
H A D | usb.txt | 4 - compatible : "fsl,cpm1-usb", "fsl,cpm2-usb", "fsl,qe-usb" 8 #address-cells = <1>; 9 #size-cells = <0>; 10 compatible = "fsl,cpm2-usb"; 13 interrupt-parent = <&PIC>; 14 fsl,cpm-command = <2e600000>;
|
H A D | pic.txt | 4 - fsl,cpm1-pic 5 - only one interrupt cell 6 - fsl,pq1-pic 7 - fsl,cpm2-pic 8 - second interrupt cell is level/sense: 9 - 2 is falling edge 10 - 8 is active low 13 interrupt-controller@10c00 { 14 #interrupt-cells = <2>; 15 interrupt-controller; [all …]
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | serial.c | 1 // SPDX-License-Identifier: GPL-2.0 23 return scdp->open(); in serial_open() 31 scdp->putc(*buf++); in serial_write() 46 if (scdp->tstc()) { in serial_edit_cmdline() 47 while (((ch = scdp->getc()) != '\n') && (ch != '\r')) { in serial_edit_cmdline() 51 cp--; in serial_edit_cmdline() 52 count--; in serial_edit_cmdline() 58 cp--; in serial_edit_cmdline() 59 count--; in serial_edit_cmdline() 65 scdp->putc(ch); in serial_edit_cmdline() [all …]
|
/openbmc/linux/arch/powerpc/platforms/8xx/ |
H A D | cpm1-ic.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <asm/cpm1.h> 23 clrbits32(&data->reg->cpic_cimr, (1 << cpm_vec)); in cpm_mask_irq() 31 setbits32(&data->reg->cpic_cimr, (1 << cpm_vec)); in cpm_unmask_irq() 39 out_be32(&data->reg->cpic_cisr, (1 << cpm_vec)); in cpm_end_irq() 58 out_be16(&data->reg->cpic_civr, 1); in cpm_get_irq() 59 cpm_vec = in_be16(&data->reg->cpic_civr); in cpm_get_irq() 62 return irq_linear_revmap(data->host, cpm_vec); in cpm_get_irq() 73 irq_set_chip_data(virq, h->host_data); in cpm_pic_host_map() 85 struct device *dev = &pdev->dev; in cpm_pic_probe() [all …]
|
H A D | mpc86xads_setup.c | 26 #include <asm/cpm1.h> 81 cpm1_set_pin(pin->port, pin->pin, pin->flags); in init_ioports() 90 clrbits32(&mpc8xx_immr->im_cpm.cp_cptr, 0x00000180); in init_ioports() 101 np = of_find_compatible_node(NULL, NULL, "fsl,mpc866ads-bcsr"); in mpc86xads_setup_arch() 103 printk(KERN_CRIT "Could not find fsl,mpc866ads-bcsr node\n"); in mpc86xads_setup_arch() 136 .compatible = "fsl,mpc866ads", in define_machine()
|
H A D | ep88xc.c | 20 #include <asm/cpm1.h> 95 cpm1_set_pin(pin->port, pin->pin, pin->flags); in init_ioports() 126 np = of_find_compatible_node(NULL, NULL, "fsl,ep88xc-bcsr"); in ep88xc_setup_arch() 128 printk(KERN_CRIT "Could not find fsl,ep88xc-bcsr node\n"); in ep88xc_setup_arch() 163 .compatible = "fsl,ep88xc", in define_machine()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-fsl-lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 #include <linux/dma-mapping.h> 28 #include "spi-fsl-lib.h" 33 type *rx = mpc8xxx_spi->rx; \ 34 *rx++ = (type)(data >> mpc8xxx_spi->rx_shift); \ 35 mpc8xxx_spi->rx = rx; \ 43 const type *tx = mpc8xxx_spi->tx; \ 46 data = *tx++ << mpc8xxx_spi->tx_shift; \ 47 mpc8xxx_spi->tx = tx; \ 75 return "CPM1"; in mpc8xxx_spi_strmode() [all …]
|
/openbmc/linux/include/soc/fsl/ |
H A D | cpm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #include <soc/fsl/qe/qe.h> 31 __be16 rpbase; /* Relocation pointer (CPM1 only) */ 50 /* Fields down below are QE-only */ 61 #define CPMFCR_GBL ((u_char)0x00) /* Flag doesn't exist in CPM1 */ 62 #define CPMFCR_TC2 ((u_char)0x00) /* Flag doesn't exist in CPM1 */ 63 #define CPMFCR_DTB ((u_char)0x00) /* Flag doesn't exist in CPM1 */ 64 #define CPMFCR_BDB ((u_char)0x00) /* Flag doesn't exist in CPM1 */ 73 /* Opcodes common to CPM1 and CPM2 109 #define BD_SC_NAK (0x0004) /* NAK - did not respond */ [all …]
|
/openbmc/linux/drivers/tty/serial/ |
H A D | cpm_uart.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 * Pantelis Antoniou (panto@intracom.gr) (CPM1) 14 * (C) 2005-2006 MontaVista Software, Inc. 28 #include <linux/dma-mapping.h> 59 cpm_command(port->command, cmd); in cpm_line_cr_cmd() 69 cbd_t __iomem *bdp = pinfo->tx_bd_base; in cpm_uart_tx_empty() 73 if (in_be16(&bdp->cbd_sc) & BD_SC_READY) in cpm_uart_tx_empty() 76 if (in_be16(&bdp->cbd_sc) & BD_SC_WRAP) { in cpm_uart_tx_empty() 83 pr_debug("CPM uart[%d]:tx_empty: %d\n", port->line, ret); in cpm_uart_tx_empty() 93 if (pinfo->gpios[GPIO_RTS]) in cpm_uart_set_mctrl() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-cpm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Freescale CPM1/CPM2 I2C interface. 10 * (C) 2000-2001 Felix Domke (tmbinc@gmx.net), Gillem (htoa@gmx.net) 15 * Converted to of_platform_device. Renamed to i2c-cpm.c. 28 #include <linux/dma-mapping.h> 101 int version; /* CPM1=1, CPM2=2 */ 125 i2c_reg = cpm->i2c_reg; in cpm_i2c_interrupt() 128 i = in_8(&i2c_reg->i2cer); in cpm_i2c_interrupt() 129 out_8(&i2c_reg->i2cer, i); in cpm_i2c_interrupt() 131 dev_dbg(&adap->dev, "Interrupt: %x\n", i); in cpm_i2c_interrupt() [all …]
|