Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4366564pxy; Tue, 27 Apr 2021 03:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYiW5IPoBohv5Ekp/P57vE002V4Fe8d4H4kNFuzCaEwruwld1nHlCmdSGijjYwiz/jCVCj X-Received: by 2002:a17:902:e88b:b029:eb:8aff:366 with SMTP id w11-20020a170902e88bb02900eb8aff0366mr23414025plg.20.1619519176162; Tue, 27 Apr 2021 03:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619519176; cv=none; d=google.com; s=arc-20160816; b=WUhZDFsFoCXv5F6PdPfXPQuupPUQSO2XDPjLOD5rdNXk23ZGOOVi2S1yljMvnICoMy zRXxWbt6rpw7HeofUNwJcO9odxwXYuOkVfdMgDtr0MiASvQ0fusQCdp8moyRDuHSIkxw pW41wo8AJLtjsqhihkrMLFP0TXtuibFT7AkePDrUvqXn6+ZwG2m+FM9/3fzB/fGDcrKE srkZWKhXZuqjkpEwDtpPWpnMFMwwdgzrv7kzqxbTu7qk8N3mVXBVl7gz2sWvF0SzgNff zPavS9jxMVuJL1n2ZltjdbmX0MaWinpn72xLxGu9W/7Tag5CDDlyQXp4qMva5CZAA9Uf At2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=Pyfm1pM0srPnnI8uYQKfJWlpQqpKFiXu5zRYYRmRtXk=; b=CgcWXwx81piIGbgftvCv8Kyq5JY4vmmz1eladgP+3NqkhGw9YYfGKAfT1GSEoXc3kx tedu85b6Ra5D8R81CXD/8GFn6afJ2rThLL+SRnFbzE1cRwWYmdJIQrXHTVbA3c22V8rK DHFdsKp1krd9S1dBJVbsJPTc9AV0PpqEiUUdDYV9syKKNKgp+cEkQLfgTnfSTkdZj2wj 5Y4RVf2rCJ7dv3lZP6K0Ayg79gGPSwseQd6awXaOfN0QeR7iU3qLnUr1iZ1TSQcegztl 61305AT/l0a+XS7yHRjJkPhkc9ssyFs4JxUS+P0Lbasc8sqCh9QlO6ibgnDcBbXNXXaD ECAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=fTucSSqX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck4si3334090pjb.55.2021.04.27.03.26.03; Tue, 27 Apr 2021 03:26:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=fTucSSqX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234773AbhD0KZD (ORCPT + 99 others); Tue, 27 Apr 2021 06:25:03 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:36695 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237740AbhD0KYf (ORCPT ); Tue, 27 Apr 2021 06:24:35 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1619519032; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=Pyfm1pM0srPnnI8uYQKfJWlpQqpKFiXu5zRYYRmRtXk=; b=fTucSSqXqG5OmAIcQxlYpc4M8ICUBlXH6t0nPnjr59XZZmyU+n4rW6NE0SuV9OtaojerW8it TIG4x877bou6/1yK0w45LgMqQelLpQGj1iNAdtV8vDodydd/Blnqxj0SiGATOcXa81TCrkmv eGwNHDhbsXB9Y4AyOEVwP+tRk50= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-east-1.postgun.com with SMTP id 6087e623a817abd39aa0ef8a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 27 Apr 2021 10:23:31 GMT Sender: fenglinw=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E01C8C433F1; Tue, 27 Apr 2021 10:23:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from fenglinw02.ap.qualcomm.com (unknown [180.166.53.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: fenglinw) by smtp.codeaurora.org (Postfix) with ESMTPSA id A9CF7C433D3; Tue, 27 Apr 2021 10:23:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A9CF7C433D3 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=fenglinw@codeaurora.org From: Fenglin Wu To: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: subbaram@codeaurora.org, collinsd@codeaurora.org, aghayal@codeaurora.org, fenglinw@codeaurora.org Subject: [PATCH 0/2] Add QCOM PMIC PWM driver Date: Tue, 27 Apr 2021 18:22:08 +0800 Message-Id: <20210427102247.822-1-fenglinw@codeaurora.org> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PWM driver to support PWM modules inside QCOM PMIC chips which are accessed through SPMI bus. Normally, there would be multiple PWM modules with adjacent address spaces present in one PMIC chip, and each PWM module has 0x100 size of address space. With this driver, a pwm_chip with multiple pwm_device individuals is created, and each pwm_device individual is corresponding to one PWM module. Fenglin Wu (2): dt-bindings: pwm: add bindings for PWM modules inside QCOM PMICs pwm: pwm-qcom: add driver for PWM modules in QCOM PMICs .../devicetree/bindings/pwm/pwm-qcom.yaml | 51 ++ drivers/pwm/Kconfig | 9 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-qcom.c | 585 +++++++++++++++++++++ 4 files changed, 646 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-qcom.yaml create mode 100644 drivers/pwm/pwm-qcom.c -- Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.