Skip to contentSkip to conversation

SiRF AT550 / YPL514si initial RAM-boot platform support

RFC PATCH Superseded Yuugo Yoneda 5 participants 23 messages Nov 21 – Dec 1

Subsystems (11)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover SiRF AT550 / YPL514si initial RAM-boot platform support

This RFC adds initial platform support for the SiRF AT550 SoC (ARM1136 r1p5, MIDR 0x4117b365) and the Yupiteru YPL514si portable navigation device on top of 7.4-rc3.

The platform boots from RAM via a Windows CE bootloader trampoline using standard IRQCHIP_DECLARE, TIMER_OF_DECLARE, common clock, polled input, SDHCI PIO, and simplefb paths. Firmware initializes SDRAM, peripheral clocks, pin multiplexing, and the LCD before handoff. The bootloader supplies the Linux-owned RAM range in memory@c0000000 and the post-divider counter rate in clock-counter, reserves the framebuffer via a no-map reserved-memory node, and enables only handed-over peripherals.

Validation status:
- Hardware: I booted both v1 and this v2 series on the YPL514si (v2 CE handoff log confirmed a 32 MiB Linux allocation at 0xc1e00000, 8192 PFNs, 124805090 Hz measured counter clock, and all three gated peripherals enabled).
- Local builds/checks for v2: at550_defconfig Image and DTB build (W=1), leaf drivers built in-kernel and as modules (W=1), multiplatform CONFIG_SMP=y + CONFIG_ARCH_AT550=y object builds (W=1), dt_binding_check, scoped dtbs_check, dt-check-style --mode strict, ARM32 bootloader DT fixup tests for 16/24/32 MiB, and b4 prep --check. (QEMU ARM1136 bring-up tests were run on v1 using GIC/SP804/PL181 and synthetic uinput rather than physical AT550 hardware.)

Initial limits:
- Peripheral clock tree control, pinctrl, cold boot, SDHCI DMA translation, and suspend/resume are not implemented yet.
- The board DTS restricts SD to 25 MHz PIO, 3.3 V only, no MMC, and no SDIO; SD writes and card removal are untested.
- Register layouts were cross-checked against a third-party AT551 draft datasheet and observed CE mappings, which is not a complete AT550 hardware specification.

I would appreciate early feedback on the overall platform split and the firmware/DT handoff contract before extending clock, pinctrl, or DMA support.

---
Changes in v2:
- Use my real name (Yuugo Yoneda) in author headers, MAINTAINERS, DT binding maintainers, and Signed-off-by trailers.
- Split the monolithic bindings and platform patches into 13 commits following subsystem and SoC conventions, and rewrite commit logs and cover letter directly.
- Select CPU_ARM1136R1 instead of CPU_V6 in arch/arm/mach-at550/Kconfig (also avoiding !SMP conflicts in multiplatform builds), and disable CONFIG_ARCH_MULTI_V7 in at550_defconfig.
- Replace /memreserve/ with a /reserved-memory node using no-map in at550-ypl514si.dts so simplefb ioremap_wc() does not alias the ARM linear mapping.
- Update DT schemas to describe hardware instead of driver/firmware
limits (allow optional interrupts/clocks in sirf,at550-ts.yaml and optional clocks in sirf,at550-sdhci.yaml, drop no-1-8-v from required
in sirf,at550-sdhci.yaml, allow 1..6 match interrupts and maxItems: 1 clock in sirf,at550-timer.yaml, and revise schema descriptions).
- Set IRQ_LEVEL on mapped level interrupts in irq-at550.c.
- Enable the timer clock before MMIO reads, disable the timer before reading/updating MATCH0, clear STATUS after writing MATCH0, and implement set_state_oneshot_stopped in timer-at550.c.
- Explicitly stop acquisition in at550_ts_close(), clear interrupts
after mode changes, include mod_devicetable.h and bits.h (dropping unused bitfield.h), follow Input error-handling conventions, and fix coding style in at550-ts.c.
- Drop redundant ops/remove wrappers and premature caps/version checks, and include mod_devicetable.h in sdhci-at550.c.
- Sort subdir-y += sirf alphabetically with a trailing newline in arch/arm/boot/dts/Makefile, and fix strict dt-check-style node/property ordering and blank lines in at550.dtsi and at550-ypl514si.dts.
- Link to v1: https://patch.msgid.link/[email protected]

---
Yuugo Yoneda (13):
dt-bindings: vendor-prefixes: add Yupiteru
dt-bindings: arm: add SiRF AT550 and Yupiteru YPL514si
dt-bindings: interrupt-controller: add SiRF AT550 interrupt controller
irqchip: add SiRF AT550 interrupt controller driver
dt-bindings: timer: add SiRF AT550 system timer clocksource/drivers/timer-at550: add SiRF AT550 counter and match timer
dt-bindings: input: touchscreen: add SiRF AT550 touchscreen
Input: add polled SiRF AT550 resistive touchscreen driver
dt-bindings: mmc: add SiRF AT550 SDHCI host controller
mmc: sdhci-at550: add SiRF AT550 programmed-I/O host driver
ARM: at550: add SiRF AT550 platform support
ARM: dts: sirf: add SiRF AT550 SoC and Yupiteru YPL514si board
ARM: configs: add at550_defconfig

 Documentation/arch/arm/at550.rst                   |  56 +++++++++
 Documentation/arch/arm/index.rst                   |   1 +
 .../devicetree/bindings/arm/sirf,at550.yaml        |  22 ++++
 .../bindings/input/touchscreen/sirf,at550-ts.yaml  |  40 ++++++
 .../interrupt-controller/sirf,at550-intc.yaml      |  46 +++++++
 .../devicetree/bindings/mmc/sirf,at550-sdhci.yaml  |  50 ++++++++
 .../bindings/timer/sirf,at550-timer.yaml           |  51 ++++++++
 .../devicetree/bindings/vendor-prefixes.yaml       |   2 +
 MAINTAINERS                                        |  17 +++
 arch/arm/Kconfig                                   |   1 +
 arch/arm/Makefile                                  |   1 +
 arch/arm/boot/dts/Makefile                         |   1 +
 arch/arm/boot/dts/sirf/Makefile                    |   2 +
 arch/arm/boot/dts/sirf/at550-ypl514si.dts          |  63 ++++++++++
 arch/arm/boot/dts/sirf/at550.dtsi                  |  69 +++++++++++
 arch/arm/configs/at550_defconfig                   |  35 ++++++
 arch/arm/mach-at550/Kconfig                        |  13 ++
 arch/arm/mach-at550/Makefile                       |   2 +
 arch/arm/mach-at550/at550.c                        |  11 ++
 drivers/clocksource/Kconfig                        |   6 +
 drivers/clocksource/Makefile                       |   2 +
 drivers/clocksource/timer-at550.c                  | 136 +++++++++++++++++++++
 drivers/input/touchscreen/Kconfig                  |  10 ++
 drivers/input/touchscreen/Makefile                 |   2 +
 drivers/input/touchscreen/at550-ts.c               | 124 +++++++++++++++++++
 drivers/irqchip/Kconfig                            |   5 +
 drivers/irqchip/Makefile                           |   2 +
 drivers/irqchip/irq-at550.c                        | 111 +++++++++++++++++
 drivers/mmc/host/Kconfig                           |  10 ++
 drivers/mmc/host/Makefile                          |   2 +
 drivers/mmc/host/sdhci-at550.c                     |  51 ++++++++
 31 files changed, 944 insertions(+)

---
base-commit: 666539eecdf4db623f5e3c3e55cf9f2dfad24aa4
change-id: 20261117-at550-rfc-v1-2591185a2fe8

Best regards,

Signature · 1 line
Yuugo Yoneda <[email protected]>
#1 lore raw

RFC PATCH v2 1/13 dt-bindings: vendor-prefixes: add Yupiteru

Add the yupiteru vendor prefix for Yupiteru Corporation navigation devices.

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 5471a06f9..a8927fea3 100644
@@ -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,.*":
Signature · 1 line
2.56.0
#2 lore raw

RFC PATCH v2 2/13 dt-bindings: arm: add SiRF AT550 and Yupiteru YPL514si

In reply to Yuugo Yoneda

Add the Devicetree binding schema for the SiRF AT550 SoC and the Yupiteru YPL514si board, and create the SIRF AT550 PLATFORM MAINTAINERS entry.

---
 .../devicetree/bindings/arm/sirf,at550.yaml        | 22 ++++++++++++++++++++++
 MAINTAINERS                                        |  5 +++++
 2 files changed, 27 insertions(+)
Documentation/devicetree/bindings/arm/sirf,at550.yaml new file +22 -0
new file mode 100644
index 000000000..0234324e2
@@ -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:
+  - Yuugo Yoneda <[email protected]>
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    items:
+      - const: yupiteru,ypl514si
+      - const: sirf,at550
+
+additionalProperties: true
+
+...
MAINTAINERS +5 -0
index d73899016..a825b3bae 100644
@@ -25847,6 +25847,11 @@ F:	drivers/gpio/gpio-siox.c
 F:	drivers/siox/*
 F:	include/trace/events/siox.h
 
+SIRF AT550 PLATFORM
+M:	Yuugo Yoneda <[email protected]>
+S:	Odd Fixes
+F:	Documentation/devicetree/bindings/arm/sirf,at550.yaml
+
 SIS 190 ETHERNET DRIVER
 M:	Francois Romieu <[email protected]>
 L:	[email protected]
Signature · 1 line
2.56.0
#3 lore raw

RFC PATCH v2 3/13 dt-bindings: interrupt-controller: add SiRF AT550 interrupt controller

In reply to Yuugo Yoneda

Document the Devicetree binding for the 64-source level-sensitive interrupt controller in the SiRF AT550 SoC.

---
 .../interrupt-controller/sirf,at550-intc.yaml      | 46 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 47 insertions(+)
Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml new file +46 -0
new file mode 100644
index 000000000..7effe6c9b
@@ -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:
+  - Yuugo Yoneda <[email protected]>
+
+description:
+  The AT550 interrupt controller routes 64 level-sensitive interrupt sources to
+  the ARM1136 IRQ and FIQ inputs. Each source has a fixed active level; the
+  single interrupt cell is the source number.
+
+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>;
+    };
+
+...
MAINTAINERS +1 -0
index a825b3bae..e052d9dde 100644
@@ -25851,6 +25851,7 @@ SIRF AT550 PLATFORM
 M:	Yuugo Yoneda <[email protected]>
 S:	Odd Fixes
 F:	Documentation/devicetree/bindings/arm/sirf,at550.yaml
+F:	Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
 
 SIS 190 ETHERNET DRIVER
 M:	Francois Romieu <[email protected]>
Signature · 1 line
2.56.0
#4 lore raw

RFC PATCH v2 4/13 irqchip: add SiRF AT550 interrupt controller driver

In reply to Yuugo Yoneda

Add an irqchip driver for the SiRF AT550 interrupt controller using IRQCHIP_DECLARE and a linear IRQ domain.

Validate the chip ID register before touching mask/level registers, mask both 32-source banks during setup, route sources to IRQ while leaving DSP mask registers untouched, set IRQ_LEVEL on mapped descriptors, and bound the dispatch loop.

---
 MAINTAINERS                 |   1 +
 drivers/irqchip/Kconfig     |   5 ++
 drivers/irqchip/Makefile    |   2 +
 drivers/irqchip/irq-at550.c | 111 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 119 insertions(+)
MAINTAINERS +1 -0
index e052d9dde..354466e29 100644
@@ -25852,6 +25852,7 @@ M:	Yuugo Yoneda <[email protected]>
 S:	Odd Fixes
 F:	Documentation/devicetree/bindings/arm/sirf,at550.yaml
 F:	Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
+F:	drivers/irqchip/irq-at550.c
 
 SIS 190 ETHERNET DRIVER
 M:	Francois Romieu <[email protected]>
drivers/irqchip/Kconfig +5 -0
index 136bab41f..abf704110 100644
@@ -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
drivers/irqchip/Makefile +2 -0
index 16a5fd126..0aa36c7b8 100644
@@ -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
drivers/irqchip/irq-at550.c new file +111 -0

111 lines not on this page · raw message

Signature · 1 line
2.56.0
maintainer
#5 lore raw

Re: [PATCH RFC v2 04/13] irqchip: add SiRF AT550 interrupt controller driver

Quoted 9 lines · Yuugo Yoneda via

From: Yuugo Yoneda <[email protected]>

Add an irqchip driver for the SiRF AT550 interrupt controller using IRQCHIP_DECLARE and a linear IRQ domain.

Validate the chip ID register before touching mask/level registers, mask both 32-source banks during setup, route sources to IRQ while leaving DSP mask registers untouched, set IRQ_LEVEL on mapped descriptors, and bound the dispatch loop.

Most of my comments on v1 still apply.

#6 lore raw

RFC PATCH v2 5/13 dt-bindings: timer: add SiRF AT550 system timer

In reply to Yuugo Yoneda

Document the Devicetree binding for the SiRF AT550 64-bit free-running system counter and six match channels.

---
 .../bindings/timer/sirf,at550-timer.yaml           | 51 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 52 insertions(+)
Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml new file +51 -0
new file mode 100644
index 000000000..6611dabe7
@@ -0,0 +1,51 @@
+# 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:
+  - Yuugo Yoneda <[email protected]>
+
+description:
+  A 64-bit free-running system counter with six 32-bit match channels and an
+  internal clock divider. Match channel 5 can also operate as a watchdog timer.
+
+properties:
+  compatible:
+    const: sirf,at550-timer
+  reg:
+    maxItems: 1
+  interrupts:
+    minItems: 1
+    items:
+      - description: Match channel 0 interrupt
+      - description: Match channel 1 interrupt
+      - description: Match channel 2 interrupt
+      - description: Match channel 3 interrupt
+      - description: Match channel 4 interrupt
+      - description: Match channel 5 interrupt
+  clocks:
+    maxItems: 1
+
+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>;
+    };
+
+...
MAINTAINERS +1 -0
index 354466e29..3c5a814f2 100644
@@ -25852,6 +25852,7 @@ M:	Yuugo Yoneda <[email protected]>
 S:	Odd Fixes
 F:	Documentation/devicetree/bindings/arm/sirf,at550.yaml
 F:	Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.yaml
+F:	Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml
 F:	drivers/irqchip/irq-at550.c
 
 SIS 190 ETHERNET DRIVER
Signature · 1 line
2.56.0
#7 lore raw

Re: [PATCH RFC v2 05/13] dt-bindings: timer: add SiRF AT550 system timer

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: timer: interrupts listed before clocks in sirf,at550-timer.yaml --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] dt-bindings: timer: interrupts listed before clocks in sirf,at550-timer.yaml
--

commit 7d468a2e01539543c583a2c3ed0d939b2fa94299
Author: Yuugo Yoneda <[email protected]>

dt-bindings: timer: add SiRF AT550 system timer

This commit adds the Devicetree binding schema for the SiRF AT550 system timer and lists it in MAINTAINERS.

Quoted 6 lines
Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml new file +0 -0
new file mode 100644
index 0000000000000..6611dabe7f554
@@ -0,0 +1,51 @@

[ ... ]

Quoted 24 lines
Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml new file +24 -0
+properties:
+  compatible:
+    const: sirf,at550-timer
+  reg:
+    maxItems: 1
+  interrupts:
+    minItems: 1
+    items:
+      - description: Match channel 0 interrupt
+      - description: Match channel 1 interrupt
+      - description: Match channel 2 interrupt
+      - description: Match channel 3 interrupt
+      - description: Match channel 4 interrupt
+      - description: Match channel 5 interrupt
+  clocks:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+additionalProperties: false

Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml line 49

Quoted 10 lines
Documentation/devicetree/bindings/timer/sirf,at550-timer.yaml new file +10 -0
+
+examples:
+  - |
+    timer@90050000 {
+        compatible = "sirf,at550-timer";
+        reg = <0x90050000 0x1000>;
+        interrupt-parent = <&intc>;
+        interrupts = <0>;
+        clocks = <&counter_clk>;
+    };

[Severity: Low]
In DT binding schemas and example nodes, clocks should be listed before interrupts (compatible, reg, clocks, interrupts) in properties, required, and examples.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=5
#8 lore raw

RFC PATCH v2 6/13 clocksource/drivers/timer-at550: add SiRF AT550 counter and match timer

In reply to Yuugo Yoneda

Add a clocksource, sched_clock, and one-shot clockevent driver for the SiRF AT550 system timer using the low 32-bit counter and match channel 0.

Enable the timer clock before reading the watchdog and divider registers, preserve the firmware-configured divider, refuse to initialize if a watchdog is running, write MATCH0 before clearing status, implement set_state_oneshot_stopped, and unwind resources on error.

---
 MAINTAINERS                       |   1 +
 drivers/clocksource/Kconfig       |   6 ++
 drivers/clocksource/Makefile      |   2 +
 drivers/clocksource/timer-at550.c | 136 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 145 insertions(+)
MAINTAINERS +1 -0
index 3c5a814f2..d6ea4d946 100644
@@ -25853,6 +25853,7 @@ S:	Odd Fixes
 F:	Documentation/devicetree/bindings/arm/sirf,at550.yaml
 F:	Documentation/devicetree/bindings/interrupt-controller/sirf,at550-intc.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
drivers/clocksource/Kconfig +6 -0
index da8348329..ed73947bd 100644
@@ -835,4 +835,10 @@ choice
 
 endchoice
 
+config CLKSRC_AT550
+	bool
+	depends on ARM
+	select TIMER_OF
+	select CLKSRC_MMIO
+
 endmenu
drivers/clocksource/Makefile +2 -0
index 464ec6690..0f3d4fb1c 100644
@@ -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
drivers/clocksource/timer-at550.c new file +136 -0

136 lines not on this page · raw message

Signature · 1 line
2.56.0
maintainer
#9 lore raw

Re: [PATCH RFC v2 06/13] clocksource/drivers/timer-at550: add SiRF AT550 counter and match timer

Hi Yuugo,

thanks for your patch!

drivers/clocksource/timer-at550.c line 42

Quoted 11 lines · On Sat, Nov 21, 2026 at 1:43 PM Yuugo Yoneda via B4 Relay…
drivers/clocksource/timer-at550.c new file +11 -0
+static int at550_next_event(unsigned long delta,
+                           struct clock_event_device *event)
+{
+       u32 target;
+
+       writel(0, at550_timer + AT550_ENABLE);
+       target = readl(at550_timer) + delta;
+       writel(target, at550_timer + AT550_MATCH0);
+       writel(1, at550_timer + AT550_STATUS);
+       writel(1, at550_timer + AT550_ENABLE);
+       if ((s32)(target - readl(at550_timer)) <= 0) {

When would this happen? If this ever happens then
minimum time should be bumped.

I think this is overzealous. Do other drivers do this?

drivers/clocksource/timer-at550.c line 53

Quoted 5 lines
drivers/clocksource/timer-at550.c new file +5 -0
+static irqreturn_t at550_timer_interrupt(int irq, void *data)
+{
+       struct clock_event_device *event = data;
+
+       if (!(readl(at550_timer + AT550_STATUS) & 1))

Define bits in the header such as:

#include <linus/bits.h>

#define AT550_STATUS_IRQ_RAISED BIT(0)

if (!(readl(at550_timer + AT550_STATUS) & IRQ_RAISED))
...

Yours,
Linus Walleij

#10 lore raw

RFC PATCH v2 7/13 dt-bindings: input: touchscreen: add SiRF AT550 touchscreen

In reply to Yuugo Yoneda

Document the Devicetree binding for the SiRF AT550 resistive touchscreen controller.

---
 .../bindings/input/touchscreen/sirf,at550-ts.yaml  | 40 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 41 insertions(+)
Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml new file +40 -0
new file mode 100644
index 000000000..ce081e115
@@ -0,0 +1,40 @@
+# 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:
+  - Yuugo Yoneda <[email protected]>
+
+allOf:
+  - $ref: touchscreen.yaml#
+
+properties:
+  compatible:
+    const: sirf,at550-ts
+  reg:
+    maxItems: 1
+  interrupts:
+    maxItems: 1
+  clocks:
+    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>;
+    };
+
+...
MAINTAINERS +1 -0
index d6ea4d946..e8e239c7e 100644
@@ -25851,6 +25851,7 @@ SIRF AT550 PLATFORM
 M:	Yuugo Yoneda <[email protected]>
 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/timer/sirf,at550-timer.yaml
 F:	drivers/clocksource/timer-at550.c
Signature · 1 line
2.56.0
#11 lore raw

Re: [PATCH RFC v2 07/13] dt-bindings: input: touchscreen: add SiRF AT550 touchscreen

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: input: interrupts listed before clocks in sirf,at550-ts.yaml --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] dt-bindings: input: interrupts listed before clocks in sirf,at550-ts.yaml
--

commit 694e35a7d31a133773d2560d04e23081ecacf69f
Author: Yuugo Yoneda <[email protected]>

dt-bindings: input: touchscreen: add SiRF AT550 touchscreen

This commit adds a Devicetree binding schema for the SiRF AT550 resistive touchscreen controller and updates MAINTAINERS.

Quoted 6 lines
Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml new file +0 -0
new file mode 100644
index 0000000000000..ce081e1158ccd
@@ -0,0 +1,40 @@

[ ... ]

Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml line 23

Quoted 9 lines
Documentation/devicetree/bindings/input/touchscreen/sirf,at550-ts.yaml new file +9 -0
+properties:
+  compatible:
+    const: sirf,at550-ts
+  reg:
+    maxItems: 1
+  interrupts:
+    maxItems: 1
+  clocks:
+    maxItems: 1

[Severity: Low]
This isn't a bug, but should clocks be listed before interrupts in properties to match the canonical Devicetree schema property order (compatible, reg, clocks, interrupts)?

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=7
#12 lore raw

RFC PATCH v2 8/13 Input: add polled SiRF AT550 resistive touchscreen driver

In reply to Yuugo Yoneda

Add a polled input driver for the SiRF AT550 resistive touchscreen controller reporting raw ABS_X, ABS_Y, and BTN_TOUCH events.

Preserve firmware settling configuration, explicitly stop acquisition on close before clearing pending interrupts, reject streaming or AUX mode at probe, and rely on standard touchscreen properties with affine calibration handled in userspace.

---
 MAINTAINERS                          |   1 +
 drivers/input/touchscreen/Kconfig    |  10 +++
 drivers/input/touchscreen/Makefile   |   2 +
 drivers/input/touchscreen/at550-ts.c | 124 +++++++++++++++++++++++++++++++++++
 4 files changed, 137 insertions(+)
MAINTAINERS +1 -0
index e8e239c7e..df3d38c6b 100644
@@ -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/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
drivers/input/touchscreen/Kconfig +10 -0
index 9b9ae8ac3..e68af1dd6 100644
@@ -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
drivers/input/touchscreen/Makefile +2 -0
index bfd9de833..6b8d09601 100644
@@ -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
drivers/input/touchscreen/at550-ts.c new file +124 -0

124 lines not on this page · raw message

Signature · 1 line
2.56.0
#13 lore raw

Re: [PATCH RFC v2 08/13] Input: add polled SiRF AT550 resistive touchscreen driver

Hello,

Quoted 6 lines · On Sat, Nov 21, 2026 at 09:43:18PM +0900, Yuugo Yoneda via B4 Relay wrote:
drivers/input/touchscreen/at550-ts.c new file +0 -0
new file mode 100644
index 000000000..89c2d2701

drivers/input/touchscreen/at550-ts.c line 9

Quoted 9 lines
drivers/input/touchscreen/at550-ts.c new file +9 -0
@@ -0,0 +1,124 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/* SiRF AT550 coordinate acquisition. Layout cross-checked with AT551 draft. */
+#include <linux/bits.h>
+#include <linux/input.h>
+#include <linux/input/touchscreen.h>
+#include <linux/io.h>
+#include <linux/mod_devicetable.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>

<linux/platform_device.h> already provides of_device_id without the implied dependencies you get by including <linux/mod_devicetable.h>. So please drop the latter.

Best regards
Uwe

#14 lore raw

Re: [PATCH RFC v2 08/13] Input: add polled SiRF AT550 resistive touchscreen driver

Quoted 14 lines · Uwe Kleine-König

Hello,

Quoted 11 lines · On Sat, Nov 21, 2026 at 09:43:18PM +0900, Yuugo Yoneda via B4 Relay wrote:
drivers/input/touchscreen/at550-ts.c new file +5 -0
new file mode 100644
index 000000000..89c2d2701
@@ -0,0 +1,124 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/* SiRF AT550 coordinate acquisition. Layout cross-checked with AT551 draft. */
+#include <linux/bits.h>
+#include <linux/input.h>
+#include <linux/input/touchscreen.h>
Quoted 8 lines

drivers/input/touchscreen/at550-ts.c line 9

Quoted 4 lines
drivers/input/touchscreen/at550-ts.c new file +4 -0
+#include <linux/io.h>
+#include <linux/mod_devicetable.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>

<linux/platform_device.h> already provides of_device_id without the implied dependencies you get by including <linux/mod_devicetable.h>. So please drop the latter.

Hi Uwe,

Thanks for pointing this out. I verified both built-in and modular builds without <linux/mod_devicetable.h>, and I'll drop it in v3.

Best regards,
Yuugo

#15 lore raw

RFC PATCH v2 9/13 dt-bindings: mmc: add SiRF AT550 SDHCI host controller

In reply to Yuugo Yoneda

Document the Devicetree binding for the SiRF AT550 SDHCI host controller.

---
 .../devicetree/bindings/mmc/sirf,at550-sdhci.yaml  | 50 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 51 insertions(+)
Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml new file +50 -0
new file mode 100644
index 000000000..ca0c7c414
@@ -0,0 +1,50 @@
+# 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:
+  - Yuugo Yoneda <[email protected]>
+
+description:
+  SiRF AT550 SD/MMC host controller compliant with the SDHCI specification.
+
+allOf:
+  - $ref: mmc-controller.yaml#
+
+properties:
+  compatible:
+    const: sirf,at550-sdhci
+  reg:
+    maxItems: 1
+  interrupts:
+    maxItems: 1
+  clocks:
+    maxItems: 1
+  bus-width:
+    enum: [1, 4]
+  no-1-8-v: true
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+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;
+    };
+
+...
MAINTAINERS +1 -0
index df3d38c6b..1164152dc 100644
@@ -25853,6 +25853,7 @@ 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
 F:	drivers/clocksource/timer-at550.c
 F:	drivers/input/touchscreen/at550-ts.c
Signature · 1 line
2.56.0
#16 lore raw

Re: [PATCH RFC v2 09/13] dt-bindings: mmc: add SiRF AT550 SDHCI host controller

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: mmc: sirf,at550-sdhci: interrupts listed before clocks --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] dt-bindings: mmc: sirf,at550-sdhci: interrupts listed before clocks
--

commit 7a97d09f5813c4b58599decfce4e11c1cc543404
Author: Yuugo Yoneda <[email protected]>

dt-bindings: mmc: add SiRF AT550 SDHCI host controller

This commit adds the Devicetree binding schema for the SiRF AT550 SDHCI host controller and registers it in MAINTAINERS.

Quoted 6 lines
Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml new file +0 -0
new file mode 100644
index 0000000000000..ca0c7c4146740
@@ -0,0 +1,50 @@

[ ... ]

Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml line 26

Quoted 9 lines
Documentation/devicetree/bindings/mmc/sirf,at550-sdhci.yaml new file +9 -0
+properties:
+  compatible:
+    const: sirf,at550-sdhci
+  reg:
+    maxItems: 1
+  interrupts:
+    maxItems: 1
+  clocks:
+    maxItems: 1

[Severity: Low]
This isn't a bug, but in DT binding schemas, clocks should be listed before interrupts to follow the canonical property order (compatible, reg, clocks, interrupts).

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=9
#17 lore raw

RFC PATCH v2 10/13 mmc: sdhci-at550: add SiRF AT550 programmed-I/O host driver

In reply to Yuugo Yoneda

Add a platform SDHCI host driver for the SiRF AT550 using programmed I/O, as CPU-to-controller DMA address translation is not yet validated.

Use sdhci_pltfm_init() with default platform ops and sdhci_pltfm_remove(), leaving bus width, clock limits, and card-discovery constraints to the device tree.

---
 MAINTAINERS                    |  1 +
 drivers/mmc/host/Kconfig       | 10 +++++++++
 drivers/mmc/host/Makefile      |  2 ++
 drivers/mmc/host/sdhci-at550.c | 51 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 64 insertions(+)
MAINTAINERS +1 -0
index 1164152dc..9d02a79a2 100644
@@ -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 <[email protected]>
drivers/mmc/host/Kconfig +10 -0
index 79bfc425e..72e7c279a 100644
@@ -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.
drivers/mmc/host/Makefile +2 -0
index fd043afab..6f7b0dd14 100644
@@ -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
drivers/mmc/host/sdhci-at550.c new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.56.0
#18 lore raw

Re: [PATCH RFC v2 10/13] mmc: sdhci-at550: add SiRF AT550 programmed-I/O host driver

Hello,

drivers/mmc/host/sdhci-at550.c line 6

Quoted 12 lines · On Sat, Nov 21, 2026 at 09:43:20PM +0900, Yuugo Yoneda via B4 Relay wrote:
drivers/mmc/host/sdhci-at550.c new file +6 -0
new file mode 100644
index 000000000..11c9de0c9
@@ -0,0 +1,51 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/* Standard SDHCI PIO only: do not assume CPU/PCI DMA address equivalence. */
+#include <linux/mmc/host.h>
+#include <linux/mod_devicetable.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>

<linux/platform_device.h> already provides of_device_id without the implied dependencies you get by including <linux/mod_devicetable.h>. So please drop the latter.

Best regards
Uwe

#19 lore raw

Re: [PATCH RFC v2 10/13] mmc: sdhci-at550: add SiRF AT550 programmed-I/O host driver

Quoted 19 lines · Uwe Kleine-König

Hello,

drivers/mmc/host/sdhci-at550.c line 6

Quoted 12 lines · On Sat, Nov 21, 2026 at 09:43:20PM +0900, Yuugo Yoneda via B4 Relay wrote:
drivers/mmc/host/sdhci-at550.c new file +6 -0
new file mode 100644
index 000000000..11c9de0c9
@@ -0,0 +1,51 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/* Standard SDHCI PIO only: do not assume CPU/PCI DMA address equivalence. */
+#include <linux/mmc/host.h>
+#include <linux/mod_devicetable.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>

<linux/platform_device.h> already provides of_device_id without the implied dependencies you get by including <linux/mod_devicetable.h>. So please drop the latter.

Hi Uwe,

Thanks, I'll drop <linux/mod_devicetable.h> here as well in v3.

Best regards,
Yuugo

#20 lore raw

RFC PATCH v2 11/13 ARM: at550: add SiRF AT550 platform support

In reply to Yuugo Yoneda

Add minimal Devicetree machine support for the SiRF AT550 SoC, selecting CPU_ARM1136R1 (matching MIDR 0x4117b365) alongside ARM_ERRATA_411920, AT550_IRQ, and CLKSRC_AT550.

Document the RAM-boot firmware handoff contract and initial platform limits in Documentation/arch/arm/at550.rst.

---
 Documentation/arch/arm/at550.rst | 56 ++++++++++++++++++++++++++++++++++++++++
 Documentation/arch/arm/index.rst |  1 +
 MAINTAINERS                      |  2 ++
 arch/arm/Kconfig                 |  1 +
 arch/arm/Makefile                |  1 +
 arch/arm/mach-at550/Kconfig      | 13 ++++++++++
 arch/arm/mach-at550/Makefile     |  2 ++
 arch/arm/mach-at550/at550.c      | 11 ++++++++
 8 files changed, 87 insertions(+)
Documentation/arch/arm/at550.rst new file +56 -0
new file mode 100644
index 000000000..3d1d8a77c
@@ -0,0 +1,56 @@
+.. 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 with a no-map
+  reserved-memory node so simplefb does not alias the ARM linear mapping.
+* 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.
Documentation/arch/arm/index.rst +1 -0
index b15621093..9cf1fb834 100644
@@ -62,6 +62,7 @@ SoC-specific documents
    stm32/stm32mp157-overview
    stm32/stm32-dma-mdma-chaining
 
+   at550
    sunxi
 
    samsung/index
MAINTAINERS +2 -0
index 9d02a79a2..1f9c8c08b 100644
@@ -25850,11 +25850,13 @@ F:	include/trace/events/siox.h
 SIRF AT550 PLATFORM
 M:	Yuugo Yoneda <[email protected]>
 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/mach-at550/
 F:	drivers/clocksource/timer-at550.c
 F:	drivers/input/touchscreen/at550-ts.c
 F:	drivers/irqchip/irq-at550.c
arch/arm/Kconfig +1 -0
index 0cc289a71..7fcf2a28f 100644
@@ -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"
arch/arm/Makefile +1 -0
index 573813ef5..508cbad8b 100644
@@ -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
arch/arm/mach-at550/Kconfig new file +13 -0
new file mode 100644
index 000000000..b3a0c1874
@@ -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_ARM1136R1
+	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.
arch/arm/mach-at550/Makefile new file +2 -0
new file mode 100644
index 000000000..98a51d234
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+obj-y += at550.o
arch/arm/mach-at550/at550.c new file +11 -0
new file mode 100644
index 000000000..affcc9eb3
@@ -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
Signature · 1 line
2.56.0
#21 lore raw

RFC PATCH v2 12/13 ARM: dts: sirf: add SiRF AT550 SoC and Yupiteru YPL514si board

In reply to Yuugo Yoneda

Add the SiRF AT550 SoC device tree include and the Yupiteru YPL514si board device tree.

The bootloader fills in the Linux-owned RAM range and post-divider counter clock frequency at boot, enables only handed-over peripherals, and enables simple-framebuffer once display geometry is verified. The framebuffer range is reserved via a no-map reserved-memory node so simplefb ioremap_wc() does not alias the ARM linear mapping.

---
 MAINTAINERS                               |  1 +
 arch/arm/boot/dts/Makefile                |  1 +
 arch/arm/boot/dts/sirf/Makefile           |  2 +
 arch/arm/boot/dts/sirf/at550-ypl514si.dts | 63 ++++++++++++++++++++++++++++
 arch/arm/boot/dts/sirf/at550.dtsi         | 69 +++++++++++++++++++++++++++++++
 5 files changed, 136 insertions(+)
MAINTAINERS +1 -0
index 1f9c8c08b..c6f0f3fb6 100644
@@ -25856,6 +25856,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:	arch/arm/boot/dts/sirf/at550*
 F:	arch/arm/mach-at550/
 F:	drivers/clocksource/timer-at550.c
 F:	drivers/input/touchscreen/at550-ts.c
arch/arm/boot/dts/Makefile +1 -0
index 28fba538d..d28c8eb01 100644
@@ -30,6 +30,7 @@ subdir-y += renesas
 subdir-y += rockchip
 subdir-y += samsung
 subdir-y += sigmastar
+subdir-y += sirf
 subdir-y += socionext
 subdir-y += st
 subdir-y += sunplus
arch/arm/boot/dts/sirf/Makefile new file +2 -0
new file mode 100644
index 000000000..d1d3d5bfe
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+dtb-$(CONFIG_ARCH_AT550) += at550-ypl514si.dtb
arch/arm/boot/dts/sirf/at550-ypl514si.dts new file +63 -0

63 lines not on this page · raw message

arch/arm/boot/dts/sirf/at550.dtsi new file +69 -0

69 lines not on this page · raw message

Signature · 1 line
2.56.0
#22 lore raw

RFC PATCH v2 13/13 ARM: configs: add at550_defconfig

In reply to Yuugo Yoneda

Add a minimal defconfig for the SiRF AT550 / YPL514si enabling ARCH_MULTI_V6, ARCH_AT550, FB_SIMPLE, TOUCHSCREEN_AT550, MMC_SDHCI_AT550, and VFAT/initramfs support while disabling ARCH_MULTI_V7 and unvalidated SUSPEND.

---
 MAINTAINERS                      |  1 +
 arch/arm/configs/at550_defconfig | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)
MAINTAINERS +1 -0
index c6f0f3fb6..d5a7e78ff 100644
@@ -25857,6 +25857,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:	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
arch/arm/configs/at550_defconfig new file +35 -0
new file mode 100644
index 000000000..95d32f2c9
@@ -0,0 +1,35 @@
+# 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_MULTI_V7 is not set
+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
Signature · 1 line
2.56.0