Introduce GENI SE Controller Driver
Subsystems (7)
cover Introduce GENI SE Controller Driver
Generic Interface (GENI) firmware based Qualcomm Universal Peripheral (QUP) Wrapper is a next generation programmable module for supporting a wide range of serial interfaces like UART, SPI, I2C, I3C, etc. A single QUP module can provide upto 8 Serial Interfaces using its internal Serial Engines (SE). The protocol supported by each interface is determined by the firmware loaded to the Serial Engine.
This patch series introduces GENI SE Driver to manage the GENI based QUP Wrapper and the common aspects of all SEs inside the QUP Wrapper. This patch series also introduces the UART and I2C Controller drivers to drive the SEs that are programmed with the respective protocols.
Karthikeyan Ramasubramanian (7):
qcom-geni-se: Add QCOM GENI SE Driver summary
soc: qcom: Add device tree binding for GENI SE
soc: qcom: Add GENI based QUP Wrapper driver
i2c: Add device tree bindings for GENI I2C Controller
i2c: i2c-qcom-geni: Add bus driver for the Qualcomm GENI I2C
controller
serial: Add device tree bindings for GENI based UART Controller
tty: serial: msm_geni_serial: Add serial driver support for GENI based
QUP
.../devicetree/bindings/i2c/i2c-qcom-geni.txt | 39 + .../devicetree/bindings/serial/qcom,geni-uart.txt | 31 + .../devicetree/bindings/soc/qcom/qcom,geni-se.txt | 15 + Documentation/qcom-geni-se.txt | 56 + drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-qcom-geni.c | 685 +++++++++ drivers/soc/qcom/Kconfig | 8 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/qcom-geni-se.c | 973 +++++++++++++ drivers/tty/serial/Kconfig | 10 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/qcom_geni_serial.c | 1447 ++++++++++++++++++++ include/linux/qcom-geni-se.h | 811 +++++++++++ 14 files changed, 4088 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt create mode 100644 Documentation/devicetree/bindings/serial/qcom,geni-uart.txt create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt create mode 100644 Documentation/qcom-geni-se.txt create mode 100644 drivers/i2c/busses/i2c-qcom-geni.c create mode 100644 drivers/soc/qcom/qcom-geni-se.c create mode 100644 drivers/tty/serial/qcom_geni_serial.c create mode 100644 include/linux/qcom-geni-se.h
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
RFC PATCH 1/7 qcom-geni-se: Add QCOM GENI SE Driver summary
Generic Interface (GENI) firmware based Qualcomm Universal Peripheral (QUP) Wrapper is a programmable module that is composed of multiple Serial Engines (SE) and can support various Serial Interfaces like UART, SPI, I2C, I3C, etc. This document provides a high level overview of the GENI based QUP Wrapper.
--- Documentation/qcom-geni-se.txt | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/qcom-geni-se.txt
Documentation/qcom-geni-se.txt new file +56 -0
@@ -0,0 +1,56 @@ +Introduction +============ + +Generic Interface (GENI) Serial Engine (SE) Wrapper driver is introduced +to manage GENI firmware based Qualcomm Universal Peripheral (QUP) Wrapper +controller. QUP Wrapper is designed to support various serial bus protocols +like UART, SPI, I2C, I3C, etc. + +Hardware description +==================== + +GENI based QUP is a highly-flexible and programmable module for supporting +a wide range of serial interfaces like UART, SPI, I2C, I3C, etc. A single +QUP module can provide upto 8 Serial Interfaces, using its internal +Serial Engines. The actual configuration is determined by the target +platform configuration. The protocol supported by each interface is +determined by the firmware loaded to the Serial Engine. Each SE consists +of a DMA Engine and GENI sub modules which enable Serial Engines to +support FIFO and DMA modes of operation. + +:: + + +-----------------------------------------+ + |QUP Wrapper | + | +----------------------------+ | + --QUP & SE Clocks--> | Serial Engine N | +-IO------> + | | ... | | Interface + <---Clock Perf.----+ +----+-----------------------+ | | + State Interface | | Serial Engine 1 | | | + | | | | | + | | | | | + <--------AHB-------> | | | | + | | +----+ | + | | | | + | | | | + <------SE IRQ------+ +----------------------------+ | + | | + +-----------------------------------------+ + + Figure 1: GENI based QUP Wrapper + +Software description +==================== + +GENI SE Wrapper driver is structured into 2 parts: + +geni_se_device represents QUP Wrapper controller. This part of the driver +manages QUP Wrapper information such as hardware version, clock +performance table that is common to all the internal Serial Engines. + +geni_se_rsc represents Serial Engine. This part of the driver manages +Serial Engine information such as clocks, pinctrl states, containing QUP +Wrapper. This part of driver also supports operations(eg. initialize the +concerned Serial Engine, select between FIFO and DMA mode of operation etc.) +that are common to all the Serial Engines and are independent of Serial +Interfaces.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
RFC PATCH 2/7 soc: qcom: Add device tree binding for GENI SE
In reply to a message not in the archiveAdd device tree binding support for the QCOM GENI SE driver.
--- .../devicetree/bindings/soc/qcom/qcom,geni-se.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt new file +15 -0
@@ -0,0 +1,15 @@ +Qualcomm Technologies, Inc. GENI Serial Engine Driver + +GENI Serial Engine Driver manages the GENI firmware based Qualcomm Universal +Peripheral (QUP) Wrapper. GENI SE Driver also manages the common aspects of +individual Serial Engines that composes the QUP Wrapper. + +Required properties: +- compatible: Must be "qcom,geni-se-qup". +- reg: Must contain QUP register address and length. + +Example: + qup_0: qcom,geni_se_qup_0@8c0000 { + compatible = "qcom,geni-se-qup"; + reg = <0x8c0000 0x6000>; + }
Signature · 7 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RFC PATCH 3/7 soc: qcom: Add GENI based QUP Wrapper driver
In reply to a message not in the archiveThis driver manages the Generic Interface (GENI) firmware based Qualcomm Universal Peripheral (QUP) Wrapper. GENI based QUP is the next generation programmable module composed of multiple Serial Engines (SE) and supports a wide range of serial interfaces like UART, SPI, I2C, I3C, etc. This driver also enables managing the serial interface independent aspects of Serial Engines.
--- drivers/soc/qcom/Kconfig | 8 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/qcom-geni-se.c | 973 ++++++++++++++++++++++++++++++++++++++++ include/linux/qcom-geni-se.h | 811 +++++++++++++++++++++++++++++++++ 4 files changed, 1793 insertions(+) create mode 100644 drivers/soc/qcom/qcom-geni-se.c create mode 100644 include/linux/qcom-geni-se.h
drivers/soc/qcom/Kconfig +8 -0
@@ -3,6 +3,14 @@ # menu "Qualcomm SoC drivers" +config QCOM_GENI_SE + tristate "QCOM GENI Serial Engine Driver" + help + This module is used to manage Generic Interface (GENI) firmware based + Qualcomm Technologies, Inc. Universal Peripheral (QUP) Wrapper. This + module is also used to manage the common aspects of multiple Serial + Engines present in the QUP. + config QCOM_GLINK_SSR tristate "Qualcomm Glink SSR driver" depends on RPMSG
drivers/soc/qcom/Makefile +1 -0
@@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_QCOM_GENI_SE) += qcom-geni-se.o obj-$(CONFIG_QCOM_GLINK_SSR) += glink_ssr.o obj-$(CONFIG_QCOM_GSBI) += qcom_gsbi.o obj-$(CONFIG_QCOM_MDT_LOADER) += mdt_loader.o
drivers/soc/qcom/qcom-geni-se.c new file +973 -0
973 lines not on this page · raw message
include/linux/qcom-geni-se.h new file +811 -0
811 lines not on this page · raw message
Signature · 7 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RFC PATCH 4/7 i2c: Add device tree bindings for GENI I2C Controller
In reply to Karthikeyan RamasubramanianAdd device tree binding support for I2C Controller in GENI based QUP Wrapper.
--- .../devicetree/bindings/i2c/i2c-qcom-geni.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +39 -0
@@ -0,0 +1,39 @@ +Qualcomm Technologies Inc. GENI based I2C Controller driver + +Required properties: + - compatible: Should be: + * "qcom,i2c-geni. + - reg: Should contain QUP register address and length. + - interrupts: Should contain I2C interrupt. + - clocks: Serial engine core clock, and AHB clocks needed by the device. + - pinctrl-names/pinctrl-0/1: The GPIOs assigned to this core. The names + should be "active" and "sleep" for the pin confuguration when core is active + or when entering sleep state. + - #address-cells: Should be <1> Address cells for i2c device address + - #size-cells: Should be <0> as i2c addresses have no size component + - qcom,wrapper-core: Wrapper QUP core containing this I2C controller. + +Optional property: + - qcom,clk-freq-out : Desired I2C bus clock frequency in Hz. + When missing default to 400000Hz. + +Child nodes should conform to i2c bus binding. + +Example: + +i2c@a94000 { + compatible = "qcom,i2c-geni"; + reg = <0xa94000 0x4000>; + interrupts = <GIC_SPI 358 0>; + clock-names = "se-clk", "m-ahb", "s-ahb"; + clocks = <&clock_gcc GCC_QUPV3_WRAP0_S5_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&qup_1_i2c_5_active>; + pinctrl-1 = <&qup_1_i2c_5_sleep>; + #address-cells = <1>; + #size-cells = <0>; + qcom,wrapper-core = <&qup_0>; + qcom,clk-freq-out = <400000>; +};
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
RFC PATCH 5/7 i2c: i2c-qcom-geni: Add bus driver for the Qualcomm GENI I2C controller
In reply to a message not in the archiveThis bus driver supports the GENI based i2c hardware controller in the Qualcomm SOCs. The Qualcomm Generic Interface (GENI) is a programmable module supporting a wide range of serial interfaces including I2C. The driver supports FIFO mode and DMA mode of transfer and switches modes dynamically depending on the size of the transfer.
--- drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-qcom-geni.c | 685 +++++++++++++++++++++++++++++++++++++ 3 files changed, 696 insertions(+) create mode 100644 drivers/i2c/busses/i2c-qcom-geni.c
drivers/i2c/busses/Kconfig +10 -0
@@ -838,6 +838,16 @@ config I2C_PXA_SLAVE is necessary for systems where the PXA may be a target on the I2C bus. +config I2C_QCOM_GENI + tristate "Qualcomm Technologies Inc.'s GENI based I2C controller" + depends on ARCH_QCOM + help + If you say yes to this option, support will be included for the + built-in I2C interface on the Qualcomm Technologies Inc.'s SoCs. + + This driver can also be built as a module. If so, the module + will be called i2c-qcom-geni. + config I2C_QUP tristate "Qualcomm QUP based I2C controller" depends on ARCH_QCOM
drivers/i2c/busses/Makefile +1 -0
@@ -84,6 +84,7 @@ obj-$(CONFIG_I2C_PNX) += i2c-pnx.o obj-$(CONFIG_I2C_PUV3) += i2c-puv3.o obj-$(CONFIG_I2C_PXA) += i2c-pxa.o obj-$(CONFIG_I2C_PXA_PCI) += i2c-pxa-pci.o +obj-$(CONFIG_I2C_QCOM_GENI) += i2c-qcom-geni.o obj-$(CONFIG_I2C_QUP) += i2c-qup.o obj-$(CONFIG_I2C_RIIC) += i2c-riic.o obj-$(CONFIG_I2C_RK3X) += i2c-rk3x.o
drivers/i2c/busses/i2c-qcom-geni.c new file +685 -0
685 lines not on this page · raw message
Signature · 7 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RFC PATCH 6/7 serial: Add device tree bindings for GENI based UART Controller
In reply to Karthikeyan RamasubramanianAdd device tree binding support for GENI based UART Controller in the QUP Wrapper.
--- .../devicetree/bindings/serial/qcom,geni-uart.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/qcom,geni-uart.txt
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +31 -0
@@ -0,0 +1,31 @@ +Qualcomm Technologies Inc. GENI based Serial UART Controller driver + +This serial UART driver supports console use-cases. This driver is meant +only for Generic Interface (GENI) based Qualcomm Universal Peripheral (QUP) +cores and isn't backwards compatible. + +Required properties: +- compatible: should contain "qcom,geni-uart, qcom,geni-console" +- reg: Should contain UART register location and length. +- interrupts: Should contain UART core interrupts. +- clocks: clocks needed for UART, includes the core and AHB clock. +- pinctrl-names/pinctrl-0/1: The GPIOs assigned to this core. The names + Should be "active" and "sleep" for the pin confuguration when core is active + or when entering sleep state. +- qcom,wrapper-core: Wrapper QUP core containing this UART controller. + +Example: +qup_uart11: qcom,qup_uart@0xa88000 { + compatible = "qcom,geni-uart"; + reg = <0xa88000 0x7000>; + reg-names = "se_phys"; + clock-names = "se-clk", "m-ahb", "s-ahb"; + clocks = <&clock_gcc GCC_QUPV3_WRAP0_S0_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&qup_1_uart_3_active>; + pinctrl-1 = <&qup_1_uart_3_sleep>; + interrupts = <0 355 0>; + qcom,wrapper-core = <&qup_0>; +};
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
RFC PATCH 7/7 tty: serial: msm_geni_serial: Add serial driver support for GENI based QUP
In reply to Karthikeyan RamasubramanianThis driver supports GENI based UART Controller in the Qualcomm SOCs. The Qualcomm Generic Interface (GENI) is a programmable module supporting a wide range of serial interfaces including UART. This driver support console operations using FIFO mode of transfer.
--- drivers/tty/serial/Kconfig | 10 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/qcom_geni_serial.c | 1447 +++++++++++++++++++++++++++++++++ 3 files changed, 1458 insertions(+) create mode 100644 drivers/tty/serial/qcom_geni_serial.c
drivers/tty/serial/Kconfig +10 -0
@@ -1098,6 +1098,16 @@ config SERIAL_MSM_CONSOLE select SERIAL_CORE_CONSOLE select SERIAL_EARLYCON +config SERIAL_QCOM_GENI + tristate "QCOM on-chip GENI based serial port support" + depends on ARCH_QCOM + select SERIAL_CORE + select SERIAL_CORE_CONSOLE + select SERIAL_EARLYCON + help + Serial driver for Qualcomm Technologies Inc's GENI based QUP + hardware. + config SERIAL_VT8500 bool "VIA VT8500 on-chip serial port support" depends on ARCH_VT8500
drivers/tty/serial/Makefile +1 -0
@@ -63,6 +63,7 @@ obj-$(CONFIG_SERIAL_SGI_IOC3) += ioc3_serial.o obj-$(CONFIG_SERIAL_ATMEL) += atmel_serial.o obj-$(CONFIG_SERIAL_UARTLITE) += uartlite.o obj-$(CONFIG_SERIAL_MSM) += msm_serial.o +obj-$(CONFIG_SERIAL_QCOM_GENI) += qcom_geni_serial.o obj-$(CONFIG_SERIAL_NETX) += netx-serial.o obj-$(CONFIG_SERIAL_KS8695) += serial_ks8695.o obj-$(CONFIG_SERIAL_OMAP) += omap-serial.o
drivers/tty/serial/qcom_geni_serial.c new file +1447 -0
1,447 lines not on this page · raw message
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Rob Herring
maintainerRe: [PATCH RFC 2/7] soc: qcom: Add device tree binding for GENI SE
In reply to Karthikeyan RamasubramanianQuoted 14 lines · Karthikeyan Ramasubramanian
Add device tree binding support for the QCOM GENI SE driver.
Signed-off-by Karthikeyan Ramasubramanian <[email protected]>--- .../devicetree/bindings/soc/qcom/qcom,geni-se.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txtDocumentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt new file +0
-0
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt line 5
Quoted 5 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt new file +5
-0@@ -0,0 +1,15 @@ +Qualcomm Technologies, Inc. GENI Serial Engine Driver + +GENI Serial Engine Driver manages the GENI firmware based Qualcomm Universal +Peripheral (QUP) Wrapper. GENI SE Driver also manages the common aspects of +individual Serial Engines that composes the QUP Wrapper.
Bindings describe h/w, not drivers.
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt line 8
Quoted 3 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt new file +3
-0+ +Required properties: +- compatible: Must be "qcom,geni-se-qup".
Only one version of the h/w?
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt line 12
Quoted 4 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt new file +4
-0+- reg: Must contain QUP register address and length. + +Example: + qup_0: qcom,geni_se_qup_0@8c0000 {
Don't use '_' in node names.
Quoted 7 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt new file +3
-0+ compatible = "qcom,geni-se-qup"; + reg = <0x8c0000 0x6000>; + }Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Rob Herring
maintainerRe: [PATCH RFC 2/7] soc: qcom: Add device tree binding for GENI SE
In reply to Karthikeyan RamasubramanianQuoted 1 line · Karthikeyan Ramasubramanian
Add device tree binding support for the QCOM GENI SE driver.
Also, "dt-bindings: ..." is the preferred subject prefix. Same for the rest of the series.
Quoted 6 lines
Signed-off-by Karthikeyan Ramasubramanian <[email protected]>--- .../devicetree/bindings/soc/qcom/qcom,geni-se.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt
Rob Herring
maintainerRe: [PATCH RFC 4/7] i2c: Add device tree bindings for GENI I2C Controller
In reply to Karthikeyan RamasubramanianQuoted 16 lines · Karthikeyan Ramasubramanian
Add device tree binding support for I2C Controller in GENI based QUP Wrapper.
Signed-off-by Sagar Dharia <[email protected]>Signed-off-by Karthikeyan Ramasubramanian <[email protected]>--- .../devicetree/bindings/i2c/i2c-qcom-geni.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txtDocumentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +0
-0
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt line 5
Quoted 5 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +5
-0@@ -0,0 +1,39 @@ +Qualcomm Technologies Inc. GENI based I2C Controller driver + +Required properties: + - compatible: Should be: + * "qcom,i2c-geni.
Only 1 version?
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt line 8
Quoted 3 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +3
-0+ - reg: Should contain QUP register address and length. + - interrupts: Should contain I2C interrupt. + - clocks: Serial engine core clock, and AHB clocks needed by the device.
Are there really clocks for a firmware based device or these are just clocks in the parent serial engine?
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt line 14
Quoted 6 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +6
-0+ - pinctrl-names/pinctrl-0/1: The GPIOs assigned to this core. The names + should be "active" and "sleep" for the pin confuguration when core is active + or when entering sleep state. + - #address-cells: Should be <1> Address cells for i2c device address + - #size-cells: Should be <0> as i2c addresses have no size component + - qcom,wrapper-core: Wrapper QUP core containing this I2C controller.
Probably these devices should be child nodes of the QUP core node.
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt line 18
Quoted 4 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +4
-0+ +Optional property: + - qcom,clk-freq-out : Desired I2C bus clock frequency in Hz. + When missing default to 400000Hz.
There's a standard property for this.
Quoted 25 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +21
-0+ +Child nodes should conform to i2c bus binding. + +Example: + +i2c@a94000 { + compatible = "qcom,i2c-geni"; + reg = <0xa94000 0x4000>; + interrupts = <GIC_SPI 358 0>; + clock-names = "se-clk", "m-ahb", "s-ahb"; + clocks = <&clock_gcc GCC_QUPV3_WRAP0_S5_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&qup_1_i2c_5_active>; + pinctrl-1 = <&qup_1_i2c_5_sleep>; + #address-cells = <1>; + #size-cells = <0>; + qcom,wrapper-core = <&qup_0>; + qcom,clk-freq-out = <400000>; +};Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Rob Herring
maintainerRe: [PATCH RFC 6/7] serial: Add device tree bindings for GENI based UART Controller
In reply to Karthikeyan RamasubramanianQuoted 16 lines · Karthikeyan Ramasubramanian
Add device tree binding support for GENI based UART Controller in the QUP Wrapper.
Signed-off-by Karthikeyan Ramasubramanian <[email protected]>Signed-off-by Girish Mahadevan <[email protected]>--- .../devicetree/bindings/serial/qcom,geni-uart.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/qcom,geni-uart.txtDocumentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +0
-0
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt line 8
Quoted 8 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +8
-0@@ -0,0 +1,31 @@ +Qualcomm Technologies Inc. GENI based Serial UART Controller driver + +This serial UART driver supports console use-cases. This driver is meant +only for Generic Interface (GENI) based Qualcomm Universal Peripheral (QUP) +cores and isn't backwards compatible. + +Required properties: +- compatible: should contain "qcom,geni-uart, qcom,geni-console"
Is console different programming model or just how you are using the h/w? for the latter, drop it as we have stdout-path to select a console.
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt line 18
Quoted 10 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +10
-0+- reg: Should contain UART register location and length. +- interrupts: Should contain UART core interrupts. +- clocks: clocks needed for UART, includes the core and AHB clock. +- pinctrl-names/pinctrl-0/1: The GPIOs assigned to this core. The names + Should be "active" and "sleep" for the pin confuguration when core is active + or when entering sleep state. +- qcom,wrapper-core: Wrapper QUP core containing this UART controller. + +Example: +qup_uart11: qcom,qup_uart@0xa88000 {
Use generic node names and no '0x':
serial@a88000
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt line 22
Quoted 4 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +4
-0+ compatible = "qcom,geni-uart"; + reg = <0xa88000 0x7000>; + reg-names = "se_phys"; + clock-names = "se-clk", "m-ahb", "s-ahb";
Not documented.
Quoted 13 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +9
-0+ clocks = <&clock_gcc GCC_QUPV3_WRAP0_S0_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&qup_1_uart_3_active>; + pinctrl-1 = <&qup_1_uart_3_sleep>; + interrupts = <0 355 0>; + qcom,wrapper-core = <&qup_0>; +};Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Re: [PATCH RFC 2/7] soc: qcom: Add device tree binding for GENI SE
In reply to Rob HerringQuoted 9 lines · Rob Herring
Quoted 8 lines · Karthikeyan Ramasubramanian
Add device tree binding support for the QCOM GENI SE driver.
Signed-off-by Karthikeyan Ramasubramanian <[email protected]>--- .../devicetree/bindings/soc/qcom/qcom,geni-se.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+)create mode 100644
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt
Quoted 13 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt line 5
Quoted 11 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt new file +5
-0@@ -0,0 +1,15 @@ +Qualcomm Technologies, Inc. GENI Serial Engine Driver + +GENI Serial Engine Driver manages the GENI firmware based Qualcomm Universal +Peripheral (QUP) Wrapper. GENI SE Driver also manages the common aspects of +individual Serial Engines that composes the QUP Wrapper.Bindings describe h/w, not drivers.
I will update the bindings to describe just the h/w and remove any driver description.
Quoted 6 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt line 8
Quoted 4 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt new file +3
-0+ +Required properties: +- compatible: Must be "qcom,geni-se-qup".Only one version of the h/w?
There is more than one hardware version. The h/w provides registers to identify the hardware version. The driver currently uses those registers to support any version-specific operations. So I am not sure if the compatible field needs to reflect the h/w version.
Quoted 7 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt line 12
Quoted 5 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt new file +4
-0+- reg: Must contain QUP register address and length. + +Example: + qup_0: qcom,geni_se_qup_0@8c0000 {Don't use '_' in node names.
I will update the bindings to not use '_'.
Quoted 13 lines
Quoted 8 lines
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt new file +3
-0+ compatible = "qcom,geni-se-qup"; + reg = <0x8c0000 0x6000>; + }Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Regards,
Karthik.
Signature · 6 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH RFC 2/7] soc: qcom: Add device tree binding for GENI SE
In reply to Rob HerringQuoted 5 lines · Rob Herring
Quoted 1 line · Karthikeyan Ramasubramanian
Add device tree binding support for the QCOM GENI SE driver.
Also, "dt-bindings: ..." is the preferred subject prefix. Same for the rest of the series.
I will update the subject-prefix.
Quoted 7 lines
Quoted 7 lines
Signed-off-by Karthikeyan Ramasubramanian <[email protected]>--- .../devicetree/bindings/soc/qcom/qcom,geni-se.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+)create mode 100644
Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.txt
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Regards,
Karthik.
Signature · 6 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH RFC 4/7] i2c: Add device tree bindings for GENI I2C Controller
In reply to Rob HerringQuoted 11 lines · Rob Herring
Quoted 10 lines · Karthikeyan Ramasubramanian
Add device tree binding support for I2C Controller in GENI based QUP Wrapper.
Signed-off-by Sagar Dharia <[email protected]>Signed-off-by Karthikeyan Ramasubramanian <[email protected]>--- .../devicetree/bindings/i2c/i2c-qcom-geni.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+)create mode 100644
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt
Quoted 13 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt line 5
Quoted 11 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +5
-0@@ -0,0 +1,39 @@ +Qualcomm Technologies Inc. GENI based I2C Controller driver + +Required properties: + - compatible: Should be: + * "qcom,i2c-geni.Only 1 version?
The Serial Engine used by I2C protocol has the same version as the QUP h/w version. The QUP Wrapper driver exposes an interface function to get the h/w version so that I2C controller driver can support version-specific operations, if any.
Quoted 7 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt line 8
Quoted 4 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +3
-0+ - reg: Should contain QUP register address and length. + - interrupts: Should contain I2C interrupt. + - clocks: Serial engine core clock, and AHB clocks needed by the device.Are there really clocks for a firmware based device or these are just clocks in the parent serial engine?
The clocks are required to derive the protocol clock. The clocks are also required by the Serial Engine to access the System Memory during DMA mode of operation.
Quoted 9 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt line 14
Quoted 7 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +6
-0+ - pinctrl-names/pinctrl-0/1: The GPIOs assigned to this core. The names + should be "active" and "sleep" for the pin confuguration when core is active + or when entering sleep state. + - #address-cells: Should be <1> Address cells for i2c device address + - #size-cells: Should be <0> as i2c addresses have no size component + - qcom,wrapper-core: Wrapper QUP core containing this I2C controller.Probably these devices should be child nodes of the QUP core node.
I will update it in the next patch.
Quoted 7 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt line 18
Quoted 5 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +4
-0+ +Optional property: + - qcom,clk-freq-out : Desired I2C bus clock frequency in Hz. + When missing default to 400000Hz.There's a standard property for this.
I will update to use the standard property.
Quoted 22 lines
Quoted 22 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +21
-0+ +Child nodes should conform to i2c bus binding. + +Example: + +i2c@a94000 { + compatible = "qcom,i2c-geni"; + reg = <0xa94000 0x4000>; + interrupts = <GIC_SPI 358 0>; + clock-names = "se-clk", "m-ahb", "s-ahb"; + clocks = <&clock_gcc GCC_QUPV3_WRAP0_S5_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&qup_1_i2c_5_active>; + pinctrl-1 = <&qup_1_i2c_5_sleep>; + #address-cells = <1>; + #size-cells = <0>; + qcom,wrapper-core = <&qup_0>; + qcom,clk-freq-out = <400000>; +};
Quoted 9 lines
Quoted 4 lines
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Regards,
Karthik.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Re: [PATCH RFC 6/7] serial: Add device tree bindings for GENI based UART Controller
In reply to Rob HerringQuoted 20 lines · Rob Herring
Quoted 19 lines · Karthikeyan Ramasubramanian
Add device tree binding support for GENI based UART Controller in the QUP Wrapper.
Signed-off-by Karthikeyan Ramasubramanian <[email protected]>Signed-off-by Girish Mahadevan <[email protected]>--- .../devicetree/bindings/serial/qcom,geni-uart.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+)create mode 100644
Documentation/devicetree/bindings/serial/qcom,geni-uart.txtDocumentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +3
-0@@ -0,0 +1,31 @@ +Qualcomm Technologies Inc. GENI based Serial UART Controller driver + +This serial UART driver supports console use-cases. This driver is meant
Quoted 8 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt line 8
Quoted 5 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +5
-0+only for Generic Interface (GENI) based Qualcomm Universal Peripheral (QUP) +cores and isn't backwards compatible. + +Required properties: +- compatible: should contain "qcom,geni-uart, qcom,geni-console"Is console different programming model or just how you are using the h/w? for the latter, drop it as we have stdout-path to select a console.
The console programming model is different from a regular UART port and hence the compatible field contains console in it.
Quoted 14 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt line 18
Quoted 11 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +10
-0+- reg: Should contain UART register location and length. +- interrupts: Should contain UART core interrupts. +- clocks: clocks needed for UART, includes the core and AHB clock. +- pinctrl-names/pinctrl-0/1: The GPIOs assigned to this core. The names + Should be "active" and "sleep" for the pin confuguration when core is active + or when entering sleep state. +- qcom,wrapper-core: Wrapper QUP core containing this UART controller. + +Example: +qup_uart11: qcom,qup_uart@0xa88000 {Use generic node names and no '0x':
Quoted 1 line
serial@a88000
I will update as per the recommendation.
Quoted 7 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt line 22
Quoted 5 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +4
-0+ compatible = "qcom,geni-uart"; + reg = <0xa88000 0x7000>; + reg-names = "se_phys"; + clock-names = "se-clk", "m-ahb", "s-ahb";Not documented.
I will add the documentation for the missing element.
Quoted 10 lines
Quoted 10 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +9
-0+ clocks = <&clock_gcc GCC_QUPV3_WRAP0_S0_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, + <&clock_gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&qup_1_uart_3_active>; + pinctrl-1 = <&qup_1_uart_3_sleep>; + interrupts = <0 355 0>; + qcom,wrapper-core = <&qup_0>; +};
Quoted 9 lines
Quoted 4 lines
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Regards,
Karthik.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Rob Herring
maintainerRe: [PATCH RFC 6/7] serial: Add device tree bindings for GENI based UART Controller
Quoted 40 lines · Karthik Ramasubramanian
Quoted 28 lines · Rob Herring
Quoted 25 lines · Karthikeyan Ramasubramanian
Add device tree binding support for GENI based UART Controller in the QUP Wrapper.
Signed-off-by Karthikeyan Ramasubramanian <[email protected]>Signed-off-by Girish Mahadevan <[email protected]>--- .../devicetree/bindings/serial/qcom,geni-uart.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+)create mode 100644
Documentation/devicetree/bindings/serial/qcom,geni-uart.txtDocumentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +4
-0@@ -0,0 +1,31 @@ +Qualcomm Technologies Inc. GENI based Serial UART Controller driver + +This serial UART driver supports console use-cases. This driver is meant +only for Generic Interface (GENI) based Qualcomm Universal Peripheral(QUP)
Quoted 8 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt line 8
Quoted 4 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +4
-0+cores and isn't backwards compatible. + +Required properties: +- compatible: should contain "qcom,geni-uart, qcom,geni-console"Is console different programming model or just how you are using the h/w? for the latter, drop it as we have stdout-path to select a console.
Quoted 2 lines
The console programming model is different from a regular UART port and hence the compatible field contains console in it.
And "console" is what the h/w reference manual calls it? If so, then it is fine. If not, sounds like a Linuxism.
Rob
Rob Herring
maintainerRe: [PATCH RFC 4/7] i2c: Add device tree bindings for GENI I2C Controller
In reply to Karthik RamasubramanianQuoted 47 lines · Karthik Ramasubramanian
Quoted 16 lines · Rob Herring
Quoted 13 lines · Karthikeyan Ramasubramanian
Add device tree binding support for I2C Controller in GENI based QUP Wrapper.
Signed-off-by Sagar Dharia <[email protected]>Signed-off-by Karthikeyan Ramasubramanian <[email protected]>--- .../devicetree/bindings/i2c/i2c-qcom-geni.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+)create mode 100644
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txtQuoted 15 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt line 5
Quoted 12 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +5
-0@@ -0,0 +1,39 @@ +Qualcomm Technologies Inc. GENI based I2C Controller driver + +Required properties: + - compatible: Should be: + * "qcom,i2c-geni.Only 1 version?
The Serial Engine used by I2C protocol has the same version as the QUP h/w version. The QUP Wrapper driver exposes an interface function to get the h/w version so that I2C controller driver can support version-specific operations, if any.
Quoted 8 lines
Quoted 6 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +3
-0+ - reg: Should contain QUP register address and length. + - interrupts: Should contain I2C interrupt. + - clocks: Serial engine core clock, and AHB clocks needed by thedevice.
Quoted 6 lines
Quoted 2 lines
Are there really clocks for a firmware based device or these are just clocks in the parent serial engine?
The clocks are required to derive the protocol clock. The clocks are also required by the Serial Engine to access the System Memory during DMA mode of operation.
You can get the QUP core (or Serial engine?) node and then get its clocks if you need to know the frequency. Put the clocks in DT in the h/w block they belong to. If you don't really have an I2C clock in the h/w, don't put one in the DT.
Rob
Re: [PATCH RFC 6/7] serial: Add device tree bindings for GENI based UART Controller
In reply to a message not in the archiveQuoted 42 lines · Rob Herring
Quoted 40 lines · Karthik Ramasubramanian
Quoted 36 lines · Rob Herring
Quoted 25 lines · Karthikeyan Ramasubramanian
Add device tree binding support for GENI based UART Controller in the QUP Wrapper.
Signed-off-by Karthikeyan Ramasubramanian <[email protected]>Signed-off-by Girish Mahadevan <[email protected]>--- .../devicetree/bindings/serial/qcom,geni-uart.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+)create mode 100644
Documentation/devicetree/bindings/serial/qcom,geni-uart.txtDocumentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +4
-0@@ -0,0 +1,31 @@ +Qualcomm Technologies Inc. GENI based Serial UART Controller driver + +This serial UART driver supports console use-cases. This driver is meant +only for Generic Interface (GENI) based Qualcomm Universal Peripheral(QUP)
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt line 8
Quoted 4 lines
Documentation/devicetree/bindings/serial/qcom,geni-uart.txt new file +4
-0+cores and isn't backwards compatible. + +Required properties: +- compatible: should contain "qcom,geni-uart, qcom,geni-console"Is console different programming model or just how you are using the h/w? for the latter, drop it as we have stdout-path to select a console.
Quoted 6 lines
Quoted 2 lines
The console programming model is different from a regular UART port and hence the compatible field contains console in it.
And "console" is what the h/w reference manual calls it? If so, then it is fine. If not, sounds like a Linuxism.
The hardware reference manual calls it Debug UART. I can change the
compatible string to contain "qcom,geni-debug-uart".
Quoted 1 line
Rob
Regards,
Karthik.
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 6 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH RFC 4/7] i2c: Add device tree bindings for GENI I2C Controller
In reply to Rob HerringQuoted 52 lines · Rob Herring
Quoted 50 lines · Karthik Ramasubramanian
Quoted 16 lines · Rob Herring
Quoted 13 lines · Karthikeyan Ramasubramanian
Add device tree binding support for I2C Controller in GENI based QUP Wrapper.
Signed-off-by Sagar Dharia <[email protected]>Signed-off-by Karthikeyan Ramasubramanian <[email protected]>--- .../devicetree/bindings/i2c/i2c-qcom-geni.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+)create mode 100644
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txtQuoted 15 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt line 5
Quoted 12 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +5
-0@@ -0,0 +1,39 @@ +Qualcomm Technologies Inc. GENI based I2C Controller driver + +Required properties: + - compatible: Should be: + * "qcom,i2c-geni.Only 1 version?
The Serial Engine used by I2C protocol has the same version as the QUP h/w version. The QUP Wrapper driver exposes an interface function to get the h/w version so that I2C controller driver can support version-specific operations, if any.
Quoted 10 lines
Quoted 6 lines
Documentation/devicetree/bindings/i2c/i2c-qcom-geni.txt new file +3
-0+ - reg: Should contain QUP register address and length. + - interrupts: Should contain I2C interrupt. + - clocks: Serial engine core clock, and AHB clocks needed by thedevice.
Are there really clocks for a firmware based device or these are just clocks in the parent serial engine?
Quoted 9 lines
Quoted 3 lines
The clocks are required to derive the protocol clock. The clocks are also required by the Serial Engine to access the System Memory during DMA mode of operation.
You can get the QUP core (or Serial engine?) node and then get its clocks if you need to know the frequency. Put the clocks in DT in the h/w block they belong to. If you don't really have an I2C clock in the h/w, don't put one in the DT.
The clocks that are used to access the System Memory are common to all the Serial Engines in the QUP Wrapper. I will move those clock definitions to the QUP core node. The clock that is used to derive the protocol clock is Serial Engine specific. Since the serial engine DT node is synonymous with the protocol with which it is programmed, I am defining that clock in the child node i.e. protocol controller block.
Quoted 2 lines
Rob
Regards,
Karthik.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project