Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4281265pxb; Mon, 1 Feb 2021 18:14:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLf29DrcDF1mV5DFWRD7BPBLBavcLqk1K5AI2lDE1VkTRH4+ydINTnQ1gXkis8y4x2voTU X-Received: by 2002:a50:d484:: with SMTP id s4mr21648150edi.13.1612232048626; Mon, 01 Feb 2021 18:14:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612232048; cv=none; d=google.com; s=arc-20160816; b=bbFrQJdT5DYZ+M04SwVwV91Lr/6YoxAiW3x7Ze/+0rrrIBAs37M2bOd+WYf//AH4hP lJNm7U3aEqOsT+NbymX7G4HYQ/hHoqr8UNNr6h77hhso/7Hpet7F5zkyUQgqQO2AAHd4 70AV60WbsIDuHj/yne/9IgcYIuVwPAz7wGwpiD1rOkzWvdZQQvPKIuQPAhCT7GsHCsou YphIl//p4X9mXkFAYxST97oTqgUAWgU6U59x0QdiV2iP6BctMo1Bq+DePTNnbyF3m1Gj SWLtI1ahuLOKmYngK42kRty/IUbgWvezRFGP7emgtByiFhc1CGcTfU+NAcvtwLwXwNEm hTuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=8+AW/kKV57MV1Hg+Mxh63gGp9E1qwTrjnLtYXQZusbg=; b=n7eWEV6mykcEEdNBna/ukaQpPCb4D0p2sG/AZMxbU7cSNDFLg4g3PeHO9I3wYE3yCr YQUJh1q/mQFbgw6T5Lsm+U2FK1onFi7n+VfH6NtMXunDxg7sFI4Y1SkdXCl7c8Htp/Kf +ju8XltepjrVPY4YFA9HRwz4iIeHOyxxRp8QrT3PlJrg6iprz9hspYHDn+kvEMVWChkR cveHV6iAG8rbeww7ZZDGj5K07CNEC2KRgOiNmoVseMDkDJv4GzBFIRsbqXXCspqp5vpg jO072jAnAdDH9qD0Fbcf+RnCiVJ4gFUCUFDGETKxrijkPH477VhUigyM4ce54wJU0sjO G94Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K8uQPmVf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv5si11732937ejb.231.2021.02.01.18.13.44; Mon, 01 Feb 2021 18:14:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K8uQPmVf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231349AbhBBCLz (ORCPT + 99 others); Mon, 1 Feb 2021 21:11:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230041AbhBBCLr (ORCPT ); Mon, 1 Feb 2021 21:11:47 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C0DEC061786; Mon, 1 Feb 2021 18:10:38 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id a16so969348wmm.0; Mon, 01 Feb 2021 18:10:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8+AW/kKV57MV1Hg+Mxh63gGp9E1qwTrjnLtYXQZusbg=; b=K8uQPmVf2dKpGZn14A3EVL3XMLf1aj8Nwxk+ljS57IHLItUvEfJNs+xTX7TR/qoOIS S+gHslUvIGJSFhk1dfW0Py5d6x4RGIzth+lp7aZA2HI2lmWGWzCFHyT0Ei3o3LOaFKiG EJSEr7Me1z4mrdOH2Vj3LxVv3N4SxM9/E17pavl9/bSzoWUMVmK+fACIE3ZHoLxTn/+i QRp3w+tKmj5V55t1kupX9RTDYO7od3SL3xlwUhfRr3GlyEwtXOIIpD8y+8CIDq744VO5 DSquDpp0B98JheCYXe+1jQwTTHFSfRVf85g/42gX18whCpYj4pPGXohRFBPeUg7LfBjk WsKA== 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:in-reply-to :references; bh=8+AW/kKV57MV1Hg+Mxh63gGp9E1qwTrjnLtYXQZusbg=; b=gLUt+F9DyPDqzVwwFoA3jfMXDaZDfAnM4mrfL7fJc8hJ35tlrUEGeNg6UWRKIjkoll 75shsGysmnYDviyM/SZo1RUujcW2gyeqDDhs+BG3OWIVzqSym0yAXdV6He9wv0cXy/kL g5JnzN/QZKIPXNUN4rchmga4yDJPXRPZuPRYdY5YjpOrWknky13kjsKYc/D8X913Cq+s 6trM1SX7FWYA/kNDg/cp2OI6iY+Cd+99UeSd2UnraJR+zKLvUa7vUXDLCQeoreXXFL3S lxcem14YVVbkqItiLpuQzygQ7/Es7bWAQmMTT019+ouMWqnc2QjzvYzBAhoeGoMdIw1g xprQ== X-Gm-Message-State: AOAM531m/pD6Pir2ZWroB94x65k11IrCdFc2cjhrPErSnKXgQLr3FvXh vnT90j6LjrAWrQvod/9L9G4= X-Received: by 2002:a05:600c:4f0d:: with SMTP id l13mr1418478wmq.92.1612231837094; Mon, 01 Feb 2021 18:10:37 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id u14sm990570wmq.45.2021.02.01.18.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 18:10:36 -0800 (PST) From: Christian Hewitt To: Rob Herring , Mark Rutland , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Christian Hewitt , Dongjin Kim Subject: [PATCH v3 5/5] arm64: dts: meson: add initial device-tree for ODROID-HC4 Date: Tue, 2 Feb 2021 02:10:21 +0000 Message-Id: <20210202021021.11068-6-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210202021021.11068-1-christianshewitt@gmail.com> References: <20210202021021.11068-1-christianshewitt@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ODROID-HC4 is a derivative of the C4 with minor differences: - 16MB XT25F128B SPI-NOR flash - 2x SATA ports via ASM1061 PCIe to SATA controller - 7-pin header with SPI and I2C for 1-inch OLED display and RTC - 1x USB 2.0 host port Signed-off-by: Christian Hewitt Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../boot/dts/amlogic/meson-sm1-odroid-hc4.dts | 96 +++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index f3c8a85fe987..78a569d7fa20 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -47,5 +47,6 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-vega-s96.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxm-wetek-core2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-khadas-vim3l.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-c4.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-sm1-odroid-hc4.dtb dtb-$(CONFIG_ARCH_MESON) += meson-sm1-sei610.dtb dtb-$(CONFIG_ARCH_MESON) += meson-a1-ad401.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts new file mode 100644 index 000000000000..bf15700c4b15 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts @@ -0,0 +1,96 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2020 Dongjin Kim + */ + +/dts-v1/; + +#include "meson-sm1-odroid.dtsi" + +/ { + compatible = "hardkernel,odroid-hc4", "amlogic,sm1"; + model = "Hardkernel ODROID-HC4"; + + aliases { + rtc0 = &rtc; + rtc1 = &vrtc; + }; + + fan0: pwm-fan { + compatible = "pwm-fan"; + #cooling-cells = <2>; + cooling-min-state = <0>; + cooling-max-state = <3>; + cooling-levels = <0 120 170 220>; + pwms = <&pwm_cd 1 40000 0>; + }; + + leds { + compatible = "gpio-leds"; + + led-blue { + color = ; + function = LED_FUNCTION_STATUS; + gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + panic-indicator; + }; + + led-red { + color = ; + function = LED_FUNCTION_POWER; + gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; + + sound { + model = "ODROID-HC4"; + }; +}; + +&cpu_thermal { + cooling-maps { + map { + trip = <&cpu_passive>; + cooling-device = <&fan0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; +}; + +&ir { + linux,rc-map-name = "rc-odroid"; +}; + +&i2c2 { + status = "okay"; + pinctrl-0 = <&i2c2_sda_x_pins>, <&i2c2_sck_x_pins>; + pinctrl-names = "default"; + + rtc: rtc@51 { + status = "okay"; + compatible = "nxp,pcf8563"; + reg = <0x51>; + wakeup-source; + }; +}; + +&pcie { + status = "okay"; + reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; +}; + +&pwm_cd { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pwm_d_x6_pins>; +}; + +&sd_emmc_c { + status = "disabled"; +}; + +&usb { + phys = <&usb2_phy0>, <&usb2_phy1>; + phy-names = "usb2-phy0", "usb2-phy1"; +}; -- 2.17.1