Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754770AbaANAnE (ORCPT ); Mon, 13 Jan 2014 19:43:04 -0500 Received: from exprod5og113.obsmtp.com ([64.18.0.26]:37851 "HELO exprod5og113.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752957AbaANAmr (ORCPT ); Mon, 13 Jan 2014 19:42:47 -0500 MIME-Version: 1.0 In-Reply-To: <201401132043.52491.arnd@arndb.de> References: <1389135041-16062-1-git-send-email-fkan@apm.com> <201401131619.35030.arnd@arndb.de> <201401132043.52491.arnd@arndb.de> Date: Mon, 13 Jan 2014 16:42:46 -0800 Message-ID: Subject: Re: [PATCH V2 1/6] Documentation: add dts binding for X-Gene reboot dts node. From: Feng Kan To: Arnd Bergmann Cc: "linux-arm-kernel@lists.infradead.org" , Mark Rutland , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Is this related to the standard ARM SCU that manages multiprocessor > systems, or a different unit that uses the same name? FKAN: You mean the snoop control unit in ARM. This is different from that, the main function of this unit is clk control. > > Since this is a global register range with a variety of things in it, > the best candidate IMHO would be to use the "syscon" driver. You can > mark the device node as 'compatible="apm,xgene-scu","syscon"' to let > it get picked up by the drivers/mfd/syscon driver, which creates > a "regmap" structure for it. > > The reset driver then uses a DT reference with a phandle to the > SCU node and calls syscon_regmap_lookup_by_phandle() to get the > regmap. It can get the register number inside the regmap from DT > as well and use the regmap API to perform the reset. Thanks, will do. > > Arnd > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/