From patchwork Fri Oct 16 19:26:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 11842303 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0B8381744 for ; Fri, 16 Oct 2020 19:27:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D6BBB212CC for ; Fri, 16 Oct 2020 19:27:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="HEpM1JYo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2410963AbgJPT1P (ORCPT ); Fri, 16 Oct 2020 15:27:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410860AbgJPT1P (ORCPT ); Fri, 16 Oct 2020 15:27:15 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08897C0613D3 for ; Fri, 16 Oct 2020 12:27:15 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id d6so1790692plo.13 for ; Fri, 16 Oct 2020 12:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4+eTonsOgHo0VpdzJxRB/GPu2K4jh+xpWGoOhIyKr/g=; b=HEpM1JYoHoJLkOOP2sbmDVjF8fN9J5syKs04/Xn+ydhlhZnLsBLzkUELW7R6LomGMO 1Qs9MIwJJBFNJhNgfrHjfsnC9i2gV6ZBYJWh4pQP114oqU1ZrY1BDH2LaQ0YGJoqVjf/ vW5+VSxxMi3tgOxUcHmwK1tfJPG/2/Dt7VGHc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4+eTonsOgHo0VpdzJxRB/GPu2K4jh+xpWGoOhIyKr/g=; b=pub7M13OCPo2XeW7c4IOoJHJ4qx2s3vAAItuhM5lJt5UoMy03qswjtdfVl7tGLFKtd KqaTeaCQV1RSXrDfsR6t5ky1gr+bTethG9QbEaS2fUcJlhbiMWeFZyy3uZFVpzqv79lp Bqsly/VD1iaLRjbqZWfsD1ytq4bFZ2jJT5l4eWgUKCzV8OJF3VGeClwgEvqsnRS69lVa jDs1OBsrtynhkV4B0Tfrw6DzLR8Qdl4SCLRtvHoC0pZBu6D/vqBvPQrh5M756ugdzi3E oew2k4cAF71OTuY4/ZlKQUBrtGmU8u0INh1dFxNVymekAE8GJNz4xCZWMbIF0M5mmD/4 XrEw== X-Gm-Message-State: AOAM531HkuJQh5NQ0wa210fq3cNq2f7KI+CwoAthyPoTRBYPbgE5mw5W GEIX272+dfgaER76a8iLjOmH0Q== X-Google-Smtp-Source: ABdhPJy+OQEHMSMcS1vd93N60CBMVeSW+QitL/129/y8kekcDBQACGbQbgRON7NeBT5QkZx+oPIx/Q== X-Received: by 2002:a17:90b:d91:: with SMTP id bg17mr5649631pjb.66.1602876434596; Fri, 16 Oct 2020 12:27:14 -0700 (PDT) Received: from evgreen-glaptop.cheshire.ch ([2601:646:c780:1404:a2ce:c8ff:fec4:54a3]) by smtp.gmail.com with ESMTPSA id lb13sm3566622pjb.5.2020.10.16.12.27.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Oct 2020 12:27:14 -0700 (PDT) From: Evan Green To: Rob Herring , Bjorn Andersson , Srinivas Kandagatla Cc: Stephen Boyd , Douglas Anderson , Evan Green , Andy Gross , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: nvmem: Add soc qfprom compatible strings Date: Fri, 16 Oct 2020 12:26:51 -0700 Message-Id: <20201016122559.v2.1.I8b447ca96abfbef5f298d77350e6c9d1d18d00f6@changeid> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201016192654.32610-1-evgreen@chromium.org> References: <20201016192654.32610-1-evgreen@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add SoC-specific compatible strings so that data can be attached to it in the driver. Signed-off-by: Evan Green --- Changes in v2: - Add other soc compatible strings (Doug) - Fix compatible string definition (Doug) .../devicetree/bindings/nvmem/qcom,qfprom.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml index 1a18b6bab35e7..eb1440045aff1 100644 --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml @@ -14,7 +14,18 @@ allOf: properties: compatible: - const: qcom,qfprom + items: + - enum: + - qcom,apq8064-qfprom + - qcom,apq8084-qfprom + - qcom,msm8974-qfprom + - qcom,msm8916-qfprom + - qcom,msm8996-qfprom + - qcom,msm8998-qfprom + - qcom,qcs404-qfprom + - qcom,sc7180-qfprom + - qcom,sdm845-qfprom + - const: qcom,qfprom reg: # If the QFPROM is read-only OS image then only the corrected region From patchwork Fri Oct 16 19:26:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 11842305 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D9E151744 for ; Fri, 16 Oct 2020 19:27:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B106420FC3 for ; Fri, 16 Oct 2020 19:27:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ZQjOSsgc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393109AbgJPT10 (ORCPT ); Fri, 16 Oct 2020 15:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390727AbgJPT1Y (ORCPT ); Fri, 16 Oct 2020 15:27:24 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1FF7C0613D3 for ; Fri, 16 Oct 2020 12:27:22 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id q21so2000903pgi.13 for ; Fri, 16 Oct 2020 12:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZutnMIL/H67VpZ1xfDw9FLjDAwyBxbbGIobudgCrQiw=; b=ZQjOSsgcoMO2CXnhaskRO+312Zp1tq5TjmkQJljC2bw3kX+ZPV2IXzKRDk4V+yjMEY OpzoFsN/c/F5jFJNAnmwThYzSYjR0IHeQQ5tNjTiaBYd0ff6wi2hLkyMScSNRHF4b3I/ MXYMr0Zp7MLr3gMMddAntXzeYVNuN83TIC100= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZutnMIL/H67VpZ1xfDw9FLjDAwyBxbbGIobudgCrQiw=; b=PLXIiINTXXXImHARBjVt3gQjqYgqNelnC0NdYPTLEf2v9sok0x7x14g7pSgNNC5b+F Y7fIICCOWi/Qhr49t7egEpsGWNOWb1dvXOPMJP+SDtE1ygUPbu1dV4fOpjLv8oGdNtD5 GH8OC9+BI0UUKK2g1E6bMADf9W0+CEw4FYQcvNTGX2GreZtt+wJBw84SiJQ83qq6OKW1 c9LSXAaCbYM5kObkScgPOdD8F1AuD6lvFfurBcNKcrB57TqlNPDsdGN7EoiNWl+OqW9b UNez3Wnx7+zy7+JhIHZVx3RgLsY6bnLjzIaaZ8Gc8YleM/PEhI8+QmL/3HhXZFDogeCv aDQQ== X-Gm-Message-State: AOAM533QSSMgwkyjGSpHSuVaMdGzm23K1Qz7PU4iwRQfn0RGr5afgimk 43q4nwt5PYljAFfRIMIDKbjNEg== X-Google-Smtp-Source: ABdhPJzPDLW5Qh+Ws+bU1lQWYvuirtLbAiDWTvm404IMCWAvRvAa3q56OWdGjKb1in4J7nomWQ8BCQ== X-Received: by 2002:a63:f815:: with SMTP id n21mr4540376pgh.410.1602876442423; Fri, 16 Oct 2020 12:27:22 -0700 (PDT) Received: from evgreen-glaptop.cheshire.ch ([2601:646:c780:1404:a2ce:c8ff:fec4:54a3]) by smtp.gmail.com with ESMTPSA id lb13sm3566622pjb.5.2020.10.16.12.27.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Oct 2020 12:27:22 -0700 (PDT) From: Evan Green To: Rob Herring , Bjorn Andersson , Srinivas Kandagatla Cc: Stephen Boyd , Douglas Anderson , Evan Green , Andy Gross , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] arm64: dts: qcom: sc7180: Add soc-specific qfprom compat string Date: Fri, 16 Oct 2020 12:26:52 -0700 Message-Id: <20201016122559.v2.2.Ia3b68ac843df93c692627a3a92b947b3a5785863@changeid> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201016192654.32610-1-evgreen@chromium.org> References: <20201016192654.32610-1-evgreen@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the soc-specific compatible string so that it can be matched more specifically now that the driver cares which SoC it's on. Signed-off-by: Evan Green Reviewed-by: Douglas Anderson --- (no changes since v1) arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 6678f1e8e3958..f1f8bbc0b37bc 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -660,7 +660,7 @@ gcc: clock-controller@100000 { }; qfprom: efuse@784000 { - compatible = "qcom,qfprom"; + compatible = "qcom,sc7180-qfprom", "qcom,qfprom"; reg = <0 0x00784000 0 0x8ff>, <0 0x00780000 0 0x7a0>, <0 0x00782000 0 0x100>,