Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3122894ybc; Thu, 14 Nov 2019 04:24:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwMa+nr+ukwYlKIPtMfYHzTn4aS+2w7yy5MI1aCorxIIQVKwE74a7zZrHturmkhnwpm0Uy3 X-Received: by 2002:a17:906:f756:: with SMTP id jp22mr7930305ejb.234.1573734282213; Thu, 14 Nov 2019 04:24:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573734282; cv=none; d=google.com; s=arc-20160816; b=lmbfV4E3FLxoyx5SwmpbSWs1knPM4zo2AV4lmyOWG9o8gUYiD9kSoMm3niApTr4qYz Cg5I0SUUo82jYVNebdJ8qH4VVWwpGfh9/d9FMexil9jNKOjlcjzMAuToXC4w9hiqre/w +3Vn63zD+JZgnoJmT1zeBk5AvCFTa3OQ6A2EtCfvLeAZrZuA4bSVsVMv4Z2W4wghIUVN UNUMCLmHg6Wg2V81imSwURxewaQeGCbaB+GdsSFreJrefrWnwVzUGkfkumTaVbrPaCvq 6TGD5fJUxObQfFdp/sBI9MRZ8B8k/NJBs83Zk6uVuGHXyMoyUNCih56BjARIJgQeILCu 6uzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=tcdnqnYLUVw8rFDnHhSoHZsEJLaVJgxzKcCKQwzbosY=; b=KeUJ9uSlV/l9e/9F/K3BlYqaYcPAdSblo/C4r1A2v4kv+7LBflWcfACjbZyOdz+FxA Z68qObAIJExtkmFs4SwhaOMXcV4qwZGzX0/zOgxR8ys9Wn0tJt0iKJCJzATNl3A4rOQ2 LSZVxHsMXLTwwKBPkwtM8VY1yOn1HoIIBtyntnALI16IwAKyqiPNyj8J/tTTO6wSU84A 7INRhVO2rCWk1FAXOQWk/leF/MN43STZv2yIAfdz34hTbZbroq9qmgFz6FGfAAYwy5/J OWm/x1VMAbY1E+5SI16NkjA4+MwITwkymZt4LIkcW3EED0znBmP6qOROP/GAVTv9i9Kt JbBA== ARC-Authentication-Results: i=1; mx.google.com; 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 e11si3387019eje.376.2019.11.14.04.24.17; Thu, 14 Nov 2019 04:24:42 -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; 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 S1726767AbfKNMX2 (ORCPT + 99 others); Thu, 14 Nov 2019 07:23:28 -0500 Received: from sci-ig2.spreadtrum.com ([222.66.158.135]:21092 "EHLO SHSQR01.unisoc.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726057AbfKNMX1 (ORCPT ); Thu, 14 Nov 2019 07:23:27 -0500 Received: from SHSQR01.spreadtrum.com (localhost [127.0.0.2] (may be forged)) by SHSQR01.unisoc.com with ESMTP id xAEBnZKr019497; Thu, 14 Nov 2019 19:49:35 +0800 (CST) (envelope-from Orson.Zhai@unisoc.com) Received: from ig2.spreadtrum.com (bjmbx01.spreadtrum.com [10.0.64.7]) by SHSQR01.spreadtrum.com with ESMTPS id xAEBlhnU017628 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO); Thu, 14 Nov 2019 19:47:43 +0800 (CST) (envelope-from Orson.Zhai@unisoc.com) Received: from localhost (10.0.74.112) by BJMBX01.spreadtrum.com (10.0.64.7) with Microsoft SMTP Server (TLS) id 15.0.847.32; Thu, 14 Nov 2019 19:47:47 +0800 From: Orson Zhai To: Lee Jones , Rob Herring , Mark Rutland , Arnd Bergmann CC: , , , Orson Zhai Subject: [PATCH 0/2] Add syscon name and #cells support Date: Thu, 14 Nov 2019 19:45:23 +0800 Message-ID: <20191114114525.12675-1-orson.zhai@unisoc.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.74.112] X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX01.spreadtrum.com (10.0.64.7) X-MAIL: SHSQR01.spreadtrum.com xAEBlhnU017628 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Our SoCs have a lot of glabal registers which is hard to be managed in current syscon structure. Same register's offset is different in different SoCs. We used chip config macro to manage them which prevents driver to be compiled in all-in-one image. After talking with Arnd and Rob at Linaro Connect 2017, I got the idea to extend syscon with #cells support. And furthe, I added syscon names support to help access multiple syscon nodes more easier. These patches has been tested in our internal tree about 2 years. They have no side effect to current syscon consumer. Thanks, Orson -------------------- Orson Zhai (2): dt-bindings: Add syscon-names support mfd: syscon: Add syscon-names and phandle args support .../devicetree/bindings/mfd/syscon.txt | 36 ++++++++++ drivers/mfd/syscon.c | 65 +++++++++++++++++++ include/linux/mfd/syscon.h | 22 +++++++ 3 files changed, 123 insertions(+) -- 2.18.0