From patchwork Fri Jun 14 14:32:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 166822 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp1962425oca; Fri, 14 Jun 2019 07:32:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+o635YWZbEuFSxOlgWyyMPQY33GWImBj6ATOdPW1xr1zU/vGNnKIANotAtIuVHdM0bN87 X-Received: by 2002:a65:51cb:: with SMTP id i11mr35076036pgq.390.1560522751112; Fri, 14 Jun 2019 07:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560522751; cv=none; d=google.com; s=arc-20160816; b=fErlWlZX2Nf1+5+auhUzvTdeY0SyaEdRLm7Vk7Uzrc+Pxy7qoaABsXiAlz+MXGZ9/e lnMfIo4kWA3IUvjUiUsimeMv6zSPIehTy9icVdUNJEE9QMdvlLYgH/IzRFfSls4Pk8U4 Yn7qaiQXiq9VcbF+VIzSeS0yft0sWy2exhvDTS2HYM0WQVRCaP7Jbt++8QxyofNNhUE4 ckD+S4AYniPExNOf6AmPrD5ecq3D0QlnrezETiTUt/fHHUAralmm46cjR4JWco11UOEi 5oQvJ5YNlQ+c8nghPUJ9kpGO1krAMxDYfDaH5mZocXi/YrUZ30l47iaB6Ycg7HV5MnGz KKQQ== 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=eUVAO9iLGJNRNJEPd7H1CfX7s+UdeP4IbOhhoga28vY=; b=hB9WCm4XdTtjrioPbf6gUe5XG0aLBROvpQIWdY6LsNH5QEjZ6RmjeddBFqA88Gpuzz D4qzGBAaNjq6tbqx31USEDYfQyqIeki5FGZVdrXzSXQaCDATEo+vu3IW0vd09rOGuqen t9a8wOnGqjqwvUen8urknJYnj91cnkekYhb2rBqTMUk82u1Jy9NfFkp1ikf0PzfOJkf3 0XNP1U1CdU103difBOPFqDNNzdDVRQCaBdSL1bxSVhG6ZYdrj1rt3TiYHPygr/FN7sS9 vHrBXsA+5dG8xT4Ep1gNyhKRx6mYWrrlZMC2EASFxTKKv1G4kvo1P3ur0QY/otRb4qCZ D6oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BGLNI7tU; 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 l28si2736882pgm.406.2019.06.14.07.32.30; Fri, 14 Jun 2019 07:32:31 -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=BGLNI7tU; 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 S1728667AbfFNOc2 (ORCPT + 16 others); Fri, 14 Jun 2019 10:32:28 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42000 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727913AbfFNOc0 (ORCPT ); Fri, 14 Jun 2019 10:32:26 -0400 Received: by mail-wr1-f68.google.com with SMTP id x17so2763480wrl.9 for ; Fri, 14 Jun 2019 07:32:24 -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=eUVAO9iLGJNRNJEPd7H1CfX7s+UdeP4IbOhhoga28vY=; b=BGLNI7tU6zps67gzg5Opx9rF/JLyRRffawoMDt8HYwlF0w02JdFZnXrrothPaqdAzX qci/LAKxC7Dr/9dE8ItskLqFe2QPGzVuwr7CYRM+9H7d+jnlKbSg32rRwjs6GyvgQuap 9T6+ZXbcOIyScxbpRxDJg9qcK8PXvYvKcouH3hhu73SCeN80UeBYWAk50V+RVIA7YYmz szKAG2dPIKq7SzmRrfXyD0SJUOv31Ky6H4aA6VZMu1+n/iJUprllFdDwI2aw9ujnu/i8 VM3kTGUMBCYSIaJhFcSbFIeU629Kcz3ZKlzeCFNGbogkKzAEXdtK3bbP62F2KIWKp87Z XoZw== 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=eUVAO9iLGJNRNJEPd7H1CfX7s+UdeP4IbOhhoga28vY=; b=C8KaUU8o3vPpKPpvZ6MvFrmEe3M8g3dB6UobpbS0bsTrZvTW0dCu0g647wUAk2JXER bUgk9zxFAeNQmpxU668taYdQkwzpU+uaVZKQAVMpQbaP2rTlo8OtGk8q8+n1osshMag8 2YlyKeFkK0QYh07Tht2zy6FByO7Cyw/t70BK8T/0mTFq+BN8kp2s9qweOSB86ur1hsb4 jXbk9HLX0IrVGw6v/YvCQ/+Cj2kpUUKE6xrr9ujeh4A+DYC7uk7gSEuUEx7z1DAAxze1 4438b6xL54Tv6WLLMphAqPAXnl9lkTVF1TG/nwvg/ePGGNNssvwF1vqUrGmk4WccMNVg MlDA== X-Gm-Message-State: APjAAAUYvrnKdYhP6aQ9rWgqqeBTegnlBTeN4bGU7A3nO/WlH0HvamFi 1N+1mCRSQgFYeqT89N0iAtU4bEbC53rldg== X-Received: by 2002:adf:f3c7:: with SMTP id g7mr63912708wrp.133.1560522744176; Fri, 14 Jun 2019 07:32:24 -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.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 07:32:23 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 1/6] nvmem: meson-efuse: update with SPDX Licence identifier Date: Fri, 14 Jun 2019 15:32:16 +0100 Message-Id: <20190614143221.32035-2-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: Neil Armstrong Signed-off-by: Neil Armstrong Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/meson-efuse.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) -- 2.21.0 diff --git a/drivers/nvmem/meson-efuse.c b/drivers/nvmem/meson-efuse.c index 99372768446b..9f928fa9964f 100644 --- a/drivers/nvmem/meson-efuse.c +++ b/drivers/nvmem/meson-efuse.c @@ -1,17 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Amlogic Meson GX eFuse Driver * * Copyright (c) 2016 Endless Computers, Inc. * Author: Carlo Caione - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. */ #include From patchwork Fri Jun 14 14:32:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 166823 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp1962436oca; Fri, 14 Jun 2019 07:32:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrhduDK5SMMxj92G3E7frG2DrIs4QryP6SY4UDNVQMprVSDziSxmMIV8009WFlirQMmYSS X-Received: by 2002:a65:5a42:: with SMTP id z2mr36962648pgs.421.1560522752180; Fri, 14 Jun 2019 07:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560522752; cv=none; d=google.com; s=arc-20160816; b=M+o2CCX44I2K+1IvxZnDOBMwfJ325G0uX9aeeJK+PQ4NI2jHZur+0Xf8azR8JIpoJi X/VxkvcUOLFAUXUWj3VIlq66XWIODvpPL/2hXvqWq78PyGj9S/k2fw9Tj7WIgekv9o0X ZC521j2MwYa2Dsllx9sPYK+IefDONniWQSsBxauYxKAVwXfzinrIFoZKvtxv67ofhiBA nSDuuqcamQxI9YCoxW+YtYOYpWZhhzt35XNccEY9ZE4oEbuc7HuMNp4exsZsxoRugZkg nVh6CpiR+UaScs72R7o0AddUXiQYpGNTvvl3HgNqQe8tvzaNZ5JVwHw+k1vFFkWYPkhH Ru9A== 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=WIDNLxvx2Bg+Xgh8nVseVRfmZdFzioXB6+MHqeHMXN8=; b=QmDHY9posq7NVMXkGVYp3Mt8bwMsdOusCYwoOV+7ZgiaERkul58FDRptdz04k8ntS1 PiICayKSo0YZjqcadO7xw6Vmm4rpekErRX5tzmxifCRnUZ1aFDzCFxGv7i7HHnWk08Bl Tvi0AVJy5TADiHfpHVq0V+EicCbpz8oWRLknQT0psxPSKFfHIKrvzR/D1CV0MWkQHMgS 7OI0tSyTxbe9fRjIO9sfaygY3aYR4SX8LK4hGoQXQKA/3mkWnKwCGuYF2/7NUMiBTY4P Fb7vn5eQtnfxvY5z78bs3p32E+6zuitExD1cj8L4S4QLO/Y9kOJXKa+/i+FgN7S8/jYD v92Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xdf26WCl; 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 l28si2736882pgm.406.2019.06.14.07.32.31; Fri, 14 Jun 2019 07:32:32 -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=Xdf26WCl; 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 S1728457AbfFNOcb (ORCPT + 16 others); Fri, 14 Jun 2019 10:32:31 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33281 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727382AbfFNOc0 (ORCPT ); Fri, 14 Jun 2019 10:32:26 -0400 Received: by mail-wm1-f66.google.com with SMTP id h19so9039239wme.0 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=WIDNLxvx2Bg+Xgh8nVseVRfmZdFzioXB6+MHqeHMXN8=; b=Xdf26WClNJVQ4j+yzbieeYmXLJIS0PH9WbLs+DGLAWoHTWRqhPy+xzf0sAiW6qz7fI lMyhsnqPKVsVl4xQT3PU0H/7MqvtfIvML5c1GaXj1A8hj2xhE+DpGt+oE7EiXlrhY9jb Ec04RqaqQxXoPkZWH/5msBaG8z1jhamSOo/vK0WZdT+E+2XJsSRZS1tXKKe+rso85tIa gEKIHmrYCnBuLX9wRbvPtSBQ7HuqaK3KhT3d8qWk+iFtBGYL6Xy3oT36b9mslsz+Pqcj X6B5bdawFenfPTuGNhdoyyZT2n8s8yRFg5wnj5SfGOqyQ3qWjrfFR3BOXo+qppdN35qS VzoQ== 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=WIDNLxvx2Bg+Xgh8nVseVRfmZdFzioXB6+MHqeHMXN8=; b=gmITRro1ZTW0ewoBBiGH6JqEO0cyQtmh6DYSynIo7KBOa0s3ekz9cHXicxhQZSi1I2 52j0qufSbNYaDabFVN9T+yh3SniSDrqmc5tlYAGElqJxapvhWm4amwgDbzq00AxwhHJf qDxTr4n9zdgdRFFmBtFSu5gtp8TirSg8GyLeKfH4F3eHUHYxPbQ01cffoLVCaFQ3eBYM bGC5xhWUdl6SF5UjxlDPsnZIzfG52IfTbd9MnvTa37Jrh8dfvqlZSVxx3hq/gbfyok+G PcIjKS+9FzEf4p1qR+Fzi4ALgv8T1YiOTyJBD+Alrggd6yfzAdHjbIRxFbqBayC0caxj X8ig== X-Gm-Message-State: APjAAAXqxbp4oeNltWriFTNI1nj+piOftIJzo5KJ/q5GiCh51mKXc3GM Tb7+C0qg/fFCwSoNjSp7S/s2jA== X-Received: by 2002:a1c:1fc2:: with SMTP id f185mr8641809wmf.154.1560522745307; Fri, 14 Jun 2019 07:32:25 -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.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 07:32:24 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 2/6] nvmem: meson-mx-efuse: update with SPDX Licence identifier Date: Fri, 14 Jun 2019 15:32:17 +0100 Message-Id: <20190614143221.32035-3-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: Neil Armstrong Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/meson-mx-efuse.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) -- 2.21.0 diff --git a/drivers/nvmem/meson-mx-efuse.c b/drivers/nvmem/meson-mx-efuse.c index a085563e39e3..2976aef87c82 100644 --- a/drivers/nvmem/meson-mx-efuse.c +++ b/drivers/nvmem/meson-mx-efuse.c @@ -1,16 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Amlogic Meson6, Meson8 and Meson8b eFuse Driver * * Copyright (c) 2017 Martin Blumenstingl - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. */ #include 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>; From patchwork Fri Jun 14 14:32:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 166825 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp1962548oca; Fri, 14 Jun 2019 07:32:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3h3Myfq7pbFuGlgobMniAkstnZIOqMguw+R17MHAd/g87d8MVSYHVr36k62f9zAHXyrls X-Received: by 2002:a17:90a:65c2:: with SMTP id i2mr11033629pjs.54.1560522758765; Fri, 14 Jun 2019 07:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560522758; cv=none; d=google.com; s=arc-20160816; b=sGM63C1NANYL58gwt1KEDYlSuT/FhM7E6MHjCYPzedhw/4rRlW4S9DzUROAX14MOuE K+ba00+dRFWkOX3E9dfpT3VjwVvg8+ulNhfCMvP9kgyPNxf6xNCc9n4lKHkB4illJErY 6gjUXaDJ+s2z4tTYSZxNAIleSl2OvGn3RzZdsbqPqrRmAalkdWrdx4dM9IKft9kNd6IJ bL7sMRDSucHqqOIWVo3yCN5Y9EoSPNvmJK6DYA/VoImj4+QqYsfzWEdbLCXiSvlTde+6 s+X+imuWWyOEIpZSQ+F6QxSYbSOHJBM6D+Eb/YD4wvO87qv5VqJ63CeVdWC3GKwqL7sz Fy6w== 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=3/jl8n/4Hi7I84/RxTPRyUpUNxtWJ5MI2spuleKSocQ=; b=PLxvLVlndlNza9lZtzG+mThNGHiKOUMnq/Uj5ZSJ6aVEVSAGyKUeQCPavWnvQvEy37 5mKihRtWIOILfRrvtzxpvOHmaa5SNKDLtVzLR8OdKZ9a4stQFFl1ptZSSJfdk8+jDycM LJkmMBOlWwShwTXhcS9Cpl2qfYyRJI8cp/O/xXXf7RMaZbqMx1vy2PoNwPYNaytyHttN 1QFvKVndSeuMsLRB+8fImsFr0R4T2dYKHKvrIbb0RpCmIM6dN5ax/Wi5dEkEU1mopXxk ftv5XG6cDCJEYg3zaSzfUB5WX9JT4OmN3a1dcmFbqaEHzI2e7rpqW0PwKMmdfmCOqIbk gXhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B4MrwJm7; 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.38; Fri, 14 Jun 2019 07:32:38 -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=B4MrwJm7; 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 S1728775AbfFNOcd (ORCPT + 16 others); Fri, 14 Jun 2019 10:32:33 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39289 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728631AbfFNOc3 (ORCPT ); Fri, 14 Jun 2019 10:32:29 -0400 Received: by mail-wr1-f65.google.com with SMTP id x4so2784983wrt.6 for ; Fri, 14 Jun 2019 07:32:27 -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=3/jl8n/4Hi7I84/RxTPRyUpUNxtWJ5MI2spuleKSocQ=; b=B4MrwJm761m+Cm3PbgoS46ikL4ODbyrleERo9RN5zwslHnmxExDdH/EuIyBwn+eowt sdaIuJ76CbXb8vfSpbMyMMqEK6vgWEWukzl3aQgnL4HcFdSnKAlJ8GgI5ViV8nhcKx9r HYA6tIp7hhf6PXQb2GL8eNq7tSzYAXf1Au3fnxLyqAp6KLrGFxckzlonL/kdLL6VxLvl 9xsah9P5DURn+5ObMCl2mKNFqZGPIhNi9oWiGG0YBJwj4xlZOnPbkDukjvxkUa1XbId/ lN5TXwIDYxF13QXcd9iZY2ytX09/eakU6bd7YzDSz+BHhVypioGvrZEkwLGgOViVET1T ed7Q== 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=3/jl8n/4Hi7I84/RxTPRyUpUNxtWJ5MI2spuleKSocQ=; b=g8fYkN1S1BiCHUA3IM6dTZ/GFm9lTcRbGXfjDgWhOZYGFebJDTUF4FHziJp9Cc+r7v Wv3MG/58DsH/G0kuFyXuUaBAyuL15tCM0vmB9ZCC7t/K5BLW8+y4am7LsbCk2umvOBjT OARm87tSH3eYprmL7vy/GREoxpRmyho9Ep0V9QqI8FNM4hc62Lj1m6z5SecSDtTVN6GP A+Z+U8oao4hWjWtOxNa7CCDkPnW50Bs/KiRcucTyn3yxVMARBOWArAIFdOYnXRrbkMpG 56Vj4EriNxZi8ZpaWQP1jX6x10HPdoJEiEkraoUUladOHakEc2sxmoHc5EcngNpCiXLX E1zA== X-Gm-Message-State: APjAAAWSeBPLFJrnjL0OZgQg2cFFxx2j5WkcwRU2SlAHVvJqMsVk1IsL 0j5jSd7gfsiabZRanLUrocQErw== X-Received: by 2002:a5d:43d0:: with SMTP id v16mr61942112wrr.252.1560522747161; Fri, 14 Jun 2019 07:32:27 -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.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 07:32:26 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 4/6] nvmem: imx: add i.MX8 nvmem driver Date: Fri, 14 Jun 2019 15:32:19 +0100 Message-Id: <20190614143221.32035-5-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 This patch adds i.MX8 nvmem ocotp driver to access fuse via RPC to i.MX8 system controller. Cc: Srinivas Kandagatla Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Peng Fan Reviewed-by: Dong Aisheng Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 7 ++ drivers/nvmem/Makefile | 2 + drivers/nvmem/imx-ocotp-scu.c | 161 ++++++++++++++++++++++++++++++++++ 3 files changed, 170 insertions(+) create mode 100644 drivers/nvmem/imx-ocotp-scu.c -- 2.21.0 diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index 6b2c4254c2fb..82a07c24e1db 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig @@ -46,6 +46,13 @@ config NVMEM_IMX_OCOTP This driver can also be built as a module. If so, the module will be called nvmem-imx-ocotp. +config NVMEM_IMX_OCOTP_SCU + tristate "i.MX8 SCU On-Chip OTP Controller support" + depends on IMX_SCU + help + This is a driver for the SCU On-Chip OTP Controller (OCOTP) + available on i.MX8 SoCs. + config NVMEM_LPC18XX_EEPROM tristate "NXP LPC18XX EEPROM Memory Support" depends on ARCH_LPC18XX || COMPILE_TEST diff --git a/drivers/nvmem/Makefile b/drivers/nvmem/Makefile index c1fe4768dfef..e5c153d99a67 100644 --- a/drivers/nvmem/Makefile +++ b/drivers/nvmem/Makefile @@ -16,6 +16,8 @@ obj-$(CONFIG_NVMEM_IMX_IIM) += nvmem-imx-iim.o nvmem-imx-iim-y := imx-iim.o obj-$(CONFIG_NVMEM_IMX_OCOTP) += nvmem-imx-ocotp.o nvmem-imx-ocotp-y := imx-ocotp.o +obj-$(CONFIG_NVMEM_IMX_OCOTP_SCU) += nvmem-imx-ocotp-scu.o +nvmem-imx-ocotp-scu-y := imx-ocotp-scu.o obj-$(CONFIG_NVMEM_LPC18XX_EEPROM) += nvmem_lpc18xx_eeprom.o nvmem_lpc18xx_eeprom-y := lpc18xx_eeprom.o obj-$(CONFIG_NVMEM_LPC18XX_OTP) += nvmem_lpc18xx_otp.o diff --git a/drivers/nvmem/imx-ocotp-scu.c b/drivers/nvmem/imx-ocotp-scu.c new file mode 100644 index 000000000000..d9dc482ecb2f --- /dev/null +++ b/drivers/nvmem/imx-ocotp-scu.c @@ -0,0 +1,161 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * i.MX8 OCOTP fusebox driver + * + * Copyright 2019 NXP + * + * Peng Fan + */ + +#include +#include +#include +#include +#include +#include + +enum ocotp_devtype { + IMX8QXP, +}; + +struct ocotp_devtype_data { + int devtype; + int nregs; +}; + +struct ocotp_priv { + struct device *dev; + const struct ocotp_devtype_data *data; + struct imx_sc_ipc *nvmem_ipc; +}; + +struct imx_sc_msg_misc_fuse_read { + struct imx_sc_rpc_msg hdr; + u32 word; +} __packed; + +static struct ocotp_devtype_data imx8qxp_data = { + .devtype = IMX8QXP, + .nregs = 800, +}; + +static int imx_sc_misc_otp_fuse_read(struct imx_sc_ipc *ipc, u32 word, + u32 *val) +{ + struct imx_sc_msg_misc_fuse_read msg; + struct imx_sc_rpc_msg *hdr = &msg.hdr; + int ret; + + hdr->ver = IMX_SC_RPC_VERSION; + hdr->svc = IMX_SC_RPC_SVC_MISC; + hdr->func = IMX_SC_MISC_FUNC_OTP_FUSE_READ; + hdr->size = 2; + + msg.word = word; + + ret = imx_scu_call_rpc(ipc, &msg, true); + if (ret) + return ret; + + *val = msg.word; + + return 0; +} + +static int imx_scu_ocotp_read(void *context, unsigned int offset, + void *val, size_t bytes) +{ + struct ocotp_priv *priv = context; + u32 count, index, num_bytes; + u32 *buf; + void *p; + int i, ret; + + index = offset >> 2; + num_bytes = round_up((offset % 4) + bytes, 4); + count = num_bytes >> 2; + + if (count > (priv->data->nregs - index)) + count = priv->data->nregs - index; + + p = kzalloc(num_bytes, GFP_KERNEL); + if (!p) + return -ENOMEM; + + buf = p; + + for (i = index; i < (index + count); i++) { + if (priv->data->devtype == IMX8QXP) { + if ((i > 271) && (i < 544)) { + *buf++ = 0; + continue; + } + } + + ret = imx_sc_misc_otp_fuse_read(priv->nvmem_ipc, i, buf); + if (ret) { + kfree(p); + return ret; + } + buf++; + } + + memcpy(val, (u8 *)p + offset % 4, bytes); + + kfree(p); + + return 0; +} + +static struct nvmem_config imx_scu_ocotp_nvmem_config = { + .name = "imx-scu-ocotp", + .read_only = true, + .word_size = 4, + .stride = 1, + .owner = THIS_MODULE, + .reg_read = imx_scu_ocotp_read, +}; + +static const struct of_device_id imx_scu_ocotp_dt_ids[] = { + { .compatible = "fsl,imx8qxp-scu-ocotp", (void *)&imx8qxp_data }, + { }, +}; +MODULE_DEVICE_TABLE(of, imx_scu_ocotp_dt_ids); + +static int imx_scu_ocotp_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct ocotp_priv *priv; + struct nvmem_device *nvmem; + int ret; + + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); + if (!priv) + return -ENOMEM; + + ret = imx_scu_get_handle(&priv->nvmem_ipc); + if (ret) + return ret; + + priv->data = of_device_get_match_data(dev); + priv->dev = dev; + imx_scu_ocotp_nvmem_config.size = 4 * priv->data->nregs; + imx_scu_ocotp_nvmem_config.dev = dev; + imx_scu_ocotp_nvmem_config.priv = priv; + nvmem = devm_nvmem_register(dev, &imx_scu_ocotp_nvmem_config); + + return PTR_ERR_OR_ZERO(nvmem); +} + +static struct platform_driver imx_scu_ocotp_driver = { + .probe = imx_scu_ocotp_probe, + .driver = { + .name = "imx_scu_ocotp", + .of_match_table = imx_scu_ocotp_dt_ids, + }, +}; +module_platform_driver(imx_scu_ocotp_driver); + +MODULE_AUTHOR("Peng Fan "); +MODULE_DESCRIPTION("i.MX8 SCU OCOTP fuse box driver"); +MODULE_LICENSE("GPL v2"); From patchwork Fri Jun 14 14:32:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 166824 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp1962492oca; Fri, 14 Jun 2019 07:32:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/FeSLGhgLtsZm5gzn82DwRrTci/q673Wd1gaE5dUca4Z3+V2eZYGHZLdGpuwQwR+a6tPq X-Received: by 2002:a17:90a:2486:: with SMTP id i6mr11345387pje.125.1560522756328; Fri, 14 Jun 2019 07:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560522756; cv=none; d=google.com; s=arc-20160816; b=fewCQzHdduGpBdpk3RMuuZmn/lJHdsmLbi/sqbLoJg0vV1ggOYR+GPSnrxphT/O5MN B75Vwhv1L183xQQzb7B1XPt8LOrSuKSpZQ27e6Qh2PMVugFiT/V0smVziUoWY5/Uj+2T 06JStHEeh4n+2+jVhLfgWypWnJC8EuDJE6QRGlnf21N/EgwBfOijkHXDENgidW9FGW06 mtjfD5L2T5NAWEhPb1a4ysAdNf6D9EqgwoOfeTZrCV3e7HeuCmMm5aDcTfYnEJSnLR54 Y/ZxpGR4IFh6RbIOWqtamOaG5lArEx6T25ZsJnNB40vgyGHiKR7CAMd/seLvbkJ6fsLQ nUNQ== 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=y/TWjdw0CHDqXafiiLtO/KaC5YS+exiuXkBCJaSMnJ0=; b=Y7mG5kfIAwme5Ab3cCiEGbcFCtVaXWYrdZqwVpLDA0FdzD/HPMH+/n+7AUyHaA/x/f viD12750p2Z060+Qro8GdYPbeMYxkBLrCitG0djiI21oSPWbx8fGHfPOBQMdPfHt+E9Z 720bzemXP0uHvwiRY+zHSQ0pypUnR4UTZzwR8uCTbMtQtAIOxasNqGE6nz881W2E9aOR ASNw+hNrL58p/MI1sMgDUbZ/KPhi8EheUcSGSnHUe176zEcXJYseZYNgqWrNyzEDWa3J MdL9CXBQSPxhD4BaqatTh00A9ndJm6UvCrfw2V3aPAM2wwOIKTUQrphNo6Jq+e7teUaj /Q5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fNKVlIMY; 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.36; Fri, 14 Jun 2019 07:32:36 -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=fNKVlIMY; 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 S1728731AbfFNOce (ORCPT + 16 others); Fri, 14 Jun 2019 10:32:34 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43304 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728649AbfFNOc3 (ORCPT ); Fri, 14 Jun 2019 10:32:29 -0400 Received: by mail-wr1-f67.google.com with SMTP id p13so2756547wru.10 for ; Fri, 14 Jun 2019 07:32:28 -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=y/TWjdw0CHDqXafiiLtO/KaC5YS+exiuXkBCJaSMnJ0=; b=fNKVlIMY4FVsfPdnLgdEX9qrJHDL9W1MLV53BBVrNycT0XTcFH3R+iJUw1KTXyqQKQ RpuwnsFdpcu/EJPNRkQLQcnQtEhSVke9n0IjKB1HV96d01l8P74c39MU/7u6XERfBviU hSSOlqLIH7+912JAkZadGNbjg7OOmOyBQH55FLVWO6o9YmEr+qXVcfTXPAfz13DROwHZ VXPLZ8Y50llcNbtAkC+PaRyo8CLmKscotPHl0EB8xXV/F2eeKf7Pt2U/1zozhMhE5JDd qKohVwLz7OI2tDYb7wcek5VBiQw7Lv2UR9OBGNQ3BxGvDY2ZmSR663XMqQbGzCOcHI0P 7tFg== 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=y/TWjdw0CHDqXafiiLtO/KaC5YS+exiuXkBCJaSMnJ0=; b=DQKtArV5QFmieKMBq/6Uc1YxV7m1c5FqiRoun2hhnB5n7N6aNC/4PvDHqUQ0H1zy5/ oBgjSVzjjUA2hjxTGBFI9KcK1cu6J1mWZg9/QJKKqkUNa8afyXU+BBieiRulqbQirr7b /p7nmTxoqQlcMIIEn6h3501Ahvp3MS+mgzdCmxMkodUczDgU1tlpLKKCMxvECoL3okZ1 AhFbfBiWaJm6nHfc/IZ8EJiJ1ZiY7OX2U2uy7pwwXm25qkBdCd8wmNoTA505erXKj8GJ dkEnHMU7gb0ZC6be9CEx08oaU2C7H9mgPtugr2RgcCuwYVqgUMcLgf5VVYU1NhbOYqf4 n/tw== X-Gm-Message-State: APjAAAXBVqjAlKnos+BAt4jMJdlw/QvLehm0azUWMplgBbiKk9UlJtgD gVfjPLGaRhMHfpCay18zHwzXrA== X-Received: by 2002:a5d:4a0b:: with SMTP id m11mr16965069wrq.251.1560522748105; Fri, 14 Jun 2019 07:32:28 -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.27 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 07:32:27 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 5/6] nvmem: Broaden the selection of NVMEM_SNVS_LPGPR Date: Fri, 14 Jun 2019 15:32:20 +0100 Message-Id: <20190614143221.32035-6-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: Fabio Estevam The SNVS LPGR IP block is also found on other i.MX SoCs that are not covered by the current SOC_IMX6 || SOC_IMX7D logic. One example is the i.MX7ULP. To avoid keep expanding the SoC logic selection, make it broader by using the more generic ARCH_MXC symbol instead. Signed-off-by: Fabio Estevam Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index 82a07c24e1db..96a8aedf1a9a 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig @@ -194,7 +194,7 @@ config MESON_MX_EFUSE config NVMEM_SNVS_LPGPR tristate "Support for Low Power General Purpose Register" - depends on SOC_IMX6 || SOC_IMX7D || COMPILE_TEST + depends on ARCH_MXC || COMPILE_TEST help This is a driver for Low Power General Purpose Register (LPGPR) available on i.MX6 and i.MX7 SoCs in Secure Non-Volatile Storage (SNVS) of this chip. From patchwork Fri Jun 14 14:32:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 166827 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp1962695oca; Fri, 14 Jun 2019 07:32:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5SEhzEedmuC4Q8lrRYy+kvlrRFrsUwjmwlV+NcaHxvqVZ0JQCUCZOjWu8n7gY+b9pTjSd X-Received: by 2002:a17:902:8a87:: with SMTP id p7mr76735674plo.124.1560522765280; Fri, 14 Jun 2019 07:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560522765; cv=none; d=google.com; s=arc-20160816; b=uawaH/3SHCFI67GNKH1EfyHlJThUGF3Ci03DLL76A67UldIWlZLX4IGEb+uqJhnyrY sdb3UMgr5Jj76hfAEjT4+JerYqltrg2xOGT4vu8NL3MJPx3Hjj4Cek8j5KY26lfYNivN c5WvLoTDe4jFKiMw/C/E8m7kngVqT+pGlRfRjjnhmccLIQQYO9d4XHP3BF8NHlMaQjOC t8hvMLLxQ3WVorYPm0Z7ysqtT2cDq71G6BSmc/etxOm7/frBa7qZnZI5xwkeHMzEkz8W JDXZorD0H5fgw+Je5obqXjlx8jB7/WlzbhCo/mnWjzFsmq6BM7j5u6q3+IXHtvQnddaj 82LQ== 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=tXKT5ral/nl9+HtiFFVBF6lhcj4AzBHp0GEsDCkDxuc=; b=mHlPIwuuNwHtd6kn13/I0IYsoHRZJEgO3S6jWPhyr9eCR+BWNlx1V8n967ST63pcnZ ztLGxB7vgjlpLQ/MHc7rdRMQNGARkrNHbo5wZzRax/IuMsYas7lLxw4npzb0cBILtGNh Er0tC0QzAhkRvdBDW7tMUtIOvxXxkXdqoxmG/vTsUgRCtiD/rApg6ko1xruqEvliaB31 1D+/AcexnVm/Ret8ZostNC4/sEx6nuaU7lKXyMpZ50iuB1t5yHdBhv9Iqrdkm/b5S7/g 8H6kT5qv36M03UxEoCBEjJrN38i5C6AnfixSct4NkRBQMFZ3gvqAueBJw2fRHnNWANeM 5Dlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZNQQg+I9; 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.45; Fri, 14 Jun 2019 07:32:45 -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=ZNQQg+I9; 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 S1728837AbfFNOco (ORCPT + 16 others); Fri, 14 Jun 2019 10:32:44 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51318 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728686AbfFNOca (ORCPT ); Fri, 14 Jun 2019 10:32:30 -0400 Received: by mail-wm1-f67.google.com with SMTP id 207so2617122wma.1 for ; Fri, 14 Jun 2019 07:32:29 -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=tXKT5ral/nl9+HtiFFVBF6lhcj4AzBHp0GEsDCkDxuc=; b=ZNQQg+I9sMBruYVnXh9+GCR9U6s0Za4MBghxSh2kQgDiOZPEhxMmkJdUcu2+Wby4n8 sR5+aciqY9FQDF++Mk4BDDopp57/hpSi2W7hg9GRwMSZOT/T8zTEGS3W0oSwiJScDGcM GUsY7zl+swRo+n0MLMZcEVMR8UnJ44Efedz3chYPdgGaujTbEOE+RlFSNB502cIjQGLB Q8is1qkd7d4RIWQkatn+JDrxYFmltk2TAG4hcm9rsykKuYoQ1i/kKaq0nixHfNdP12wm K7SCpuB/ahzENq7ALAnuKxYEQzscouepQWFdkNb6O7+k/JpXN5T+XT+XZdnjg7IfwOxD Auew== 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=tXKT5ral/nl9+HtiFFVBF6lhcj4AzBHp0GEsDCkDxuc=; b=umCTG705o6g7mP41QVzCptXT3iilBkgiND7tJrMFTPLoGoi5p+8//c7xsyTV3k+Xsc BTvcIddyojsHK1I+9eVbLgJ7TjxZg8hc6l+ooS8TaHvrg4phQMdXvIfn+9UQOhc0CV6j PEd8/r6yAA8xUD9FvzVKz0bAVB3yC3tv8xPvnkMPkQjcZesE9AfaRhMFc8nEYUHSDvF8 J7Ul4mDQ+cwUVL2QShayqBMyj+3Y6UNqbT9gR67/VvttAQuQkss4BUcAe699ZKhTq3++ FEnYsIrUHyeATepf9SaOv3IK624sxXdDRr1O8CyAIZXI0lTHXmpuPEELVI2rprcesTmN 1VOw== X-Gm-Message-State: APjAAAVA2iqptA60XJ5kwvtp/utMV0Z9aaqVFkxMunz21BqzRXiAVztJ Ofz919EIVEjZ4tZAwTxh57KF/F/Kslt7KA== X-Received: by 2002:a1c:a7ca:: with SMTP id q193mr8963049wme.150.1560522749256; Fri, 14 Jun 2019 07:32:29 -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.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 07:32:28 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 6/6] dt-bindings: nvmem: Convert Allwinner SID to a schema Date: Fri, 14 Jun 2019 15:32:21 +0100 Message-Id: <20190614143221.32035-7-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: Maxime Ripard The Allwinner SoCs have an efuse supported in Linux, with a matching Device Tree binding. Now that we have the DT validation in place, let's convert the device tree bindings for that controller over to a YAML schemas. Signed-off-by: Maxime Ripard Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../nvmem/allwinner,sun4i-a10-sid.yaml | 51 +++++++++++++++++++ .../bindings/nvmem/allwinner,sunxi-sid.txt | 29 ----------- 2 files changed, 51 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml delete mode 100644 Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt -- 2.21.0 diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml new file mode 100644 index 000000000000..c9efd6e2c134 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/allwinner,sun4i-a10-sid.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A10 Security ID Device Tree Bindings + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + enum: + - allwinner,sun4i-a10-sid + - allwinner,sun7i-a20-sid + - allwinner,sun8i-a83t-sid + - allwinner,sun8i-h3-sid + - allwinner,sun50i-a64-sid + - allwinner,sun50i-h5-sid + - allwinner,sun50i-h6-sid + + reg: + maxItems: 1 + +required: + - compatible + - reg + +# FIXME: We should set it, but it would report all the generic +# properties as additional properties. +# additionalProperties: false + +examples: + - | + sid@1c23800 { + compatible = "allwinner,sun4i-a10-sid"; + reg = <0x01c23800 0x10>; + }; + + - | + sid@1c23800 { + compatible = "allwinner,sun7i-a20-sid"; + reg = <0x01c23800 0x200>; + }; + +... diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt b/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt deleted file mode 100644 index cfb18b4ef8f7..000000000000 --- a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt +++ /dev/null @@ -1,29 +0,0 @@ -Allwinner sunxi-sid - -Required properties: -- compatible: Should be one of the following: - "allwinner,sun4i-a10-sid" - "allwinner,sun7i-a20-sid" - "allwinner,sun8i-a83t-sid" - "allwinner,sun8i-h3-sid" - "allwinner,sun50i-a64-sid" - "allwinner,sun50i-h5-sid" - "allwinner,sun50i-h6-sid" - -- reg: Should contain registers location and length - -= Data cells = -Are child nodes of sunxi-sid, bindings of which as described in -bindings/nvmem/nvmem.txt - -Example for sun4i: - sid@1c23800 { - compatible = "allwinner,sun4i-a10-sid"; - reg = <0x01c23800 0x10> - }; - -Example for sun7i: - sid@1c23800 { - compatible = "allwinner,sun7i-a20-sid"; - reg = <0x01c23800 0x200> - };