Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4950358ybv; Mon, 17 Feb 2020 09:04:39 -0800 (PST) X-Google-Smtp-Source: APXvYqy4pQ0Gzw2tc5iKI+uSrzohbPBqnUvY27uvTTFQk/9X99hwM9K8V64UhykvnHO0E+jtD09O X-Received: by 2002:aca:554d:: with SMTP id j74mr32009oib.92.1581959079013; Mon, 17 Feb 2020 09:04:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581959079; cv=none; d=google.com; s=arc-20160816; b=tPhZDxWGbrf3VA/gbtvpQxL11a6jm7MQipfbTZnQNEZa60lJuHqQN1BbtX/KZQX6I0 Lfq1cKQ/VOlAcAcNjZB5ToaiVA19ZU4ICOxloQsYa3hMs+SdAGAakbuaobIMoB89AEjI mBVyzGanWzQEJM0862P732dgArxi3m2VgNAYKYW70+iMsIkFV5VLEkYFRScOzJ8bL0ad iCcfWGkdF2OoPODU70vC76Qz+N3eN79BcaTnYeRO1Hw2ox5xCh40tcdbylyzVUwrIrPB MPTV9e/1FJM6zbFPMeKGk2TQ/MqFwE8YRTligHdOdyC5PYku96d2OMcVpkDKPsHUE/rP fdzA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=OAZAolKAGyX+tb3pGU7ZqNFaQJAmOSHIsCTsfQMA8xQ=; b=OaCl/tOweKNbkMrU80DoIxeV6IpMDCqok8al5L4iSFbXmHK+rtboiFbj05cZVg8LKE TebJKLFCVb/aYvH07zqIztGEPbHUXPO0KnJBQUiWMRMc6Z8dVdtgZ5A2URFn6FT1Lrur B4DM1FUEsOxxwKuMC16XxRu6F7kyuqrDWGtd0YrMaFX3/Yup9hpGeY2DzzTEslVR5AwM HCk8BEGrh2j1gUae3a5dQazROUjr7vv1xHoBXi+A5kbBh6UrkWPLOkyA4RkpSpH/kExX ZX+nQJCN4mO6UlON5RAf8ROD+qqNUHiIRrug5REApbGdFChbk+2G62lW+leJDEGu/T8M KRvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=fykpIFA+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si7069230oic.245.2020.02.17.09.04.26; Mon, 17 Feb 2020 09:04:38 -0800 (PST) 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=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=fykpIFA+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729461AbgBQQzl (ORCPT + 99 others); Mon, 17 Feb 2020 11:55:41 -0500 Received: from mo4-p02-ob.smtp.rzone.de ([81.169.146.168]:30938 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726397AbgBQQzk (ORCPT ); Mon, 17 Feb 2020 11:55:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1581958537; s=strato-dkim-0002; d=goldelico.com; h=Message-Id:Date:Subject:Cc:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=OAZAolKAGyX+tb3pGU7ZqNFaQJAmOSHIsCTsfQMA8xQ=; b=fykpIFA+PcYdulqn4q7V17/B95Q24h4LB7ekl1WyI0IJkt9jeCFJ6rKMBo1dRlbP5E YIoQKFD+MjRCWftSsNDccfBOUWUnA99MSF9LyF0L3dp7TcZI63v1PoVTnr7s/Grv6/lL hvc07tYz9ezWOFwFakjNL0X4wjG8e3IPf7xxiRc4JNb8qa3drEkj6L7bVzv6hMpDTDjQ aIQwPirmpcI1CsQuW55XH+yqNWI41E6lFq7ViEy4ZH/ZXsg3ukLsTWVvIgldjJhUU84s UFPt1IUKXEcAJU5coLihFjUASl6GSWZYuy+0vsPyO+ClkRVPhB4SzAXWs/YbtsybMq7B 2yYw== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o1mfYzBGHXL8GTnsvhg=" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id U06217w1HGtUOqm (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 17 Feb 2020 17:55:30 +0100 (CET) From: "H. Nikolaus Schaller" To: PrasannaKumar Muralidharan , Paul Cercueil , Mathieu Malaterre , Srinivas Kandagatla , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , "H. Nikolaus Schaller" , Krzysztof Kozlowski , Kees Cook , Andi Kleen , Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com Subject: [RFC v4 0/6] MIPS: CI20: Add efuse driver for Ingenic JZ4780 and attach to DM9000 for stable MAC addresses Date: Mon, 17 Feb 2020 17:55:24 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * removed read_only for nvmem config because there is no write method * Kconfig: replaced depends MACH_JZ4780 with MACH_INGENIC * run through checkpatch and fixed issues * made use of devm_nvram_register() and get rid of jz4780_efuse_remove() (suggested by Srinivas Kandagatla ) * squashed previous patch 1/9 and 2/9 into single (regmap based) driver RFC V3 2020-02-16 20:20:59: This series is based on and a follow up for https://lore.kernel.org/patchwork/cover/868157/ ("[v2,0/2] Add efuse driver for Ingenic JZ4780 SoC") Original authors were PrasannaKumar Muralidharan Mathieu Malaterre and there are additions / code improvements by H. Nikolaus Schaller Paul Cercueil This setup works, if the dm9000 driver is compiled as a module. Therefore it is all RFC level. It is also not completely checkpatched. H. Nikolaus Schaller (1): MIPS: DTS: CI20: make DM9000 Ethernet controller use NVMEM to find the default MAC address PrasannaKumar Muralidharan (5): nvmem: add driver for JZ4780 efuse Bindings: nvmem: add bindings for JZ4780 efuse Documentation: ABI: nvmem: add documentation for JZ4780 efuse ABI nvmem: MAINTAINERS: add maintainer for JZ4780 efuse driver MIPS: DTS: JZ4780: define node for JZ4780 efuse .../ABI/testing/sysfs-driver-jz4780-efuse | 16 ++ .../bindings/nvmem/ingenic,jz4780-efuse.txt | 17 ++ MAINTAINERS | 5 + arch/mips/boot/dts/ingenic/ci20.dts | 3 + arch/mips/boot/dts/ingenic/jz4780.dtsi | 17 +- drivers/nvmem/Kconfig | 10 + drivers/nvmem/Makefile | 2 + drivers/nvmem/jz4780-efuse.c | 229 ++++++++++++++++++ 8 files changed, 298 insertions(+), 1 deletion(-) create mode 100644 Documentation/ABI/testing/sysfs-driver-jz4780-efuse create mode 100644 Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.txt create mode 100644 drivers/nvmem/jz4780-efuse.c -- 2.23.0