Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4951030ybv; Mon, 17 Feb 2020 09:05:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzaSJzrdwBGQ13Is6syohRM8lWLgq5AV76M0Rep1PQ6ESmUvzh7+ejHgeiMVY1gArt6nJo6 X-Received: by 2002:a9d:24c8:: with SMTP id z66mr13138534ota.52.1581959118850; Mon, 17 Feb 2020 09:05:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581959118; cv=none; d=google.com; s=arc-20160816; b=IoLodCVIEf/SU3jJeraC7h/tae9SHjgiKC2/XYUoiIl4R7EtsVZdASBY7yZOzuySMc DrTyMtB8lds9NcHCQZpYN+jxOzfPmrUnDQPkUAc83537eg/t4RbfU+u+XZkS6r4Rx69y tpuLY6VXDf0CzM8bqyXZkOi1ALCUyv/3GKBoj/HbYJIMB639BStLek3b4ZCmA2vMnasy HtxbcQPcU8no2OgKcJPSJLbyk1snLpwJDtt5+yIKtG17fYSJw16kBYAxFczhMgzb1TgF tRQePwCpYGkWTI5qnelv6kGAkznkZospidw3+K/QU7N3ZFqB/7X/a3msIJol4/F1frGo CvKQ== 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=ZgORgM8vXfVpxJK0cdlBAAYDc4AOvqyLMpTFmKSS8Do=; b=BXIMuKZKccZGBncU8N3ColnktXFCZ1XnU+w5DA7z3z8nNOFQTq0NGxVTegi9PSZ43f Ginuf/H1u88STWiaGNSlNaWbBvolv2B3bK9kfr/grulbbD7CuqnDJA7+xDsLYrmtFXNf Xtq+yT7dkoCKSjOcjzA+co1b5n/oH7lEcHjn50wnWXmoYGSuW3qBlYk9OiNHIhknfyk+ szYA4VgKukH+E1k7wZL5b04RebPDWRsVj+N2uZofK16q7jjuXcbXZo+Rgai6cExMogQt xNExNYblTI8h/jqEQKkVuQxe0EKstS00AA9GaURhtsD+Hbyew3AEpktxdunaM6OavftK jEnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=OGejrzJJ; 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 l6si444483oti.249.2020.02.17.09.05.05; Mon, 17 Feb 2020 09:05:18 -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=OGejrzJJ; 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 S1729644AbgBQQzs (ORCPT + 99 others); Mon, 17 Feb 2020 11:55:48 -0500 Received: from mo4-p03-ob.smtp.rzone.de ([85.215.255.101]:25736 "EHLO mo4-p03-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729582AbgBQQzq (ORCPT ); Mon, 17 Feb 2020 11:55:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1581958543; s=strato-dkim-0002; d=goldelico.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=ZgORgM8vXfVpxJK0cdlBAAYDc4AOvqyLMpTFmKSS8Do=; b=OGejrzJJPlFmtWsEktDSNyR/N+y2qari9QnVyGkNdWoX0UhBC88VMBUgDZojInEqqv x4XPqd+b8paexj8yK9r2AQUX7yFbv7SkScgIcMIm98v+wULwLprgR9d9dfQZR/meemtf AfUouZ7XdV1XAmqISQsGfcpmXF2fcZ74awzFFjHp5eoEwczkGKvwwU0uTEzH6XNqxG0V cq3C8Zxz56IS398nhZr51w021ffAnKs+ZRyiZTMWEioMhK6lqcxxTIInmSbuxmUB+UkG ybiYmJReLT8cX5GaU+EPEcKSGHvCMbuQfqENZez/HV67A87sk78BBpbq1Cgeywdh69Er pj3w== 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 U06217w1HGtYOqu (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 17 Feb 2020 17:55:34 +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 5/6] MIPS: DTS: JZ4780: define node for JZ4780 efuse Date: Mon, 17 Feb 2020 17:55:29 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 In-Reply-To: References: 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 From: PrasannaKumar Muralidharan This patch brings support for the JZ4780 efuse. Currently it only exposes a read only access to the entire 8K bits efuse memory and the ethernet mac address for the davicom dm9000 chip on the CI20 board. It also changes the nemc reg range to avoid overlap. Tested-by: Mathieu Malaterre Signed-off-by: PrasannaKumar Muralidharan Signed-off-by: Mathieu Malaterre Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/jz4780.dtsi | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/dts/ingenic/jz4780.dtsi index f928329b034b..c9461310aa8b 100644 --- a/arch/mips/boot/dts/ingenic/jz4780.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi @@ -358,7 +358,7 @@ nemc: nemc@13410000 { compatible = "ingenic,jz4780-nemc"; - reg = <0x13410000 0x10000>; + reg = <0x13410000 0x4c>; #address-cells = <2>; #size-cells = <1>; ranges = <1 0 0x1b000000 0x1000000 @@ -373,6 +373,21 @@ status = "disabled"; }; + efuse: efuse@134100d0 { + compatible = "ingenic,jz4780-efuse"; + reg = <0x134100d0 0x2c>; + + clocks = <&cgu JZ4780_CLK_AHB2>; + clock-names = "bus_clk"; + + #address-cells = <1>; + #size-cells = <1>; + + eth0_addr: eth-mac-addr@0x22 { + reg = <0x22 0x6>; + }; + }; + dma: dma@13420000 { compatible = "ingenic,jz4780-dma"; reg = <0x13420000 0x400 -- 2.23.0