From patchwork Wed Aug 14 12:46:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 171277 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp786234ily; Wed, 14 Aug 2019 05:46:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0MW6DP3wVnCQo3sSR/y+T2WJiCqeFp3/dFbGvHf24f95cdHL6sZgqpubRTJKAwKumLRRG X-Received: by 2002:a63:124a:: with SMTP id 10mr38799964pgs.254.1565786799641; Wed, 14 Aug 2019 05:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565786799; cv=none; d=google.com; s=arc-20160816; b=iSGBQCyrMZ0cMW7XUvMjlpfYcJ6VrAVgxP5n6+roKhJMs8fv1E8CWC/TaC4rLO2fiK 2DNsy9WJxq9WIu2mk4rddVSCzTp5EKYehyiuZapKI25vRNADS/YltP89D7yHtPx7I5bh ko7tuumLKFYE1Db5S7LTmG7alaM9FY0gsmtAOgY5a3z8RvClpTi+iB8bd3t4Wbyadz6O r1o+eBoOP2lqWnv+whxm6kQQPkF13H9k1fBoh6vxgS+erHN5fVoIxAP9wwuVkNaGLR8n fkFxPX1VRzUerYaKzm0+OHA2fZ09p4oRWo8VAgfNlhSJbcu7jbUSnpx0VSMytoumMXDz +tOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=/Tqal4DPxUyG798nTPcd+FwAY4NlPgoJZ1fPKoHBaLM=; b=0SsVg9wyckYPTPxIzElEy9KNrHzEYNrDUjusS+sI/dyVLW8oc4VHnQMvDcTzRy0rQ9 /ObMiL8fDYCWQDQ3nMSbaaRu3PMMpVS0ZUMRKxnbfaEf5YpU+LtNnjjLw1wpdNp5GhOy YRaZCWe+v+sCdAHjMRqBGx4p6ilDvI7j99h6Hg31Atb+V6DGCF34KnTcWfMeZOqFeJ8V GwUD9bHYUpEjDrKQvSWCuCpv5XCHrWobq3ESXFDcIpzsf4MEQT/c/Ntupiwddsd71UV8 890GQZ134eHDZjzeLyW99KbhdqUwmnweqdyRZiO1N/gjXMJphXmUNBSo3rt+TJfRnpKm LWlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OEfzoBAX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si13558704plz.62.2019.08.14.05.46.39; Wed, 14 Aug 2019 05:46:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OEfzoBAX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727628AbfHNMqi (ORCPT + 28 others); Wed, 14 Aug 2019 08:46:38 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:39802 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726951AbfHNMqh (ORCPT ); Wed, 14 Aug 2019 08:46:37 -0400 Received: by mail-pg1-f194.google.com with SMTP id u17so53033409pgi.6 for ; Wed, 14 Aug 2019 05:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=/Tqal4DPxUyG798nTPcd+FwAY4NlPgoJZ1fPKoHBaLM=; b=OEfzoBAXJBnlenOgnIcN8ObmapGd6oOPot2HHn8w7llFh28KD6us6MkjkNc0ASFRqW rzl9HZQsKOvImk9AcBnVBAx7qfqDsXeXfpKJnk1ZBu/iJCuqXOt8kNZxvsueMGF+f3Df M0GvGYxMRT87H2rdA3V9lQ0vlG8+dPLuxdl6MMjutpxG2Ogi8ecSJYuzzXIUpqrzN957 t5rzWoFXBSv1uRt6I45S697CkHsE2J2vFVeS2IGyTKgRLZZaDdtCtppwstwzqmonZyP1 brigO+/FywrRqkeVKQYrHngQYUwIMmRZd/rbjUhdQbuYEhkoeOf0utq/HxmGUHZRG9XW kaZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/Tqal4DPxUyG798nTPcd+FwAY4NlPgoJZ1fPKoHBaLM=; b=SItbCw1ComM+tHhi94kglPDPmY481LU9dDyJyqEXgfX1g+awwyeEMgbkPyJJAyIcrc Nj93fL7ZKRpj3MOBrGcFCTEVJhbl2qh2z35rMfnsvVa3gH1tcHTkTEa2Qe7kFtLBhaEk phbG6ljld9fAcVBVdcHQPpOSqEoihqLrpjtypEYDNEHbo3hP24sqVz0kB2+YwEmqBVqa /L8sBAaHoFszee4b2VfW8s7NRfJkIsCqZV7olfYUS2wjq/I0iayTnYp+vQ1LL2+/PRrt oLu0ym2Ei+/cqFg9BXUG0nkgoy0lUwzn0zj/lYuWRP8CxF6LuqiIBF5j2Jh5c5kmxqf6 pZvQ== X-Gm-Message-State: APjAAAVR8TQB9x4gF4DqxKeQelD9qHc5/U/9hVLF4TGtBeOtkCT28WQV p7tOixO9LS9RDP0U9+Z+6mwXHA== X-Received: by 2002:a63:f13:: with SMTP id e19mr38944881pgl.132.1565786797051; Wed, 14 Aug 2019 05:46:37 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id e5sm40753099pgt.91.2019.08.14.05.46.34 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Aug 2019 05:46:36 -0700 (PDT) From: Baolin Wang To: thierry.reding@gmail.com, robh+dt@kernel.org Cc: u.kleine-koenig@pengutronix.de, mark.rutland@arm.com, orsonzhai@gmail.com, zhang.lyra@gmail.com, baolin.wang@linaro.org, vincent.guittot@linaro.org, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: pwm: sprd: Add Spreadtrum PWM documentation Date: Wed, 14 Aug 2019 20:46:10 +0800 Message-Id: <65a34dd943b0260bfe45ec76dcf414a67e5d8343.1565785291.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Spreadtrum PWM controller documentation. Signed-off-by: Baolin Wang --- Changes from v2: - Fix some typos. - Move assigned-clocks to be optional. Changes from v1: - Use assigned-clock-parents and assigned-clocks to set PWM clock parent. --- Documentation/devicetree/bindings/pwm/pwm-sprd.txt | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sprd.txt -- 1.7.9.5 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/pwm/pwm-sprd.txt b/Documentation/devicetree/bindings/pwm/pwm-sprd.txt new file mode 100644 index 0000000..16fa5a0 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-sprd.txt @@ -0,0 +1,40 @@ +Spreadtrum PWM controller + +Spreadtrum SoCs PWM controller provides 4 PWM channels. + +Required properties: +- compatible : Should be "sprd,ums512-pwm". +- reg: Physical base address and length of the controller's registers. +- clocks: The phandle and specifier referencing the controller's clocks. +- clock-names: Should contain following entries: + "pwmn": used to derive the functional clock for PWM channel n (n range: 0 ~ 3). + "enablen": for PWM channel n enable clock (n range: 0 ~ 3). +- #pwm-cells: Should be 2. See pwm.txt in this directory for a description of + the cells format. + +Optional properties: +- assigned-clocks: Reference to the PWM clock entries. +- assigned-clock-parents: The phandle of the parent clock of PWM clock. + +Example: + pwms: pwm@32260000 { + compatible = "sprd,ums512-pwm"; + reg = <0 0x32260000 0 0x10000>; + clock-names = "pwm0", "enable0", + "pwm1", "enable1", + "pwm2", "enable2", + "pwm3", "enable3"; + clocks = <&aon_clk CLK_PWM0>, <&aonapb_gate CLK_PWM0_EB>, + <&aon_clk CLK_PWM1>, <&aonapb_gate CLK_PWM1_EB>, + <&aon_clk CLK_PWM2>, <&aonapb_gate CLK_PWM2_EB>, + <&aon_clk CLK_PWM3>, <&aonapb_gate CLK_PWM3_EB>; + assigned-clocks = <&aon_clk CLK_PWM0>, + <&aon_clk CLK_PWM1>, + <&aon_clk CLK_PWM2>, + <&aon_clk CLK_PWM3>; + assigned-clock-parents = <&ext_26m>, + <&ext_26m>, + <&ext_26m>, + <&ext_26m>; + #pwm-cells = <2>; + };