From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9D40C07E9A for ; Wed, 14 Jul 2021 14:31:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 89D4D6120A for ; Wed, 14 Jul 2021 14:31:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 89D4D6120A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=iGwcd4RzNKSjwHv0ju1qH88Xbp8jUGR+UaUKlydvd7Y=; b=tb4prHwDFhFiC4 8eqpu/b7CHJ4YNjilXOG6YOljRpVeNmadJomc3G3gWv5VSzBTVTAFjO8b812YLMAARiGrF3LETyRH rTMgF5p0pKioYd0xkhvNfzurgNmnK1O/6Ul+SAQXV+zMAEXmvirxVHysmv6XtG6V8kFAQunOX92zO nQOp+5WHVwN98H+AwjFT7pNCd8ChFipr64Ma1ZKY6kFdvDjfqZqFzVgLSChN+AbfbNTwaDghTMMZW sAg1gS1ZbJMZ2y8fbTKB3yjXDQ80RGom+WxktL3ZhoB9ZE+1etHRfMdFJ2MkEVr3dwXAOBeLj4aID SnHAZuUYeSrTPD4rFi2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3ftK-00DqE1-Se; Wed, 14 Jul 2021 14:29:39 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3ftG-00DqCM-V4 for linux-arm-kernel@lists.infradead.org; Wed, 14 Jul 2021 14:29:36 +0000 Received: by mail-lf1-x136.google.com with SMTP id u13so3906216lfs.11 for ; Wed, 14 Jul 2021 07:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uqWvdOM/4vOdm6NkANpVLLLTXOIwr7iq3VQmdDsAxFU=; b=K0UjLboDKjffxI7yFPKLR/B9skjobRN817+z9EAYDiWLpf0T8dvquDECT3xyNNa5VJ ElUhRzCF0Tu80xZRfAE3kg62PtJ0Ov98RN+NwEUx7nquK4DRLiLRJEXP5CoI/lWTmQ3c XQ9bwrNkb4Ps6WC7LbvqpTzig6r0QNc1xSzuJGPkCr7EcN8Qx4i2sSwu245cMH5NP8IH 2nk82fVHX6e9rpf3CIwVKIzF4G51SsxTXkpp4E/un65PIHwt8wv4Y9AgIkYToNbchOsY 9xFAktOnIdX/Sw9c9G85hqSHxQW7iTKync3FfzHWxmJ4VCeJsmhyVyB3fZ2kon246F8Z 63lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uqWvdOM/4vOdm6NkANpVLLLTXOIwr7iq3VQmdDsAxFU=; b=tY0SldOgwzQnF5FwS7Gxt5VMwt8+vO8CF3l65n/FxHp9n4tA/xHRII+jMOkCZSgDR6 HBI1gjS/8uRk+BjBwSCvVrY4GW2hQIXAt/JsNxJ7KGDif3rT1B/9XEQ1hYM5X+1NcgmA XB3DTZda2H0nT56pzZnbkC6hH21uxoQKkkUKp9w3MiSYZP0elUgsA5cXBMmfvYRpuRLf bkvkcGuNKRNlUSe/PEWYKENnYv2SpSuSCf9CsP360hla7KynIRsqfKYrovwwTIDe4k18 etceOOWlaxGvtplCUFsq05JH5FCCkdBiqj1HSLUed7U9VQ86RxddvXs/g0M/rqrV8tZa hFcA== X-Gm-Message-State: AOAM533WylGINnLq1Hot+bFF84MDAGeQOMjicPYrdezUsdC4YhhjaiGV tP13dQnLJqWxAX7BnoYxcmmNrBxkxS3XEw== X-Google-Smtp-Source: ABdhPJyFOAnM7xukfTgz2P4WUP0Frc8HfkJPhthJJcUUt147lpkPOkVpCbplRzudL8iQKqYgLzD8MA== X-Received: by 2002:a05:6512:2205:: with SMTP id h5mr8457600lfu.257.1626272971911; Wed, 14 Jul 2021 07:29:31 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id h13sm255082ljc.37.2021.07.14.07.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 07:29:31 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa Cc: Linus Walleij , Michael-Luke Jones , Rod Whitby , Alessandro Zummo , Michael Westerhof , Deepak Saxena Subject: [PATCH] ARM: dts: ixp4xx: Add devicetree for D-Link DSM-G600 rev A Date: Wed, 14 Jul 2021 16:27:29 +0200 Message-Id: <20210714142729.977198-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210714_072935_077878_A9D004D5 X-CRM114-Status: GOOD ( 21.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds a devicetree for the D-Link DSM-G600 Wireless Network Storage Enclosure so that we can delete the boardfile. The boardfile does not even define an ethernet interface as it has an external ethernet on PCI. This devicetree is for revision A using IXP420 the rev B version uses PowerPC. Cc: Michael-Luke Jones Cc: Rod Whitby Cc: Alessandro Zummo Cc: Michael Westerhof Cc: Deepak Saxena Signed-off-by: Linus Walleij --- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/intel-ixp42x-dlink-dsm-g600.dts | 145 ++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 arch/arm/boot/dts/intel-ixp42x-dlink-dsm-g600.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index a2f3d14887b8..a8bd0ac4f8ae 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -243,6 +243,7 @@ dtb-$(CONFIG_ARCH_IXP4XX) += \ intel-ixp42x-linksys-nslu2.dtb \ intel-ixp42x-welltech-epbx100.dtb \ intel-ixp42x-iomega-nas100d.dtb \ + intel-ixp42x-dlink-dsm-g600.dtb \ intel-ixp43x-gateworks-gw2358.dtb dtb-$(CONFIG_ARCH_KEYSTONE) += \ keystone-k2hk-evm.dtb \ diff --git a/arch/arm/boot/dts/intel-ixp42x-dlink-dsm-g600.dts b/arch/arm/boot/dts/intel-ixp42x-dlink-dsm-g600.dts new file mode 100644 index 000000000000..fcc5ffd49227 --- /dev/null +++ b/arch/arm/boot/dts/intel-ixp42x-dlink-dsm-g600.dts @@ -0,0 +1,145 @@ +// SPDX-License-Identifier: ISC +/* + * Device Tree file for D-Link DSM-G600 revision A based on IXP420 + * NOTE: revision B of this device uses PowerPC and is NOT supported by + * this device tree. + * + * Inspired by the boardfile by Rod Whitby, Tower Technologies, Alessandro Zummo + * and Michael Westerhof. + */ + +/dts-v1/; + +#include "intel-ixp42x.dtsi" +#include + +/ { + model = "D-Link DSM-G600 rev A"; + compatible = "dlink,dsm-g600-a", "intel,ixp42x"; + #address-cells = <1>; + #size-cells = <1>; + + memory@0 { + /* 64 MB SDRAM */ + device_type = "memory"; + reg = <0x00000000 0x4000000>; + }; + + chosen { + bootargs = "console=ttyS0,115200n8 root=/dev/sda1 rw rootwait"; + stdout-path = "uart0:115200n8"; + }; + + aliases { + serial0 = &uart0; + }; + + leds { + compatible = "gpio-leds"; + led-power { + label = "dsmg600:green:power"; + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; + led-wlan { + label = "dsmg600:green:wlan"; + /* CHECKME: flagged as active low in the old board file */ + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + default-state = "on"; + /* We don't have WLAN trigger in the kernel (yet) */ + linux,default-trigger = "netdev"; + }; + }; + + gpio_keys { + compatible = "gpio-keys"; + + button-reset { + wakeup-source; + linux,code = ; + label = "reset"; + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + }; + }; + + gpio_keys_polled { + compatible = "gpio-keys-polled"; + + /* + * According to the board file this key cannot handle interrupts and + * need to be polled. Investigate if this is really the case or if + * this can be moved adjacent to the ordinary gpio-keys above. + */ + button-power { + wakeup-source; + linux,code = ; + label = "power"; + gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; + }; + }; + + i2c { + compatible = "i2c-gpio"; + sda-gpios = <&gpio0 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + scl-gpios = <&gpio0 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + #address-cells = <1>; + #size-cells = <0>; + + rtc@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + }; + }; + + gpio-poweroff { + compatible = "gpio-poweroff"; + gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; + timeout-ms = <5000>; + }; + + soc { + bus@50000000 { + /* The first 16MB region at CS0 on the expansion bus */ + flash@0 { + compatible = "intel,ixp4xx-flash", "cfi-flash"; + bank-width = <2>; + /* + * 16 MB of Flash in 128 0x20000 sized blocks + * mapped in at CS0. + */ + reg = <0x00000000 0x1000000>; + + partitions { + compatible = "redboot-fis"; + /* + * A boot log says the directory is at 0xfe0000 + * 0x7f * 0x20000 = 0xfe0000 + */ + fis-index-block = <0x7f>; + }; + }; + }; + + pci@c0000000 { + status = "ok"; + + /* + * Taken from DSM-G600 PCI boardfile (dsmg600-pci.c) + * We have slots (IDSEL) 1, 2, 3, 4 and pins 1, 2 and 3. + * Only slot 3 have three IRQs. + */ + interrupt-map = + /* IDSEL 1 */ + <0x0800 0 0 1 &gpio0 7 3>, /* INT E on slot 1 is irq 7 */ + /* IDSEL 2 */ + <0x1000 0 0 1 &gpio0 11 3>, /* INT A on slot 2 is irq 11 */ + /* IDSEL 3 */ + <0x1800 0 0 1 &gpio0 10 3>, /* INT B on slot 3 is irq 10 */ + <0x1800 0 0 2 &gpio0 9 3>, /* INT C on slot 3 is irq 9 */ + <0x1800 0 0 3 &gpio0 8 3>, /* INT D on slot 3 is irq 8 */ + /* IDSEL 4 */ + <0x2000 0 0 3 &gpio0 6 3>; /* INT F on slot 4 is irq 6 */ + }; + }; +}; -- 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel