From patchwork Tue Oct 29 11:42:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 178018 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp4746548ill; Tue, 29 Oct 2019 04:43:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzohbO4+wOcCgtZWJ8OxpDwGXeStY6JeIeQDN1gHRe1ltDKnL62VwT7quiues65K8p7wa2t X-Received: by 2002:a17:906:6bcd:: with SMTP id t13mr2695337ejs.231.1572349437943; Tue, 29 Oct 2019 04:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572349437; cv=none; d=google.com; s=arc-20160816; b=tuWCd+knXfpwVoVkdA3vL1khaKwB5nstnWGR8WbLKxuUgSgG3+U+InIAhYQ/SmwDgw nLvHaM3jh2SR2QUNTxH4mpewuVcsZ8YewB1MZxg8/Uv1UznRuOqxXsOxsn9M97xUzeR/ xq9MkssfTL5TA9s+ISb1d7qmKNtWHpWBZfAFiLi+tW7yY3PeUSqaNSyovBpEY4OCnxrh 4ZjiTDtmZRVQg73iOR/YiWIXPHe6Y98jlIVj/uincaFXQyF+XI/BCz/+YzYb2IfjPtK1 9v1VMgB+WxOEJOyx52BPd6coktq/pmeGuA+s35+/v6FIYKXxOn+CMeEw3YdEWm61D0zq q2+g== 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=Z9nVcHk3Q0mlF3PvM5FkU72I0eorT8jyZZzFFAHSx54=; b=CBVYfi4PIb32PNn2P3jy7YfPFk22Wux5RPew6I0yYqQ5JznHGSmAfpXIpG/8NC+efd 4r3j4Elt5u2Hp5yVuxa4++Rglw0pZylBtfThI5lyFAJub5Dfx2FL38Ch77LkrzQr4ik+ CG7E3cQXKZlBkr0yodQixA7Ul+d4GGXVS2EhXL5jfl8UOc3aLAAsM0exVUqr0RmIQNt6 06zTQcP6xGMM7Q59bq1YRMdm6NNJe0IczhIG8uaXnqa8EFJ8vBOOXSF+HY8SreVDwlXH 79G855EaIItuvP3P0Ds8XmxD6RhhgM3n0dAdQSTf7PcBayZQlaNIfcN2vaOUdHKs1LdD BqfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i36cH2MQ; 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 v6si10346937edi.308.2019.10.29.04.43.57; Tue, 29 Oct 2019 04:43:57 -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=i36cH2MQ; 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 S2387725AbfJ2Ln4 (ORCPT + 26 others); Tue, 29 Oct 2019 07:43:56 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37905 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733227AbfJ2Lnq (ORCPT ); Tue, 29 Oct 2019 07:43:46 -0400 Received: by mail-wr1-f68.google.com with SMTP id v9so13273332wrq.5 for ; Tue, 29 Oct 2019 04:43:44 -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=Z9nVcHk3Q0mlF3PvM5FkU72I0eorT8jyZZzFFAHSx54=; b=i36cH2MQrS2Pku+ZBZcVraaRTjCF33KGknTNMtLaGuVw9x5HNGs1TCr3sisbGQS96u cP4cBHfQhioeopJuLhhvyFl68JgSP5EkdjdxJiVKXxNhZ1upA5TldrZg+6TL9raOLCDE kJ9aj3irlJn7kZZEVFU3VGAZ92tAPU4cYwhxpDW954Ivxb+Rcs61VbUBwowk/CkFeFzB hVTSTHSgPUpAWpeQ2+txTc8QQKPNhCIvpeiFo7VaBPr7+RST7+8vsZRdNn2+0sA2Nrdl q39nDADBdvJutHWV/f7hZ9fUYIKV7uQvsPdQcan3gsC/9iS+DLHlT316JsckM0pu0eF1 9E6Q== 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=Z9nVcHk3Q0mlF3PvM5FkU72I0eorT8jyZZzFFAHSx54=; b=XVeI4+EzSZXpjCl/OBxlnho3HmeZeG4IUEvZyu1xKWvlS9tEJp+WKPaEY1ps3dOLFr ixieSL2yFzVrn5yiv65G20334fkbVS7wFNyQwnlspE7f39xLbFFALdRF7UcnL3QFgR61 3+JVci2YzSKCqtIhTdqUWtftxPdItOtio3OF91pTX0SclCeXLDY/ZUlJg0XYrXu6s/RY e2vinzcMnxd3RzPpGjcqFqSpD/11PQCG32jYzOFCmbvRX+GsBk8xXMTBj3GUbyqn1C4s E4dbJ/6I5z9Xam7h8n8gFUCdpuK3w0kSI6+nFvtCjyRnjrOmkcJtBWQWmXEy4nq0osFz s9Pw== X-Gm-Message-State: APjAAAXZxC9Ywfa4I29kbiWjtF2GTH7UNYckOfX8tuFSg2wd366qwc/m lBEORy3iBBa24zSaKx2FVY77TcDV+K0= X-Received: by 2002:a5d:498a:: with SMTP id r10mr20169902wrq.129.1572349423624; Tue, 29 Oct 2019 04:43:43 -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 q25sm26559864wra.3.2019.10.29.04.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 04:43:42 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Heiko Stuebner , Rob Herring , Srinivas Kandagatla Subject: [PATCH 09/10] dt-bindings: nvmem: add binding for Rockchip OTP controller Date: Tue, 29 Oct 2019 11:42:39 +0000 Message-Id: <20191029114240.14905-10-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191029114240.14905-1-srinivas.kandagatla@linaro.org> References: <20191029114240.14905-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: Heiko Stuebner Newer Rockchip SoCs use a different IP for accessing special one- time-programmable memory, so add a binding for these controllers. Signed-off-by: Heiko Stuebner Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../bindings/nvmem/rockchip-otp.txt | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/rockchip-otp.txt -- 2.21.0 diff --git a/Documentation/devicetree/bindings/nvmem/rockchip-otp.txt b/Documentation/devicetree/bindings/nvmem/rockchip-otp.txt new file mode 100644 index 000000000000..40f649f7c2e5 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/rockchip-otp.txt @@ -0,0 +1,25 @@ +Rockchip internal OTP (One Time Programmable) memory device tree bindings + +Required properties: +- compatible: Should be one of the following. + - "rockchip,px30-otp" - for PX30 SoCs. + - "rockchip,rk3308-otp" - for RK3308 SoCs. +- reg: Should contain the registers location and size +- clocks: Must contain an entry for each entry in clock-names. +- clock-names: Should be "otp", "apb_pclk" and "phy". +- resets: Must contain an entry for each entry in reset-names. + See ../../reset/reset.txt for details. +- reset-names: Should be "phy". + +See nvmem.txt for more information. + +Example: + otp: otp@ff290000 { + compatible = "rockchip,px30-otp"; + reg = <0x0 0xff290000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + clocks = <&cru SCLK_OTP_USR>, <&cru PCLK_OTP_NS>, + <&cru PCLK_OTP_PHY>; + clock-names = "otp", "apb_pclk", "phy"; + };