Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2492271rwd; Wed, 14 Jun 2023 03:45:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6fi9pWdjFzm6Hup5wMbThBKxX+VOOVQOvlBXWGrAUNISfV9dFc2mChWkD1Jvc6hYb1UAFN X-Received: by 2002:a17:907:ea9:b0:974:5a12:546 with SMTP id ho41-20020a1709070ea900b009745a120546mr1145343ejc.23.1686739544641; Wed, 14 Jun 2023 03:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686739544; cv=none; d=google.com; s=arc-20160816; b=MRJdnK5JkOxYtJ5H4dDQqx25HuoC5bPlH1AtdluxyFSe43gHhZI5nIcCvBiPZfkuNe Ne3YiLQQRh76sECrx0f+62S0JTYcWjM0OI4xmfwxbFV8+7S7giMjLotsKP8u78xvBfnK 58RhUP5/NhWVaBqKDhWwYU90XaIx1c/UhYZlkfNcOZhh+2mjJdYBI3Ib66Oja2m5bLhc jxY80mkNpFXm/dMsI1/zVAkmq2t3rIFahKuutxzQAKDmI72jHCWEgBrhPB3H97UmdL0j U7+UBvryWcpz309R3803YA4o+05CcoDqEwPusD4Z8FrTRy30qLZoVprT2pbJD/HYG0xf 6Ecg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=yjCyUOjKHvqSiAPvi5lvMeFvTbESRkFpyQF2eUzcXcU=; b=igoRCrSweDlc+B42RyMi6ljUwur/UdlDJMh+JNwudH56XuHsDWqG4KbDOfjD4rP0GP m83gg8S6I78tiFxZ54axPJBwuUXsA+VSVYB3aaSZmQdq6dwr4WyO9wKibC7mzZihuvvR 5glqJPizWcIhKdM+IfuG4pYulxn/ggNNnKXjmn8xLiVAfm2Ee/jmQ16nYxVFsJJELthz 2wgKhV20caodWTN5/uwv+dULCKh85LUaQ4t9Tq2dCCdJDQeJtNcx0WH2tY2t1DwnW1jx +fMG3c2FriG0miztGXeRIzY3yWz7AYw0u32p6NX101tME76R8IwlNn4ZAOuQUrxT8cLB NxWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PVF87715; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a1709063c4400b00978337254a6si8222010ejg.91.2023.06.14.03.45.16; Wed, 14 Jun 2023 03:45:44 -0700 (PDT) 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=@linaro.org header.s=google header.b=PVF87715; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232353AbjFNKid (ORCPT + 99 others); Wed, 14 Jun 2023 06:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234133AbjFNKib (ORCPT ); Wed, 14 Jun 2023 06:38:31 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17B381980 for ; Wed, 14 Jun 2023 03:38:29 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f65779894eso6770428e87.1 for ; Wed, 14 Jun 2023 03:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686739107; x=1689331107; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yjCyUOjKHvqSiAPvi5lvMeFvTbESRkFpyQF2eUzcXcU=; b=PVF87715a76Oul6uJPquKGj3PrzNdvZEqPM3VSXWCsSd2wwxdPh3GOp0Krq17RHQVB JvqVbACkW/9yPq/o/eHTwoL8IxOYJpPD0DM2XG+WuaCE2LcNCMQKO14WOuEFhX7Gwvox 84qngorhvtNifC+ZcWMnKS1t+7Wp+rvBognn2lGXWJHGDjUTzq13H0saJSQJXIZmYQ96 6PvFoY8GK2za7ZSCNFjG7eiZSA/gvHctvY78G/JwXd/1hP7yHTcf5m7iO/iZ/H+YGBfH W2lOKiZg/gzTCaaw4wJUTeCuIuuEuWRfSqwDpQVwoEU4secMO1CRYsqpDEDpiDf7lKvN bx/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686739107; x=1689331107; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yjCyUOjKHvqSiAPvi5lvMeFvTbESRkFpyQF2eUzcXcU=; b=I/Z9/uhn/P5rZ+WiA5rTOmj+mBDtCfFZBcTDMYpccmlNiB3ePcieKJbAnLdViUzv7S 1pay3lF3rJEFdF1zO5WAZHovcmJXlTu+LASA7jY/0Xcsgprv1P+l9cxqYEpxRTZIiy33 ZCu3W1arPzP7/FEW8NWrBWAv8X1TUaLaIH++f398503SGXhhiw/bXYJfds25mYwBIfM5 yxPsTZi+tqi2y8V0zLC6a8LKQ4CfahMBF/jMhqE+UZfXNQ4ekWRS13WfkjAEuHN78oRQ /m2FR6QeJ0OkWOG7weHoGQ1u8MYb//VFxugaKT1nzkhFTdEGoZX5ze+DqVmVfwXMuukX Md0g== X-Gm-Message-State: AC+VfDyIAMf25+VagxpI1nQ2oXG8U+M1MhcoWu6CFz4coimJvg0QFEPn 10nvJ727mG7pMoT/Xj63wlwsOoumm/8qcFKevto= X-Received: by 2002:a05:6512:b0e:b0:4f4:b10f:d521 with SMTP id w14-20020a0565120b0e00b004f4b10fd521mr374666lfu.13.1686739107249; Wed, 14 Jun 2023 03:38:27 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id a8-20020a19f808000000b004f14ecc03f1sm2069876lff.100.2023.06.14.03.38.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jun 2023 03:38:26 -0700 (PDT) Message-ID: Date: Wed, 14 Jun 2023 12:38:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] arm64: dts: qcom: ipq9574: enable the SPI NOR support in RDP433 Content-Language: en-US To: Kathiravan T , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230609081508.30982-1-quic_kathirav@quicinc.com> <1957b1cf-28b7-dbfc-1675-ee4534e5571b@quicinc.com> From: Konrad Dybcio In-Reply-To: <1957b1cf-28b7-dbfc-1675-ee4534e5571b@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 14.06.2023 12:34, Kathiravan T wrote: > > On 6/14/2023 12:02 PM, Kathiravan T wrote: >> >> On 6/9/2023 2:37 PM, Konrad Dybcio wrote: >>> >>> On 9.06.2023 10:15, Kathiravan T wrote: >>>> RDP433 has the support for SPI NOR, add the support for it. >>>> >>>> Signed-off-by: Kathiravan T >>>> --- >>>> Note: This patch was part of initial submission >>>> https://lore.kernel.org/linux-arm-msm/20230329053726.14860-1-quic_kathirav@quicinc.com/ >>>> however this got missed in between, so sending it across again. >>>> >>>>   arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 21 +++++++++++++++++++++ >>>>   1 file changed, 21 insertions(+) >>>> >>>> diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts >>>> index 2b3ed8d351f7..31ee19112157 100644 >>>> --- a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts >>>> +++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts >>>> @@ -48,6 +48,20 @@ >>>>       }; >>>>   }; >>>>   +&blsp1_spi0 { >>>> +    pinctrl-0 = <&spi_0_pins>; >>>> +    pinctrl-names = "default"; >>>> +    status = "okay"; >>>> + >>>> +    flash@0 { >>>> +        compatible = "micron,n25q128a11", "jedec,spi-nor"; >>>> +        reg = <0>; >>>> +        #address-cells = <1>; >>>> +        #size-cells = <1>; >>> If you're not adding a partition table, you can drop the address- >>> and size-cells properties, as they determine what the reg value of >>> the child looks like. >> >> >> Sorry, somehow I missed this query. Will check and update it. > > > Currently IPQ boot loaders patches the partition information into the SPI node. To parse that, we need the address-cells and size-cells properties. Please consult adding these properties if they're not found with the bootloader team using libfdt calls from there. All bl changes should be self-contained. I understand it won't be possible for released products, but hopefully this could change for the next ones. Konrad > > Also, this patch is now integrated into the below series > > https://lore.kernel.org/linux-arm-msm/20230614085040.22071-1-quic_anusha@quicinc.com/T/#t > > > Thanks, > > >> >> >>> >>> Konrad >>>> +        spi-max-frequency = <50000000>; >>>> +    }; >>>> +}; >>>> + >>>>   &sdhc_1 { >>>>       pinctrl-0 = <&sdc_default_state>; >>>>       pinctrl-names = "default"; >>>> @@ -96,6 +110,13 @@ >>>>               bias-pull-down; >>>>           }; >>>>       }; >>>> + >>>> +    spi_0_pins: spi-0-state { >>>> +        pins = "gpio11", "gpio12", "gpio13", "gpio14"; >>>> +        function = "blsp0_spi"; >>>> +        drive-strength = <8>; >>>> +        bias-disable; >>>> +    }; >>>>   }; >>>>     &xo_board_clk {