From patchwork Mon Dec 16 17:47:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 928 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BEA553F03F for ; Mon, 16 Dec 2019 18:47:57 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id v14sf7314564pfm.21 for ; Mon, 16 Dec 2019 09:47:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576518476; cv=pass; d=google.com; s=arc-20160816; b=bY6JZte7HGXhjf4J6xoH4Y3XBqWLZlez7FXAU0gPrv9OJFIpvGeNAkROuahaXWk1cz oVZtyJoOq7QTw4Sw90VfyExHmqwUtcQRzk+jC6MdU8N83L2BmMQOxB/TXDqZ5RFOVX4l W+fkDBX3mq1OfyK3GBRwvFRPg4Y5hOtml3RzxPgueEtw/zTs918zQTETz7KKcs32+56G dYQACbMeO9P7p1VlqS/HzM3yuq00koYp0gms4y1zZ2itza9ujPTbgOyTAeoglf3SJbVl 9ofOSqZTEESXzUp0OAul+DfxQB9BrtCdbhMnq6mDC2VhKHDQM8zZNxh5Cpo1WNBDUYN+ L7Dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=NBccDKE5S9svlMbkECRPF8LNscHm0eQtObFPI4vsXQg=; b=FnB/cKnwxeudexPe6j4wuVmrRTWKPFFmyU33ESLABGWgRyehHsQpyX7llqI4+1FCtG 1019OLwkfxyRARCpyBj9vkPVvfzASibD184nBWpiyEw1w11VDdQXGuKthF2w87nRRmhz yMcLVRV5zEZRi32blpJZ4KgYesWDWHIrDXxvEgNzyvEi7NMrcwYuOVFnU4Y4IPMUvl36 Fl17eBQS5Dn/RkhG4/XRatETbEzwIxuuBQBemDE1+Pwm7dfvCZl0F69lcwpM49u5x/pl M3WS62SW9IbKJzaD/pvctALeU2BoRfGU3zMUEeFv6ekkwErmzycmbhODjfQJyOEhiUCQ 2AGg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CZpv7hKh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=NBccDKE5S9svlMbkECRPF8LNscHm0eQtObFPI4vsXQg=; b=HA1RjeLYgkobSKEidWA2tCcW14XUYBiyjtkDxXPI2oKovDrzeqkrQrPRHBRqLf/jMj X9hgH+kzQxuKArC9yrwPXPSQ4wwBEPJax3EPL7X2knQeApLbKkf29+GjjCBFGa0UcEsG AcGIFy4Rr7SqIPyDL1777SvJyYW8h2+qREdBY= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=NBccDKE5S9svlMbkECRPF8LNscHm0eQtObFPI4vsXQg=; b=m2LOcFbSgZRlDmuv0lG7v6cvjUXHroWGRgM8ecZRhY5zkYZC49vEpOFlp0eB4ywnAs yIOwxIVcJltNiFtLbGdlERo972KKxpl/tIcwxQTeljHaOebKWWAhsi8YtIMk76ej1B/s kUec3TI03g9G+/3KDhHsgYVIB1b9yO81kxSt6DAyAIs+dNFOrR/l2rNBfylWcsI921jN QlFgpvzNZkyHrinhEwvGpvqEz3hzKjxqiXvIDnXfMhfTv+RjU6YfrUXBMRGQUZ76KD01 3+dRiYE4ib5NVxgNe9Mb09t5wxyvTK4WVe3TtD/EdW5LGJWPUJeRnd1UuuDicFzv4hRa fIfg== X-Gm-Message-State: APjAAAX7N7FmNViuGUHj7jIHpxrrTuIak0BjXfix3JQQASIPK3NpB0Ey JZvcLg57QpYh91HAf1I0ULmLcZ7b X-Google-Smtp-Source: APXvYqyHBBXsalnyILFY0mcXl3V5Pb91GYwuulZY45cjYoCch1PWGIuNiq+/HNpyYMiQjKu24sV4tw== X-Received: by 2002:a65:5608:: with SMTP id l8mr20074186pgs.210.1576518476192; Mon, 16 Dec 2019 09:47:56 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:ad06:: with SMTP id r6ls44371pjq.3.canary-gmail; Mon, 16 Dec 2019 09:47:55 -0800 (PST) X-Received: by 2002:a17:902:7607:: with SMTP id k7mr17453914pll.277.1576518475618; Mon, 16 Dec 2019 09:47:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576518475; cv=none; d=google.com; s=arc-20160816; b=DlcGWjxAXgSb6QCMnSZXzdrM7ucG9oBrHqPuTB9HKP+1fj/fyFoS0BzYtvTjNBPRD9 jj5kEXMe5+PqufCCR0l3ExfoLTuafe/jNF3Oq6/LQf65ZmOgxcdzCi7tWqlcm9MJgsQ/ f/6g5YMYrwSqxiVkAbxa2BbEH+mo9ybs1w6B8fs6fyQlZjrRF0EXK+3XiyLr2FU0cmSp pwUghjU5ZFAHjBs08qwyN/qvgs9eGCdCgI5NB2+9DjxkPxrhHlL7UGJE0LaLl1ZzmUgr t9B6vb2w+t9yUV5BN3WfIrPkQKlwLH/4BfGi5Bd3ZF0KBwJY8b7cLdOxxAygOcxwGZ6O OEdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=GsBjNENOsoqT3Ti/q8MjgvfcH88K3hdnCqSY0W84Ii0=; b=ifojpebBwwHiK7oLfbM2vevtGSdhrEg37PHanDeXK2xggI+OKGXpldlS3e4vDFA0oW b5+p/rX8IAAop0OSKLUUvAOKXqk1Z2bxV585CbLeQZBzK+ydaINd7pZY1x6GQZ621eva q+8tduEuDCAsTtIQYVQWUOLNnrtUYjvPn4VM7mc/ynaxxSAdhcXXYw5jNGRlNnhxlihn MIOmuK2r9bpsdjyeich/+oLSi9/GFly/48rDVZDcfsOjG4Om5Uxxc8/1/b9KQKqKKhWj 9w6k6GOSJ73DjMQiKIAjxH1BibCVVWB5sOiGb9Pa+DC68ctnTDU8YtKsQuiNowbPhLsQ YYTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CZpv7hKh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id g1sor22524931plm.54.2019.12.16.09.47.55 for (Google Transport Security); Mon, 16 Dec 2019 09:47:55 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:b78b:: with SMTP id e11mr17804193pls.129.1576518475223; Mon, 16 Dec 2019 09:47:55 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:6d28:a89:f9e1:1506]) by smtp.gmail.com with ESMTPSA id a6sm22342924pgg.25.2019.12.16.09.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2019 09:47:54 -0800 (PST) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Mark Rutland Cc: Manivannan Sadhasivam , Akash Gajjar , Tom Cubie , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 3/4] ARM: dts: rockchip: Add Radxa Dalang Carrier board Date: Mon, 16 Dec 2019 23:17:10 +0530 Message-Id: <20191216174711.17856-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191216174711.17856-1-jagan@amarulasolutions.com> References: <20191216174711.17856-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CZpv7hKh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Carrier board often referred as baseboard. For making complete SBC or any other industrial boards, these carrier boards will used with associated SOMs. Radxa has Dalang carrier board which supports on board peripherals, ports like USB-2.0, USB-3.0, HDMI, MIPI DSI/CSI, eDP, Ethernet, WiFi, PCIe, USB-C, 40-Pin GPIO header and etc. Right now Dalang carrier board is using with two variants SBC, like Rock Pi N10 => VMARC RK3399Por SOM + Dalang carrier board Rock Pi N8 => VMARC RK3288 SOM + Dalang carrier board(+codec) So add this carrier board dtsi as a separate file in ARM directory, so-that the same can reuse it in both rk3288, rk3399pro variants of Rockchip SOMs. Signed-off-by: Jagan Teki --- Changes for v3: - none .../dts/rockchip-radxa-dalang-carrier.dtsi | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi diff --git a/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi new file mode 100644 index 000000000000..df3712aedf8a --- /dev/null +++ b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi @@ -0,0 +1,81 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd + * Copyright (c) 2019 Radxa Limited + * Copyright (c) 2019 Amarula Solutions(India) + */ + +#include + +/ { + chosen { + stdout-path = "serial2:1500000n8"; + }; +}; + +&gmac { + status = "okay"; +}; + +&i2c1 { + status = "okay"; + i2c-scl-rising-time-ns = <140>; + i2c-scl-falling-time-ns = <30>; +}; + +&i2c2 { + status = "okay"; + clock-frequency = <400000>; + + hym8563: hym8563@51 { + compatible = "haoyu,hym8563"; + reg = <0x51>; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "hym8563"; + pinctrl-names = "default"; + pinctrl-0 = <&hym8563_int>; + interrupt-parent = <&gpio4>; + interrupts = <30 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +&pwm0 { + status = "okay"; +}; + +&pwm2 { + status = "okay"; +}; + +&sdmmc { + bus-width = <4>; + cap-mmc-highspeed; + cap-sd-highspeed; + cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; + disable-wp; + vqmmc-supply = <&vccio_sd>; + max-frequency = <150000000>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_xfer &uart0_cts>; + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&pinctrl { + hym8563 { + hym8563_int: hym8563-int { + rockchip,pins = + <4 RK_PD6 0 &pcfg_pull_up>; + }; + }; +};