Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2144055ybc; Wed, 20 Nov 2019 09:31:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxsbJGPPpLE0bocELSsf17xO4jnKQxc+K0vRLlRYzq6gEAloyy3P32a2mfFLByiQeYk/O0A X-Received: by 2002:a17:906:a411:: with SMTP id l17mr6814323ejz.274.1574271080338; Wed, 20 Nov 2019 09:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574271080; cv=none; d=google.com; s=arc-20160816; b=dGI/P/ig7QoantZlbhBb+sH9VEYfC67k1Sd9vJrOaqh1J9I2iMuEUbu2Sya/ojPvdR 27Vvmy0tOoEliyW+zzsylV+YVSS5dWDUU5HDJubwmSwoDkuYsU9+sj9aWJYvGjEyxVO+ MHHocZTkwdNh5fb5ydN9PTqoJk275pepDpHVmBDE2JKwOqNz78OVeW/8Sld8HhuZW8Be 5cU4osbj+dMrIpvvM1GFxBGgU5+Viix/np1/LahjMT6Bb0/oq5xJvrIK/Fu1OjTPC50m K60Y1ax3xIqBXGt/8doLI+9zo4+4YMGlPYw6G3Vw7HvEHs7oZx9ru1PzX1PEqv6+Rh94 GUuA== 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; bh=uXp2wf5YjXHPK/nbf8rPzfiiuPPid9smTCjAQOMcblo=; b=MdwVIga572PtPADIqyyRlP6BWCjujN9XE3NMmGFXzIri4dELqIafzH+9Qfp6QWcdmG 4gO27jApagVuqhMDB8UTlogABkGb8wZvvspNOzWx93wN5ZVtvCRLIyMRtEaJKlpHj9ri d+8ikAhiUBt2Gb+zkjjRILP+mhrFzIgPGPyFAJziiydOD4mFs8bM1AeTXpC3zM0LdMxC aimMokVokmIdh33rpOvtw8M+oqyGALA38HepVlRRE3+M3vA9Xs+/GS2FZiNohPULBQ7v 9qF43cyAK6RtL0ktydZYs0xcbcOd5gMrNHytOTZhVfC5JaE1OmoSqhoLt2wSKsZiqkAW kMlg== 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 k3si16526015eji.300.2019.11.20.09.30.55; Wed, 20 Nov 2019 09:31:20 -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 S1732424AbfKTPpk convert rfc822-to-8bit (ORCPT + 99 others); Wed, 20 Nov 2019 10:45:40 -0500 Received: from sci-ig2.spreadtrum.com ([222.66.158.135]:21658 "EHLO SHSQR01.spreadtrum.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1732397AbfKTPpg (ORCPT ); Wed, 20 Nov 2019 10:45:36 -0500 Received: from ig2.spreadtrum.com (bjmbx02.spreadtrum.com [10.0.64.8]) by SHSQR01.spreadtrum.com with ESMTPS id xAKFhcS0093125 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO); Wed, 20 Nov 2019 23:43:38 +0800 (CST) (envelope-from Orson.Zhai@unisoc.com) Received: from localhost (10.0.74.112) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.847.32; Wed, 20 Nov 2019 23:43:45 +0800 From: Orson Zhai To: Lee Jones , Rob Herring , Mark Rutland , Arnd Bergmann CC: , , , , , Orson Zhai Subject: [PATCH V2 0/2] Add syscon name support Date: Wed, 20 Nov 2019 23:41:46 +0800 Message-ID: <20191120154148.22067-1-orson.zhai@unisoc.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Originating-IP: [10.0.74.112] X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX02.spreadtrum.com (10.0.64.8) Content-Transfer-Encoding: 8BIT X-MAIL: SHSQR01.spreadtrum.com xAKFhcS0093125 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 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 from being compiled in all-in-one image. So I add syscons, syscon-names and an optional #vendor-cells property as syscon consumer node's bindings. And implement coresponding helper functions. They have no side effect to current syscon consumer. Thanks, Orson Changes in V2: As per suggestion from Arnd: * Remove #syscon-cells from syscon node. * Add "#vendor-cells" into consumer node not affecting referred syscon itself. * Change helper funcions parameter accordingly. ----- Orson Zhai (2): dt-bindings: syscon: Add syscon-names to refer to syscon easily mfd: syscon: Find syscon by names with arguments support .../devicetree/bindings/mfd/syscon.txt | 43 +++++++++++ drivers/mfd/syscon.c | 75 +++++++++++++++++++ include/linux/mfd/syscon.h | 26 +++++++ 3 files changed, 144 insertions(+) -- 2.18.0 ________________________________ This email (including its attachments) is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Unauthorized use, dissemination, distribution or copying of this email or the information herein or taking any action in reliance on the contents of this email or the information herein, by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is strictly prohibited. If you are not the intended recipient, please do not read, copy, use or disclose any part of this e-mail to others. Please notify the sender immediately and permanently delete this e-mail and any attachments if you received it in error. Internet communications cannot be guaranteed to be timely, secure, error-free or virus-free. The sender does not accept liability for any errors or omissions. 本邮件及其附件具有保密性质,受法律保护不得泄露,仅发送给本邮件所指特定收件人。严禁非经授权使用、宣传、发布或复制本邮件或其内容。若非该特定收件人,请勿阅读、复制、 使用或披露本邮件的任何内容。若误收本邮件,请从系统中永久性删除本邮件及所有附件,并以回复邮件的方式即刻告知发件人。无法保证互联网通信及时、安全、无误或防毒。发件人对任何错漏均不承担责任。