Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4958986imu; Tue, 15 Jan 2019 08:47:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN4UaFTcwLZ4Ui0hd9zKgEefA82glfnCwutJk03rP1XBiHr+IaVhR0LKqFdKwAOk+0iQpfzv X-Received: by 2002:a63:3d1:: with SMTP id 200mr4657517pgd.68.1547570872284; Tue, 15 Jan 2019 08:47:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547570872; cv=none; d=google.com; s=arc-20160816; b=tY7A1gaKuHjBYSbJrSr/X4uN0BTMDa9qXZ1dSkPSJ6cUeVUQ4biON6J1b8lubfUHIw mQALbBn1kdNEWNm4Roh9OydVUdvbz7zxSR/S+ucZJ28PH8aEhY5OT/B9k9R72T8ZRhst TRQZO4yDjBYkK9u2L37G/0hNpR1ZH2BSbvBMPWcpCgs4AGxIZC7BUUKFhglJQyOvmprD Ydn50dzcYEIU3gHSUs7R7DsNBqAll1mtSl2L+Xf+g94sQNGGvIY9wcUsLOCzFr8EmKG7 gJGaRFLhQUfsPIwf8qjHSvvG04JOxTouaJlxdxHudCCNbvYqMuspGIKoT7E2afFfkMYg o+DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=8KpOem7mGaXxjHOr7x1YEjUF1cKV2NO2mM7IG70FGko=; b=D6dhcVWyYWtvRNV7HaVHm0e0oIhJPUrbTTXP0qX3CT09Udq4Tdbz3XKdtpf7flYU6N 2+PBZdj1pfXBVGm+auphERyCSwbx8cECYMf89O1dM6CV1pxoO/nYnMavBWWHMm4e1+9R inGC/Dkbs5DCbNtcvqte/3q6rO/5OozAhz26zBeOnVfBt7JtNL5HzxFOqP1Y0xSpWImI G3TYZmYH//B99xLFFq64PTzs69l8ztYAMKiNWt7SD77tWJm6tonPKUjs+R2v7jdQxEq7 eLIlLEI+gMv7Zkrho+Eysd6mius79w6DDdc8WUVBrQST6tsAoVrfaTyiuz1Ssk9RlyTe UnHQ== 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 c17si3919979pfb.81.2019.01.15.08.47.37; Tue, 15 Jan 2019 08:47:52 -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 S1731226AbfAOPxW (ORCPT + 99 others); Tue, 15 Jan 2019 10:53:22 -0500 Received: from mail-sh.amlogic.com ([58.32.228.43]:38074 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731204AbfAOPxT (ORCPT ); Tue, 15 Jan 2019 10:53:19 -0500 Received: from localhost.localdomain (10.18.11.217) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.1591.10; Tue, 15 Jan 2019 23:38:54 +0800 From: Jianxin Pan To: Boris Brezillon , CC: Liang Yang , Yixun Lan , Jianxin Pan , David Woodhouse , Miquel Raynal , Brian Norris , Marek Vasut , Richard Weinberger , Jerome Brunet , Neil Armstrong , Martin Blumenstingl , Carlo Caione , Kevin Hilman , Rob Herring , Jian Hu , Hanjie Lin , Victor Wan , , , , Subject: [PATCH v9 1/2] dt-bindings: nand: meson: add Amlogic NAND controller driver Date: Tue, 15 Jan 2019 23:38:03 +0800 Message-ID: <1547566684-57472-2-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1547566684-57472-1-git-send-email-jianxin.pan@amlogic.com> References: <1547566684-57472-1-git-send-email-jianxin.pan@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.18.11.217] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Liang Yang Add Amlogic NAND controller dt-bindings for Meson SoC, Current this driver support GXBB/GXL/AXG platform. Signed-off-by: Liang Yang Signed-off-by: Yixun Lan Signed-off-by: Jianxin Pan Reviewed-by: Rob Herring --- .../devicetree/bindings/mtd/amlogic,meson-nand.txt | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt diff --git a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt new file mode 100644 index 0000000..3983c11 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt @@ -0,0 +1,60 @@ +Amlogic NAND Flash Controller (NFC) for GXBB/GXL/AXG family SoCs + +This file documents the properties in addition to those available in +the MTD NAND bindings. + +Required properties: +- compatible : contains one of: + - "amlogic,meson-gxl-nfc" + - "amlogic,meson-axg-nfc" +- clocks : + A list of phandle + clock-specifier pairs for the clocks listed + in clock-names. + +- clock-names: Should contain the following: + "core" - NFC module gate clock + "device" - device clock from eMMC sub clock controller + "rx" - rx clock phase + "tx" - tx clock phase + +- amlogic,mmc-syscon : Required for NAND clocks, it's shared with SD/eMMC + controller port C + +Optional children nodes: +Children nodes represent the available nand chips. + +Other properties: +see Documentation/devicetree/bindings/mtd/nand.txt for generic bindings. + +Example demonstrate on AXG SoC: + + sd_emmc_c_clkc: mmc@7000 { + compatible = "amlogic,meson-axg-mmc-clkc", "syscon"; + reg = <0x0 0x7000 0x0 0x800>; + }; + + nand-controller@7800 { + compatible = "amlogic,meson-axg-nfc"; + reg = <0x0 0x7800 0x0 0x100>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + + clocks = <&clkc CLKID_SD_EMMC_C>, + <&sd_emmc_c_clkc CLKID_MMC_DIV>, + <&sd_emmc_c_clkc CLKID_MMC_PHASE_RX>, + <&sd_emmc_c_clkc CLKID_MMC_PHASE_TX>; + clock-names = "core", "device", "rx", "tx"; + amlogic,mmc-syscon = <&sd_emmc_c_clkc>; + + pinctrl-names = "default"; + pinctrl-0 = <&nand_pins>; + + nand@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + + nand-on-flash-bbt; + }; + }; -- 1.9.1