Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="f7MytYUb" Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5691A9 for ; Mon, 4 Dec 2023 09:33:34 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40b4746ae3bso42824735e9.0 for ; Mon, 04 Dec 2023 09:33:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701711213; x=1702316013; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Sug326j4RkqoO9Ptow3nZ3kvcZ7Swug2lDF9621hV9A=; b=f7MytYUbrdtausDhteiUMCXlZNoYmoLBj8Om99FuRmFo1j1dgdrCQ9n0o7I+pYai6y E5P3GtQS1mC12rQmHbhdnpw0UBurWft0JOFNeSz0GHKzxRpxCexqQcKQ7cm99/yzyU2i 0Fm9S1llnC1fFrvOthitXmDtb0P6qSNV0ozR4aqL81RPryLcYoUkvi52pTlPl4RO1m4f h/LfKTEFyRNaAHNSS+VDIP1R90zyBR+UQnve/ra68P8wdiQI2ZAp1ihPbfPj3ogd44wU sZs80uW8FS7tIKUOv8qewsptWMHDbMw2Yv6EKXSz0NWMWjL1MVVQcRVEle++rSIbGuv3 dFhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701711213; x=1702316013; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Sug326j4RkqoO9Ptow3nZ3kvcZ7Swug2lDF9621hV9A=; b=AZWV+pQnHqoPeqP6PqiboWwPKJoUmSSrJ+z+lIhX5v18GJNtRmoF32scUNUOdxtGum FW1FRP4GYmbXSp16wlvd2D/SVKtcngmk3Qam+PIq2C6LoXecPWTR9H6jdV820WpopepY bK0vhyFd7DNpqvsaK+h9vL6ZXkLWmzk3grYd1LHvcL4d0l+V1kldYrPT5YBr1FG5STjb xDHjnDsGkad3lSed4yo1SZmPU4Rvruxi5tCCE6EQztjJfDMWEAqfM+SHHVt+PaIfZZHx sqIEbsoVAjWsIc9upAjBuLDmgjLKc+gS6wySx7HSts9anEPl5LOOKuBsK8l5cS6zfkvs bL9w== X-Gm-Message-State: AOJu0Yw57rnLyjoJHi5qwGwX0hq025dFFgmqViqnvPPwdu8GbboH8BJK 2t+dg3wfz17J5nEeZiE6TQ/+Z2Q1mDsDIbjZMR4= X-Google-Smtp-Source: AGHT+IEfufrDY6qwjOLalRVS7Y554Xwet3E/NEIZZ+pHinD5dFboEosniYAItYzJ7nNnf+ykmvOhMQ== X-Received: by 2002:a05:600c:296:b0:40b:5e59:b7b0 with SMTP id 22-20020a05600c029600b0040b5e59b7b0mr2669578wmk.141.1701711212988; Mon, 04 Dec 2023 09:33:32 -0800 (PST) Received: from ?IPV6:2a05:6e02:1041:c10:c831:1e47:2:5b96? ([2a05:6e02:1041:c10:c831:1e47:2:5b96]) by smtp.googlemail.com with ESMTPSA id h9-20020a05600c314900b0040b3d8907fesm15826309wmo.29.2023.12.04.09.33.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Dec 2023 09:33:32 -0800 (PST) Message-ID: <09b2fc2f-dde9-4f43-9704-d8053bfc85cf@linaro.org> Date: Mon, 4 Dec 2023 18:33:31 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 1/2] dt-bindings: timer: thead,c900-aclint-mtimer: separate mtime and mtimecmp regs Content-Language: en-US To: Inochi Amaoto , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chen Wang Cc: Anup Patel , Samuel Holland , Guo Ren , Jisheng Zhang , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org References: From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 04/12/2023 10:51, Inochi Amaoto wrote: > The timer registers of aclint don't follow the clint layout and can > be mapped on any different offset. As sg2042 uses separated timer > and mswi for its clint, it should follow the aclint spec and have > separated registers. > > The previous patch introduced a new type of T-HEAD aclint timer which > has clint timer layout. Although it has the clint timer layout, it > should follow the aclint spec and uses the separated mtime and mtimecmp > regs. So a ABI change is needed to make the timer fit the aclint spec. > > To make T-HEAD aclint timer more closer to the aclint spec, use > regs-names to represent the mtimecmp register, which can avoid hack > for unsupport mtime register of T-HEAD aclint timer. > > Also, as T-HEAD aclint only supports mtimecmp, it is unnecessary to > implement the whole aclint spec. To make this binding T-HEAD specific, > only add reg-name for existed register. For details, see the discussion > in the last link. > > Signed-off-by: Inochi Amaoto > Fixes: 4734449f7311 ("dt-bindings: timer: Add Sophgo sg2042 CLINT timer") > Link: https://lists.infradead.org/pipermail/opensbi/2023-October/005693.html > Link: https://github.com/riscv/riscv-aclint/blob/main/riscv-aclint.adoc > Link: https://lore.kernel.org/all/IA1PR20MB4953F9D77FFC76A9D236922DBBB6A@IA1PR20MB4953.namprd20.prod.outlook.com/ > --- Applied 1/2, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog