From patchwork Thu Oct 29 00:28:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 11864279 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 97B39697 for ; Thu, 29 Oct 2020 00:30:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C2B12080C for ; Thu, 29 Oct 2020 00:30:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Zb0KIao1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388584AbgJ2AaV (ORCPT ); Wed, 28 Oct 2020 20:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728035AbgJ2A2o (ORCPT ); Wed, 28 Oct 2020 20:28:44 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D13ABC0613D2 for ; Wed, 28 Oct 2020 17:28:42 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id a200so854692pfa.10 for ; Wed, 28 Oct 2020 17:28:42 -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=akb3sFyjPHBbZX4M7aYx39aG9OxmM1r+z59p+g0m3bc=; b=Zb0KIao1cRRj4nQdQHR9k+stnfUDsVd78vlm+lB8nUirhOWM/EwMvhclPbv6SOJUR4 wF6fVDaNtuejzlqvPyQsTBEHNrEBZWF6Yi5NyiW5EIzuWhmM5q4q1VSWid1WwRo+T00t Z1sy7fiplEvLj5CAJbWv/xRccfQgeRrQKaC0k= 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=akb3sFyjPHBbZX4M7aYx39aG9OxmM1r+z59p+g0m3bc=; b=uROv20zciDAOjvThl0GFPTxIsqko/G9NkYO+2/7QiEB6cKXoFQWpjx+c/z3fx4xiXZ Ujh/z50nEc7oeqHGtWJ0hhgrNobR6X0BjF2IWJ7Ola4Gau2ZFEtSgzkePSfkvCMRm/9d FB0tiMXdd8X0sG4ND8G8vnEsKF4bNXR4FPKnP4Y4GqdOptKCrsVkwoqpE3wKfMcyoU56 se6FuhFhmaNFpJJz3XbZA/w3xrhpqoz9DXhcB6UztGk9WAevynBkZNg8xSY5jLLhQQL7 fvsU2gkroJXwFHq106f2CmFZODkP+Z58KHmPNhsCvmLVjZrbG0lw+dDsKu2eMsjqNTV1 v8aA== X-Gm-Message-State: AOAM532IS8RDueLdlyg9q2qEuN3dslRg7dj6syhmwDstIRvwwk0f2ymK 5YvoUxEWStHfHEvDCjxrQqW5aA== X-Google-Smtp-Source: ABdhPJxi6c7TfcFNM60BApDm83Jqp3fP1uFsafWgoIelrna6lLSSvuHO6GU9gVpU882QcxPJuN0olw== X-Received: by 2002:a17:90a:3f10:: with SMTP id l16mr1465131pjc.110.1603931322399; Wed, 28 Oct 2020 17:28:42 -0700 (PDT) Received: from evgreen-glaptop.cheshire.ch ([2601:646:c780:1404:250:b6ff:fee1:7d4c]) by smtp.gmail.com with ESMTPSA id u13sm743625pfl.162.2020.10.28.17.28.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Oct 2020 17:28:41 -0700 (PDT) From: Evan Green To: Rob Herring , Bjorn Andersson , Srinivas Kandagatla Cc: Douglas Anderson , Stephen Boyd , Evan Green , Andy Gross , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/4] dt-bindings: nvmem: Add soc qfprom compatible strings Date: Wed, 28 Oct 2020 17:28:24 -0700 Message-Id: <20201028172737.v3.1.I8b447ca96abfbef5f298d77350e6c9d1d18d00f6@changeid> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201029002827.1729915-1-evgreen@chromium.org> References: <20201029002827.1729915-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 Reviewed-by: Rob Herring --- Changes in v3: - Fixed example (Doug and rob-bot) Changes in v2: - Add other soc compatible strings (Doug) - Fix compatible string definition (Doug) .../devicetree/bindings/nvmem/qcom,qfprom.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml index 1a18b6bab35e7..992777c90a0bf 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 @@ -60,7 +71,7 @@ examples: #size-cells = <2>; efuse@784000 { - compatible = "qcom,qfprom"; + compatible = "qcom,sc7180-qfprom", "qcom,qfprom"; reg = <0 0x00784000 0 0x8ff>, <0 0x00780000 0 0x7a0>, <0 0x00782000 0 0x100>, @@ -85,7 +96,7 @@ examples: #size-cells = <2>; efuse@784000 { - compatible = "qcom,qfprom"; + compatible = "qcom,sdm845-qfprom", "qcom,qfprom"; reg = <0 0x00784000 0 0x8ff>; #address-cells = <1>; #size-cells = <1>; From patchwork Thu Oct 29 00:28:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evan Green X-Patchwork-Id: 11864277 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 47474697 for ; Thu, 29 Oct 2020 00:30:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1C5B52080C for ; Thu, 29 Oct 2020 00:30:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="MLjsILPm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388560AbgJ2AaL (ORCPT ); Wed, 28 Oct 2020 20:30:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728059AbgJ2A2r (ORCPT ); Wed, 28 Oct 2020 20:28:47 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D967C0613CF for ; Wed, 28 Oct 2020 17:28:46 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id r10so467976plx.3 for ; Wed, 28 Oct 2020 17:28:46 -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=XL0p4jUGnrhzOC6YPdWcbPrW/C0smRCADsbdxD0rIUo=; b=MLjsILPmIR/nu0yGnq6LaBexXCUIMYA9QFD+BmVbZ65ibV1KuYMc+lhoD8DxAY2a9q OH7qT2thblC9rXZSJLxYkry1FnfeBWu8C393jJrq97f4DNPhmCsakx4Tz9O9KlFhajKL 2OZ8fZ/mibKVqtCiocLNPHiEWwX2Opov1EhVM= 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=XL0p4jUGnrhzOC6YPdWcbPrW/C0smRCADsbdxD0rIUo=; b=nqU0JGT1qM9fDyf49qmHI2gHgMFW8OauHi8J+ez+/geRPj+JhDDicIoUCjIcukR2av TG1RbmKHfKLbOt0eo7byRUbu7AUnU81xqi1OlVTH35KXRZszVyZckY7XQ+Zfj6ULlmCc jl5dqK7MJ/hXZrvSs5BWqpuUDMlgEJtfcH6xwWs04jXZqEHxizKqxX/VIrGMsn2TzWKn VuIR5cZchPMIw2Hc+HuvOeOvLVcvx6IKvoG/JMJedk/CCZI4oIzVUuOc+el5nHHyL2qO d8MAmden/62EjuQllFAynbZu1NM7VssBmGGTkCZ5Asup32kIctLhNbnhrxhn1NRN59jS UZEQ== X-Gm-Message-State: AOAM533N/Mu7FdG3Gh07LpIWNjXHql9UWnDZ8SYGFfzdfWl+gDSZ9vTr xeoCPjaJpAZu8ic0UAH56sZvAw== X-Google-Smtp-Source: ABdhPJwie3Lc6uDBwa//k2O0uXN6sPLbXwjUESLHWrECCCoJOD0gRgRwVcIQaa/h7BDUUnOCMivSDg== X-Received: by 2002:a17:902:ba96:b029:d5:f36b:44af with SMTP id k22-20020a170902ba96b02900d5f36b44afmr1438100pls.51.1603931325468; Wed, 28 Oct 2020 17:28:45 -0700 (PDT) Received: from evgreen-glaptop.cheshire.ch ([2601:646:c780:1404:250:b6ff:fee1:7d4c]) by smtp.gmail.com with ESMTPSA id u13sm743625pfl.162.2020.10.28.17.28.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Oct 2020 17:28:45 -0700 (PDT) From: Evan Green To: Rob Herring , Bjorn Andersson , Srinivas Kandagatla Cc: Douglas Anderson , Stephen Boyd , Evan Green , Andy Gross , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/4] arm64: dts: qcom: sc7180: Add soc-specific qfprom compat string Date: Wed, 28 Oct 2020 17:28:25 -0700 Message-Id: <20201028172737.v3.2.Ia3b68ac843df93c692627a3a92b947b3a5785863@changeid> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201029002827.1729915-1-evgreen@chromium.org> References: <20201029002827.1729915-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 6fcffd588a7d6..f5ef2cb6e68c2 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>,