Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp799596pxp; Fri, 11 Mar 2022 15:28:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHb8/C7I7RbCpUNsLXVTfO88v1cOq+PsB4OcJSBMCHxaP7nRXBlbwYqUeU375XNIl0lsHS X-Received: by 2002:a17:90a:9f82:b0:1b9:e290:8960 with SMTP id o2-20020a17090a9f8200b001b9e2908960mr24637571pjp.222.1647041297710; Fri, 11 Mar 2022 15:28:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647041297; cv=none; d=google.com; s=arc-20160816; b=c32ATJ+58Ei/NwIZeiyw6tR6lpqSdb+MuHz0Ca0OGb3QXAgqpsbMdbaeIF/EqzzhZJ /KSTSG3bPOl2Q56zzC3AnzmF7GWd0yJ0ADrdgCIofUnS7cP/Wn108vWQJ6rBwuUBguWS bvm1i2Es50hfv7Qbx04mMXz3uTwGQfMGdJ01/ZVCW+4m5K8Pcw59jcEG1CoqvuP4aNGi 9zpItIArTM5uJ+IB0NFB2c4T+v2evLS+A8folVMJCRjdZae5eOTwgUcY1rMXDCxp5UDL 7eW+wynbd1S+2JjTy9+3PhLZG8TDjmp0GrwsrVwPx9DfpJZBdn14/jKchjfvDlWyPwHn 9Hzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=5sAYRWH9XRMFPnLNIw8CszRxl8wtQfmK3MOVP1x4c5U=; b=xlaFKnx6XDgUr4c2RlETpaw3uaZN8xV+GdrXdaEK2IthEuvQpxNnCnFZhZXDTBBFKx O9Xrzyn5+I28JgIz+sBcY0LcUSWTeRIHaur3NlWvMsO2e0KxQUONjtTV+QIsKVJ3jtOF SfurQUq5YqY62frIG1R8LadGya9xkW9au8RI8yZBm8U1Yjhi6U8PA9BpkN9dOqS3FS/O BOvWjrU4HRyHd/pw1kAFpofEF68s6xIRPyTevSEseCO+QxDfGJ0Ti78Ouv2EjgQNI2Ot 4lNH2Y9bfWcB0tXn8x4acGLtE5zcvNZDCPmEBJlxoDsVUMp9XGGZfnQLuyqmKxgMZ7v1 1ADA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mleia.com header.s=mail header.b=tOhHJisO; dkim=pass header.i=@mleia.com header.s=mail header.b=tOhHJisO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u12-20020a63600c000000b0038105780191si3771285pgb.77.2022.03.11.15.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:28:17 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@mleia.com header.s=mail header.b=tOhHJisO; dkim=pass header.i=@mleia.com header.s=mail header.b=tOhHJisO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 06EE93C4472; Fri, 11 Mar 2022 14:14:56 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348866AbiCKNWS (ORCPT + 99 others); Fri, 11 Mar 2022 08:22:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348862AbiCKNWQ (ORCPT ); Fri, 11 Mar 2022 08:22:16 -0500 Received: from mail.mleia.com (mleia.com [178.79.152.223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC4DF1C3D11 for ; Fri, 11 Mar 2022 05:21:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mleia.com; s=mail; t=1647004842; bh=J7/vKcyix+nji45hqGrcjszxF1kSDnocg442Y//BGKo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=tOhHJisO0eoVBxXAyJJVaphOYMMSeBqvEeikezoAsTuQxuXP/DrQ/jRcRmrk3F1v5 S0PPiGSE7VOj6V778ZCTCqxgsFWcb6Dfp14kJOZsRDKIYe/8SP5vnlUXNPc6QY3Fip cCSpCjcyhDXrCINmTirV/w3AyWfvAe1U2kSm13yo2S3m2XlTc2A0fSCK76NffTgmyR F1n1tMZnOzuY5SHDKuFymCG9lCh06Z+NmDuY/NjoSiwW2KTZDQhU8fo7MoNfMwba33 zx76vIdgTDlmZ+c/BYTDigElSyh3SZud/P5+zbnxDMZpkzwjOnHfw4W+XWzZgPDTwc WeM/PBJLVyPmA== Received: from mail.mleia.com (localhost [127.0.0.1]) by mail.mleia.com (Postfix) with ESMTP id 138F439E948; Fri, 11 Mar 2022 13:20:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mleia.com; s=mail; t=1647004842; bh=J7/vKcyix+nji45hqGrcjszxF1kSDnocg442Y//BGKo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=tOhHJisO0eoVBxXAyJJVaphOYMMSeBqvEeikezoAsTuQxuXP/DrQ/jRcRmrk3F1v5 S0PPiGSE7VOj6V778ZCTCqxgsFWcb6Dfp14kJOZsRDKIYe/8SP5vnlUXNPc6QY3Fip cCSpCjcyhDXrCINmTirV/w3AyWfvAe1U2kSm13yo2S3m2XlTc2A0fSCK76NffTgmyR F1n1tMZnOzuY5SHDKuFymCG9lCh06Z+NmDuY/NjoSiwW2KTZDQhU8fo7MoNfMwba33 zx76vIdgTDlmZ+c/BYTDigElSyh3SZud/P5+zbnxDMZpkzwjOnHfw4W+XWzZgPDTwc WeM/PBJLVyPmA== Received: from [192.168.1.102] (88-113-46-102.elisa-laajakaista.fi [88.113.46.102]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.mleia.com (Postfix) with ESMTPSA id AA1DF39E937; Fri, 11 Mar 2022 13:20:41 +0000 (UTC) Subject: Re: [PATCH v2 3/3] ARM: dts: lpc32xx: Update spi clock properties To: Kuldeep Singh , Arnd Bergmann , Olof Johansson , soc@kernel.org, Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220311093800.18778-1-singh.kuldeep87k@gmail.com> <20220311093800.18778-4-singh.kuldeep87k@gmail.com> From: Vladimir Zapolskiy Message-ID: <4aae560d-d266-d0d0-136f-32891b15bc01@mleia.com> Date: Fri, 11 Mar 2022 15:20:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20220311093800.18778-4-singh.kuldeep87k@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-49551924 X-CRM114-CacheID: sfid-20220311_132042_108857_54C47694 X-CRM114-Status: GOOD ( 20.88 ) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 On 3/11/22 11:38 AM, Kuldeep Singh wrote: > PL022 binding require two clocks to be defined but lpc platform doesn't > comply with bindings and define only one clock i.e apb_pclk. > > Update spi clocks and clocks-names property by adding appropriate clock > reference to make it compliant with bindings. > > CC: Vladimir Zapolskiy > Signed-off-by: Kuldeep Singh > --- > v2: > - New patch with similar changeset > - Send to soc ML > > arch/arm/boot/dts/lpc32xx.dtsi | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/boot/dts/lpc32xx.dtsi b/arch/arm/boot/dts/lpc32xx.dtsi > index c87066d6c995..30958e02d5e2 100644 > --- a/arch/arm/boot/dts/lpc32xx.dtsi > +++ b/arch/arm/boot/dts/lpc32xx.dtsi > @@ -178,8 +178,8 @@ ssp0: spi@20084000 { > compatible = "arm,pl022", "arm,primecell"; > reg = <0x20084000 0x1000>; > interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; > - clocks = <&clk LPC32XX_CLK_SSP0>; > - clock-names = "apb_pclk"; > + clocks = <&clk LPC32XX_CLK_SSP0>, <&clk LPC32XX_CLK_SSP0>; > + clock-names = "sspclk", "apb_pclk"; In fact I'm uncertain if it is the right change, could it happen that the commit cc0f6e96c4fd ("spi: dt-bindings: Convert Arm pl022 to json-schema") sets a wrong schema pattern? Apparently just one clock is wanted on all observed platforms and cases, this is implicitly confirmed by clock handling in the drivers/spi/spi-pl022.c : pl022->clk = devm_clk_get(&adev->dev, NULL); So, I would vote to fix the device tree bindings schema. > #address-cells = <1>; > #size-cells = <0>; > status = "disabled"; > @@ -202,8 +202,8 @@ ssp1: spi@2008c000 { > compatible = "arm,pl022", "arm,primecell"; > reg = <0x2008c000 0x1000>; > interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; > - clocks = <&clk LPC32XX_CLK_SSP1>; > - clock-names = "apb_pclk"; > + clocks = <&clk LPC32XX_CLK_SSP1>, <&clk LPC32XX_CLK_SSP1>; > + clock-names = "sspclk", "apb_pclk"; > #address-cells = <1>; > #size-cells = <0>; > status = "disabled"; > -- Best wishes, Vladimir