From patchwork Mon Feb 28 12:43:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuldeep Singh X-Patchwork-Id: 1598860 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=XjmZB7tb; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4K6g6h6lJxz9sFs for ; Mon, 28 Feb 2022 23:43:56 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236567AbiB1Mod (ORCPT ); Mon, 28 Feb 2022 07:44:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231143AbiB1Mod (ORCPT ); Mon, 28 Feb 2022 07:44:33 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6434846B1F; Mon, 28 Feb 2022 04:43:54 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id bd1so10581584plb.13; Mon, 28 Feb 2022 04:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lnFsM8IpNjKcaqxOnVlKHRTrCgn6GK/en/A/KCipAmY=; b=XjmZB7tbh8KzPMjDzNG5navFiQ0CQofW0187RFubC1Zra4jPyg2ZkjtzspXvPGNa9S ICiPFlDRRSYfEsoAv/uV0zFCZPS8T/+SYqSkSpbpCsayeQ9Bt3O4+663YkyGjtX15ch7 NyUaSxHFPgGvtHOjdHSFvTudKE+UhEvtsr6bUvcJXZrdboitnJk/vDHHrkA4WM6VglN4 67lbrb13yIH/HoUYk2DARcjdztEJRi/hZKqRx84BLPHun0xh/eOLi3XwtqacXvkgtTwT dO+Fdmuq4E2gYfXhKYqm0ds7D+7+YPTRdA8QOH2TNItz9YU/ILdo3t7NJanlwi/CfAKG LQ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lnFsM8IpNjKcaqxOnVlKHRTrCgn6GK/en/A/KCipAmY=; b=tkIVDogBm1BaNkfrDD7o46n0LkXuHHllmp/VQD/nNu+kWTSs41EUQGmmdNxTLPQ0gM lSd186cd44wJOBm6HGlUXMboHjuwudK+Tj479ztt2tOQLI65wRCFNwoAzLwL0wqRYE1a ftBRroU8LOoorVwrA+anu0iNiNA+hWhF1Bq9K01o7rAgKtBbxyNYpiS58QKRb9tp81NE hLkeVq7xZymub5ltgICKCsEgeb2WJfkFPzTBegf1Qm/hYTVMIAtfIqFSjRMy4kQmRop+ JWekhx7/QV0BH/lYDgIrnbShZsRH7WmyKqyZC33qqnI+jjn9svzleZ1K6hODfAxxSxIj F5oQ== X-Gm-Message-State: AOAM5303yirb9JbTb7QxUUeM97wfOjv219b+jHKVDJg9IZJyNVSIUOWs XZiDWtX6b4Max9fjimEbjuc= X-Google-Smtp-Source: ABdhPJzdeMjVo+TFg+cjmC4ATgICfkJCTpifmYxu3bDqHQ8PvvsHqwwME9OLPcgzJEXra+fuVzJFhA== X-Received: by 2002:a17:90a:9708:b0:1bc:7e5c:e012 with SMTP id x8-20020a17090a970800b001bc7e5ce012mr16452448pjo.168.1646052233877; Mon, 28 Feb 2022 04:43:53 -0800 (PST) Received: from localhost.localdomain ([122.161.51.77]) by smtp.gmail.com with ESMTPSA id z23-20020aa79597000000b004e1bf2f5818sm14129214pfj.87.2022.02.28.04.43.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 04:43:53 -0800 (PST) From: Kuldeep Singh To: Mark Brown , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Linus Walleij Subject: [PATCH 1/3] dt-bindings: spi: Update clocks property for ARM pl022 Date: Mon, 28 Feb 2022 18:13:43 +0530 Message-Id: <20220228124345.99474-2-singh.kuldeep87k@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228124345.99474-1-singh.kuldeep87k@gmail.com> References: <20220228124345.99474-1-singh.kuldeep87k@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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: devicetree@vger.kernel.org Add missing minItems property to clocks in ARM pl022 bindings. This also helps in resolving below dtc warnings: arch/arm64/boot/dts/amd/amd-overdrive.dt.yaml: spi@e1020000: clocks: [[4]] is too short From schema: Documentation/devicetree/bindings/spi/spi-pl022.yaml arch/arm64/boot/dts/amd/amd-overdrive.dt.yaml: spi@e1020000: clock-names: ['apb_pclk'] is too short From schema: Documentation/devicetree/bindings/spi/spi-pl022.yaml Signed-off-by: Kuldeep Singh --- Documentation/devicetree/bindings/spi/spi-pl022.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-pl022.yaml b/Documentation/devicetree/bindings/spi/spi-pl022.yaml index 6d633728fc2b..7d36e15db5b3 100644 --- a/Documentation/devicetree/bindings/spi/spi-pl022.yaml +++ b/Documentation/devicetree/bindings/spi/spi-pl022.yaml @@ -34,6 +34,7 @@ properties: maxItems: 1 clocks: + minItems: 1 maxItems: 2 clock-names: From patchwork Mon Feb 28 12:43:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuldeep Singh X-Patchwork-Id: 1598861 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=pnZNncTd; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4K6g6p5Cnxz9sFs for ; Mon, 28 Feb 2022 23:44:02 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236590AbiB1Moi (ORCPT ); Mon, 28 Feb 2022 07:44:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231143AbiB1Mof (ORCPT ); Mon, 28 Feb 2022 07:44:35 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3298F4705E; Mon, 28 Feb 2022 04:43:57 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id ev16-20020a17090aead000b001bc3835fea8so11278900pjb.0; Mon, 28 Feb 2022 04:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FrRsoKRtG0mcfhdQPUnOY8nojOfT4rmkj88AgkRskwM=; b=pnZNncTdmyfuefVRpe2IvducML65L4g7+/qFZ3TrIgqStJSuQ7UGb6eQt3FtmbCE/c QQdFGvS3KDYTOEsMQ6NfyVR7CtvqPqoJEZMMyJTgkCX6YAwdnKh3ttJjhHtiCOzs1gZG U4xCDYRl7vBFza1x3KwYU0p3yasMZ3S4jlfhMgkfz1aYed4kNjHECFRR577vin0Q6h1U xonjDctMMo2nu0XChVquH1Cawc6Xq8bSQ3Y2V1fzWQRanK36DD2OWdTk/1hY5hIxF516 CE3Gw7uqQNmWfapb/j2OrRON+GVQ3bbJWTieoJubBkQmE2kiBRIVmp9HI8ne5XIwS57V 6tLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FrRsoKRtG0mcfhdQPUnOY8nojOfT4rmkj88AgkRskwM=; b=qIzfaOgJQu6qJ8EGBNFhKO/zulYin8b6eUd5VkEwpNxXIw/sih47m5A4T0UsXfYyFa XYgqxruqFAWoinKL5GDKizhwiafqfG/55gqRM7/hH7KTQJ+SnJ+TKMexkIj5t+ky2A6K FUouMQYYxeitzk/2eZZ0SgTFPCfZNqHUCtDVQ+uZxschswWysUxwq74XQKiPvqI18ngV 2lExlTjixe63lbXtdVWWmZ3/aqiGmQn/Ga2FRkthQPGyUt43nYLX1HIpKuEIXzZ7HWO9 am4DwQ3Bc7YDaN5DIge75YE/yz0c0GRRJHYbttbwdPPdfiUV/gcquBMof1McXj917oOo 8Wjw== X-Gm-Message-State: AOAM533B7AsOQ3wi2CBNMTiBPlBMVxJZfKaJrN+DjxRXeBCkdJB2TtMN gBnYLtRDLecdPT64UUlNMr0= X-Google-Smtp-Source: ABdhPJwNbvaXDpT841PdpIqVwHAplHPhGYbqz0CTAtKqYv9ptJWEv1RkOzVqDgJ4Iy49jn2Mx3poCg== X-Received: by 2002:a17:90a:e606:b0:1bc:4c56:b31 with SMTP id j6-20020a17090ae60600b001bc4c560b31mr16254434pjy.49.1646052236750; Mon, 28 Feb 2022 04:43:56 -0800 (PST) Received: from localhost.localdomain ([122.161.51.77]) by smtp.gmail.com with ESMTPSA id z23-20020aa79597000000b004e1bf2f5818sm14129214pfj.87.2022.02.28.04.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 04:43:56 -0800 (PST) From: Kuldeep Singh To: Mark Brown , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Linus Walleij Subject: [PATCH 2/3] dt-bindings: spi: Update clock-names property for ARM pl022 Date: Mon, 28 Feb 2022 18:13:44 +0530 Message-Id: <20220228124345.99474-3-singh.kuldeep87k@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228124345.99474-1-singh.kuldeep87k@gmail.com> References: <20220228124345.99474-1-singh.kuldeep87k@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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: devicetree@vger.kernel.org Below are the possibilities of pl022 clock-names property: - apb_pclk - [sspclk, SSPCLK, spiclk], apb_pclk The current schema refers to second case and does not consider first one. Hence, resolve the below dtc warnings by updating clock properties: arch/arm64/boot/dts/lg/lg1313-ref.dt.yaml: spi@fe900000: clock-names:0: 'apb_pclk' is not one of ['SSPCLK', 'sspclk'] From schema: Documentation/devicetree/bindings/spi/spi-pl022.yaml Signed-off-by: Kuldeep Singh --- Documentation/devicetree/bindings/spi/spi-pl022.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/spi-pl022.yaml b/Documentation/devicetree/bindings/spi/spi-pl022.yaml index 7d36e15db5b3..5f6926a58b15 100644 --- a/Documentation/devicetree/bindings/spi/spi-pl022.yaml +++ b/Documentation/devicetree/bindings/spi/spi-pl022.yaml @@ -38,11 +38,14 @@ properties: maxItems: 2 clock-names: - items: + oneOf: - enum: - - SSPCLK - - sspclk - - const: apb_pclk + - apb_pclk + - items: + - enum: + - sspclk + - SSPCLK + - const: apb_pclk pl022,autosuspend-delay: description: delay in ms following transfer completion before the From patchwork Mon Feb 28 12:43:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuldeep Singh X-Patchwork-Id: 1598862 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=TKQpbKej; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4K6g6r2VGyz9sFs for ; Mon, 28 Feb 2022 23:44:04 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236585AbiB1Moj (ORCPT ); Mon, 28 Feb 2022 07:44:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236579AbiB1Moi (ORCPT ); Mon, 28 Feb 2022 07:44:38 -0500 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 256354755A; Mon, 28 Feb 2022 04:44:00 -0800 (PST) Received: by mail-pg1-x52a.google.com with SMTP id e6so9866720pgn.2; Mon, 28 Feb 2022 04:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qP6HrvQPRvcyooG75RH7rCRDnFKMKhHlpTnOTmKWJ5E=; b=TKQpbKejpJRp4QDPKI8yohmG5/EW4zPfAu2U/DpBuHKDZSxLIHAkqKLxAr+u4lWR4x IMWlw2biisuqVqpmict5mhC7vd8xAtUurrB1EgIMmfVhLPDMymqDekJkytiIFz6cjyk4 xCSbLXVbgaU3vnM2FBJLZIfER7uDRbLnYoUdu8cAZeeeqrx44fSIvOWqC8AR4zht9nBN eV27wl40nRq9lcd4TkDSv7tjMFodI7tSY8FMoAGdBe37vkoqR/kW5QZcnvLVSbjW4ALZ PYp9kW6Ky5wTWYH8K8/NGb+w/PAMRaEG6mjNshefOq/kYBrCn9NaCktL05l8PMpo76Vw uvnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qP6HrvQPRvcyooG75RH7rCRDnFKMKhHlpTnOTmKWJ5E=; b=btENuZn6I+1TSv5A/IPQkcaf9T0hI2dVXlSTrjSwOslvHqH4Dps5Twgg96e6HYpp1+ T9NCRpvqFFRiR/fUJ4Es+ay7hvP8XMCWijpKcetBCPNrs5WIPNYtMvp8XjpbtqMk4wEW N4NVGa8zJzGnXm8ziuIzEyS/Hi4n1mKQYC5uO2gy6T92Ww6ZlfHrLZrVFFTAm002gJW3 2PV78sGslYnAmOnJv/liylyC36OOD37xfT0sNpx/oMzhtRCUpR3NupO4BVkNsKe06iW+ IIM9izstVDNyJsZbkDMGQ6JJN8thpRcJs0RHYcR8BgyHXLNZx0IJJi05TLyJsJBgjbSx gAFQ== X-Gm-Message-State: AOAM530s+3woFz9qE3ay9UlsgmD6RpYyVcLRkXTpuqfuv8ZIOn/wTWiI 5G12Bss4f/O6IvenFxMbSUkjMmobUFoJ3A== X-Google-Smtp-Source: ABdhPJzp96y/zE/eVlnUwluVho7ei6LG8OeQKtPLlwooDFfhvzVyToNALwKYpnUo1Q/PPW0Czl58Yg== X-Received: by 2002:a62:3085:0:b0:4e0:1218:6d03 with SMTP id w127-20020a623085000000b004e012186d03mr21101080pfw.19.1646052239644; Mon, 28 Feb 2022 04:43:59 -0800 (PST) Received: from localhost.localdomain ([122.161.51.77]) by smtp.gmail.com with ESMTPSA id z23-20020aa79597000000b004e1bf2f5818sm14129214pfj.87.2022.02.28.04.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 04:43:59 -0800 (PST) From: Kuldeep Singh To: Mark Brown , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Linus Walleij Subject: [PATCH 3/3] dt-bindings: spi: Add spiclk to clock-names property in pl022 Date: Mon, 28 Feb 2022 18:13:45 +0530 Message-Id: <20220228124345.99474-4-singh.kuldeep87k@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228124345.99474-1-singh.kuldeep87k@gmail.com> References: <20220228124345.99474-1-singh.kuldeep87k@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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: devicetree@vger.kernel.org Fix below dtc warning by making necessary addition of "spiclk" in clock-names property. arch/arm64/boot/dts/broadcom/stingray/bcm958742t.dt.yaml: spi@190000: clock-names:0: 'spiclk' is not one of ['SSPCLK', 'sspclk'] From schema: Documentation/devicetree/bindings/spi/spi-pl022.yaml arch/arm64/boot/dts/broadcom/northstar2/ns2-svk.dt.yaml: spi@66190000: clock-names:0: 'spiclk' is not one of ['SSPCLK', 'sspclk'] From schema: Documentation/devicetree/bindings/spi/spi-pl022.yaml Signed-off-by: Kuldeep Singh --- Documentation/devicetree/bindings/spi/spi-pl022.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-pl022.yaml b/Documentation/devicetree/bindings/spi/spi-pl022.yaml index 5f6926a58b15..fb3075a0c7fd 100644 --- a/Documentation/devicetree/bindings/spi/spi-pl022.yaml +++ b/Documentation/devicetree/bindings/spi/spi-pl022.yaml @@ -45,6 +45,7 @@ properties: - enum: - sspclk - SSPCLK + - spiclk - const: apb_pclk pl022,autosuspend-delay: