Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp334102imj; Thu, 7 Feb 2019 05:11:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IYzXc3gyrmRZIxKiG3pLvOHoa2I53yiVeagT3VSy2OHLXkJluSchXpwLeMdNwQ4Cc9pVsr0 X-Received: by 2002:a62:9f92:: with SMTP id v18mr16124408pfk.154.1549545071841; Thu, 07 Feb 2019 05:11:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549545071; cv=none; d=google.com; s=arc-20160816; b=LLnEAfMvRKmPVqRxEi2gZ2/6Pm+SWW5QSu83B5/d4tFjILMeysXKwGgGXEnz4ZU741 qkF4m7yMTH/o4NhNkzDsLRT2pDHL/t83kITIjesccbQ+U3Je2MZKpZ9jFvLQ+4VHkgf2 8k4IJn9bKaqhy9SXgxs0VLivjW7gbCUt4bl6dgl4iBdej3KjfXfZLEGRQTibeHUQx7XN n2K1+K3XfP+O+ULf3GOiBZxa27kODyjc2EE6Ygr5DBr+n5gEfmTXcPTWLhXeFO1QPtAp SgBlZbke5mEmiQtsa5PHEJUpzQPRuoT/UYcg89tZTP4jo75AkTLlV0I3wYsOy5nyYMxC A63g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:cc:to :subject:dkim-signature; bh=PCPgj02ZmQU9UuSynuMjSlcHkBId7QqRwKFh7cQxKVM=; b=qeHjIDm3r+RymhbJyGSF5XmFYOH72fHhdUvxsGvLdyRkuGG127cjt3IDVJ96NruaEp 08EtqHSqqo1RIGLrlagPIriyAQ4XxuuZUI9MiW8NYhSf07OqPXwjI7bvY/xWo65QpkMJ LzUl5voBRV2rYyY/GDWfxpH7ATPen7wL0ourXQPoTPxx85J5IxWAo9HsXR/MjuplFc7c dk9+25BGxhfpxlk8x4toUhaWvNS1lc2BbcWFGt69ZSqzSE6zQ65mYx7tCeahRSlR2GjX Io9Vbr8Wn+PASsdYgEc0ief3WX4VGcIheLJwYpglEfniqGZQA7TuoPVBhBBX+nalXcyc LtbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=TliMbP9X; 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 u131si8790834pgc.287.2019.02.07.05.10.54; Thu, 07 Feb 2019 05:11:11 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=TliMbP9X; 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 S1726786AbfBGNKY (ORCPT + 99 others); Thu, 7 Feb 2019 08:10:24 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33830 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726740AbfBGNKY (ORCPT ); Thu, 7 Feb 2019 08:10:24 -0500 Received: by mail-wr1-f68.google.com with SMTP id z15so9453458wrn.1 for ; Thu, 07 Feb 2019 05:10:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=PCPgj02ZmQU9UuSynuMjSlcHkBId7QqRwKFh7cQxKVM=; b=TliMbP9XmFHOntwZVRS/xWA99nwGIyqoZfL3NQAyBz/2CCYcJAdeEsvG/moquDvdsW 2YsGTiu21ElJFM4GkdAdvjjDDaTrNIHjMn0Qs4nCga5zbQhohYkHiqNupr1FVVhYGr4m aGW//gdnjo7k4eFtaSS9zKQgipPdCZCS53RAoEr8dlQHo6yh1FcKSffL5SKjsP7cmY+L peB6zodOlRnh8AKgrQ/A2ahNo4S1CwzNipXA3d42mg4Xu93QGgvLVTfbofu67BlI50Ii UXdVw28uYzJlfNZACp5w2/yRFq/hXu5uWgiDL9c0hr3QyTGx/946683U7QVrYKYhXBpG 6FWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=PCPgj02ZmQU9UuSynuMjSlcHkBId7QqRwKFh7cQxKVM=; b=F93Ih/i49V/6I2NG+2fMXkKw0PWRv4/reMoXSXxQTEH30q9FD9NFnuMb4VF5mZAHkE 9pYzrUpj7UtfZWM6iTdZZQUERvvIf31lgMvKEcpkxj550FoJaGfWTeQPixYHSH5QHRIp /+fXu8+UB5kbqa1dDCg0AGQSmf+I/ZbW/ITibDpEfDol5ir04DqBsbgmplsJZTFiqepg 9Xzuo6ClTB7HyAVa2n1baMbzVThoSnhs/KajSEPdsLHbWBcpiuElRIkGENXgUaB8LtYR DTemt0k5QtndIL3/rPFPjtBnQdaH+0zlDrSlYUDotG3KTAdAbrbKT3Po/RjSCLUkGmTo dCDg== X-Gm-Message-State: AHQUAuahH4Ne78HT7BPq6HtXsuznlrdjVebIOpkBiBdlpZo49OGOaGP7 cx8MI7hViwP8/FlDpmzfZmZPGF2Cq8gvsA== X-Received: by 2002:adf:c589:: with SMTP id m9mr12529108wrg.145.1549545021045; Thu, 07 Feb 2019 05:10:21 -0800 (PST) Received: from [10.1.2.12] (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id n11sm18505925wrw.60.2019.02.07.05.10.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Feb 2019 05:10:20 -0800 (PST) Subject: Re: [PATCH v3] dt-bindings: reset: meson: add g12a bindings To: Philipp Zabel , Jerome Brunet , Kevin Hilman Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20190201125003.25022-1-jbrunet@baylibre.com> <1549535746.4557.3.camel@pengutronix.de> From: Neil Armstrong Openpgp: preference=signencrypt Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= mQENBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAG0KE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT6JATsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2aAOZZLf6VKHKc7DoVwuUkjHfIRXdslbrxi4pk5VKU6ZP9AKsN NtMZntB8WrBTtkAZfZbTF7850uwd3eU5cN/7N1Q6g0JQihE7w4GlIkEpQ8vwSg5W7hkx3yQ6 2YzrUZh/b7Q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J+ZVW4trmui NIJCOku8SYansq34QzYM0x3UFRwff+45zNBEVzctSnremg1mVgrzOfXU8rt+4N1b2MxorPF8 619aCwVP7U16qNSBaqiAJr4e5SNEnoAq18+1Gp8QsFG0ARY8xp+qaKBByWES7lRi3QbqAKZf yOHS6gmYo9gBmuAhc65/VtHMJtxwjpUeN4Bcs9HUpDMDVHdfeRa73wM+wY5potfQ5zkSp0Jp bxnv/cRBH6+c43stTffprd//4Hgz+nJcCgZKtCYIAPkUxABC85ID2CidzbraErVACmRoizhT KR2OiqSLW2x4xdmSiFNcIWkWJB6Qdri0Fzs2dHe8etD1HYaht1ZhZ810s7QOL7JwypO8dscN KTEkyoTGn6cWj0CX+PeP4xp8AR8ot4d0BhtUY34UPzjE1/xyrQFAdnLd0PP4wXxdIUuRs0+n WLY9Aou/vC1LAdlaGsoTVzJ2gX4fkKQIWhX0WVk41BSFeDKQ3RQ2pnuzwedLO94Bf6X0G48O VsbXrP9BZ6snXyHfebPnno/te5XRqZTL9aJOytB/1iUna+1MAwBxGFPvqeEUUyT+gx1l3Acl ZaTUOEkgIor5losDrePdPgE= Organization: Baylibre Message-ID: <6bdabea0-9870-66d1-a737-9695067ba8e6@baylibre.com> Date: Thu, 7 Feb 2019 14:10:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1549535746.4557.3.camel@pengutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Philipp, On 07/02/2019 11:35, Philipp Zabel wrote: > Hi Jerome, > > is there any public documentation for the G12A reset controller? > > On Fri, 2019-02-01 at 13:50 +0100, Jerome Brunet wrote: >> Add device tree bindings for the reset controller of g12a SoC family. >> >> Acked-by: Neil Armstrong >> Signed-off-by: Jerome Brunet >> --- >> >> Changes since v2 [0]: >> * Dropped useless g12a compatible > > What if in the future somebody notices that a g12a specific workaround > needs to be added to the driver? I agree that we don't have to list all > compatibles in the driver, but unless you are certain that the reset > controller is identical to the one from another SoC, it would be better > to have a SoC specific compatible in the device tree, even if the driver > only matches to a more generic compatible. For example: > > compatible = "amlogic,meson-g12a-reset", "amlogic,meson8b-reset"; > > if the reset controller behaves identical to the one in meson8b. The controller is the exact same as Meson8, GXBB, and AXG. We had doubts since the previous datasheets were not clear, but for G12A we are sure it's 100% same to at least GXBB and AXG, thus using the same compatible as AXG since they share most of same architecture. Neil > >> [0]: https://lkml.kernel.org/r/20190128181316.30814-1-jbrunet@baylibre.com >> >> .../reset/amlogic,meson-g12a-reset.h | 134 ++++++++++++++++++ >> 1 file changed, 134 insertions(+) >> create mode 100644 include/dt-bindings/reset/amlogic,meson-g12a-reset.h >> >> diff --git a/include/dt-bindings/reset/amlogic,meson-g12a-reset.h b/include/dt-bindings/reset/amlogic,meson-g12a-reset.h >> new file mode 100644 >> index 000000000000..8063e8314eef >> --- /dev/null >> +++ b/include/dt-bindings/reset/amlogic,meson-g12a-reset.h >> @@ -0,0 +1,134 @@ >> +/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ >> +/* >> + * Copyright (c) 2019 BayLibre, SAS. >> + * Author: Jerome Brunet >> + * >> + */ >> + >> +#ifndef _DT_BINDINGS_AMLOGIC_MESON_G12A_RESET_H >> +#define _DT_BINDINGS_AMLOGIC_MESON_G12A_RESET_H >> + >> +/* RESET0 */ >> +#define RESET_HIU 0 >> +/* 1 */ >> +#define RESET_DOS 2 >> +/* 3-4 */ >> +#define RESET_VIU 5 >> +#define RESET_AFIFO 6 >> +#define RESET_VID_PLL_DIV 7 >> +/* 8-9 */ >> +#define RESET_VENC 10 >> +#define RESET_ASSIST 11 >> +#define RESET_PCIE_CTRL_A 12 >> +#define RESET_VCBUS 13 >> +#define RESET_PCIE_PHY 14 >> +#define RESET_PCIE_APB 15 >> +#define RESET_GIC 16 >> +#define RESET_CAPB3_DECODE 17 >> +/* 18 */ >> +#define RESET_HDMITX_CAPB3 19 >> +#define RESET_DVALIN_CAPB3 20 >> +#define RESET_DOS_CAPB3 21 >> +/* 22 */ >> +#define RESET_CBUS_CAPB3 23 >> +#define RESET_AHB_CNTL 24 >> +#define RESET_AHB_DATA 25 >> +#define RESET_VCBUS_CLK81 26 >> +/* 27-31 */ >> +/* RESET1 */ >> +/* 32 */ >> +#define RESET_DEMUX 33 >> +#define RESET_USB 34 >> +#define RESET_DDR 35 >> +/* 36 */ >> +#define RESET_BT656 37 >> +#define RESET_AHB_SRAM 38 >> +/* 39 */ >> +#define RESET_PARSER 40 >> +/* 41 */ >> +#define RESET_ISA 42 >> +#define RESET_ETHERNET 43 >> +#define RESET_SD_EMMC_A 44 >> +#define RESET_SD_EMMC_B 45 >> +#define RESET_SD_EMMC_C 46 >> +/* 47-60 */ >> +#define RESET_AUDIO_CODEC 61 >> +/* 62-63 */ >> +/* RESET2 */ >> +/* 64 */ >> +#define RESET_AUDIO 65 >> +#define RESET_HDMITX_PHY 66 >> +/* 67 */ >> +#define RESET_MIPI_DSI_HOST 68 >> +#define RESET_ALOCKER 69 >> +#define RESET_GE2D 70 >> +#define RESET_PARSER_REG 71 >> +#define RESET_PARSER_FETCH 72 >> +#define RESET_CTL 73 >> +#define RESET_PARSER_TOP 74 >> +/* 75-77 */ >> +#define RESET_DVALIN 78 >> +#define RESET_HDMITX 79 >> +/* 80-95 */ >> +/* RESET3 */ >> +/* 96-95 */ >> +#define RESET_DEMUX_TOP 105 >> +#define RESET_DEMUX_DES_PL 106 >> +#define RESET_DEMUX_S2P_0 107 >> +#define RESET_DEMUX_S2P_1 108 >> +#define RESET_DEMUX_0 109 >> +#define RESET_DEMUX_1 110 >> +#define RESET_DEMUX_2 111 >> +/* 112-127 */ >> +/* RESET4 */ >> +/* 128-129 */ >> +#define RESET_MIPI_DSI_PHY 130 >> +/* 131-132 */ >> +#define RESET_RDMA 133 >> +#define RESET_VENCI 134 >> +#define RESET_VENCP 135 >> +/* 136 */ >> +#define RESET_VDAC 137 >> +/* 138-139 */ >> +#define RESET_VDI6 140 >> +#define RESET_VENCL 141 >> +#define RESET_I2C_M1 142 >> +#define RESET_I2C_M2 143 >> +/* 144-159 */ >> +/* RESET5 */ >> +/* 160-191 */ >> +/* RESET6 */ >> +#define RESET_GEN 192 >> +#define RESET_SPICC0 193 >> +#define RESET_SC 194 >> +#define RESET_SANA_3 195 >> +#define RESET_I2C_M0 196 >> +#define RESET_TS_PLL 197 >> +#define RESET_SPICC1 198 >> +#define RESET_STREAM 199 >> +#define RESET_TS_CPU 200 >> +#define RESET_UART0 201 >> +#define RESET_UART1_2 202 >> +#define RESET_ASYNC0 203 >> +#define RESET_ASYNC1 204 >> +#define RESET_SPIFC0 205 >> +#define RESET_I2C_M3 206 >> +/* 207-223 */ >> +/* RESET7 */ >> +#define RESET_USB_DDR_0 224 >> +#define RESET_USB_DDR_1 225 >> +#define RESET_USB_DDR_2 226 >> +#define RESET_USB_DDR_3 227 >> +#define RESET_TS_GPU 228 >> +#define RESET_DEVICE_MMC_ARB 229 >> +#define RESET_DVALIN_DMC_PIPL 230 >> +#define RESET_VID_LOCK 231 >> +#define RESET_NIC_DMC_PIPL 232 >> +#define RESET_DMC_VPU_PIPL 233 >> +#define RESET_GE2D_DMC_PIPL 234 >> +#define RESET_HCODEC_DMC_PIPL 235 >> +#define RESET_WAVE420_DMC_PIPL 236 >> +#define RESET_HEVCF_DMC_PIPL 237 >> +/* 238-255 */ >> + >> +#endif > > regards > Philipp >