From patchwork Fri Jun 14 14:32:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 166826 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp1962590oca; Fri, 14 Jun 2019 07:32:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwY++atudJVcrsWJIjt+Ah0OheBK+Gsb6l1/R1EbUCpBtv5PXqLLpmj+I4z85k46lcW0ZXg X-Received: by 2002:a63:ed13:: with SMTP id d19mr28878048pgi.100.1560522760405; Fri, 14 Jun 2019 07:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560522760; cv=none; d=google.com; s=arc-20160816; b=kasQmi1G348PkShznGR8kKX/Se1dHGjhKgnB5n/B01TRnUoDyVHXMXScpWyohCYzle Roxj8XHG/OX6opxTAD6nRK8waBcg6h2drDzxgGVXQhL7uaSw9h4n34wdI7j67TUpChAN 5ATPtpBjUR/YUVyqUWpEXpDKX/zNvUlJGRD2lb6XcqH5bJOGbwUZspyF92XC5S4L/3QZ FhwvjprtjSKf0CpqTyVDW8bzk3po89Sw1SN7Hvfu7X6Mr+/tULQx9cHDpmGUCSpAqzWM xXEpR8NedZXHVtEq2morrwEJ1mS2KZaw4nBEZsSMTQ/g3mH4hkkqTy6xwSO61xRZsgoP MBlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dEGsv1xt89okLqG46teao5LGbBhh1cK6PExvsJ89WBk=; b=omWIv2pfoMzYbZFeTwTKME3dXqUn0i7KOl7UBs0/wNFstgvMBrDNBVg+QKYMIHbX0m jhDbib3FSWthiv4qeNAE/lwY6gVyliDEzxNDXyPsGOEYwIDGfNPTbK1lwf7KTkdA73Dj CehnPHvTjOc/SWWNBcHf5ofkoP/8Bp54LKG1kCGX0Vj9tLRVU6SmSRLD/CUx882Vau2c gyZr2STY9KKRAWQ9CkN9JgvJUWVVjr1HneJimEIM4akTV9ZrRswjShLoyp5UPCcyf9W3 JfWfIk0W8iEheVAxciepbA2fI+dfOZSpEdsJ97gU8CRkk8PNlgogpnEerK0CUL1wSy4s vPzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JNnlqtg5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si2508757pjn.106.2019.06.14.07.32.40; Fri, 14 Jun 2019 07:32:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JNnlqtg5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728728AbfFNOcb (ORCPT + 16 others); Fri, 14 Jun 2019 10:32:31 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46427 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728592AbfFNOc2 (ORCPT ); Fri, 14 Jun 2019 10:32:28 -0400 Received: by mail-wr1-f67.google.com with SMTP id n4so2743546wrw.13 for ; Fri, 14 Jun 2019 07:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dEGsv1xt89okLqG46teao5LGbBhh1cK6PExvsJ89WBk=; b=JNnlqtg5TB2uvQJRhyzLfO8Insof31JtdxXMjKf4hY8C9fJfTRLifW5Kr+CZeEq2SL +vFgde0iTTnKb/Utb/PKv6MdEsiwAHgVXTZzg+AxAt47RM80XNsdG3CjFDfIoPfSnHxV cvbdnVFkzQHsEx2bhKZ6hK5FWL2/Pz/3MQkyBu2QyrcvtdT5g/dJ0N0WbMqZsu1i54/r KTHJxZt5pSw8JF1oeiOE5Nwtw5Jm9DGZhzDqiDkOngZVujT+yg9vfrZ3e9P+jcz/rrMY mlKLXIRYaCxjKmDgfqGoSmVYLOJgxeYWIyqFoFCj0loWxY6zdkvcu47GIdAn56y8WyjH /1eA== 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=dEGsv1xt89okLqG46teao5LGbBhh1cK6PExvsJ89WBk=; b=skoN+tXeOwsdIkRYdIqrUCNAWlh0iZ5Rr+RF+nhhWpTiB2r98SrB88M6RrkwkC1wmM cTKgsNz/+7f5ih7ERCXXhFXXSOELLLJYtljXaDGo7rqnmtx+bWz9EGKSnFRo538sItPJ o90LLlCNFIXP/VCk0z2mJd9zjpMbsZBeNWmwXsFM1EBet9rU/GloZM0LhzhvzrhyK+Fb 5YEuH1NArLoz386BsWbjCzl9TETZdNsnc1AWfikKPgopT8GoyuGZJvBRsu7k5Dy1twBs stc8Xqca8he2kdpTp0FELHDIYQbqCqWgm0SBnuG+C5vyZrOTAtBppgfB5pz3IzCFH5ra ssZg== X-Gm-Message-State: APjAAAXNJCeGkwx8GQSEbEl1zmzl0le4QbuLZlnW5NwZB4lVM+SzH9VW bokDikhn8JaoQKS95xZqcqV5uQ== X-Received: by 2002:adf:e34e:: with SMTP id n14mr45219052wrj.169.1560522746259; Fri, 14 Jun 2019 07:32:26 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id t6sm4738007wmb.29.2019.06.14.07.32.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 07:32:25 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 3/6] dt-bindings: fsl: scu: add ocotp binding Date: Fri, 14 Jun 2019 15:32:18 +0100 Message-Id: <20190614143221.32035-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190614143221.32035-1-srinivas.kandagatla@linaro.org> References: <20190614143221.32035-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller(SCU), the ocotp controller is being controlled by the SCU, so Linux need use RPC to SCU for ocotp handling. This patch adds binding doc for i.MX8 SCU OCOTP driver. Cc: Mark Rutland Cc: Shawn Guo Cc: Ulf Hansson Cc: Stephen Boyd Cc: Anson Huang Cc: devicetree@vger.kernel.org Reviewed-by: Rob Herring Reviewed-by: Dong Aisheng Signed-off-by: Peng Fan Signed-off-by: Srinivas Kandagatla --- .../bindings/arm/freescale/fsl,scu.txt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) -- 2.21.0 diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index 5d7dbabbb784..f378922906f6 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -133,6 +133,18 @@ RTC bindings based on SCU Message Protocol Required properties: - compatible: should be "fsl,imx8qxp-sc-rtc"; +OCOTP bindings based on SCU Message Protocol +------------------------------------------------------------ +Required properties: +- compatible: Should be "fsl,imx8qxp-scu-ocotp" +- #address-cells: Must be 1. Contains byte index +- #size-cells: Must be 1. Contains byte length + +Optional Child nodes: + +- Data cells of ocotp: + Detailed bindings are described in bindings/nvmem/nvmem.txt + Example (imx8qxp): ------------- aliases { @@ -177,6 +189,16 @@ firmware { ... }; + ocotp: imx8qx-ocotp { + compatible = "fsl,imx8qxp-scu-ocotp"; + #address-cells = <1>; + #size-cells = <1>; + + fec_mac0: mac@2c4 { + reg = <0x2c4 8>; + }; + }; + pd: imx8qx-pd { compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd"; #power-domain-cells = <1>;