From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Gross Subject: [Patch v2 0/4] Introduce drivers/soc and add QCOM GSBI driver Date: Thu, 24 Apr 2014 11:31:18 -0500 Message-ID: <1398357082-5102-1-git-send-email-agross@codeaurora.org> Return-path: Received: from smtp.codeaurora.org ([198.145.11.231]:59747 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753390AbaDXQcF (ORCPT ); Thu, 24 Apr 2014 12:32:05 -0400 Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Kumar Gala , Santosh Shilimkar , Greg Kroah-Hartman , Andy Gross The first patch in this set adds the drivers/soc directory and all the necessary plumbing. These changes were discussed at the kernel summit and also were introduced in an earlier patch set from Santosh Shilimkar. Reference the following set of patches: https://lkml.org/lkml/2014/2/28/567 The remaining patches add the QCOM GSBI (General Serial Bus Interface) driver, device tree binding information for both the GSBI and child node interaction, and lastly a patch to fix the current MSM serial driver to work correctly with the GSBI changes. Before this patch series, serial drivers (UART, I2C, and SPI) were all directly accessing the overarching mux control settings for the parent GSBI device. This leads to unfortunate interactions when you want a UART and I2C device which share the same GSBI interface. By moving the serial devices to child nodes of the GSBI, we can get the right mode setting for the ports and keep the children from accessing the GSBI directly. Changes from v1: - Add dt-bindings file containing definitions for MUX values - Fix code comments - Removed unnecessary code Andy Gross (4): soc: Placeholder files for drivers/soc soc: qcom: Add device tree binding for GSBI soc: qcom: Add GSBI driver tty: serial: msm: Remove direct access to GSBI .../devicetree/bindings/soc/qcom/qcom,gsbi.txt | 78 ++++++++++++++++++ drivers/Kconfig | 2 + drivers/Makefile | 4 + drivers/soc/Kconfig | 5 ++ drivers/soc/Makefile | 5 ++ drivers/soc/qcom/Kconfig | 11 +++ drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/qcom_gsbi.c | 84 ++++++++++++++++++++ drivers/tty/serial/msm_serial.c | 48 +---------- drivers/tty/serial/msm_serial.h | 5 -- include/dt-bindings/soc/qcom,gsbi.h | 26 ++++++ 11 files changed, 218 insertions(+), 51 deletions(-) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,gsbi.txt create mode 100644 drivers/soc/Kconfig create mode 100644 drivers/soc/Makefile create mode 100644 drivers/soc/qcom/Kconfig create mode 100644 drivers/soc/qcom/Makefile create mode 100644 drivers/soc/qcom/qcom_gsbi.c create mode 100644 include/dt-bindings/soc/qcom,gsbi.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation From mboxrd@z Thu Jan 1 00:00:00 1970 From: agross@codeaurora.org (Andy Gross) Date: Thu, 24 Apr 2014 11:31:18 -0500 Subject: [Patch v2 0/4] Introduce drivers/soc and add QCOM GSBI driver Message-ID: <1398357082-5102-1-git-send-email-agross@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org The first patch in this set adds the drivers/soc directory and all the necessary plumbing. These changes were discussed at the kernel summit and also were introduced in an earlier patch set from Santosh Shilimkar. Reference the following set of patches: https://lkml.org/lkml/2014/2/28/567 The remaining patches add the QCOM GSBI (General Serial Bus Interface) driver, device tree binding information for both the GSBI and child node interaction, and lastly a patch to fix the current MSM serial driver to work correctly with the GSBI changes. Before this patch series, serial drivers (UART, I2C, and SPI) were all directly accessing the overarching mux control settings for the parent GSBI device. This leads to unfortunate interactions when you want a UART and I2C device which share the same GSBI interface. By moving the serial devices to child nodes of the GSBI, we can get the right mode setting for the ports and keep the children from accessing the GSBI directly. Changes from v1: - Add dt-bindings file containing definitions for MUX values - Fix code comments - Removed unnecessary code Andy Gross (4): soc: Placeholder files for drivers/soc soc: qcom: Add device tree binding for GSBI soc: qcom: Add GSBI driver tty: serial: msm: Remove direct access to GSBI .../devicetree/bindings/soc/qcom/qcom,gsbi.txt | 78 ++++++++++++++++++ drivers/Kconfig | 2 + drivers/Makefile | 4 + drivers/soc/Kconfig | 5 ++ drivers/soc/Makefile | 5 ++ drivers/soc/qcom/Kconfig | 11 +++ drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/qcom_gsbi.c | 84 ++++++++++++++++++++ drivers/tty/serial/msm_serial.c | 48 +---------- drivers/tty/serial/msm_serial.h | 5 -- include/dt-bindings/soc/qcom,gsbi.h | 26 ++++++ 11 files changed, 218 insertions(+), 51 deletions(-) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,gsbi.txt create mode 100644 drivers/soc/Kconfig create mode 100644 drivers/soc/Makefile create mode 100644 drivers/soc/qcom/Kconfig create mode 100644 drivers/soc/qcom/Makefile create mode 100644 drivers/soc/qcom/qcom_gsbi.c create mode 100644 include/dt-bindings/soc/qcom,gsbi.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation