From patchwork Mon Feb 14 08:19:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12745179 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8E01C433F5 for ; Mon, 14 Feb 2022 08:33:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VO99rjYAhqsC56tx2CYiQLuMJTxA/+kzAC9/AchwaJU=; b=S3+lueyJyF+hhU RSKkTUNwspsBgcTco8IkZsUrfiZGdJyfQnc9l1EdrqMpaMEL+ejNmgMB9Jr4OmX9rn0c/N+kMbU7V cuMTr1R4+O0isA8/zPnB2/OJH+T0YhZB5o/eWLTwN5bzqyCrrExoWHV8+DxHtMqgLWASR+tsT0OdI 7K7bg42qpVw4MxmRzDvloOl/EV5EwmryfiTVCvKYhOJrqj/NrEWLqXd4OVQO0BebmHJnIZ+Vr7rsC 55Gktjda51LPPArficnNOAvKOx6GapscBPns8nS5wLMv4ifv2Uj7Uol0/ldRfK1yyLt3bdq25hY97 JLpj52TyPCExEEdjkphg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJWns-00DwoG-12; Mon, 14 Feb 2022 08:33:48 +0000 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJWaR-00Dr93-0m for linux-rockchip@lists.infradead.org; Mon, 14 Feb 2022 08:19:56 +0000 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id AF85C4049D for ; Mon, 14 Feb 2022 08:19:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644826793; bh=r/A1exu5teyjmoBiQRL2ADp+LBFLDHTow6yiZCZgmss=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KjUiTDX19e3BrgHmreSs4Cs1goo9SD4zIEBHKunqpZKGShuvgi/Mjii8NKB00kKIq 3GVqkmKXsesYZc6vx0pghCpzX/jeCRM+EjWug4HBb5vI7JoggOoInUwOi97LggtY6i 4NYMP59Z73a0wzr3MsE7l9geBZi2yrRA0Wozg4lzJiTkX011+EhC9GQ+aEt9JlVMpE nHy7eHo43b7pJPorNoHSRCTAf/0yhX641n47JVbbMHKAqwL9CGQyQnN/wfrWi2e424 k7AFgT7nzpZYB0ekjNlgwQkxvr5ZDn3hf3lDG3trdk3LL5LAS7Lrq9iJpqMuGHCGqU IR/P1vhgYQl7w== Received: by mail-ej1-f72.google.com with SMTP id qa30-20020a170907869e00b006cee5e080easo441066ejc.3 for ; Mon, 14 Feb 2022 00:19:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=r/A1exu5teyjmoBiQRL2ADp+LBFLDHTow6yiZCZgmss=; b=vwoarMClJ54m5CTkdZSJ4ZnGNrUsA+0FCiWACMBobpq1KE7YXTngSKnV/Tw68p4H7B m1IevDaezKwcAjDMYcDn/VdNGbGCgRxOHzeN4u4eitYNBy6QlFKbftW0uaaPV7UWAAga sVVeOrltGm34gi8tQSf0HGe7zywWZh87OnOKeP+EhJt0TocJzg9jlvMGqpNTB66q07SB f2B5wSf5vTxCBDyv3cvpV8FwaG1TCNEMnXrGOMHaW/u82wTzGjROwu+jkyC7s4whz/cL LkcMuIN6dYJUT3xFVsK2Jn5k49lx3rsQDCEfRSleW6tML+zMVm08XpvcLAuq8bw3pIFY ki3Q== X-Gm-Message-State: AOAM532DtgXqUOKcNUJ1JQxeIucxW4JDc2V+GJjaj5Q5FDzFb6N0n7zz ry/4PsALN0d/+CPcORsWSTo4QhH0b3keItU0+vyRZuqRUKD0Q/hPvroIYyaOJ+O/lJEJvqschJh k4tEnvd5jAWo8zqo2yE6FeY94BbS88Qktj9K4hTVdtl9s4NtQRA== X-Received: by 2002:a05:6402:278c:: with SMTP id b12mr14039632ede.103.1644826793445; Mon, 14 Feb 2022 00:19:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdbYmf42KnCNX/mcVtFFEqTiPZLsd8EmrJGHsXn4X5T6VWqFxb6wiz0GiywYV8Bjax6MTWGA== X-Received: by 2002:a05:6402:278c:: with SMTP id b12mr14039619ede.103.1644826793319; Mon, 14 Feb 2022 00:19:53 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id b20sm2022941ede.23.2022.02.14.00.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 00:19:52 -0800 (PST) From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Benson Leung , Guenter Roeck , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Matthias Brugger , Andy Gross , Bjorn Andersson , Heiko Stuebner , Douglas Anderson , devicetree@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: [PATCH 1/4] dt-bindings: pwm: google, cros-ec: include generic pwm schema Date: Mon, 14 Feb 2022 09:19:13 +0100 Message-Id: <20220214081916.162014-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220214081916.162014-1-krzysztof.kozlowski@canonical.com> References: <20220214081916.162014-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220214_001955_285867_51F51F02 X-CRM114-Status: GOOD ( 13.96 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Include generic pwm.yaml schema, which enforces PWM node naming. Keep the old name in bindings as deprecated. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Acked-by: Lee Jones --- Documentation/devicetree/bindings/mfd/google,cros-ec.yaml | 4 ++++ .../devicetree/bindings/pwm/google,cros-ec-pwm.yaml | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml index d1f53bd449f7..0255b7028496 100644 --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml @@ -89,6 +89,10 @@ properties: ec-pwm: $ref: "/schemas/pwm/google,cros-ec-pwm.yaml#" + deprecated: true + + pwm: + $ref: "/schemas/pwm/google,cros-ec-pwm.yaml#" keyboard-controller: $ref: "/schemas/input/google,cros-ec-keyb.yaml#" diff --git a/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml b/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml index 4cfbffd8414a..7ab6912a845f 100644 --- a/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml @@ -16,6 +16,9 @@ description: | An EC PWM node should be only found as a sub-node of the EC node (see Documentation/devicetree/bindings/mfd/google,cros-ec.yaml). +allOf: + - $ref: pwm.yaml# + properties: compatible: const: google,cros-ec-pwm @@ -39,7 +42,7 @@ examples: compatible = "google,cros-ec-spi"; reg = <0>; - cros_ec_pwm: ec-pwm { + cros_ec_pwm: pwm { compatible = "google,cros-ec-pwm"; #pwm-cells = <1>; };