From patchwork Wed Apr 18 02:38:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 133593 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp5391980ljb; Tue, 17 Apr 2018 19:42:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx49mM7gV7g76ecG3yQduFbN011tg9MqC+g3YFC8z59VEXtfJocox+nn+xJt87QcW7tjLvstj X-Received: by 10.80.152.116 with SMTP id h49mr797791edb.150.1524019340016; Tue, 17 Apr 2018 19:42:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524019340; cv=none; d=google.com; s=arc-20160816; b=L5/ZyeTdaNfKWcehmY9a0JUnVEvNvKWp5UriGKs+ZkBJtiwJFlFiZc3XFiVZBIqG5F k9AHc8cVvuH80/cFDs28b+235p26y7waYO07u42O0bKD8owx5hZlaZBQe8HP96KTq5FL O0PG0GzqLzty8S+jBRmBIho5WmEAPL0hB8CK94ivbFZUcvGpMxAL10pvlMlFtgj3Z8t2 gXOYG+X/PHS1nUq/vuNbrUGe5dB01qYfWQTaj3c85qtkiNWzT0wVP0C3nfLPm9arTBQa /aF78dwmt6ffnX/jpBCFFx8CBZG1RnJtWvhOOfTLrTBO5I3OQ/C3pFfN4fbcQeMx4VrO I4GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :dkim-filter:arc-authentication-results; bh=ldMBzX++/sSRR0Pq8IRzLRcYI+0E8Rc1scaIiksTbeY=; b=hRa4oN7u6pvGGTgxK5UXGP0Fv5IO41dv0yLwJabzKPhdeSrYB5C8Gx75vtKgrRVVM0 y/PWShEtU3cJp/iC87+3pIBeRm0TBAYF3Gu7FEFoUmixTGzhQmIXA6IecYoXLNxEDkT/ 766ZREnRH+4zgGjCoIzPcny/0W4LzLTeKAVKtS6n/eFpYPwwaC8fHFJAKVJunhbo8N+v HUVpiEaMdyDPbHGfv1FD/PSMpmmeLDdpcPvT9CYP4i3rZJc9afqxyvcwi54st5rn+bfW nm621m0bUWgy+1OxCpfc1uXN1bOzRtk+wgUSOtDO95rnheTUiBwspwYRFdjFNEgK9WaY L7MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=tarHvVR8; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id g16si571254edg.21.2018.04.17.19.42.19; Tue, 17 Apr 2018 19:42:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=tarHvVR8; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 9BCDCC21E8A; Wed, 18 Apr 2018 02:40:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 66FCEC21E49; Wed, 18 Apr 2018 02:40:11 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6BE05C21C29; Wed, 18 Apr 2018 02:39:39 +0000 (UTC) Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by lists.denx.de (Postfix) with ESMTPS id 4EDD9C21E56 for ; Wed, 18 Apr 2018 02:39:35 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id w3I2culC028728; Wed, 18 Apr 2018 11:38:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w3I2culC028728 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1524019137; bh=dpBbUcFneFuHVi9E75MCPRlvk3mNCCtEWzUeUvpK2wc=; h=From:To:Cc:Subject:Date:From; b=tarHvVR8ZQlp/TDFexdVcwm2b14lC74Ur8KQSefEwzmSoNcfXfgT/CZr2aU1SSNfQ m+j7rok3Nicyn7kjdY31FDqCoUm0nCSmYWgBl5ldQ008cx9Das3Sfqvbo2wNmQ2NYr z9rm8XdDmVvXQjITfqLbe2h816Cd2vuzF4NRf4FjQTyEF5KrWND9chToxh/ySD/dlI FwoZUEG8TEsDCZ/CVGeGaoxJ5f528I7qvq//dI2O8nURwhKIbRBK0Snt5DPCz2rQV3 Ee+Oq9k59GH/4fjVd89tMvD8JUNsNz0aa72+xBcop99MKuCfRw75y+5y+ahyRhsaXS RzJ3H1VPBSFEg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 18 Apr 2018 11:38:41 +0900 Message-Id: <1524019125-26287-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH 0/4] Add Linux-compatible syscon_to_regmap API X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The current syscon in U-Boot works differently from Linux. Therefore, DT files imported from Linux do not work for U-Boot. The current usage of syscon in U-Boot should be discouraged because using different DT-binding across projects is a significant problem. Masahiro Yamada (4): regmap: clean up regmap allocation dm: ofnode: add ofnode_device_is_compatible() helper regmap: change regmap_init_mem() to take ofnode instead udevice syscon: add Linux-compatible syscon API arch/arm/mach-aspeed/ast2500/sdram_ast2500.c | 2 +- drivers/core/device.c | 8 +--- drivers/core/ofnode.c | 11 +++++ drivers/core/regmap.c | 42 ++++++------------ drivers/core/syscon-uclass.c | 65 +++++++++++++++++++++++++++- drivers/phy/meson-gxl-usb2.c | 2 +- drivers/phy/meson-gxl-usb3.c | 2 +- drivers/ram/rockchip/dmc-rk3368.c | 2 +- drivers/ram/rockchip/sdram_rk3188.c | 2 +- drivers/ram/rockchip/sdram_rk322x.c | 2 +- drivers/ram/rockchip/sdram_rk3288.c | 2 +- drivers/ram/rockchip/sdram_rk3399.c | 2 +- drivers/ram/stm32mp1/stm32mp1_ram.c | 2 +- drivers/reset/reset-meson.c | 2 +- include/dm/ofnode.h | 11 +++++ include/regmap.h | 11 ++--- include/syscon.h | 8 ++++ 17 files changed, 123 insertions(+), 53 deletions(-)