* [PATCH RFC 1/6] dt-bindings: add SiRF AT550 and Yupiteru YPL514si descriptions
2026-11-17 13:06 [PATCH RFC 0/6] SiRF AT550 / YPL514si initial RAM-boot platform support yy-Local-LLM via B4 Relay
@ 2026-11-17 13:06 ` yy-Local-LLM via B4 Relay
2026-11-17 13:21 ` sashiko-bot
2026-11-17 13:06 ` [PATCH RFC 2/6] irqchip: add the SiRF AT550 interrupt controller yy-Local-LLM via B4 Relay
` (4 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: yy-Local-LLM via B4 Relay @ 2026-11-17 13:06 UTC (permalink / raw)
To: linux-arm-kernel, devicetree
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dmitry Torokhov,
Thomas Gleixner, Radu Rendec, Ulf Hansson, Daniel Lezcano,
Adrian Hunter, Jonathan Corbet, Shuah Khan, Randy Dunlap,
Russell King, Arnd Bergmann, Alexandre Belloni, Linus Walleij,
Drew Fustini, linux-kernel, linux-input, linux-mmc, linux-doc,
soc
From: yy-Local-LLM <yogo.0917.sabu@gmail.com>
Describe the 64-source interrupt controller, counter/match timer,
resistive touch input and PIO SD host, together with the YPL514si board
compatible. The counter clock is supplied by boot firmware after its
configured divider. The initial platform inherits firmware clock and pin
setup.
Signed-off-by: yy-Local-LLM <yogo.0917.sabu@gmail.com>
---
.../devicetree/bindings/arm/sirf,at550.yaml | 22 ++++++++++
.../bindings/input/touchscreen/sirf,at550-ts.yaml | 36 +++++++++++++++
.../interrupt-controller/sirf,at550-intc.yaml | 46 +++++++++++++++++++
.../devicetree/bindings/mmc/sirf,at550-sdhci.yaml | 51 ++++++++++++++++++++++
.../bindings/timer/sirf,at550-timer.yaml | 47 ++++++++++++++++++++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
MAINTAINERS | 9 ++++
7 files changed, 213 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/sirf,at550.yaml b/Documentation/devicetree/bindings/arm/sirf,at550.yaml
new file mode 100644
index 000000000..f538f7ccc
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/sirf,at550.yaml
@@ -0,0 +1,22 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/sirf,at550.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SiRF AT550 platforms
+
+maintainers:
+ - yy-Local-LLM <yogo.0917.sabu@gmail.com>
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ items:
+ - const: yupiteru,ypl514si
+ - const: sirf,at550
+
+additionalProperties: true
+
+...
diff --git a/Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml b/Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml
new file mode 100644
index 000000000..0458db241
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/touchscreen/sirf,at550-ts.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SiRF AT550 resistive touchscreen
+
+maintainers:
+ - yy-Local-LLM <yogo.0917.sabu@gmail.com>
+
+allOf:
+ - $ref: touchscreen.yaml#
+
+properties:
+ compatible:
+ const: sirf,at550-ts
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ touchscreen@80120000 {
+ compatible = "sirf,at550-ts";
+ reg = <0x80120000 0x1000>;
+ touchscreen-size-x = <4096>;
+ touchscreen-size-y = <4096>;
+ };
+
+...
diff --git a/Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
new file mode 100644
index 000000000..ec68afa80
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/sirf,at550-intc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SiRF AT550 interrupt controller
+
+maintainers:
+ - yy-Local-LLM <yogo.0917.sabu@gmail.com>
+
+description:
+ The AT550 controller routes 64 level-sensitive interrupt sources to the
+ ARM1136 IRQ input. Each source has a fixed active level; the single interrupt
+ cell is the source number. Firmware FIQ routes are not exposed by this driver.
+
+properties:
+ compatible:
+ const: sirf,at550-intc
+ reg:
+ maxItems: 1
+ interrupt-controller: true
+ '#interrupt-cells':
+ const: 1
+ '#address-cells':
+ const: 0
+
+required:
+ - compatible
+ - reg
+ - interrupt-controller
+ - '#interrupt-cells'
+
+additionalProperties: false
+
+examples:
+ - |
+ interrupt-controller@90020000 {
+ compatible = "sirf,at550-intc";
+ reg = <0x90020000 0x1000>;
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ #address-cells = <0>;
+ };
+
+...
diff --git a/Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml b/Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml
new file mode 100644
index 000000000..7129aaeec
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mmc/sirf,at550-sdhci.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SiRF AT550 SDHCI host controller
+
+maintainers:
+ - yy-Local-LLM <yogo.0917.sabu@gmail.com>
+
+description:
+ AT550 removable SD controller. Initial support uses programmed I/O and
+ firmware-configured clocks and pin multiplexing. DMA address translation
+ and 1.8 V operation are not described by this binding.
+
+allOf:
+ - $ref: mmc-controller.yaml#
+
+properties:
+ compatible:
+ const: sirf,at550-sdhci
+ reg:
+ maxItems: 1
+ interrupts:
+ maxItems: 1
+ bus-width:
+ enum: [1, 4]
+ no-1-8-v: true
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - no-1-8-v
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ mmc@56000000 {
+ compatible = "sirf,at550-sdhci";
+ reg = <0x56000000 0x1000>;
+ interrupt-parent = <&intc>;
+ interrupts = <36>;
+ bus-width = <4>;
+ max-frequency = <25000000>;
+ no-1-8-v;
+ };
+
+...
diff --git a/Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml b/Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
new file mode 100644
index 000000000..d1465d438
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/timer/sirf,at550-timer.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SiRF AT550 system timer
+
+maintainers:
+ - yy-Local-LLM <yogo.0917.sabu@gmail.com>
+
+description:
+ A free-running counter with six match channels. The Linux driver uses the
+ low 32 counter bits and match channel zero. Firmware configures the divider
+ before boot and supplies the resulting counter clock. A running watchdog
+ must be disabled by firmware before this block is handed to Linux.
+
+properties:
+ compatible:
+ const: sirf,at550-timer
+ reg:
+ maxItems: 1
+ interrupts:
+ maxItems: 1
+ clocks:
+ items:
+ - description: Counter clock after the firmware-configured divider
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+additionalProperties: false
+
+examples:
+ - |
+ timer@90050000 {
+ compatible = "sirf,at550-timer";
+ reg = <0x90050000 0x1000>;
+ interrupt-parent = <&intc>;
+ interrupts = <0>;
+ clocks = <&counter_clk>;
+ };
+
+...
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 5471a06f9..a8927fea3 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -1985,6 +1985,8 @@ patternProperties:
description: Shenzhen Yashi Changhua Intelligent Technology Co., Ltd.
"^ysoft,.*":
description: Y Soft Corporation a.s.
+ "^yupiteru,.*":
+ description: Yupiteru
"^yuridenki,.*":
description: Yuridenki-Shokai Co. Ltd.
"^yuzukihd,.*":
diff --git a/MAINTAINERS b/MAINTAINERS
index d73899016..6c3702cd8 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25847,6 +25847,15 @@ F: drivers/gpio/gpio-siox.c
F: drivers/siox/*
F: include/trace/events/siox.h
+SIRF AT550 PLATFORM
+M: yy-Local-LLM <yogo.0917.sabu@gmail.com>
+S: Odd Fixes
+F: Documentation/devicetree/bindings/arm/sirf,at550.yaml
+F: Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml
+F: Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
+F: Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml
+F: Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
+
SIS 190 ETHERNET DRIVER
M: Francois Romieu <romieu@fr.zoreil.com>
L: netdev@vger.kernel.org
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH RFC 1/6] dt-bindings: add SiRF AT550 and Yupiteru YPL514si descriptions
2026-11-17 13:06 ` [PATCH RFC 1/6] dt-bindings: add SiRF AT550 and Yupiteru YPL514si descriptions yy-Local-LLM via B4 Relay
@ 2026-11-17 13:21 ` sashiko-bot
0 siblings, 0 replies; 12+ messages in thread
From: sashiko-bot @ 2026-11-17 13:21 UTC (permalink / raw)
To: yy-Local-LLM, devicetree; +Cc: linux-input, robh, conor+dt, dmitry.torokhov
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] dt-bindings: sirf: non-human handle yy-Local-LLM in
Signed-off-by and maintainers
- [Medium] dt-bindings: sirf: AT550 schemas encode driver and firmware
limits instead of hardware
--
commit 2d786eae9bbdb4eb26a31d6594cf77ebf8a38f4c
Author: yy-Local-LLM <yogo.0917.sabu@gmail.com>
dt-bindings: add SiRF AT550 and Yupiteru YPL514si descriptions
This commit adds Devicetree binding schemas for the SiRF AT550 platform,
touchscreen, interrupt controller, SDHCI controller, and system timer, along
with the Yupiteru vendor prefix and a MAINTAINERS entry.
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml b/Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml
> new file mode 100644
> index 0000000000000..0458db2419c3c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml
> @@ -0,0 +1,36 @@
[ ... ]
> +allOf:
> + - $ref: touchscreen.yaml#
> +
> +properties:
> + compatible:
> + const: sirf,at550-ts
> + reg:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> +
> +unevaluatedProperties: false
[ ... ]
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
> new file mode 100644
> index 0000000000000..ec68afa805e94
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
> @@ -0,0 +1,46 @@
[ ... ]
> +description:
> + The AT550 controller routes 64 level-sensitive interrupt sources to the
> + ARM1136 IRQ input. Each source has a fixed active level; the single interrupt
> + cell is the source number. Firmware FIQ routes are not exposed by this driver.
[ ... ]
> diff --git a/Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml b/Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml
> new file mode 100644
> index 0000000000000..7129aaeec2bb7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml
> @@ -0,0 +1,51 @@
[ ... ]
> +description:
> + AT550 removable SD controller. Initial support uses programmed I/O and
> + firmware-configured clocks and pin multiplexing. DMA address translation
> + and 1.8 V operation are not described by this binding.
> +
> +allOf:
> + - $ref: mmc-controller.yaml#
> +
> +properties:
> + compatible:
> + const: sirf,at550-sdhci
> + reg:
> + maxItems: 1
> + interrupts:
> + maxItems: 1
> + bus-width:
> + enum: [1, 4]
> + no-1-8-v: true
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - no-1-8-v
> +
> +unevaluatedProperties: false
[ ... ]
> diff --git a/Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml b/Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
> new file mode 100644
> index 0000000000000..d1465d438d10e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
> @@ -0,0 +1,47 @@
[ ... ]
> +description:
> + A free-running counter with six match channels. The Linux driver uses the
> + low 32 counter bits and match channel zero. Firmware configures the divider
> + before boot and supplies the resulting counter clock. A running watchdog
> + must be disabled by firmware before this block is handed to Linux.
> +
> +properties:
> + compatible:
> + const: sirf,at550-timer
> + reg:
> + maxItems: 1
> + interrupts:
> + maxItems: 1
> + clocks:
> + items:
> + - description: Counter clock after the firmware-configured divider
[Severity: Medium]
Should these schemas describe the AT550 hardware capabilities rather than
the current Linux driver implementation and firmware handoff state?
In sirf,at550-ts.yaml, omitting interrupts and clocks while setting
unevaluatedProperties: false causes dtbs_check to reject Devicetrees that
describe the touchscreen interrupt or peripheral clock, since
touchscreen.yaml does not define those properties.
In sirf,at550-sdhci.yaml, clocks is similarly omitted under
unevaluatedProperties: false, and the optional board property no-1-8-v is
made required on all nodes even when 3.3 V-only signaling is implied by the
sirf,at550-sdhci compatible string.
In sirf,at550-timer.yaml, the clock input is defined as the rate after the
firmware-configured divider even though the divider register is internal to
the timer MMIO block, and interrupts is limited to maxItems: 1 despite the
hardware providing six match channels. The descriptions in
sirf,at550-intc.yaml, sirf,at550-sdhci.yaml, and sirf,at550-timer.yaml also
document Linux driver details rather than the hardware blocks.
[ ... ]
> diff --git a/MAINTAINERS b/MAINTAINERS
> index d738990161bd0..6c3702cd8915a 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -25847,6 +25847,15 @@ F: drivers/gpio/gpio-siox.c
> F: drivers/siox/*
> F: include/trace/events/siox.h
>
> +SIRF AT550 PLATFORM
> +M: yy-Local-LLM <yogo.0917.sabu@gmail.com>
> +S: Odd Fixes
> +F: Documentation/devicetree/bindings/arm/sirf,at550.yaml
> +F: Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml
> +F: Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
> +F: Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml
> +F: Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
[Severity: High]
The commit Author, Signed-off-by trailer, MAINTAINERS entry, and the
maintainers list in all five new binding schemas use the handle yy-Local-LLM
instead of a known real human full name, which is required by the
Developer's Certificate of Origin in
Documentation/process/submitting-patches.rst.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261117-at550-rfc-v1-v1-0-5879573cb825@gmail.com?part=1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH RFC 2/6] irqchip: add the SiRF AT550 interrupt controller
2026-11-17 13:06 [PATCH RFC 0/6] SiRF AT550 / YPL514si initial RAM-boot platform support yy-Local-LLM via B4 Relay
2026-11-17 13:06 ` [PATCH RFC 1/6] dt-bindings: add SiRF AT550 and Yupiteru YPL514si descriptions yy-Local-LLM via B4 Relay
@ 2026-11-17 13:06 ` yy-Local-LLM via B4 Relay
2026-11-17 13:27 ` sashiko-bot
2026-11-17 13:06 ` [PATCH RFC 3/6] clocksource: add the SiRF AT550 counter and match timer yy-Local-LLM via B4 Relay
` (3 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: yy-Local-LLM via B4 Relay @ 2026-11-17 13:06 UTC (permalink / raw)
To: linux-arm-kernel, devicetree
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dmitry Torokhov,
Thomas Gleixner, Radu Rendec, Ulf Hansson, Daniel Lezcano,
Adrian Hunter, Jonathan Corbet, Shuah Khan, Randy Dunlap,
Russell King, Arnd Bergmann, Alexandre Belloni, Linus Walleij,
Drew Fustini, linux-kernel, linux-input, linux-mmc, linux-doc,
soc
From: yy-Local-LLM <yogo.0917.sabu@gmail.com>
Register the root controller through IRQCHIP_DECLARE and a linear
domain. Validate the chip ID before writes, mask both banks during setup
and route sources to IRQ. Keep dispatch bounded and leave the DSP mask
registers alone. The register operations derive from the 6.12.60
YPL514si bring-up. The device owner has now booted the 7.4-rc3 candidate
through JWM on this upstream initialization path.
Signed-off-by: yy-Local-LLM <yogo.0917.sabu@gmail.com>
---
MAINTAINERS | 1 +
drivers/irqchip/Kconfig | 5 ++
drivers/irqchip/Makefile | 2 +
drivers/irqchip/irq-at550.c | 110 ++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 118 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 6c3702cd8..acb6fde49 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25855,6 +25855,7 @@ F: Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml
F: Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
F: Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml
F: Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
+F: drivers/irqchip/irq-at550.c
SIS 190 ETHERNET DRIVER
M: Francois Romieu <romieu@fr.zoreil.com>
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 136bab41f..abf704110 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -852,4 +852,9 @@ config IRQCHIP_XILINX_SMMU_CSR
ZynqMP-class platforms where a vendor CSR block mediates SMMU
interrupts.
+config AT550_IRQ
+ bool
+ depends on ARM
+ select IRQ_DOMAIN
+
endmenu
diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile
index 16a5fd126..0aa36c7b8 100644
--- a/drivers/irqchip/Makefile
+++ b/drivers/irqchip/Makefile
@@ -136,3 +136,5 @@ obj-$(CONFIG_MCHP_EIC) += irq-mchp-eic.o
obj-$(CONFIG_SOPHGO_SG2042_MSI) += irq-sg2042-msi.o
obj-$(CONFIG_SUNPLUS_SP7021_INTC) += irq-sp7021-intc.o
obj-$(CONFIG_IRQCHIP_XILINX_SMMU_CSR) += irq-xilinx-smmu-csr.o
+
+obj-$(CONFIG_AT550_IRQ) += irq-at550.o
diff --git a/drivers/irqchip/irq-at550.c b/drivers/irqchip/irq-at550.c
new file mode 100644
index 000000000..33eb18cd1
--- /dev/null
+++ b/drivers/irqchip/irq-at550.c
@@ -0,0 +1,110 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/* SiRF AT550 interrupt controller. */
+#include <linux/io.h>
+#include <linux/irq.h>
+#include <linux/irqchip.h>
+#include <linux/irqdomain.h>
+#include <linux/of_address.h>
+#include <asm/exception.h>
+
+#define AT550_IRQ_COUNT 64
+#define AT550_MASK 0x18
+#define AT550_LEVEL 0x20
+#define AT550_CHIP_ID 0x34
+#define AT550_IRQ_ID 0x38
+
+static void __iomem *at550_intc;
+static struct irq_domain *at550_domain;
+
+static void at550_irq_mask(struct irq_data *data)
+{
+ void __iomem *reg = at550_intc + AT550_MASK + (data->hwirq / 32) * 4;
+
+ writel(readl(reg) & ~BIT(data->hwirq % 32), reg);
+}
+
+static void at550_irq_unmask(struct irq_data *data)
+{
+ void __iomem *reg = at550_intc + AT550_MASK + (data->hwirq / 32) * 4;
+
+ writel(readl(reg) | BIT(data->hwirq % 32), reg);
+}
+
+static struct irq_chip at550_chip = {
+ .name = "at550-intc",
+ .irq_mask = at550_irq_mask,
+ .irq_unmask = at550_irq_unmask,
+};
+
+static int at550_irq_map(struct irq_domain *domain, unsigned int irq,
+ irq_hw_number_t hwirq)
+{
+ if (hwirq >= AT550_IRQ_COUNT)
+ return -EINVAL;
+ irq_set_chip_and_handler(irq, &at550_chip, handle_level_irq);
+ irq_set_noprobe(irq);
+ return 0;
+}
+
+static const struct irq_domain_ops at550_domain_ops = {
+ .map = at550_irq_map,
+ .xlate = irq_domain_xlate_onecell,
+};
+
+static void __exception_irq_entry at550_handle_irq(struct pt_regs *regs)
+{
+ unsigned int count, hwirq;
+
+ for (count = 0; count < AT550_IRQ_COUNT; count++) {
+ hwirq = readl(at550_intc + AT550_IRQ_ID) & 0xff;
+ if (hwirq == 0xff)
+ return;
+ if (hwirq >= AT550_IRQ_COUNT) {
+ pr_err_ratelimited("at550-intc: invalid source %u\n", hwirq);
+ return;
+ }
+ if (generic_handle_domain_irq(at550_domain, hwirq))
+ return;
+ }
+}
+
+static int __init at550_irq_init(struct device_node *node,
+ struct device_node *parent)
+{
+ int ret;
+
+ if (parent || at550_intc)
+ return -EINVAL;
+ at550_intc = of_iomap(node, 0);
+ if (!at550_intc)
+ return -ENOMEM;
+ if ((readl(at550_intc + AT550_CHIP_ID) & 0xffff) != 0x1230) {
+ ret = -ENODEV;
+ goto unmap;
+ }
+ /* A set mask bit enables a source; clear level bits route it to IRQ. */
+ writel(0, at550_intc + AT550_MASK);
+ writel(0, at550_intc + AT550_MASK + 4);
+ writel(0, at550_intc + AT550_LEVEL);
+ writel(0, at550_intc + AT550_LEVEL + 4);
+ at550_domain = irq_domain_create_linear(of_fwnode_handle(node), AT550_IRQ_COUNT,
+ &at550_domain_ops, NULL);
+ if (!at550_domain) {
+ ret = -ENOMEM;
+ goto unmap;
+ }
+ ret = set_handle_irq(at550_handle_irq);
+ if (ret)
+ goto remove_domain;
+ irq_set_default_domain(at550_domain);
+ return 0;
+
+remove_domain:
+ irq_domain_remove(at550_domain);
+ at550_domain = NULL;
+unmap:
+ iounmap(at550_intc);
+ at550_intc = NULL;
+ return ret;
+}
+IRQCHIP_DECLARE(at550, "sirf,at550-intc", at550_irq_init);
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH RFC 2/6] irqchip: add the SiRF AT550 interrupt controller
2026-11-17 13:06 ` [PATCH RFC 2/6] irqchip: add the SiRF AT550 interrupt controller yy-Local-LLM via B4 Relay
@ 2026-11-17 13:27 ` sashiko-bot
0 siblings, 0 replies; 12+ messages in thread
From: sashiko-bot @ 2026-11-17 13:27 UTC (permalink / raw)
To: yy-Local-LLM, devicetree; +Cc: linux-input, robh, conor+dt, dmitry.torokhov
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] irqchip:at550: non-human handle in Signed-off-by trailer
- [Medium] irqchip:at550: missing IRQ_LEVEL flag in at550_irq_map()
--
commit d5dea66e73a21d9dc175a050a6d6978545bc229c
Author: yy-Local-LLM <yogo.0917.sabu@gmail.com>
> irqchip: add the SiRF AT550 interrupt controller
>
> Register the root controller through IRQCHIP_DECLARE and a linear
> domain. Validate the chip ID before writes, mask both banks during setup
> and route sources to IRQ. Keep dispatch bounded and leave the DSP mask
> registers alone. The register operations derive from the 6.12.60
> YPL514si bring-up. The device owner has now booted the 7.4-rc3 candidate
> through JWM on this upstream initialization path.
>
> Signed-off-by: yy-Local-LLM <yogo.0917.sabu@gmail.com>
[Severity: High]
The Author header and Signed-off-by trailer use the handle "yy-Local-LLM"
rather than a known real full human name, which does not comply with the
Developer's Certificate of Origin in
Documentation/process/submitting-patches.rst.
> diff --git a/drivers/irqchip/irq-at550.c b/drivers/irqchip/irq-at550.c
> new file mode 100644
> index 0000000000000..33eb18cd1e9ec
> --- /dev/null
> +++ b/drivers/irqchip/irq-at550.c
[ ... ]
> +static int at550_irq_map(struct irq_domain *domain, unsigned int irq,
> + irq_hw_number_t hwirq)
> +{
> + if (hwirq >= AT550_IRQ_COUNT)
> + return -EINVAL;
> + irq_set_chip_and_handler(irq, &at550_chip, handle_level_irq);
> + irq_set_noprobe(irq);
> + return 0;
> +}
> +
> +static const struct irq_domain_ops at550_domain_ops = {
> + .map = at550_irq_map,
> + .xlate = irq_domain_xlate_onecell,
> +};
[Severity: Medium]
Should at550_irq_map() also call irq_set_status_flags(irq, IRQ_LEVEL)?
Because at550_domain_ops uses irq_domain_xlate_onecell() and at550_chip has
no .irq_set_type callback, IRQ_LEVEL is never set on the descriptor. If a
level interrupt fires while lazily disabled via disable_irq(),
handle_level_irq() masks the source and sets IRQS_PENDING, and a later
enable_irq() -> check_irq_resend() sees irq_settings_is_level(desc) as
false and schedules a software resend on top of the unmasked hardware line,
running the handler twice and reporting the interrupt as edge-triggered in
procfs and sysfs.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261117-at550-rfc-v1-v1-0-5879573cb825@gmail.com?part=2
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH RFC 3/6] clocksource: add the SiRF AT550 counter and match timer
2026-11-17 13:06 [PATCH RFC 0/6] SiRF AT550 / YPL514si initial RAM-boot platform support yy-Local-LLM via B4 Relay
2026-11-17 13:06 ` [PATCH RFC 1/6] dt-bindings: add SiRF AT550 and Yupiteru YPL514si descriptions yy-Local-LLM via B4 Relay
2026-11-17 13:06 ` [PATCH RFC 2/6] irqchip: add the SiRF AT550 interrupt controller yy-Local-LLM via B4 Relay
@ 2026-11-17 13:06 ` yy-Local-LLM via B4 Relay
2026-11-17 13:43 ` sashiko-bot
2026-11-17 13:06 ` [PATCH RFC 4/6] Input: add polled SiRF AT550 resistive touch support yy-Local-LLM via B4 Relay
` (2 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: yy-Local-LLM via B4 Relay @ 2026-11-17 13:06 UTC (permalink / raw)
To: linux-arm-kernel, devicetree
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dmitry Torokhov,
Thomas Gleixner, Radu Rendec, Ulf Hansson, Daniel Lezcano,
Adrian Hunter, Jonathan Corbet, Shuah Khan, Randy Dunlap,
Russell King, Arnd Bergmann, Alexandre Belloni, Linus Walleij,
Drew Fustini, linux-kernel, linux-input, linux-mmc, linux-doc,
soc
From: yy-Local-LLM <yogo.0917.sabu@gmail.com>
Use the low 32-bit counter as clocksource/sched_clock and match zero as
a one-shot clockevent. Obtain its rate through the common clock
framework. Preserve the firmware counter/divider and refuse a running
watchdog. Unwind IRQ, clock and I/O resources if initialization fails.
Signed-off-by: yy-Local-LLM <yogo.0917.sabu@gmail.com>
---
MAINTAINERS | 1 +
drivers/clocksource/Kconfig | 6 ++
drivers/clocksource/Makefile | 2 +
drivers/clocksource/timer-at550.c | 134 ++++++++++++++++++++++++++++++++++++++
4 files changed, 143 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index acb6fde49..3fea2160a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25855,6 +25855,7 @@ F: Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml
F: Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
F: Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml
F: Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
+F: drivers/clocksource/timer-at550.c
F: drivers/irqchip/irq-at550.c
SIS 190 ETHERNET DRIVER
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index da8348329..ed73947bd 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -835,4 +835,10 @@ choice
endchoice
+config CLKSRC_AT550
+ bool
+ depends on ARM
+ select TIMER_OF
+ select CLKSRC_MMIO
+
endmenu
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile
index 464ec6690..0f3d4fb1c 100644
--- a/drivers/clocksource/Makefile
+++ b/drivers/clocksource/Makefile
@@ -97,3 +97,5 @@ obj-$(CONFIG_RALINK_TIMER) += timer-ralink.o
obj-$(CONFIG_NXP_STM_TIMER) += timer-nxp-stm.o
obj-$(CONFIG_RTK_SYSTIMER) += timer-realtek.o
obj-$(CONFIG_RZN1_TIMER) += timer-rzn1.o
+
+obj-$(CONFIG_CLKSRC_AT550) += timer-at550.o
diff --git a/drivers/clocksource/timer-at550.c b/drivers/clocksource/timer-at550.c
new file mode 100644
index 000000000..a47dadfb9
--- /dev/null
+++ b/drivers/clocksource/timer-at550.c
@@ -0,0 +1,134 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/* SiRF AT550 free-running counter and match channel 0. */
+#include <linux/clk.h>
+#include <linux/clockchips.h>
+#include <linux/clocksource.h>
+#include <linux/interrupt.h>
+#include <linux/io.h>
+#include <linux/of_address.h>
+#include <linux/of_irq.h>
+#include <linux/sched_clock.h>
+
+#define AT550_MATCH0 0x08
+#define AT550_STATUS 0x20
+#define AT550_ENABLE 0x24
+#define AT550_WATCHDOG 0x28
+#define AT550_DIVIDER 0x2c
+
+static void __iomem *at550_timer;
+static struct clock_event_device at550_event;
+
+static u64 notrace at550_sched_read(void)
+{
+ return readl_relaxed(at550_timer);
+}
+
+static int at550_shutdown(struct clock_event_device *event)
+{
+ writel(0, at550_timer + AT550_ENABLE);
+ return 0;
+}
+
+static int at550_next_event(unsigned long delta,
+ struct clock_event_device *event)
+{
+ u32 target = readl(at550_timer) + delta;
+
+ writel(0, at550_timer + AT550_ENABLE);
+ writel(1, at550_timer + AT550_STATUS);
+ writel(target, at550_timer + AT550_MATCH0);
+ writel(1, at550_timer + AT550_ENABLE);
+ if ((s32)(target - readl(at550_timer)) <= 0) {
+ writel(0, at550_timer + AT550_ENABLE);
+ return -ETIME;
+ }
+ return 0;
+}
+
+static irqreturn_t at550_timer_interrupt(int irq, void *data)
+{
+ struct clock_event_device *event = data;
+
+ if (!(readl(at550_timer + AT550_STATUS) & 1))
+ return IRQ_NONE;
+ writel(0, at550_timer + AT550_ENABLE);
+ writel(1, at550_timer + AT550_STATUS);
+ event->event_handler(event);
+ return IRQ_HANDLED;
+}
+
+static int __init at550_timer_init(struct device_node *node)
+{
+ struct clk *clk;
+ unsigned long rate;
+ unsigned int irq;
+ int ret;
+
+ if (at550_timer)
+ return -EINVAL;
+ at550_timer = of_iomap(node, 0);
+ if (!at550_timer)
+ return -ENOMEM;
+ /* Do not disturb a running firmware watchdog or unknown divider bits. */
+ if (readl(at550_timer + AT550_WATCHDOG) ||
+ readl(at550_timer + AT550_DIVIDER) > 0xffff) {
+ ret = -EBUSY;
+ goto unmap;
+ }
+ clk = of_clk_get(node, 0);
+ if (IS_ERR(clk)) {
+ ret = PTR_ERR(clk);
+ goto unmap;
+ }
+ ret = clk_prepare_enable(clk);
+ if (ret)
+ goto put_clock;
+ rate = clk_get_rate(clk);
+ if (!rate) {
+ ret = -EINVAL;
+ goto disable_clock;
+ }
+ irq = irq_of_parse_and_map(node, 0);
+ if (!irq) {
+ ret = -EINVAL;
+ goto disable_clock;
+ }
+ writel(0, at550_timer + AT550_ENABLE);
+ writel(0x3f, at550_timer + AT550_STATUS);
+ at550_event.name = "at550-match0";
+ at550_event.features = CLOCK_EVT_FEAT_ONESHOT;
+ at550_event.rating = 200;
+ at550_event.set_next_event = at550_next_event;
+ at550_event.set_state_shutdown = at550_shutdown;
+ at550_event.set_state_oneshot = at550_shutdown;
+ at550_event.tick_resume = at550_shutdown;
+ at550_event.cpumask = cpumask_of(0);
+ at550_event.irq = irq;
+ ret = request_irq(irq, at550_timer_interrupt, IRQF_TIMER,
+ "at550-match0", &at550_event);
+ if (ret)
+ goto dispose_irq;
+ ret = clocksource_mmio_init(at550_timer, "at550-counter", rate, 200,
+ 32, clocksource_mmio_readl_up);
+ if (ret)
+ goto free_irq;
+ /* Firmware has configured the divider; the supplied clock is its output. */
+ sched_clock_register(at550_sched_read, 32, rate);
+ clockevents_config_and_register(&at550_event, rate,
+ max(32UL, rate / 10000), 0x7fffffff);
+ return 0;
+
+free_irq:
+ free_irq(irq, &at550_event);
+dispose_irq:
+ irq_dispose_mapping(irq);
+disable_clock:
+ clk_disable_unprepare(clk);
+put_clock:
+ clk_put(clk);
+unmap:
+ iounmap(at550_timer);
+ at550_timer = NULL;
+ return ret;
+}
+TIMER_OF_DECLARE(at550, "sirf,at550-timer", at550_timer_init);
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH RFC 3/6] clocksource: add the SiRF AT550 counter and match timer
2026-11-17 13:06 ` [PATCH RFC 3/6] clocksource: add the SiRF AT550 counter and match timer yy-Local-LLM via B4 Relay
@ 2026-11-17 13:43 ` sashiko-bot
0 siblings, 0 replies; 12+ messages in thread
From: sashiko-bot @ 2026-11-17 13:43 UTC (permalink / raw)
To: yy-Local-LLM, devicetree; +Cc: linux-input, robh, conor+dt, dmitry.torokhov
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [High] clocksource/drivers/at550: non-real-name handle in
Signed-off-by trailer
- [Medium] clocksource/drivers/at550: MMIO read before clock enable in
at550_timer_init()
- [Medium] clocksource/drivers/at550: missing set_state_oneshot_stopped
in at550_timer_init()
- [Medium] clocksource/drivers/at550: stale match race in
at550_next_event() status clear
--
commit b350bccc2b4d4235b5ab2d214012109afb381252
Author: yy-Local-LLM <yogo.0917.sabu@gmail.com>
> clocksource: add the SiRF AT550 counter and match timer
>
> Use the low 32-bit counter as clocksource/sched_clock and match zero as
> a one-shot clockevent. Obtain its rate through the common clock
> framework. Preserve the firmware counter/divider and refuse a running
> watchdog. Unwind IRQ, clock and I/O resources if initialization fails.
>
> Signed-off-by: yy-Local-LLM <yogo.0917.sabu@gmail.com>
[Severity: High]
Under Documentation/process/submitting-patches.rst, the Developer's
Certificate of Origin requires a real human name (known identity) in the
Author header and Signed-off-by trailer rather than a handle or LLM
identifier.
> diff --git a/drivers/clocksource/timer-at550.c b/drivers/clocksource/timer-at550.c
> new file mode 100644
> index 0000000000000..a47dadfb9554f
> --- /dev/null
> +++ b/drivers/clocksource/timer-at550.c
[ ... ]
> +static int at550_next_event(unsigned long delta,
> + struct clock_event_device *event)
> +{
> + u32 target = readl(at550_timer) + delta;
> +
> + writel(0, at550_timer + AT550_ENABLE);
> + writel(1, at550_timer + AT550_STATUS);
> + writel(target, at550_timer + AT550_MATCH0);
> + writel(1, at550_timer + AT550_ENABLE);
[Severity: Medium]
Can a stale value in AT550_MATCH0 fire a premature interrupt when
at550_next_event() clears AT550_STATUS before updating AT550_MATCH0?
Because the counter is free-running and AT550_MATCH0 still holds the
previous comparator value when writel(1, at550_timer + AT550_STATUS)
runs, the counter reaching that old comparator value before the new
target is written to AT550_MATCH0 re-latches bit 0 in AT550_STATUS.
Setting AT550_ENABLE to 1 then immediately triggers an interrupt even
though the new target is still in the future. Disabling AT550_ENABLE
first, computing target and writing AT550_MATCH0 before clearing
AT550_STATUS avoids latching a match from the old comparator value.
[ ... ]
> +static int __init at550_timer_init(struct device_node *node)
> +{
> + struct clk *clk;
> + unsigned long rate;
> + unsigned int irq;
> + int ret;
> +
> + if (at550_timer)
> + return -EINVAL;
> + at550_timer = of_iomap(node, 0);
> + if (!at550_timer)
> + return -ENOMEM;
> + /* Do not disturb a running firmware watchdog or unknown divider bits. */
> + if (readl(at550_timer + AT550_WATCHDOG) ||
> + readl(at550_timer + AT550_DIVIDER) > 0xffff) {
> + ret = -EBUSY;
> + goto unmap;
> + }
> + clk = of_clk_get(node, 0);
> + if (IS_ERR(clk)) {
> + ret = PTR_ERR(clk);
> + goto unmap;
> + }
> + ret = clk_prepare_enable(clk);
[Severity: Medium]
Does at550_timer_init() read AT550_WATCHDOG and AT550_DIVIDER before
enabling the timer clock? If the peripheral clock is gated prior to
clk_prepare_enable(), reading those registers can cause a bus hang or
synchronous external abort during boot.
[ ... ]
> + at550_event.name = "at550-match0";
> + at550_event.features = CLOCK_EVT_FEAT_ONESHOT;
> + at550_event.rating = 200;
> + at550_event.set_next_event = at550_next_event;
> + at550_event.set_state_shutdown = at550_shutdown;
> + at550_event.set_state_oneshot = at550_shutdown;
> + at550_event.tick_resume = at550_shutdown;
[Severity: Medium]
Should at550_event.set_state_oneshot_stopped also be set to
at550_shutdown?
When the last pending timer event is cancelled and tick_program_event()
is called with expires == KTIME_MAX, it switches the device to
CLOCK_EVT_STATE_ONESHOT_STOPPED without calling set_next_event().
Without set_state_oneshot_stopped, __clockevents_switch_state() returns
-ENOSYS and leaves AT550_ENABLE set, causing the previous AT550_MATCH0
value to fire a spurious interrupt when the counter reaches it.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261117-at550-rfc-v1-v1-0-5879573cb825@gmail.com?part=3
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH RFC 4/6] Input: add polled SiRF AT550 resistive touch support
2026-11-17 13:06 [PATCH RFC 0/6] SiRF AT550 / YPL514si initial RAM-boot platform support yy-Local-LLM via B4 Relay
` (2 preceding siblings ...)
2026-11-17 13:06 ` [PATCH RFC 3/6] clocksource: add the SiRF AT550 counter and match timer yy-Local-LLM via B4 Relay
@ 2026-11-17 13:06 ` yy-Local-LLM via B4 Relay
2026-11-17 13:38 ` sashiko-bot
2026-11-17 13:06 ` [PATCH RFC 5/6] mmc: sdhci: add SiRF AT550 programmed-I/O support yy-Local-LLM via B4 Relay
2026-11-17 13:06 ` [PATCH RFC 6/6] ARM: add the SiRF AT550 platform and YPL514si board yy-Local-LLM via B4 Relay
5 siblings, 1 reply; 12+ messages in thread
From: yy-Local-LLM via B4 Relay @ 2026-11-17 13:06 UTC (permalink / raw)
To: linux-arm-kernel, devicetree
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dmitry Torokhov,
Thomas Gleixner, Radu Rendec, Ulf Hansson, Daniel Lezcano,
Adrian Hunter, Jonathan Corbet, Shuah Khan, Randy Dunlap,
Russell King, Arnd Bergmann, Alexandre Belloni, Linus Walleij,
Drew Fustini, linux-kernel, linux-input, linux-mmc, linux-doc,
soc
From: yy-Local-LLM <yogo.0917.sabu@gmail.com>
Report raw ABS_X/ABS_Y and BTN_TOUCH using the input polling framework.
Preserve the firmware settling settings and reject streaming/AUX
ownership. Use standard touchscreen axis properties; keep affine
calibration in userspace. Polling is the initial supported acquisition
mode.
Signed-off-by: yy-Local-LLM <yogo.0917.sabu@gmail.com>
---
MAINTAINERS | 1 +
drivers/input/touchscreen/Kconfig | 10 ++++
drivers/input/touchscreen/Makefile | 2 +
drivers/input/touchscreen/at550-ts.c | 108 +++++++++++++++++++++++++++++++++++
4 files changed, 121 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 3fea2160a..441492230 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25856,6 +25856,7 @@ F: Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
F: Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml
F: Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
F: drivers/clocksource/timer-at550.c
+F: drivers/input/touchscreen/at550-ts.c
F: drivers/irqchip/irq-at550.c
SIS 190 ETHERNET DRIVER
diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig
index 9b9ae8ac3..e68af1dd6 100644
--- a/drivers/input/touchscreen/Kconfig
+++ b/drivers/input/touchscreen/Kconfig
@@ -1414,4 +1414,14 @@ config TOUCHSCREEN_HIMAX_HX83112B
To compile this driver as a module, choose M here: the
module will be called himax_hx83112b.
+config TOUCHSCREEN_AT550
+ tristate "SiRF AT550 resistive touchscreen"
+ depends on OF && HAS_IOMEM
+ help
+ Say Y to enable polled coordinate acquisition on the AT550.
+ Coordinates and pen state are exposed through the input subsystem.
+ Firmware must initialize the touchscreen peripheral clock.
+ Board-specific affine calibration belongs in userspace.
+ To build as a module, choose M; it will be called at550-ts.
+
endif
diff --git a/drivers/input/touchscreen/Makefile b/drivers/input/touchscreen/Makefile
index bfd9de833..6b8d09601 100644
--- a/drivers/input/touchscreen/Makefile
+++ b/drivers/input/touchscreen/Makefile
@@ -119,3 +119,5 @@ obj-$(CONFIG_TOUCHSCREEN_IQS5XX) += iqs5xx.o
obj-$(CONFIG_TOUCHSCREEN_IQS7211) += iqs7211.o
obj-$(CONFIG_TOUCHSCREEN_ZINITIX) += zinitix.o
obj-$(CONFIG_TOUCHSCREEN_HIMAX_HX83112B) += himax_hx83112b.o
+
+obj-$(CONFIG_TOUCHSCREEN_AT550) += at550-ts.o
diff --git a/drivers/input/touchscreen/at550-ts.c b/drivers/input/touchscreen/at550-ts.c
new file mode 100644
index 000000000..0a208f4a9
--- /dev/null
+++ b/drivers/input/touchscreen/at550-ts.c
@@ -0,0 +1,108 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/* SiRF AT550 coordinate acquisition. Layout cross-checked with AT551 draft. */
+#include <linux/bitfield.h>
+#include <linux/input.h>
+#include <linux/input/touchscreen.h>
+#include <linux/io.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#define AT550_CTRL1 0x00
+#define AT550_CTRL2 0x04
+#define AT550_INTR 0x08
+#define AT550_COORD 0x0c
+#define AT550_STREAM 0x44
+#define AT550_DOWN BIT(31)
+#define AT550_VALID (BIT(29) | BIT(30))
+struct at550_ts {
+ void __iomem *base;
+ struct touchscreen_properties prop;
+ u32 ctrl1;
+ u32 ctrl2;
+};
+static void at550_ts_poll(struct input_dev *input)
+{
+ struct at550_ts *ts = input_get_drvdata(input);
+ u32 data = readl(ts->base + AT550_COORD);
+
+ if (!(data & AT550_DOWN)) {
+ input_report_key(input, BTN_TOUCH, 0);
+ input_sync(input);
+ return;
+ }
+ if ((data & AT550_VALID) != AT550_VALID)
+ return;
+ touchscreen_report_pos(input, &ts->prop, data & GENMASK(11, 0),
+ (data >> 12) & GENMASK(11, 0), false);
+ input_report_key(input, BTN_TOUCH, 1);
+ input_sync(input);
+}
+static int at550_ts_open(struct input_dev *input)
+{
+ struct at550_ts *ts = input_get_drvdata(input);
+
+ /* Polling keeps the interrupt sources disabled. Preserve CE settling. */
+ writel(3, ts->base + AT550_INTR);
+ writel(ts->ctrl2 | GENMASK(15, 14), ts->base + AT550_CTRL2);
+ writel((ts->ctrl1 & GENMASK(7, 4)) | BIT(11) | BIT(10),
+ ts->base + AT550_CTRL1);
+ return 0;
+}
+static void at550_ts_close(struct input_dev *input)
+{
+ struct at550_ts *ts = input_get_drvdata(input);
+
+ writel(3, ts->base + AT550_INTR);
+ writel(ts->ctrl1, ts->base + AT550_CTRL1);
+ writel(ts->ctrl2, ts->base + AT550_CTRL2);
+}
+static int at550_ts_probe(struct platform_device *pdev)
+{
+ struct device *dev = &pdev->dev;
+ struct at550_ts *ts;
+ struct input_dev *input;
+ int ret;
+
+ ts = devm_kzalloc(dev, sizeof(*ts), GFP_KERNEL);
+ if (!ts)
+ return -ENOMEM;
+ ts->base = devm_platform_ioremap_resource(pdev, 0);
+ if (IS_ERR(ts->base))
+ return PTR_ERR(ts->base);
+ ts->ctrl1 = readl(ts->base + AT550_CTRL1);
+ ts->ctrl2 = readl(ts->base + AT550_CTRL2);
+ if ((ts->ctrl1 & ~0xffffU) || (ts->ctrl2 & ~0xc2ffU) ||
+ readl(ts->base + AT550_STREAM))
+ return dev_err_probe(dev, -ENODEV, "unexpected TSC state\n");
+ input = devm_input_allocate_device(dev);
+ if (!input)
+ return -ENOMEM;
+ input->name = "SiRF AT550 touchscreen";
+ input->id.bustype = BUS_HOST;
+ input->open = at550_ts_open;
+ input->close = at550_ts_close;
+ input_set_drvdata(input, ts);
+ input_set_capability(input, EV_KEY, BTN_TOUCH);
+ input_set_abs_params(input, ABS_X, 0, 4095, 2, 0);
+ input_set_abs_params(input, ABS_Y, 0, 4095, 2, 0);
+ touchscreen_parse_properties(input, false, &ts->prop);
+ ret = input_setup_polling(input, at550_ts_poll);
+ if (ret)
+ return ret;
+ input_set_poll_interval(input, 10);
+ return input_register_device(input);
+}
+static const struct of_device_id at550_ts_of_match[] = {
+ { .compatible = "sirf,at550-ts" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, at550_ts_of_match);
+static struct platform_driver at550_ts_driver = {
+ .probe = at550_ts_probe,
+ .driver = {
+ .name = "at550-ts",
+ .of_match_table = at550_ts_of_match,
+ },
+};
+module_platform_driver(at550_ts_driver);
+MODULE_DESCRIPTION("SiRF AT550 resistive touchscreen");
+MODULE_LICENSE("GPL");
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH RFC 4/6] Input: add polled SiRF AT550 resistive touch support
2026-11-17 13:06 ` [PATCH RFC 4/6] Input: add polled SiRF AT550 resistive touch support yy-Local-LLM via B4 Relay
@ 2026-11-17 13:38 ` sashiko-bot
0 siblings, 0 replies; 12+ messages in thread
From: sashiko-bot @ 2026-11-17 13:38 UTC (permalink / raw)
To: yy-Local-LLM, devicetree; +Cc: linux-input, robh, conor+dt, dmitry.torokhov
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] Input: at550-ts: non-human handle in Signed-off-by and commit
author
- [Medium] Input: at550-ts: unsafe register restore and IRQ clear order
in at550_ts_close()
- [Low] Input: at550-ts: violation of Input subsystem error-handling and
style rules
--
commit cf7c284aeaacb1e8a41814f52eee2edf5d3fbc10
Author: yy-Local-LLM <yogo.0917.sabu@gmail.com>
> Input: add polled SiRF AT550 resistive touch support
>
> Report raw ABS_X/ABS_Y and BTN_TOUCH using the input polling framework.
> Preserve the firmware settling settings and reject streaming/AUX
> ownership. Use standard touchscreen axis properties; keep affine
> calibration in userspace. Polling is the initial supported acquisition
> mode.
>
> Signed-off-by: yy-Local-LLM <yogo.0917.sabu@gmail.com>
[Severity: High]
Documentation/process/submitting-patches.rst requires a real human name (known
identity) in the Author header and Signed-off-by trailer rather than a handle
or bot identifier such as yy-Local-LLM.
> diff --git a/drivers/input/touchscreen/at550-ts.c b/drivers/input/touchscreen/at550-ts.c
> new file mode 100644
> index 0000000000000..0a208f4a92f55
> --- /dev/null
> +++ b/drivers/input/touchscreen/at550-ts.c
> @@ -0,0 +1,108 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/* SiRF AT550 coordinate acquisition. Layout cross-checked with AT551 draft. */
> +#include <linux/bitfield.h>
> +#include <linux/input.h>
> +#include <linux/input/touchscreen.h>
> +#include <linux/io.h>
> +#include <linux/module.h>
> +#include <linux/platform_device.h>
[ ... ]
> +static int at550_ts_open(struct input_dev *input)
> +{
> + struct at550_ts *ts = input_get_drvdata(input);
> +
> + /* Polling keeps the interrupt sources disabled. Preserve CE settling. */
> + writel(3, ts->base + AT550_INTR);
> + writel(ts->ctrl2 | GENMASK(15, 14), ts->base + AT550_CTRL2);
> + writel((ts->ctrl1 & GENMASK(7, 4)) | BIT(11) | BIT(10),
> + ts->base + AT550_CTRL1);
> + return 0;
> +}
> +static void at550_ts_close(struct input_dev *input)
> +{
> + struct at550_ts *ts = input_get_drvdata(input);
> +
> + writel(3, ts->base + AT550_INTR);
> + writel(ts->ctrl1, ts->base + AT550_CTRL1);
> + writel(ts->ctrl2, ts->base + AT550_CTRL2);
> +}
[Severity: Medium]
Can at550_ts_close() leave pending interrupt status latched or re-enable
coordinate acquisition and hardware interrupts?
Clearing AT550_INTR before writing AT550_CTRL1 and AT550_CTRL2 allows an
in-flight conversion to complete and reassert interrupt status before the
controller stops. In addition, at550_ts_probe() accepts any boot-time bits
within 0xffff in ts->ctrl1 and 0xc2ff in ts->ctrl2, so restoring the unmasked
values on close (unlike at550_ts_open(), which masks ts->ctrl1 to
GENMASK(7, 4)) can re-enable acquisition or interrupt generation if firmware
or a bootloader left those bits set.
> +static int at550_ts_probe(struct platform_device *pdev)
> +{
> + struct device *dev = &pdev->dev;
> + struct at550_ts *ts;
> + struct input_dev *input;
> + int ret;
[ ... ]
> + ret = input_setup_polling(input, at550_ts_poll);
> + if (ret)
> + return ret;
> + input_set_poll_interval(input, 10);
> + return input_register_device(input);
> +}
[Severity: Low]
This isn't a bug, but Input subsystem convention is to name the error variable
error or err, check the result of input_register_device(input), and explicitly
return 0 on success:
error = input_register_device(input);
if (error)
return error;
return 0;
Also, linux/bitfield.h is unused here while linux/bits.h (for BIT and GENMASK)
and linux/mod_devicetable.h (for struct of_device_id) should be included
directly, and blank lines should separate top-level definitions and functions.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261117-at550-rfc-v1-v1-0-5879573cb825@gmail.com?part=4
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH RFC 5/6] mmc: sdhci: add SiRF AT550 programmed-I/O support
2026-11-17 13:06 [PATCH RFC 0/6] SiRF AT550 / YPL514si initial RAM-boot platform support yy-Local-LLM via B4 Relay
` (3 preceding siblings ...)
2026-11-17 13:06 ` [PATCH RFC 4/6] Input: add polled SiRF AT550 resistive touch support yy-Local-LLM via B4 Relay
@ 2026-11-17 13:06 ` yy-Local-LLM via B4 Relay
2026-11-17 13:06 ` [PATCH RFC 6/6] ARM: add the SiRF AT550 platform and YPL514si board yy-Local-LLM via B4 Relay
5 siblings, 0 replies; 12+ messages in thread
From: yy-Local-LLM via B4 Relay @ 2026-11-17 13:06 UTC (permalink / raw)
To: linux-arm-kernel, devicetree
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dmitry Torokhov,
Thomas Gleixner, Radu Rendec, Ulf Hansson, Daniel Lezcano,
Adrian Hunter, Jonathan Corbet, Shuah Khan, Randy Dunlap,
Russell King, Arnd Bergmann, Alexandre Belloni, Linus Walleij,
Drew Fustini, linux-kernel, linux-input, linux-mmc, linux-doc,
soc
From: yy-Local-LLM <yogo.0917.sabu@gmail.com>
Add a platform SDHCI host with PIO because CPU-to-controller DMA address
translation has not been validated. Reject unsupported
capability/version combinations and use the current managed host
allocation API. Board discovery and frequency restrictions are described
by the DT, rather than forcing removable-SD policy in the controller
driver.
Signed-off-by: yy-Local-LLM <yogo.0917.sabu@gmail.com>
---
MAINTAINERS | 1 +
drivers/mmc/host/Kconfig | 10 +++++++
drivers/mmc/host/Makefile | 2 ++
drivers/mmc/host/sdhci-at550.c | 62 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 75 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 441492230..347d46a20 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25858,6 +25858,7 @@ F: Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
F: drivers/clocksource/timer-at550.c
F: drivers/input/touchscreen/at550-ts.c
F: drivers/irqchip/irq-at550.c
+F: drivers/mmc/host/sdhci-at550.c
SIS 190 ETHERNET DRIVER
M: Francois Romieu <romieu@fr.zoreil.com>
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index 79bfc425e..72e7c279a 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -1125,3 +1125,13 @@ config MMC_LITEX
module will be called litex_mmc.
If unsure, say N.
+
+config MMC_SDHCI_AT550
+ tristate "SiRF AT550 SDHCI host"
+ depends on MMC_SDHCI_PLTFM && OF
+ help
+ Say Y to enable the AT550 removable SD host using programmed I/O.
+ Firmware must configure the peripheral clock and pin multiplexing.
+ DMA address translation is not supported by this initial driver.
+ Card discovery and bus frequency are configured by the device tree.
+ To build as a module, choose M; it will be called sdhci-at550.
diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile
index fd043afab..6f7b0dd14 100644
--- a/drivers/mmc/host/Makefile
+++ b/drivers/mmc/host/Makefile
@@ -115,3 +115,5 @@ endif
obj-$(CONFIG_MMC_SDHCI_XENON) += sdhci-xenon-driver.o
sdhci-xenon-driver-y += sdhci-xenon.o sdhci-xenon-phy.o
+
+obj-$(CONFIG_MMC_SDHCI_AT550) += sdhci-at550.o
diff --git a/drivers/mmc/host/sdhci-at550.c b/drivers/mmc/host/sdhci-at550.c
new file mode 100644
index 000000000..100a0fdb2
--- /dev/null
+++ b/drivers/mmc/host/sdhci-at550.c
@@ -0,0 +1,62 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/* Standard SDHCI PIO only: do not assume CPU/PCI DMA address equivalence. */
+#include <linux/module.h>
+#include <linux/mmc/host.h>
+#include <linux/platform_device.h>
+#include "sdhci-pltfm.h"
+static const struct sdhci_ops at550_sdhci_ops = {
+ .set_clock = sdhci_set_clock,
+ .set_bus_width = sdhci_set_bus_width,
+ .reset = sdhci_reset,
+ .set_uhs_signaling = sdhci_set_uhs_signaling,
+};
+static const struct sdhci_pltfm_data at550_sdhci_data = {
+ .ops = &at550_sdhci_ops,
+ .quirks = SDHCI_QUIRK_BROKEN_DMA | SDHCI_QUIRK_BROKEN_ADMA,
+ .quirks2 = SDHCI_QUIRK2_NO_1_8_V,
+};
+static int at550_sdhci_probe(struct platform_device *pdev)
+{
+ struct sdhci_host *host;
+ u32 caps;
+ int ret;
+
+ host = sdhci_pltfm_init(pdev, &at550_sdhci_data, 0);
+ if (IS_ERR(host))
+ return PTR_ERR(host);
+ caps = sdhci_readl(host, SDHCI_CAPABILITIES);
+ if ((sdhci_readw(host, SDHCI_HOST_VERSION) & SDHCI_SPEC_VER_MASK) >
+ SDHCI_SPEC_200 || !(caps & SDHCI_CLOCK_BASE_MASK)) {
+ ret = -ENODEV;
+ return ret;
+ }
+ ret = mmc_of_parse(host->mmc);
+ if (ret)
+ return ret;
+ sdhci_get_property(pdev);
+ ret = sdhci_add_host(host);
+ if (!ret)
+ return 0;
+ return ret;
+}
+static void at550_sdhci_remove(struct platform_device *pdev)
+{
+ sdhci_pltfm_remove(pdev);
+}
+static const struct of_device_id at550_sdhci_of_match[] = {
+ { .compatible = "sirf,at550-sdhci" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, at550_sdhci_of_match);
+static struct platform_driver at550_sdhci_driver = {
+ .probe = at550_sdhci_probe,
+ .remove = at550_sdhci_remove,
+ .driver = {
+ .name = "sdhci-at550",
+ .of_match_table = at550_sdhci_of_match,
+ .pm = &sdhci_pltfm_pmops,
+ },
+};
+module_platform_driver(at550_sdhci_driver);
+MODULE_DESCRIPTION("SiRF AT550 SDHCI PIO host");
+MODULE_LICENSE("GPL");
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH RFC 6/6] ARM: add the SiRF AT550 platform and YPL514si board
2026-11-17 13:06 [PATCH RFC 0/6] SiRF AT550 / YPL514si initial RAM-boot platform support yy-Local-LLM via B4 Relay
` (4 preceding siblings ...)
2026-11-17 13:06 ` [PATCH RFC 5/6] mmc: sdhci: add SiRF AT550 programmed-I/O support yy-Local-LLM via B4 Relay
@ 2026-11-17 13:06 ` yy-Local-LLM via B4 Relay
2026-11-17 13:17 ` Arnd Bergmann
5 siblings, 1 reply; 12+ messages in thread
From: yy-Local-LLM via B4 Relay @ 2026-11-17 13:06 UTC (permalink / raw)
To: linux-arm-kernel, devicetree
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dmitry Torokhov,
Thomas Gleixner, Radu Rendec, Ulf Hansson, Daniel Lezcano,
Adrian Hunter, Jonathan Corbet, Shuah Khan, Randy Dunlap,
Russell King, Arnd Bergmann, Alexandre Belloni, Linus Walleij,
Drew Fustini, linux-kernel, linux-input, linux-mmc, linux-doc,
soc
From: yy-Local-LLM <yogo.0917.sabu@gmail.com>
Add a minimal DT machine using standard IRQ, timer and simplefb paths.
Describe the SoC and the firmware-configured YPL514si display. Leave
usable memory and the divided counter rate for the bootloader to
populate. Keep optional peripheral nodes disabled until firmware hands
them over. Disable unvalidated board suspend; limit this board to SD PIO
at 25 MHz. Document the RAM-boot contract and the missing
cold-boot/clock-tree support.
Signed-off-by: yy-Local-LLM <yogo.0917.sabu@gmail.com>
---
Documentation/arch/arm/at550.rst | 55 ++++++++++++++++++++++++++
Documentation/arch/arm/index.rst | 1 +
MAINTAINERS | 4 ++
arch/arm/Kconfig | 1 +
arch/arm/Makefile | 1 +
arch/arm/boot/dts/Makefile | 2 +
arch/arm/boot/dts/sirf/Makefile | 2 +
arch/arm/boot/dts/sirf/at550-ypl514si.dts | 52 ++++++++++++++++++++++++
arch/arm/boot/dts/sirf/at550.dtsi | 66 +++++++++++++++++++++++++++++++
arch/arm/configs/at550_defconfig | 34 ++++++++++++++++
arch/arm/mach-at550/Kconfig | 13 ++++++
arch/arm/mach-at550/Makefile | 2 +
arch/arm/mach-at550/at550.c | 11 ++++++
13 files changed, 244 insertions(+)
diff --git a/Documentation/arch/arm/at550.rst b/Documentation/arch/arm/at550.rst
new file mode 100644
index 000000000..8925a9ffb
--- /dev/null
+++ b/Documentation/arch/arm/at550.rst
@@ -0,0 +1,55 @@
+.. SPDX-License-Identifier: GPL-2.0-only
+
+SiRF AT550 and Yupiteru YPL514si
+================================
+
+The initial AT550 port supports the ARM1136 CPU, the 64-source interrupt
+controller, the low 32 bits of the system counter and match channel zero,
+polled resistive touch input, and SDHCI programmed I/O. The YPL514si board
+can use a firmware-configured 480 by 272 RGB565 simple framebuffer.
+
+Firmware handoff
+----------------
+
+Use the standard ARM boot protocol and a flattened device tree. Firmware must
+initialize SDRAM, peripheral clocks, and pin multiplexing before entering the
+kernel. No firmware-specific virtual mappings or page-table inspection are
+used by the Linux drivers.
+
+The bootloader must update the following parts of the board device tree:
+
+* Supply the actual Linux-owned region in the memory node. The zero size in
+ the source DTS is a placeholder, not a description of all installed memory.
+ RAM still owned by another operating system must not be advertised to Linux.
+* Set the fixed counter clock frequency to the rate after the programmed
+ hardware divider. The driver deliberately does not reset the counter or
+ change the divider. A zero rate is rejected.
+* Disable the timer watchdog before handing the timer block to Linux.
+* Enable the simple framebuffer only when its physical address, dimensions,
+ stride, and format have been verified. Reserve its memory from other uses.
+* Enable the touch and SD nodes only for peripherals actually handed to Linux.
+ The touchscreen driver rejects an active streaming/AUX configuration.
+
+A Windows CE RAM loader is one possible bootloader. Its allocation checks,
+volatile driver registration, MMU transition, and DT fixups are outside the
+kernel port. The Linux Image and all its runtime memory must fit inside the
+region returned to the kernel; a static firmware RAM mapping is insufficient
+proof that memory is available.
+
+Initial limits
+--------------
+
+The port depends on firmware clock and pin setup; cold reset initialization
+and clock-tree programming are not implemented. Board suspend is disabled in
+the defconfig because firmware state restoration has not been established.
+
+DMA address translation has not been validated, so the SDHCI driver uses PIO.
+The YPL514si DT disables MMC and SDIO discovery and limits SD to 25 MHz and
+3.3 V. Filesystem write support, card removal, and suspend/resume require
+separate hardware validation. No flash or bootloader update is required to
+use the RAM boot path.
+
+The touchscreen exports raw coordinates. Initial five-point affine calibration
+is performed in userspace, rather than placing a board-specific transform in
+the input driver. GPS/baseband, USB, UART, and native LCD modesetting are not
+part of the initial support.
diff --git a/Documentation/arch/arm/index.rst b/Documentation/arch/arm/index.rst
index b15621093..9cf1fb834 100644
--- a/Documentation/arch/arm/index.rst
+++ b/Documentation/arch/arm/index.rst
@@ -62,6 +62,7 @@ SoC-specific documents
stm32/stm32mp157-overview
stm32/stm32-dma-mdma-chaining
+ at550
sunxi
samsung/index
diff --git a/MAINTAINERS b/MAINTAINERS
index 347d46a20..75f5a827e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -25850,11 +25850,15 @@ F: include/trace/events/siox.h
SIRF AT550 PLATFORM
M: yy-Local-LLM <yogo.0917.sabu@gmail.com>
S: Odd Fixes
+F: Documentation/arch/arm/at550.rst
F: Documentation/devicetree/bindings/arm/sirf,at550.yaml
F: Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml
F: Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
F: Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml
F: Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
+F: arch/arm/boot/dts/sirf/at550*
+F: arch/arm/configs/at550_defconfig
+F: arch/arm/mach-at550/
F: drivers/clocksource/timer-at550.c
F: drivers/input/touchscreen/at550-ts.c
F: drivers/irqchip/irq-at550.c
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 0cc289a71..7fcf2a28f 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -367,6 +367,7 @@ source "arch/arm/mach-artpec/Kconfig"
source "arch/arm/mach-aspeed/Kconfig"
+source "arch/arm/mach-at550/Kconfig"
source "arch/arm/mach-at91/Kconfig"
source "arch/arm/mach-axxia/Kconfig"
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 573813ef5..508cbad8b 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -176,6 +176,7 @@ machine-$(CONFIG_ARCH_ACTIONS) += actions
machine-$(CONFIG_ARCH_ALPINE) += alpine
machine-$(CONFIG_ARCH_ARTPEC) += artpec
machine-$(CONFIG_ARCH_ASPEED) += aspeed
+machine-$(CONFIG_ARCH_AT550) += at550
machine-$(CONFIG_ARCH_AT91) += at91
machine-$(CONFIG_ARCH_AXXIA) += axxia
machine-$(CONFIG_ARCH_BCM) += bcm
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 28fba538d..a4844a80b 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -40,3 +40,5 @@ subdir-y += vt8500
subdir-y += xen
subdir-y += xilinx
subdir-y += zte
+
+subdir-y += sirf
\ No newline at end of file
diff --git a/arch/arm/boot/dts/sirf/Makefile b/arch/arm/boot/dts/sirf/Makefile
new file mode 100644
index 000000000..d1d3d5bfe
--- /dev/null
+++ b/arch/arm/boot/dts/sirf/Makefile
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+dtb-$(CONFIG_ARCH_AT550) += at550-ypl514si.dtb
diff --git a/arch/arm/boot/dts/sirf/at550-ypl514si.dts b/arch/arm/boot/dts/sirf/at550-ypl514si.dts
new file mode 100644
index 000000000..d45328fa0
--- /dev/null
+++ b/arch/arm/boot/dts/sirf/at550-ypl514si.dts
@@ -0,0 +1,52 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/dts-v1/;
+/memreserve/ 0xc0100000 0x40000;
+#include "at550.dtsi"
+
+/ {
+ model = "Yupiteru YPL514si";
+ compatible = "yupiteru,ypl514si", "sirf,at550";
+
+ memory@c0000000 {
+ device_type = "memory";
+ /* The bootloader supplies the region allocated for Linux. */
+ reg = <0xc0000000 0>;
+ };
+
+ chosen {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ framebuffer@c0100000 {
+ compatible = "simple-framebuffer";
+ reg = <0xc0100000 0x3fc00>;
+ width = <480>;
+ height = <272>;
+ stride = <960>;
+ format = "r5g6b5";
+ status = "disabled";
+ };
+ };
+};
+
+&touchscreen {
+ touchscreen-size-x = <4096>;
+ touchscreen-size-y = <4096>;
+};
+
+&sd0 {
+ bus-width = <4>;
+ max-frequency = <25000000>;
+ no-1-8-v;
+ no-mmc;
+ no-sdio;
+};
+
+&sd2 {
+ bus-width = <4>;
+ max-frequency = <25000000>;
+ no-1-8-v;
+ no-mmc;
+ no-sdio;
+};
diff --git a/arch/arm/boot/dts/sirf/at550.dtsi b/arch/arm/boot/dts/sirf/at550.dtsi
new file mode 100644
index 000000000..62d9842cb
--- /dev/null
+++ b/arch/arm/boot/dts/sirf/at550.dtsi
@@ -0,0 +1,66 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/ {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ interrupt-parent = <&intc>;
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu@0 {
+ device_type = "cpu";
+ compatible = "arm,arm1136jf-s";
+ reg = <0>;
+ };
+ };
+
+ counter_clk: clock-counter {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ /* Boot firmware supplies the rate after the hardware divider. */
+ clock-frequency = <0>;
+ };
+
+ soc {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ intc: interrupt-controller@90020000 {
+ compatible = "sirf,at550-intc";
+ reg = <0x90020000 0x1000>;
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ #address-cells = <0>;
+ };
+
+ timer@90050000 {
+ compatible = "sirf,at550-timer";
+ reg = <0x90050000 0x1000>;
+ interrupts = <0>;
+ clocks = <&counter_clk>;
+ };
+
+ touchscreen: touchscreen@80120000 {
+ compatible = "sirf,at550-ts";
+ reg = <0x80120000 0x1000>;
+ status = "disabled";
+ };
+
+ sd0: mmc@56000000 {
+ compatible = "sirf,at550-sdhci";
+ reg = <0x56000000 0x1000>;
+ interrupts = <36>;
+ status = "disabled";
+ };
+
+ sd2: mmc@56200000 {
+ compatible = "sirf,at550-sdhci";
+ reg = <0x56200000 0x1000>;
+ interrupts = <20>;
+ status = "disabled";
+ };
+ };
+};
diff --git a/arch/arm/configs/at550_defconfig b/arch/arm/configs/at550_defconfig
new file mode 100644
index 000000000..698b2f675
--- /dev/null
+++ b/arch/arm/configs/at550_defconfig
@@ -0,0 +1,34 @@
+# CONFIG_LOCALVERSION_AUTO is not set
+CONFIG_SYSVIPC=y
+CONFIG_NO_HZ_IDLE=y
+CONFIG_HIGH_RES_TIMERS=y
+CONFIG_BLK_DEV_INITRD=y
+CONFIG_ARCH_MULTI_V6=y
+CONFIG_ARCH_AT550=y
+# CONFIG_SUSPEND is not set
+CONFIG_MODULES=y
+CONFIG_MODULE_UNLOAD=y
+CONFIG_PARTITION_ADVANCED=y
+CONFIG_NET=y
+CONFIG_UNIX=y
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_INPUT_EVDEV=y
+# CONFIG_INPUT_KEYBOARD is not set
+# CONFIG_INPUT_MOUSE is not set
+CONFIG_INPUT_TOUCHSCREEN=y
+CONFIG_TOUCHSCREEN_AT550=y
+CONFIG_FB=y
+CONFIG_FB_SIMPLE=y
+CONFIG_FRAMEBUFFER_CONSOLE=y
+CONFIG_MMC=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_AT550=y
+CONFIG_VFAT_FS=y
+CONFIG_TMPFS=y
+CONFIG_NLS_CODEPAGE_437=y
+CONFIG_NLS_ISO8859_1=y
+CONFIG_NLS_UTF8=y
+CONFIG_FONTS=y
+CONFIG_FONT_8x8=y
diff --git a/arch/arm/mach-at550/Kconfig b/arch/arm/mach-at550/Kconfig
new file mode 100644
index 000000000..c6380e529
--- /dev/null
+++ b/arch/arm/mach-at550/Kconfig
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config ARCH_AT550
+ bool "SiRF AT550 platforms"
+ depends on ARCH_MULTI_V6
+ select ARM_ERRATA_411920
+ select AT550_IRQ
+ select CLKSRC_AT550
+ select CPU_V6
+ help
+ Support SiRF AT550 systems, including the Yupiteru YPL514si.
+ The initial support uses firmware-configured peripheral clocks,
+ pin multiplexing and SDRAM. A bootloader-supplied device tree must
+ describe the usable RAM region and the divided counter clock rate.
diff --git a/arch/arm/mach-at550/Makefile b/arch/arm/mach-at550/Makefile
new file mode 100644
index 000000000..98a51d234
--- /dev/null
+++ b/arch/arm/mach-at550/Makefile
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+obj-y += at550.o
diff --git a/arch/arm/mach-at550/at550.c b/arch/arm/mach-at550/at550.c
new file mode 100644
index 000000000..affcc9eb3
--- /dev/null
+++ b/arch/arm/mach-at550/at550.c
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0-only
+#include <asm/mach/arch.h>
+
+static const char *const at550_dt_compat[] __initconst = {
+ "sirf,at550",
+ NULL,
+};
+
+DT_MACHINE_START(AT550_DT, "SiRF AT550")
+ .dt_compat = at550_dt_compat,
+MACHINE_END
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH RFC 6/6] ARM: add the SiRF AT550 platform and YPL514si board
2026-11-17 13:06 ` [PATCH RFC 6/6] ARM: add the SiRF AT550 platform and YPL514si board yy-Local-LLM via B4 Relay
@ 2026-11-17 13:17 ` Arnd Bergmann
0 siblings, 0 replies; 12+ messages in thread
From: Arnd Bergmann @ 2026-11-17 13:17 UTC (permalink / raw)
To: yogo.0917.sabu, linux-arm-kernel, devicetree
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dmitry Torokhov,
Thomas Gleixner, Radu Rendec, Ulf Hansson, Daniel Lezcano,
Adrian Hunter, Jonathan Corbet, Shuah Khan, Randy Dunlap,
Russell King, Alexandre Belloni, Linus Walleij, Drew Fustini,
linux-kernel, linux-input, linux-mmc @ vger . kernel . org,
linux-doc, soc
On Tue, Nov 17, 2026, at 14:06, yy-Local-LLM via B4 Relay wrote:
> From: yy-Local-LLM <yogo.0917.sabu@gmail.com>
>
> Add a minimal DT machine using standard IRQ, timer and simplefb paths.
> Describe the SoC and the firmware-configured YPL514si display. Leave
> usable memory and the divided counter rate for the bootloader to
> populate. Keep optional peripheral nodes disabled until firmware hands
> them over. Disable unvalidated board suspend; limit this board to SD PIO
> at 25 MHz. Document the RAM-boot contract and the missing
> cold-boot/clock-tree support.
>
> Signed-off-by: yy-Local-LLM <yogo.0917.sabu@gmail.com>
Please use a real name for signoff and make sure you understand
the legal meaning of this.
> +config ARCH_AT550
> + bool "SiRF AT550 platforms"
> + depends on ARCH_MULTI_V6
> + select ARM_ERRATA_411920
> + select AT550_IRQ
> + select CLKSRC_AT550
> + select CPU_V6
Which CPU is this specifically? You need to select CPU_ARM1136R0,
CPU_ARM1136R1 or CPU_ARM1176 instead CPU_V6 since b5fdfa208175
("ARM: deprecate support for ARM1136r0").
Arnd
^ permalink raw reply [flat|nested] 12+ messages in thread