Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6025382pxb; Mon, 14 Feb 2022 13:23:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJziN42Z5WIhPnQwtmFUB+hbVFSvEkHdpw1QGj1TYcDIFYbTgXHWF8xFyZNlZhcuIx5wYfLP X-Received: by 2002:a17:90b:4d0e:b0:1b9:10f:7e49 with SMTP id mw14-20020a17090b4d0e00b001b9010f7e49mr734137pjb.114.1644873832746; Mon, 14 Feb 2022 13:23:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644873832; cv=none; d=google.com; s=arc-20160816; b=S9cOozINmdCgcj+yuxlnE4cu/LhSEzaeK0TUfaA4TF1NqyYQZQT1XL+H68gwybn96x jouUMSZqylB7n7B+nrdhJpxFITQZGroLn2UL9O3VAY0JHMi+eDlv2TRyiFGa2MWD8TBU PJguCCKrJchaQ+GFTAdknA8uIMH14K6jJ1MkWy3hBfUSCdBWokWIiWw7K8TGPeAALkOe wzJtsoDxQuY+OdUqSWz4WHjYof9qGLk4Io8YJKJ2cUHLvzdObhQx+Cpx3lj8n+L2J2Yd o0dUBFImadlQnxzn75KOEdfuhUKIH8wEvyfMG6imrWcUA4RjtMbl68KK3R18JUDshtpH w2Cw== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=fcG/L5ODzpr+LI/EAJmGBh5z8kctn/2OPAueI4k16fY=; b=olcGSobvCItsvIs5zaJZsCYXpbWjRii9P/UyQdtkocejSow0nuSLXlqjQWSVIiVJG0 G1AVeTOcgNHEcj7hBW8dAXUTu6Sj/s6rEEqCwnvGyMvaRGN+vaj3mY36V9sxmFgkSXCK R/L1GGCyvrdNEYQxjjGGy7ZLu5hsL54oHWWb8/m8SdQHJzNvT86E1nD6/FjEY+lBCVck CKFz+MozkfhVQVJQXqO5LY8yQXI2PdwPFZoxrTIdF/EBhikYOBuvesZw+u9InYHafkvn jt8UEcVXTAXwVFIiu5pRlISQ5Nyix2GiuclewAJz5bjcq1kY8GexVED/j7H2lg9pU0Tv rkeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=d2NrFa7p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x22si754075pgh.567.2022.02.14.13.23.36; Mon, 14 Feb 2022 13:23:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=d2NrFa7p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231229AbiBNVXA (ORCPT + 99 others); Mon, 14 Feb 2022 16:23:00 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbiBNVWm (ORCPT ); Mon, 14 Feb 2022 16:22:42 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B685013CECD for ; Mon, 14 Feb 2022 13:22:21 -0800 (PST) Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (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-0.canonical.com (Postfix) with ESMTPS id 69BDC405EC for ; Mon, 14 Feb 2022 21:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1644873740; bh=fcG/L5ODzpr+LI/EAJmGBh5z8kctn/2OPAueI4k16fY=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=d2NrFa7pCk8oDt8A3j2SSxGICj3FO0EiERSp9iHRJcmrwVGwo+rbhF9saB0ajDV3y f2xWzaM2vMGpHpBtUifdPneLjxHkPJOv3eBJsqdAZ6uIjgvj3D2+Skt6e7HI+5P3ig oLSieB1XU8Wu31uC0WxVlQSo23BfE0rOFIX20524IUs3ownX0ipY15vl+o5kDSS7sZ p41PYVgziRB7Hnbv9RRrtckNG7OmiEbC1YyR9VHZdYWnAwRDWidrYjj/4vfdZai3Ci KbhK5WVCkMkjnFTsV3Z+miEerL2Ff871PPZLRo5XmQQ6qCHZsq657Cd+6BiWnMz9Lw juASSIlxJJZ8w== Received: by mail-ed1-f70.google.com with SMTP id d11-20020a50c88b000000b00410ba7a14acso2405374edh.6 for ; Mon, 14 Feb 2022 13:22:20 -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=fcG/L5ODzpr+LI/EAJmGBh5z8kctn/2OPAueI4k16fY=; b=L141DdhtWafDf+oJbonjeCendaFH1/O4uGWspNIXVcu/IUEHx7hOirW0sTq+rKjK+X Ld1EG5lfFf61qQkN+dc9Fn6oXFvCLxfYrRf8PkTH8AbDBVZN8bV5vpeyaP+kM49k+IcG j3XzcQR4DQNW+bypE2lp2E7Fx8615RNXBeww9SAwi3fUdHFjYN5HuquEotfFKjGRfgfh ZQ9Gz/w4cA0Z1BXEpxzAe104pbGUyepvzILbs7O3p6jEjiOXzSD3y/zXETZHo6qyex9m gOBDDscNXcc4XLgm624XbgX2/UkCfyb9CSJn5klOSIyavGkUvmLeDyH9JpjtNBgj1lot gx8A== X-Gm-Message-State: AOAM531tBc9YYdZ1DQEIp4/XOj5MeRIhRHSF9zEdIV1dlpy/GEl3kU/1 MBbdCdCDvQjBkwsMvj/2bnTQhQfQYC/gHk/aKKI0X0Dv1ONYiXHvJYQGz88A6pej+ONfpAuDSDW LSeovsFYtWlnd7wE6PccKY2RxbjfAiCkduKTeZQh78Q== X-Received: by 2002:a17:907:1b24:: with SMTP id mp36mr543874ejc.519.1644873729730; Mon, 14 Feb 2022 13:22:09 -0800 (PST) X-Received: by 2002:a17:907:1b24:: with SMTP id mp36mr543835ejc.519.1644873729549; Mon, 14 Feb 2022 13:22:09 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id v24sm2327203ejf.7.2022.02.14.13.22.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:22:09 -0800 (PST) From: Krzysztof Kozlowski To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Lee Jones , Rob Herring , Krzysztof Kozlowski , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Heiko Stuebner , Palmer Dabbelt , Paul Walmsley , Nobuhiro Iwamatsu , Philipp Zabel , Anson Huang , Vijayakannan Ayyathurai , Rahul Tanwar , Jeff LaBundy , Yash Shah , Sagar Kadam , Vignesh R , Yoshihiro Shimoda , Laurent Pinchart , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 06/15] dt-bindings: pwm: rockchip: Include generic pwm schema Date: Mon, 14 Feb 2022 22:21:45 +0100 Message-Id: <20220214212154.8853-7-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220214212154.8853-1-krzysztof.kozlowski@canonical.com> References: <20220214212154.8853-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Include generic pwm.yaml schema, which enforces PWM node naming and brings pwm-cells requirement. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Heiko Stuebner --- .../devicetree/bindings/pwm/pwm-rockchip.yaml | 74 ++++++++++--------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml index 81a54a4e8e3e..a336ff9364a9 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml +++ b/Documentation/devicetree/bindings/pwm/pwm-rockchip.yaml @@ -51,42 +51,44 @@ properties: required: - compatible - reg - - "#pwm-cells" - -if: - properties: - compatible: - contains: - enum: - - rockchip,rk3328-pwm - - rockchip,rv1108-pwm - -then: - properties: - clocks: - items: - - description: Used to derive the functional clock for the device. - - description: Used as the APB bus clock. - - clock-names: - items: - - const: pwm - - const: pclk - - required: - - clocks - - clock-names - -else: - properties: - clocks: - maxItems: 1 - description: - Used both to derive the functional clock - for the device and as the bus clock. - - required: - - clocks + +allOf: + - $ref: pwm.yaml# + + - if: + properties: + compatible: + contains: + enum: + - rockchip,rk3328-pwm + - rockchip,rv1108-pwm + + then: + properties: + clocks: + items: + - description: Used to derive the functional clock for the device. + - description: Used as the APB bus clock. + + clock-names: + items: + - const: pwm + - const: pclk + + required: + - clocks + - clock-names + + else: + properties: + clocks: + maxItems: 1 + description: + Used both to derive the functional clock + for the device and as the bus clock. + + required: + - clocks additionalProperties: false -- 2.32.0