From patchwork Fri Oct 13 09:16:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 115718 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp502049qgn; Fri, 13 Oct 2017 02:16:50 -0700 (PDT) X-Received: by 10.98.130.203 with SMTP id w194mr820930pfd.308.1507886210704; Fri, 13 Oct 2017 02:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507886210; cv=none; d=google.com; s=arc-20160816; b=mCzzQ0NlE4akPo2zHBBFgO0gDQir0bzNXr2hnYGCFdLwEyz6mLWoaKFkyHjPTgZo+R uui0+u0iqhbhtVlako8zMst4NfZOUQA+yuiS0Jl5F80beUO/LBAHncZttcfR8kglcXiN SKmGlF5EnCCSQo7ARYdJbYsH3QS5rXoKc2nwMBDDXi5GYs7JST8axMTuuqfopOiM8FhE ClOqNclmy2+3b+b3fsfNO29fJL8gBc09Wiy5VhkPwH7A8V7PI2MTzRgF8nr365/QqIte 3NfLGdIZJfBdi2tSveANVdvyk7XPhIjCqfxZ0HFM1Bwh1HiY8D5NVKucJ4lYYKjYPLbB wxuA== 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:arc-authentication-results; bh=twuB5tPZDlBaIxL1osOghl+MeoKe4xDEixXZHO41YNs=; b=ykRI9ANd4m6Gcvj/V291wf9Z/AuXi574FkQiO4nIMtRr0SLafkBzrcHTHJ1ihvPuYf exHI/ehzsBCyzWvjxqVIu7tMTdeDtSSpXoeTZdow4Ni1Hxg65PBYnhH0XusOn5h0AKp0 +MZodjvfpNBrfVzw+emdGhYfpSk8vKBJ0duTzdVJ6nl3EVgss8y9Qobb6gftFgjNxSlh vt1wtbYcFPCdrxNN4abFKMw3MbcePOtpuM0om7DLoHs7kwpIoVIFGW7u5pSiLRxZg3yj 7737LrBELbMvf4VKG+JjR1g3oLQ1rIj2pIlFRuSed4EbR1ORxYQ1V+MSHlQU3BWIuNc+ J8vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=flpLjRkM; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 n9si355113plk.757.2017.10.13.02.16.50; Fri, 13 Oct 2017 02:16:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=flpLjRkM; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757058AbdJMJQt (ORCPT + 6 others); Fri, 13 Oct 2017 05:16:49 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:51395 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762AbdJMJQr (ORCPT ); Fri, 13 Oct 2017 05:16:47 -0400 Received: by mail-wm0-f41.google.com with SMTP id f4so19994617wme.0 for ; Fri, 13 Oct 2017 02:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=Yygbbs9gvO0pXavqLDXptgCv3Y8GOCg2lwKtS1E5hAQ=; b=flpLjRkMBH+KlLDSBcs5Ukbm6sWYYXQt+J5HcFog4VsKZES7msK7lS9Xvmp7pJomjn 1JwU5VCMp6M62W7+nN9wJtTKY88GIGX1+fj3dJRQ+31IUW3H1Y+C+vtEMMWxMepnGwhK JtTH/W4H4uiB9E4MbC0AmvkbF1RAYVT6imPMGr0xE4b6Qu7JYc1dVFoqSH7H4k7EaS3a Ad7EXNBtFC4tIn7khE08NCQWE/ANQQurMHW9SIBHO2ffsoivIDz0MYn8HRUoGUIgw9Xk xKF1atI9aCNQPsNGLG2+udU8Gby5nS5OAOAhmJG1f8mSjS4KWrr2PB+uTRqi0znwq6Oc KgeA== 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=Yygbbs9gvO0pXavqLDXptgCv3Y8GOCg2lwKtS1E5hAQ=; b=tFxg3xt1SaBjpXbB+2eYKecmK0bfW201bj6ngTA/qP/RdgJu8YtXYUfCNuy22xS0Fd RElZhzFY04qWq5psCtHQoRcpaZEUnI0AZBMEjMvsiKgN0T/nDN7SSm6R4f98paghGKBb 09ZYkEgKvmJxT2JMDvj6RDu7y3RJcEfUTESCYkezQwpW98ynsPnMVIO0IGe2+phhTDCq nVPpE5rvdx+tiWK6m6YZIZAdE8GbV72LOeRvz2X0prTxQ6cuq6q8QNKq/gWShFJGMhSg uw5PPDJBlBHt7K9AFEXYT9AQpSFZQZMJ2XQvTAuF6b4n9RO8yOe6GXOPO9aGbLPYaLlp 1jQg== X-Gm-Message-State: AMCzsaXax1QnaLx14545SDoSvWl+fSCvrczVXHFwZpmaxdfsZA7hhjF6 z17qCWxyecs6v1kl7W/qw83H/g== X-Google-Smtp-Source: AOwi7QCJ9fDroOKwJFzWszckT0QpCE7tUzrJLV8NVdg52e1Po3qcwQUf1EZo4R3Lej2OgkUp67dmnA== X-Received: by 10.223.168.66 with SMTP id l60mr792438wrc.144.1507886206263; Fri, 13 Oct 2017 02:16:46 -0700 (PDT) Received: from localhost.localdomain (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id m48sm1043863wrf.51.2017.10.13.02.16.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Oct 2017 02:16:45 -0700 (PDT) From: Jerome Brunet To: Thierry Reding , Kevin Hilman , Carlo Caione Cc: Jerome Brunet , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] pwm: meson: use generic compatibles Date: Fri, 13 Oct 2017 11:16:42 +0200 Message-Id: <20171013091642.31948-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.13.6 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The meson pwm driver seems to be compatible with more SoCs than initially thought. Let's use the most generic compatibles he have in DT instead of the gxbb specific ones Signed-off-by: Jerome Brunet --- Documentation/devicetree/bindings/pwm/pwm-meson.txt | 6 +++--- drivers/pwm/pwm-meson.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/pwm/pwm-meson.txt b/Documentation/devicetree/bindings/pwm/pwm-meson.txt index 1ee81321c35e..439e05030553 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-meson.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-meson.txt @@ -3,8 +3,8 @@ Amlogic Meson PWM Controller Required properties: - compatible: Shall contain "amlogic,meson8b-pwm" - or "amlogic,meson-gxbb-pwm" - or "amlogic,meson-gxbb-ao-pwm" + or "amlogic,meson-gx-pwm" + or "amlogic,meson-gx-ao-pwm" - #pwm-cells: Should be 3. See pwm.txt in this directory for a description of the cells format. @@ -16,7 +16,7 @@ Optional properties: Example: pwm_ab: pwm@8550 { - compatible = "amlogic,meson-gxbb-pwm"; + compatible = "amlogic,meson-gx-pwm"; reg = <0x0 0x08550 0x0 0x10>; #pwm-cells = <3>; clocks = <&xtal>, <&xtal>; diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index d589331d1884..ababcc5ca3f1 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c @@ -393,7 +393,7 @@ static const char * const pwm_gxbb_parent_names[] = { "xtal", "hdmi_pll", "fclk_div4", "fclk_div3" }; -static const struct meson_pwm_data pwm_gxbb_data = { +static const struct meson_pwm_data pwm_gx_data = { .parent_names = pwm_gxbb_parent_names, .num_parents = ARRAY_SIZE(pwm_gxbb_parent_names), }; @@ -406,7 +406,7 @@ static const char * const pwm_gxbb_ao_parent_names[] = { "xtal", "clk81" }; -static const struct meson_pwm_data pwm_gxbb_ao_data = { +static const struct meson_pwm_data pwm_gx_ao_data = { .parent_names = pwm_gxbb_ao_parent_names, .num_parents = ARRAY_SIZE(pwm_gxbb_ao_parent_names), }; @@ -417,12 +417,12 @@ static const struct of_device_id meson_pwm_matches[] = { .data = &pwm_meson8b_data }, { - .compatible = "amlogic,meson-gxbb-pwm", - .data = &pwm_gxbb_data + .compatible = "amlogic,meson-gx-pwm", + .data = &pwm_gx_data }, { - .compatible = "amlogic,meson-gxbb-ao-pwm", - .data = &pwm_gxbb_ao_data + .compatible = "amlogic,meson-gx-ao-pwm", + .data = &pwm_gx_ao_data }, {}, };