Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5965731imm; Tue, 26 Jun 2018 23:11:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKzL06/zj7bNVCspZlTbb+0Ii8xlP0r2AaZDtCbHTsPZlORmOeHKjfTUUp2qtHw0eWS9Wny X-Received: by 2002:a17:902:b28:: with SMTP id 37-v6mr4612667plq.201.1530079907437; Tue, 26 Jun 2018 23:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530079907; cv=none; d=google.com; s=arc-20160816; b=du8gk56lp4i30g4LsRUcVScyTFt7x+eA1vqu80VPIQSWqqB7O0EPHu9/lmRmA3nqam pa9MM2RUP54mJYTFkEIVBAwh5incOatFk2kSAJ/fGdtFNLmhBWt4BTPDJxAysyVQFoA5 sEt2LoIevixQWtfBO/mP+m0Ep1/Ks8BaBDRfgbY12Je1RqMBJe22Mk8b+U19Tayb/86g QvckMpKTD2xf00IwL01kw+7YUgW/yoiWdZczO4aidTgAGPOrz1/21ifWgxadXlCTedMs RSMhVi0yBj+Pri/WfiNpvLLHtp4UhMNSaHLk6tznlrX3v/pqx8sLdiqGyNUw+W1PLOl6 p+MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=8BaDSo3gGayR+KLe88sqpstO1Pr7DGCUJuy5a5//IeY=; b=z8Djj73tOlM10O8dcba0dfXEDbEMZbjE4CLYa+uHqHg8Ra1eGgi9mn22xymZlG1k+K Y8f7QK6L6Kmba8OkKze1vY9y0Z/WnxhCgxy35uAeiUEQ1wNLGsaIFB/gPOqRqhcV/JE+ 0UYGGlbmkKlAXKvH4lbQcXrJc1s1/+Yo4yMW53Igb/3tMZCF2QusIhR4L+o12THF3/Id gZPN6q2IOijm7x1VMGZOxox8qmaBO+YqghX1J23rbjf/ot1Tucggq3j2tDe+dTKGgele 6/gy9LhGrNv0RWoYLJcmjrugAdFG11/g6aOJQu58Ttu0rDy9KRj52q5GL3VHnJDbdK0G PMdw== 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 d32-v6si3193578pla.329.2018.06.26.23.11.33; Tue, 26 Jun 2018 23:11:47 -0700 (PDT) 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 S1752873AbeF0GKX (ORCPT + 99 others); Wed, 27 Jun 2018 02:10:23 -0400 Received: from mail.bootlin.com ([62.4.15.54]:57345 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752347AbeF0GKV (ORCPT ); Wed, 27 Jun 2018 02:10:21 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 064AD2073C; Wed, 27 Jun 2018 08:10:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (87-231-134-186.rev.numericable.fr [87.231.134.186]) by mail.bootlin.com (Postfix) with ESMTPSA id B29CC20733; Wed, 27 Jun 2018 08:10:08 +0200 (CEST) From: Gregory CLEMENT To: Dennis Gilmore Cc: linux-kernel@vger.kernel.org, jason@lakedaemon.net, andrew@lunn.ch, sebastian.hesselbarth@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, aditya@kobol.io, gauthier@kobol.io Subject: Re: [PATCH V4] ARM: dts: armada388-helios4 References: <20180605221545.32257-1-dennis@ausil.us> Date: Wed, 27 Jun 2018 08:10:09 +0200 In-Reply-To: <20180605221545.32257-1-dennis@ausil.us> (Dennis Gilmore's message of "Tue, 5 Jun 2018 17:15:45 -0500") Message-ID: <8736x8ahfi.fsf@bootlin.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dennis, On mar., juin 05 2018, Dennis Gilmore wrote: > The helios4 is a Armada388 based nas board designed by SolidRun and > based on their SOM. It is sold by kobol.io the dts file came from > https://raw.githubusercontent.com/armbian/build/master/patch/kernel/mvebu-default/95-helios4-device-tree.patch > I added a SPDX license line to match the clearfog it says it was based > on and a compatible line for "kobol,helios4" > > Signed-off-by: Dennis Gilmore Applied on mvebu/dt Thanks, Gregory > > --- > > changes since first submission > change solidrun to kobol in compatible line based on feedback > > changes since v2 > > remove commented out nodes based on feedback > > changes since v3 > > update copyright info for the dts based on a request from kobol > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/armada-388-helios4.dts | 313 +++++++++++++++++++++++ > 2 files changed, 314 insertions(+) > create mode 100644 arch/arm/boot/dts/armada-388-helios4.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 7e2424957809..490bfd586198 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1123,6 +1123,7 @@ dtb-$(CONFIG_MACH_ARMADA_38X) += \ > armada-388-clearfog-pro.dtb \ > armada-388-db.dtb \ > armada-388-gp.dtb \ > + armada-388-helios4.dtb \ > armada-388-rd.dtb > dtb-$(CONFIG_MACH_ARMADA_39X) += \ > armada-398-db.dtb > diff --git a/arch/arm/boot/dts/armada-388-helios4.dts b/arch/arm/boot/dts/armada-388-helios4.dts > new file mode 100644 > index 000000000000..705adfa8c680 > --- /dev/null > +++ b/arch/arm/boot/dts/armada-388-helios4.dts > @@ -0,0 +1,313 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +/* > + * Device Tree file for Helios4 > + * based on SolidRun Clearfog revision A1 rev 2.0 (88F6828) > + * > + * Copyright (C) 2017 Aditya Prayoga > + * > + */ > + > +/dts-v1/; > +#include "armada-388.dtsi" > +#include "armada-38x-solidrun-microsom.dtsi" > + > +/ { > + model = "Helios4"; > + compatible = "kobol,helios4", "marvell,armada388", > + "marvell,armada385", "marvell,armada380"; > + > + memory { > + device_type = "memory"; > + reg = <0x00000000 0x80000000>; /* 2 GB */ > + }; > + > + aliases { > + /* So that mvebu u-boot can update the MAC addresses */ > + ethernet1 = ð0; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + reg_12v: regulator-12v { > + compatible = "regulator-fixed"; > + regulator-name = "power_brick_12V"; > + regulator-min-microvolt = <12000000>; > + regulator-max-microvolt = <12000000>; > + regulator-always-on; > + }; > + > + reg_3p3v: regulator-3p3v { > + compatible = "regulator-fixed"; > + regulator-name = "3P3V"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-always-on; > + vin-supply = <®_12v>; > + }; > + > + reg_5p0v_hdd: regulator-5v-hdd { > + compatible = "regulator-fixed"; > + regulator-name = "5V_HDD"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-always-on; > + vin-supply = <®_12v>; > + }; > + > + reg_5p0v_usb: regulator-5v-usb { > + compatible = "regulator-fixed"; > + regulator-name = "USB-PWR"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-boot-on; > + regulator-always-on; > + enable-active-high; > + gpio = <&expander0 6 GPIO_ACTIVE_HIGH>; > + vin-supply = <®_12v>; > + }; > + > + system-leds { > + compatible = "gpio-leds"; > + status-led { > + label = "helios4:green:status"; > + gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; > + linux,default-trigger = "heartbeat"; > + default-state = "on"; > + }; > + > + fault-led { > + label = "helios4:red:fault"; > + gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; > + default-state = "keep"; > + }; > + }; > + > + io-leds { > + compatible = "gpio-leds"; > + sata1-led { > + label = "helios4:green:ata1"; > + gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; > + linux,default-trigger = "ata1"; > + default-state = "off"; > + }; > + sata2-led { > + label = "helios4:green:ata2"; > + gpios = <&gpio1 18 GPIO_ACTIVE_LOW>; > + linux,default-trigger = "ata2"; > + default-state = "off"; > + }; > + sata3-led { > + label = "helios4:green:ata3"; > + gpios = <&gpio1 20 GPIO_ACTIVE_LOW>; > + linux,default-trigger = "ata3"; > + default-state = "off"; > + }; > + sata4-led { > + label = "helios4:green:ata4"; > + gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; > + linux,default-trigger = "ata4"; > + default-state = "off"; > + }; > + usb-led { > + label = "helios4:green:usb"; > + gpios = <&gpio1 22 GPIO_ACTIVE_LOW>; > + linux,default-trigger = "usb-host"; > + default-state = "off"; > + }; > + }; > + > + fan1: j10-pwm { > + compatible = "pwm-fan"; > + pwms = <&gpio1 9 40000>; /* Target freq:25 kHz */ > + }; > + > + fan2: j17-pwm { > + compatible = "pwm-fan"; > + pwms = <&gpio1 23 40000>; /* Target freq:25 kHz */ > + }; > + > + usb2_phy: usb2-phy { > + compatible = "usb-nop-xceiv"; > + vbus-regulator = <®_5p0v_usb>; > + }; > + > + usb3_phy: usb3-phy { > + compatible = "usb-nop-xceiv"; > + }; > + > + soc { > + internal-regs { > + i2c@11000 { > + clock-frequency = <400000>; > + pinctrl-0 = <&i2c0_pins>; > + pinctrl-names = "default"; > + status = "okay"; > + > + /* > + * PCA9655 GPIO expander, up to 1MHz clock. > + * 0-Board Revision bit 0 # > + * 1-Board Revision bit 1 # > + * 5-USB3 overcurrent > + * 6-USB3 power > + */ > + expander0: gpio-expander@20 { > + /* > + * This is how it should be: > + * compatible = "onnn,pca9655", > + * "nxp,pca9555"; > + * but you can't do this because of > + * the way I2C works. > + */ > + compatible = "nxp,pca9555"; > + gpio-controller; > + #gpio-cells = <2>; > + reg = <0x20>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pca0_pins>; > + interrupt-parent = <&gpio0>; > + interrupts = <23 IRQ_TYPE_EDGE_FALLING>; > + interrupt-controller; > + #interrupt-cells = <2>; > + > + board_rev_bit_0 { > + gpio-hog; > + gpios = <0 GPIO_ACTIVE_LOW>; > + input; > + line-name = "board-rev-0"; > + }; > + board_rev_bit_1 { > + gpio-hog; > + gpios = <1 GPIO_ACTIVE_LOW>; > + input; > + line-name = "board-rev-1"; > + }; > + usb3_ilimit { > + gpio-hog; > + gpios = <5 GPIO_ACTIVE_HIGH>; > + input; > + line-name = "usb-overcurrent-status"; > + }; > + }; > + > + temp_sensor: temp@4c { > + compatible = "ti,lm75"; > + reg = <0x4c>; > + vcc-supply = <®_3p3v>; > + }; > + }; > + > + i2c@11100 { > + /* > + * External I2C Bus for user peripheral > + */ > + clock-frequency = <400000>; > + pinctrl-0 = <&helios_i2c1_pins>; > + pinctrl-names = "default"; > + status = "okay"; > + }; > + > + sata@a8000 { > + status = "okay"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + sata0: sata-port@0 { > + reg = <0>; > + }; > + > + sata1: sata-port@1 { > + reg = <1>; > + }; > + }; > + > + sata@e0000 { > + status = "okay"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + sata2: sata-port@0 { > + reg = <0>; > + }; > + > + sata3: sata-port@1 { > + reg = <1>; > + }; > + }; > + > + spi@10680 { > + pinctrl-0 = <&spi1_pins > + µsom_spi1_cs_pins>; > + pinctrl-names = "default"; > + status = "okay"; > + }; > + > + sdhci@d8000 { > + bus-width = <4>; > + cd-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; > + no-1-8-v; > + pinctrl-0 = <&helios_sdhci_pins > + &helios_sdhci_cd_pins>; > + pinctrl-names = "default"; > + status = "okay"; > + vmmc = <®_3p3v>; > + wp-inverted; > + }; > + > + usb@58000 { > + usb-phy = <&usb2_phy>; > + status = "okay"; > + }; > + > + usb3@f0000 { > + status = "okay"; > + }; > + > + usb3@f8000 { > + status = "okay"; > + }; > + > + pinctrl@18000 { > + pca0_pins: pca0-pins { > + marvell,pins = "mpp23"; > + marvell,function = "gpio"; > + }; > + microsom_phy0_int_pins: microsom-phy0-int-pins { > + marvell,pins = "mpp18"; > + marvell,function = "gpio"; > + }; > + helios_i2c1_pins: i2c1-pins { > + marvell,pins = "mpp26", "mpp27"; > + marvell,function = "i2c1"; > + }; > + helios_sdhci_cd_pins: helios-sdhci-cd-pins { > + marvell,pins = "mpp20"; > + marvell,function = "gpio"; > + }; > + helios_sdhci_pins: helios-sdhci-pins { > + marvell,pins = "mpp21", "mpp28", > + "mpp37", "mpp38", > + "mpp39", "mpp40"; > + marvell,function = "sd0"; > + }; > + helios_led_pins: helios-led-pins { > + marvell,pins = "mpp24", "mpp25", > + "mpp49", "mpp50", > + "mpp52", "mpp53", > + "mpp54"; > + marvell,function = "gpio"; > + }; > + helios_fan_pins: helios-fan-pins { > + marvell,pins = "mpp41", "mpp43", > + "mpp48", "mpp55"; > + marvell,function = "gpio"; > + }; > + microsom_spi1_cs_pins: spi1-cs-pins { > + marvell,pins = "mpp59"; > + marvell,function = "spi1"; > + }; > + }; > + }; > + }; > +}; > -- > 2.17.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Gregory Clement, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com