Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp886526ybp; Fri, 4 Oct 2019 06:33:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuy+hbBMpjq4m3cbfQrf0Ru9QJVuV441/sD0C6/kfTi9e3tQ7ERIuwmsbCC924TZjE461Z X-Received: by 2002:a17:906:a01:: with SMTP id w1mr12395129ejf.240.1570196016855; Fri, 04 Oct 2019 06:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570196016; cv=none; d=google.com; s=arc-20160816; b=khNB6HP7eO8LlEmg36DdMNVDPmGmKfQzi4wJBdgfA3R2UPRVEC5YaKIZyulLu25MCF iiqGmRXPJBwsqaQMluZ/VXKr7rInH9rb7bQqfp73lFztSTzYJr9llc32XiUKidrcnGZc n/7i9QRmiLJvk5zpQa3S4XU9IlBIPNJ6a2qXSlpV/J17tbRPUwUjf0U4fXZfSTis2z4c J+At5GOJSAlqi4JLbnLzl0XDk+wzL16znaUv6lRLNRiYHB6kVGy+/Yj8GV+77FHhbehi hASSbHrb6YfYIOEv7pTjOrGnZ7P/Yxn64CCIhUa7/1QJF7IQzN5VAOATqVBrdTzs/v4D U1+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6e6kNUFkOwggtKh2FtgQ72TKMBXQJNnsWv0kpOgx0sI=; b=Fbah1ScZCh59F112v2031XXyMuWdi8idXx4NIhOiS2t3ieUOlvf9MreHPK/XDBPviB /PhHSqEIaoo7H7khn3gUqJOB7bUzbjCDTR7NRTJEIHuVoohhdlWTLoiAUIAiUqTuqa2B yWMn8p+Ue/3yTZ7op9OjrP6EXZ913+LPdA0LxXIWwmkNX4R1Ai00sEpaCwQGXtQZuagV IiNnhXHaaKdvgURfCKiPcVyeJprMD4lp50EEZHYm/v1JjZf4gZPIgSvaojJsv4eqyDGX HlM6hLfnabGxxgbBycepi5Y7XxDWrC7xq4MB044yur9TU3JTKAhAQL9jk136wWy6/fm8 eD9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=XZkKHdG2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r16si3263838edo.307.2019.10.04.06.33.12; Fri, 04 Oct 2019 06:33:36 -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=@rasmusvillemoes.dk header.s=google header.b=XZkKHdG2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388539AbfJDNdA (ORCPT + 99 others); Fri, 4 Oct 2019 09:33:00 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37225 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388498AbfJDNc7 (ORCPT ); Fri, 4 Oct 2019 09:32:59 -0400 Received: by mail-lj1-f196.google.com with SMTP id l21so6548373lje.4 for ; Fri, 04 Oct 2019 06:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6e6kNUFkOwggtKh2FtgQ72TKMBXQJNnsWv0kpOgx0sI=; b=XZkKHdG2crSiyzrMy2VYonGv0szQi+UnZmCse5Bf56kipSTq4oGJhOVzSkBSoZFHR1 +ZF/LdhdrF5138bRvPtoMvzxccaUeOYRvhGHeLff0IJzgfXgOwBh7uHZdnco99ie3Xd7 t0vZOi9c0XtZONz49s5W+o1BWQlyXdSavQ1zA= 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:mime-version :content-transfer-encoding; bh=6e6kNUFkOwggtKh2FtgQ72TKMBXQJNnsWv0kpOgx0sI=; b=WyEaVmGH3RYmYHLBv+Xc0VqnIsxnBu7EQfG3jrH7rx0RxMBhpjj3XUsN7evDumBPgg VaWgNvbO4DfOjcsMSYEba5SAAifJwVDmxzByURvvQApf27uSCOz7vO24WeK1EurkOznY yIUyC8UpbhOjzluiSmkJVCITnrwfQ/fhZK/FgNLqNWis6hotKqOvBzlN8gLOfdb1xMhD 83ksvqdsEptogI0q4rdGFlnhgId42iob8UnTJJ2+ALwUsbzLhr1BhsLoN1rFbNUQpCSZ ope5ox6fqHWVWFghAVctkaec2oqtD1NWzQW5pOEqf/Jb/aekSitDNmE4NfK2thqCnLx9 oUew== X-Gm-Message-State: APjAAAXPUZrmwz+xbYPLWkkyFo83y0HzLX55qgQFFMgIFjxwf3y9ZzQl EAgp0DfXniOOWFE9KvlrXvI4AQ== X-Received: by 2002:a2e:9692:: with SMTP id q18mr9757018lji.73.1570195977546; Fri, 04 Oct 2019 06:32:57 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id y26sm1534991ljj.90.2019.10.04.06.32.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2019 06:32:56 -0700 (PDT) From: Rasmus Villemoes To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rasmus Villemoes Subject: [PATCH v2 0/6] pwm: mxs: add support for setting polarity via DT Date: Fri, 4 Oct 2019 15:32:01 +0200 Message-Id: <20191004133207.6663-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for setting the polarity via DT to the pwm-mxs driver. The DT binding is updated, but I'm not touching the existing .dts or .dtsi files - it seems that the same was done for bcm2835 in commits 46421d9d8e802e570dfa4d793a4938d2642ec7a7 and 8a88b2a2017d1e7e80db53080baff591fd454722, while arch/arm/boot/dts/bcm283x.dtsi still has #pwm-cells = <2>. v2: - Rebase to v5.4-rc1 - Address comments from Uwe. - Add Rob's ack to patch 4. - New patches 5 and 6. The last one is independent of the others, but I stumbled on this when rebasing and found the signature had changed. Rasmus Villemoes (6): pwm: mxs: implement ->apply pwm: mxs: remove legacy methods pwm: mxs: add support for inverse polarity dt-bindings: pwm: mxs-pwm: Increase #pwm-cells pwm: mxs: avoid a division in mxs_pwm_apply() pwm: update comment on struct pwm_ops::apply .../devicetree/bindings/pwm/mxs-pwm.txt | 4 +- drivers/pwm/pwm-mxs.c | 101 +++++++++--------- include/linux/pwm.h | 5 +- 3 files changed, 53 insertions(+), 57 deletions(-) -- 2.20.1